@camstack/addon-provider-onvif 1.2.141 → 1.2.143
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
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
4
4
|
//#endregion
|
|
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
|
|
@@ -5417,7 +5425,7 @@ var ZodIssueCode = {
|
|
|
5417
5425
|
var ZodFirstPartyTypeKind;
|
|
5418
5426
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5419
5427
|
//#endregion
|
|
5420
|
-
//#region ../types/dist/sleep-
|
|
5428
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5421
5429
|
/**
|
|
5422
5430
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5423
5431
|
* window to float samples (D455).
|
|
@@ -42159,6 +42167,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42159
42167
|
"alert-critical",
|
|
42160
42168
|
"alert-error",
|
|
42161
42169
|
"alert-critical-resolved",
|
|
42170
|
+
"rule-broken",
|
|
42171
|
+
"rule-repaired",
|
|
42162
42172
|
"camera-online",
|
|
42163
42173
|
"camera-offline",
|
|
42164
42174
|
"camera-disabled",
|
|
@@ -74679,6 +74689,8 @@ new Map(Object.entries({
|
|
|
74679
74689
|
"alert-critical": "system",
|
|
74680
74690
|
"alert-error": "system",
|
|
74681
74691
|
"alert-critical-resolved": "system",
|
|
74692
|
+
"rule-broken": "system",
|
|
74693
|
+
"rule-repaired": "system",
|
|
74682
74694
|
"storage-location-low": "system",
|
|
74683
74695
|
"storage-location-critical": "system",
|
|
74684
74696
|
"storage-location-ok": "system",
|
|
@@ -74813,6 +74825,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
74813
74825
|
"alert-critical-resolved"
|
|
74814
74826
|
]
|
|
74815
74827
|
},
|
|
74828
|
+
{
|
|
74829
|
+
id: "rule-health",
|
|
74830
|
+
family: "system",
|
|
74831
|
+
label: "Notification rules",
|
|
74832
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
74833
|
+
},
|
|
74816
74834
|
{
|
|
74817
74835
|
id: "alarm",
|
|
74818
74836
|
family: "alarm",
|
|
@@ -75090,6 +75108,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
75090
75108
|
[...RULE_TEXT],
|
|
75091
75109
|
[...RULE_TEXT],
|
|
75092
75110
|
[...RULE_TEXT],
|
|
75111
|
+
[...RULE_TEXT],
|
|
75112
|
+
[...RULE_TEXT],
|
|
75113
|
+
[...RULE_TEXT],
|
|
75114
|
+
[...RULE_TEXT],
|
|
75093
75115
|
([...RULE_TEXT], [...UPDATES]),
|
|
75094
75116
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
75095
75117
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -75128,6 +75150,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
75128
75150
|
[...RULE_TEXT],
|
|
75129
75151
|
...STATE_SUMMARY_VARS
|
|
75130
75152
|
];
|
|
75153
|
+
new Map([
|
|
75154
|
+
{
|
|
75155
|
+
id: "device-connectivity",
|
|
75156
|
+
family: "device-events",
|
|
75157
|
+
label: "Device connectivity (offline / back online)",
|
|
75158
|
+
bad: ["device-offline"],
|
|
75159
|
+
recovery: ["device-online"],
|
|
75160
|
+
snapshotLabel: "Devices offline now",
|
|
75161
|
+
snapshotSection: "device-state"
|
|
75162
|
+
},
|
|
75163
|
+
{
|
|
75164
|
+
id: "device-switch",
|
|
75165
|
+
family: "device-events",
|
|
75166
|
+
label: "Device switched off / back on",
|
|
75167
|
+
bad: ["device-disabled"],
|
|
75168
|
+
recovery: ["device-enabled"],
|
|
75169
|
+
snapshotLabel: "Devices switched off now",
|
|
75170
|
+
snapshotSection: "device-state"
|
|
75171
|
+
},
|
|
75172
|
+
{
|
|
75173
|
+
id: "stream-connectivity",
|
|
75174
|
+
family: "device-events",
|
|
75175
|
+
label: "Stream connectivity (offline / back online)",
|
|
75176
|
+
bad: ["stream-offline"],
|
|
75177
|
+
recovery: ["stream-online"],
|
|
75178
|
+
snapshotLabel: "Streams offline now",
|
|
75179
|
+
snapshotSection: "streams"
|
|
75180
|
+
},
|
|
75181
|
+
{
|
|
75182
|
+
id: "battery",
|
|
75183
|
+
family: "device-events",
|
|
75184
|
+
label: "Battery (low / back to normal)",
|
|
75185
|
+
bad: ["device-battery-low"],
|
|
75186
|
+
recovery: ["device-battery-normal"],
|
|
75187
|
+
snapshotLabel: "Batteries low now",
|
|
75188
|
+
snapshotSection: "battery"
|
|
75189
|
+
},
|
|
75190
|
+
{
|
|
75191
|
+
id: "consumables",
|
|
75192
|
+
family: "device-events",
|
|
75193
|
+
label: "Consumables (low / replaced)",
|
|
75194
|
+
bad: ["device-consumable-low"],
|
|
75195
|
+
recovery: ["device-consumable-normal"],
|
|
75196
|
+
snapshotLabel: "Consumables low now",
|
|
75197
|
+
snapshotSection: "consumables"
|
|
75198
|
+
},
|
|
75199
|
+
{
|
|
75200
|
+
id: "tanks",
|
|
75201
|
+
family: "device-events",
|
|
75202
|
+
label: "Tanks (low or full / back to normal)",
|
|
75203
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
75204
|
+
recovery: ["device-tank-normal"],
|
|
75205
|
+
snapshotLabel: "Tanks low or full now",
|
|
75206
|
+
snapshotSection: "tanks"
|
|
75207
|
+
},
|
|
75208
|
+
{
|
|
75209
|
+
id: "recording-health",
|
|
75210
|
+
family: "device-events",
|
|
75211
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
75212
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
75213
|
+
recovery: ["recording-healthy"],
|
|
75214
|
+
snapshotLabel: "Recordings stalled now",
|
|
75215
|
+
snapshotSection: null
|
|
75216
|
+
},
|
|
75217
|
+
{
|
|
75218
|
+
id: "node-connectivity",
|
|
75219
|
+
family: "system",
|
|
75220
|
+
label: "Node connectivity (offline / back online)",
|
|
75221
|
+
bad: ["node-offline"],
|
|
75222
|
+
recovery: ["node-online"],
|
|
75223
|
+
snapshotLabel: "Nodes offline now",
|
|
75224
|
+
snapshotSection: "nodes"
|
|
75225
|
+
},
|
|
75226
|
+
{
|
|
75227
|
+
id: "storage-space",
|
|
75228
|
+
family: "system",
|
|
75229
|
+
label: "Storage space (low or critical / ok again)",
|
|
75230
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
75231
|
+
recovery: ["storage-location-ok"],
|
|
75232
|
+
snapshotLabel: "Storage locations low now",
|
|
75233
|
+
snapshotSection: null
|
|
75234
|
+
},
|
|
75235
|
+
{
|
|
75236
|
+
id: "critical-alerts",
|
|
75237
|
+
family: "system",
|
|
75238
|
+
label: "Critical alerts (raised / resolved)",
|
|
75239
|
+
bad: ["alert-critical"],
|
|
75240
|
+
recovery: ["alert-critical-resolved"],
|
|
75241
|
+
snapshotLabel: "Critical alerts open now",
|
|
75242
|
+
snapshotSection: null
|
|
75243
|
+
},
|
|
75244
|
+
{
|
|
75245
|
+
id: "rule-health",
|
|
75246
|
+
family: "system",
|
|
75247
|
+
label: "Rule health (broken / repaired)",
|
|
75248
|
+
bad: ["rule-broken"],
|
|
75249
|
+
recovery: ["rule-repaired"],
|
|
75250
|
+
snapshotLabel: "Notification rules broken now",
|
|
75251
|
+
snapshotSection: null
|
|
75252
|
+
}
|
|
75253
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
75131
75254
|
new Set([
|
|
75132
75255
|
"disarmed",
|
|
75133
75256
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
4
4
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
5
5
|
//#endregion
|
|
6
|
-
//#region ../types/dist/event-category-
|
|
6
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
7
7
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
8
8
|
EventCategory["SystemBoot"] = "system.boot";
|
|
9
9
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -691,6 +691,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
691
691
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
692
692
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
693
693
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
694
|
+
/**
|
|
695
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
696
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
697
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
698
|
+
*/
|
|
699
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
700
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
701
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
694
702
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
695
703
|
/**
|
|
696
704
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5418,7 +5426,7 @@ var ZodIssueCode = {
|
|
|
5418
5426
|
var ZodFirstPartyTypeKind;
|
|
5419
5427
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5420
5428
|
//#endregion
|
|
5421
|
-
//#region ../types/dist/sleep-
|
|
5429
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5422
5430
|
/**
|
|
5423
5431
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5424
5432
|
* window to float samples (D455).
|
|
@@ -42160,6 +42168,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42160
42168
|
"alert-critical",
|
|
42161
42169
|
"alert-error",
|
|
42162
42170
|
"alert-critical-resolved",
|
|
42171
|
+
"rule-broken",
|
|
42172
|
+
"rule-repaired",
|
|
42163
42173
|
"camera-online",
|
|
42164
42174
|
"camera-offline",
|
|
42165
42175
|
"camera-disabled",
|
|
@@ -74680,6 +74690,8 @@ new Map(Object.entries({
|
|
|
74680
74690
|
"alert-critical": "system",
|
|
74681
74691
|
"alert-error": "system",
|
|
74682
74692
|
"alert-critical-resolved": "system",
|
|
74693
|
+
"rule-broken": "system",
|
|
74694
|
+
"rule-repaired": "system",
|
|
74683
74695
|
"storage-location-low": "system",
|
|
74684
74696
|
"storage-location-critical": "system",
|
|
74685
74697
|
"storage-location-ok": "system",
|
|
@@ -74814,6 +74826,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
74814
74826
|
"alert-critical-resolved"
|
|
74815
74827
|
]
|
|
74816
74828
|
},
|
|
74829
|
+
{
|
|
74830
|
+
id: "rule-health",
|
|
74831
|
+
family: "system",
|
|
74832
|
+
label: "Notification rules",
|
|
74833
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
74834
|
+
},
|
|
74817
74835
|
{
|
|
74818
74836
|
id: "alarm",
|
|
74819
74837
|
family: "alarm",
|
|
@@ -75091,6 +75109,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
75091
75109
|
[...RULE_TEXT],
|
|
75092
75110
|
[...RULE_TEXT],
|
|
75093
75111
|
[...RULE_TEXT],
|
|
75112
|
+
[...RULE_TEXT],
|
|
75113
|
+
[...RULE_TEXT],
|
|
75114
|
+
[...RULE_TEXT],
|
|
75115
|
+
[...RULE_TEXT],
|
|
75094
75116
|
([...RULE_TEXT], [...UPDATES]),
|
|
75095
75117
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
75096
75118
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -75129,6 +75151,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
75129
75151
|
[...RULE_TEXT],
|
|
75130
75152
|
...STATE_SUMMARY_VARS
|
|
75131
75153
|
];
|
|
75154
|
+
new Map([
|
|
75155
|
+
{
|
|
75156
|
+
id: "device-connectivity",
|
|
75157
|
+
family: "device-events",
|
|
75158
|
+
label: "Device connectivity (offline / back online)",
|
|
75159
|
+
bad: ["device-offline"],
|
|
75160
|
+
recovery: ["device-online"],
|
|
75161
|
+
snapshotLabel: "Devices offline now",
|
|
75162
|
+
snapshotSection: "device-state"
|
|
75163
|
+
},
|
|
75164
|
+
{
|
|
75165
|
+
id: "device-switch",
|
|
75166
|
+
family: "device-events",
|
|
75167
|
+
label: "Device switched off / back on",
|
|
75168
|
+
bad: ["device-disabled"],
|
|
75169
|
+
recovery: ["device-enabled"],
|
|
75170
|
+
snapshotLabel: "Devices switched off now",
|
|
75171
|
+
snapshotSection: "device-state"
|
|
75172
|
+
},
|
|
75173
|
+
{
|
|
75174
|
+
id: "stream-connectivity",
|
|
75175
|
+
family: "device-events",
|
|
75176
|
+
label: "Stream connectivity (offline / back online)",
|
|
75177
|
+
bad: ["stream-offline"],
|
|
75178
|
+
recovery: ["stream-online"],
|
|
75179
|
+
snapshotLabel: "Streams offline now",
|
|
75180
|
+
snapshotSection: "streams"
|
|
75181
|
+
},
|
|
75182
|
+
{
|
|
75183
|
+
id: "battery",
|
|
75184
|
+
family: "device-events",
|
|
75185
|
+
label: "Battery (low / back to normal)",
|
|
75186
|
+
bad: ["device-battery-low"],
|
|
75187
|
+
recovery: ["device-battery-normal"],
|
|
75188
|
+
snapshotLabel: "Batteries low now",
|
|
75189
|
+
snapshotSection: "battery"
|
|
75190
|
+
},
|
|
75191
|
+
{
|
|
75192
|
+
id: "consumables",
|
|
75193
|
+
family: "device-events",
|
|
75194
|
+
label: "Consumables (low / replaced)",
|
|
75195
|
+
bad: ["device-consumable-low"],
|
|
75196
|
+
recovery: ["device-consumable-normal"],
|
|
75197
|
+
snapshotLabel: "Consumables low now",
|
|
75198
|
+
snapshotSection: "consumables"
|
|
75199
|
+
},
|
|
75200
|
+
{
|
|
75201
|
+
id: "tanks",
|
|
75202
|
+
family: "device-events",
|
|
75203
|
+
label: "Tanks (low or full / back to normal)",
|
|
75204
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
75205
|
+
recovery: ["device-tank-normal"],
|
|
75206
|
+
snapshotLabel: "Tanks low or full now",
|
|
75207
|
+
snapshotSection: "tanks"
|
|
75208
|
+
},
|
|
75209
|
+
{
|
|
75210
|
+
id: "recording-health",
|
|
75211
|
+
family: "device-events",
|
|
75212
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
75213
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
75214
|
+
recovery: ["recording-healthy"],
|
|
75215
|
+
snapshotLabel: "Recordings stalled now",
|
|
75216
|
+
snapshotSection: null
|
|
75217
|
+
},
|
|
75218
|
+
{
|
|
75219
|
+
id: "node-connectivity",
|
|
75220
|
+
family: "system",
|
|
75221
|
+
label: "Node connectivity (offline / back online)",
|
|
75222
|
+
bad: ["node-offline"],
|
|
75223
|
+
recovery: ["node-online"],
|
|
75224
|
+
snapshotLabel: "Nodes offline now",
|
|
75225
|
+
snapshotSection: "nodes"
|
|
75226
|
+
},
|
|
75227
|
+
{
|
|
75228
|
+
id: "storage-space",
|
|
75229
|
+
family: "system",
|
|
75230
|
+
label: "Storage space (low or critical / ok again)",
|
|
75231
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
75232
|
+
recovery: ["storage-location-ok"],
|
|
75233
|
+
snapshotLabel: "Storage locations low now",
|
|
75234
|
+
snapshotSection: null
|
|
75235
|
+
},
|
|
75236
|
+
{
|
|
75237
|
+
id: "critical-alerts",
|
|
75238
|
+
family: "system",
|
|
75239
|
+
label: "Critical alerts (raised / resolved)",
|
|
75240
|
+
bad: ["alert-critical"],
|
|
75241
|
+
recovery: ["alert-critical-resolved"],
|
|
75242
|
+
snapshotLabel: "Critical alerts open now",
|
|
75243
|
+
snapshotSection: null
|
|
75244
|
+
},
|
|
75245
|
+
{
|
|
75246
|
+
id: "rule-health",
|
|
75247
|
+
family: "system",
|
|
75248
|
+
label: "Rule health (broken / repaired)",
|
|
75249
|
+
bad: ["rule-broken"],
|
|
75250
|
+
recovery: ["rule-repaired"],
|
|
75251
|
+
snapshotLabel: "Notification rules broken now",
|
|
75252
|
+
snapshotSection: null
|
|
75253
|
+
}
|
|
75254
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
75132
75255
|
new Set([
|
|
75133
75256
|
"disarmed",
|
|
75134
75257
|
"armed_home",
|