@camstack/addon-notifiers 1.2.76 → 1.2.78

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
@@ -6475,6 +6475,21 @@ var CameraStreamSchema = object({
6475
6475
  */
6476
6476
  autoEligible: boolean().optional(),
6477
6477
  /**
6478
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6479
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6480
+ * stream. Consulted by the broker's automatic ranking
6481
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6482
+ * an operator's manual assignment still wins, and an absent hint is the
6483
+ * pixel-ranked default every camera had before this field existed.
6484
+ *
6485
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6486
+ * storage class is written for on its own (`recordings` is high|mid,
6487
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6488
+ * camera's single 720p relay is a `low` in every respect except the slot the
6489
+ * heuristic put it in.
6490
+ */
6491
+ profileHint: CamProfileSchema.optional(),
6492
+ /**
6478
6493
  * Transport-specific opaque metadata. The broker passes it through to
6479
6494
  * the source reader without inspecting it. Currently used by
6480
6495
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -8027,7 +8042,22 @@ var RecordingTriggersSchema = object({
8027
8042
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8028
8043
  * registrare.
8029
8044
  */
8030
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
8045
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
8046
+ /**
8047
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
8048
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
8049
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
8050
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
8051
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
8052
+ *
8053
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
8054
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
8055
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
8056
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
8057
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
8058
+ * (`holdTrigger` / `releaseTrigger`).
8059
+ */
8060
+ deviceSignal: boolean().optional()
8031
8061
  });
8032
8062
  /**
8033
8063
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11510,6 +11540,8 @@ method(object({
11510
11540
  label: string().optional(),
11511
11541
  deviceFeatures: array(string()).optional(),
11512
11542
  autoEligible: boolean().optional(),
11543
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11544
+ profileHint: CamProfileSchema.optional(),
11513
11545
  metadata: record(string(), unknown()).optional(),
11514
11546
  /** Required when kind === 'derived' — the source camStreamId the
11515
11547
  * derived broker reads its encoded plane from.
@@ -27855,6 +27887,47 @@ method(object({
27855
27887
  auth: "protected"
27856
27888
  });
27857
27889
  /**
27890
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27891
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27892
+ * running, a gate open) and lowers when it stops.
27893
+ *
27894
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27895
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27896
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27897
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27898
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27899
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27900
+ * which records the dock for that long after every short one. So the recorder
27901
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27902
+ * own post-buffer once it falls.
27903
+ *
27904
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27905
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27906
+ * writes this slice on every change; consumers subscribe to the kernel's
27907
+ * `DeviceStateChanged` for it and read it back through
27908
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27909
+ * against the device (D224, D8/D11).
27910
+ *
27911
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27912
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27913
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27914
+ * about the camera, on the camera.
27915
+ */
27916
+ var RecordingSignalStatusSchema = object({
27917
+ /** True while the device asks to be recorded. */
27918
+ active: boolean(),
27919
+ /**
27920
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27921
+ * …). Free text for the log line and the UI badge; the recorder never
27922
+ * branches on it.
27923
+ */
27924
+ reason: string(),
27925
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27926
+ lastChangedAt: number()
27927
+ });
27928
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27929
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27930
+ /**
27858
27931
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27859
27932
  * a rect ROI on a camera frame and names one or more states; the engine
27860
27933
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28227,6 +28300,8 @@ var CamStreamDescriptorSchema = object({
28227
28300
  deviceFeatures: array(string()).optional(),
28228
28301
  /** Eligible for automatic profile assignment. Absent = `true`. */
28229
28302
  autoEligible: boolean().optional(),
28303
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28304
+ profileHint: CamProfileSchema.optional(),
28230
28305
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28231
28306
  metadata: record(string(), unknown()).optional()
28232
28307
  });
