@camstack/addon-provider-onvif 1.2.71 → 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
@@ -6448,6 +6448,21 @@ var CameraStreamSchema = object({
6448
6448
  */
6449
6449
  autoEligible: boolean().optional(),
6450
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
+ /**
6451
6466
  * Transport-specific opaque metadata. The broker passes it through to
6452
6467
  * the source reader without inspecting it. Currently used by
6453
6468
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7893,7 +7908,22 @@ var RecordingTriggersSchema = object({
7893
7908
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7894
7909
  * registrare.
7895
7910
  */
7896
- 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()
7897
7927
  });
7898
7928
  /**
7899
7929
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11357,6 +11387,8 @@ method(object({
11357
11387
  label: string().optional(),
11358
11388
  deviceFeatures: array(string()).optional(),
11359
11389
  autoEligible: boolean().optional(),
11390
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11391
+ profileHint: CamProfileSchema.optional(),
11360
11392
  metadata: record(string(), unknown()).optional(),
11361
11393
  /** Required when kind === 'derived' — the source camStreamId the
11362
11394
  * derived broker reads its encoded plane from.
@@ -27893,6 +27925,47 @@ method(object({
27893
27925
  auth: "protected"
27894
27926
  });
27895
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
+ /**
27896
27969
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27897
27970
  * a rect ROI on a camera frame and names one or more states; the engine
27898
27971
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28265,6 +28338,8 @@ var CamStreamDescriptorSchema = object({
28265
28338
  deviceFeatures: array(string()).optional(),
28266
28339
  /** Eligible for automatic profile assignment. Absent = `true`. */
28267
28340
  autoEligible: boolean().optional(),
28341
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28342
+ profileHint: CamProfileSchema.optional(),
28268
28343
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28269
28344
  metadata: record(string(), unknown()).optional()
28270
28345
  });
@@ -34985,6 +35060,12 @@ Object.freeze({
34985
35060
  addonId: null,
34986
35061
  access: "view"
34987
35062
  },
35063
+ "recordingSignal.getStatus": {
35064
+ capName: "recording-signal",
35065
+ capScope: "device",
35066
+ addonId: null,
35067
+ access: "view"
35068
+ },
34988
35069
  "sceneMonitor.captureReference": {
34989
35070
  capName: "scene-monitor",
34990
35071
  capScope: "device",
@@ -37977,6 +38058,11 @@ Object.freeze({
37977
38058
  form: "single",
37978
38059
  optional: true
37979
38060
  }],
38061
+ "recordingSignal.getStatus": [{
38062
+ name: "deviceId",
38063
+ form: "single",
38064
+ optional: false
38065
+ }],
37980
38066
  "sceneMonitor.captureReference": [{
37981
38067
  name: "deviceId",
37982
38068
  form: "single",
package/dist/addon.mjs CHANGED
@@ -6449,6 +6449,21 @@ var CameraStreamSchema = object({
6449
6449
  */
6450
6450
  autoEligible: boolean().optional(),
6451
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
+ /**
6452
6467
  * Transport-specific opaque metadata. The broker passes it through to
6453
6468
  * the source reader without inspecting it. Currently used by
6454
6469
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7894,7 +7909,22 @@ var RecordingTriggersSchema = object({
7894
7909
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7895
7910
  * registrare.
7896
7911
  */
7897
- 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()
7898
7928
  });
7899
7929
  /**
7900
7930
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11358,6 +11388,8 @@ method(object({
11358
11388
  label: string().optional(),
11359
11389
  deviceFeatures: array(string()).optional(),
11360
11390
  autoEligible: boolean().optional(),
11391
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11392
+ profileHint: CamProfileSchema.optional(),
11361
11393
  metadata: record(string(), unknown()).optional(),
11362
11394
  /** Required when kind === 'derived' — the source camStreamId the
11363
11395
  * derived broker reads its encoded plane from.
@@ -27894,6 +27926,47 @@ method(object({
27894
27926
  auth: "protected"
27895
27927
  });
27896
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
+ /**
27897
27970
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27898
27971
  * a rect ROI on a camera frame and names one or more states; the engine
27899
27972
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28266,6 +28339,8 @@ var CamStreamDescriptorSchema = object({
28266
28339
  deviceFeatures: array(string()).optional(),
28267
28340
  /** Eligible for automatic profile assignment. Absent = `true`. */
28268
28341
  autoEligible: boolean().optional(),
28342
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28343
+ profileHint: CamProfileSchema.optional(),
28269
28344
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28270
28345
  metadata: record(string(), unknown()).optional()
28271
28346
  });
@@ -34986,6 +35061,12 @@ Object.freeze({
34986
35061
  addonId: null,
34987
35062
  access: "view"
34988
35063
  },
35064
+ "recordingSignal.getStatus": {
35065
+ capName: "recording-signal",
35066
+ capScope: "device",
35067
+ addonId: null,
35068
+ access: "view"
35069
+ },
34989
35070
  "sceneMonitor.captureReference": {
34990
35071
  capName: "scene-monitor",
34991
35072
  capScope: "device",
@@ -37978,6 +38059,11 @@ Object.freeze({
37978
38059
  form: "single",
37979
38060
  optional: true
37980
38061
  }],
38062
+ "recordingSignal.getStatus": [{
38063
+ name: "deviceId",
38064
+ form: "single",
38065
+ optional: false
38066
+ }],
37981
38067
  "sceneMonitor.captureReference": [{
37982
38068
  name: "deviceId",
37983
38069
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.71",
3
+ "version": "1.2.72",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",