@camstack/addon-provider-petkit 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 CHANGED
@@ -1101,7 +1101,7 @@ var Nodepetkit = class {
1101
1101
  }
1102
1102
  };
1103
1103
  //#endregion
1104
- //#region ../types/dist/event-category-DOl51-Ij.mjs
1104
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
1105
1105
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1106
1106
  EventCategory["SystemBoot"] = "system.boot";
1107
1107
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1789,6 +1789,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1789
1789
  EventCategory["BackupRestored"] = "backup.restored";
1790
1790
  EventCategory["NotificationDispatched"] = "notification.dispatched";
1791
1791
  EventCategory["NotificationFailed"] = "notification.failed";
1792
+ /**
1793
+ * A notification rule that cannot work (D905): its stored row does not load,
1794
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
1795
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
1796
+ */
1797
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
1798
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
1799
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
1792
1800
  EventCategory["DeviceUpdated"] = "device.updated";
1793
1801
  /**
1794
1802
  * Transport-level connectivity. Emitted by the device driver when
@@ -6516,7 +6524,7 @@ var ZodIssueCode = {
6516
6524
  var ZodFirstPartyTypeKind;
6517
6525
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6518
6526
  //#endregion
6519
- //#region ../types/dist/sleep-_sV1BE2f.mjs
6527
+ //#region ../types/dist/sleep-CueztlR1.mjs
6520
6528
  /**
6521
6529
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6522
6530
  * window to float samples (D455).
@@ -43494,6 +43502,8 @@ var NcSystemEventKindSchema = _enum([
43494
43502
  "alert-critical",
43495
43503
  "alert-error",
43496
43504
  "alert-critical-resolved",
43505
+ "rule-broken",
43506
+ "rule-repaired",
43497
43507
  "camera-online",
43498
43508
  "camera-offline",
43499
43509
  "camera-disabled",
@@ -79778,6 +79788,8 @@ new Map(Object.entries({
79778
79788
  "alert-critical": "system",
79779
79789
  "alert-error": "system",
79780
79790
  "alert-critical-resolved": "system",
79791
+ "rule-broken": "system",
79792
+ "rule-repaired": "system",
79781
79793
  "storage-location-low": "system",
79782
79794
  "storage-location-critical": "system",
79783
79795
  "storage-location-ok": "system",
@@ -79912,6 +79924,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79912
79924
  "alert-critical-resolved"
79913
79925
  ]
79914
79926
  },
79927
+ {
79928
+ id: "rule-health",
79929
+ family: "system",
79930
+ label: "Notification rules",
79931
+ kinds: ["rule-broken", "rule-repaired"]
79932
+ },
79915
79933
  {
79916
79934
  id: "alarm",
79917
79935
  family: "alarm",
@@ -80189,6 +80207,10 @@ var STATE_SUMMARY_VARS = [
80189
80207
  [...RULE_TEXT],
80190
80208
  [...RULE_TEXT],
80191
80209
  [...RULE_TEXT],
80210
+ [...RULE_TEXT],
80211
+ [...RULE_TEXT],
80212
+ [...RULE_TEXT],
80213
+ [...RULE_TEXT],
80192
80214
  ([...RULE_TEXT], [...UPDATES]),
80193
80215
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
80194
80216
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -80227,6 +80249,107 @@ var STATE_SUMMARY_VARS = [
80227
80249
  [...RULE_TEXT],
80228
80250
  ...STATE_SUMMARY_VARS
80229
80251
  ];
80252
+ new Map([
80253
+ {
80254
+ id: "device-connectivity",
80255
+ family: "device-events",
80256
+ label: "Device connectivity (offline / back online)",
80257
+ bad: ["device-offline"],
80258
+ recovery: ["device-online"],
80259
+ snapshotLabel: "Devices offline now",
80260
+ snapshotSection: "device-state"
80261
+ },
80262
+ {
80263
+ id: "device-switch",
80264
+ family: "device-events",
80265
+ label: "Device switched off / back on",
80266
+ bad: ["device-disabled"],
80267
+ recovery: ["device-enabled"],
80268
+ snapshotLabel: "Devices switched off now",
80269
+ snapshotSection: "device-state"
80270
+ },
80271
+ {
80272
+ id: "stream-connectivity",
80273
+ family: "device-events",
80274
+ label: "Stream connectivity (offline / back online)",
80275
+ bad: ["stream-offline"],
80276
+ recovery: ["stream-online"],
80277
+ snapshotLabel: "Streams offline now",
80278
+ snapshotSection: "streams"
80279
+ },
80280
+ {
80281
+ id: "battery",
80282
+ family: "device-events",
80283
+ label: "Battery (low / back to normal)",
80284
+ bad: ["device-battery-low"],
80285
+ recovery: ["device-battery-normal"],
80286
+ snapshotLabel: "Batteries low now",
80287
+ snapshotSection: "battery"
80288
+ },
80289
+ {
80290
+ id: "consumables",
80291
+ family: "device-events",
80292
+ label: "Consumables (low / replaced)",
80293
+ bad: ["device-consumable-low"],
80294
+ recovery: ["device-consumable-normal"],
80295
+ snapshotLabel: "Consumables low now",
80296
+ snapshotSection: "consumables"
80297
+ },
80298
+ {
80299
+ id: "tanks",
80300
+ family: "device-events",
80301
+ label: "Tanks (low or full / back to normal)",
80302
+ bad: ["device-tank-low", "device-tank-full"],
80303
+ recovery: ["device-tank-normal"],
80304
+ snapshotLabel: "Tanks low or full now",
80305
+ snapshotSection: "tanks"
80306
+ },
80307
+ {
80308
+ id: "recording-health",
80309
+ family: "device-events",
80310
+ label: "Recording health (stalled or degraded / recording again)",
80311
+ bad: ["recording-stalled", "recording-degraded"],
80312
+ recovery: ["recording-healthy"],
80313
+ snapshotLabel: "Recordings stalled now",
80314
+ snapshotSection: null
80315
+ },
80316
+ {
80317
+ id: "node-connectivity",
80318
+ family: "system",
80319
+ label: "Node connectivity (offline / back online)",
80320
+ bad: ["node-offline"],
80321
+ recovery: ["node-online"],
80322
+ snapshotLabel: "Nodes offline now",
80323
+ snapshotSection: "nodes"
80324
+ },
80325
+ {
80326
+ id: "storage-space",
80327
+ family: "system",
80328
+ label: "Storage space (low or critical / ok again)",
80329
+ bad: ["storage-location-low", "storage-location-critical"],
80330
+ recovery: ["storage-location-ok"],
80331
+ snapshotLabel: "Storage locations low now",
80332
+ snapshotSection: null
80333
+ },
80334
+ {
80335
+ id: "critical-alerts",
80336
+ family: "system",
80337
+ label: "Critical alerts (raised / resolved)",
80338
+ bad: ["alert-critical"],
80339
+ recovery: ["alert-critical-resolved"],
80340
+ snapshotLabel: "Critical alerts open now",
80341
+ snapshotSection: null
80342
+ },
80343
+ {
80344
+ id: "rule-health",
80345
+ family: "system",
80346
+ label: "Rule health (broken / repaired)",
80347
+ bad: ["rule-broken"],
80348
+ recovery: ["rule-repaired"],
80349
+ snapshotLabel: "Notification rules broken now",
80350
+ snapshotSection: null
80351
+ }
80352
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
80230
80353
  new Set([
80231
80354
  "disarmed",
80232
80355
  "armed_home",
package/dist/addon.mjs CHANGED
@@ -1100,7 +1100,7 @@ var Nodepetkit = class {
1100
1100
  }
1101
1101
  };
1102
1102
  //#endregion
1103
- //#region ../types/dist/event-category-DOl51-Ij.mjs
1103
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
1104
1104
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1105
1105
  EventCategory["SystemBoot"] = "system.boot";
1106
1106
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1788,6 +1788,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1788
1788
  EventCategory["BackupRestored"] = "backup.restored";
1789
1789
  EventCategory["NotificationDispatched"] = "notification.dispatched";
1790
1790
  EventCategory["NotificationFailed"] = "notification.failed";
1791
+ /**
1792
+ * A notification rule that cannot work (D905): its stored row does not load,
1793
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
1794
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
1795
+ */
1796
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
1797
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
1798
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
1791
1799
  EventCategory["DeviceUpdated"] = "device.updated";
