@camstack/addon-import-alexa 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
@@ -26512,9 +26512,21 @@ var RecordingLocationUsageSchema = object({
26512
26512
  * previously rendered as two identical "disks" with a nonsensical used
26513
26513
  * split — hydrate attribution across aliases is arbitrary by nature. */
26514
26514
  locationIds: array(string()).optional(),
26515
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26515
+ /**
26516
+ * Filesystem root of the physical volume this row accounts — the only
26517
+ * operator-legible identity when a location has no `displayName` yet, and
26518
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26519
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26520
+ * it, and this schema must keep validating that older provider's payload.
26521
+ */
26522
+ root: string().optional(),
26523
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26524
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26525
+ * also holds everything that is not recordings. Volume fill is
26526
+ * `(totalBytes - availableBytes) / totalBytes`. */
26516
26527
  usedBytes: number(),
26517
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26528
+ /** Free bytes on the location's volume; null when capacity is unknown
26529
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26518
26530
  availableBytes: number().nullable(),
26519
26531
  /** Total bytes of the location's volume; null when unknown. */
26520
26532
  totalBytes: number().nullable()
@@ -26526,7 +26538,15 @@ var RecordingStorageUsageSchema = object({
26526
26538
  nodeId: string(),
26527
26539
  totalUsedBytes: number(),
26528
26540
  devices: array(RecordingDeviceUsageSchema),
26529
- locations: array(RecordingLocationUsageSchema)
26541
+ /**
26542
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26543
+ * of the payload without it: the hub serves this method through a BAKED
26544
+ * router, so a hub whose framework train predates a change to this array
26545
+ * strips it out of an answer a newer recorder happily produced. A UI that
26546
+ * dereferences it unconditionally crashes the whole Storage page over a
26547
+ * missing disk bar.
26548
+ */
26549
+ locations: array(RecordingLocationUsageSchema).optional()
26530
26550
  });
26531
26551
  /**
26532
26552
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37311,8 +37331,14 @@ Object.freeze({
37311
37331
  "network-access": "ingress",
37312
37332
  "smtp-provider": "email"
37313
37333
  });
37334
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37335
+ var NC_AUDIO_DEFAULTS = {
37336
+ hitPercent: 60,
37337
+ samplingSeconds: 10
37338
+ };
37314
37339
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37315
37340
  new Set(["devices", "classes"]);
37341
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37316
37342
  /**
37317
37343
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37318
37344
  *
package/dist/addon.mjs CHANGED
@@ -26512,9 +26512,21 @@ var RecordingLocationUsageSchema = object({
26512
26512
  * previously rendered as two identical "disks" with a nonsensical used
26513
26513
  * split — hydrate attribution across aliases is arbitrary by nature. */
26514
26514
  locationIds: array(string()).optional(),
26515
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26515
+ /**
26516
+ * Filesystem root of the physical volume this row accounts — the only
26517
+ * operator-legible identity when a location has no `displayName` yet, and
26518
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26519
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26520
+ * it, and this schema must keep validating that older provider's payload.
26521
+ */
26522
+ root: string().optional(),
26523
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26524
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26525
+ * also holds everything that is not recordings. Volume fill is
26526
+ * `(totalBytes - availableBytes) / totalBytes`. */
26516
26527
  usedBytes: number(),
26517
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26528
+ /** Free bytes on the location's volume; null when capacity is unknown
26529
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26518
26530
  availableBytes: number().nullable(),
26519
26531
  /** Total bytes of the location's volume; null when unknown. */
26520
26532
  totalBytes: number().nullable()
@@ -26526,7 +26538,15 @@ var RecordingStorageUsageSchema = object({
26526
26538
  nodeId: string(),
26527
26539
  totalUsedBytes: number(),
26528
26540
  devices: array(RecordingDeviceUsageSchema),
26529
- locations: array(RecordingLocationUsageSchema)
26541
+ /**
26542
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26543
+ * of the payload without it: the hub serves this method through a BAKED
26544
+ * router, so a hub whose framework train predates a change to this array
26545
+ * strips it out of an answer a newer recorder happily produced. A UI that
26546
+ * dereferences it unconditionally crashes the whole Storage page over a
26547
+ * missing disk bar.
26548
+ */
26549
+ locations: array(RecordingLocationUsageSchema).optional()
26530
26550
  });
26531
26551
  /**
26532
26552
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37311,8 +37331,14 @@ Object.freeze({
37311
37331
  "network-access": "ingress",
37312
37332
  "smtp-provider": "email"
37313
37333
  });
37334
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37335
+ var NC_AUDIO_DEFAULTS = {
37336
+ hitPercent: 60,
37337
+ samplingSeconds: 10
37338
+ };
37314
37339
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37315
37340
  new Set(["devices", "classes"]);
37341
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37316
37342
  /**
37317
37343
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37318
37344
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",