@camstack/addon-provider-onvif 1.2.70 → 1.2.72

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
@@ -5409,6 +5409,12 @@ Object.fromEntries([
5409
5409
  icon: "move",
5410
5410
  order: 40
5411
5411
  },
5412
+ {
5413
+ id: "navigation",
5414
+ label: "Navigation",
5415
+ icon: "compass",
5416
+ order: 41
5417
+ },
5412
5418
  {
5413
5419
  id: "consumables",
5414
5420
  label: "Consumables",
@@ -6442,6 +6448,21 @@ var CameraStreamSchema = object({
6442
6448
  */
6443
6449
  autoEligible: boolean().optional(),
6444
6450
  /**
6451
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6452
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6453
+ * stream. Consulted by the broker's automatic ranking
6454
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6455
+ * an operator's manual assignment still wins, and an absent hint is the
6456
+ * pixel-ranked default every camera had before this field existed.
6457
+ *
6458
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6459
+ * storage class is written for on its own (`recordings` is high|mid,
6460
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6461
+ * camera's single 720p relay is a `low` in every respect except the slot the
6462
+ * heuristic put it in.
6463
+ */
6464
+ profileHint: CamProfileSchema.optional(),
6465
+ /**
6445
6466
  * Transport-specific opaque metadata. The broker passes it through to
6446
6467
  * the source reader without inspecting it. Currently used by
6447
6468
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7887,7 +7908,22 @@ var RecordingTriggersSchema = object({
7887
7908
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7888
7909
  * registrare.
7889
7910
  */
7890
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7911
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7912
+ /**
7913
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7914
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7915
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7916
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7917
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7918
+ *
7919
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7920
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7921
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7922
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7923
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7924
+ * (`holdTrigger` / `releaseTrigger`).
7925
+ */
7926
+ deviceSignal: boolean().optional()
7891
7927
  });
7892
7928
  /**
7893
7929
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11351,6 +11387,8 @@ method(object({
11351
11387
  label: string().optional(),
11352
11388
  deviceFeatures: array(string()).optional(),
11353
11389
  autoEligible: boolean().optional(),
11390
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11391
+ profileHint: CamProfileSchema.optional(),
11354
11392
  metadata: record(string(), unknown()).optional(),
11355
11393
  /** Required when kind === 'derived' — the source camStreamId the
11356
11394
  * derived broker reads its encoded plane from.
@@ -27887,6 +27925,47 @@ method(object({
27887
27925
  auth: "protected"
27888
27926
  });
27889
27927
  /**
27928
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27929
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27930
+ * running, a gate open) and lowers when it stops.
27931
+ *
27932
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27933
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27934
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27935
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27936
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27937
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27938
+ * which records the dock for that long after every short one. So the recorder
27939
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27940
+ * own post-buffer once it falls.
27941
+ *
27942
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27943
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27944
+ * writes this slice on every change; consumers subscribe to the kernel's
27945
+ * `DeviceStateChanged` for it and read it back through
27946
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27947
+ * against the device (D224, D8/D11).
27948
+ *
27949
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27950
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27951
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27952
+ * about the camera, on the camera.
27953
+ */
27954
+ var RecordingSignalStatusSchema = object({
27955
+ /** True while the device asks to be recorded. */
27956
+ active: boolean(),
27957
+ /**
27958
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27959
+ * …). Free text for the log line and the UI badge; the recorder never
27960
+ * branches on it.
27961
+ */
27962
+ reason: string(),
27963
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27964
+ lastChangedAt: number()
27965
+ });
27966
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27967
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27968
+ /**
27890
27969
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27891
27970
  * a rect ROI on a camera frame and names one or more states; the engine
27892
27971
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28259,6 +28338,8 @@ var CamStreamDescriptorSchema = object({
28259
28338
  deviceFeatures: array(string()).optional(),
28260
28339
  /** Eligible for automatic profile assignment. Absent = `true`. */
28261
28340
  autoEligible: boolean().optional(),
28341
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28342
+ profileHint: CamProfileSchema.optional(),
28262
28343
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28263
28344
  metadata: record(string(), unknown()).optional()
28264
28345
  });
