@camstack/addon-provider-rademacher 0.2.21 → 0.2.22

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
@@ -27237,9 +27237,21 @@ var RecordingLocationUsageSchema = object({
27237
27237
  * previously rendered as two identical "disks" with a nonsensical used
27238
27238
  * split — hydrate attribution across aliases is arbitrary by nature. */
27239
27239
  locationIds: array(string()).optional(),
27240
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
27240
+ /**
27241
+ * Filesystem root of the physical volume this row accounts — the only
27242
+ * operator-legible identity when a location has no `displayName` yet, and
27243
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
27244
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
27245
+ * it, and this schema must keep validating that older provider's payload.
27246
+ */
27247
+ root: string().optional(),
27248
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
27249
+ * the footage's SHARE of the volume, not how full the volume is — the disk
27250
+ * also holds everything that is not recordings. Volume fill is
27251
+ * `(totalBytes - availableBytes) / totalBytes`. */
27241
27252
  usedBytes: number(),
27242
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
27253
+ /** Free bytes on the location's volume; null when capacity is unknown
27254
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
27243
27255
  availableBytes: number().nullable(),
27244
27256
  /** Total bytes of the location's volume; null when unknown. */
27245
27257
  totalBytes: number().nullable()
@@ -27251,7 +27263,15 @@ var RecordingStorageUsageSchema = object({
27251
27263
  nodeId: string(),
27252
27264
  totalUsedBytes: number(),
27253
27265
  devices: array(RecordingDeviceUsageSchema),
27254
- locations: array(RecordingLocationUsageSchema)
27266
+ /**
27267
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27268
+ * of the payload without it: the hub serves this method through a BAKED
27269
+ * router, so a hub whose framework train predates a change to this array
27270
+ * strips it out of an answer a newer recorder happily produced. A UI that
27271
+ * dereferences it unconditionally crashes the whole Storage page over a
27272
+ * missing disk bar.
27273
+ */
27274
+ locations: array(RecordingLocationUsageSchema).optional()
27255
27275
  });
27256
27276
  /**
27257
27277
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -38036,8 +38056,14 @@ Object.freeze({
38036
38056
  "network-access": "ingress",
38037
38057
  "smtp-provider": "email"
38038
38058
  });
38059
+ /** Schema defaults — an untouched sub-field must author exactly these. */
38060
+ var NC_AUDIO_DEFAULTS = {
38061
+ hitPercent: 60,
38062
+ samplingSeconds: 10
38063
+ };
38039
38064
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
38040
38065
  new Set(["devices", "classes"]);
38066
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
38041
38067
  /**
38042
38068
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
38043
38069
  *
package/dist/addon.mjs CHANGED
@@ -27236,9 +27236,21 @@ var RecordingLocationUsageSchema = object({
27236
27236
  * previously rendered as two identical "disks" with a nonsensical used
27237
27237
  * split — hydrate attribution across aliases is arbitrary by nature. */
27238
27238
  locationIds: array(string()).optional(),
27239
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
27239
+ /**
27240
+ * Filesystem root of the physical volume this row accounts — the only
27241
+ * operator-legible identity when a location has no `displayName` yet, and
27242
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
27243
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
27244
+ * it, and this schema must keep validating that older provider's payload.
27245
+ */
27246
+ root: string().optional(),
27247
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
27248
+ * the footage's SHARE of the volume, not how full the volume is — the disk
27249
+ * also holds everything that is not recordings. Volume fill is
27250
+ * `(totalBytes - availableBytes) / totalBytes`. */
27240
27251
  usedBytes: number(),
27241
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
27252
+ /** Free bytes on the location's volume; null when capacity is unknown
27253
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
27242
27254
  availableBytes: number().nullable(),
27243
27255
  /** Total bytes of the location's volume; null when unknown. */
27244
27256
  totalBytes: number().nullable()
@@ -27250,7 +27262,15 @@ var RecordingStorageUsageSchema = object({
27250
27262
  nodeId: string(),
27251
27263
  totalUsedBytes: number(),
27252
27264
  devices: array(RecordingDeviceUsageSchema),
27253
- locations: array(RecordingLocationUsageSchema)
27265
+ /**
27266
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27267
+ * of the payload without it: the hub serves this method through a BAKED
27268
+ * router, so a hub whose framework train predates a change to this array
27269
+ * strips it out of an answer a newer recorder happily produced. A UI that
27270
+ * dereferences it unconditionally crashes the whole Storage page over a
27271
+ * missing disk bar.
27272
+ */
27273
+ locations: array(RecordingLocationUsageSchema).optional()
27254
27274
  });
27255
27275
  /**
27256
27276
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -38035,8 +38055,14 @@ Object.freeze({
38035
38055
  "network-access": "ingress",
38036
38056
  "smtp-provider": "email"
38037
38057
  });
38058
+ /** Schema defaults — an untouched sub-field must author exactly these. */
38059
+ var NC_AUDIO_DEFAULTS = {
38060
+ hitPercent: 60,
38061
+ samplingSeconds: 10
38062
+ };
38038
38063
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
38039
38064
  new Set(["devices", "classes"]);
38065
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
38040
38066
  /**
38041
38067
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
38042
38068
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rademacher",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",