@camstack/addon-mqtt-broker 1.2.21 → 1.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.
@@ -19977,6 +19977,14 @@ var ClipSchema = object({
19977
19977
  endMs: number()
19978
19978
  }),
19979
19979
  /**
19980
+ * Distinct object classes attached to this visit (`person`, `car`, …),
19981
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
19982
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
19983
+ * did not. Absent (never empty) when the visit attached no classified object
19984
+ * event, so a motion/audio-only visit keeps its kind label.
19985
+ */
19986
+ labels: array(string()).max(3).optional(),
19987
+ /**
19980
19988
  * Lazy thumbnail URL, never inlined.
19981
19989
  *
19982
19990
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24311,9 +24319,21 @@ var RecordingLocationUsageSchema = object({
24311
24319
  * previously rendered as two identical "disks" with a nonsensical used
24312
24320
  * split — hydrate attribution across aliases is arbitrary by nature. */
24313
24321
  locationIds: array(string()).optional(),
24314
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24322
+ /**
24323
+ * Filesystem root of the physical volume this row accounts — the only
24324
+ * operator-legible identity when a location has no `displayName` yet, and
24325
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24326
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24327
+ * it, and this schema must keep validating that older provider's payload.
24328
+ */
24329
+ root: string().optional(),
24330
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24331
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24332
+ * also holds everything that is not recordings. Volume fill is
24333
+ * `(totalBytes - availableBytes) / totalBytes`. */
24315
24334
  usedBytes: number(),
24316
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24335
+ /** Free bytes on the location's volume; null when capacity is unknown
24336
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24317
24337
  availableBytes: number().nullable(),
24318
24338
  /** Total bytes of the location's volume; null when unknown. */
24319
24339
  totalBytes: number().nullable()
@@ -24325,7 +24345,15 @@ var RecordingStorageUsageSchema = object({
24325
24345
  nodeId: string(),
24326
24346
  totalUsedBytes: number(),
24327
24347
  devices: array(RecordingDeviceUsageSchema),
24328
- locations: array(RecordingLocationUsageSchema)
24348
+ /**
24349
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24350
+ * of the payload without it: the hub serves this method through a BAKED
24351
+ * router, so a hub whose framework train predates a change to this array
24352
+ * strips it out of an answer a newer recorder happily produced. A UI that
24353
+ * dereferences it unconditionally crashes the whole Storage page over a
24354
+ * missing disk bar.
24355
+ */
24356
+ locations: array(RecordingLocationUsageSchema).optional()
24329
24357
  });
24330
24358
  /**
24331
24359
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33441,8 +33469,14 @@ Object.freeze({
33441
33469
  "network-access": "ingress",
33442
33470
  "smtp-provider": "email"
33443
33471
  });
33472
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33473
+ var NC_AUDIO_DEFAULTS = {
33474
+ hitPercent: 60,
33475
+ samplingSeconds: 10
33476
+ };
33444
33477
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33445
33478
  new Set(["devices", "classes"]);
33479
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33446
33480
  /**
33447
33481
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33448
33482
  *
@@ -19972,6 +19972,14 @@ var ClipSchema = object({
19972
19972
  endMs: number()
19973
19973
  }),
19974
19974
  /**
19975
+ * Distinct object classes attached to this visit (`person`, `car`, …),
19976
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
19977
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
19978
+ * did not. Absent (never empty) when the visit attached no classified object
19979
+ * event, so a motion/audio-only visit keeps its kind label.
19980
+ */
19981
+ labels: array(string()).max(3).optional(),
19982
+ /**
19975
19983
  * Lazy thumbnail URL, never inlined.
19976
19984
  *
19977
19985
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24306,9 +24314,21 @@ var RecordingLocationUsageSchema = object({
24306
24314
  * previously rendered as two identical "disks" with a nonsensical used
24307
24315
  * split — hydrate attribution across aliases is arbitrary by nature. */
24308
24316
  locationIds: array(string()).optional(),
24309
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24317
+ /**
24318
+ * Filesystem root of the physical volume this row accounts — the only
24319
+ * operator-legible identity when a location has no `displayName` yet, and
24320
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24321
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24322
+ * it, and this schema must keep validating that older provider's payload.
24323
+ */
24324
+ root: string().optional(),
24325
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24326
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24327
+ * also holds everything that is not recordings. Volume fill is
24328
+ * `(totalBytes - availableBytes) / totalBytes`. */
24310
24329
  usedBytes: number(),
24311
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24330
+ /** Free bytes on the location's volume; null when capacity is unknown
24331
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24312
24332
  availableBytes: number().nullable(),
24313
24333
  /** Total bytes of the location's volume; null when unknown. */
24314
24334
  totalBytes: number().nullable()
@@ -24320,7 +24340,15 @@ var RecordingStorageUsageSchema = object({
24320
24340
  nodeId: string(),
24321
24341
  totalUsedBytes: number(),
24322
24342
  devices: array(RecordingDeviceUsageSchema),
24323
- locations: array(RecordingLocationUsageSchema)
24343
+ /**
24344
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24345
+ * of the payload without it: the hub serves this method through a BAKED
24346
+ * router, so a hub whose framework train predates a change to this array
24347
+ * strips it out of an answer a newer recorder happily produced. A UI that
24348
+ * dereferences it unconditionally crashes the whole Storage page over a
24349
+ * missing disk bar.
24350
+ */
24351
+ locations: array(RecordingLocationUsageSchema).optional()
24324
24352
  });
24325
24353
  /**
24326
24354
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33436,8 +33464,14 @@ Object.freeze({
33436
33464
  "network-access": "ingress",
33437
33465
  "smtp-provider": "email"
33438
33466
  });
33467
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33468
+ var NC_AUDIO_DEFAULTS = {
33469
+ hitPercent: 60,
33470
+ samplingSeconds: 10
33471
+ };
33439
33472
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33440
33473
  new Set(["devices", "classes"]);
33474
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33441
33475
  /**
33442
33476
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33443
33477
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.21",
3
+ "version": "1.2.23",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",