@@ -34979,6 +35060,12 @@ Object.freeze({
34979
35060
  addonId: null,
34980
35061
  access: "view"
34981
35062
  },
35063
+ "recordingSignal.getStatus": {
35064
+ capName: "recording-signal",
35065
+ capScope: "device",
35066
+ addonId: null,
35067
+ access: "view"
35068
+ },
34982
35069
  "sceneMonitor.captureReference": {
34983
35070
  capName: "scene-monitor",
34984
35071
  capScope: "device",
@@ -37971,6 +38058,11 @@ Object.freeze({
37971
38058
  form: "single",
37972
38059
  optional: true
37973
38060
  }],
38061
+ "recordingSignal.getStatus": [{
38062
+ name: "deviceId",
38063
+ form: "single",
38064
+ optional: false
38065
+ }],
37974
38066
  "sceneMonitor.captureReference": [{
37975
38067
  name: "deviceId",
37976
38068
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5410,6 +5410,12 @@ Object.fromEntries([
5410
5410
  icon: "move",
5411
5411
  order: 40
5412
5412
  },
5413
+ {
5414
+ id: "navigation",
5415
+ label: "Navigation",
5416
+ icon: "compass",
5417
+ order: 41
5418
+ },
5413
5419
  {
5414
5420
  id: "consumables",
5415
5421
  label: "Consumables",
@@ -6443,6 +6449,21 @@ var CameraStreamSchema = object({
6443
6449
  */
6444
6450
  autoEligible: boolean().optional(),
6445
6451
  /**
6452
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6453
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6454
+ * stream. Consulted by the broker's automatic ranking
6455
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6456
+ * an operator's manual assignment still wins, and an absent hint is the
6457
+ * pixel-ranked default every camera had before this field existed.
6458
+ *
6459
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6460
+ * storage class is written for on its own (`recordings` is high|mid,
6461
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6462
+ * camera's single 720p relay is a `low` in every respect except the slot the
6463
+ * heuristic put it in.
6464
+ */
6465
+ profileHint: CamProfileSchema.optional(),
6466
+ /**
6446
6467
  * Transport-specific opaque metadata. The broker passes it through to
6447
6468
  * the source reader without inspecting it. Currently used by
6448
6469
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7888,7 +7909,22 @@ var RecordingTriggersSchema = object({
7888
7909
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7889
7910
  * registrare.
7890
7911
  */
7891
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7912
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7913
+ /**
7914
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7915
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7916
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7917
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7918
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7919
+ *
7920
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7921
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7922
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7923
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7924
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7925
+ * (`holdTrigger` / `releaseTrigger`).
7926
+ */
7927
+ deviceSignal: boolean().optional()
7892
7928
  });
7893
7929
  /**
7894
7930
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11352,6 +11388,8 @@ method(object({
11352
11388
  label: string().optional(),
11353
11389
  deviceFeatures: array(string()).optional(),
11354
11390
  autoEligible: boolean().optional(),
11391
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11392
+ profileHint: CamProfileSchema.optional(),
11355
11393
  metadata: record(string(), unknown()).optional(),
11356
11394
  /** Required when kind === 'derived' — the source camStreamId the
11357
11395
  * derived broker reads its encoded plane from.
@@ -27888,6 +27926,47 @@ method(object({
27888
27926
  auth: "protected"
27889
27927
  });
27890
27928
  /**
27929
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27930
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27931
+ * running, a gate open) and lowers when it stops.
27932
+ *
27933
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27934
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27935
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27936
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27937
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27938
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27939
+ * which records the dock for that long after every short one. So the recorder
27940
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27941
+ * own post-buffer once it falls.
27942
+ *
27943
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27944
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27945
+ * writes this slice on every change; consumers subscribe to the kernel's
27946
+ * `DeviceStateChanged` for it and read it back through
27947
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27948
+ * against the device (D224, D8/D11).
27949
+ *
27950
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27951
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27952
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27953
+ * about the camera, on the camera.
27954
+ */
27955
+ var RecordingSignalStatusSchema = object({
27956
+ /** True while the device asks to be recorded. */
27957
+ active: boolean(),
27958
+ /**
27959
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27960
+ * …). Free text for the log line and the UI badge; the recorder never
27961
+ * branches on it.
27962
+ */
27963
+ reason: string(),
27964
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27965
+ lastChangedAt: number()
27966
+ });
27967
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27968
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27969
+ /**
27891
27970
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27892
27971
  * a rect ROI on a camera frame and names one or more states; the engine
27893
27972
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28260,6 +28339,8 @@ var CamStreamDescriptorSchema = object({
28260
28339
  deviceFeatures: array(string()).optional(),
28261
28340
  /** Eligible for automatic profile assignment. Absent = `true`. */
28262
28341
  autoEligible: boolean().optional(),
28342
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28343
+ profileHint: CamProfileSchema.optional(),
28263
28344
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28264
28345
  metadata: record(string(), unknown()).optional()
28265
28346
  });
@@ -34980,6 +35061,12 @@ Object.freeze({
34980
35061
  addonId: null,
34981
35062
  access: "view"
34982
35063
  },
35064
+ "recordingSignal.getStatus": {
35065
+ capName: "recording-signal",
35066
+ capScope: "device",
35067
+ addonId: null,
35068
+ access: "view"
35069
+ },
34983
35070
  "sceneMonitor.captureReference": {
34984
35071
  capName: "scene-monitor",
34985
35072
  capScope: "device",
@@ -37972,6 +38059,11 @@ Object.freeze({
37972
38059
  form: "single",
37973
38060
  optional: true
37974
38061
  }],
38062
+ "recordingSignal.getStatus": [{
38063
+ name: "deviceId",
38064
+ form: "single",
38065
+ optional: false
38066
+ }],
37975
38067
  "sceneMonitor.captureReference": [{
37976
38068
  name: "deviceId",
37977
38069
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.70",
3
+ "version": "1.2.72",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",