1792
1800
  /**
1793
1801
  * Transport-level connectivity. Emitted by the device driver when
@@ -6515,7 +6523,7 @@ var ZodIssueCode = {
6515
6523
  var ZodFirstPartyTypeKind;
6516
6524
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6517
6525
  //#endregion
6518
- //#region ../types/dist/sleep-_sV1BE2f.mjs
6526
+ //#region ../types/dist/sleep-CueztlR1.mjs
6519
6527
  /**
6520
6528
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6521
6529
  * window to float samples (D455).
@@ -43493,6 +43501,8 @@ var NcSystemEventKindSchema = _enum([
43493
43501
  "alert-critical",
43494
43502
  "alert-error",
43495
43503
  "alert-critical-resolved",
43504
+ "rule-broken",
43505
+ "rule-repaired",
43496
43506
  "camera-online",
43497
43507
  "camera-offline",
43498
43508
  "camera-disabled",
@@ -79777,6 +79787,8 @@ new Map(Object.entries({
79777
79787
  "alert-critical": "system",
79778
79788
  "alert-error": "system",
79779
79789
  "alert-critical-resolved": "system",
79790
+ "rule-broken": "system",
79791
+ "rule-repaired": "system",
79780
79792
  "storage-location-low": "system",
79781
79793
  "storage-location-critical": "system",
79782
79794
  "storage-location-ok": "system",
@@ -79911,6 +79923,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79911
79923
  "alert-critical-resolved"
79912
79924
  ]
79913
79925
  },
79926
+ {
79927
+ id: "rule-health",
79928
+ family: "system",
79929
+ label: "Notification rules",
79930
+ kinds: ["rule-broken", "rule-repaired"]
79931
+ },
79914
79932
  {
79915
79933
  id: "alarm",
79916
79934
  family: "alarm",
@@ -80188,6 +80206,10 @@ var STATE_SUMMARY_VARS = [
80188
80206
  [...RULE_TEXT],
80189
80207
  [...RULE_TEXT],
80190
80208
  [...RULE_TEXT],
80209
+ [...RULE_TEXT],
80210
+ [...RULE_TEXT],
80211
+ [...RULE_TEXT],
80212
+ [...RULE_TEXT],
80191
80213
  ([...RULE_TEXT], [...UPDATES]),
80192
80214
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
80193
80215
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -80226,6 +80248,107 @@ var STATE_SUMMARY_VARS = [
80226
80248
  [...RULE_TEXT],
80227
80249
  ...STATE_SUMMARY_VARS
80228
80250
  ];
80251
+ new Map([
80252
+ {
80253
+ id: "device-connectivity",
80254
+ family: "device-events",
80255
+ label: "Device connectivity (offline / back online)",
80256
+ bad: ["device-offline"],
80257
+ recovery: ["device-online"],
80258
+ snapshotLabel: "Devices offline now",
80259
+ snapshotSection: "device-state"
80260
+ },
80261
+ {
80262
+ id: "device-switch",
80263
+ family: "device-events",
80264
+ label: "Device switched off / back on",
80265
+ bad: ["device-disabled"],
80266
+ recovery: ["device-enabled"],
80267
+ snapshotLabel: "Devices switched off now",
80268
+ snapshotSection: "device-state"
80269
+ },
80270
+ {
80271
+ id: "stream-connectivity",
80272
+ family: "device-events",
80273
+ label: "Stream connectivity (offline / back online)",
80274
+ bad: ["stream-offline"],
80275
+ recovery: ["stream-online"],
80276
+ snapshotLabel: "Streams offline now",
80277
+ snapshotSection: "streams"
80278
+ },
80279
+ {
80280
+ id: "battery",
80281
+ family: "device-events",
80282
+ label: "Battery (low / back to normal)",
80283
+ bad: ["device-battery-low"],
80284
+ recovery: ["device-battery-normal"],
80285
+ snapshotLabel: "Batteries low now",
80286
+ snapshotSection: "battery"
80287
+ },
80288
+ {
80289
+ id: "consumables",
80290
+ family: "device-events",
80291
+ label: "Consumables (low / replaced)",
80292
+ bad: ["device-consumable-low"],
80293
+ recovery: ["device-consumable-normal"],
80294
+ snapshotLabel: "Consumables low now",
80295
+ snapshotSection: "consumables"
80296
+ },
80297
+ {
80298
+ id: "tanks",
80299
+ family: "device-events",
80300
+ label: "Tanks (low or full / back to normal)",
80301
+ bad: ["device-tank-low", "device-tank-full"],
80302
+ recovery: ["device-tank-normal"],
80303
+ snapshotLabel: "Tanks low or full now",
80304
+ snapshotSection: "tanks"
80305
+ },
80306
+ {
80307
+ id: "recording-health",
80308
+ family: "device-events",
80309
+ label: "Recording health (stalled or degraded / recording again)",
80310
+ bad: ["recording-stalled", "recording-degraded"],
80311
+ recovery: ["recording-healthy"],
80312
+ snapshotLabel: "Recordings stalled now",
80313
+ snapshotSection: null
80314
+ },
80315
+ {
80316
+ id: "node-connectivity",
80317
+ family: "system",
80318
+ label: "Node connectivity (offline / back online)",
80319
+ bad: ["node-offline"],
80320
+ recovery: ["node-online"],
80321
+ snapshotLabel: "Nodes offline now",
80322
+ snapshotSection: "nodes"
80323
+ },
80324
+ {
80325
+ id: "storage-space",
80326
+ family: "system",
80327
+ label: "Storage space (low or critical / ok again)",
80328
+ bad: ["storage-location-low", "storage-location-critical"],
80329
+ recovery: ["storage-location-ok"],
80330
+ snapshotLabel: "Storage locations low now",
80331
+ snapshotSection: null
80332
+ },
80333
+ {
80334
+ id: "critical-alerts",
80335
+ family: "system",
80336
+ label: "Critical alerts (raised / resolved)",
80337
+ bad: ["alert-critical"],
80338
+ recovery: ["alert-critical-resolved"],
80339
+ snapshotLabel: "Critical alerts open now",
80340
+ snapshotSection: null
80341
+ },
80342
+ {
80343
+ id: "rule-health",
80344
+ family: "system",
80345
+ label: "Rule health (broken / repaired)",
80346
+ bad: ["rule-broken"],
80347
+ recovery: ["rule-repaired"],
80348
+ snapshotLabel: "Notification rules broken now",
80349
+ snapshotSection: null
80350
+ }
80351
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
80229
80352
  new Set([
80230
80353
  "disarmed",
80231
80354
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.140",
3
+ "version": "0.2.141",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",