@camstack/addon-provider-hikvision 1.2.28 → 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
@@ -20508,6 +20508,14 @@ var ClipSchema = object({
20508
20508
  endMs: number()
20509
20509
  }),
20510
20510
  /**
20511
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20512
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20513
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20514
+ * did not. Absent (never empty) when the visit attached no classified object
20515
+ * event, so a motion/audio-only visit keeps its kind label.
20516
+ */
20517
+ labels: array(string()).max(3).optional(),
20518
+ /**
20511
20519
  * Lazy thumbnail URL, never inlined.
20512
20520
  *
20513
20521
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26663,9 +26671,21 @@ var RecordingLocationUsageSchema = object({
26663
26671
  * previously rendered as two identical "disks" with a nonsensical used
26664
26672
  * split — hydrate attribution across aliases is arbitrary by nature. */
26665
26673
  locationIds: array(string()).optional(),
26666
- /** 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`. */
26667
26686
  usedBytes: number(),
26668
- /** 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). */
26669
26689
  availableBytes: number().nullable(),
26670
26690
  /** Total bytes of the location's volume; null when unknown. */
26671
26691
  totalBytes: number().nullable()
@@ -26677,7 +26697,15 @@ var RecordingStorageUsageSchema = object({
26677
26697
  nodeId: string(),
26678
26698
  totalUsedBytes: number(),
26679
26699
  devices: array(RecordingDeviceUsageSchema),
26680
- 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()
26681
26709
  });
26682
26710
  /**
26683
26711
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37806,8 +37834,14 @@ Object.freeze({
37806
37834
  "network-access": "ingress",
37807
37835
  "smtp-provider": "email"
37808
37836
  });
37837
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37838
+ var NC_AUDIO_DEFAULTS = {
37839
+ hitPercent: 60,
37840
+ samplingSeconds: 10
37841
+ };
37809
37842
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37810
37843
  new Set(["devices", "classes"]);
37844
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37811
37845
  /**
37812
37846
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37813
37847
  *
package/dist/addon.mjs CHANGED
@@ -20509,6 +20509,14 @@ var ClipSchema = object({
20509
20509
  endMs: number()
20510
20510
  }),
20511
20511
  /**
20512
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20513
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20514
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20515
+ * did not. Absent (never empty) when the visit attached no classified object
20516
+ * event, so a motion/audio-only visit keeps its kind label.
20517
+ */
20518
+ labels: array(string()).max(3).optional(),
20519
+ /**
20512
20520
  * Lazy thumbnail URL, never inlined.
20513
20521
  *
20514
20522
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26664,9 +26672,21 @@ var RecordingLocationUsageSchema = object({
26664
26672
  * previously rendered as two identical "disks" with a nonsensical used
26665
26673
  * split — hydrate attribution across aliases is arbitrary by nature. */
26666
26674
  locationIds: array(string()).optional(),
26667
- /** 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`. */
26668
26687
  usedBytes: number(),
26669
- /** 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). */
26670
26690
  availableBytes: number().nullable(),
26671
26691
  /** Total bytes of the location's volume; null when unknown. */
26672
26692
  totalBytes: number().nullable()
@@ -26678,7 +26698,15 @@ var RecordingStorageUsageSchema = object({
26678
26698
  nodeId: string(),
26679
26699
  totalUsedBytes: number(),
26680
26700
  devices: array(RecordingDeviceUsageSchema),
26681
- 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()
26682
26710
  });
26683
26711
  /**
26684
26712
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37807,8 +37835,14 @@ Object.freeze({
37807
37835
  "network-access": "ingress",
37808
37836
  "smtp-provider": "email"
37809
37837
  });
37838
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37839
+ var NC_AUDIO_DEFAULTS = {
37840
+ hitPercent: 60,
37841
+ samplingSeconds: 10
37842
+ };
37810
37843
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37811
37844
  new Set(["devices", "classes"]);
37845
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37812
37846
  /**
37813
37847
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37814
37848
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.28",
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",