@camstack/addon-import-alexa 0.2.141 → 0.2.142
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
|
@@ -38,7 +38,7 @@ let node_os = require("node:os");
|
|
|
38
38
|
let node_fs = require("node:fs");
|
|
39
39
|
let node_path = require("node:path");
|
|
40
40
|
node_path = __toESM(node_path);
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -726,6 +726,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
726
726
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
727
727
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
728
728
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
729
|
+
/**
|
|
730
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
731
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
732
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
733
|
+
*/
|
|
734
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
735
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
736
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
729
737
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
730
738
|
/**
|
|
731
739
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5586,7 +5594,7 @@ var ZodIssueCode = {
|
|
|
5586
5594
|
var ZodFirstPartyTypeKind;
|
|
5587
5595
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5588
5596
|
//#endregion
|
|
5589
|
-
//#region ../types/dist/sleep-
|
|
5597
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5590
5598
|
/**
|
|
5591
5599
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5592
5600
|
* window to float samples (D455).
|
|
@@ -42937,6 +42945,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42937
42945
|
"alert-critical",
|
|
42938
42946
|
"alert-error",
|
|
42939
42947
|
"alert-critical-resolved",
|
|
42948
|
+
"rule-broken",
|
|
42949
|
+
"rule-repaired",
|
|
42940
42950
|
"camera-online",
|
|
42941
42951
|
"camera-offline",
|
|
42942
42952
|
"camera-disabled",
|
|
@@ -79230,6 +79240,8 @@ new Map(Object.entries({
|
|
|
79230
79240
|
"alert-critical": "system",
|
|
79231
79241
|
"alert-error": "system",
|
|
79232
79242
|
"alert-critical-resolved": "system",
|
|
79243
|
+
"rule-broken": "system",
|
|
79244
|
+
"rule-repaired": "system",
|
|
79233
79245
|
"storage-location-low": "system",
|
|
79234
79246
|
"storage-location-critical": "system",
|
|
79235
79247
|
"storage-location-ok": "system",
|
|
@@ -79364,6 +79376,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79364
79376
|
"alert-critical-resolved"
|
|
79365
79377
|
]
|
|
79366
79378
|
},
|
|
79379
|
+
{
|
|
79380
|
+
id: "rule-health",
|
|
79381
|
+
family: "system",
|
|
79382
|
+
label: "Notification rules",
|
|
79383
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
79384
|
+
},
|
|
79367
79385
|
{
|
|
79368
79386
|
id: "alarm",
|
|
79369
79387
|
family: "alarm",
|
|
@@ -79641,6 +79659,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79641
79659
|
[...RULE_TEXT],
|
|
79642
79660
|
[...RULE_TEXT],
|
|
79643
79661
|
[...RULE_TEXT],
|
|
79662
|
+
[...RULE_TEXT],
|
|
79663
|
+
[...RULE_TEXT],
|
|
79664
|
+
[...RULE_TEXT],
|
|
79665
|
+
[...RULE_TEXT],
|
|
79644
79666
|
([...RULE_TEXT], [...UPDATES]),
|
|
79645
79667
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79646
79668
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79679,6 +79701,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79679
79701
|
[...RULE_TEXT],
|
|
79680
79702
|
...STATE_SUMMARY_VARS
|
|
79681
79703
|
];
|
|
79704
|
+
new Map([
|
|
79705
|
+
{
|
|
79706
|
+
id: "device-connectivity",
|
|
79707
|
+
family: "device-events",
|
|
79708
|
+
label: "Device connectivity (offline / back online)",
|
|
79709
|
+
bad: ["device-offline"],
|
|
79710
|
+
recovery: ["device-online"],
|
|
79711
|
+
snapshotLabel: "Devices offline now",
|
|
79712
|
+
snapshotSection: "device-state"
|
|
79713
|
+
},
|
|
79714
|
+
{
|
|
79715
|
+
id: "device-switch",
|
|
79716
|
+
family: "device-events",
|
|
79717
|
+
label: "Device switched off / back on",
|
|
79718
|
+
bad: ["device-disabled"],
|
|
79719
|
+
recovery: ["device-enabled"],
|
|
79720
|
+
snapshotLabel: "Devices switched off now",
|
|
79721
|
+
snapshotSection: "device-state"
|
|
79722
|
+
},
|
|
79723
|
+
{
|
|
79724
|
+
id: "stream-connectivity",
|
|
79725
|
+
family: "device-events",
|
|
79726
|
+
label: "Stream connectivity (offline / back online)",
|
|
79727
|
+
bad: ["stream-offline"],
|
|
79728
|
+
recovery: ["stream-online"],
|
|
79729
|
+
snapshotLabel: "Streams offline now",
|
|
79730
|
+
snapshotSection: "streams"
|
|
79731
|
+
},
|
|
79732
|
+
{
|
|
79733
|
+
id: "battery",
|
|
79734
|
+
family: "device-events",
|
|
79735
|
+
label: "Battery (low / back to normal)",
|
|
79736
|
+
bad: ["device-battery-low"],
|
|
79737
|
+
recovery: ["device-battery-normal"],
|
|
79738
|
+
snapshotLabel: "Batteries low now",
|
|
79739
|
+
snapshotSection: "battery"
|
|
79740
|
+
},
|
|
79741
|
+
{
|
|
79742
|
+
id: "consumables",
|
|
79743
|
+
family: "device-events",
|
|
79744
|
+
label: "Consumables (low / replaced)",
|
|
79745
|
+
bad: ["device-consumable-low"],
|
|
79746
|
+
recovery: ["device-consumable-normal"],
|
|
79747
|
+
snapshotLabel: "Consumables low now",
|
|
79748
|
+
snapshotSection: "consumables"
|
|
79749
|
+
},
|
|
79750
|
+
{
|
|
79751
|
+
id: "tanks",
|
|
79752
|
+
family: "device-events",
|
|
79753
|
+
label: "Tanks (low or full / back to normal)",
|
|
79754
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79755
|
+
recovery: ["device-tank-normal"],
|
|
79756
|
+
snapshotLabel: "Tanks low or full now",
|
|
79757
|
+
snapshotSection: "tanks"
|
|
79758
|
+
},
|
|
79759
|
+
{
|
|
79760
|
+
id: "recording-health",
|
|
79761
|
+
family: "device-events",
|
|
79762
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79763
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79764
|
+
recovery: ["recording-healthy"],
|
|
79765
|
+
snapshotLabel: "Recordings stalled now",
|
|
79766
|
+
snapshotSection: null
|
|
79767
|
+
},
|
|
79768
|
+
{
|
|
79769
|
+
id: "node-connectivity",
|
|
79770
|
+
family: "system",
|
|
79771
|
+
label: "Node connectivity (offline / back online)",
|
|
79772
|
+
bad: ["node-offline"],
|
|
79773
|
+
recovery: ["node-online"],
|
|
79774
|
+
snapshotLabel: "Nodes offline now",
|
|
79775
|
+
snapshotSection: "nodes"
|
|
79776
|
+
},
|
|
79777
|
+
{
|
|
79778
|
+
id: "storage-space",
|
|
79779
|
+
family: "system",
|
|
79780
|
+
label: "Storage space (low or critical / ok again)",
|
|
79781
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79782
|
+
recovery: ["storage-location-ok"],
|
|
79783
|
+
snapshotLabel: "Storage locations low now",
|
|
79784
|
+
snapshotSection: null
|
|
79785
|
+
},
|
|
79786
|
+
{
|
|
79787
|
+
id: "critical-alerts",
|
|
79788
|
+
family: "system",
|
|
79789
|
+
label: "Critical alerts (raised / resolved)",
|
|
79790
|
+
bad: ["alert-critical"],
|
|
79791
|
+
recovery: ["alert-critical-resolved"],
|
|
79792
|
+
snapshotLabel: "Critical alerts open now",
|
|
79793
|
+
snapshotSection: null
|
|
79794
|
+
},
|
|
79795
|
+
{
|
|
79796
|
+
id: "rule-health",
|
|
79797
|
+
family: "system",
|
|
79798
|
+
label: "Rule health (broken / repaired)",
|
|
79799
|
+
bad: ["rule-broken"],
|
|
79800
|
+
recovery: ["rule-repaired"],
|
|
79801
|
+
snapshotLabel: "Notification rules broken now",
|
|
79802
|
+
snapshotSection: null
|
|
79803
|
+
}
|
|
79804
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79682
79805
|
new Set([
|
|
79683
79806
|
"disarmed",
|
|
79684
79807
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -726,6 +726,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
726
726
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
727
727
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
728
728
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
729
|
+
/**
|
|
730
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
731
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
732
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
733
|
+
*/
|
|
734
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
735
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
736
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
729
737
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
730
738
|
/**
|
|
731
739
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5586,7 +5594,7 @@ var ZodIssueCode = {
|
|
|
5586
5594
|
var ZodFirstPartyTypeKind;
|
|
5587
5595
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5588
5596
|
//#endregion
|
|
5589
|
-
//#region ../types/dist/sleep-
|
|
5597
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5590
5598
|
/**
|
|
5591
5599
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5592
5600
|
* window to float samples (D455).
|
|
@@ -42937,6 +42945,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42937
42945
|
"alert-critical",
|
|
42938
42946
|
"alert-error",
|
|
42939
42947
|
"alert-critical-resolved",
|
|
42948
|
+
"rule-broken",
|
|
42949
|
+
"rule-repaired",
|
|
42940
42950
|
"camera-online",
|
|
42941
42951
|
"camera-offline",
|
|
42942
42952
|
"camera-disabled",
|
|
@@ -79230,6 +79240,8 @@ new Map(Object.entries({
|
|
|
79230
79240
|
"alert-critical": "system",
|
|
79231
79241
|
"alert-error": "system",
|
|
79232
79242
|
"alert-critical-resolved": "system",
|
|
79243
|
+
"rule-broken": "system",
|
|
79244
|
+
"rule-repaired": "system",
|
|
79233
79245
|
"storage-location-low": "system",
|
|
79234
79246
|
"storage-location-critical": "system",
|
|
79235
79247
|
"storage-location-ok": "system",
|
|
@@ -79364,6 +79376,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79364
79376
|
"alert-critical-resolved"
|
|
79365
79377
|
]
|
|
79366
79378
|
},
|
|
79379
|
+
{
|
|
79380
|
+
id: "rule-health",
|
|
79381
|
+
family: "system",
|
|
79382
|
+
label: "Notification rules",
|
|
79383
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
79384
|
+
},
|
|
79367
79385
|
{
|
|
79368
79386
|
id: "alarm",
|
|
79369
79387
|
family: "alarm",
|
|
@@ -79641,6 +79659,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79641
79659
|
[...RULE_TEXT],
|
|
79642
79660
|
[...RULE_TEXT],
|
|
79643
79661
|
[...RULE_TEXT],
|
|
79662
|
+
[...RULE_TEXT],
|
|
79663
|
+
[...RULE_TEXT],
|
|
79664
|
+
[...RULE_TEXT],
|
|
79665
|
+
[...RULE_TEXT],
|
|
79644
79666
|
([...RULE_TEXT], [...UPDATES]),
|
|
79645
79667
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79646
79668
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79679,6 +79701,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79679
79701
|
[...RULE_TEXT],
|
|
79680
79702
|
...STATE_SUMMARY_VARS
|
|
79681
79703
|
];
|
|
79704
|
+
new Map([
|
|
79705
|
+
{
|
|
79706
|
+
id: "device-connectivity",
|
|
79707
|
+
family: "device-events",
|
|
79708
|
+
label: "Device connectivity (offline / back online)",
|
|
79709
|
+
bad: ["device-offline"],
|
|
79710
|
+
recovery: ["device-online"],
|
|
79711
|
+
snapshotLabel: "Devices offline now",
|
|
79712
|
+
snapshotSection: "device-state"
|
|
79713
|
+
},
|
|
79714
|
+
{
|
|
79715
|
+
id: "device-switch",
|
|
79716
|
+
family: "device-events",
|
|
79717
|
+
label: "Device switched off / back on",
|
|
79718
|
+
bad: ["device-disabled"],
|
|
79719
|
+
recovery: ["device-enabled"],
|
|
79720
|
+
snapshotLabel: "Devices switched off now",
|
|
79721
|
+
snapshotSection: "device-state"
|
|
79722
|
+
},
|
|
79723
|
+
{
|
|
79724
|
+
id: "stream-connectivity",
|
|
79725
|
+
family: "device-events",
|
|
79726
|
+
label: "Stream connectivity (offline / back online)",
|
|
79727
|
+
bad: ["stream-offline"],
|
|
79728
|
+
recovery: ["stream-online"],
|
|
79729
|
+
snapshotLabel: "Streams offline now",
|
|
79730
|
+
snapshotSection: "streams"
|
|
79731
|
+
},
|
|
79732
|
+
{
|
|
79733
|
+
id: "battery",
|
|
79734
|
+
family: "device-events",
|
|
79735
|
+
label: "Battery (low / back to normal)",
|
|
79736
|
+
bad: ["device-battery-low"],
|
|
79737
|
+
recovery: ["device-battery-normal"],
|
|
79738
|
+
snapshotLabel: "Batteries low now",
|
|
79739
|
+
snapshotSection: "battery"
|
|
79740
|
+
},
|
|
79741
|
+
{
|
|
79742
|
+
id: "consumables",
|
|
79743
|
+
family: "device-events",
|
|
79744
|
+
label: "Consumables (low / replaced)",
|
|
79745
|
+
bad: ["device-consumable-low"],
|
|
79746
|
+
recovery: ["device-consumable-normal"],
|
|
79747
|
+
snapshotLabel: "Consumables low now",
|
|
79748
|
+
snapshotSection: "consumables"
|
|
79749
|
+
},
|
|
79750
|
+
{
|
|
79751
|
+
id: "tanks",
|
|
79752
|
+
family: "device-events",
|
|
79753
|
+
label: "Tanks (low or full / back to normal)",
|
|
79754
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79755
|
+
recovery: ["device-tank-normal"],
|
|
79756
|
+
snapshotLabel: "Tanks low or full now",
|
|
79757
|
+
snapshotSection: "tanks"
|
|
79758
|
+
},
|
|
79759
|
+
{
|
|
79760
|
+
id: "recording-health",
|
|
79761
|
+
family: "device-events",
|
|
79762
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79763
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79764
|
+
recovery: ["recording-healthy"],
|
|
79765
|
+
snapshotLabel: "Recordings stalled now",
|
|
79766
|
+
snapshotSection: null
|
|
79767
|
+
},
|
|
79768
|
+
{
|
|
79769
|
+
id: "node-connectivity",
|
|
79770
|
+
family: "system",
|
|
79771
|
+
label: "Node connectivity (offline / back online)",
|
|
79772
|
+
bad: ["node-offline"],
|
|
79773
|
+
recovery: ["node-online"],
|
|
79774
|
+
snapshotLabel: "Nodes offline now",
|
|
79775
|
+
snapshotSection: "nodes"
|
|
79776
|
+
},
|
|
79777
|
+
{
|
|
79778
|
+
id: "storage-space",
|
|
79779
|
+
family: "system",
|
|
79780
|
+
label: "Storage space (low or critical / ok again)",
|
|
79781
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79782
|
+
recovery: ["storage-location-ok"],
|
|
79783
|
+
snapshotLabel: "Storage locations low now",
|
|
79784
|
+
snapshotSection: null
|
|
79785
|
+
},
|
|
79786
|
+
{
|
|
79787
|
+
id: "critical-alerts",
|
|
79788
|
+
family: "system",
|
|
79789
|
+
label: "Critical alerts (raised / resolved)",
|
|
79790
|
+
bad: ["alert-critical"],
|
|
79791
|
+
recovery: ["alert-critical-resolved"],
|
|
79792
|
+
snapshotLabel: "Critical alerts open now",
|
|
79793
|
+
snapshotSection: null
|
|
79794
|
+
},
|
|
79795
|
+
{
|
|
79796
|
+
id: "rule-health",
|
|
79797
|
+
family: "system",
|
|
79798
|
+
label: "Rule health (broken / repaired)",
|
|
79799
|
+
bad: ["rule-broken"],
|
|
79800
|
+
recovery: ["rule-repaired"],
|
|
79801
|
+
snapshotLabel: "Notification rules broken now",
|
|
79802
|
+
snapshotSection: null
|
|
79803
|
+
}
|
|
79804
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79682
79805
|
new Set([
|
|
79683
79806
|
"disarmed",
|
|
79684
79807
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.142",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|