@camstack/addon-provider-hikvision 1.2.79 → 1.2.81

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
@@ -5413,6 +5413,12 @@ Object.fromEntries([
5413
5413
  icon: "move",
5414
5414
  order: 40
5415
5415
  },
5416
+ {
5417
+ id: "navigation",
5418
+ label: "Navigation",
5419
+ icon: "compass",
5420
+ order: 41
5421
+ },
5416
5422
  {
5417
5423
  id: "consumables",
5418
5424
  label: "Consumables",
@@ -6446,6 +6452,21 @@ var CameraStreamSchema = object({
6446
6452
  */
6447
6453
  autoEligible: boolean().optional(),
6448
6454
  /**
6455
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6456
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6457
+ * stream. Consulted by the broker's automatic ranking
6458
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6459
+ * an operator's manual assignment still wins, and an absent hint is the
6460
+ * pixel-ranked default every camera had before this field existed.
6461
+ *
6462
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6463
+ * storage class is written for on its own (`recordings` is high|mid,
6464
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6465
+ * camera's single 720p relay is a `low` in every respect except the slot the
6466
+ * heuristic put it in.
6467
+ */
6468
+ profileHint: CamProfileSchema.optional(),
6469
+ /**
6449
6470
  * Transport-specific opaque metadata. The broker passes it through to
6450
6471
  * the source reader without inspecting it. Currently used by
6451
6472
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7883,7 +7904,22 @@ var RecordingTriggersSchema = object({
7883
7904
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7884
7905
  * registrare.
7885
7906
  */
7886
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7907
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7908
+ /**
7909
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7910
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7911
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7912
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7913
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7914
+ *
7915
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7916
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7917
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7918
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7919
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7920
+ * (`holdTrigger` / `releaseTrigger`).
7921
+ */
7922
+ deviceSignal: boolean().optional()
7887
7923
  });
7888
7924
  /**
7889
7925
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11628,6 +11664,8 @@ method(object({
11628
11664
  label: string().optional(),
11629
11665
  deviceFeatures: array(string()).optional(),
11630
11666
  autoEligible: boolean().optional(),
11667
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11668
+ profileHint: CamProfileSchema.optional(),
11631
11669
  metadata: record(string(), unknown()).optional(),
11632
11670
  /** Required when kind === 'derived' — the source camStreamId the
11633
11671
  * derived broker reads its encoded plane from.
@@ -30421,6 +30459,77 @@ method(object({
30421
30459
  auth: "protected"
30422
30460
  });
30423
30461
  /**
30462
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
30463
+ * something it knows about is happening (a robot vacuum cleaning, a machine
30464
+ * running, a gate open) and lowers when it stops.
30465
+ *
30466
+ * It is a level, not an edge. The sensor triggers the recorder already listens
30467
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
30468
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
30469
+ * still happening" cannot be expressed as an edge plus a post-buffer without
30470
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
30471
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
30472
+ * which records the dock for that long after every short one. So the recorder
30473
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
30474
+ * own post-buffer once it falls.
30475
+ *
30476
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
30477
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
30478
+ * writes this slice on every change; consumers subscribe to the kernel's
30479
+ * `DeviceStateChanged` for it and read it back through
30480
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
30481
+ * against the device (D224, D8/D11).
30482
+ *
30483
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
30484
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
30485
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
30486
+ * about the camera, on the camera.
30487
+ */
30488
+ var RecordingSignalStatusSchema = object({
30489
+ /** True while the device asks to be recorded. */
30490
+ active: boolean(),
30491
+ /**
30492
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
30493
+ * …). Free text for the log line and the UI badge; the recorder never
30494
+ * branches on it.
30495
+ */
30496
+ reason: string(),
30497
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
30498
+ lastChangedAt: number()
30499
+ });
30500
+ /** The runtime-state slice: the status plus the clock every slice carries. */
30501
+ var RecordingSignalRuntimeStateSchema = RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
30502
+ var recordingSignalCapability = {
30503
+ name: "recording-signal",
30504
+ scope: "device",
30505
+ deviceNative: true,
30506
+ mode: "singleton",
30507
+ deviceTypes: [DeviceType.Camera],
30508
+ methods: {
30509
+ /** The current level, straight from the slice the provider keeps fresh. */
30510
+ getStatus: method(object({ deviceId: number() }), RecordingSignalStatusSchema) },
30511
+ status: {
30512
+ schema: RecordingSignalStatusSchema,
30513
+ kind: "push",
30514
+ empty: {
30515
+ active: false,
30516
+ reason: "unknown",
30517
+ lastChangedAt: 0
30518
+ }
30519
+ },
30520
+ runtimeState: RecordingSignalRuntimeStateSchema,
30521
+ /**
30522
+ * Runtime-state durability: **session** — a restored `active: true` from
30523
+ * before a restart is exactly the stale level the recorder's reconcile bound
30524
+ * exists to end, and the provider re-derives the true level on activation
30525
+ * anyway. Nothing is lost by forgetting it; a lie is avoided.
30526
+ *
30527
+ * See `RuntimeStateDurability`. Enforced by
30528
+ * `scripts/check-runtime-state-durability.ts`.
30529
+ */
30530
+ durability: "session"
30531
+ };
30532
+ /**
30424
30533
  * scene-monitor — device-scoped reference-region state cap. An operator marks
30425
30534
  * a rect ROI on a camera frame and names one or more states; the engine
30426
30535
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -30918,6 +31027,8 @@ var CamStreamDescriptorSchema = object({
30918
31027
  deviceFeatures: array(string()).optional(),
30919
31028
  /** Eligible for automatic profile assignment. Absent = `true`. */
30920
31029
  autoEligible: boolean().optional(),
31030
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
31031
+ profileHint: CamProfileSchema.optional(),
30921
31032
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
30922
31033
  metadata: record(string(), unknown()).optional()
30923
31034
  });
