@camstack/addon-provider-unraid 0.2.139 → 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -687,6 +687,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
687
687
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
688
688
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
689
689
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
690
|
+
/**
|
|
691
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
692
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
693
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
694
|
+
*/
|
|
695
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
696
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
697
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
690
698
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
691
699
|
/**
|
|
692
700
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5414,7 +5422,7 @@ var ZodIssueCode = {
|
|
|
5414
5422
|
var ZodFirstPartyTypeKind;
|
|
5415
5423
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5416
5424
|
//#endregion
|
|
5417
|
-
//#region ../types/dist/sleep-
|
|
5425
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5418
5426
|
/**
|
|
5419
5427
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5420
5428
|
* window to float samples (D455).
|
|
@@ -42502,6 +42510,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42502
42510
|
"alert-critical",
|
|
42503
42511
|
"alert-error",
|
|
42504
42512
|
"alert-critical-resolved",
|
|
42513
|
+
"rule-broken",
|
|
42514
|
+
"rule-repaired",
|
|
42505
42515
|
"camera-online",
|
|
42506
42516
|
"camera-offline",
|
|
42507
42517
|
"camera-disabled",
|
|
@@ -78795,6 +78805,8 @@ new Map(Object.entries({
|
|
|
78795
78805
|
"alert-critical": "system",
|
|
78796
78806
|
"alert-error": "system",
|
|
78797
78807
|
"alert-critical-resolved": "system",
|
|
78808
|
+
"rule-broken": "system",
|
|
78809
|
+
"rule-repaired": "system",
|
|
78798
78810
|
"storage-location-low": "system",
|
|
78799
78811
|
"storage-location-critical": "system",
|
|
78800
78812
|
"storage-location-ok": "system",
|
|
@@ -78929,6 +78941,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78929
78941
|
"alert-critical-resolved"
|
|
78930
78942
|
]
|
|
78931
78943
|
},
|
|
78944
|
+
{
|
|
78945
|
+
id: "rule-health",
|
|
78946
|
+
family: "system",
|
|
78947
|
+
label: "Notification rules",
|
|
78948
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
78949
|
+
},
|
|
78932
78950
|
{
|
|
78933
78951
|
id: "alarm",
|
|
78934
78952
|
family: "alarm",
|
|
@@ -79206,6 +79224,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79206
79224
|
[...RULE_TEXT],
|
|
79207
79225
|
[...RULE_TEXT],
|
|
79208
79226
|
[...RULE_TEXT],
|
|
79227
|
+
[...RULE_TEXT],
|
|
79228
|
+
[...RULE_TEXT],
|
|
79229
|
+
[...RULE_TEXT],
|
|
79230
|
+
[...RULE_TEXT],
|
|
79209
79231
|
([...RULE_TEXT], [...UPDATES]),
|
|
79210
79232
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79211
79233
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79244,6 +79266,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79244
79266
|
[...RULE_TEXT],
|
|
79245
79267
|
...STATE_SUMMARY_VARS
|
|
79246
79268
|
];
|
|
79269
|
+
new Map([
|
|
79270
|
+
{
|
|
79271
|
+
id: "device-connectivity",
|
|
79272
|
+
family: "device-events",
|
|
79273
|
+
label: "Device connectivity (offline / back online)",
|
|
79274
|
+
bad: ["device-offline"],
|
|
79275
|
+
recovery: ["device-online"],
|
|
79276
|
+
snapshotLabel: "Devices offline now",
|
|
79277
|
+
snapshotSection: "device-state"
|
|
79278
|
+
},
|
|
79279
|
+
{
|
|
79280
|
+
id: "device-switch",
|
|
79281
|
+
family: "device-events",
|
|
79282
|
+
label: "Device switched off / back on",
|
|
79283
|
+
bad: ["device-disabled"],
|
|
79284
|
+
recovery: ["device-enabled"],
|
|
79285
|
+
snapshotLabel: "Devices switched off now",
|
|
79286
|
+
snapshotSection: "device-state"
|
|
79287
|
+
},
|
|
79288
|
+
{
|
|
79289
|
+
id: "stream-connectivity",
|
|
79290
|
+
family: "device-events",
|
|
79291
|
+
label: "Stream connectivity (offline / back online)",
|
|
79292
|
+
bad: ["stream-offline"],
|
|
79293
|
+
recovery: ["stream-online"],
|
|
79294
|
+
snapshotLabel: "Streams offline now",
|
|
79295
|
+
snapshotSection: "streams"
|
|
79296
|
+
},
|
|
79297
|
+
{
|
|
79298
|
+
id: "battery",
|
|
79299
|
+
family: "device-events",
|
|
79300
|
+
label: "Battery (low / back to normal)",
|
|
79301
|
+
bad: ["device-battery-low"],
|
|
79302
|
+
recovery: ["device-battery-normal"],
|
|
79303
|
+
snapshotLabel: "Batteries low now",
|
|
79304
|
+
snapshotSection: "battery"
|
|
79305
|
+
},
|
|
79306
|
+
{
|
|
79307
|
+
id: "consumables",
|
|
79308
|
+
family: "device-events",
|
|
79309
|
+
label: "Consumables (low / replaced)",
|
|
79310
|
+
bad: ["device-consumable-low"],
|
|
79311
|
+
recovery: ["device-consumable-normal"],
|
|
79312
|
+
snapshotLabel: "Consumables low now",
|
|
79313
|
+
snapshotSection: "consumables"
|
|
79314
|
+
},
|
|
79315
|
+
{
|
|
79316
|
+
id: "tanks",
|
|
79317
|
+
family: "device-events",
|
|
79318
|
+
label: "Tanks (low or full / back to normal)",
|
|
79319
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79320
|
+
recovery: ["device-tank-normal"],
|
|
79321
|
+
snapshotLabel: "Tanks low or full now",
|
|
79322
|
+
snapshotSection: "tanks"
|
|
79323
|
+
},
|
|
79324
|
+
{
|
|
79325
|
+
id: "recording-health",
|
|
79326
|
+
family: "device-events",
|
|
79327
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79328
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79329
|
+
recovery: ["recording-healthy"],
|
|
79330
|
+
snapshotLabel: "Recordings stalled now",
|
|
79331
|
+
snapshotSection: null
|
|
79332
|
+
},
|
|
79333
|
+
{
|
|
79334
|
+
id: "node-connectivity",
|
|
79335
|
+
family: "system",
|
|
79336
|
+
label: "Node connectivity (offline / back online)",
|
|
79337
|
+
bad: ["node-offline"],
|
|
79338
|
+
recovery: ["node-online"],
|
|
79339
|
+
snapshotLabel: "Nodes offline now",
|
|
79340
|
+
snapshotSection: "nodes"
|
|
79341
|
+
},
|
|
79342
|
+
{
|
|
79343
|
+
id: "storage-space",
|
|
79344
|
+
family: "system",
|
|
79345
|
+
label: "Storage space (low or critical / ok again)",
|
|
79346
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79347
|
+
recovery: ["storage-location-ok"],
|
|
79348
|
+
snapshotLabel: "Storage locations low now",
|
|
79349
|
+
snapshotSection: null
|
|
79350
|
+
},
|
|
79351
|
+
{
|
|
79352
|
+
id: "critical-alerts",
|
|
79353
|
+
family: "system",
|
|
79354
|
+
label: "Critical alerts (raised / resolved)",
|
|
79355
|
+
bad: ["alert-critical"],
|
|
79356
|
+
recovery: ["alert-critical-resolved"],
|
|
79357
|
+
snapshotLabel: "Critical alerts open now",
|
|
79358
|
+
snapshotSection: null
|
|
79359
|
+
},
|
|
79360
|
+
{
|
|
79361
|
+
id: "rule-health",
|
|
79362
|
+
family: "system",
|
|
79363
|
+
label: "Rule health (broken / repaired)",
|
|
79364
|
+
bad: ["rule-broken"],
|
|
79365
|
+
recovery: ["rule-repaired"],
|
|
79366
|
+
snapshotLabel: "Notification rules broken now",
|
|
79367
|
+
snapshotSection: null
|
|
79368
|
+
}
|
|
79369
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79247
79370
|
new Set([
|
|
79248
79371
|
"disarmed",
|
|
79249
79372
|
"armed_home",
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-7pZEBmVg.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -686,6 +686,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
686
686
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
687
687
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
688
688
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
689
|
+
/**
|
|
690
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
691
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
692
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
693
|
+
*/
|
|
694
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
695
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
696
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
689
697
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
690
698
|
/**
|
|
691
699
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5413,7 +5421,7 @@ var ZodIssueCode = {
|
|
|
5413
5421
|
var ZodFirstPartyTypeKind;
|
|
5414
5422
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5415
5423
|
//#endregion
|
|
5416
|
-
//#region ../types/dist/sleep-
|
|
5424
|
+
//#region ../types/dist/sleep-CueztlR1.mjs
|
|
5417
5425
|
/**
|
|
5418
5426
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5419
5427
|
* window to float samples (D455).
|
|
@@ -42501,6 +42509,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42501
42509
|
"alert-critical",
|
|
42502
42510
|
"alert-error",
|
|
42503
42511
|
"alert-critical-resolved",
|
|
42512
|
+
"rule-broken",
|
|
42513
|
+
"rule-repaired",
|
|
42504
42514
|
"camera-online",
|
|
42505
42515
|
"camera-offline",
|
|
42506
42516
|
"camera-disabled",
|
|
@@ -78794,6 +78804,8 @@ new Map(Object.entries({
|
|
|
78794
78804
|
"alert-critical": "system",
|
|
78795
78805
|
"alert-error": "system",
|
|
78796
78806
|
"alert-critical-resolved": "system",
|
|
78807
|
+
"rule-broken": "system",
|
|
78808
|
+
"rule-repaired": "system",
|
|
78797
78809
|
"storage-location-low": "system",
|
|
78798
78810
|
"storage-location-critical": "system",
|
|
78799
78811
|
"storage-location-ok": "system",
|
|
@@ -78928,6 +78940,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78928
78940
|
"alert-critical-resolved"
|
|
78929
78941
|
]
|
|
78930
78942
|
},
|
|
78943
|
+
{
|
|
78944
|
+
id: "rule-health",
|
|
78945
|
+
family: "system",
|
|
78946
|
+
label: "Notification rules",
|
|
78947
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
78948
|
+
},
|
|
78931
78949
|
{
|
|
78932
78950
|
id: "alarm",
|
|
78933
78951
|
family: "alarm",
|
|
@@ -79205,6 +79223,10 @@ var STATE_SUMMARY_VARS = [
|
|
|
79205
79223
|
[...RULE_TEXT],
|
|
79206
79224
|
[...RULE_TEXT],
|
|
79207
79225
|
[...RULE_TEXT],
|
|
79226
|
+
[...RULE_TEXT],
|
|
79227
|
+
[...RULE_TEXT],
|
|
79228
|
+
[...RULE_TEXT],
|
|
79229
|
+
[...RULE_TEXT],
|
|
79208
79230
|
([...RULE_TEXT], [...UPDATES]),
|
|
79209
79231
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
79210
79232
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -79243,6 +79265,107 @@ var STATE_SUMMARY_VARS = [
|
|
|
79243
79265
|
[...RULE_TEXT],
|
|
79244
79266
|
...STATE_SUMMARY_VARS
|
|
79245
79267
|
];
|
|
79268
|
+
new Map([
|
|
79269
|
+
{
|
|
79270
|
+
id: "device-connectivity",
|
|
79271
|
+
family: "device-events",
|
|
79272
|
+
label: "Device connectivity (offline / back online)",
|
|
79273
|
+
bad: ["device-offline"],
|
|
79274
|
+
recovery: ["device-online"],
|
|
79275
|
+
snapshotLabel: "Devices offline now",
|
|
79276
|
+
snapshotSection: "device-state"
|
|
79277
|
+
},
|
|
79278
|
+
{
|
|
79279
|
+
id: "device-switch",
|
|
79280
|
+
family: "device-events",
|
|
79281
|
+
label: "Device switched off / back on",
|
|
79282
|
+
bad: ["device-disabled"],
|
|
79283
|
+
recovery: ["device-enabled"],
|
|
79284
|
+
snapshotLabel: "Devices switched off now",
|
|
79285
|
+
snapshotSection: "device-state"
|
|
79286
|
+
},
|
|
79287
|
+
{
|
|
79288
|
+
id: "stream-connectivity",
|
|
79289
|
+
family: "device-events",
|
|
79290
|
+
label: "Stream connectivity (offline / back online)",
|
|
79291
|
+
bad: ["stream-offline"],
|
|
79292
|
+
recovery: ["stream-online"],
|
|
79293
|
+
snapshotLabel: "Streams offline now",
|
|
79294
|
+
snapshotSection: "streams"
|
|
79295
|
+
},
|
|
79296
|
+
{
|
|
79297
|
+
id: "battery",
|
|
79298
|
+
family: "device-events",
|
|
79299
|
+
label: "Battery (low / back to normal)",
|
|
79300
|
+
bad: ["device-battery-low"],
|
|
79301
|
+
recovery: ["device-battery-normal"],
|
|
79302
|
+
snapshotLabel: "Batteries low now",
|
|
79303
|
+
snapshotSection: "battery"
|
|
79304
|
+
},
|
|
79305
|
+
{
|
|
79306
|
+
id: "consumables",
|
|
79307
|
+
family: "device-events",
|
|
79308
|
+
label: "Consumables (low / replaced)",
|
|
79309
|
+
bad: ["device-consumable-low"],
|
|
79310
|
+
recovery: ["device-consumable-normal"],
|
|
79311
|
+
snapshotLabel: "Consumables low now",
|
|
79312
|
+
snapshotSection: "consumables"
|
|
79313
|
+
},
|
|
79314
|
+
{
|
|
79315
|
+
id: "tanks",
|
|
79316
|
+
family: "device-events",
|
|
79317
|
+
label: "Tanks (low or full / back to normal)",
|
|
79318
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
79319
|
+
recovery: ["device-tank-normal"],
|
|
79320
|
+
snapshotLabel: "Tanks low or full now",
|
|
79321
|
+
snapshotSection: "tanks"
|
|
79322
|
+
},
|
|
79323
|
+
{
|
|
79324
|
+
id: "recording-health",
|
|
79325
|
+
family: "device-events",
|
|
79326
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
79327
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
79328
|
+
recovery: ["recording-healthy"],
|
|
79329
|
+
snapshotLabel: "Recordings stalled now",
|
|
79330
|
+
snapshotSection: null
|
|
79331
|
+
},
|
|
79332
|
+
{
|
|
79333
|
+
id: "node-connectivity",
|
|
79334
|
+
family: "system",
|
|
79335
|
+
label: "Node connectivity (offline / back online)",
|
|
79336
|
+
bad: ["node-offline"],
|
|
79337
|
+
recovery: ["node-online"],
|
|
79338
|
+
snapshotLabel: "Nodes offline now",
|
|
79339
|
+
snapshotSection: "nodes"
|
|
79340
|
+
},
|
|
79341
|
+
{
|
|
79342
|
+
id: "storage-space",
|
|
79343
|
+
family: "system",
|
|
79344
|
+
label: "Storage space (low or critical / ok again)",
|
|
79345
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
79346
|
+
recovery: ["storage-location-ok"],
|
|
79347
|
+
snapshotLabel: "Storage locations low now",
|
|
79348
|
+
snapshotSection: null
|
|
79349
|
+
},
|
|
79350
|
+
{
|
|
79351
|
+
id: "critical-alerts",
|
|
79352
|
+
family: "system",
|
|
79353
|
+
label: "Critical alerts (raised / resolved)",
|
|
79354
|
+
bad: ["alert-critical"],
|
|
79355
|
+
recovery: ["alert-critical-resolved"],
|
|
79356
|
+
snapshotLabel: "Critical alerts open now",
|
|
79357
|
+
snapshotSection: null
|
|
79358
|
+
},
|
|
79359
|
+
{
|
|
79360
|
+
id: "rule-health",
|
|
79361
|
+
family: "system",
|
|
79362
|
+
label: "Rule health (broken / repaired)",
|
|
79363
|
+
bad: ["rule-broken"],
|
|
79364
|
+
recovery: ["rule-repaired"],
|
|
79365
|
+
snapshotLabel: "Notification rules broken now",
|
|
79366
|
+
snapshotSection: null
|
|
79367
|
+
}
|
|
79368
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
79246
79369
|
new Set([
|
|
79247
79370
|
"disarmed",
|
|
79248
79371
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unraid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.141",
|
|
4
4
|
"description": "Unraid device-provider addon for CamStack — one Container per Unraid instance fanning out array, disk, docker and notification entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|