@camstack/addon-auth 1.2.161 → 1.2.162

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.
@@ -32,7 +32,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  }) : target, mod));
33
33
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
  require("node:crypto");
35
- //#region ../types/dist/event-category-DOl51-Ij.mjs
35
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
36
36
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
37
37
  EventCategory["SystemBoot"] = "system.boot";
38
38
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -720,6 +720,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
720
720
  EventCategory["BackupRestored"] = "backup.restored";
721
721
  EventCategory["NotificationDispatched"] = "notification.dispatched";
722
722
  EventCategory["NotificationFailed"] = "notification.failed";
723
+ /**
724
+ * A notification rule that cannot work (D905): its stored row does not load,
725
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
726
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
727
+ */
728
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
729
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
730
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
723
731
  EventCategory["DeviceUpdated"] = "device.updated";
724
732
  /**
725
733
  * Transport-level connectivity. Emitted by the device driver when
@@ -5580,7 +5588,7 @@ var ZodIssueCode = {
5580
5588
  var ZodFirstPartyTypeKind;
5581
5589
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5582
5590
  //#endregion
5583
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5591
+ //#region ../types/dist/sleep-CueztlR1.mjs
5584
5592
  /**
5585
5593
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5586
5594
  * window to float samples (D455).
@@ -42771,6 +42779,8 @@ var NcSystemEventKindSchema = _enum([
42771
42779
  "alert-critical",
42772
42780
  "alert-error",
42773
42781
  "alert-critical-resolved",
42782
+ "rule-broken",
42783
+ "rule-repaired",
42774
42784
  "camera-online",
42775
42785
  "camera-offline",
42776
42786
  "camera-disabled",
@@ -74255,6 +74265,8 @@ new Map(Object.entries({
74255
74265
  "alert-critical": "system",
74256
74266
  "alert-error": "system",
74257
74267
  "alert-critical-resolved": "system",
74268
+ "rule-broken": "system",
74269
+ "rule-repaired": "system",
74258
74270
  "storage-location-low": "system",
74259
74271
  "storage-location-critical": "system",
74260
74272
  "storage-location-ok": "system",
@@ -74389,6 +74401,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74389
74401
  "alert-critical-resolved"
74390
74402
  ]
74391
74403
  },
74404
+ {
74405
+ id: "rule-health",
74406
+ family: "system",
74407
+ label: "Notification rules",
74408
+ kinds: ["rule-broken", "rule-repaired"]
74409
+ },
74392
74410
  {
74393
74411
  id: "alarm",
74394
74412
  family: "alarm",
@@ -74666,6 +74684,10 @@ var STATE_SUMMARY_VARS = [
74666
74684
  [...RULE_TEXT],
74667
74685
  [...RULE_TEXT],
74668
74686
  [...RULE_TEXT],
74687
+ [...RULE_TEXT],
74688
+ [...RULE_TEXT],
74689
+ [...RULE_TEXT],
74690
+ [...RULE_TEXT],
74669
74691
  ([...RULE_TEXT], [...UPDATES]),
74670
74692
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74671
74693
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74704,6 +74726,107 @@ var STATE_SUMMARY_VARS = [
74704
74726
  [...RULE_TEXT],
74705
74727
  ...STATE_SUMMARY_VARS
74706
74728
  ];
74729
+ new Map([
74730
+ {
74731
+ id: "device-connectivity",
74732
+ family: "device-events",
74733
+ label: "Device connectivity (offline / back online)",
74734
+ bad: ["device-offline"],
74735
+ recovery: ["device-online"],
74736
+ snapshotLabel: "Devices offline now",
74737
+ snapshotSection: "device-state"
74738
+ },
74739
+ {
74740
+ id: "device-switch",
74741
+ family: "device-events",
74742
+ label: "Device switched off / back on",
74743
+ bad: ["device-disabled"],
74744
+ recovery: ["device-enabled"],
74745
+ snapshotLabel: "Devices switched off now",
74746
+ snapshotSection: "device-state"
74747
+ },
74748
+ {
74749
+ id: "stream-connectivity",
74750
+ family: "device-events",
74751
+ label: "Stream connectivity (offline / back online)",
74752
+ bad: ["stream-offline"],
74753
+ recovery: ["stream-online"],
74754
+ snapshotLabel: "Streams offline now",
74755
+ snapshotSection: "streams"
74756
+ },
74757
+ {
74758
+ id: "battery",
74759
+ family: "device-events",
74760
+ label: "Battery (low / back to normal)",
74761
+ bad: ["device-battery-low"],
74762
+ recovery: ["device-battery-normal"],
74763
+ snapshotLabel: "Batteries low now",
74764
+ snapshotSection: "battery"
74765
+ },
74766
+ {
74767
+ id: "consumables",
74768
+ family: "device-events",
74769
+ label: "Consumables (low / replaced)",
74770
+ bad: ["device-consumable-low"],
74771
+ recovery: ["device-consumable-normal"],
74772
+ snapshotLabel: "Consumables low now",
74773
+ snapshotSection: "consumables"
74774
+ },
74775
+ {
74776
+ id: "tanks",
74777
+ family: "device-events",
74778
+ label: "Tanks (low or full / back to normal)",
74779
+ bad: ["device-tank-low", "device-tank-full"],
74780
+ recovery: ["device-tank-normal"],
74781
+ snapshotLabel: "Tanks low or full now",
74782
+ snapshotSection: "tanks"
74783
+ },
74784
+ {
74785
+ id: "recording-health",
74786
+ family: "device-events",
74787
+ label: "Recording health (stalled or degraded / recording again)",
74788
+ bad: ["recording-stalled", "recording-degraded"],
74789
+ recovery: ["recording-healthy"],
74790
+ snapshotLabel: "Recordings stalled now",
74791
+ snapshotSection: null
74792
+ },
74793
+ {
74794
+ id: "node-connectivity",
74795
+ family: "system",
74796
+ label: "Node connectivity (offline / back online)",
74797
+ bad: ["node-offline"],
74798
+ recovery: ["node-online"],
74799
+ snapshotLabel: "Nodes offline now",
74800
+ snapshotSection: "nodes"
74801
+ },
74802
+ {
74803
+ id: "storage-space",
74804
+ family: "system",
74805
+ label: "Storage space (low or critical / ok again)",
74806
+ bad: ["storage-location-low", "storage-location-critical"],
74807
+ recovery: ["storage-location-ok"],
74808
+ snapshotLabel: "Storage locations low now",
74809
+ snapshotSection: null
74810
+ },
74811
+ {
74812
+ id: "critical-alerts",
74813
+ family: "system",
74814
+ label: "Critical alerts (raised / resolved)",
74815
+ bad: ["alert-critical"],
74816
+ recovery: ["alert-critical-resolved"],
74817
+ snapshotLabel: "Critical alerts open now",
74818
+ snapshotSection: null
74819
+ },
74820
+ {
74821
+ id: "rule-health",
74822
+ family: "system",
74823
+ label: "Rule health (broken / repaired)",
74824
+ bad: ["rule-broken"],
74825
+ recovery: ["rule-repaired"],
74826
+ snapshotLabel: "Notification rules broken now",
74827
+ snapshotSection: null
74828
+ }
74829
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74707
74830
  new Set([
74708
74831
  "disarmed",
74709
74832
  "armed_home",
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-DOl51-Ij.mjs
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
@@ -5546,7 +5554,7 @@ var ZodIssueCode = {
5546
5554
  var ZodFirstPartyTypeKind;
5547
5555
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5548
5556
  //#endregion
5549
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5557
+ //#region ../types/dist/sleep-CueztlR1.mjs
5550
5558
  /**
5551
5559
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5552
5560
  * window to float samples (D455).
@@ -42737,6 +42745,8 @@ var NcSystemEventKindSchema = _enum([
42737
42745
  "alert-critical",
42738
42746
  "alert-error",
42739
42747
  "alert-critical-resolved",
42748
+ "rule-broken",
42749
+ "rule-repaired",
42740
42750
  "camera-online",
42741
42751
  "camera-offline",
42742
42752
  "camera-disabled",
@@ -74221,6 +74231,8 @@ new Map(Object.entries({
74221
74231
  "alert-critical": "system",
74222
74232
  "alert-error": "system",
74223
74233
  "alert-critical-resolved": "system",
74234
+ "rule-broken": "system",
74235
+ "rule-repaired": "system",
74224
74236
  "storage-location-low": "system",
74225
74237
  "storage-location-critical": "system",
74226
74238
  "storage-location-ok": "system",
@@ -74355,6 +74367,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74355
74367
  "alert-critical-resolved"
74356
74368
  ]
74357
74369
  },
74370
+ {
74371
+ id: "rule-health",
74372
+ family: "system",
74373
+ label: "Notification rules",
74374
+ kinds: ["rule-broken", "rule-repaired"]
74375
+ },
74358
74376
  {
74359
74377
  id: "alarm",
74360
74378
  family: "alarm",
@@ -74632,6 +74650,10 @@ var STATE_SUMMARY_VARS = [
74632
74650
  [...RULE_TEXT],
74633
74651
  [...RULE_TEXT],
74634
74652
  [...RULE_TEXT],
74653
+ [...RULE_TEXT],
74654
+ [...RULE_TEXT],
74655
+ [...RULE_TEXT],
74656
+ [...RULE_TEXT],
74635
74657
  ([...RULE_TEXT], [...UPDATES]),
74636
74658
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
74637
74659
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -74670,6 +74692,107 @@ var STATE_SUMMARY_VARS = [
74670
74692
  [...RULE_TEXT],
74671
74693
  ...STATE_SUMMARY_VARS
74672
74694
  ];
74695
+ new Map([
74696
+ {
74697
+ id: "device-connectivity",
74698
+ family: "device-events",
74699
+ label: "Device connectivity (offline / back online)",
74700
+ bad: ["device-offline"],
74701
+ recovery: ["device-online"],
74702
+ snapshotLabel: "Devices offline now",
74703
+ snapshotSection: "device-state"
74704
+ },
74705
+ {
74706
+ id: "device-switch",
74707
+ family: "device-events",
74708
+ label: "Device switched off / back on",
74709
+ bad: ["device-disabled"],
74710
+ recovery: ["device-enabled"],
74711
+ snapshotLabel: "Devices switched off now",
74712
+ snapshotSection: "device-state"
74713
+ },
74714
+ {
74715
+ id: "stream-connectivity",
74716
+ family: "device-events",
74717
+ label: "Stream connectivity (offline / back online)",
74718
+ bad: ["stream-offline"],
74719
+ recovery: ["stream-online"],
74720
+ snapshotLabel: "Streams offline now",
74721
+ snapshotSection: "streams"
74722
+ },
74723
+ {
74724
+ id: "battery",
74725
+ family: "device-events",
74726
+ label: "Battery (low / back to normal)",
74727
+ bad: ["device-battery-low"],
74728
+ recovery: ["device-battery-normal"],
74729
+ snapshotLabel: "Batteries low now",
74730
+ snapshotSection: "battery"
74731
+ },
74732
+ {
74733
+ id: "consumables",
74734
+ family: "device-events",
74735
+ label: "Consumables (low / replaced)",
74736
+ bad: ["device-consumable-low"],
74737
+ recovery: ["device-consumable-normal"],
74738
+ snapshotLabel: "Consumables low now",
74739
+ snapshotSection: "consumables"
74740
+ },
74741
+ {
74742
+ id: "tanks",
74743
+ family: "device-events",
74744
+ label: "Tanks (low or full / back to normal)",
74745
+ bad: ["device-tank-low", "device-tank-full"],
74746
+ recovery: ["device-tank-normal"],
74747
+ snapshotLabel: "Tanks low or full now",
74748
+ snapshotSection: "tanks"
74749
+ },
74750
+ {
74751
+ id: "recording-health",
74752
+ family: "device-events",
74753
+ label: "Recording health (stalled or degraded / recording again)",
74754
+ bad: ["recording-stalled", "recording-degraded"],
74755
+ recovery: ["recording-healthy"],
74756
+ snapshotLabel: "Recordings stalled now",
74757
+ snapshotSection: null
74758
+ },
74759
+ {
74760
+ id: "node-connectivity",
74761
+ family: "system",
74762
+ label: "Node connectivity (offline / back online)",
74763
+ bad: ["node-offline"],
74764
+ recovery: ["node-online"],
74765
+ snapshotLabel: "Nodes offline now",
74766
+ snapshotSection: "nodes"
74767
+ },
74768
+ {
74769
+ id: "storage-space",
74770
+ family: "system",
74771
+ label: "Storage space (low or critical / ok again)",
74772
+ bad: ["storage-location-low", "storage-location-critical"],
74773
+ recovery: ["storage-location-ok"],
74774
+ snapshotLabel: "Storage locations low now",
74775
+ snapshotSection: null
74776
+ },
74777
+ {
74778
+ id: "critical-alerts",
74779
+ family: "system",
74780
+ label: "Critical alerts (raised / resolved)",
74781
+ bad: ["alert-critical"],
74782
+ recovery: ["alert-critical-resolved"],
74783
+ snapshotLabel: "Critical alerts open now",
74784
+ snapshotSection: null
74785
+ },
74786
+ {
74787
+ id: "rule-health",
74788
+ family: "system",
74789
+ label: "Rule health (broken / repaired)",
74790
+ bad: ["rule-broken"],
74791
+ recovery: ["rule-repaired"],
74792
+ snapshotLabel: "Notification rules broken now",
74793
+ snapshotSection: null
74794
+ }
74795
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
74673
74796
  new Set([
74674
74797
  "disarmed",
74675
74798
  "armed_home",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DW1QwbXC.js");
5
+ const require_dist = require("../dist-DVfw9wXq.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  node_crypto = require_dist.__toESM(node_crypto);
8
8
  //#region ../../node_modules/jose/dist/webapi/lib/buffer_utils.js
@@ -1,4 +1,4 @@
1
- import { A as toSecretFieldView, C as SECRET_CLEAR, D as globalSecretScope, F as object, I as string, O as isSecretClear, S as RecordSecretUnavailableError, T as defineEntryKind, _ as requestMountPrefix, b as errMsg, c as authProviderCapability, d as loginMethodCapability, f as normalizeOrigin, g as pickRequestOrigin, h as parseAppPageLang, i as addonRoutesCapability, j as _enum, k as isSecretMarker, l as buildAddonRouteProvider, m as parseAppFlowRequest, n as APP_REFUSED_PATH, o as advertisedHubOrigins, p as oidcConnectionsCapability, r as SSO_STATE_COOKIE, s as appFlowLocation, t as APP_FLOW_DEFAULT_REDIRECT, u as claimedRequestOrigins, v as resolveIconKey, w as arrayItemFieldPath, x as BaseAddon } from "../dist-B1PH_8Mk.mjs";
1
+ import { A as toSecretFieldView, C as SECRET_CLEAR, D as globalSecretScope, F as object, I as string, O as isSecretClear, S as RecordSecretUnavailableError, T as defineEntryKind, _ as requestMountPrefix, b as errMsg, c as authProviderCapability, d as loginMethodCapability, f as normalizeOrigin, g as pickRequestOrigin, h as parseAppPageLang, i as addonRoutesCapability, j as _enum, k as isSecretMarker, l as buildAddonRouteProvider, m as parseAppFlowRequest, n as APP_REFUSED_PATH, o as advertisedHubOrigins, p as oidcConnectionsCapability, r as SSO_STATE_COOKIE, s as appFlowLocation, t as APP_FLOW_DEFAULT_REDIRECT, u as claimedRequestOrigins, v as resolveIconKey, w as arrayItemFieldPath, x as BaseAddon } from "../dist-DX68-nyx.mjs";
2
2
  import * as crypto$1 from "node:crypto";
3
3
  //#region ../../node_modules/jose/dist/webapi/lib/buffer_utils.js
4
4
  var encoder = new TextEncoder(), decoder = new TextDecoder(), strictDecoder = new TextDecoder("utf-8", { fatal: !0 });
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.146",
6
+ version: "1.2.147",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_auth_webauthn_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.396",
21
+ version: "1.2.397",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_auth_webauthn_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.313",
36
+ version: "1.2.314",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_auth_webauthn_widgets",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DW1QwbXC.js");
5
+ const require_dist = require("../dist-DVfw9wXq.js");
6
6
  let stream = require("stream");
7
7
  stream = require_dist.__toESM(stream, 1);
8
8
  let http = require("http");
@@ -1,4 +1,4 @@
1
- import { E as defineRecordKinds, F as object, I as string, M as array, N as boolean, P as number, a as addonWidgetsSourceCapability, d as loginMethodCapability, x as BaseAddon, y as userPasskeysCapability } from "../dist-B1PH_8Mk.mjs";
1
+ import { E as defineRecordKinds, F as object, I as string, M as array, N as boolean, P as number, a as addonWidgetsSourceCapability, d as loginMethodCapability, x as BaseAddon, y as userPasskeysCapability } from "../dist-DX68-nyx.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import Stream from "stream";
4
4
  import http from "http";
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.396",
39
+ version: "1.2.397",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.146",
48
+ version: "1.2.147",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.313",
84
+ version: "1.2.314",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-B6wzUVWM.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-Bxcs9RBE.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-auth",
3
- "version": "1.2.161",
3
+ "version": "1.2.162",
4
4
  "description": "Authentication bundle — OIDC and WebAuthn/passkey. Multi-entry npm package shipping 2 addons under a single bundle; each addon keeps its own id, capabilities, and runner.",
5
5
  "keywords": [
6
6
  "camstack",