@camstack/addon-provider-hikvision 1.1.12 → 1.1.13

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
@@ -7219,7 +7219,21 @@ var StorageLocationDeclarationSchema = object({
7219
7219
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
7220
7220
  * configure the primary location.
7221
7221
  */
7222
- defaultsTo: string().optional()
7222
+ defaultsTo: string().optional(),
7223
+ /**
7224
+ * Which node root the seeded `<id>:default` instance is placed under on a
7225
+ * FRESH install:
7226
+ * - `'data'` (default) — the node's data dir (`CAMSTACK_DATA` / boot dir),
7227
+ * the appData volume. Right for small/durable data (backups, logs, models).
7228
+ * - `'media'` — the dedicated media volume (`CAMSTACK_MEDIA_ROOT`) when that
7229
+ * env is set, else falls back to the data root. Right for bulky, hot media
7230
+ * (recordings, event media) that should stay off the appData disk.
7231
+ *
7232
+ * Only affects the seeded default's `basePath`; operators can repoint any
7233
+ * location afterwards, and a `defaultsTo` slot inherits its parent's root
7234
+ * regardless of this field. Absent (the common case) is treated as `'data'`.
7235
+ */
7236
+ defaultRoot: _enum(["data", "media"]).optional()
7223
7237
  });
7224
7238
  var DecoderStatsSchema = object({
7225
7239
  inputFps: number(),
@@ -8614,6 +8628,10 @@ var RtspRestreamEntrySchema = object({
8614
8628
  var BrokerRtspClientSchema = object({
8615
8629
  sessionId: string(),
8616
8630
  remoteAddr: string(),
8631
+ /** Client `User-Agent` (e.g. `recorder` for the recorder's RTSP pull), or
8632
+ * null/absent when the client sent none. Lets the UI label a consumer by
8633
+ * purpose. Optional so a client built against an older schema stays valid. */
8634
+ userAgent: string().nullish(),
8617
8635
  playing: boolean(),
8618
8636
  muted: boolean(),
8619
8637
  connectedAt: number(),
@@ -28980,7 +28998,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
28980
28998
  */
28981
28999
  resolveAudioCodecApi() {
28982
29000
  const router = this.ctx.api.audioCodec;
28983
- if (!router) throw new Error("Hikvision intercom: `audio-codec` capability is not mounted. Install + enable the `addon-audio-codec-nodeav` addon (or any other addon that provides the `audio-codec` capability) before opening a talk session.");
29001
+ if (!router) throw new Error("Hikvision intercom: `audio-codec` capability is not mounted. Install + enable the `addon-audio-codec-ffmpeg` addon (or any other addon that provides the `audio-codec` capability) before opening a talk session.");
28984
29002
  return {
28985
29003
  createDecodeSession: (input) => router.createDecodeSession.mutate(input),
28986
29004
  pushEncodedFrame: (input) => router.pushEncodedFrame.mutate(input),
package/dist/addon.mjs CHANGED
@@ -7220,7 +7220,21 @@ var StorageLocationDeclarationSchema = object({
7220
7220
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
7221
7221
  * configure the primary location.
7222
7222
  */
7223
- defaultsTo: string().optional()
7223
+ defaultsTo: string().optional(),
7224
+ /**
7225
+ * Which node root the seeded `<id>:default` instance is placed under on a
7226
+ * FRESH install:
7227
+ * - `'data'` (default) — the node's data dir (`CAMSTACK_DATA` / boot dir),
7228
+ * the appData volume. Right for small/durable data (backups, logs, models).
7229
+ * - `'media'` — the dedicated media volume (`CAMSTACK_MEDIA_ROOT`) when that
7230
+ * env is set, else falls back to the data root. Right for bulky, hot media
7231
+ * (recordings, event media) that should stay off the appData disk.
7232
+ *
7233
+ * Only affects the seeded default's `basePath`; operators can repoint any
7234
+ * location afterwards, and a `defaultsTo` slot inherits its parent's root
7235
+ * regardless of this field. Absent (the common case) is treated as `'data'`.
7236
+ */
7237
+ defaultRoot: _enum(["data", "media"]).optional()
7224
7238
  });
7225
7239
  var DecoderStatsSchema = object({
7226
7240
  inputFps: number(),
@@ -8615,6 +8629,10 @@ var RtspRestreamEntrySchema = object({
8615
8629
  var BrokerRtspClientSchema = object({
8616
8630
  sessionId: string(),
8617
8631
  remoteAddr: string(),
8632
+ /** Client `User-Agent` (e.g. `recorder` for the recorder's RTSP pull), or
8633
+ * null/absent when the client sent none. Lets the UI label a consumer by
8634
+ * purpose. Optional so a client built against an older schema stays valid. */
8635
+ userAgent: string().nullish(),
8618
8636
  playing: boolean(),
8619
8637
  muted: boolean(),
8620
8638
  connectedAt: number(),
@@ -28981,7 +28999,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
28981
28999
  */
28982
29000
  resolveAudioCodecApi() {
28983
29001
  const router = this.ctx.api.audioCodec;
28984
- if (!router) throw new Error("Hikvision intercom: `audio-codec` capability is not mounted. Install + enable the `addon-audio-codec-nodeav` addon (or any other addon that provides the `audio-codec` capability) before opening a talk session.");
29002
+ if (!router) throw new Error("Hikvision intercom: `audio-codec` capability is not mounted. Install + enable the `addon-audio-codec-ffmpeg` addon (or any other addon that provides the `audio-codec` capability) before opening a talk session.");
28985
29003
  return {
28986
29004
  createDecodeSession: (input) => router.createDecodeSession.mutate(input),
28987
29005
  pushEncodedFrame: (input) => router.pushEncodedFrame.mutate(input),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
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",