@camstack/addon-provider-wyze 0.2.151 → 0.2.153
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
|
@@ -31,7 +31,7 @@ let net = require("net");
|
|
|
31
31
|
net = __toESM(net, 1);
|
|
32
32
|
let node_child_process = require("node:child_process");
|
|
33
33
|
let node_tls = require("node:tls");
|
|
34
|
-
//#region ../types/dist/event-category-
|
|
34
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
35
35
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
36
36
|
EventCategory["SystemBoot"] = "system.boot";
|
|
37
37
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -719,6 +719,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
719
719
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
720
720
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
721
721
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
722
|
+
/**
|
|
723
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
724
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
725
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
726
|
+
*/
|
|
727
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
728
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
729
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
722
730
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
723
731
|
/**
|
|
724
732
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5446,7 +5454,7 @@ var ZodIssueCode = {
|
|
|
5446
5454
|
var ZodFirstPartyTypeKind;
|
|
5447
5455
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5448
5456
|
//#endregion
|
|
5449
|
-
//#region ../types/dist/sleep-
|
|
5457
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5450
5458
|
/**
|
|
5451
5459
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5452
5460
|
* window to float samples (D455).
|
|
@@ -42458,6 +42466,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42458
42466
|
"alert-critical",
|
|
42459
42467
|
"alert-error",
|
|
42460
42468
|
"alert-critical-resolved",
|
|
42469
|
+
"rule-broken",
|
|
42470
|
+
"rule-repaired",
|
|
42461
42471
|
"camera-online",
|
|
42462
42472
|
"camera-offline",
|
|
42463
42473
|
"camera-disabled",
|
|
@@ -78846,6 +78856,8 @@ new Map(Object.entries({
|
|
|
78846
78856
|
"alert-critical": "system",
|
|
78847
78857
|
"alert-error": "system",
|
|
78848
78858
|
"alert-critical-resolved": "system",
|
|
78859
|
+
"rule-broken": "system",
|
|
78860
|
+
"rule-repaired": "system",
|
|
78849
78861
|
"storage-location-low": "system",
|
|
78850
78862
|
"storage-location-critical": "system",
|
|
78851
78863
|
"storage-location-ok": "system",
|
|
@@ -78980,6 +78992,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78980
78992
|
"alert-critical-resolved"
|
|
78981
78993
|
]
|
|
78982
78994
|
},
|
|
78995
|
+
{
|
|
78996
|
+
id: "rule-health",
|
|
78997
|
+
family: "system",
|
|
78998
|
+
label: "Notification rules",
|
|
78999
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
79000
|
+
},
|
|
78983
79001
|
{
|
|
78984
79002
|
id: "alarm",
|
|
78985
79003
|
family: "alarm",
|
|
@@ -79257,6 +79275,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79257
79275
|
[...RULE_TEXT],
|
|
79258
79276
|
[...RULE_TEXT],
|
|
79259
79277
|
[...RULE_TEXT],
|
|
79278
|
+
[...RULE_TEXT],
|
|
79279
|
+
[...RULE_TEXT],
|
|
79280
|
+
[...RULE_TEXT],
|
|
79281
|
+
[...RULE_TEXT],
|
|
79260
79282
|
([...RULE_TEXT], [...UPDATES]),
|
|
79261
79283
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79262
79284
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79295,6 +79317,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79295
79317
|
[...RULE_TEXT],
|
|
79296
79318
|
...STATE_SUMMARY_VARS
|
|
79297
79319
|
];
|
|
79320
|
+
new Map([
|
|
79321
|
+
{
|
|
79322
|
+
id: "device-connectivity",
|
|
79323
|
+
family: "device-events",
|
|
79324
|
+
label: "Device connectivity (offline / back online)",
|
|
79325
|
+
bad: ["device-offline"],
|
|
79326
|
+
recovery: ["device-online"],
|
|
79327
|
+
snapshotLabel: "Devices offline now",
|
|
79328
|
+
snapshotSection: "device-state"
|
|
79329
|
+
},
|
|
79330
|
+
{
|
|
79331
|
+
id: "device-switch",
|
|
79332
|
+
family: "device-events",
|
|
79333
|
+
label: "Device switched off / back on",
|
|
79334
|
+
bad: ["device-disabled"],
|
|
79335
|
+
recovery: ["device-enabled"],
|
|
79336
|
+
snapshotLabel: "Devices switched off now",
|
|
79337
|
+
snapshotSection: "device-state"
|
|
79338
|
+
},
|
|
79339
|
+
{
|
|
79340
|
+
id: "stream-connectivity",
|
|
79341
|
+
family: "device-events",
|
|
79342
|
+
label: "Stream connectivity (offline / back online)",
|
|
79343
|
+
bad: ["stream-offline"],
|
|
79344
|
+
recovery: ["stream-online"],
|
|
79345
|
+
snapshotLabel: "Streams offline now",
|
|
79346
|
+
snapshotSection: "streams"
|
|
79347
|
+
},
|
|
79348
|
+
{
|
|
79349
|
+
id: "battery",
|
|
79350
|
+
family: "device-events",
|
|
79351
|
+
label: "Battery (low / back to normal)",
|
|
79352
|
+
bad: ["device-battery-low"],
|
|
79353
|
+
recovery: ["device-battery-normal"],
|
|
79354
|
+
snapshotLabel: "Batteries low now",
|
|
79355
|
+
snapshotSection: "battery"
|
|
79356
|
+
},
|
|
79357
|
+
{
|
|
79358
|
+
id: "consumables",
|
|
79359
|
+
family: "device-events",
|
|
79360
|
+
label: "Consumables (low / replaced)",
|
|
79361
|
+
bad: ["device-consumable-low"],
|
|
79362
|
+
recovery: ["device-consumable-normal"],
|
|
79363
|
+
snapshotLabel: "Consumables low now",
|
|
79364
|
+
snapshotSection: "consumables"
|
|
79365
|
+
},
|
|
79366
|
+
{
|
|
79367
|
+
id: "tanks",
|
|
79368
|
+
family: "device-events",
|
|
79369
|
+
label: "Tanks (low or full / back to normal)",
|
|
79370
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79371
|
+
recovery: ["device-tank-normal"],
|
|
79372
|
+
snapshotLabel: "Tanks low or full now",
|
|
79373
|
+
snapshotSection: "tanks"
|
|
79374
|
+
},
|
|
79375
|
+
{
|
|
79376
|
+
id: "recording-health",
|
|
79377
|
+
family: "device-events",
|
|
79378
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79379
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79380
|
+
recovery: ["recording-healthy"],
|
|
79381
|
+
snapshotLabel: "Recordings stalled now",
|
|
79382
|
+
snapshotSection: null
|
|
79383
|
+
},
|
|
79384
|
+
{
|
|
79385
|
+
id: "node-connectivity",
|
|
79386
|
+
family: "system",
|
|
79387
|
+
label: "Node connectivity (offline / back online)",
|
|
79388
|
+
bad: ["node-offline"],
|
|
79389
|
+
recovery: ["node-online"],
|
|
79390
|
+
snapshotLabel: "Nodes offline now",
|
|
79391
|
+
snapshotSection: "nodes"
|
|
79392
|
+
},
|
|
79393
|
+
{
|
|
79394
|
+
id: "storage-space",
|
|
79395
|
+
family: "system",
|
|
79396
|
+
label: "Storage space (low or critical / ok again)",
|
|
79397
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79398
|
+
recovery: ["storage-location-ok"],
|
|
79399
|
+
snapshotLabel: "Storage locations low now",
|
|
79400
|
+
snapshotSection: null
|
|
79401
|
+
},
|
|
79402
|
+
{
|
|
79403
|
+
id: "critical-alerts",
|
|
79404
|
+
family: "system",
|
|
79405
|
+
label: "Critical alerts (raised / resolved)",
|
|
79406
|
+
bad: ["alert-critical"],
|
|
79407
|
+
recovery: ["alert-critical-resolved"],
|
|
79408
|
+
snapshotLabel: "Critical alerts open now",
|
|
79409
|
+
snapshotSection: null
|
|
79410
|
+
},
|
|
79411
|
+
{
|
|
79412
|
+
id: "rule-health",
|
|
79413
|
+
family: "system",
|
|
79414
|
+
label: "Rule health (broken / repaired)",
|
|
79415
|
+
bad: ["rule-broken"],
|
|
79416
|
+
recovery: ["rule-repaired"],
|
|
79417
|
+
snapshotLabel: "Notification rules broken now",
|
|
79418
|
+
snapshotSection: null
|
|
79419
|
+
}
|
|
79420
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79298
79421
|
new Set([
|
|
79299
79422
|
"disarmed",
|
|
79300
79423
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { getCACertificates, setDefaultCACertificates } from "node:tls";
|
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
11
11
|
var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../types/dist/event-category-
|
|
13
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
14
14
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
15
15
|
EventCategory["SystemBoot"] = "system.boot";
|
|
16
16
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -698,6 +698,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
698
698
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
699
699
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
700
700
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
701
|
+
/**
|
|
702
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
703
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
704
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
705
|
+
*/
|
|
706
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
707
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
708
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
701
709
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
702
710
|
/**
|
|
703
711
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5425,7 +5433,7 @@ var ZodIssueCode = {
|
|
|
5425
5433
|
var ZodFirstPartyTypeKind;
|
|
5426
5434
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5427
5435
|
//#endregion
|
|
5428
|
-
//#region ../types/dist/sleep-
|
|
5436
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5429
5437
|
/**
|
|
5430
5438
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5431
5439
|
* window to float samples (D455).
|
|
@@ -42437,6 +42445,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42437
42445
|
"alert-critical",
|
|
42438
42446
|
"alert-error",
|
|
42439
42447
|
"alert-critical-resolved",
|
|
42448
|
+
"rule-broken",
|
|
42449
|
+
"rule-repaired",
|
|
42440
42450
|
"camera-online",
|
|
42441
42451
|
"camera-offline",
|
|
42442
42452
|
"camera-disabled",
|
|
@@ -78825,6 +78835,8 @@ new Map(Object.entries({
|
|
|
78825
78835
|
"alert-critical": "system",
|
|
78826
78836
|
"alert-error": "system",
|
|
78827
78837
|
"alert-critical-resolved": "system",
|
|
78838
|
+
"rule-broken": "system",
|
|
78839
|
+
"rule-repaired": "system",
|
|
78828
78840
|
"storage-location-low": "system",
|
|
78829
78841
|
"storage-location-critical": "system",
|
|
78830
78842
|
"storage-location-ok": "system",
|
|
@@ -78959,6 +78971,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78959
78971
|
"alert-critical-resolved"
|
|
78960
78972
|
]
|
|
78961
78973
|
},
|
|
78974
|
+
{
|
|
78975
|
+
id: "rule-health",
|
|
78976
|
+
family: "system",
|
|
78977
|
+
label: "Notification rules",
|
|
78978
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
78979
|
+
},
|
|
78962
78980
|
{
|
|
78963
78981
|
id: "alarm",
|
|
78964
78982
|
family: "alarm",
|
|
@@ -79236,6 +79254,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79236
79254
|
[...RULE_TEXT],
|
|
79237
79255
|
[...RULE_TEXT],
|
|
79238
79256
|
[...RULE_TEXT],
|
|
79257
|
+
[...RULE_TEXT],
|
|
79258
|
+
[...RULE_TEXT],
|
|
79259
|
+
[...RULE_TEXT],
|
|
79260
|
+
[...RULE_TEXT],
|
|
79239
79261
|
([...RULE_TEXT], [...UPDATES]),
|
|
79240
79262
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79241
79263
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79274,6 +79296,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79274
79296
|
[...RULE_TEXT],
|
|
79275
79297
|
...STATE_SUMMARY_VARS
|
|
79276
79298
|
];
|
|
79299
|
+
new Map([
|
|
79300
|
+
{
|
|
79301
|
+
id: "device-connectivity",
|
|
79302
|
+
family: "device-events",
|
|
79303
|
+
label: "Device connectivity (offline / back online)",
|
|
79304
|
+
bad: ["device-offline"],
|
|
79305
|
+
recovery: ["device-online"],
|
|
79306
|
+
snapshotLabel: "Devices offline now",
|
|
79307
|
+
snapshotSection: "device-state"
|
|
79308
|
+
},
|
|
79309
|
+
{
|
|
79310
|
+
id: "device-switch",
|
|
79311
|
+
family: "device-events",
|
|
79312
|
+
label: "Device switched off / back on",
|
|
79313
|
+
bad: ["device-disabled"],
|
|
79314
|
+
recovery: ["device-enabled"],
|
|
79315
|
+
snapshotLabel: "Devices switched off now",
|
|
79316
|
+
snapshotSection: "device-state"
|
|
79317
|
+
},
|
|
79318
|
+
{
|
|
79319
|
+
id: "stream-connectivity",
|
|
79320
|
+
family: "device-events",
|
|
79321
|
+
label: "Stream connectivity (offline / back online)",
|
|
79322
|
+
bad: ["stream-offline"],
|
|
79323
|
+
recovery: ["stream-online"],
|
|
79324
|
+
snapshotLabel: "Streams offline now",
|
|
79325
|
+
snapshotSection: "streams"
|
|
79326
|
+
},
|
|
79327
|
+
{
|
|
79328
|
+
id: "battery",
|
|
79329
|
+
family: "device-events",
|
|
79330
|
+
label: "Battery (low / back to normal)",
|
|
79331
|
+
bad: ["device-battery-low"],
|
|
79332
|
+
recovery: ["device-battery-normal"],
|
|
79333
|
+
snapshotLabel: "Batteries low now",
|
|
79334
|
+
snapshotSection: "battery"
|
|
79335
|
+
},
|
|
79336
|
+
{
|
|
79337
|
+
id: "consumables",
|
|
79338
|
+
family: "device-events",
|
|
79339
|
+
label: "Consumables (low / replaced)",
|
|
79340
|
+
bad: ["device-consumable-low"],
|
|
79341
|
+
recovery: ["device-consumable-normal"],
|
|
79342
|
+
snapshotLabel: "Consumables low now",
|
|
79343
|
+
snapshotSection: "consumables"
|
|
79344
|
+
},
|
|
79345
|
+
{
|
|
79346
|
+
id: "tanks",
|
|
79347
|
+
family: "device-events",
|
|
79348
|
+
label: "Tanks (low or full / back to normal)",
|
|
79349
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79350
|
+
recovery: ["device-tank-normal"],
|
|
79351
|
+
snapshotLabel: "Tanks low or full now",
|
|
79352
|
+
snapshotSection: "tanks"
|
|
79353
|
+
},
|
|
79354
|
+
{
|
|
79355
|
+
id: "recording-health",
|
|
79356
|
+
family: "device-events",
|
|
79357
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79358
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79359
|
+
recovery: ["recording-healthy"],
|
|
79360
|
+
snapshotLabel: "Recordings stalled now",
|
|
79361
|
+
snapshotSection: null
|
|
79362
|
+
},
|
|
79363
|
+
{
|
|
79364
|
+
id: "node-connectivity",
|
|
79365
|
+
family: "system",
|
|
79366
|
+
label: "Node connectivity (offline / back online)",
|
|
79367
|
+
bad: ["node-offline"],
|
|
79368
|
+
recovery: ["node-online"],
|
|
79369
|
+
snapshotLabel: "Nodes offline now",
|
|
79370
|
+
snapshotSection: "nodes"
|
|
79371
|
+
},
|
|
79372
|
+
{
|
|
79373
|
+
id: "storage-space",
|
|
79374
|
+
family: "system",
|
|
79375
|
+
label: "Storage space (low or critical / ok again)",
|
|
79376
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79377
|
+
recovery: ["storage-location-ok"],
|
|
79378
|
+
snapshotLabel: "Storage locations low now",
|
|
79379
|
+
snapshotSection: null
|
|
79380
|
+
},
|
|
79381
|
+
{
|
|
79382
|
+
id: "critical-alerts",
|
|
79383
|
+
family: "system",
|
|
79384
|
+
label: "Critical alerts (raised / resolved)",
|
|
79385
|
+
bad: ["alert-critical"],
|
|
79386
|
+
recovery: ["alert-critical-resolved"],
|
|
79387
|
+
snapshotLabel: "Critical alerts open now",
|
|
79388
|
+
snapshotSection: null
|
|
79389
|
+
},
|
|
79390
|
+
{
|
|
79391
|
+
id: "rule-health",
|
|
79392
|
+
family: "system",
|
|
79393
|
+
label: "Rule health (broken / repaired)",
|
|
79394
|
+
bad: ["rule-broken"],
|
|
79395
|
+
recovery: ["rule-repaired"],
|
|
79396
|
+
snapshotLabel: "Notification rules broken now",
|
|
79397
|
+
snapshotSection: null
|
|
79398
|
+
}
|
|
79399
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79277
79400
|
new Set([
|
|
79278
79401
|
"disarmed",
|
|
79279
79402
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.153",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|