@camstack/addon-notifiers 1.2.26 → 1.2.27

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
@@ -24410,9 +24410,21 @@ var RecordingLocationUsageSchema = object({
24410
24410
  * previously rendered as two identical "disks" with a nonsensical used
24411
24411
  * split — hydrate attribution across aliases is arbitrary by nature. */
24412
24412
  locationIds: array(string()).optional(),
24413
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24413
+ /**
24414
+ * Filesystem root of the physical volume this row accounts — the only
24415
+ * operator-legible identity when a location has no `displayName` yet, and
24416
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24417
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24418
+ * it, and this schema must keep validating that older provider's payload.
24419
+ */
24420
+ root: string().optional(),
24421
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24422
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24423
+ * also holds everything that is not recordings. Volume fill is
24424
+ * `(totalBytes - availableBytes) / totalBytes`. */
24414
24425
  usedBytes: number(),
24415
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24426
+ /** Free bytes on the location's volume; null when capacity is unknown
24427
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24416
24428
  availableBytes: number().nullable(),
24417
24429
  /** Total bytes of the location's volume; null when unknown. */
24418
24430
  totalBytes: number().nullable()
@@ -24424,7 +24436,15 @@ var RecordingStorageUsageSchema = object({
24424
24436
  nodeId: string(),
24425
24437
  totalUsedBytes: number(),
24426
24438
  devices: array(RecordingDeviceUsageSchema),
24427
- locations: array(RecordingLocationUsageSchema)
24439
+ /**
24440
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24441
+ * of the payload without it: the hub serves this method through a BAKED
24442
+ * router, so a hub whose framework train predates a change to this array
24443
+ * strips it out of an answer a newer recorder happily produced. A UI that
24444
+ * dereferences it unconditionally crashes the whole Storage page over a
24445
+ * missing disk bar.
24446
+ */
24447
+ locations: array(RecordingLocationUsageSchema).optional()
24428
24448
  });
24429
24449
  /**
24430
24450
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33540,6 +33560,11 @@ Object.freeze({
33540
33560
  "network-access": "ingress",
33541
33561
  "smtp-provider": "email"
33542
33562
  });
33563
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33564
+ var NC_AUDIO_DEFAULTS = {
33565
+ hitPercent: 60,
33566
+ samplingSeconds: 10
33567
+ };
33543
33568
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33544
33569
  new Set(["devices", "classes"]);
33545
33570
  /** Strip a small, safe subset of Markdown down to plain text. */
@@ -33749,6 +33774,7 @@ function prepareNotification(caps, n) {
33749
33774
  renderedAs
33750
33775
  };
33751
33776
  }
33777
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33752
33778
  /**
33753
33779
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33754
33780
  *
package/dist/addon.mjs CHANGED
@@ -24383,9 +24383,21 @@ var RecordingLocationUsageSchema = object({
24383
24383
  * previously rendered as two identical "disks" with a nonsensical used
24384
24384
  * split — hydrate attribution across aliases is arbitrary by nature. */
24385
24385
  locationIds: array(string()).optional(),
24386
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24386
+ /**
24387
+ * Filesystem root of the physical volume this row accounts — the only
24388
+ * operator-legible identity when a location has no `displayName` yet, and
24389
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24390
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24391
+ * it, and this schema must keep validating that older provider's payload.
24392
+ */
24393
+ root: string().optional(),
24394
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24395
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24396
+ * also holds everything that is not recordings. Volume fill is
24397
+ * `(totalBytes - availableBytes) / totalBytes`. */
24387
24398
  usedBytes: number(),
24388
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24399
+ /** Free bytes on the location's volume; null when capacity is unknown
24400
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24389
24401
  availableBytes: number().nullable(),
24390
24402
  /** Total bytes of the location's volume; null when unknown. */
24391
24403
  totalBytes: number().nullable()
@@ -24397,7 +24409,15 @@ var RecordingStorageUsageSchema = object({
24397
24409
  nodeId: string(),
24398
24410
  totalUsedBytes: number(),
24399
24411
  devices: array(RecordingDeviceUsageSchema),
24400
- locations: array(RecordingLocationUsageSchema)
24412
+ /**
24413
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24414
+ * of the payload without it: the hub serves this method through a BAKED
24415
+ * router, so a hub whose framework train predates a change to this array
24416
+ * strips it out of an answer a newer recorder happily produced. A UI that
24417
+ * dereferences it unconditionally crashes the whole Storage page over a
24418
+ * missing disk bar.
24419
+ */
24420
+ locations: array(RecordingLocationUsageSchema).optional()
24401
24421
  });
24402
24422
  /**
24403
24423
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33513,6 +33533,11 @@ Object.freeze({
33513
33533
  "network-access": "ingress",
33514
33534
  "smtp-provider": "email"
33515
33535
  });
33536
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33537
+ var NC_AUDIO_DEFAULTS = {
33538
+ hitPercent: 60,
33539
+ samplingSeconds: 10
33540
+ };
33516
33541
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33517
33542
  new Set(["devices", "classes"]);
33518
33543
  /** Strip a small, safe subset of Markdown down to plain text. */
@@ -33722,6 +33747,7 @@ function prepareNotification(caps, n) {
33722
33747
  renderedAs
33723
33748
  };
33724
33749
  }
33750
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33725
33751
  /**
33726
33752
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33727
33753
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",