@@ -33270,6 +33381,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
33270
33381
  pressureSensor: pressureSensorCapability,
33271
33382
  privacyMask: privacyMaskCapability,
33272
33383
  ptzAutotrack: ptzAutotrackCapability,
33384
+ recordingSignal: recordingSignalCapability,
33273
33385
  sceneMonitor: sceneMonitorCapability,
33274
33386
  scriptRunner: scriptRunnerCapability,
33275
33387
  smoke: smokeCapability,
@@ -39235,6 +39347,12 @@ Object.freeze({
39235
39347
  addonId: null,
39236
39348
  access: "view"
39237
39349
  },
39350
+ "recordingSignal.getStatus": {
39351
+ capName: "recording-signal",
39352
+ capScope: "device",
39353
+ addonId: null,
39354
+ access: "view"
39355
+ },
39238
39356
  "sceneMonitor.captureReference": {
39239
39357
  capName: "scene-monitor",
39240
39358
  capScope: "device",
@@ -42227,6 +42345,11 @@ Object.freeze({
42227
42345
  form: "single",
42228
42346
  optional: true
42229
42347
  }],
42348
+ "recordingSignal.getStatus": [{
42349
+ name: "deviceId",
42350
+ form: "single",
42351
+ optional: false
42352
+ }],
42230
42353
  "sceneMonitor.captureReference": [{
42231
42354
  name: "deviceId",
42232
42355
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5414,6 +5414,12 @@ Object.fromEntries([
5414
5414
  icon: "move",
5415
5415
  order: 40
5416
5416
  },
5417
+ {
5418
+ id: "navigation",
5419
+ label: "Navigation",
5420
+ icon: "compass",
5421
+ order: 41
5422
+ },
5417
5423
  {
5418
5424
  id: "consumables",
5419
5425
  label: "Consumables",
@@ -6447,6 +6453,21 @@ var CameraStreamSchema = object({
6447
6453
  */
6448
6454
  autoEligible: boolean().optional(),
6449
6455
  /**
6456
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6457
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6458
+ * stream. Consulted by the broker's automatic ranking
6459
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6460
+ * an operator's manual assignment still wins, and an absent hint is the
6461
+ * pixel-ranked default every camera had before this field existed.
6462
+ *
6463
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6464
+ * storage class is written for on its own (`recordings` is high|mid,
6465
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6466
+ * camera's single 720p relay is a `low` in every respect except the slot the
6467
+ * heuristic put it in.
6468
+ */
6469
+ profileHint: CamProfileSchema.optional(),
6470
+ /**
6450
6471
  * Transport-specific opaque metadata. The broker passes it through to
6451
6472
  * the source reader without inspecting it. Currently used by
6452
6473
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7884,7 +7905,22 @@ var RecordingTriggersSchema = object({
7884
7905
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7885
7906
  * registrare.
7886
7907
  */
7887
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7908
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7909
+ /**
7910
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7911
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7912
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7913
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7914
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7915
+ *
7916
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7917
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7918
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7919
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7920
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7921
+ * (`holdTrigger` / `releaseTrigger`).
7922
+ */
7923
+ deviceSignal: boolean().optional()
7888
7924
  });
7889
7925
  /**
7890
7926
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11629,6 +11665,8 @@ method(object({
11629
11665
  label: string().optional(),
11630
11666
  deviceFeatures: array(string()).optional(),
11631
11667
  autoEligible: boolean().optional(),
11668
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11669
+ profileHint: CamProfileSchema.optional(),
11632
11670
  metadata: record(string(), unknown()).optional(),
11633
11671
  /** Required when kind === 'derived' — the source camStreamId the
11634
11672
  * derived broker reads its encoded plane from.
@@ -30422,6 +30460,77 @@ method(object({
30422
30460
  auth: "protected"
30423
30461
  });
30424
30462
  /**
30463
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
30464
+ * something it knows about is happening (a robot vacuum cleaning, a machine
30465
+ * running, a gate open) and lowers when it stops.
30466
+ *
30467
+ * It is a level, not an edge. The sensor triggers the recorder already listens
30468
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
30469
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
30470
+ * still happening" cannot be expressed as an edge plus a post-buffer without
30471
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
30472
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
30473
+ * which records the dock for that long after every short one. So the recorder
30474
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
30475
+ * own post-buffer once it falls.
30476
+ *
30477
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
30478
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
30479
+ * writes this slice on every change; consumers subscribe to the kernel's
30480
+ * `DeviceStateChanged` for it and read it back through
30481
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
30482
+ * against the device (D224, D8/D11).
30483
+ *
30484
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
30485
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
30486
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
30487
+ * about the camera, on the camera.
30488
+ */
30489
+ var RecordingSignalStatusSchema = object({
30490
+ /** True while the device asks to be recorded. */
30491
+ active: boolean(),
30492
+ /**
30493
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
30494
+ * …). Free text for the log line and the UI badge; the recorder never
30495
+ * branches on it.
30496
+ */
30497
+ reason: string(),
30498
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
30499
+ lastChangedAt: number()
30500
+ });
30501
+ /** The runtime-state slice: the status plus the clock every slice carries. */
30502
+ var RecordingSignalRuntimeStateSchema = RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
30503
+ var recordingSignalCapability = {
30504
+ name: "recording-signal",
30505
+ scope: "device",
30506
+ deviceNative: true,
30507
+ mode: "singleton",
30508
+ deviceTypes: [DeviceType.Camera],
30509
+ methods: {
30510
+ /** The current level, straight from the slice the provider keeps fresh. */
30511
+ getStatus: method(object({ deviceId: number() }), RecordingSignalStatusSchema) },
30512
+ status: {
30513
+ schema: RecordingSignalStatusSchema,
30514
+ kind: "push",
30515
+ empty: {
30516
+ active: false,
30517
+ reason: "unknown",
30518
+ lastChangedAt: 0
30519
+ }
30520
+ },
30521
+ runtimeState: RecordingSignalRuntimeStateSchema,
30522
+ /**
30523
+ * Runtime-state durability: **session** — a restored `active: true` from
30524
+ * before a restart is exactly the stale level the recorder's reconcile bound
30525
+ * exists to end, and the provider re-derives the true level on activation
30526
+ * anyway. Nothing is lost by forgetting it; a lie is avoided.
30527
+ *
30528
+ * See `RuntimeStateDurability`. Enforced by
30529
+ * `scripts/check-runtime-state-durability.ts`.
30530
+ */
30531
+ durability: "session"
30532
+ };
30533
+ /**
30425
30534
  * scene-monitor — device-scoped reference-region state cap. An operator marks
30426
30535
  * a rect ROI on a camera frame and names one or more states; the engine
30427
30536
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -30919,6 +31028,8 @@ var CamStreamDescriptorSchema = object({
30919
31028
  deviceFeatures: array(string()).optional(),
30920
31029
  /** Eligible for automatic profile assignment. Absent = `true`. */
30921
31030
  autoEligible: boolean().optional(),
31031
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
31032
+ profileHint: CamProfileSchema.optional(),
30922
31033
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
30923
31034
  metadata: record(string(), unknown()).optional()
30924
31035
  });
@@ -33271,6 +33382,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
33271
33382
  pressureSensor: pressureSensorCapability,
33272
33383
  privacyMask: privacyMaskCapability,
33273
33384
  ptzAutotrack: ptzAutotrackCapability,
33385
+ recordingSignal: recordingSignalCapability,
33274
33386
  sceneMonitor: sceneMonitorCapability,
33275
33387
  scriptRunner: scriptRunnerCapability,
33276
33388
  smoke: smokeCapability,
@@ -39236,6 +39348,12 @@ Object.freeze({
39236
39348
  addonId: null,
39237
39349
  access: "view"
39238
39350
  },
39351
+ "recordingSignal.getStatus": {
39352
+ capName: "recording-signal",
39353
+ capScope: "device",
39354
+ addonId: null,
39355
+ access: "view"
39356
+ },
39239
39357
  "sceneMonitor.captureReference": {
39240
39358
  capName: "scene-monitor",
39241
39359
  capScope: "device",
@@ -42228,6 +42346,11 @@ Object.freeze({
42228
42346
  form: "single",
42229
42347
  optional: true
42230
42348
  }],
42349
+ "recordingSignal.getStatus": [{
42350
+ name: "deviceId",
42351
+ form: "single",
42352
+ optional: false
42353
+ }],
42231
42354
  "sceneMonitor.captureReference": [{
42232
42355
  name: "deviceId",
42233
42356
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.79",
3
+ "version": "1.2.81",
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",