@camstack/addon-provider-rtsp 1.2.139 → 1.2.141
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
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
//#endregion
|
|
24
24
|
let node_net = require("node:net");
|
|
25
25
|
node_net = __toESM(node_net);
|
|
26
|
-
//#region ../types/dist/event-category-
|
|
26
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
27
27
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
28
28
|
EventCategory["SystemBoot"] = "system.boot";
|
|
29
29
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -711,6 +711,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
711
711
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
712
712
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
713
713
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
714
|
+
/**
|
|
715
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
716
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
717
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
718
|
+
*/
|
|
719
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
720
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
721
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
714
722
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
715
723
|
/**
|
|
716
724
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5438,7 +5446,7 @@ var ZodIssueCode = {
|
|
|
5438
5446
|
var ZodFirstPartyTypeKind;
|
|
5439
5447
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5440
5448
|
//#endregion
|
|
5441
|
-
//#region ../types/dist/sleep-
|
|
5449
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5442
5450
|
/**
|
|
5443
5451
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5444
5452
|
* window to float samples (D455).
|
|
@@ -42520,6 +42528,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42520
42528
|
"alert-critical",
|
|
42521
42529
|
"alert-error",
|
|
42522
42530
|
"alert-critical-resolved",
|
|
42531
|
+
"rule-broken",
|
|
42532
|
+
"rule-repaired",
|
|
42523
42533
|
"camera-online",
|
|
42524
42534
|
"camera-offline",
|
|
42525
42535
|
"camera-disabled",
|
|
@@ -78974,6 +78984,8 @@ new Map(Object.entries({
|
|
|
78974
78984
|
"alert-critical": "system",
|
|
78975
78985
|
"alert-error": "system",
|
|
78976
78986
|
"alert-critical-resolved": "system",
|
|
78987
|
+
"rule-broken": "system",
|
|
78988
|
+
"rule-repaired": "system",
|
|
78977
78989
|
"storage-location-low": "system",
|
|
78978
78990
|
"storage-location-critical": "system",
|
|
78979
78991
|
"storage-location-ok": "system",
|
|
@@ -79108,6 +79120,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79108
79120
|
"alert-critical-resolved"
|
|
79109
79121
|
]
|
|
79110
79122
|
},
|
|
79123
|
+
{
|
|
79124
|
+
id: "rule-health",
|
|
79125
|
+
family: "system",
|
|
79126
|
+
label: "Notification rules",
|
|
79127
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
79128
|
+
},
|
|
79111
79129
|
{
|
|
79112
79130
|
id: "alarm",
|
|
79113
79131
|
family: "alarm",
|
|
@@ -79385,6 +79403,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79385
79403
|
[...RULE_TEXT],
|
|
79386
79404
|
[...RULE_TEXT],
|
|
79387
79405
|
[...RULE_TEXT],
|
|
79406
|
+
[...RULE_TEXT],
|
|
79407
|
+
[...RULE_TEXT],
|
|
79408
|
+
[...RULE_TEXT],
|
|
79409
|
+
[...RULE_TEXT],
|
|
79388
79410
|
([...RULE_TEXT], [...UPDATES]),
|
|
79389
79411
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79390
79412
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79423,6 +79445,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79423
79445
|
[...RULE_TEXT],
|
|
79424
79446
|
...STATE_SUMMARY_VARS
|
|
79425
79447
|
];
|
|
79448
|
+
new Map([
|
|
79449
|
+
{
|
|
79450
|
+
id: "device-connectivity",
|
|
79451
|
+
family: "device-events",
|
|
79452
|
+
label: "Device connectivity (offline / back online)",
|
|
79453
|
+
bad: ["device-offline"],
|
|
79454
|
+
recovery: ["device-online"],
|
|
79455
|
+
snapshotLabel: "Devices offline now",
|
|
79456
|
+
snapshotSection: "device-state"
|
|
79457
|
+
},
|
|
79458
|
+
{
|
|
79459
|
+
id: "device-switch",
|
|
79460
|
+
family: "device-events",
|
|
79461
|
+
label: "Device switched off / back on",
|
|
79462
|
+
bad: ["device-disabled"],
|
|
79463
|
+
recovery: ["device-enabled"],
|
|
79464
|
+
snapshotLabel: "Devices switched off now",
|
|
79465
|
+
snapshotSection: "device-state"
|
|
79466
|
+
},
|
|
79467
|
+
{
|
|
79468
|
+
id: "stream-connectivity",
|
|
79469
|
+
family: "device-events",
|
|
79470
|
+
label: "Stream connectivity (offline / back online)",
|
|
79471
|
+
bad: ["stream-offline"],
|
|
79472
|
+
recovery: ["stream-online"],
|
|
79473
|
+
snapshotLabel: "Streams offline now",
|
|
79474
|
+
snapshotSection: "streams"
|
|
79475
|
+
},
|
|
79476
|
+
{
|
|
79477
|
+
id: "battery",
|
|
79478
|
+
family: "device-events",
|
|
79479
|
+
label: "Battery (low / back to normal)",
|
|
79480
|
+
bad: ["device-battery-low"],
|
|
79481
|
+
recovery: ["device-battery-normal"],
|
|
79482
|
+
snapshotLabel: "Batteries low now",
|
|
79483
|
+
snapshotSection: "battery"
|
|
79484
|
+
},
|
|
79485
|
+
{
|
|
79486
|
+
id: "consumables",
|
|
79487
|
+
family: "device-events",
|
|
79488
|
+
label: "Consumables (low / replaced)",
|
|
79489
|
+
bad: ["device-consumable-low"],
|
|
79490
|
+
recovery: ["device-consumable-normal"],
|
|
79491
|
+
snapshotLabel: "Consumables low now",
|
|
79492
|
+
snapshotSection: "consumables"
|
|
79493
|
+
},
|
|
79494
|
+
{
|
|
79495
|
+
id: "tanks",
|
|
79496
|
+
family: "device-events",
|
|
79497
|
+
label: "Tanks (low or full / back to normal)",
|
|
79498
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79499
|
+
recovery: ["device-tank-normal"],
|
|
79500
|
+
snapshotLabel: "Tanks low or full now",
|
|
79501
|
+
snapshotSection: "tanks"
|
|
79502
|
+
},
|
|
79503
|
+
{
|
|
79504
|
+
id: "recording-health",
|
|
79505
|
+
family: "device-events",
|
|
79506
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79507
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79508
|
+
recovery: ["recording-healthy"],
|
|
79509
|
+
snapshotLabel: "Recordings stalled now",
|
|
79510
|
+
snapshotSection: null
|
|
79511
|
+
},
|
|
79512
|
+
{
|
|
79513
|
+
id: "node-connectivity",
|
|
79514
|
+
family: "system",
|
|
79515
|
+
label: "Node connectivity (offline / back online)",
|
|
79516
|
+
bad: ["node-offline"],
|
|
79517
|
+
recovery: ["node-online"],
|
|
79518
|
+
snapshotLabel: "Nodes offline now",
|
|
79519
|
+
snapshotSection: "nodes"
|
|
79520
|
+
},
|
|
79521
|
+
{
|
|
79522
|
+
id: "storage-space",
|
|
79523
|
+
family: "system",
|
|
79524
|
+
label: "Storage space (low or critical / ok again)",
|
|
79525
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79526
|
+
recovery: ["storage-location-ok"],
|
|
79527
|
+
snapshotLabel: "Storage locations low now",
|
|
79528
|
+
snapshotSection: null
|
|
79529
|
+
},
|
|
79530
|
+
{
|
|
79531
|
+
id: "critical-alerts",
|
|
79532
|
+
family: "system",
|
|
79533
|
+
label: "Critical alerts (raised / resolved)",
|
|
79534
|
+
bad: ["alert-critical"],
|
|
79535
|
+
recovery: ["alert-critical-resolved"],
|
|
79536
|
+
snapshotLabel: "Critical alerts open now",
|
|
79537
|
+
snapshotSection: null
|
|
79538
|
+
},
|
|
79539
|
+
{
|
|
79540
|
+
id: "rule-health",
|
|
79541
|
+
family: "system",
|
|
79542
|
+
label: "Rule health (broken / repaired)",
|
|
79543
|
+
bad: ["rule-broken"],
|
|
79544
|
+
recovery: ["rule-repaired"],
|
|
79545
|
+
snapshotLabel: "Notification rules broken now",
|
|
79546
|
+
snapshotSection: null
|
|
79547
|
+
}
|
|
79548
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79426
79549
|
new Set([
|
|
79427
79550
|
"disarmed",
|
|
79428
79551
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import net from "node:net";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
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-
|
|
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).
|
|
@@ -42496,6 +42504,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42496
42504
|
"alert-critical",
|
|
42497
42505
|
"alert-error",
|
|
42498
42506
|
"alert-critical-resolved",
|
|
42507
|
+
"rule-broken",
|
|
42508
|
+
"rule-repaired",
|
|
42499
42509
|
"camera-online",
|
|
42500
42510
|
"camera-offline",
|
|
42501
42511
|
"camera-disabled",
|
|
@@ -78950,6 +78960,8 @@ new Map(Object.entries({
|
|
|
78950
78960
|
"alert-critical": "system",
|
|
78951
78961
|
"alert-error": "system",
|
|
78952
78962
|
"alert-critical-resolved": "system",
|
|
78963
|
+
"rule-broken": "system",
|
|
78964
|
+
"rule-repaired": "system",
|
|
78953
78965
|
"storage-location-low": "system",
|
|
78954
78966
|
"storage-location-critical": "system",
|
|
78955
78967
|
"storage-location-ok": "system",
|
|
@@ -79084,6 +79096,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79084
79096
|
"alert-critical-resolved"
|
|
79085
79097
|
]
|
|
79086
79098
|
},
|
|
79099
|
+
{
|
|
79100
|
+
id: "rule-health",
|
|
79101
|
+
family: "system",
|
|
79102
|
+
label: "Notification rules",
|
|
79103
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
79104
|
+
},
|
|
79087
79105
|
{
|
|
79088
79106
|
id: "alarm",
|
|
79089
79107
|
family: "alarm",
|
|
@@ -79361,6 +79379,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79361
79379
|
[...RULE_TEXT],
|
|
79362
79380
|
[...RULE_TEXT],
|
|
79363
79381
|
[...RULE_TEXT],
|
|
79382
|
+
[...RULE_TEXT],
|
|
79383
|
+
[...RULE_TEXT],
|
|
79384
|
+
[...RULE_TEXT],
|
|
79385
|
+
[...RULE_TEXT],
|
|
79364
79386
|
([...RULE_TEXT], [...UPDATES]),
|
|
79365
79387
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79366
79388
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79399,6 +79421,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79399
79421
|
[...RULE_TEXT],
|
|
79400
79422
|
...STATE_SUMMARY_VARS
|
|
79401
79423
|
];
|
|
79424
|
+
new Map([
|
|
79425
|
+
{
|
|
79426
|
+
id: "device-connectivity",
|
|
79427
|
+
family: "device-events",
|
|
79428
|
+
label: "Device connectivity (offline / back online)",
|
|
79429
|
+
bad: ["device-offline"],
|
|
79430
|
+
recovery: ["device-online"],
|
|
79431
|
+
snapshotLabel: "Devices offline now",
|
|
79432
|
+
snapshotSection: "device-state"
|
|
79433
|
+
},
|
|
79434
|
+
{
|
|
79435
|
+
id: "device-switch",
|
|
79436
|
+
family: "device-events",
|
|
79437
|
+
label: "Device switched off / back on",
|
|
79438
|
+
bad: ["device-disabled"],
|
|
79439
|
+
recovery: ["device-enabled"],
|
|
79440
|
+
snapshotLabel: "Devices switched off now",
|
|
79441
|
+
snapshotSection: "device-state"
|
|
79442
|
+
},
|
|
79443
|
+
{
|
|
79444
|
+
id: "stream-connectivity",
|
|
79445
|
+
family: "device-events",
|
|
79446
|
+
label: "Stream connectivity (offline / back online)",
|
|
79447
|
+
bad: ["stream-offline"],
|
|
79448
|
+
recovery: ["stream-online"],
|
|
79449
|
+
snapshotLabel: "Streams offline now",
|
|
79450
|
+
snapshotSection: "streams"
|
|
79451
|
+
},
|
|
79452
|
+
{
|
|
79453
|
+
id: "battery",
|
|
79454
|
+
family: "device-events",
|
|
79455
|
+
label: "Battery (low / back to normal)",
|
|
79456
|
+
bad: ["device-battery-low"],
|
|
79457
|
+
recovery: ["device-battery-normal"],
|
|
79458
|
+
snapshotLabel: "Batteries low now",
|
|
79459
|
+
snapshotSection: "battery"
|
|
79460
|
+
},
|
|
79461
|
+
{
|
|
79462
|
+
id: "consumables",
|
|
79463
|
+
family: "device-events",
|
|
79464
|
+
label: "Consumables (low / replaced)",
|
|
79465
|
+
bad: ["device-consumable-low"],
|
|
79466
|
+
recovery: ["device-consumable-normal"],
|
|
79467
|
+
snapshotLabel: "Consumables low now",
|
|
79468
|
+
snapshotSection: "consumables"
|
|
79469
|
+
},
|
|
79470
|
+
{
|
|
79471
|
+
id: "tanks",
|
|
79472
|
+
family: "device-events",
|
|
79473
|
+
label: "Tanks (low or full / back to normal)",
|
|
79474
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79475
|
+
recovery: ["device-tank-normal"],
|
|
79476
|
+
snapshotLabel: "Tanks low or full now",
|
|
79477
|
+
snapshotSection: "tanks"
|
|
79478
|
+
},
|
|
79479
|
+
{
|
|
79480
|
+
id: "recording-health",
|
|
79481
|
+
family: "device-events",
|
|
79482
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79483
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79484
|
+
recovery: ["recording-healthy"],
|
|
79485
|
+
snapshotLabel: "Recordings stalled now",
|
|
79486
|
+
snapshotSection: null
|
|
79487
|
+
},
|
|
79488
|
+
{
|
|
79489
|
+
id: "node-connectivity",
|
|
79490
|
+
family: "system",
|
|
79491
|
+
label: "Node connectivity (offline / back online)",
|
|
79492
|
+
bad: ["node-offline"],
|
|
79493
|
+
recovery: ["node-online"],
|
|
79494
|
+
snapshotLabel: "Nodes offline now",
|
|
79495
|
+
snapshotSection: "nodes"
|
|
79496
|
+
},
|
|
79497
|
+
{
|
|
79498
|
+
id: "storage-space",
|
|
79499
|
+
family: "system",
|
|
79500
|
+
label: "Storage space (low or critical / ok again)",
|
|
79501
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79502
|
+
recovery: ["storage-location-ok"],
|
|
79503
|
+
snapshotLabel: "Storage locations low now",
|
|
79504
|
+
snapshotSection: null
|
|
79505
|
+
},
|
|
79506
|
+
{
|
|
79507
|
+
id: "critical-alerts",
|
|
79508
|
+
family: "system",
|
|
79509
|
+
label: "Critical alerts (raised / resolved)",
|
|
79510
|
+
bad: ["alert-critical"],
|
|
79511
|
+
recovery: ["alert-critical-resolved"],
|
|
79512
|
+
snapshotLabel: "Critical alerts open now",
|
|
79513
|
+
snapshotSection: null
|
|
79514
|
+
},
|
|
79515
|
+
{
|
|
79516
|
+
id: "rule-health",
|
|
79517
|
+
family: "system",
|
|
79518
|
+
label: "Rule health (broken / repaired)",
|
|
79519
|
+
bad: ["rule-broken"],
|
|
79520
|
+
recovery: ["rule-repaired"],
|
|
79521
|
+
snapshotLabel: "Notification rules broken now",
|
|
79522
|
+
snapshotSection: null
|
|
79523
|
+
}
|
|
79524
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79402
79525
|
new Set([
|
|
79403
79526
|
"disarmed",
|
|
79404
79527
|
"armed_home",
|