@camstack/addon-decoder-nodeav 1.2.72 → 1.2.74

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/index.js 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.
@@ -11395,6 +11425,8 @@ method(object({
11395
11425
  label: string().optional(),
11396
11426
  deviceFeatures: array(string()).optional(),
11397
11427
  autoEligible: boolean().optional(),
11428
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11429
+ profileHint: CamProfileSchema.optional(),
11398
11430
  metadata: record(string(), unknown()).optional(),
11399
11431
  /** Required when kind === 'derived' — the source camStreamId the
11400
11432
  * derived broker reads its encoded plane from.
@@ -27797,6 +27829,47 @@ method(object({
27797
27829
  auth: "protected"
27798
27830
  });
27799
27831
  /**
27832
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27833
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27834
+ * running, a gate open) and lowers when it stops.
27835
+ *
27836
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27837
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27838
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27839
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27840
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27841
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27842
+ * which records the dock for that long after every short one. So the recorder
27843
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27844
+ * own post-buffer once it falls.
27845
+ *
27846
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27847
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27848
+ * writes this slice on every change; consumers subscribe to the kernel's
27849
+ * `DeviceStateChanged` for it and read it back through
27850
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27851
+ * against the device (D224, D8/D11).
27852
+ *
27853
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27854
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27855
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27856
+ * about the camera, on the camera.
27857
+ */
27858
+ var RecordingSignalStatusSchema = object({
27859
+ /** True while the device asks to be recorded. */
27860
+ active: boolean(),
27861
+ /**
27862
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27863
+ * …). Free text for the log line and the UI badge; the recorder never
27864
+ * branches on it.
27865
+ */
27866
+ reason: string(),
27867
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27868
+ lastChangedAt: number()
27869
+ });
27870
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27871
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27872
+ /**
27800
27873
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27801
27874
  * a rect ROI on a camera frame and names one or more states; the engine
27802
27875
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28169,6 +28242,8 @@ var CamStreamDescriptorSchema = object({
28169
28242
  deviceFeatures: array(string()).optional(),
28170
28243
  /** Eligible for automatic profile assignment. Absent = `true`. */
28171
28244
  autoEligible: boolean().optional(),
28245
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28246
+ profileHint: CamProfileSchema.optional(),
28172
28247
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28173
28248
  metadata: record(string(), unknown()).optional()
28174
28249
  });
@@ -34114,6 +34189,12 @@ Object.freeze({
34114
34189
  addonId: null,
34115
34190
  access: "view"
34116
34191
  },
34192
+ "recordingSignal.getStatus": {
34193
+ capName: "recording-signal",
34194
+ capScope: "device",
34195
+ addonId: null,
34196
+ access: "view"
34197
+ },
34117
34198
  "sceneMonitor.captureReference": {
34118
34199
  capName: "scene-monitor",
34119
34200
  capScope: "device",
@@ -37106,6 +37187,11 @@ Object.freeze({
37106
37187
  form: "single",
37107
37188
  optional: true
37108
37189
  }],
37190
+ "recordingSignal.getStatus": [{
37191
+ name: "deviceId",
37192
+ form: "single",
37193
+ optional: false
37194
+ }],
37109
37195
  "sceneMonitor.captureReference": [{
37110
37196
  name: "deviceId",
37111
37197
  form: "single",
package/dist/index.mjs CHANGED
@@ -6445,6 +6445,21 @@ var CameraStreamSchema = object({
6445
6445
  */
6446
6446
  autoEligible: boolean().optional(),
6447
6447
  /**
6448
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6449
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6450
+ * stream. Consulted by the broker's automatic ranking
6451
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6452
+ * an operator's manual assignment still wins, and an absent hint is the
6453
+ * pixel-ranked default every camera had before this field existed.
6454
+ *
6455
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6456
+ * storage class is written for on its own (`recordings` is high|mid,
6457
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6458
+ * camera's single 720p relay is a `low` in every respect except the slot the
6459
+ * heuristic put it in.
6460
+ */
6461
+ profileHint: CamProfileSchema.optional(),
6462
+ /**
6448
6463
  * Transport-specific opaque metadata. The broker passes it through to
6449
6464
  * the source reader without inspecting it. Currently used by
6450
6465
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7890,7 +7905,22 @@ var RecordingTriggersSchema = object({
7890
7905
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7891
7906
  * registrare.
7892
7907
  */
7893
- 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()
7894
7924
  });
7895
7925
  /**
7896
7926
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11391,6 +11421,8 @@ method(object({
11391
11421
  label: string().optional(),
11392
11422
  deviceFeatures: array(string()).optional(),
11393
11423
  autoEligible: boolean().optional(),
11424
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11425
+ profileHint: CamProfileSchema.optional(),
11394
11426
  metadata: record(string(), unknown()).optional(),
11395
11427
  /** Required when kind === 'derived' — the source camStreamId the
11396
11428
  * derived broker reads its encoded plane from.
@@ -27793,6 +27825,47 @@ method(object({
27793
27825
  auth: "protected"
27794
27826
  });
27795
27827
  /**
27828
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27829
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27830
+ * running, a gate open) and lowers when it stops.
27831
+ *
27832
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27833
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27834
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27835
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27836
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27837
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27838
+ * which records the dock for that long after every short one. So the recorder
27839
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27840
+ * own post-buffer once it falls.
27841
+ *
27842
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27843
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27844
+ * writes this slice on every change; consumers subscribe to the kernel's
27845
+ * `DeviceStateChanged` for it and read it back through
27846
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27847
+ * against the device (D224, D8/D11).
27848
+ *
27849
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27850
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27851
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27852
+ * about the camera, on the camera.
27853
+ */
27854
+ var RecordingSignalStatusSchema = object({
27855
+ /** True while the device asks to be recorded. */
27856
+ active: boolean(),
27857
+ /**
27858
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27859
+ * …). Free text for the log line and the UI badge; the recorder never
27860
+ * branches on it.
27861
+ */
27862
+ reason: string(),
27863
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27864
+ lastChangedAt: number()
27865
+ });
27866
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27867
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27868
+ /**
27796
27869
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27797
27870
  * a rect ROI on a camera frame and names one or more states; the engine
27798
27871
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28165,6 +28238,8 @@ var CamStreamDescriptorSchema = object({
28165
28238
  deviceFeatures: array(string()).optional(),
28166
28239
  /** Eligible for automatic profile assignment. Absent = `true`. */
28167
28240
  autoEligible: boolean().optional(),
28241
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28242
+ profileHint: CamProfileSchema.optional(),
28168
28243
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28169
28244
  metadata: record(string(), unknown()).optional()
28170
28245
  });
@@ -34110,6 +34185,12 @@ Object.freeze({
34110
34185
  addonId: null,
34111
34186
  access: "view"
34112
34187
  },
34188
+ "recordingSignal.getStatus": {
34189
+ capName: "recording-signal",
34190
+ capScope: "device",
34191
+ addonId: null,
34192
+ access: "view"
34193
+ },
34113
34194
  "sceneMonitor.captureReference": {
34114
34195
  capName: "scene-monitor",
34115
34196
  capScope: "device",
@@ -37102,6 +37183,11 @@ Object.freeze({
37102
37183
  form: "single",
37103
37184
  optional: true
37104
37185
  }],
37186
+ "recordingSignal.getStatus": [{
37187
+ name: "deviceId",
37188
+ form: "single",
37189
+ optional: false
37190
+ }],
37105
37191
  "sceneMonitor.captureReference": [{
37106
37192
  name: "deviceId",
37107
37193
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.72",
3
+ "version": "1.2.74",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",