@camstack/addon-export-alexa 1.2.159 → 1.2.160

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.
@@ -34,7 +34,7 @@ let node_path = require("node:path");
34
34
  node_path = __toESM(node_path, 1);
35
35
  require("node:child_process");
36
36
  require("node:zlib");
37
- //#region ../types/dist/event-category-DOl51-Ij.mjs
37
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -722,6 +722,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
722
722
  EventCategory["BackupRestored"] = "backup.restored";
723
723
  EventCategory["NotificationDispatched"] = "notification.dispatched";
724
724
  EventCategory["NotificationFailed"] = "notification.failed";
725
+ /**
726
+ * A notification rule that cannot work (D905): its stored row does not load,
727
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
728
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
729
+ */
730
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
731
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
732
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
725
733
  EventCategory["DeviceUpdated"] = "device.updated";
726
734
  /**
727
735
  * Transport-level connectivity. Emitted by the device driver when
@@ -5449,7 +5457,7 @@ var ZodIssueCode = {
5449
5457
  var ZodFirstPartyTypeKind;
5450
5458
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5451
5459
  //#endregion
5452
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5460
+ //#region ../types/dist/sleep-CueztlR1.mjs
5453
5461
  /**
5454
5462
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5455
5463
  * window to float samples (D455).
@@ -42327,6 +42335,8 @@ var NcSystemEventKindSchema = _enum([
42327
42335
  "alert-critical",
42328
42336
  "alert-error",
42329
42337
  "alert-critical-resolved",
42338
+ "rule-broken",
42339
+ "rule-repaired",
42330
42340
  "camera-online",
42331
42341
  "camera-offline",
42332
42342
  "camera-disabled",
@@ -73831,6 +73841,8 @@ new Map(Object.entries({
73831
73841
  "alert-critical": "system",
73832
73842
  "alert-error": "system",
73833
73843
  "alert-critical-resolved": "system",
73844
+ "rule-broken": "system",
73845
+ "rule-repaired": "system",
73834
73846
  "storage-location-low": "system",
73835
73847
  "storage-location-critical": "system",
73836
73848
  "storage-location-ok": "system",
@@ -73965,6 +73977,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73965
73977
  "alert-critical-resolved"
73966
73978
  ]
73967
73979
  },
73980
+ {
73981
+ id: "rule-health",
73982
+ family: "system",
73983
+ label: "Notification rules",
73984
+ kinds: ["rule-broken", "rule-repaired"]
73985
+ },
73968
73986
  {
73969
73987
  id: "alarm",
73970
73988
  family: "alarm",
@@ -74242,6 +74260,10 @@ var STATE_SUMMARY_VARS = [
74242
74260
  [...RULE_TEXT],
74243
74261
  [...RULE_TEXT],
74244
74262
  [...RULE_TEXT],
74263
+ [...RULE_TEXT],
74264
+ [...RULE_TEXT],
74265
+ [...RULE_TEXT],
74266
+ [...RULE_TEXT],
74245
74267
  ([...RULE_TEXT], [...UPDATES]),
74246
74268
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74247
74269
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74280,6 +74302,107 @@ var STATE_SUMMARY_VARS = [
74280
74302
  [...RULE_TEXT],
74281
74303
  ...STATE_SUMMARY_VARS
74282
74304
  ];
74305
+ new Map([
74306
+ {
74307
+ id: "device-connectivity",
74308
+ family: "device-events",
74309
+ label: "Device connectivity (offline / back online)",
74310
+ bad: ["device-offline"],
74311
+ recovery: ["device-online"],
74312
+ snapshotLabel: "Devices offline now",
74313
+ snapshotSection: "device-state"
74314
+ },
74315
+ {
74316
+ id: "device-switch",
74317
+ family: "device-events",
74318
+ label: "Device switched off / back on",
74319
+ bad: ["device-disabled"],
74320
+ recovery: ["device-enabled"],
74321
+ snapshotLabel: "Devices switched off now",
74322
+ snapshotSection: "device-state"
74323
+ },
74324
+ {
74325
+ id: "stream-connectivity",
74326
+ family: "device-events",
74327
+ label: "Stream connectivity (offline / back online)",
74328
+ bad: ["stream-offline"],
74329
+ recovery: ["stream-online"],
74330
+ snapshotLabel: "Streams offline now",
74331
+ snapshotSection: "streams"
74332
+ },
74333
+ {
74334
+ id: "battery",
74335
+ family: "device-events",
74336
+ label: "Battery (low / back to normal)",
74337
+ bad: ["device-battery-low"],
74338
+ recovery: ["device-battery-normal"],
74339
+ snapshotLabel: "Batteries low now",
74340
+ snapshotSection: "battery"
74341
+ },
74342
+ {
74343
+ id: "consumables",
74344
+ family: "device-events",
74345
+ label: "Consumables (low / replaced)",
74346
+ bad: ["device-consumable-low"],
74347
+ recovery: ["device-consumable-normal"],
74348
+ snapshotLabel: "Consumables low now",
74349
+ snapshotSection: "consumables"
74350
+ },
74351
+ {
74352
+ id: "tanks",
74353
+ family: "device-events",
74354
+ label: "Tanks (low or full / back to normal)",
74355
+ bad: ["device-tank-low", "device-tank-full"],
74356
+ recovery: ["device-tank-normal"],
74357
+ snapshotLabel: "Tanks low or full now",
74358
+ snapshotSection: "tanks"
74359
+ },
74360
+ {
74361
+ id: "recording-health",
74362
+ family: "device-events",
74363
+ label: "Recording health (stalled or degraded / recording again)",
74364
+ bad: ["recording-stalled", "recording-degraded"],
74365
+ recovery: ["recording-healthy"],
74366
+ snapshotLabel: "Recordings stalled now",
74367
+ snapshotSection: null
74368
+ },
74369
+ {
74370
+ id: "node-connectivity",
74371
+ family: "system",
74372
+ label: "Node connectivity (offline / back online)",
74373
+ bad: ["node-offline"],
74374
+ recovery: ["node-online"],
74375
+ snapshotLabel: "Nodes offline now",
74376
+ snapshotSection: "nodes"
74377
+ },
74378
+ {
74379
+ id: "storage-space",
74380
+ family: "system",
74381
+ label: "Storage space (low or critical / ok again)",
74382
+ bad: ["storage-location-low", "storage-location-critical"],
74383
+ recovery: ["storage-location-ok"],
74384
+ snapshotLabel: "Storage locations low now",
74385
+ snapshotSection: null
74386
+ },
74387
+ {
74388
+ id: "critical-alerts",
74389
+ family: "system",
74390
+ label: "Critical alerts (raised / resolved)",
74391
+ bad: ["alert-critical"],
74392
+ recovery: ["alert-critical-resolved"],
74393
+ snapshotLabel: "Critical alerts open now",
74394
+ snapshotSection: null
74395
+ },
74396
+ {
74397
+ id: "rule-health",
74398
+ family: "system",
74399
+ label: "Rule health (broken / repaired)",
74400
+ bad: ["rule-broken"],
74401
+ recovery: ["rule-repaired"],
74402
+ snapshotLabel: "Notification rules broken now",
74403
+ snapshotSection: null
74404
+ }
74405
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74283
74406
  new Set([
74284
74407
  "disarmed",
74285
74408
  "armed_home",
@@ -5,7 +5,7 @@ import "node:fs";
5
5
  import "node:path";
6
6
  import "node:child_process";
7
7
  import "node:zlib";
8
- //#region ../types/dist/event-category-DOl51-Ij.mjs
8
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
9
9
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
10
10
  EventCategory["SystemBoot"] = "system.boot";
11
11
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -693,6 +693,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
693
693
  EventCategory["BackupRestored"] = "backup.restored";
694
694
  EventCategory["NotificationDispatched"] = "notification.dispatched";
695
695
  EventCategory["NotificationFailed"] = "notification.failed";
696
+ /**
697
+ * A notification rule that cannot work (D905): its stored row does not load,
698
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
699
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
700
+ */
701
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
702
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
703
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
696
704
  EventCategory["DeviceUpdated"] = "device.updated";
