@camstack/addon-import-alexa 0.2.20 → 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
@@ -20465,6 +20465,14 @@ var ClipSchema = object({
20465
20465
  endMs: number()
20466
20466
  }),
20467
20467
  /**
20468
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20469
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20470
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20471
+ * did not. Absent (never empty) when the visit attached no classified object
20472
+ * event, so a motion/audio-only visit keeps its kind label.
20473
+ */
20474
+ labels: array(string()).max(3).optional(),
20475
+ /**
20468
20476
  * Lazy thumbnail URL, never inlined.
20469
20477
  *
20470
20478
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26504,9 +26512,21 @@ var RecordingLocationUsageSchema = object({
26504
26512
  * previously rendered as two identical "disks" with a nonsensical used
26505
26513
  * split — hydrate attribution across aliases is arbitrary by nature. */
26506
26514
  locationIds: array(string()).optional(),
26507
- /** 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`. */
26508
26527
  usedBytes: number(),
26509
- /** 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). */
26510
26530
  availableBytes: number().nullable(),
26511
26531
  /** Total bytes of the location's volume; null when unknown. */
26512
26532
  totalBytes: number().nullable()
@@ -26518,7 +26538,15 @@ var RecordingStorageUsageSchema = object({
26518
26538
  nodeId: string(),
26519
26539
  totalUsedBytes: number(),
26520
26540
  devices: array(RecordingDeviceUsageSchema),
26521
- 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()
26522
26550
  });
26523
26551
  /**
26524
26552
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37303,8 +37331,14 @@ Object.freeze({
37303
37331
  "network-access": "ingress",
37304
37332
  "smtp-provider": "email"
37305
37333
  });
37334
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37335
+ var NC_AUDIO_DEFAULTS = {
37336
+ hitPercent: 60,
37337
+ samplingSeconds: 10
37338
+ };
37306
37339
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37307
37340
  new Set(["devices", "classes"]);
37341
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37308
37342
  /**
37309
37343
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37310
37344
  *
package/dist/addon.mjs CHANGED
@@ -20465,6 +20465,14 @@ var ClipSchema = object({
20465
20465
  endMs: number()
20466
20466
  }),
20467
20467
  /**
20468
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20469
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20470
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20471
+ * did not. Absent (never empty) when the visit attached no classified object
20472
+ * event, so a motion/audio-only visit keeps its kind label.
20473
+ */
20474
+ labels: array(string()).max(3).optional(),
20475
+ /**
20468
20476
  * Lazy thumbnail URL, never inlined.
20469
20477
  *
20470
20478
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26504,9 +26512,21 @@ var RecordingLocationUsageSchema = object({
26504
26512
  * previously rendered as two identical "disks" with a nonsensical used
26505
26513
  * split — hydrate attribution across aliases is arbitrary by nature. */
26506
26514
  locationIds: array(string()).optional(),
26507
- /** 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`. */
26508
26527
  usedBytes: number(),
26509
- /** 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). */
26510
26530
  availableBytes: number().nullable(),
26511
26531
  /** Total bytes of the location's volume; null when unknown. */
26512
26532
  totalBytes: number().nullable()
@@ -26518,7 +26538,15 @@ var RecordingStorageUsageSchema = object({
26518
26538
  nodeId: string(),
26519
26539
  totalUsedBytes: number(),
26520
26540
  devices: array(RecordingDeviceUsageSchema),
26521
- 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()
26522
26550
  });
26523
26551
  /**
26524
26552
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37303,8 +37331,14 @@ Object.freeze({
37303
37331
  "network-access": "ingress",
37304
37332
  "smtp-provider": "email"
37305
37333
  });
37334
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37335
+ var NC_AUDIO_DEFAULTS = {
37336
+ hitPercent: 60,
37337
+ samplingSeconds: 10
37338
+ };
37306
37339
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37307
37340
  new Set(["devices", "classes"]);
37341
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37308
37342
  /**
37309
37343
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37310
37344
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.20",
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",