@camstack/addon-provider-wyze 0.2.24 → 0.2.26

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
@@ -20375,6 +20375,14 @@ var ClipSchema = object({
20375
20375
  endMs: number()
20376
20376
  }),
20377
20377
  /**
20378
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20379
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20380
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20381
+ * did not. Absent (never empty) when the visit attached no classified object
20382
+ * event, so a motion/audio-only visit keeps its kind label.
20383
+ */
20384
+ labels: array(string()).max(3).optional(),
20385
+ /**
20378
20386
  * Lazy thumbnail URL, never inlined.
20379
20387
  *
20380
20388
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26405,9 +26413,21 @@ var RecordingLocationUsageSchema = object({
26405
26413
  * previously rendered as two identical "disks" with a nonsensical used
26406
26414
  * split — hydrate attribution across aliases is arbitrary by nature. */
26407
26415
  locationIds: array(string()).optional(),
26408
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26416
+ /**
26417
+ * Filesystem root of the physical volume this row accounts — the only
26418
+ * operator-legible identity when a location has no `displayName` yet, and
26419
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26420
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26421
+ * it, and this schema must keep validating that older provider's payload.
26422
+ */
26423
+ root: string().optional(),
26424
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26425
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26426
+ * also holds everything that is not recordings. Volume fill is
26427
+ * `(totalBytes - availableBytes) / totalBytes`. */
26409
26428
  usedBytes: number(),
26410
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26429
+ /** Free bytes on the location's volume; null when capacity is unknown
26430
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26411
26431
  availableBytes: number().nullable(),
26412
26432
  /** Total bytes of the location's volume; null when unknown. */
26413
26433
  totalBytes: number().nullable()
@@ -26419,7 +26439,15 @@ var RecordingStorageUsageSchema = object({
26419
26439
  nodeId: string(),
26420
26440
  totalUsedBytes: number(),
26421
26441
  devices: array(RecordingDeviceUsageSchema),
26422
- locations: array(RecordingLocationUsageSchema)
26442
+ /**
26443
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26444
+ * of the payload without it: the hub serves this method through a BAKED
26445
+ * router, so a hub whose framework train predates a change to this array
26446
+ * strips it out of an answer a newer recorder happily produced. A UI that
26447
+ * dereferences it unconditionally crashes the whole Storage page over a
26448
+ * missing disk bar.
26449
+ */
26450
+ locations: array(RecordingLocationUsageSchema).optional()
26423
26451
  });
26424
26452
  /**
26425
26453
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37204,8 +37232,14 @@ Object.freeze({
37204
37232
  "network-access": "ingress",
37205
37233
  "smtp-provider": "email"
37206
37234
  });
37235
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37236
+ var NC_AUDIO_DEFAULTS = {
37237
+ hitPercent: 60,
37238
+ samplingSeconds: 10
37239
+ };
37207
37240
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37208
37241
  new Set(["devices", "classes"]);
37242
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37209
37243
  /**
37210
37244
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37211
37245
  *
package/dist/addon.mjs CHANGED
@@ -20354,6 +20354,14 @@ var ClipSchema = object({
20354
20354
  endMs: number()
20355
20355
  }),
20356
20356
  /**
20357
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20358
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20359
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20360
+ * did not. Absent (never empty) when the visit attached no classified object
20361
+ * event, so a motion/audio-only visit keeps its kind label.
20362
+ */
20363
+ labels: array(string()).max(3).optional(),
20364
+ /**
20357
20365
  * Lazy thumbnail URL, never inlined.
20358
20366
  *
20359
20367
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26384,9 +26392,21 @@ var RecordingLocationUsageSchema = object({
26384
26392
  * previously rendered as two identical "disks" with a nonsensical used
26385
26393
  * split — hydrate attribution across aliases is arbitrary by nature. */
26386
26394
  locationIds: array(string()).optional(),
26387
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26395
+ /**
26396
+ * Filesystem root of the physical volume this row accounts — the only
26397
+ * operator-legible identity when a location has no `displayName` yet, and
26398
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26399
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26400
+ * it, and this schema must keep validating that older provider's payload.
26401
+ */
26402
+ root: string().optional(),
26403
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26404
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26405
+ * also holds everything that is not recordings. Volume fill is
26406
+ * `(totalBytes - availableBytes) / totalBytes`. */
26388
26407
  usedBytes: number(),
26389
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26408
+ /** Free bytes on the location's volume; null when capacity is unknown
26409
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26390
26410
  availableBytes: number().nullable(),
26391
26411
  /** Total bytes of the location's volume; null when unknown. */
26392
26412
  totalBytes: number().nullable()
@@ -26398,7 +26418,15 @@ var RecordingStorageUsageSchema = object({
26398
26418
  nodeId: string(),
26399
26419
  totalUsedBytes: number(),
26400
26420
  devices: array(RecordingDeviceUsageSchema),
26401
- locations: array(RecordingLocationUsageSchema)
26421
+ /**
26422
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26423
+ * of the payload without it: the hub serves this method through a BAKED
26424
+ * router, so a hub whose framework train predates a change to this array
26425
+ * strips it out of an answer a newer recorder happily produced. A UI that
26426
+ * dereferences it unconditionally crashes the whole Storage page over a
26427
+ * missing disk bar.
26428
+ */
26429
+ locations: array(RecordingLocationUsageSchema).optional()
26402
26430
  });
26403
26431
  /**
26404
26432
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37183,8 +37211,14 @@ Object.freeze({
37183
37211
  "network-access": "ingress",
37184
37212
  "smtp-provider": "email"
37185
37213
  });
37214
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37215
+ var NC_AUDIO_DEFAULTS = {
37216
+ hitPercent: 60,
37217
+ samplingSeconds: 10
37218
+ };
37186
37219
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37187
37220
  new Set(["devices", "classes"]);
37221
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37188
37222
  /**
37189
37223
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37190
37224
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",