@camstack/addon-provider-unraid 0.2.22 → 0.2.23

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
@@ -26269,9 +26269,21 @@ var RecordingLocationUsageSchema = object({
26269
26269
  * previously rendered as two identical "disks" with a nonsensical used
26270
26270
  * split — hydrate attribution across aliases is arbitrary by nature. */
26271
26271
  locationIds: array(string()).optional(),
26272
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26272
+ /**
26273
+ * Filesystem root of the physical volume this row accounts — the only
26274
+ * operator-legible identity when a location has no `displayName` yet, and
26275
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26276
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26277
+ * it, and this schema must keep validating that older provider's payload.
26278
+ */
26279
+ root: string().optional(),
26280
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26281
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26282
+ * also holds everything that is not recordings. Volume fill is
26283
+ * `(totalBytes - availableBytes) / totalBytes`. */
26273
26284
  usedBytes: number(),
26274
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26285
+ /** Free bytes on the location's volume; null when capacity is unknown
26286
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26275
26287
  availableBytes: number().nullable(),
26276
26288
  /** Total bytes of the location's volume; null when unknown. */
26277
26289
  totalBytes: number().nullable()
@@ -26283,7 +26295,15 @@ var RecordingStorageUsageSchema = object({
26283
26295
  nodeId: string(),
26284
26296
  totalUsedBytes: number(),
26285
26297
  devices: array(RecordingDeviceUsageSchema),
26286
- locations: array(RecordingLocationUsageSchema)
26298
+ /**
26299
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26300
+ * of the payload without it: the hub serves this method through a BAKED
26301
+ * router, so a hub whose framework train predates a change to this array
26302
+ * strips it out of an answer a newer recorder happily produced. A UI that
26303
+ * dereferences it unconditionally crashes the whole Storage page over a
26304
+ * missing disk bar.
26305
+ */
26306
+ locations: array(RecordingLocationUsageSchema).optional()
26287
26307
  });
26288
26308
  /**
26289
26309
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37068,8 +37088,14 @@ Object.freeze({
37068
37088
  "network-access": "ingress",
37069
37089
  "smtp-provider": "email"
37070
37090
  });
37091
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37092
+ var NC_AUDIO_DEFAULTS = {
37093
+ hitPercent: 60,
37094
+ samplingSeconds: 10
37095
+ };
37071
37096
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37072
37097
  new Set(["devices", "classes"]);
37098
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37073
37099
  /**
37074
37100
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37075
37101
  *
package/dist/addon.mjs CHANGED
@@ -26268,9 +26268,21 @@ var RecordingLocationUsageSchema = object({
26268
26268
  * previously rendered as two identical "disks" with a nonsensical used
26269
26269
  * split — hydrate attribution across aliases is arbitrary by nature. */
26270
26270
  locationIds: array(string()).optional(),
26271
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26271
+ /**
26272
+ * Filesystem root of the physical volume this row accounts — the only
26273
+ * operator-legible identity when a location has no `displayName` yet, and
26274
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26275
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26276
+ * it, and this schema must keep validating that older provider's payload.
26277
+ */
26278
+ root: string().optional(),
26279
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26280
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26281
+ * also holds everything that is not recordings. Volume fill is
26282
+ * `(totalBytes - availableBytes) / totalBytes`. */
26272
26283
  usedBytes: number(),
26273
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26284
+ /** Free bytes on the location's volume; null when capacity is unknown
26285
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26274
26286
  availableBytes: number().nullable(),
26275
26287
  /** Total bytes of the location's volume; null when unknown. */
26276
26288
  totalBytes: number().nullable()
@@ -26282,7 +26294,15 @@ var RecordingStorageUsageSchema = object({
26282
26294
  nodeId: string(),
26283
26295
  totalUsedBytes: number(),
26284
26296
  devices: array(RecordingDeviceUsageSchema),
26285
- locations: array(RecordingLocationUsageSchema)
26297
+ /**
26298
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26299
+ * of the payload without it: the hub serves this method through a BAKED
26300
+ * router, so a hub whose framework train predates a change to this array
26301
+ * strips it out of an answer a newer recorder happily produced. A UI that
26302
+ * dereferences it unconditionally crashes the whole Storage page over a
26303
+ * missing disk bar.
26304
+ */
26305
+ locations: array(RecordingLocationUsageSchema).optional()
26286
26306
  });
26287
26307
  /**
26288
26308
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37067,8 +37087,14 @@ Object.freeze({
37067
37087
  "network-access": "ingress",
37068
37088
  "smtp-provider": "email"
37069
37089
  });
37090
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37091
+ var NC_AUDIO_DEFAULTS = {
37092
+ hitPercent: 60,
37093
+ samplingSeconds: 10
37094
+ };
37070
37095
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37071
37096
  new Set(["devices", "classes"]);
37097
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37072
37098
  /**
37073
37099
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37074
37100
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unraid",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "Unraid device-provider addon for CamStack — one Container per Unraid instance fanning out array, disk, docker and notification entities",
5
5
  "keywords": [
6
6
  "camstack",