@camstack/addon-provider-hikvision 1.2.165 → 1.2.167
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
|
@@ -34,7 +34,7 @@ let node_os = require("node:os");
|
|
|
34
34
|
let node_net = require("node:net");
|
|
35
35
|
let node_http = require("node:http");
|
|
36
36
|
let node_https = require("node:https");
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -722,6 +722,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
722
722
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
723
723
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
724
724
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
725
|
+
/**
|
|
726
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
727
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
728
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
729
|
+
*/
|
|
730
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
731
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
732
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
725
733
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
726
734
|
/**
|
|
727
735
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5449,7 +5457,7 @@ var ZodIssueCode = {
|
|
|
5449
5457
|
var ZodFirstPartyTypeKind;
|
|
5450
5458
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5451
5459
|
//#endregion
|
|
5452
|
-
//#region ../types/dist/sleep-
|
|
5460
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5453
5461
|
/**
|
|
5454
5462
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5455
5463
|
* window to float samples (D455).
|
|
@@ -42859,6 +42867,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42859
42867
|
"alert-critical",
|
|
42860
42868
|
"alert-error",
|
|
42861
42869
|
"alert-critical-resolved",
|
|
42870
|
+
"rule-broken",
|
|
42871
|
+
"rule-repaired",
|
|
42862
42872
|
"camera-online",
|
|
42863
42873
|
"camera-offline",
|
|
42864
42874
|
"camera-disabled",
|
|
@@ -80455,6 +80465,8 @@ new Map(Object.entries({
|
|
|
80455
80465
|
"alert-critical": "system",
|
|
80456
80466
|
"alert-error": "system",
|
|
80457
80467
|
"alert-critical-resolved": "system",
|
|
80468
|
+
"rule-broken": "system",
|
|
80469
|
+
"rule-repaired": "system",
|
|
80458
80470
|
"storage-location-low": "system",
|
|
80459
80471
|
"storage-location-critical": "system",
|
|
80460
80472
|
"storage-location-ok": "system",
|
|
@@ -80589,6 +80601,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80589
80601
|
"alert-critical-resolved"
|
|
80590
80602
|
]
|
|
80591
80603
|
},
|
|
80604
|
+
{
|
|
80605
|
+
id: "rule-health",
|
|
80606
|
+
family: "system",
|
|
80607
|
+
label: "Notification rules",
|
|
80608
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
80609
|
+
},
|
|
80592
80610
|
{
|
|
80593
80611
|
id: "alarm",
|
|
80594
80612
|
family: "alarm",
|
|
@@ -80866,6 +80884,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
80866
80884
|
[...RULE_TEXT],
|
|
80867
80885
|
[...RULE_TEXT],
|
|
80868
80886
|
[...RULE_TEXT],
|
|
80887
|
+
[...RULE_TEXT],
|
|
80888
|
+
[...RULE_TEXT],
|
|
80889
|
+
[...RULE_TEXT],
|
|
80890
|
+
[...RULE_TEXT],
|
|
80869
80891
|
([...RULE_TEXT], [...UPDATES]),
|
|
80870
80892
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
80871
80893
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -80904,6 +80926,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
80904
80926
|
[...RULE_TEXT],
|
|
80905
80927
|
...STATE_SUMMARY_VARS
|
|
80906
80928
|
];
|
|
80929
|
+
new Map([
|
|
80930
|
+
{
|
|
80931
|
+
id: "device-connectivity",
|
|
80932
|
+
family: "device-events",
|
|
80933
|
+
label: "Device connectivity (offline / back online)",
|
|
80934
|
+
bad: ["device-offline"],
|
|
80935
|
+
recovery: ["device-online"],
|
|
80936
|
+
snapshotLabel: "Devices offline now",
|
|
80937
|
+
snapshotSection: "device-state"
|
|
80938
|
+
},
|
|
80939
|
+
{
|
|
80940
|
+
id: "device-switch",
|
|
80941
|
+
family: "device-events",
|
|
80942
|
+
label: "Device switched off / back on",
|
|
80943
|
+
bad: ["device-disabled"],
|
|
80944
|
+
recovery: ["device-enabled"],
|
|
80945
|
+
snapshotLabel: "Devices switched off now",
|
|
80946
|
+
snapshotSection: "device-state"
|
|
80947
|
+
},
|
|
80948
|
+
{
|
|
80949
|
+
id: "stream-connectivity",
|
|
80950
|
+
family: "device-events",
|
|
80951
|
+
label: "Stream connectivity (offline / back online)",
|
|
80952
|
+
bad: ["stream-offline"],
|
|
80953
|
+
recovery: ["stream-online"],
|
|
80954
|
+
snapshotLabel: "Streams offline now",
|
|
80955
|
+
snapshotSection: "streams"
|
|
80956
|
+
},
|
|
80957
|
+
{
|
|
80958
|
+
id: "battery",
|
|
80959
|
+
family: "device-events",
|
|
80960
|
+
label: "Battery (low / back to normal)",
|
|
80961
|
+
bad: ["device-battery-low"],
|
|
80962
|
+
recovery: ["device-battery-normal"],
|
|
80963
|
+
snapshotLabel: "Batteries low now",
|
|
80964
|
+
snapshotSection: "battery"
|
|
80965
|
+
},
|
|
80966
|
+
{
|
|
80967
|
+
id: "consumables",
|
|
80968
|
+
family: "device-events",
|
|
80969
|
+
label: "Consumables (low / replaced)",
|
|
80970
|
+
bad: ["device-consumable-low"],
|
|
80971
|
+
recovery: ["device-consumable-normal"],
|
|
80972
|
+
snapshotLabel: "Consumables low now",
|
|
80973
|
+
snapshotSection: "consumables"
|
|
80974
|
+
},
|
|
80975
|
+
{
|
|
80976
|
+
id: "tanks",
|
|
80977
|
+
family: "device-events",
|
|
80978
|
+
label: "Tanks (low or full / back to normal)",
|
|
80979
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
80980
|
+
recovery: ["device-tank-normal"],
|
|
80981
|
+
snapshotLabel: "Tanks low or full now",
|
|
80982
|
+
snapshotSection: "tanks"
|
|
80983
|
+
},
|
|
80984
|
+
{
|
|
80985
|
+
id: "recording-health",
|
|
80986
|
+
family: "device-events",
|
|
80987
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
80988
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
80989
|
+
recovery: ["recording-healthy"],
|
|
80990
|
+
snapshotLabel: "Recordings stalled now",
|
|
80991
|
+
snapshotSection: null
|
|
80992
|
+
},
|
|
80993
|
+
{
|
|
80994
|
+
id: "node-connectivity",
|
|
80995
|
+
family: "system",
|
|
80996
|
+
label: "Node connectivity (offline / back online)",
|
|
80997
|
+
bad: ["node-offline"],
|
|
80998
|
+
recovery: ["node-online"],
|
|
80999
|
+
snapshotLabel: "Nodes offline now",
|
|
81000
|
+
snapshotSection: "nodes"
|
|
81001
|
+
},
|
|
81002
|
+
{
|
|
81003
|
+
id: "storage-space",
|
|
81004
|
+
family: "system",
|
|
81005
|
+
label: "Storage space (low or critical / ok again)",
|
|
81006
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
81007
|
+
recovery: ["storage-location-ok"],
|
|
81008
|
+
snapshotLabel: "Storage locations low now",
|
|
81009
|
+
snapshotSection: null
|
|
81010
|
+
},
|
|
81011
|
+
{
|
|
81012
|
+
id: "critical-alerts",
|
|
81013
|
+
family: "system",
|
|
81014
|
+
label: "Critical alerts (raised / resolved)",
|
|
81015
|
+
bad: ["alert-critical"],
|
|
81016
|
+
recovery: ["alert-critical-resolved"],
|
|
81017
|
+
snapshotLabel: "Critical alerts open now",
|
|
81018
|
+
snapshotSection: null
|
|
81019
|
+
},
|
|
81020
|
+
{
|
|
81021
|
+
id: "rule-health",
|
|
81022
|
+
family: "system",
|
|
81023
|
+
label: "Rule health (broken / repaired)",
|
|
81024
|
+
bad: ["rule-broken"],
|
|
81025
|
+
recovery: ["rule-repaired"],
|
|
81026
|
+
snapshotLabel: "Notification rules broken now",
|
|
81027
|
+
snapshotSection: null
|
|
81028
|
+
}
|
|
81029
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
80907
81030
|
new Set([
|
|
80908
81031
|
"disarmed",
|
|
80909
81032
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { Agent as Agent$1, request as request$1 } from "node:https";
|
|
|
13
13
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
14
14
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region ../types/dist/event-category-
|
|
16
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
17
17
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
18
18
|
EventCategory["SystemBoot"] = "system.boot";
|
|
19
19
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -701,6 +701,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
701
701
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
702
702
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
703
703
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
704
|
+
/**
|
|
705
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
706
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
707
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
708
|
+
*/
|
|
709
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
710
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
711
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
704
712
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
705
713
|
/**
|
|
706
714
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5428,7 +5436,7 @@ var ZodIssueCode = {
|
|
|
5428
5436
|
var ZodFirstPartyTypeKind;
|
|
5429
5437
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5430
5438
|
//#endregion
|
|
5431
|
-
//#region ../types/dist/sleep-
|
|
5439
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5432
5440
|
/**
|
|
5433
5441
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5434
5442
|
* window to float samples (D455).
|
|
@@ -42838,6 +42846,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42838
42846
|
"alert-critical",
|
|
42839
42847
|
"alert-error",
|
|
42840
42848
|
"alert-critical-resolved",
|
|
42849
|
+
"rule-broken",
|
|
42850
|
+
"rule-repaired",
|
|
42841
42851
|
"camera-online",
|
|
42842
42852
|
"camera-offline",
|
|
42843
42853
|
"camera-disabled",
|
|
@@ -80434,6 +80444,8 @@ new Map(Object.entries({
|
|
|
80434
80444
|
"alert-critical": "system",
|
|
80435
80445
|
"alert-error": "system",
|
|
80436
80446
|
"alert-critical-resolved": "system",
|
|
80447
|
+
"rule-broken": "system",
|
|
80448
|
+
"rule-repaired": "system",
|
|
80437
80449
|
"storage-location-low": "system",
|
|
80438
80450
|
"storage-location-critical": "system",
|
|
80439
80451
|
"storage-location-ok": "system",
|
|
@@ -80568,6 +80580,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80568
80580
|
"alert-critical-resolved"
|
|
80569
80581
|
]
|
|
80570
80582
|
},
|
|
80583
|
+
{
|
|
80584
|
+
id: "rule-health",
|
|
80585
|
+
family: "system",
|
|
80586
|
+
label: "Notification rules",
|
|
80587
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
80588
|
+
},
|
|
80571
80589
|
{
|
|
80572
80590
|
id: "alarm",
|
|
80573
80591
|
family: "alarm",
|
|
@@ -80845,6 +80863,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
80845
80863
|
[...RULE_TEXT],
|
|
80846
80864
|
[...RULE_TEXT],
|
|
80847
80865
|
[...RULE_TEXT],
|
|
80866
|
+
[...RULE_TEXT],
|
|
80867
|
+
[...RULE_TEXT],
|
|
80868
|
+
[...RULE_TEXT],
|
|
80869
|
+
[...RULE_TEXT],
|
|
80848
80870
|
([...RULE_TEXT], [...UPDATES]),
|
|
80849
80871
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
80850
80872
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -80883,6 +80905,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
80883
80905
|
[...RULE_TEXT],
|
|
80884
80906
|
...STATE_SUMMARY_VARS
|
|
80885
80907
|
];
|
|
80908
|
+
new Map([
|
|
80909
|
+
{
|
|
80910
|
+
id: "device-connectivity",
|
|
80911
|
+
family: "device-events",
|
|
80912
|
+
label: "Device connectivity (offline / back online)",
|
|
80913
|
+
bad: ["device-offline"],
|
|
80914
|
+
recovery: ["device-online"],
|
|
80915
|
+
snapshotLabel: "Devices offline now",
|
|
80916
|
+
snapshotSection: "device-state"
|
|
80917
|
+
},
|
|
80918
|
+
{
|
|
80919
|
+
id: "device-switch",
|
|
80920
|
+
family: "device-events",
|
|
80921
|
+
label: "Device switched off / back on",
|
|
80922
|
+
bad: ["device-disabled"],
|
|
80923
|
+
recovery: ["device-enabled"],
|
|
80924
|
+
snapshotLabel: "Devices switched off now",
|
|
80925
|
+
snapshotSection: "device-state"
|
|
80926
|
+
},
|
|
80927
|
+
{
|
|
80928
|
+
id: "stream-connectivity",
|
|
80929
|
+
family: "device-events",
|
|
80930
|
+
label: "Stream connectivity (offline / back online)",
|
|
80931
|
+
bad: ["stream-offline"],
|
|
80932
|
+
recovery: ["stream-online"],
|
|
80933
|
+
snapshotLabel: "Streams offline now",
|
|
80934
|
+
snapshotSection: "streams"
|
|
80935
|
+
},
|
|
80936
|
+
{
|
|
80937
|
+
id: "battery",
|
|
80938
|
+
family: "device-events",
|
|
80939
|
+
label: "Battery (low / back to normal)",
|
|
80940
|
+
bad: ["device-battery-low"],
|
|
80941
|
+
recovery: ["device-battery-normal"],
|
|
80942
|
+
snapshotLabel: "Batteries low now",
|
|
80943
|
+
snapshotSection: "battery"
|
|
80944
|
+
},
|
|
80945
|
+
{
|
|
80946
|
+
id: "consumables",
|
|
80947
|
+
family: "device-events",
|
|
80948
|
+
label: "Consumables (low / replaced)",
|
|
80949
|
+
bad: ["device-consumable-low"],
|
|
80950
|
+
recovery: ["device-consumable-normal"],
|
|
80951
|
+
snapshotLabel: "Consumables low now",
|
|
80952
|
+
snapshotSection: "consumables"
|
|
80953
|
+
},
|
|
80954
|
+
{
|
|
80955
|
+
id: "tanks",
|
|
80956
|
+
family: "device-events",
|
|
80957
|
+
label: "Tanks (low or full / back to normal)",
|
|
80958
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
80959
|
+
recovery: ["device-tank-normal"],
|
|
80960
|
+
snapshotLabel: "Tanks low or full now",
|
|
80961
|
+
snapshotSection: "tanks"
|
|
80962
|
+
},
|
|
80963
|
+
{
|
|
80964
|
+
id: "recording-health",
|
|
80965
|
+
family: "device-events",
|
|
80966
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
80967
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
80968
|
+
recovery: ["recording-healthy"],
|
|
80969
|
+
snapshotLabel: "Recordings stalled now",
|
|
80970
|
+
snapshotSection: null
|
|
80971
|
+
},
|
|
80972
|
+
{
|
|
80973
|
+
id: "node-connectivity",
|
|
80974
|
+
family: "system",
|
|
80975
|
+
label: "Node connectivity (offline / back online)",
|
|
80976
|
+
bad: ["node-offline"],
|
|
80977
|
+
recovery: ["node-online"],
|
|
80978
|
+
snapshotLabel: "Nodes offline now",
|
|
80979
|
+
snapshotSection: "nodes"
|
|
80980
|
+
},
|
|
80981
|
+
{
|
|
80982
|
+
id: "storage-space",
|
|
80983
|
+
family: "system",
|
|
80984
|
+
label: "Storage space (low or critical / ok again)",
|
|
80985
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
80986
|
+
recovery: ["storage-location-ok"],
|
|
80987
|
+
snapshotLabel: "Storage locations low now",
|
|
80988
|
+
snapshotSection: null
|
|
80989
|
+
},
|
|
80990
|
+
{
|
|
80991
|
+
id: "critical-alerts",
|
|
80992
|
+
family: "system",
|
|
80993
|
+
label: "Critical alerts (raised / resolved)",
|
|
80994
|
+
bad: ["alert-critical"],
|
|
80995
|
+
recovery: ["alert-critical-resolved"],
|
|
80996
|
+
snapshotLabel: "Critical alerts open now",
|
|
80997
|
+
snapshotSection: null
|
|
80998
|
+
},
|
|
80999
|
+
{
|
|
81000
|
+
id: "rule-health",
|
|
81001
|
+
family: "system",
|
|
81002
|
+
label: "Rule health (broken / repaired)",
|
|
81003
|
+
bad: ["rule-broken"],
|
|
81004
|
+
recovery: ["rule-repaired"],
|
|
81005
|
+
snapshotLabel: "Notification rules broken now",
|
|
81006
|
+
snapshotSection: null
|
|
81007
|
+
}
|
|
81008
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
80886
81009
|
new Set([
|
|
80887
81010
|
"disarmed",
|
|
80888
81011
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.167",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|