@camstack/addon-provider-dreo 0.2.140 → 0.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
|
@@ -35,7 +35,7 @@ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["modu
|
|
|
35
35
|
//#endregion
|
|
36
36
|
let crypto$1 = require("crypto");
|
|
37
37
|
let events = require("events");
|
|
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).
|
|
@@ -42428,6 +42436,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42428
42436
|
"alert-critical",
|
|
42429
42437
|
"alert-error",
|
|
42430
42438
|
"alert-critical-resolved",
|
|
42439
|
+
"rule-broken",
|
|
42440
|
+
"rule-repaired",
|
|
42431
42441
|
"camera-online",
|
|
42432
42442
|
"camera-offline",
|
|
42433
42443
|
"camera-disabled",
|
|
@@ -78712,6 +78722,8 @@ new Map(Object.entries({
|
|
|
78712
78722
|
"alert-critical": "system",
|
|
78713
78723
|
"alert-error": "system",
|
|
78714
78724
|
"alert-critical-resolved": "system",
|
|
78725
|
+
"rule-broken": "system",
|
|
78726
|
+
"rule-repaired": "system",
|
|
78715
78727
|
"storage-location-low": "system",
|
|
78716
78728
|
"storage-location-critical": "system",
|
|
78717
78729
|
"storage-location-ok": "system",
|
|
@@ -78846,6 +78858,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78846
78858
|
"alert-critical-resolved"
|
|
78847
78859
|
]
|
|
78848
78860
|
},
|
|
78861
|
+
{
|
|
78862
|
+
id: "rule-health",
|
|
78863
|
+
family: "system",
|
|
78864
|
+
label: "Notification rules",
|
|
78865
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
78866
|
+
},
|
|
78849
78867
|
{
|
|
78850
78868
|
id: "alarm",
|
|
78851
78869
|
family: "alarm",
|
|
@@ -79123,6 +79141,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79123
79141
|
[...RULE_TEXT],
|
|
79124
79142
|
[...RULE_TEXT],
|
|
79125
79143
|
[...RULE_TEXT],
|
|
79144
|
+
[...RULE_TEXT],
|
|
79145
|
+
[...RULE_TEXT],
|
|
79146
|
+
[...RULE_TEXT],
|
|
79147
|
+
[...RULE_TEXT],
|
|
79126
79148
|
([...RULE_TEXT], [...UPDATES]),
|
|
79127
79149
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79128
79150
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79161,6 +79183,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79161
79183
|
[...RULE_TEXT],
|
|
79162
79184
|
...STATE_SUMMARY_VARS
|
|
79163
79185
|
];
|
|
79186
|
+
new Map([
|
|
79187
|
+
{
|
|
79188
|
+
id: "device-connectivity",
|
|
79189
|
+
family: "device-events",
|
|
79190
|
+
label: "Device connectivity (offline / back online)",
|
|
79191
|
+
bad: ["device-offline"],
|
|
79192
|
+
recovery: ["device-online"],
|
|
79193
|
+
snapshotLabel: "Devices offline now",
|
|
79194
|
+
snapshotSection: "device-state"
|
|
79195
|
+
},
|
|
79196
|
+
{
|
|
79197
|
+
id: "device-switch",
|
|
79198
|
+
family: "device-events",
|
|
79199
|
+
label: "Device switched off / back on",
|
|
79200
|
+
bad: ["device-disabled"],
|
|
79201
|
+
recovery: ["device-enabled"],
|
|
79202
|
+
snapshotLabel: "Devices switched off now",
|
|
79203
|
+
snapshotSection: "device-state"
|
|
79204
|
+
},
|
|
79205
|
+
{
|
|
79206
|
+
id: "stream-connectivity",
|
|
79207
|
+
family: "device-events",
|
|
79208
|
+
label: "Stream connectivity (offline / back online)",
|
|
79209
|
+
bad: ["stream-offline"],
|
|
79210
|
+
recovery: ["stream-online"],
|
|
79211
|
+
snapshotLabel: "Streams offline now",
|
|
79212
|
+
snapshotSection: "streams"
|
|
79213
|
+
},
|
|
79214
|
+
{
|
|
79215
|
+
id: "battery",
|
|
79216
|
+
family: "device-events",
|
|
79217
|
+
label: "Battery (low / back to normal)",
|
|
79218
|
+
bad: ["device-battery-low"],
|
|
79219
|
+
recovery: ["device-battery-normal"],
|
|
79220
|
+
snapshotLabel: "Batteries low now",
|
|
79221
|
+
snapshotSection: "battery"
|
|
79222
|
+
},
|
|
79223
|
+
{
|
|
79224
|
+
id: "consumables",
|
|
79225
|
+
family: "device-events",
|
|
79226
|
+
label: "Consumables (low / replaced)",
|
|
79227
|
+
bad: ["device-consumable-low"],
|
|
79228
|
+
recovery: ["device-consumable-normal"],
|
|
79229
|
+
snapshotLabel: "Consumables low now",
|
|
79230
|
+
snapshotSection: "consumables"
|
|
79231
|
+
},
|
|
79232
|
+
{
|
|
79233
|
+
id: "tanks",
|
|
79234
|
+
family: "device-events",
|
|
79235
|
+
label: "Tanks (low or full / back to normal)",
|
|
79236
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79237
|
+
recovery: ["device-tank-normal"],
|
|
79238
|
+
snapshotLabel: "Tanks low or full now",
|
|
79239
|
+
snapshotSection: "tanks"
|
|
79240
|
+
},
|
|
79241
|
+
{
|
|
79242
|
+
id: "recording-health",
|
|
79243
|
+
family: "device-events",
|
|
79244
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79245
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79246
|
+
recovery: ["recording-healthy"],
|
|
79247
|
+
snapshotLabel: "Recordings stalled now",
|
|
79248
|
+
snapshotSection: null
|
|
79249
|
+
},
|
|
79250
|
+
{
|
|
79251
|
+
id: "node-connectivity",
|
|
79252
|
+
family: "system",
|
|
79253
|
+
label: "Node connectivity (offline / back online)",
|
|
79254
|
+
bad: ["node-offline"],
|
|
79255
|
+
recovery: ["node-online"],
|
|
79256
|
+
snapshotLabel: "Nodes offline now",
|
|
79257
|
+
snapshotSection: "nodes"
|
|
79258
|
+
},
|
|
79259
|
+
{
|
|
79260
|
+
id: "storage-space",
|
|
79261
|
+
family: "system",
|
|
79262
|
+
label: "Storage space (low or critical / ok again)",
|
|
79263
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79264
|
+
recovery: ["storage-location-ok"],
|
|
79265
|
+
snapshotLabel: "Storage locations low now",
|
|
79266
|
+
snapshotSection: null
|
|
79267
|
+
},
|
|
79268
|
+
{
|
|
79269
|
+
id: "critical-alerts",
|
|
79270
|
+
family: "system",
|
|
79271
|
+
label: "Critical alerts (raised / resolved)",
|
|
79272
|
+
bad: ["alert-critical"],
|
|
79273
|
+
recovery: ["alert-critical-resolved"],
|
|
79274
|
+
snapshotLabel: "Critical alerts open now",
|
|
79275
|
+
snapshotSection: null
|
|
79276
|
+
},
|
|
79277
|
+
{
|
|
79278
|
+
id: "rule-health",
|
|
79279
|
+
family: "system",
|
|
79280
|
+
label: "Rule health (broken / repaired)",
|
|
79281
|
+
bad: ["rule-broken"],
|
|
79282
|
+
recovery: ["rule-repaired"],
|
|
79283
|
+
snapshotLabel: "Notification rules broken now",
|
|
79284
|
+
snapshotSection: null
|
|
79285
|
+
}
|
|
79286
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79164
79287
|
new Set([
|
|
79165
79288
|
"disarmed",
|
|
79166
79289
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
37
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../types/dist/event-category-
|
|
39
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
40
40
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
41
41
|
EventCategory["SystemBoot"] = "system.boot";
|
|
42
42
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -724,6 +724,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
724
724
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
725
725
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
726
726
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
727
|
+
/**
|
|
728
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
729
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
730
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
731
|
+
*/
|
|
732
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
733
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
734
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
727
735
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
728
736
|
/**
|
|
729
737
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5451,7 +5459,7 @@ var ZodIssueCode = {
|
|
|
5451
5459
|
var ZodFirstPartyTypeKind;
|
|
5452
5460
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5453
5461
|
//#endregion
|
|
5454
|
-
//#region ../types/dist/sleep-
|
|
5462
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5455
5463
|
/**
|
|
5456
5464
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5457
5465
|
* window to float samples (D455).
|
|
@@ -42429,6 +42437,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42429
42437
|
"alert-critical",
|
|
42430
42438
|
"alert-error",
|
|
42431
42439
|
"alert-critical-resolved",
|
|
42440
|
+
"rule-broken",
|
|
42441
|
+
"rule-repaired",
|
|
42432
42442
|
"camera-online",
|
|
42433
42443
|
"camera-offline",
|
|
42434
42444
|
"camera-disabled",
|
|
@@ -78713,6 +78723,8 @@ new Map(Object.entries({
|
|
|
78713
78723
|
"alert-critical": "system",
|
|
78714
78724
|
"alert-error": "system",
|
|
78715
78725
|
"alert-critical-resolved": "system",
|
|
78726
|
+
"rule-broken": "system",
|
|
78727
|
+
"rule-repaired": "system",
|
|
78716
78728
|
"storage-location-low": "system",
|
|
78717
78729
|
"storage-location-critical": "system",
|
|
78718
78730
|
"storage-location-ok": "system",
|
|
@@ -78847,6 +78859,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78847
78859
|
"alert-critical-resolved"
|
|
78848
78860
|
]
|
|
78849
78861
|
},
|
|
78862
|
+
{
|
|
78863
|
+
id: "rule-health",
|
|
78864
|
+
family: "system",
|
|
78865
|
+
label: "Notification rules",
|
|
78866
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
78867
|
+
},
|
|
78850
78868
|
{
|
|
78851
78869
|
id: "alarm",
|
|
78852
78870
|
family: "alarm",
|
|
@@ -79124,6 +79142,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79124
79142
|
[...RULE_TEXT],
|
|
79125
79143
|
[...RULE_TEXT],
|
|
79126
79144
|
[...RULE_TEXT],
|
|
79145
|
+
[...RULE_TEXT],
|
|
79146
|
+
[...RULE_TEXT],
|
|
79147
|
+
[...RULE_TEXT],
|
|
79148
|
+
[...RULE_TEXT],
|
|
79127
79149
|
([...RULE_TEXT], [...UPDATES]),
|
|
79128
79150
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79129
79151
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79162,6 +79184,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79162
79184
|
[...RULE_TEXT],
|
|
79163
79185
|
...STATE_SUMMARY_VARS
|
|
79164
79186
|
];
|
|
79187
|
+
new Map([
|
|
79188
|
+
{
|
|
79189
|
+
id: "device-connectivity",
|
|
79190
|
+
family: "device-events",
|
|
79191
|
+
label: "Device connectivity (offline / back online)",
|
|
79192
|
+
bad: ["device-offline"],
|
|
79193
|
+
recovery: ["device-online"],
|
|
79194
|
+
snapshotLabel: "Devices offline now",
|
|
79195
|
+
snapshotSection: "device-state"
|
|
79196
|
+
},
|
|
79197
|
+
{
|
|
79198
|
+
id: "device-switch",
|
|
79199
|
+
family: "device-events",
|
|
79200
|
+
label: "Device switched off / back on",
|
|
79201
|
+
bad: ["device-disabled"],
|
|
79202
|
+
recovery: ["device-enabled"],
|
|
79203
|
+
snapshotLabel: "Devices switched off now",
|
|
79204
|
+
snapshotSection: "device-state"
|
|
79205
|
+
},
|
|
79206
|
+
{
|
|
79207
|
+
id: "stream-connectivity",
|
|
79208
|
+
family: "device-events",
|
|
79209
|
+
label: "Stream connectivity (offline / back online)",
|
|
79210
|
+
bad: ["stream-offline"],
|
|
79211
|
+
recovery: ["stream-online"],
|
|
79212
|
+
snapshotLabel: "Streams offline now",
|
|
79213
|
+
snapshotSection: "streams"
|
|
79214
|
+
},
|
|
79215
|
+
{
|
|
79216
|
+
id: "battery",
|
|
79217
|
+
family: "device-events",
|
|
79218
|
+
label: "Battery (low / back to normal)",
|
|
79219
|
+
bad: ["device-battery-low"],
|
|
79220
|
+
recovery: ["device-battery-normal"],
|
|
79221
|
+
snapshotLabel: "Batteries low now",
|
|
79222
|
+
snapshotSection: "battery"
|
|
79223
|
+
},
|
|
79224
|
+
{
|
|
79225
|
+
id: "consumables",
|
|
79226
|
+
family: "device-events",
|
|
79227
|
+
label: "Consumables (low / replaced)",
|
|
79228
|
+
bad: ["device-consumable-low"],
|
|
79229
|
+
recovery: ["device-consumable-normal"],
|
|
79230
|
+
snapshotLabel: "Consumables low now",
|
|
79231
|
+
snapshotSection: "consumables"
|
|
79232
|
+
},
|
|
79233
|
+
{
|
|
79234
|
+
id: "tanks",
|
|
79235
|
+
family: "device-events",
|
|
79236
|
+
label: "Tanks (low or full / back to normal)",
|
|
79237
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79238
|
+
recovery: ["device-tank-normal"],
|
|
79239
|
+
snapshotLabel: "Tanks low or full now",
|
|
79240
|
+
snapshotSection: "tanks"
|
|
79241
|
+
},
|
|
79242
|
+
{
|
|
79243
|
+
id: "recording-health",
|
|
79244
|
+
family: "device-events",
|
|
79245
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79246
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79247
|
+
recovery: ["recording-healthy"],
|
|
79248
|
+
snapshotLabel: "Recordings stalled now",
|
|
79249
|
+
snapshotSection: null
|
|
79250
|
+
},
|
|
79251
|
+
{
|
|
79252
|
+
id: "node-connectivity",
|
|
79253
|
+
family: "system",
|
|
79254
|
+
label: "Node connectivity (offline / back online)",
|
|
79255
|
+
bad: ["node-offline"],
|
|
79256
|
+
recovery: ["node-online"],
|
|
79257
|
+
snapshotLabel: "Nodes offline now",
|
|
79258
|
+
snapshotSection: "nodes"
|
|
79259
|
+
},
|
|
79260
|
+
{
|
|
79261
|
+
id: "storage-space",
|
|
79262
|
+
family: "system",
|
|
79263
|
+
label: "Storage space (low or critical / ok again)",
|
|
79264
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79265
|
+
recovery: ["storage-location-ok"],
|
|
79266
|
+
snapshotLabel: "Storage locations low now",
|
|
79267
|
+
snapshotSection: null
|
|
79268
|
+
},
|
|
79269
|
+
{
|
|
79270
|
+
id: "critical-alerts",
|
|
79271
|
+
family: "system",
|
|
79272
|
+
label: "Critical alerts (raised / resolved)",
|
|
79273
|
+
bad: ["alert-critical"],
|
|
79274
|
+
recovery: ["alert-critical-resolved"],
|
|
79275
|
+
snapshotLabel: "Critical alerts open now",
|
|
79276
|
+
snapshotSection: null
|
|
79277
|
+
},
|
|
79278
|
+
{
|
|
79279
|
+
id: "rule-health",
|
|
79280
|
+
family: "system",
|
|
79281
|
+
label: "Rule health (broken / repaired)",
|
|
79282
|
+
bad: ["rule-broken"],
|
|
79283
|
+
recovery: ["rule-repaired"],
|
|
79284
|
+
snapshotLabel: "Notification rules broken now",
|
|
79285
|
+
snapshotSection: null
|
|
79286
|
+
}
|
|
79287
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79165
79288
|
new Set([
|
|
79166
79289
|
"disarmed",
|
|
79167
79290
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.141",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|