@camstack/addon-provider-hikvision 1.2.29 → 1.2.30

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
@@ -26671,9 +26671,21 @@ var RecordingLocationUsageSchema = object({
26671
26671
  * previously rendered as two identical "disks" with a nonsensical used
26672
26672
  * split — hydrate attribution across aliases is arbitrary by nature. */
26673
26673
  locationIds: array(string()).optional(),
26674
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26674
+ /**
26675
+ * Filesystem root of the physical volume this row accounts — the only
26676
+ * operator-legible identity when a location has no `displayName` yet, and
26677
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26678
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26679
+ * it, and this schema must keep validating that older provider's payload.
26680
+ */
26681
+ root: string().optional(),
26682
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26683
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26684
+ * also holds everything that is not recordings. Volume fill is
26685
+ * `(totalBytes - availableBytes) / totalBytes`. */
26675
26686
  usedBytes: number(),
26676
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26687
+ /** Free bytes on the location's volume; null when capacity is unknown
26688
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26677
26689
  availableBytes: number().nullable(),
26678
26690
  /** Total bytes of the location's volume; null when unknown. */
26679
26691
  totalBytes: number().nullable()
@@ -26685,7 +26697,15 @@ var RecordingStorageUsageSchema = object({
26685
26697
  nodeId: string(),
26686
26698
  totalUsedBytes: number(),
26687
26699
  devices: array(RecordingDeviceUsageSchema),
26688
- locations: array(RecordingLocationUsageSchema)
26700
+ /**
26701
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26702
+ * of the payload without it: the hub serves this method through a BAKED
26703
+ * router, so a hub whose framework train predates a change to this array
26704
+ * strips it out of an answer a newer recorder happily produced. A UI that
26705
+ * dereferences it unconditionally crashes the whole Storage page over a
26706
+ * missing disk bar.
26707
+ */
26708
+ locations: array(RecordingLocationUsageSchema).optional()
26689
26709
  });
26690
26710
  /**
26691
26711
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37814,8 +37834,14 @@ Object.freeze({
37814
37834
  "network-access": "ingress",
37815
37835
  "smtp-provider": "email"
37816
37836
  });
37837
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37838
+ var NC_AUDIO_DEFAULTS = {
37839
+ hitPercent: 60,
37840
+ samplingSeconds: 10
37841
+ };
37817
37842
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37818
37843
  new Set(["devices", "classes"]);
37844
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37819
37845
  /**
37820
37846
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37821
37847
  *
package/dist/addon.mjs CHANGED
@@ -26672,9 +26672,21 @@ var RecordingLocationUsageSchema = object({
26672
26672
  * previously rendered as two identical "disks" with a nonsensical used
26673
26673
  * split — hydrate attribution across aliases is arbitrary by nature. */
26674
26674
  locationIds: array(string()).optional(),
26675
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26675
+ /**
26676
+ * Filesystem root of the physical volume this row accounts — the only
26677
+ * operator-legible identity when a location has no `displayName` yet, and
26678
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26679
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26680
+ * it, and this schema must keep validating that older provider's payload.
26681
+ */
26682
+ root: string().optional(),
26683
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26684
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26685
+ * also holds everything that is not recordings. Volume fill is
26686
+ * `(totalBytes - availableBytes) / totalBytes`. */
26676
26687
  usedBytes: number(),
26677
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26688
+ /** Free bytes on the location's volume; null when capacity is unknown
26689
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26678
26690
  availableBytes: number().nullable(),
26679
26691
  /** Total bytes of the location's volume; null when unknown. */
26680
26692
  totalBytes: number().nullable()
@@ -26686,7 +26698,15 @@ var RecordingStorageUsageSchema = object({
26686
26698
  nodeId: string(),
26687
26699
  totalUsedBytes: number(),
26688
26700
  devices: array(RecordingDeviceUsageSchema),
26689
- locations: array(RecordingLocationUsageSchema)
26701
+ /**
26702
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26703
+ * of the payload without it: the hub serves this method through a BAKED
26704
+ * router, so a hub whose framework train predates a change to this array
26705
+ * strips it out of an answer a newer recorder happily produced. A UI that
26706
+ * dereferences it unconditionally crashes the whole Storage page over a
26707
+ * missing disk bar.
26708
+ */
26709
+ locations: array(RecordingLocationUsageSchema).optional()
26690
26710
  });
26691
26711
  /**
26692
26712
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37815,8 +37835,14 @@ Object.freeze({
37815
37835
  "network-access": "ingress",
37816
37836
  "smtp-provider": "email"
37817
37837
  });
37838
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37839
+ var NC_AUDIO_DEFAULTS = {
37840
+ hitPercent: 60,
37841
+ samplingSeconds: 10
37842
+ };
37818
37843
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37819
37844
  new Set(["devices", "classes"]);
37845
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37820
37846
  /**
37821
37847
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37822
37848
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.29",
3
+ "version": "1.2.30",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",