@camstack/addon-notifiers 1.2.75 → 1.2.77

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
@@ -5436,6 +5436,12 @@ Object.fromEntries([
5436
5436
  icon: "move",
5437
5437
  order: 40
5438
5438
  },
5439
+ {
5440
+ id: "navigation",
5441
+ label: "Navigation",
5442
+ icon: "compass",
5443
+ order: 41
5444
+ },
5439
5445
  {
5440
5446
  id: "consumables",
5441
5447
  label: "Consumables",
@@ -6469,6 +6475,21 @@ var CameraStreamSchema = object({
6469
6475
  */
6470
6476
  autoEligible: boolean().optional(),
6471
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
+ /**
6472
6493
  * Transport-specific opaque metadata. The broker passes it through to
6473
6494
  * the source reader without inspecting it. Currently used by
6474
6495
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -8021,7 +8042,22 @@ var RecordingTriggersSchema = object({
8021
8042
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8022
8043
  * registrare.
8023
8044
  */
8024
- 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()
8025
8061
  });
8026
8062
  /**
8027
8063
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11504,6 +11540,8 @@ method(object({
11504
11540
  label: string().optional(),
11505
11541
  deviceFeatures: array(string()).optional(),
11506
11542
  autoEligible: boolean().optional(),
11543
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11544
+ profileHint: CamProfileSchema.optional(),
11507
11545
  metadata: record(string(), unknown()).optional(),
11508
11546
  /** Required when kind === 'derived' — the source camStreamId the
11509
11547
  * derived broker reads its encoded plane from.
@@ -27849,6 +27887,47 @@ method(object({
27849
27887
  auth: "protected"
27850
27888
  });
27851
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
+ /**
27852
27931
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27853
27932
  * a rect ROI on a camera frame and names one or more states; the engine
27854
27933
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28221,6 +28300,8 @@ var CamStreamDescriptorSchema = object({
28221
28300
  deviceFeatures: array(string()).optional(),
28222
28301
  /** Eligible for automatic profile assignment. Absent = `true`. */
28223
28302
  autoEligible: boolean().optional(),
28303
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28304
+ profileHint: CamProfileSchema.optional(),
28224
28305
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28225
28306
  metadata: record(string(), unknown()).optional()
28226
28307
  });
@@ -34166,6 +34247,12 @@ Object.freeze({
34166
34247
  addonId: null,
34167
34248
  access: "view"
34168
34249
  },
34250
+ "recordingSignal.getStatus": {
34251
+ capName: "recording-signal",
34252
+ capScope: "device",
34253
+ addonId: null,
34254
+ access: "view"
34255
+ },
34169
34256
  "sceneMonitor.captureReference": {
34170
34257
  capName: "scene-monitor",
34171
34258
  capScope: "device",
@@ -37158,6 +37245,11 @@ Object.freeze({
37158
37245
  form: "single",
37159
37246
  optional: true
37160
37247
  }],
37248
+ "recordingSignal.getStatus": [{
37249
+ name: "deviceId",
37250
+ form: "single",
37251
+ optional: false
37252
+ }],
37161
37253
  "sceneMonitor.captureReference": [{
37162
37254
  name: "deviceId",
37163
37255
  form: "single",
package/dist/addon.mjs 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
@@ -7994,7 +8015,22 @@ var RecordingTriggersSchema = object({
7994
8015
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7995
8016
  * registrare.
7996
8017
  */
7997
- 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()
7998
8034
  });
7999
8035
  /**
8000
8036
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11477,6 +11513,8 @@ method(object({
11477
11513
  label: string().optional(),
11478
11514
  deviceFeatures: array(string()).optional(),
11479
11515
  autoEligible: boolean().optional(),
11516
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11517
+ profileHint: CamProfileSchema.optional(),
11480
11518
  metadata: record(string(), unknown()).optional(),
11481
11519
  /** Required when kind === 'derived' — the source camStreamId the
11482
11520
  * derived broker reads its encoded plane from.
@@ -27822,6 +27860,47 @@ method(object({
27822
27860
  auth: "protected"
27823
27861
  });
27824
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
+ /**
27825
27904
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27826
27905
  * a rect ROI on a camera frame and names one or more states; the engine
27827
27906
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28194,6 +28273,8 @@ var CamStreamDescriptorSchema = object({
28194
28273
  deviceFeatures: array(string()).optional(),
28195
28274
  /** Eligible for automatic profile assignment. Absent = `true`. */
28196
28275
  autoEligible: boolean().optional(),
28276
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28277
+ profileHint: CamProfileSchema.optional(),
28197
28278
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28198
28279
  metadata: record(string(), unknown()).optional()
28199
28280
  });
@@ -34139,6 +34220,12 @@ Object.freeze({
34139
34220
  addonId: null,
34140
34221
  access: "view"
34141
34222
  },
34223
+ "recordingSignal.getStatus": {
34224
+ capName: "recording-signal",
34225
+ capScope: "device",
34226
+ addonId: null,
34227
+ access: "view"
34228
+ },
34142
34229
  "sceneMonitor.captureReference": {
34143
34230
  capName: "scene-monitor",
34144
34231
  capScope: "device",
@@ -37131,6 +37218,11 @@ Object.freeze({
37131
37218
  form: "single",
37132
37219
  optional: true
37133
37220
  }],
37221
+ "recordingSignal.getStatus": [{
37222
+ name: "deviceId",
37223
+ form: "single",
37224
+ optional: false
37225
+ }],
37134
37226
  "sceneMonitor.captureReference": [{
37135
37227
  name: "deviceId",
37136
37228
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.75",
3
+ "version": "1.2.77",
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",