@camstack/addon-provider-dreo 0.2.21 → 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
@@ -20275,6 +20275,14 @@ var ClipSchema = object({
20275
20275
  endMs: number()
20276
20276
  }),
20277
20277
  /**
20278
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20279
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20280
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20281
+ * did not. Absent (never empty) when the visit attached no classified object
20282
+ * event, so a motion/audio-only visit keeps its kind label.
20283
+ */
20284
+ labels: array(string()).max(3).optional(),
20285
+ /**
20278
20286
  * Lazy thumbnail URL, never inlined.
20279
20287
  *
20280
20288
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26305,9 +26313,21 @@ var RecordingLocationUsageSchema = object({
26305
26313
  * previously rendered as two identical "disks" with a nonsensical used
26306
26314
  * split — hydrate attribution across aliases is arbitrary by nature. */
26307
26315
  locationIds: array(string()).optional(),
26308
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26316
+ /**
26317
+ * Filesystem root of the physical volume this row accounts — the only
26318
+ * operator-legible identity when a location has no `displayName` yet, and
26319
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26320
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26321
+ * it, and this schema must keep validating that older provider's payload.
26322
+ */
26323
+ root: string().optional(),
26324
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26325
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26326
+ * also holds everything that is not recordings. Volume fill is
26327
+ * `(totalBytes - availableBytes) / totalBytes`. */
26309
26328
  usedBytes: number(),
26310
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26329
+ /** Free bytes on the location's volume; null when capacity is unknown
26330
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26311
26331
  availableBytes: number().nullable(),
26312
26332
  /** Total bytes of the location's volume; null when unknown. */
26313
26333
  totalBytes: number().nullable()
@@ -26319,7 +26339,15 @@ var RecordingStorageUsageSchema = object({
26319
26339
  nodeId: string(),
26320
26340
  totalUsedBytes: number(),
26321
26341
  devices: array(RecordingDeviceUsageSchema),
26322
- locations: array(RecordingLocationUsageSchema)
26342
+ /**
26343
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26344
+ * of the payload without it: the hub serves this method through a BAKED
26345
+ * router, so a hub whose framework train predates a change to this array
26346
+ * strips it out of an answer a newer recorder happily produced. A UI that
26347
+ * dereferences it unconditionally crashes the whole Storage page over a
26348
+ * missing disk bar.
26349
+ */
26350
+ locations: array(RecordingLocationUsageSchema).optional()
26323
26351
  });
26324
26352
  /**
26325
26353
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37104,8 +37132,14 @@ Object.freeze({
37104
37132
  "network-access": "ingress",
37105
37133
  "smtp-provider": "email"
37106
37134
  });
37135
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37136
+ var NC_AUDIO_DEFAULTS = {
37137
+ hitPercent: 60,
37138
+ samplingSeconds: 10
37139
+ };
37107
37140
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37108
37141
  new Set(["devices", "classes"]);
37142
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37109
37143
  /**
37110
37144
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37111
37145
  *
package/dist/addon.mjs CHANGED
@@ -20276,6 +20276,14 @@ var ClipSchema = object({
20276
20276
  endMs: number()
20277
20277
  }),
20278
20278
  /**
20279
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20280
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20281
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20282
+ * did not. Absent (never empty) when the visit attached no classified object
20283
+ * event, so a motion/audio-only visit keeps its kind label.
20284
+ */
20285
+ labels: array(string()).max(3).optional(),
20286
+ /**
20279
20287
  * Lazy thumbnail URL, never inlined.
20280
20288
  *
20281
20289
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26306,9 +26314,21 @@ var RecordingLocationUsageSchema = object({
26306
26314
  * previously rendered as two identical "disks" with a nonsensical used
26307
26315
  * split — hydrate attribution across aliases is arbitrary by nature. */
26308
26316
  locationIds: array(string()).optional(),
26309
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26317
+ /**
26318
+ * Filesystem root of the physical volume this row accounts — the only
26319
+ * operator-legible identity when a location has no `displayName` yet, and
26320
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26321
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26322
+ * it, and this schema must keep validating that older provider's payload.
26323
+ */
26324
+ root: string().optional(),
26325
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26326
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26327
+ * also holds everything that is not recordings. Volume fill is
26328
+ * `(totalBytes - availableBytes) / totalBytes`. */
26310
26329
  usedBytes: number(),
26311
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26330
+ /** Free bytes on the location's volume; null when capacity is unknown
26331
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26312
26332
  availableBytes: number().nullable(),
26313
26333
  /** Total bytes of the location's volume; null when unknown. */
26314
26334
  totalBytes: number().nullable()
@@ -26320,7 +26340,15 @@ var RecordingStorageUsageSchema = object({
26320
26340
  nodeId: string(),
26321
26341
  totalUsedBytes: number(),
26322
26342
  devices: array(RecordingDeviceUsageSchema),
26323
- locations: array(RecordingLocationUsageSchema)
26343
+ /**
26344
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26345
+ * of the payload without it: the hub serves this method through a BAKED
26346
+ * router, so a hub whose framework train predates a change to this array
26347
+ * strips it out of an answer a newer recorder happily produced. A UI that
26348
+ * dereferences it unconditionally crashes the whole Storage page over a
26349
+ * missing disk bar.
26350
+ */
26351
+ locations: array(RecordingLocationUsageSchema).optional()
26324
26352
  });
26325
26353
  /**
26326
26354
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37105,8 +37133,14 @@ Object.freeze({
37105
37133
  "network-access": "ingress",
37106
37134
  "smtp-provider": "email"
37107
37135
  });
37136
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37137
+ var NC_AUDIO_DEFAULTS = {
37138
+ hitPercent: 60,
37139
+ samplingSeconds: 10
37140
+ };
37108
37141
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37109
37142
  new Set(["devices", "classes"]);
37143
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37110
37144
  /**
37111
37145
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37112
37146
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",