@camstack/addon-notifiers 1.2.614 → 1.2.615
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 +125 -2
- package/dist/addon.mjs +125 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -29,7 +29,7 @@ let node_fs = require("node:fs");
|
|
|
29
29
|
let node_path = require("node:path");
|
|
30
30
|
node_path = __toESM(node_path);
|
|
31
31
|
let node_url = require("node:url");
|
|
32
|
-
//#region ../types/dist/event-category-
|
|
32
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
33
33
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
34
34
|
EventCategory["SystemBoot"] = "system.boot";
|
|
35
35
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -717,6 +717,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
717
717
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
718
718
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
719
719
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
720
|
+
/**
|
|
721
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
722
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
723
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
724
|
+
*/
|
|
725
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
726
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
727
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
720
728
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
721
729
|
/**
|
|
722
730
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5577,7 +5585,7 @@ var ZodIssueCode = {
|
|
|
5577
5585
|
var ZodFirstPartyTypeKind;
|
|
5578
5586
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5579
5587
|
//#endregion
|
|
5580
|
-
//#region ../types/dist/sleep-
|
|
5588
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5581
5589
|
/**
|
|
5582
5590
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5583
5591
|
* window to float samples (D455).
|
|
@@ -42522,6 +42530,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42522
42530
|
"alert-critical",
|
|
42523
42531
|
"alert-error",
|
|
42524
42532
|
"alert-critical-resolved",
|
|
42533
|
+
"rule-broken",
|
|
42534
|
+
"rule-repaired",
|
|
42525
42535
|
"camera-online",
|
|
42526
42536
|
"camera-offline",
|
|
42527
42537
|
"camera-disabled",
|
|
@@ -74162,6 +74172,8 @@ new Map(Object.entries({
|
|
|
74162
74172
|
"alert-critical": "system",
|
|
74163
74173
|
"alert-error": "system",
|
|
74164
74174
|
"alert-critical-resolved": "system",
|
|
74175
|
+
"rule-broken": "system",
|
|
74176
|
+
"rule-repaired": "system",
|
|
74165
74177
|
"storage-location-low": "system",
|
|
74166
74178
|
"storage-location-critical": "system",
|
|
74167
74179
|
"storage-location-ok": "system",
|
|
@@ -74296,6 +74308,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
74296
74308
|
"alert-critical-resolved"
|
|
74297
74309
|
]
|
|
74298
74310
|
},
|
|
74311
|
+
{
|
|
74312
|
+
id: "rule-health",
|
|
74313
|
+
family: "system",
|
|
74314
|
+
label: "Notification rules",
|
|
74315
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
74316
|
+
},
|
|
74299
74317
|
{
|
|
74300
74318
|
id: "alarm",
|
|
74301
74319
|
family: "alarm",
|
|
@@ -74573,6 +74591,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
74573
74591
|
[...RULE_TEXT],
|
|
74574
74592
|
[...RULE_TEXT],
|
|
74575
74593
|
[...RULE_TEXT],
|
|
74594
|
+
[...RULE_TEXT],
|
|
74595
|
+
[...RULE_TEXT],
|
|
74596
|
+
[...RULE_TEXT],
|
|
74597
|
+
[...RULE_TEXT],
|
|
74576
74598
|
([...RULE_TEXT], [...UPDATES]),
|
|
74577
74599
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
74578
74600
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -74611,6 +74633,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
74611
74633
|
[...RULE_TEXT],
|
|
74612
74634
|
...STATE_SUMMARY_VARS
|
|
74613
74635
|
];
|
|
74636
|
+
new Map([
|
|
74637
|
+
{
|
|
74638
|
+
id: "device-connectivity",
|
|
74639
|
+
family: "device-events",
|
|
74640
|
+
label: "Device connectivity (offline / back online)",
|
|
74641
|
+
bad: ["device-offline"],
|
|
74642
|
+
recovery: ["device-online"],
|
|
74643
|
+
snapshotLabel: "Devices offline now",
|
|
74644
|
+
snapshotSection: "device-state"
|
|
74645
|
+
},
|
|
74646
|
+
{
|
|
74647
|
+
id: "device-switch",
|
|
74648
|
+
family: "device-events",
|
|
74649
|
+
label: "Device switched off / back on",
|
|
74650
|
+
bad: ["device-disabled"],
|
|
74651
|
+
recovery: ["device-enabled"],
|
|
74652
|
+
snapshotLabel: "Devices switched off now",
|
|
74653
|
+
snapshotSection: "device-state"
|
|
74654
|
+
},
|
|
74655
|
+
{
|
|
74656
|
+
id: "stream-connectivity",
|
|
74657
|
+
family: "device-events",
|
|
74658
|
+
label: "Stream connectivity (offline / back online)",
|
|
74659
|
+
bad: ["stream-offline"],
|
|
74660
|
+
recovery: ["stream-online"],
|
|
74661
|
+
snapshotLabel: "Streams offline now",
|
|
74662
|
+
snapshotSection: "streams"
|
|
74663
|
+
},
|
|
74664
|
+
{
|
|
74665
|
+
id: "battery",
|
|
74666
|
+
family: "device-events",
|
|
74667
|
+
label: "Battery (low / back to normal)",
|
|
74668
|
+
bad: ["device-battery-low"],
|
|
74669
|
+
recovery: ["device-battery-normal"],
|
|
74670
|
+
snapshotLabel: "Batteries low now",
|
|
74671
|
+
snapshotSection: "battery"
|
|
74672
|
+
},
|
|
74673
|
+
{
|
|
74674
|
+
id: "consumables",
|
|
74675
|
+
family: "device-events",
|
|
74676
|
+
label: "Consumables (low / replaced)",
|
|
74677
|
+
bad: ["device-consumable-low"],
|
|
74678
|
+
recovery: ["device-consumable-normal"],
|
|
74679
|
+
snapshotLabel: "Consumables low now",
|
|
74680
|
+
snapshotSection: "consumables"
|
|
74681
|
+
},
|
|
74682
|
+
{
|
|
74683
|
+
id: "tanks",
|
|
74684
|
+
family: "device-events",
|
|
74685
|
+
label: "Tanks (low or full / back to normal)",
|
|
74686
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
74687
|
+
recovery: ["device-tank-normal"],
|
|
74688
|
+
snapshotLabel: "Tanks low or full now",
|
|
74689
|
+
snapshotSection: "tanks"
|
|
74690
|
+
},
|
|
74691
|
+
{
|
|
74692
|
+
id: "recording-health",
|
|
74693
|
+
family: "device-events",
|
|
74694
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
74695
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
74696
|
+
recovery: ["recording-healthy"],
|
|
74697
|
+
snapshotLabel: "Recordings stalled now",
|
|
74698
|
+
snapshotSection: null
|
|
74699
|
+
},
|
|
74700
|
+
{
|
|
74701
|
+
id: "node-connectivity",
|
|
74702
|
+
family: "system",
|
|
74703
|
+
label: "Node connectivity (offline / back online)",
|
|
74704
|
+
bad: ["node-offline"],
|
|
74705
|
+
recovery: ["node-online"],
|
|
74706
|
+
snapshotLabel: "Nodes offline now",
|
|
74707
|
+
snapshotSection: "nodes"
|
|
74708
|
+
},
|
|
74709
|
+
{
|
|
74710
|
+
id: "storage-space",
|
|
74711
|
+
family: "system",
|
|
74712
|
+
label: "Storage space (low or critical / ok again)",
|
|
74713
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
74714
|
+
recovery: ["storage-location-ok"],
|
|
74715
|
+
snapshotLabel: "Storage locations low now",
|
|
74716
|
+
snapshotSection: null
|
|
74717
|
+
},
|
|
74718
|
+
{
|
|
74719
|
+
id: "critical-alerts",
|
|
74720
|
+
family: "system",
|
|
74721
|
+
label: "Critical alerts (raised / resolved)",
|
|
74722
|
+
bad: ["alert-critical"],
|
|
74723
|
+
recovery: ["alert-critical-resolved"],
|
|
74724
|
+
snapshotLabel: "Critical alerts open now",
|
|
74725
|
+
snapshotSection: null
|
|
74726
|
+
},
|
|
74727
|
+
{
|
|
74728
|
+
id: "rule-health",
|
|
74729
|
+
family: "system",
|
|
74730
|
+
label: "Rule health (broken / repaired)",
|
|
74731
|
+
bad: ["rule-broken"],
|
|
74732
|
+
recovery: ["rule-repaired"],
|
|
74733
|
+
snapshotLabel: "Notification rules broken now",
|
|
74734
|
+
snapshotSection: null
|
|
74735
|
+
}
|
|
74736
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
74614
74737
|
new Set([
|
|
74615
74738
|
"disarmed",
|
|
74616
74739
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -690,6 +690,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
690
690
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
691
691
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
692
692
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
693
|
+
/**
|
|
694
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
695
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
696
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
697
|
+
*/
|
|
698
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
699
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
700
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
693
701
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
694
702
|
/**
|
|
695
703
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5550,7 +5558,7 @@ var ZodIssueCode = {
|
|
|
5550
5558
|
var ZodFirstPartyTypeKind;
|
|
5551
5559
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5552
5560
|
//#endregion
|
|
5553
|
-
//#region ../types/dist/sleep-
|
|
5561
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5554
5562
|
/**
|
|
5555
5563
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5556
5564
|
* window to float samples (D455).
|
|
@@ -42495,6 +42503,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42495
42503
|
"alert-critical",
|
|
42496
42504
|
"alert-error",
|
|
42497
42505
|
"alert-critical-resolved",
|
|
42506
|
+
"rule-broken",
|
|
42507
|
+
"rule-repaired",
|
|
42498
42508
|
"camera-online",
|
|
42499
42509
|
"camera-offline",
|
|
42500
42510
|
"camera-disabled",
|
|
@@ -74135,6 +74145,8 @@ new Map(Object.entries({
|
|
|
74135
74145
|
"alert-critical": "system",
|
|
74136
74146
|
"alert-error": "system",
|
|
74137
74147
|
"alert-critical-resolved": "system",
|
|
74148
|
+
"rule-broken": "system",
|
|
74149
|
+
"rule-repaired": "system",
|
|
74138
74150
|
"storage-location-low": "system",
|
|
74139
74151
|
"storage-location-critical": "system",
|
|
74140
74152
|
"storage-location-ok": "system",
|
|
@@ -74269,6 +74281,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
74269
74281
|
"alert-critical-resolved"
|
|
74270
74282
|
]
|
|
74271
74283
|
},
|
|
74284
|
+
{
|
|
74285
|
+
id: "rule-health",
|
|
74286
|
+
family: "system",
|
|
74287
|
+
label: "Notification rules",
|
|
74288
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
74289
|
+
},
|
|
74272
74290
|
{
|
|
74273
74291
|
id: "alarm",
|
|
74274
74292
|
family: "alarm",
|
|
@@ -74546,6 +74564,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
74546
74564
|
[...RULE_TEXT],
|
|
74547
74565
|
[...RULE_TEXT],
|
|
74548
74566
|
[...RULE_TEXT],
|
|
74567
|
+
[...RULE_TEXT],
|
|
74568
|
+
[...RULE_TEXT],
|
|
74569
|
+
[...RULE_TEXT],
|
|
74570
|
+
[...RULE_TEXT],
|
|
74549
74571
|
([...RULE_TEXT], [...UPDATES]),
|
|
74550
74572
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
74551
74573
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -74584,6 +74606,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
74584
74606
|
[...RULE_TEXT],
|
|
74585
74607
|
...STATE_SUMMARY_VARS
|
|
74586
74608
|
];
|
|
74609
|
+
new Map([
|
|
74610
|
+
{
|
|
74611
|
+
id: "device-connectivity",
|
|
74612
|
+
family: "device-events",
|
|
74613
|
+
label: "Device connectivity (offline / back online)",
|
|
74614
|
+
bad: ["device-offline"],
|
|
74615
|
+
recovery: ["device-online"],
|
|
74616
|
+
snapshotLabel: "Devices offline now",
|
|
74617
|
+
snapshotSection: "device-state"
|
|
74618
|
+
},
|
|
74619
|
+
{
|
|
74620
|
+
id: "device-switch",
|
|
74621
|
+
family: "device-events",
|
|
74622
|
+
label: "Device switched off / back on",
|
|
74623
|
+
bad: ["device-disabled"],
|
|
74624
|
+
recovery: ["device-enabled"],
|
|
74625
|
+
snapshotLabel: "Devices switched off now",
|
|
74626
|
+
snapshotSection: "device-state"
|
|
74627
|
+
},
|
|
74628
|
+
{
|
|
74629
|
+
id: "stream-connectivity",
|
|
74630
|
+
family: "device-events",
|
|
74631
|
+
label: "Stream connectivity (offline / back online)",
|
|
74632
|
+
bad: ["stream-offline"],
|
|
74633
|
+
recovery: ["stream-online"],
|
|
74634
|
+
snapshotLabel: "Streams offline now",
|
|
74635
|
+
snapshotSection: "streams"
|
|
74636
|
+
},
|
|
74637
|
+
{
|
|
74638
|
+
id: "battery",
|
|
74639
|
+
family: "device-events",
|
|
74640
|
+
label: "Battery (low / back to normal)",
|
|
74641
|
+
bad: ["device-battery-low"],
|
|
74642
|
+
recovery: ["device-battery-normal"],
|
|
74643
|
+
snapshotLabel: "Batteries low now",
|
|
74644
|
+
snapshotSection: "battery"
|
|
74645
|
+
},
|
|
74646
|
+
{
|
|
74647
|
+
id: "consumables",
|
|
74648
|
+
family: "device-events",
|
|
74649
|
+
label: "Consumables (low / replaced)",
|
|
74650
|
+
bad: ["device-consumable-low"],
|
|
74651
|
+
recovery: ["device-consumable-normal"],
|
|
74652
|
+
snapshotLabel: "Consumables low now",
|
|
74653
|
+
snapshotSection: "consumables"
|
|
74654
|
+
},
|
|
74655
|
+
{
|
|
74656
|
+
id: "tanks",
|
|
74657
|
+
family: "device-events",
|
|
74658
|
+
label: "Tanks (low or full / back to normal)",
|
|
74659
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
74660
|
+
recovery: ["device-tank-normal"],
|
|
74661
|
+
snapshotLabel: "Tanks low or full now",
|
|
74662
|
+
snapshotSection: "tanks"
|
|
74663
|
+
},
|
|
74664
|
+
{
|
|
74665
|
+
id: "recording-health",
|
|
74666
|
+
family: "device-events",
|
|
74667
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
74668
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
74669
|
+
recovery: ["recording-healthy"],
|
|
74670
|
+
snapshotLabel: "Recordings stalled now",
|
|
74671
|
+
snapshotSection: null
|
|
74672
|
+
},
|
|
74673
|
+
{
|
|
74674
|
+
id: "node-connectivity",
|
|
74675
|
+
family: "system",
|
|
74676
|
+
label: "Node connectivity (offline / back online)",
|
|
74677
|
+
bad: ["node-offline"],
|
|
74678
|
+
recovery: ["node-online"],
|
|
74679
|
+
snapshotLabel: "Nodes offline now",
|
|
74680
|
+
snapshotSection: "nodes"
|
|
74681
|
+
},
|
|
74682
|
+
{
|
|
74683
|
+
id: "storage-space",
|
|
74684
|
+
family: "system",
|
|
74685
|
+
label: "Storage space (low or critical / ok again)",
|
|
74686
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
74687
|
+
recovery: ["storage-location-ok"],
|
|
74688
|
+
snapshotLabel: "Storage locations low now",
|
|
74689
|
+
snapshotSection: null
|
|
74690
|
+
},
|
|
74691
|
+
{
|
|
74692
|
+
id: "critical-alerts",
|
|
74693
|
+
family: "system",
|
|
74694
|
+
label: "Critical alerts (raised / resolved)",
|
|
74695
|
+
bad: ["alert-critical"],
|
|
74696
|
+
recovery: ["alert-critical-resolved"],
|
|
74697
|
+
snapshotLabel: "Critical alerts open now",
|
|
74698
|
+
snapshotSection: null
|
|
74699
|
+
},
|
|
74700
|
+
{
|
|
74701
|
+
id: "rule-health",
|
|
74702
|
+
family: "system",
|
|
74703
|
+
label: "Rule health (broken / repaired)",
|
|
74704
|
+
bad: ["rule-broken"],
|
|
74705
|
+
recovery: ["rule-repaired"],
|
|
74706
|
+
snapshotLabel: "Notification rules broken now",
|
|
74707
|
+
snapshotSection: null
|
|
74708
|
+
}
|
|
74709
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
74587
74710
|
new Set([
|
|
74588
74711
|
"disarmed",
|
|
74589
74712
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.615",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|