@camstack/addon-smtp-nodemailer 1.2.68 → 1.2.69

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.
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-BZL-fdNj.mjs
39
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -408,6 +408,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
408
408
  */
409
409
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
410
410
  /**
411
+ * Cap event fired by every device that registers the `network-link`
412
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
413
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
414
+ * reading that moved.
415
+ */
416
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
417
+ /**
411
418
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
412
419
  * "wake in progress" window — between the Baichuan wake-up issue and
413
420
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -23215,6 +23222,39 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
23215
23222
  deviceId: number(),
23216
23223
  status: BatteryStatusSchema
23217
23224
  });
23225
+ /**
23226
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
23227
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23228
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
23229
+ * one Home Assistant projection.
23230
+ */
23231
+ var NetworkLinkStatusSchema = object({
23232
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23233
+ type: _enum([
23234
+ "wifi",
23235
+ "ethernet",
23236
+ "cellular",
23237
+ "unknown"
23238
+ ]),
23239
+ /**
23240
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
23241
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23242
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23243
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
23244
+ * SKIP a null rather than coerce it.
23245
+ */
23246
+ signalPercent: number().min(0).max(100).nullable(),
23247
+ /** Raw received signal strength in dBm, when the firmware reports one. */
23248
+ rssiDbm: number().optional(),
23249
+ /** Network name of a wireless link, when the firmware reports it. */
23250
+ ssid: string().optional(),
23251
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23252
+ lastUpdated: number()
23253
+ });
23254
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
23255
+ deviceId: number(),
23256
+ status: NetworkLinkStatusSchema
23257
+ });
23218
23258
  object({
23219
23259
  on: boolean(),
23220
23260
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
36
  //#endregion
37
- //#region ../types/dist/event-category-BZL-fdNj.mjs
37
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -406,6 +406,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
406
406
  */
407
407
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
408
408
  /**
409
+ * Cap event fired by every device that registers the `network-link`
410
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
411
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
412
+ * reading that moved.
413
+ */
414
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
415
+ /**
409
416
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
410
417
  * "wake in progress" window — between the Baichuan wake-up issue and
411
418
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -23213,6 +23220,39 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
23213
23220
  deviceId: number(),
23214
23221
  status: BatteryStatusSchema
23215
23222
  });
23223
+ /**
23224
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
23225
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23226
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
23227
+ * one Home Assistant projection.
23228
+ */
23229
+ var NetworkLinkStatusSchema = object({
23230
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23231
+ type: _enum([
23232
+ "wifi",
23233
+ "ethernet",
23234
+ "cellular",
23235
+ "unknown"
23236
+ ]),
23237
+ /**
23238
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
23239
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23240
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23241
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
23242
+ * SKIP a null rather than coerce it.
23243
+ */
23244
+ signalPercent: number().min(0).max(100).nullable(),
23245
+ /** Raw received signal strength in dBm, when the firmware reports one. */
23246
+ rssiDbm: number().optional(),
23247
+ /** Network name of a wireless link, when the firmware reports it. */
23248
+ ssid: string().optional(),
23249
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23250
+ lastUpdated: number()
23251
+ });
23252
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
23253
+ deviceId: number(),
23254
+ status: NetworkLinkStatusSchema
23255
+ });
23216
23256
  object({
23217
23257
  on: boolean(),
23218
23258
  /** Ms epoch of the last transition. 0 if never observed. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.68",
3
+ "version": "1.2.69",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",