@camstack/addon-provider-amcrest 0.2.151 → 0.2.152
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
|
@@ -35,7 +35,7 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
35
35
|
let node_child_process = require("node:child_process");
|
|
36
36
|
require("node:zlib");
|
|
37
37
|
let node_os = require("node:os");
|
|
38
|
-
//#region ../types/dist/event-category-
|
|
38
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
39
39
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
40
40
|
EventCategory["SystemBoot"] = "system.boot";
|
|
41
41
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -723,6 +723,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
723
723
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
724
724
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
725
725
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
726
|
+
/**
|
|
727
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
728
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
729
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
730
|
+
*/
|
|
731
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
732
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
733
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
726
734
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
727
735
|
/**
|
|
728
736
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5450,7 +5458,7 @@ var ZodIssueCode = {
|
|
|
5450
5458
|
var ZodFirstPartyTypeKind;
|
|
5451
5459
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5452
5460
|
//#endregion
|
|
5453
|
-
//#region ../types/dist/sleep-
|
|
5461
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5454
5462
|
/**
|
|
5455
5463
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5456
5464
|
* window to float samples (D455).
|
|
@@ -42548,6 +42556,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42548
42556
|
"alert-critical",
|
|
42549
42557
|
"alert-error",
|
|
42550
42558
|
"alert-critical-resolved",
|
|
42559
|
+
"rule-broken",
|
|
42560
|
+
"rule-repaired",
|
|
42551
42561
|
"camera-online",
|
|
42552
42562
|
"camera-offline",
|
|
42553
42563
|
"camera-disabled",
|
|
@@ -80009,6 +80019,8 @@ new Map(Object.entries({
|
|
|
80009
80019
|
"alert-critical": "system",
|
|
80010
80020
|
"alert-error": "system",
|
|
80011
80021
|
"alert-critical-resolved": "system",
|
|
80022
|
+
"rule-broken": "system",
|
|
80023
|
+
"rule-repaired": "system",
|
|
80012
80024
|
"storage-location-low": "system",
|
|
80013
80025
|
"storage-location-critical": "system",
|
|
80014
80026
|
"storage-location-ok": "system",
|
|
@@ -80143,6 +80155,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80143
80155
|
"alert-critical-resolved"
|
|
80144
80156
|
]
|
|
80145
80157
|
},
|
|
80158
|
+
{
|
|
80159
|
+
id: "rule-health",
|
|
80160
|
+
family: "system",
|
|
80161
|
+
label: "Notification rules",
|
|
80162
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
80163
|
+
},
|
|
80146
80164
|
{
|
|
80147
80165
|
id: "alarm",
|
|
80148
80166
|
family: "alarm",
|
|
@@ -80420,6 +80438,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
80420
80438
|
[...RULE_TEXT],
|
|
80421
80439
|
[...RULE_TEXT],
|
|
80422
80440
|
[...RULE_TEXT],
|
|
80441
|
+
[...RULE_TEXT],
|
|
80442
|
+
[...RULE_TEXT],
|
|
80443
|
+
[...RULE_TEXT],
|
|
80444
|
+
[...RULE_TEXT],
|
|
80423
80445
|
([...RULE_TEXT], [...UPDATES]),
|
|
80424
80446
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
80425
80447
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -80458,6 +80480,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
80458
80480
|
[...RULE_TEXT],
|
|
80459
80481
|
...STATE_SUMMARY_VARS
|
|
80460
80482
|
];
|
|
80483
|
+
new Map([
|
|
80484
|
+
{
|
|
80485
|
+
id: "device-connectivity",
|
|
80486
|
+
family: "device-events",
|
|
80487
|
+
label: "Device connectivity (offline / back online)",
|
|
80488
|
+
bad: ["device-offline"],
|
|
80489
|
+
recovery: ["device-online"],
|
|
80490
|
+
snapshotLabel: "Devices offline now",
|
|
80491
|
+
snapshotSection: "device-state"
|
|
80492
|
+
},
|
|
80493
|
+
{
|
|
80494
|
+
id: "device-switch",
|
|
80495
|
+
family: "device-events",
|
|
80496
|
+
label: "Device switched off / back on",
|
|
80497
|
+
bad: ["device-disabled"],
|
|
80498
|
+
recovery: ["device-enabled"],
|
|
80499
|
+
snapshotLabel: "Devices switched off now",
|
|
80500
|
+
snapshotSection: "device-state"
|
|
80501
|
+
},
|
|
80502
|
+
{
|
|
80503
|
+
id: "stream-connectivity",
|
|
80504
|
+
family: "device-events",
|
|
80505
|
+
label: "Stream connectivity (offline / back online)",
|
|
80506
|
+
bad: ["stream-offline"],
|
|
80507
|
+
recovery: ["stream-online"],
|
|
80508
|
+
snapshotLabel: "Streams offline now",
|
|
80509
|
+
snapshotSection: "streams"
|
|
80510
|
+
},
|
|
80511
|
+
{
|
|
80512
|
+
id: "battery",
|
|
80513
|
+
family: "device-events",
|
|
80514
|
+
label: "Battery (low / back to normal)",
|
|
80515
|
+
bad: ["device-battery-low"],
|
|
80516
|
+
recovery: ["device-battery-normal"],
|
|
80517
|
+
snapshotLabel: "Batteries low now",
|
|
80518
|
+
snapshotSection: "battery"
|
|
80519
|
+
},
|
|
80520
|
+
{
|
|
80521
|
+
id: "consumables",
|
|
80522
|
+
family: "device-events",
|
|
80523
|
+
label: "Consumables (low / replaced)",
|
|
80524
|
+
bad: ["device-consumable-low"],
|
|
80525
|
+
recovery: ["device-consumable-normal"],
|
|
80526
|
+
snapshotLabel: "Consumables low now",
|
|
80527
|
+
snapshotSection: "consumables"
|
|
80528
|
+
},
|
|
80529
|
+
{
|
|
80530
|
+
id: "tanks",
|
|
80531
|
+
family: "device-events",
|
|
80532
|
+
label: "Tanks (low or full / back to normal)",
|
|
80533
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
80534
|
+
recovery: ["device-tank-normal"],
|
|
80535
|
+
snapshotLabel: "Tanks low or full now",
|
|
80536
|
+
snapshotSection: "tanks"
|
|
80537
|
+
},
|
|
80538
|
+
{
|
|
80539
|
+
id: "recording-health",
|
|
80540
|
+
family: "device-events",
|
|
80541
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
80542
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
80543
|
+
recovery: ["recording-healthy"],
|
|
80544
|
+
snapshotLabel: "Recordings stalled now",
|
|
80545
|
+
snapshotSection: null
|
|
80546
|
+
},
|
|
80547
|
+
{
|
|
80548
|
+
id: "node-connectivity",
|
|
80549
|
+
family: "system",
|
|
80550
|
+
label: "Node connectivity (offline / back online)",
|
|
80551
|
+
bad: ["node-offline"],
|
|
80552
|
+
recovery: ["node-online"],
|
|
80553
|
+
snapshotLabel: "Nodes offline now",
|
|
80554
|
+
snapshotSection: "nodes"
|
|
80555
|
+
},
|
|
80556
|
+
{
|
|
80557
|
+
id: "storage-space",
|
|
80558
|
+
family: "system",
|
|
80559
|
+
label: "Storage space (low or critical / ok again)",
|
|
80560
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
80561
|
+
recovery: ["storage-location-ok"],
|
|
80562
|
+
snapshotLabel: "Storage locations low now",
|
|
80563
|
+
snapshotSection: null
|
|
80564
|
+
},
|
|
80565
|
+
{
|
|
80566
|
+
id: "critical-alerts",
|
|
80567
|
+
family: "system",
|
|
80568
|
+
label: "Critical alerts (raised / resolved)",
|
|
80569
|
+
bad: ["alert-critical"],
|
|
80570
|
+
recovery: ["alert-critical-resolved"],
|
|
80571
|
+
snapshotLabel: "Critical alerts open now",
|
|
80572
|
+
snapshotSection: null
|
|
80573
|
+
},
|
|
80574
|
+
{
|
|
80575
|
+
id: "rule-health",
|
|
80576
|
+
family: "system",
|
|
80577
|
+
label: "Rule health (broken / repaired)",
|
|
80578
|
+
bad: ["rule-broken"],
|
|
80579
|
+
recovery: ["rule-repaired"],
|
|
80580
|
+
snapshotLabel: "Notification rules broken now",
|
|
80581
|
+
snapshotSection: null
|
|
80582
|
+
}
|
|
80583
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
80461
80584
|
new Set([
|
|
80462
80585
|
"disarmed",
|
|
80463
80586
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { networkInterfaces } from "node:os";
|
|
|
14
14
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
15
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region ../types/dist/event-category-
|
|
17
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
18
18
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
19
19
|
EventCategory["SystemBoot"] = "system.boot";
|
|
20
20
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -702,6 +702,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
702
702
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
703
703
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
704
704
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
705
|
+
/**
|
|
706
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
707
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
708
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
709
|
+
*/
|
|
710
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
711
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
712
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
705
713
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
706
714
|
/**
|
|
707
715
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5429,7 +5437,7 @@ var ZodIssueCode = {
|
|
|
5429
5437
|
var ZodFirstPartyTypeKind;
|
|
5430
5438
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5431
5439
|
//#endregion
|
|
5432
|
-
//#region ../types/dist/sleep-
|
|
5440
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5433
5441
|
/**
|
|
5434
5442
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5435
5443
|
* window to float samples (D455).
|
|
@@ -42527,6 +42535,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42527
42535
|
"alert-critical",
|
|
42528
42536
|
"alert-error",
|
|
42529
42537
|
"alert-critical-resolved",
|
|
42538
|
+
"rule-broken",
|
|
42539
|
+
"rule-repaired",
|
|
42530
42540
|
"camera-online",
|
|
42531
42541
|
"camera-offline",
|
|
42532
42542
|
"camera-disabled",
|
|
@@ -79988,6 +79998,8 @@ new Map(Object.entries({
|
|
|
79988
79998
|
"alert-critical": "system",
|
|
79989
79999
|
"alert-error": "system",
|
|
79990
80000
|
"alert-critical-resolved": "system",
|
|
80001
|
+
"rule-broken": "system",
|
|
80002
|
+
"rule-repaired": "system",
|
|
79991
80003
|
"storage-location-low": "system",
|
|
79992
80004
|
"storage-location-critical": "system",
|
|
79993
80005
|
"storage-location-ok": "system",
|
|
@@ -80122,6 +80134,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80122
80134
|
"alert-critical-resolved"
|
|
80123
80135
|
]
|
|
80124
80136
|
},
|
|
80137
|
+
{
|
|
80138
|
+
id: "rule-health",
|
|
80139
|
+
family: "system",
|
|
80140
|
+
label: "Notification rules",
|
|
80141
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
80142
|
+
},
|
|
80125
80143
|
{
|
|
80126
80144
|
id: "alarm",
|
|
80127
80145
|
family: "alarm",
|
|
@@ -80399,6 +80417,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
80399
80417
|
[...RULE_TEXT],
|
|
80400
80418
|
[...RULE_TEXT],
|
|
80401
80419
|
[...RULE_TEXT],
|
|
80420
|
+
[...RULE_TEXT],
|
|
80421
|
+
[...RULE_TEXT],
|
|
80422
|
+
[...RULE_TEXT],
|
|
80423
|
+
[...RULE_TEXT],
|
|
80402
80424
|
([...RULE_TEXT], [...UPDATES]),
|
|
80403
80425
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
80404
80426
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -80437,6 +80459,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
80437
80459
|
[...RULE_TEXT],
|
|
80438
80460
|
...STATE_SUMMARY_VARS
|
|
80439
80461
|
];
|
|
80462
|
+
new Map([
|
|
80463
|
+
{
|
|
80464
|
+
id: "device-connectivity",
|
|
80465
|
+
family: "device-events",
|
|
80466
|
+
label: "Device connectivity (offline / back online)",
|
|
80467
|
+
bad: ["device-offline"],
|
|
80468
|
+
recovery: ["device-online"],
|
|
80469
|
+
snapshotLabel: "Devices offline now",
|
|
80470
|
+
snapshotSection: "device-state"
|
|
80471
|
+
},
|
|
80472
|
+
{
|
|
80473
|
+
id: "device-switch",
|
|
80474
|
+
family: "device-events",
|
|
80475
|
+
label: "Device switched off / back on",
|
|
80476
|
+
bad: ["device-disabled"],
|
|
80477
|
+
recovery: ["device-enabled"],
|
|
80478
|
+
snapshotLabel: "Devices switched off now",
|
|
80479
|
+
snapshotSection: "device-state"
|
|
80480
|
+
},
|
|
80481
|
+
{
|
|
80482
|
+
id: "stream-connectivity",
|
|
80483
|
+
family: "device-events",
|
|
80484
|
+
label: "Stream connectivity (offline / back online)",
|
|
80485
|
+
bad: ["stream-offline"],
|
|
80486
|
+
recovery: ["stream-online"],
|
|
80487
|
+
snapshotLabel: "Streams offline now",
|
|
80488
|
+
snapshotSection: "streams"
|
|
80489
|
+
},
|
|
80490
|
+
{
|
|
80491
|
+
id: "battery",
|
|
80492
|
+
family: "device-events",
|
|
80493
|
+
label: "Battery (low / back to normal)",
|
|
80494
|
+
bad: ["device-battery-low"],
|
|
80495
|
+
recovery: ["device-battery-normal"],
|
|
80496
|
+
snapshotLabel: "Batteries low now",
|
|
80497
|
+
snapshotSection: "battery"
|
|
80498
|
+
},
|
|
80499
|
+
{
|
|
80500
|
+
id: "consumables",
|
|
80501
|
+
family: "device-events",
|
|
80502
|
+
label: "Consumables (low / replaced)",
|
|
80503
|
+
bad: ["device-consumable-low"],
|
|
80504
|
+
recovery: ["device-consumable-normal"],
|
|
80505
|
+
snapshotLabel: "Consumables low now",
|
|
80506
|
+
snapshotSection: "consumables"
|
|
80507
|
+
},
|
|
80508
|
+
{
|
|
80509
|
+
id: "tanks",
|
|
80510
|
+
family: "device-events",
|
|
80511
|
+
label: "Tanks (low or full / back to normal)",
|
|
80512
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
80513
|
+
recovery: ["device-tank-normal"],
|
|
80514
|
+
snapshotLabel: "Tanks low or full now",
|
|
80515
|
+
snapshotSection: "tanks"
|
|
80516
|
+
},
|
|
80517
|
+
{
|
|
80518
|
+
id: "recording-health",
|
|
80519
|
+
family: "device-events",
|
|
80520
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
80521
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
80522
|
+
recovery: ["recording-healthy"],
|
|
80523
|
+
snapshotLabel: "Recordings stalled now",
|
|
80524
|
+
snapshotSection: null
|
|
80525
|
+
},
|
|
80526
|
+
{
|
|
80527
|
+
id: "node-connectivity",
|
|
80528
|
+
family: "system",
|
|
80529
|
+
label: "Node connectivity (offline / back online)",
|
|
80530
|
+
bad: ["node-offline"],
|
|
80531
|
+
recovery: ["node-online"],
|
|
80532
|
+
snapshotLabel: "Nodes offline now",
|
|
80533
|
+
snapshotSection: "nodes"
|
|
80534
|
+
},
|
|
80535
|
+
{
|
|
80536
|
+
id: "storage-space",
|
|
80537
|
+
family: "system",
|
|
80538
|
+
label: "Storage space (low or critical / ok again)",
|
|
80539
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
80540
|
+
recovery: ["storage-location-ok"],
|
|
80541
|
+
snapshotLabel: "Storage locations low now",
|
|
80542
|
+
snapshotSection: null
|
|
80543
|
+
},
|
|
80544
|
+
{
|
|
80545
|
+
id: "critical-alerts",
|
|
80546
|
+
family: "system",
|
|
80547
|
+
label: "Critical alerts (raised / resolved)",
|
|
80548
|
+
bad: ["alert-critical"],
|
|
80549
|
+
recovery: ["alert-critical-resolved"],
|
|
80550
|
+
snapshotLabel: "Critical alerts open now",
|
|
80551
|
+
snapshotSection: null
|
|
80552
|
+
},
|
|
80553
|
+
{
|
|
80554
|
+
id: "rule-health",
|
|
80555
|
+
family: "system",
|
|
80556
|
+
label: "Rule health (broken / repaired)",
|
|
80557
|
+
bad: ["rule-broken"],
|
|
80558
|
+
recovery: ["rule-repaired"],
|
|
80559
|
+
snapshotLabel: "Notification rules broken now",
|
|
80560
|
+
snapshotSection: null
|
|
80561
|
+
}
|
|
80562
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
80440
80563
|
new Set([
|
|
80441
80564
|
"disarmed",
|
|
80442
80565
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.152",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|