@camstack/addon-export-alexa 1.2.27 → 1.2.29

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.
@@ -20181,6 +20181,14 @@ var ClipSchema = object({
20181
20181
  endMs: number()
20182
20182
  }),
20183
20183
  /**
20184
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20185
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20186
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20187
+ * did not. Absent (never empty) when the visit attached no classified object
20188
+ * event, so a motion/audio-only visit keeps its kind label.
20189
+ */
20190
+ labels: array(string()).max(3).optional(),
20191
+ /**
20184
20192
  * Lazy thumbnail URL, never inlined.
20185
20193
  *
20186
20194
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24515,9 +24523,21 @@ var RecordingLocationUsageSchema = object({
24515
24523
  * previously rendered as two identical "disks" with a nonsensical used
24516
24524
  * split — hydrate attribution across aliases is arbitrary by nature. */
24517
24525
  locationIds: array(string()).optional(),
24518
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24526
+ /**
24527
+ * Filesystem root of the physical volume this row accounts — the only
24528
+ * operator-legible identity when a location has no `displayName` yet, and
24529
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24530
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24531
+ * it, and this schema must keep validating that older provider's payload.
24532
+ */
24533
+ root: string().optional(),
24534
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24535
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24536
+ * also holds everything that is not recordings. Volume fill is
24537
+ * `(totalBytes - availableBytes) / totalBytes`. */
24519
24538
  usedBytes: number(),
24520
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24539
+ /** Free bytes on the location's volume; null when capacity is unknown
24540
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24521
24541
  availableBytes: number().nullable(),
24522
24542
  /** Total bytes of the location's volume; null when unknown. */
24523
24543
  totalBytes: number().nullable()
@@ -24529,7 +24549,15 @@ var RecordingStorageUsageSchema = object({
24529
24549
  nodeId: string(),
24530
24550
  totalUsedBytes: number(),
24531
24551
  devices: array(RecordingDeviceUsageSchema),
24532
- locations: array(RecordingLocationUsageSchema)
24552
+ /**
24553
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24554
+ * of the payload without it: the hub serves this method through a BAKED
24555
+ * router, so a hub whose framework train predates a change to this array
24556
+ * strips it out of an answer a newer recorder happily produced. A UI that
24557
+ * dereferences it unconditionally crashes the whole Storage page over a
24558
+ * missing disk bar.
24559
+ */
24560
+ locations: array(RecordingLocationUsageSchema).optional()
24533
24561
  });
24534
24562
  /**
24535
24563
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33645,8 +33673,14 @@ Object.freeze({
33645
33673
  "network-access": "ingress",
33646
33674
  "smtp-provider": "email"
33647
33675
  });
33676
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33677
+ var NC_AUDIO_DEFAULTS = {
33678
+ hitPercent: 60,
33679
+ samplingSeconds: 10
33680
+ };
33648
33681
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33649
33682
  new Set(["devices", "classes"]);
33683
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33650
33684
  /**
33651
33685
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33652
33686
  *
@@ -20154,6 +20154,14 @@ var ClipSchema = object({
20154
20154
  endMs: number()
20155
20155
  }),
20156
20156
  /**
20157
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20158
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20159
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20160
+ * did not. Absent (never empty) when the visit attached no classified object
20161
+ * event, so a motion/audio-only visit keeps its kind label.
20162
+ */
20163
+ labels: array(string()).max(3).optional(),
20164
+ /**
20157
20165
  * Lazy thumbnail URL, never inlined.
20158
20166
  *
20159
20167
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24488,9 +24496,21 @@ var RecordingLocationUsageSchema = object({
24488
24496
  * previously rendered as two identical "disks" with a nonsensical used
24489
24497
  * split — hydrate attribution across aliases is arbitrary by nature. */
24490
24498
  locationIds: array(string()).optional(),
24491
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24499
+ /**
24500
+ * Filesystem root of the physical volume this row accounts — the only
24501
+ * operator-legible identity when a location has no `displayName` yet, and
24502
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24503
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24504
+ * it, and this schema must keep validating that older provider's payload.
24505
+ */
24506
+ root: string().optional(),
24507
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24508
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24509
+ * also holds everything that is not recordings. Volume fill is
24510
+ * `(totalBytes - availableBytes) / totalBytes`. */
24492
24511
  usedBytes: number(),
24493
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24512
+ /** Free bytes on the location's volume; null when capacity is unknown
24513
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24494
24514
  availableBytes: number().nullable(),
24495
24515
  /** Total bytes of the location's volume; null when unknown. */
24496
24516
  totalBytes: number().nullable()
@@ -24502,7 +24522,15 @@ var RecordingStorageUsageSchema = object({
24502
24522
  nodeId: string(),
24503
24523
  totalUsedBytes: number(),
24504
24524
  devices: array(RecordingDeviceUsageSchema),
24505
- locations: array(RecordingLocationUsageSchema)
24525
+ /**
24526
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24527
+ * of the payload without it: the hub serves this method through a BAKED
24528
+ * router, so a hub whose framework train predates a change to this array
24529
+ * strips it out of an answer a newer recorder happily produced. A UI that
24530
+ * dereferences it unconditionally crashes the whole Storage page over a
24531
+ * missing disk bar.
24532
+ */
24533
+ locations: array(RecordingLocationUsageSchema).optional()
24506
24534
  });
24507
24535
  /**
24508
24536
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33618,8 +33646,14 @@ Object.freeze({
33618
33646
  "network-access": "ingress",
33619
33647
  "smtp-provider": "email"
33620
33648
  });
33649
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33650
+ var NC_AUDIO_DEFAULTS = {
33651
+ hitPercent: 60,
33652
+ samplingSeconds: 10
33653
+ };
33621
33654
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33622
33655
  new Set(["devices", "classes"]);
33656
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33623
33657
  /**
33624
33658
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33625
33659
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",