@@ -34172,6 +34247,12 @@ Object.freeze({
34172
34247
  addonId: null,
34173
34248
  access: "view"
34174
34249
  },
34250
+ "recordingSignal.getStatus": {
34251
+ capName: "recording-signal",
34252
+ capScope: "device",
34253
+ addonId: null,
34254
+ access: "view"
34255
+ },
34175
34256
  "sceneMonitor.captureReference": {
34176
34257
  capName: "scene-monitor",
34177
34258
  capScope: "device",
@@ -37164,6 +37245,11 @@ Object.freeze({
37164
37245
  form: "single",
37165
37246
  optional: true
37166
37247
  }],
37248
+ "recordingSignal.getStatus": [{
37249
+ name: "deviceId",
37250
+ form: "single",
37251
+ optional: false
37252
+ }],
37167
37253
  "sceneMonitor.captureReference": [{
37168
37254
  name: "deviceId",
37169
37255
  form: "single",
package/dist/addon.mjs 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
@@ -8000,7 +8015,22 @@ var RecordingTriggersSchema = object({
8000
8015
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8001
8016
  * registrare.
8002
8017
  */
8003
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
8018
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
8019
+ /**
8020
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
8021
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
8022
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
8023
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
8024
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
8025
+ *
8026
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
8027
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
8028
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
8029
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
8030
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
8031
+ * (`holdTrigger` / `releaseTrigger`).
8032
+ */
8033
+ deviceSignal: boolean().optional()
8004
8034
  });
8005
8035
  /**
8006
8036
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11483,6 +11513,8 @@ method(object({
11483
11513
  label: string().optional(),
11484
11514
  deviceFeatures: array(string()).optional(),
11485
11515
  autoEligible: boolean().optional(),
11516
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11517
+ profileHint: CamProfileSchema.optional(),
11486
11518
  metadata: record(string(), unknown()).optional(),
11487
11519
  /** Required when kind === 'derived' — the source camStreamId the
11488
11520
  * derived broker reads its encoded plane from.
@@ -27828,6 +27860,47 @@ method(object({
27828
27860
  auth: "protected"
27829
27861
  });
27830
27862
  /**
27863
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27864
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27865
+ * running, a gate open) and lowers when it stops.
27866
+ *
27867
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27868
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27869
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27870
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27871
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27872
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27873
+ * which records the dock for that long after every short one. So the recorder
27874
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27875
+ * own post-buffer once it falls.
27876
+ *
27877
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27878
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27879
+ * writes this slice on every change; consumers subscribe to the kernel's
27880
+ * `DeviceStateChanged` for it and read it back through
27881
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27882
+ * against the device (D224, D8/D11).
27883
+ *
27884
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27885
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27886
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27887
+ * about the camera, on the camera.
27888
+ */
27889
+ var RecordingSignalStatusSchema = object({
27890
+ /** True while the device asks to be recorded. */
27891
+ active: boolean(),
27892
+ /**
27893
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27894
+ * …). Free text for the log line and the UI badge; the recorder never
27895
+ * branches on it.
27896
+ */
27897
+ reason: string(),
27898
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27899
+ lastChangedAt: number()
27900
+ });
27901
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27902
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27903
+ /**
27831
27904
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27832
27905
  * a rect ROI on a camera frame and names one or more states; the engine
27833
27906
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28200,6 +28273,8 @@ var CamStreamDescriptorSchema = object({
28200
28273
  deviceFeatures: array(string()).optional(),
28201
28274
  /** Eligible for automatic profile assignment. Absent = `true`. */
28202
28275
  autoEligible: boolean().optional(),
28276
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28277
+ profileHint: CamProfileSchema.optional(),
28203
28278
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28204
28279
  metadata: record(string(), unknown()).optional()
28205
28280
  });
@@ -34145,6 +34220,12 @@ Object.freeze({
34145
34220
  addonId: null,
34146
34221
  access: "view"
34147
34222
  },
34223
+ "recordingSignal.getStatus": {
34224
+ capName: "recording-signal",
34225
+ capScope: "device",
34226
+ addonId: null,
34227
+ access: "view"
34228
+ },
34148
34229
  "sceneMonitor.captureReference": {
34149
34230
  capName: "scene-monitor",
34150
34231
  capScope: "device",
@@ -37137,6 +37218,11 @@ Object.freeze({
37137
37218
  form: "single",
37138
37219
  optional: true
37139
37220
  }],
37221
+ "recordingSignal.getStatus": [{
37222
+ name: "deviceId",
37223
+ form: "single",
37224
+ optional: false
37225
+ }],
37140
37226
  "sceneMonitor.captureReference": [{
37141
37227
  name: "deviceId",
37142
37228
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.76",
3
+ "version": "1.2.78",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",