697
705
  /**
698
706
  * Transport-level connectivity. Emitted by the device driver when
@@ -5420,7 +5428,7 @@ var ZodIssueCode = {
5420
5428
  var ZodFirstPartyTypeKind;
5421
5429
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5422
5430
  //#endregion
5423
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5431
+ //#region ../types/dist/sleep-CueztlR1.mjs
5424
5432
  /**
5425
5433
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5426
5434
  * window to float samples (D455).
@@ -42298,6 +42306,8 @@ var NcSystemEventKindSchema = _enum([
42298
42306
  "alert-critical",
42299
42307
  "alert-error",
42300
42308
  "alert-critical-resolved",
42309
+ "rule-broken",
42310
+ "rule-repaired",
42301
42311
  "camera-online",
42302
42312
  "camera-offline",
42303
42313
  "camera-disabled",
@@ -73802,6 +73812,8 @@ new Map(Object.entries({
73802
73812
  "alert-critical": "system",
73803
73813
  "alert-error": "system",
73804
73814
  "alert-critical-resolved": "system",
73815
+ "rule-broken": "system",
73816
+ "rule-repaired": "system",
73805
73817
  "storage-location-low": "system",
73806
73818
  "storage-location-critical": "system",
73807
73819
  "storage-location-ok": "system",
@@ -73936,6 +73948,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73936
73948
  "alert-critical-resolved"
73937
73949
  ]
73938
73950
  },
73951
+ {
73952
+ id: "rule-health",
73953
+ family: "system",
73954
+ label: "Notification rules",
73955
+ kinds: ["rule-broken", "rule-repaired"]
73956
+ },
73939
73957
  {
73940
73958
  id: "alarm",
73941
73959
  family: "alarm",
@@ -74213,6 +74231,10 @@ var STATE_SUMMARY_VARS = [
74213
74231
  [...RULE_TEXT],
74214
74232
  [...RULE_TEXT],
74215
74233
  [...RULE_TEXT],
74234
+ [...RULE_TEXT],
74235
+ [...RULE_TEXT],
74236
+ [...RULE_TEXT],
74237
+ [...RULE_TEXT],
74216
74238
  ([...RULE_TEXT], [...UPDATES]),
74217
74239
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74218
74240
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74251,6 +74273,107 @@ var STATE_SUMMARY_VARS = [
74251
74273
  [...RULE_TEXT],
74252
74274
  ...STATE_SUMMARY_VARS
74253
74275
  ];
74276
+ new Map([
74277
+ {
74278
+ id: "device-connectivity",
74279
+ family: "device-events",
74280
+ label: "Device connectivity (offline / back online)",
74281
+ bad: ["device-offline"],
74282
+ recovery: ["device-online"],
74283
+ snapshotLabel: "Devices offline now",
74284
+ snapshotSection: "device-state"
74285
+ },
74286
+ {
74287
+ id: "device-switch",
74288
+ family: "device-events",
74289
+ label: "Device switched off / back on",
74290
+ bad: ["device-disabled"],
74291
+ recovery: ["device-enabled"],
74292
+ snapshotLabel: "Devices switched off now",
74293
+ snapshotSection: "device-state"
74294
+ },
74295
+ {
74296
+ id: "stream-connectivity",
74297
+ family: "device-events",
74298
+ label: "Stream connectivity (offline / back online)",
74299
+ bad: ["stream-offline"],
74300
+ recovery: ["stream-online"],
74301
+ snapshotLabel: "Streams offline now",
74302
+ snapshotSection: "streams"
74303
+ },
74304
+ {
74305
+ id: "battery",
74306
+ family: "device-events",
74307
+ label: "Battery (low / back to normal)",
74308
+ bad: ["device-battery-low"],
74309
+ recovery: ["device-battery-normal"],
74310
+ snapshotLabel: "Batteries low now",
74311
+ snapshotSection: "battery"
74312
+ },
74313
+ {
74314
+ id: "consumables",
74315
+ family: "device-events",
74316
+ label: "Consumables (low / replaced)",
74317
+ bad: ["device-consumable-low"],
74318
+ recovery: ["device-consumable-normal"],
74319
+ snapshotLabel: "Consumables low now",
74320
+ snapshotSection: "consumables"
74321
+ },
74322
+ {
74323
+ id: "tanks",
74324
+ family: "device-events",
74325
+ label: "Tanks (low or full / back to normal)",
74326
+ bad: ["device-tank-low", "device-tank-full"],
74327
+ recovery: ["device-tank-normal"],
74328
+ snapshotLabel: "Tanks low or full now",
74329
+ snapshotSection: "tanks"
74330
+ },
74331
+ {
74332
+ id: "recording-health",
74333
+ family: "device-events",
74334
+ label: "Recording health (stalled or degraded / recording again)",
74335
+ bad: ["recording-stalled", "recording-degraded"],
74336
+ recovery: ["recording-healthy"],
74337
+ snapshotLabel: "Recordings stalled now",
74338
+ snapshotSection: null
74339
+ },
74340
+ {
74341
+ id: "node-connectivity",
74342
+ family: "system",
74343
+ label: "Node connectivity (offline / back online)",
74344
+ bad: ["node-offline"],
74345
+ recovery: ["node-online"],
74346
+ snapshotLabel: "Nodes offline now",
74347
+ snapshotSection: "nodes"
74348
+ },
74349
+ {
74350
+ id: "storage-space",
74351
+ family: "system",
74352
+ label: "Storage space (low or critical / ok again)",
74353
+ bad: ["storage-location-low", "storage-location-critical"],
74354
+ recovery: ["storage-location-ok"],
74355
+ snapshotLabel: "Storage locations low now",
74356
+ snapshotSection: null
74357
+ },
74358
+ {
74359
+ id: "critical-alerts",
74360
+ family: "system",
74361
+ label: "Critical alerts (raised / resolved)",
74362
+ bad: ["alert-critical"],
74363
+ recovery: ["alert-critical-resolved"],
74364
+ snapshotLabel: "Critical alerts open now",
74365
+ snapshotSection: null
74366
+ },
74367
+ {
74368
+ id: "rule-health",
74369
+ family: "system",
74370
+ label: "Rule health (broken / repaired)",
74371
+ bad: ["rule-broken"],
74372
+ recovery: ["rule-repaired"],
74373
+ snapshotLabel: "Notification rules broken now",
74374
+ snapshotSection: null
74375
+ }
74376
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74254
74377
  new Set([
74255
74378
  "disarmed",
74256
74379
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.159",
3
+ "version": "1.2.160",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",