@camstack/addon-auth 1.2.129 → 1.2.130

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.
@@ -16092,6 +16092,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16092
16092
  kind: "mutation",
16093
16093
  auth: "admin"
16094
16094
  });
16095
+ var HUB_ADDRESS_ROLES = [
16096
+ "appConnections",
16097
+ "notificationTaps",
16098
+ "internal",
16099
+ "publicEndpoint"
16100
+ ];
16095
16101
  /**
16096
16102
  * Transport bounds for AI capability methods.
16097
16103
  *
@@ -20271,7 +20277,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20271
20277
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20272
20278
  * is the one that starts the entry delay — the entry-delay notification already names it.
20273
20279
  */
20274
- notifySensorRewatched: boolean().optional()
20280
+ notifySensorRewatched: boolean().optional(),
20281
+ /**
20282
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20283
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20284
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20285
+ */
20286
+ notifySensorIgnored: boolean().optional()
20275
20287
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20276
20288
  var NcAlarmModeDelaysEditListSchema = array(object({
20277
20289
  mode: AlarmArmModeSchema,
@@ -20284,7 +20296,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20284
20296
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20285
20297
  notifyDuringEntryDelay: boolean().nullable().optional(),
20286
20298
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20287
- notifySensorRewatched: boolean().nullable().optional()
20299
+ notifySensorRewatched: boolean().nullable().optional(),
20300
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20301
+ notifySensorIgnored: boolean().nullable().optional()
20288
20302
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20289
20303
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20290
20304
  var NcAlarmNonBlockingEditSchema = object({
@@ -30824,7 +30838,7 @@ var GetConnectionEndpointsResultSchema = object({
30824
30838
  localPort: AdvertisedLocalPortSchema
30825
30839
  });
30826
30840
  /**
30827
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
30841
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
30828
30842
  * since D709 is the CamStack app link; `resolved` reports the effective value,
30829
30843
  * so the UI can show it either way.
30830
30844
  */
@@ -30859,8 +30873,8 @@ var ViewerEndpointsSchema = object({
30859
30873
  });
30860
30874
  /**
30861
30875
  * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
30862
- * one release for addons built against it): `cluster` is the `agents` role,
30863
- * `browser` the `signIn` role; `override` is the flagged address.
30876
+ * for addons built against it): `cluster` is the `internal` role, `browser`
30877
+ * the `publicEndpoint` role; `override` is the flagged address.
30864
30878
  */
30865
30879
  var HubAddressSnapshotSchema = object({
30866
30880
  override: string().nullable(),
@@ -30876,15 +30890,11 @@ var HubAddressesSchema = object({
30876
30890
  browser: HubAddressSnapshotSchema
30877
30891
  });
30878
30892
  /**
30879
- * What an address is used for (`hub-address.ts`). `viewer` is many-valued;
30880
- * `notifications`, `agents` and `signIn` are carried by at most one address.
30893
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
30894
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
30895
+ * by at most one address.
30881
30896
  */
30882
- var HubAddressRoleSchema = _enum([
30883
- "viewer",
30884
- "notifications",
30885
- "agents",
30886
- "signIn"
30887
- ]);
30897
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
30888
30898
  var RoleSourceSchema = _enum([
30889
30899
  "flagged",
30890
30900
  "auto",
@@ -30898,8 +30908,8 @@ var HubAddressRoleResolutionSchema = object({
30898
30908
  resolved: string().nullable(),
30899
30909
  source: RoleSourceSchema
30900
30910
  });
30901
- var HubViewerResolutionSchema = object({
30902
- /** The addresses flagged `viewer`, or empty = automatic. */
30911
+ var HubAppConnectionsResolutionSchema = object({
30912
+ /** The addresses flagged `appConnections`, or empty = automatic. */
30903
30913
  flagged: array(string()).readonly(),
30904
30914
  /** What the apps race right now. */
30905
30915
  resolved: array(string()).readonly(),
@@ -30919,10 +30929,10 @@ var HubAddressBookSchema = object({
30919
30929
  eligible: array(HubAddressRoleSchema).readonly()
30920
30930
  })).readonly(),
30921
30931
  roles: object({
30922
- viewer: HubViewerResolutionSchema,
30923
- notifications: HubAddressRoleResolutionSchema,
30924
- agents: HubAddressRoleResolutionSchema,
30925
- signIn: HubAddressRoleResolutionSchema
30932
+ appConnections: HubAppConnectionsResolutionSchema,
30933
+ notificationTaps: HubAddressRoleResolutionSchema,
30934
+ internal: HubAddressRoleResolutionSchema,
30935
+ publicEndpoint: HubAddressRoleResolutionSchema
30926
30936
  }),
30927
30937
  /** The `hub=` an app link carries (D709), or null. */
30928
30938
  appLinkHub: string().nullable()
@@ -30970,7 +30980,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30970
30980
  * tunnel always emits `https://` regardless. */
30971
30981
  scheme: _enum(["http", "https"]).optional(),
30972
30982
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
30973
- * an address notification links can be flagged with, not a hub
30983
+ * an address notification taps can be flagged with, not a hub
30974
30984
  * route. Default `false`: racers and rankers never see it. */
30975
30985
  includeAppLink: boolean().optional()
30976
30986
  }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
@@ -48866,7 +48876,7 @@ var MB = 1024 * 1024;
48866
48876
  //#region src/hub-browser-origin.ts
48867
48877
  async function hubBrowserOrigin(localNetwork, logger) {
48868
48878
  try {
48869
- return (await localNetwork.getAddresses.query()).roles.signIn.resolved;
48879
+ return (await localNetwork.getAddresses.query()).roles.publicEndpoint.resolved;
48870
48880
  } catch (err) {
48871
48881
  logger.warn("hub address unavailable from local-network — using the localhost default", { meta: { error: err instanceof Error ? err.message : String(err) } });
48872
48882
  return null;
@@ -16093,6 +16093,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16093
16093
  kind: "mutation",
16094
16094
  auth: "admin"
16095
16095
  });
16096
+ var HUB_ADDRESS_ROLES = [
16097
+ "appConnections",
16098
+ "notificationTaps",
16099
+ "internal",
16100
+ "publicEndpoint"
16101
+ ];
16096
16102
  /**
16097
16103
  * Transport bounds for AI capability methods.
16098
16104
  *
@@ -20272,7 +20278,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20272
20278
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20273
20279
  * is the one that starts the entry delay — the entry-delay notification already names it.
20274
20280
  */
20275
- notifySensorRewatched: boolean().optional()
20281
+ notifySensorRewatched: boolean().optional(),
20282
+ /**
20283
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20284
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20285
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20286
+ */
20287
+ notifySensorIgnored: boolean().optional()
20276
20288
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20277
20289
  var NcAlarmModeDelaysEditListSchema = array(object({
20278
20290
  mode: AlarmArmModeSchema,
@@ -20285,7 +20297,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20285
20297
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20286
20298
  notifyDuringEntryDelay: boolean().nullable().optional(),
20287
20299
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20288
- notifySensorRewatched: boolean().nullable().optional()
20300
+ notifySensorRewatched: boolean().nullable().optional(),
20301
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20302
+ notifySensorIgnored: boolean().nullable().optional()
20289
20303
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20290
20304
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20291
20305
  var NcAlarmNonBlockingEditSchema = object({
@@ -30825,7 +30839,7 @@ var GetConnectionEndpointsResultSchema = object({
30825
30839
  localPort: AdvertisedLocalPortSchema
30826
30840
  });
30827
30841
  /**
30828
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
30842
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
30829
30843
  * since D709 is the CamStack app link; `resolved` reports the effective value,
30830
30844
  * so the UI can show it either way.
30831
30845
  */
@@ -30860,8 +30874,8 @@ var ViewerEndpointsSchema = object({
30860
30874
  });
30861
30875
  /**
30862
30876
  * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
30863
- * one release for addons built against it): `cluster` is the `agents` role,
30864
- * `browser` the `signIn` role; `override` is the flagged address.
30877
+ * for addons built against it): `cluster` is the `internal` role, `browser`
30878
+ * the `publicEndpoint` role; `override` is the flagged address.
30865
30879
  */
30866
30880
  var HubAddressSnapshotSchema = object({
30867
30881
  override: string().nullable(),
@@ -30877,15 +30891,11 @@ var HubAddressesSchema = object({
30877
30891
  browser: HubAddressSnapshotSchema
30878
30892
  });
30879
30893
  /**
30880
- * What an address is used for (`hub-address.ts`). `viewer` is many-valued;
30881
- * `notifications`, `agents` and `signIn` are carried by at most one address.
30894
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
30895
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
30896
+ * by at most one address.
30882
30897
  */
30883
- var HubAddressRoleSchema = _enum([
30884
- "viewer",
30885
- "notifications",
30886
- "agents",
30887
- "signIn"
30888
- ]);
30898
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
30889
30899
  var RoleSourceSchema = _enum([
30890
30900
  "flagged",
30891
30901
  "auto",
@@ -30899,8 +30909,8 @@ var HubAddressRoleResolutionSchema = object({
30899
30909
  resolved: string().nullable(),
30900
30910
  source: RoleSourceSchema
30901
30911
  });
30902
- var HubViewerResolutionSchema = object({
30903
- /** The addresses flagged `viewer`, or empty = automatic. */
30912
+ var HubAppConnectionsResolutionSchema = object({
30913
+ /** The addresses flagged `appConnections`, or empty = automatic. */
30904
30914
  flagged: array(string()).readonly(),
30905
30915
  /** What the apps race right now. */
30906
30916
  resolved: array(string()).readonly(),
@@ -30920,10 +30930,10 @@ var HubAddressBookSchema = object({
30920
30930
  eligible: array(HubAddressRoleSchema).readonly()
30921
30931
  })).readonly(),
30922
30932
  roles: object({
30923
- viewer: HubViewerResolutionSchema,
30924
- notifications: HubAddressRoleResolutionSchema,
30925
- agents: HubAddressRoleResolutionSchema,
30926
- signIn: HubAddressRoleResolutionSchema
30933
+ appConnections: HubAppConnectionsResolutionSchema,
30934
+ notificationTaps: HubAddressRoleResolutionSchema,
30935
+ internal: HubAddressRoleResolutionSchema,
30936
+ publicEndpoint: HubAddressRoleResolutionSchema
30927
30937
  }),
30928
30938
  /** The `hub=` an app link carries (D709), or null. */
30929
30939
  appLinkHub: string().nullable()
@@ -30971,7 +30981,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30971
30981
  * tunnel always emits `https://` regardless. */
30972
30982
  scheme: _enum(["http", "https"]).optional(),
30973
30983
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
30974
- * an address notification links can be flagged with, not a hub
30984
+ * an address notification taps can be flagged with, not a hub
30975
30985
  * route. Default `false`: racers and rankers never see it. */
30976
30986
  includeAppLink: boolean().optional()
30977
30987
  }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
@@ -48867,7 +48877,7 @@ var MB = 1024 * 1024;
48867
48877
  //#region src/hub-browser-origin.ts
48868
48878
  async function hubBrowserOrigin(localNetwork, logger) {
48869
48879
  try {
48870
- return (await localNetwork.getAddresses.query()).roles.signIn.resolved;
48880
+ return (await localNetwork.getAddresses.query()).roles.publicEndpoint.resolved;
48871
48881
  } catch (err) {
48872
48882
  logger.warn("hub address unavailable from local-network — using the localhost default", { meta: { error: err instanceof Error ? err.message : String(err) } });
48873
48883
  return null;
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../chunk-Cek0wNdY.js");
6
- const require_hub_browser_origin = require("../hub-browser-origin-Cd5W-H0b.js");
6
+ const require_hub_browser_origin = require("../hub-browser-origin-C-u2l9VC.js");
7
7
  //#region src/magic-link/auth-magic-link.addon.ts
8
8
  /**
9
9
  * Magic-link authentication addon.
@@ -1,4 +1,4 @@
1
- import { a as buildAddonRouteProvider, c as errMsg, i as authProviderCapability, l as BaseAddon, n as addonRoutesCapability, o as loginMethodCapability, t as hubBrowserOrigin } from "../hub-browser-origin-lAiHaCMe.mjs";
1
+ import { a as buildAddonRouteProvider, c as errMsg, i as authProviderCapability, l as BaseAddon, n as addonRoutesCapability, o as loginMethodCapability, t as hubBrowserOrigin } from "../hub-browser-origin-B1o5vmQX.mjs";
2
2
  //#region src/magic-link/auth-magic-link.addon.ts
3
3
  /**
4
4
  * Magic-link authentication addon.
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_hub_browser_origin = require("../hub-browser-origin-Cd5W-H0b.js");
6
+ const require_hub_browser_origin = require("../hub-browser-origin-C-u2l9VC.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  node_crypto = require_chunk.__toESM(node_crypto);
9
9
  //#region ../../node_modules/jose/dist/webapi/lib/buffer_utils.js
@@ -1,4 +1,4 @@
1
- import { a as buildAddonRouteProvider, c as errMsg, i as authProviderCapability, l as BaseAddon, n as addonRoutesCapability, o as loginMethodCapability, t as hubBrowserOrigin } from "../hub-browser-origin-lAiHaCMe.mjs";
1
+ import { a as buildAddonRouteProvider, c as errMsg, i as authProviderCapability, l as BaseAddon, n as addonRoutesCapability, o as loginMethodCapability, t as hubBrowserOrigin } from "../hub-browser-origin-B1o5vmQX.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 });
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.310",
21
+ version: "1.2.311",
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.236",
36
+ version: "1.2.237",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_auth_webauthn_widgets",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_hub_browser_origin = require("../hub-browser-origin-Cd5W-H0b.js");
6
+ const require_hub_browser_origin = require("../hub-browser-origin-C-u2l9VC.js");
7
7
  let stream = require("stream");
8
8
  stream = require_chunk.__toESM(stream, 1);
9
9
  let http = require("http");
@@ -1,4 +1,4 @@
1
- import { d as boolean, f as number, l as BaseAddon, m as string, o as loginMethodCapability, p as object, r as addonWidgetsSourceCapability, s as userPasskeysCapability, t as hubBrowserOrigin, u as array } from "../hub-browser-origin-lAiHaCMe.mjs";
1
+ import { d as boolean, f as number, l as BaseAddon, m as string, o as loginMethodCapability, p as object, r as addonWidgetsSourceCapability, s as userPasskeysCapability, t as hubBrowserOrigin, u as array } from "../hub-browser-origin-B1o5vmQX.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.310",
39
+ version: "1.2.311",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.236",
84
+ version: "1.2.237",
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-tSRn6o3N.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-v7lvfZM3.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.129",
3
+ "version": "1.2.130",
4
4
  "description": "Authentication bundle — magic-link, OIDC, and WebAuthn/passkey. Multi-entry npm package shipping 3 addons under a single bundle; each addon keeps its own id, capabilities, and runner.",
5
5
  "keywords": [
6
6
  "camstack",