@camstack/addon-provider-rademacher 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
@@ -21207,6 +21207,14 @@ var ClipSchema = object({
21207
21207
  endMs: number()
21208
21208
  }),
21209
21209
  /**
21210
+ * Distinct object classes attached to this visit (`person`, `car`, …),
21211
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
21212
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
21213
+ * did not. Absent (never empty) when the visit attached no classified object
21214
+ * event, so a motion/audio-only visit keeps its kind label.
21215
+ */
21216
+ labels: array(string()).max(3).optional(),
21217
+ /**
21210
21218
  * Lazy thumbnail URL, never inlined.
21211
21219
  *
21212
21220
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -27229,9 +27237,21 @@ var RecordingLocationUsageSchema = object({
27229
27237
  * previously rendered as two identical "disks" with a nonsensical used
27230
27238
  * split — hydrate attribution across aliases is arbitrary by nature. */
27231
27239
  locationIds: array(string()).optional(),
27232
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
27240
+ /**
27241
+ * Filesystem root of the physical volume this row accounts — the only
27242
+ * operator-legible identity when a location has no `displayName` yet, and
27243
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
27244
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
27245
+ * it, and this schema must keep validating that older provider's payload.
27246
+ */
27247
+ root: string().optional(),
27248
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
27249
+ * the footage's SHARE of the volume, not how full the volume is — the disk
27250
+ * also holds everything that is not recordings. Volume fill is
27251
+ * `(totalBytes - availableBytes) / totalBytes`. */
27233
27252
  usedBytes: number(),
27234
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
27253
+ /** Free bytes on the location's volume; null when capacity is unknown
27254
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
27235
27255
  availableBytes: number().nullable(),
27236
27256
  /** Total bytes of the location's volume; null when unknown. */
27237
27257
  totalBytes: number().nullable()
@@ -27243,7 +27263,15 @@ var RecordingStorageUsageSchema = object({
27243
27263
  nodeId: string(),
27244
27264
  totalUsedBytes: number(),
27245
27265
  devices: array(RecordingDeviceUsageSchema),
27246
- locations: array(RecordingLocationUsageSchema)
27266
+ /**
27267
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27268
+ * of the payload without it: the hub serves this method through a BAKED
27269
+ * router, so a hub whose framework train predates a change to this array
27270
+ * strips it out of an answer a newer recorder happily produced. A UI that
27271
+ * dereferences it unconditionally crashes the whole Storage page over a
27272
+ * missing disk bar.
27273
+ */
27274
+ locations: array(RecordingLocationUsageSchema).optional()
27247
27275
  });
27248
27276
  /**
27249
27277
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -38028,8 +38056,14 @@ Object.freeze({
38028
38056
  "network-access": "ingress",
38029
38057
  "smtp-provider": "email"
38030
38058
  });
38059
+ /** Schema defaults — an untouched sub-field must author exactly these. */
38060
+ var NC_AUDIO_DEFAULTS = {
38061
+ hitPercent: 60,
38062
+ samplingSeconds: 10
38063
+ };
38031
38064
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
38032
38065
  new Set(["devices", "classes"]);
38066
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
38033
38067
  /**
38034
38068
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
38035
38069
  *
package/dist/addon.mjs CHANGED
@@ -21206,6 +21206,14 @@ var ClipSchema = object({
21206
21206
  endMs: number()
21207
21207
  }),
21208
21208
  /**
21209
+ * Distinct object classes attached to this visit (`person`, `car`, …),
21210
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
21211
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
21212
+ * did not. Absent (never empty) when the visit attached no classified object
21213
+ * event, so a motion/audio-only visit keeps its kind label.
21214
+ */
21215
+ labels: array(string()).max(3).optional(),
21216
+ /**
21209
21217
  * Lazy thumbnail URL, never inlined.
21210
21218
  *
21211
21219
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -27228,9 +27236,21 @@ var RecordingLocationUsageSchema = object({
27228
27236
  * previously rendered as two identical "disks" with a nonsensical used
27229
27237
  * split — hydrate attribution across aliases is arbitrary by nature. */
27230
27238
  locationIds: array(string()).optional(),
27231
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
27239
+ /**
27240
+ * Filesystem root of the physical volume this row accounts — the only
27241
+ * operator-legible identity when a location has no `displayName` yet, and
27242
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
27243
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
27244
+ * it, and this schema must keep validating that older provider's payload.
27245
+ */
27246
+ root: string().optional(),
27247
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
27248
+ * the footage's SHARE of the volume, not how full the volume is — the disk
27249
+ * also holds everything that is not recordings. Volume fill is
27250
+ * `(totalBytes - availableBytes) / totalBytes`. */
27232
27251
  usedBytes: number(),
27233
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
27252
+ /** Free bytes on the location's volume; null when capacity is unknown
27253
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
27234
27254
  availableBytes: number().nullable(),
27235
27255
  /** Total bytes of the location's volume; null when unknown. */
27236
27256
  totalBytes: number().nullable()
@@ -27242,7 +27262,15 @@ var RecordingStorageUsageSchema = object({
27242
27262
  nodeId: string(),
27243
27263
  totalUsedBytes: number(),
27244
27264
  devices: array(RecordingDeviceUsageSchema),
27245
- locations: array(RecordingLocationUsageSchema)
27265
+ /**
27266
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27267
+ * of the payload without it: the hub serves this method through a BAKED
27268
+ * router, so a hub whose framework train predates a change to this array
27269
+ * strips it out of an answer a newer recorder happily produced. A UI that
27270
+ * dereferences it unconditionally crashes the whole Storage page over a
27271
+ * missing disk bar.
27272
+ */
27273
+ locations: array(RecordingLocationUsageSchema).optional()
27246
27274
  });
27247
27275
  /**
27248
27276
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -38027,8 +38055,14 @@ Object.freeze({
38027
38055
  "network-access": "ingress",
38028
38056
  "smtp-provider": "email"
38029
38057
  });
38058
+ /** Schema defaults — an untouched sub-field must author exactly these. */
38059
+ var NC_AUDIO_DEFAULTS = {
38060
+ hitPercent: 60,
38061
+ samplingSeconds: 10
38062
+ };
38030
38063
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
38031
38064
  new Set(["devices", "classes"]);
38065
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
38032
38066
  /**
38033
38067
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
38034
38068
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rademacher",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",