@camstack/addon-google-services 0.2.22 → 0.2.24

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.
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  let node_crypto = require("node:crypto");
6
- //#region ../types/dist/event-category-DOl51-Ij.mjs
6
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
7
7
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
8
8
  EventCategory["SystemBoot"] = "system.boot";
9
9
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -691,6 +691,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
691
691
  EventCategory["BackupRestored"] = "backup.restored";
692
692
  EventCategory["NotificationDispatched"] = "notification.dispatched";
693
693
  EventCategory["NotificationFailed"] = "notification.failed";
694
+ /**
695
+ * A notification rule that cannot work (D905): its stored row does not load,
696
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
697
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
698
+ */
699
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
700
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
701
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
694
702
  EventCategory["DeviceUpdated"] = "device.updated";
695
703
  /**
696
704
  * Transport-level connectivity. Emitted by the device driver when
@@ -5551,7 +5559,7 @@ var ZodIssueCode = {
5551
5559
  var ZodFirstPartyTypeKind;
5552
5560
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5553
5561
  //#endregion
5554
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5562
+ //#region ../types/dist/sleep-CueztlR1.mjs
5555
5563
  /**
5556
5564
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5557
5565
  * window to float samples (D455).
@@ -42543,6 +42551,8 @@ var NcSystemEventKindSchema = _enum([
42543
42551
  "alert-critical",
42544
42552
  "alert-error",
42545
42553
  "alert-critical-resolved",
42554
+ "rule-broken",
42555
+ "rule-repaired",
42546
42556
  "camera-online",
42547
42557
  "camera-offline",
42548
42558
  "camera-disabled",
@@ -73999,6 +74009,8 @@ new Map(Object.entries({
73999
74009
  "alert-critical": "system",
74000
74010
  "alert-error": "system",
74001
74011
  "alert-critical-resolved": "system",
74012
+ "rule-broken": "system",
74013
+ "rule-repaired": "system",
74002
74014
  "storage-location-low": "system",
74003
74015
  "storage-location-critical": "system",
74004
74016
  "storage-location-ok": "system",
@@ -74133,6 +74145,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74133
74145
  "alert-critical-resolved"
74134
74146
  ]
74135
74147
  },
74148
+ {
74149
+ id: "rule-health",
74150
+ family: "system",
74151
+ label: "Notification rules",
74152
+ kinds: ["rule-broken", "rule-repaired"]
74153
+ },
74136
74154
  {
74137
74155
  id: "alarm",
74138
74156
  family: "alarm",
@@ -74410,6 +74428,10 @@ var STATE_SUMMARY_VARS = [
74410
74428
  [...RULE_TEXT],
74411
74429
  [...RULE_TEXT],
74412
74430
  [...RULE_TEXT],
74431
+ [...RULE_TEXT],
74432
+ [...RULE_TEXT],
74433
+ [...RULE_TEXT],
74434
+ [...RULE_TEXT],
74413
74435
  ([...RULE_TEXT], [...UPDATES]),
74414
74436
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74415
74437
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74448,6 +74470,107 @@ var STATE_SUMMARY_VARS = [
74448
74470
  [...RULE_TEXT],
74449
74471
  ...STATE_SUMMARY_VARS
74450
74472
  ];
74473
+ new Map([
74474
+ {
74475
+ id: "device-connectivity",
74476
+ family: "device-events",
74477
+ label: "Device connectivity (offline / back online)",
74478
+ bad: ["device-offline"],
74479
+ recovery: ["device-online"],
74480
+ snapshotLabel: "Devices offline now",
74481
+ snapshotSection: "device-state"
74482
+ },
74483
+ {
74484
+ id: "device-switch",
74485
+ family: "device-events",
74486
+ label: "Device switched off / back on",
74487
+ bad: ["device-disabled"],
74488
+ recovery: ["device-enabled"],
74489
+ snapshotLabel: "Devices switched off now",
74490
+ snapshotSection: "device-state"
74491
+ },
74492
+ {
74493
+ id: "stream-connectivity",
74494
+ family: "device-events",
74495
+ label: "Stream connectivity (offline / back online)",
74496
+ bad: ["stream-offline"],
74497
+ recovery: ["stream-online"],
74498
+ snapshotLabel: "Streams offline now",
74499
+ snapshotSection: "streams"
74500
+ },
74501
+ {
74502
+ id: "battery",
74503
+ family: "device-events",
74504
+ label: "Battery (low / back to normal)",
74505
+ bad: ["device-battery-low"],
74506
+ recovery: ["device-battery-normal"],
74507
+ snapshotLabel: "Batteries low now",
74508
+ snapshotSection: "battery"
74509
+ },
74510
+ {
74511
+ id: "consumables",
74512
+ family: "device-events",
74513
+ label: "Consumables (low / replaced)",
74514
+ bad: ["device-consumable-low"],
74515
+ recovery: ["device-consumable-normal"],
74516
+ snapshotLabel: "Consumables low now",
74517
+ snapshotSection: "consumables"
74518
+ },
74519
+ {
74520
+ id: "tanks",
74521
+ family: "device-events",
74522
+ label: "Tanks (low or full / back to normal)",
74523
+ bad: ["device-tank-low", "device-tank-full"],
74524
+ recovery: ["device-tank-normal"],
74525
+ snapshotLabel: "Tanks low or full now",
74526
+ snapshotSection: "tanks"
74527
+ },
74528
+ {
74529
+ id: "recording-health",
74530
+ family: "device-events",
74531
+ label: "Recording health (stalled or degraded / recording again)",
74532
+ bad: ["recording-stalled", "recording-degraded"],
74533
+ recovery: ["recording-healthy"],
74534
+ snapshotLabel: "Recordings stalled now",
74535
+ snapshotSection: null
74536
+ },
74537
+ {
74538
+ id: "node-connectivity",
74539
+ family: "system",
74540
+ label: "Node connectivity (offline / back online)",
74541
+ bad: ["node-offline"],
74542
+ recovery: ["node-online"],
74543
+ snapshotLabel: "Nodes offline now",
74544
+ snapshotSection: "nodes"
74545
+ },
74546
+ {
74547
+ id: "storage-space",
74548
+ family: "system",
74549
+ label: "Storage space (low or critical / ok again)",
74550
+ bad: ["storage-location-low", "storage-location-critical"],
74551
+ recovery: ["storage-location-ok"],
74552
+ snapshotLabel: "Storage locations low now",
74553
+ snapshotSection: null
74554
+ },
74555
+ {
74556
+ id: "critical-alerts",
74557
+ family: "system",
74558
+ label: "Critical alerts (raised / resolved)",
74559
+ bad: ["alert-critical"],
74560
+ recovery: ["alert-critical-resolved"],
74561
+ snapshotLabel: "Critical alerts open now",
74562
+ snapshotSection: null
74563
+ },
74564
+ {
74565
+ id: "rule-health",
74566
+ family: "system",
74567
+ label: "Rule health (broken / repaired)",
74568
+ bad: ["rule-broken"],
74569
+ recovery: ["rule-repaired"],
74570
+ snapshotLabel: "Notification rules broken now",
74571
+ snapshotSection: null
74572
+ }
74573
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74451
74574
  new Set([
74452
74575
  "disarmed",
74453
74576
  "armed_home",
@@ -1,5 +1,5 @@
1
1
  import { randomBytes } from "node:crypto";
2
- //#region ../types/dist/event-category-DOl51-Ij.mjs
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
@@ -5547,7 +5555,7 @@ var ZodIssueCode = {
5547
5555
  var ZodFirstPartyTypeKind;
5548
5556
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5549
5557
  //#endregion
5550
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5558
+ //#region ../types/dist/sleep-CueztlR1.mjs
5551
5559
  /**
5552
5560
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5553
5561
  * window to float samples (D455).
@@ -42539,6 +42547,8 @@ var NcSystemEventKindSchema = _enum([
42539
42547
  "alert-critical",
42540
42548
  "alert-error",
42541
42549
  "alert-critical-resolved",
42550
+ "rule-broken",
42551
+ "rule-repaired",
42542
42552
  "camera-online",
42543
42553
  "camera-offline",
42544
42554
  "camera-disabled",
@@ -73995,6 +74005,8 @@ new Map(Object.entries({
73995
74005
  "alert-critical": "system",
73996
74006
  "alert-error": "system",
73997
74007
  "alert-critical-resolved": "system",
74008
+ "rule-broken": "system",
74009
+ "rule-repaired": "system",
73998
74010
  "storage-location-low": "system",
73999
74011
  "storage-location-critical": "system",
74000
74012
  "storage-location-ok": "system",
@@ -74129,6 +74141,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74129
74141
  "alert-critical-resolved"
74130
74142
  ]
74131
74143
  },
74144
+ {
74145
+ id: "rule-health",
74146
+ family: "system",
74147
+ label: "Notification rules",
74148
+ kinds: ["rule-broken", "rule-repaired"]
74149
+ },
74132
74150
  {
74133
74151
  id: "alarm",
74134
74152
  family: "alarm",
@@ -74406,6 +74424,10 @@ var STATE_SUMMARY_VARS = [
74406
74424
  [...RULE_TEXT],
74407
74425
  [...RULE_TEXT],
74408
74426
  [...RULE_TEXT],
74427
+ [...RULE_TEXT],
74428
+ [...RULE_TEXT],
74429
+ [...RULE_TEXT],
74430
+ [...RULE_TEXT],
74409
74431
  ([...RULE_TEXT], [...UPDATES]),
74410
74432
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74411
74433
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74444,6 +74466,107 @@ var STATE_SUMMARY_VARS = [
74444
74466
  [...RULE_TEXT],
74445
74467
  ...STATE_SUMMARY_VARS
74446
74468
  ];
74469
+ new Map([
74470
+ {
74471
+ id: "device-connectivity",
74472
+ family: "device-events",
74473
+ label: "Device connectivity (offline / back online)",
74474
+ bad: ["device-offline"],
74475
+ recovery: ["device-online"],
74476
+ snapshotLabel: "Devices offline now",
74477
+ snapshotSection: "device-state"
74478
+ },
74479
+ {
74480
+ id: "device-switch",
74481
+ family: "device-events",
74482
+ label: "Device switched off / back on",
74483
+ bad: ["device-disabled"],
74484
+ recovery: ["device-enabled"],
74485
+ snapshotLabel: "Devices switched off now",
74486
+ snapshotSection: "device-state"
74487
+ },
74488
+ {
74489
+ id: "stream-connectivity",
74490
+ family: "device-events",
74491
+ label: "Stream connectivity (offline / back online)",
74492
+ bad: ["stream-offline"],
74493
+ recovery: ["stream-online"],
74494
+ snapshotLabel: "Streams offline now",
74495
+ snapshotSection: "streams"
74496
+ },
74497
+ {
74498
+ id: "battery",
74499
+ family: "device-events",
74500
+ label: "Battery (low / back to normal)",
74501
+ bad: ["device-battery-low"],
74502
+ recovery: ["device-battery-normal"],
74503
+ snapshotLabel: "Batteries low now",
74504
+ snapshotSection: "battery"
74505
+ },
74506
+ {
74507
+ id: "consumables",
74508
+ family: "device-events",
74509
+ label: "Consumables (low / replaced)",
74510
+ bad: ["device-consumable-low"],
74511
+ recovery: ["device-consumable-normal"],
74512
+ snapshotLabel: "Consumables low now",
74513
+ snapshotSection: "consumables"
74514
+ },
74515
+ {
74516
+ id: "tanks",
74517
+ family: "device-events",
74518
+ label: "Tanks (low or full / back to normal)",
74519
+ bad: ["device-tank-low", "device-tank-full"],
74520
+ recovery: ["device-tank-normal"],
74521
+ snapshotLabel: "Tanks low or full now",
74522
+ snapshotSection: "tanks"
74523
+ },
74524
+ {
74525
+ id: "recording-health",
74526
+ family: "device-events",
74527
+ label: "Recording health (stalled or degraded / recording again)",
74528
+ bad: ["recording-stalled", "recording-degraded"],
74529
+ recovery: ["recording-healthy"],
74530
+ snapshotLabel: "Recordings stalled now",
74531
+ snapshotSection: null
74532
+ },
74533
+ {
74534
+ id: "node-connectivity",
74535
+ family: "system",
74536
+ label: "Node connectivity (offline / back online)",
74537
+ bad: ["node-offline"],
74538
+ recovery: ["node-online"],
74539
+ snapshotLabel: "Nodes offline now",
74540
+ snapshotSection: "nodes"
74541
+ },
74542
+ {
74543
+ id: "storage-space",
74544
+ family: "system",
74545
+ label: "Storage space (low or critical / ok again)",
74546
+ bad: ["storage-location-low", "storage-location-critical"],
74547
+ recovery: ["storage-location-ok"],
74548
+ snapshotLabel: "Storage locations low now",
74549
+ snapshotSection: null
74550
+ },
74551
+ {
74552
+ id: "critical-alerts",
74553
+ family: "system",
74554
+ label: "Critical alerts (raised / resolved)",
74555
+ bad: ["alert-critical"],
74556
+ recovery: ["alert-critical-resolved"],
74557
+ snapshotLabel: "Critical alerts open now",
74558
+ snapshotSection: null
74559
+ },
74560
+ {
74561
+ id: "rule-health",
74562
+ family: "system",
74563
+ label: "Rule health (broken / repaired)",
74564
+ bad: ["rule-broken"],
74565
+ recovery: ["rule-repaired"],
74566
+ snapshotLabel: "Notification rules broken now",
74567
+ snapshotSection: null
74568
+ }
74569
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74447
74570
  new Set([
74448
74571
  "disarmed",
74449
74572
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-google-services",
3
- "version": "0.2.22",
3
+ "version": "0.2.24",
4
4
  "description": "Google Services — Google brokers (OAuth2): Calendar as calendar-source, Gmail send as smtp-provider.",
5
5
  "keywords": [
6
6
  "camstack",