@camstack/addon-smtp-nodemailer 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.
@@ -5443,6 +5443,12 @@ Object.fromEntries([
5443
5443
  icon: "move",
5444
5444
  order: 40
5445
5445
  },
5446
+ {
5447
+ id: "navigation",
5448
+ label: "Navigation",
5449
+ icon: "compass",
5450
+ order: 41
5451
+ },
5446
5452
  {
5447
5453
  id: "consumables",
5448
5454
  label: "Consumables",
@@ -6476,6 +6482,21 @@ var CameraStreamSchema = object({
6476
6482
  */
6477
6483
  autoEligible: boolean().optional(),
6478
6484
  /**
6485
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6486
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6487
+ * stream. Consulted by the broker's automatic ranking
6488
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6489
+ * an operator's manual assignment still wins, and an absent hint is the
6490
+ * pixel-ranked default every camera had before this field existed.
6491
+ *
6492
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6493
+ * storage class is written for on its own (`recordings` is high|mid,
6494
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6495
+ * camera's single 720p relay is a `low` in every respect except the slot the
6496
+ * heuristic put it in.
6497
+ */
6498
+ profileHint: CamProfileSchema.optional(),
6499
+ /**
6479
6500
  * Transport-specific opaque metadata. The broker passes it through to
6480
6501
  * the source reader without inspecting it. Currently used by
6481
6502
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7909,7 +7930,22 @@ var RecordingTriggersSchema = object({
7909
7930
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7910
7931
  * registrare.
7911
7932
  */
7912
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7933
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7934
+ /**
7935
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7936
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7937
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7938
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7939
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7940
+ *
7941
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7942
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7943
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7944
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7945
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7946
+ * (`holdTrigger` / `releaseTrigger`).
7947
+ */
7948
+ deviceSignal: boolean().optional()
7913
7949
  });
7914
7950
  /**
7915
7951
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11373,6 +11409,8 @@ method(object({
11373
11409
  label: string().optional(),
11374
11410
  deviceFeatures: array(string()).optional(),
11375
11411
  autoEligible: boolean().optional(),
11412
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11413
+ profileHint: CamProfileSchema.optional(),
11376
11414
  metadata: record(string(), unknown()).optional(),
11377
11415
  /** Required when kind === 'derived' — the source camStreamId the
11378
11416
  * derived broker reads its encoded plane from.
@@ -27695,6 +27733,47 @@ method(object({
27695
27733
  auth: "protected"
27696
27734
  });
27697
27735
  /**
27736
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27737
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27738
+ * running, a gate open) and lowers when it stops.
27739
+ *
27740
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27741
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27742
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27743
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27744
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27745
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27746
+ * which records the dock for that long after every short one. So the recorder
27747
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27748
+ * own post-buffer once it falls.
27749
+ *
27750
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27751
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27752
+ * writes this slice on every change; consumers subscribe to the kernel's
27753
+ * `DeviceStateChanged` for it and read it back through
27754
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27755
+ * against the device (D224, D8/D11).
27756
+ *
27757
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27758
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27759
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27760
+ * about the camera, on the camera.
27761
+ */
27762
+ var RecordingSignalStatusSchema = object({
27763
+ /** True while the device asks to be recorded. */
27764
+ active: boolean(),
27765
+ /**
27766
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27767
+ * …). Free text for the log line and the UI badge; the recorder never
27768
+ * branches on it.
27769
+ */
27770
+ reason: string(),
27771
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27772
+ lastChangedAt: number()
27773
+ });
27774
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27775
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27776
+ /**
27698
27777
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27699
27778
  * a rect ROI on a camera frame and names one or more states; the engine
27700
27779
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28067,6 +28146,8 @@ var CamStreamDescriptorSchema = object({
28067
28146
  deviceFeatures: array(string()).optional(),
28068
28147
  /** Eligible for automatic profile assignment. Absent = `true`. */
28069
28148
  autoEligible: boolean().optional(),
28149
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28150
+ profileHint: CamProfileSchema.optional(),
28070
28151
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28071
28152
  metadata: record(string(), unknown()).optional()
28072
28153
  });
@@ -34012,6 +34093,12 @@ Object.freeze({
34012
34093
  addonId: null,
34013
34094
  access: "view"
34014
34095
  },
34096
+ "recordingSignal.getStatus": {
34097
+ capName: "recording-signal",
34098
+ capScope: "device",
34099
+ addonId: null,
34100
+ access: "view"
34101
+ },
34015
34102
  "sceneMonitor.captureReference": {
34016
34103
  capName: "scene-monitor",
34017
34104
  capScope: "device",
@@ -37004,6 +37091,11 @@ Object.freeze({
37004
37091
  form: "single",
37005
37092
  optional: true
37006
37093
  }],
37094
+ "recordingSignal.getStatus": [{
37095
+ name: "deviceId",
37096
+ form: "single",
37097
+ optional: false
37098
+ }],
37007
37099
  "sceneMonitor.captureReference": [{
37008
37100
  name: "deviceId",
37009
37101
  form: "single",
@@ -5441,6 +5441,12 @@ Object.fromEntries([
5441
5441
  icon: "move",
5442
5442
  order: 40
5443
5443
  },
5444
+ {
5445
+ id: "navigation",
5446
+ label: "Navigation",
5447
+ icon: "compass",
5448
+ order: 41
5449
+ },
5444
5450
  {
5445
5451
  id: "consumables",
5446
5452
  label: "Consumables",
@@ -6474,6 +6480,21 @@ var CameraStreamSchema = object({
6474
6480
  */
6475
6481
  autoEligible: boolean().optional(),
6476
6482
  /**
6483
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6484
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6485
+ * stream. Consulted by the broker's automatic ranking
6486
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6487
+ * an operator's manual assignment still wins, and an absent hint is the
6488
+ * pixel-ranked default every camera had before this field existed.
6489
+ *
6490
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6491
+ * storage class is written for on its own (`recordings` is high|mid,
6492
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6493
+ * camera's single 720p relay is a `low` in every respect except the slot the
6494
+ * heuristic put it in.
6495
+ */
6496
+ profileHint: CamProfileSchema.optional(),
6497
+ /**
6477
6498
  * Transport-specific opaque metadata. The broker passes it through to
6478
6499
  * the source reader without inspecting it. Currently used by
6479
6500
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7907,7 +7928,22 @@ var RecordingTriggersSchema = object({
7907
7928
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7908
7929
  * registrare.
7909
7930
  */
7910
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7931
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7932
+ /**
7933
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7934
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7935
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7936
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7937
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7938
+ *
7939
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7940
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7941
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7942
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7943
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7944
+ * (`holdTrigger` / `releaseTrigger`).
7945
+ */
7946
+ deviceSignal: boolean().optional()
7911
7947
  });
7912
7948
  /**
7913
7949
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11371,6 +11407,8 @@ method(object({
11371
11407
  label: string().optional(),
11372
11408
  deviceFeatures: array(string()).optional(),
11373
11409
  autoEligible: boolean().optional(),
11410
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11411
+ profileHint: CamProfileSchema.optional(),
11374
11412
  metadata: record(string(), unknown()).optional(),
11375
11413
  /** Required when kind === 'derived' — the source camStreamId the
11376
11414
  * derived broker reads its encoded plane from.
@@ -27693,6 +27731,47 @@ method(object({
27693
27731
  auth: "protected"
27694
27732
  });
27695
27733
  /**
27734
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27735
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27736
+ * running, a gate open) and lowers when it stops.
27737
+ *
27738
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27739
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27740
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27741
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27742
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27743
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27744
+ * which records the dock for that long after every short one. So the recorder
27745
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27746
+ * own post-buffer once it falls.
27747
+ *
27748
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27749
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27750
+ * writes this slice on every change; consumers subscribe to the kernel's
27751
+ * `DeviceStateChanged` for it and read it back through
27752
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27753
+ * against the device (D224, D8/D11).
27754
+ *
27755
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27756
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27757
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27758
+ * about the camera, on the camera.
27759
+ */
27760
+ var RecordingSignalStatusSchema = object({
27761
+ /** True while the device asks to be recorded. */
27762
+ active: boolean(),
27763
+ /**
27764
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27765
+ * …). Free text for the log line and the UI badge; the recorder never
27766
+ * branches on it.
27767
+ */
27768
+ reason: string(),
27769
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27770
+ lastChangedAt: number()
27771
+ });
27772
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27773
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27774
+ /**
27696
27775
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27697
27776
  * a rect ROI on a camera frame and names one or more states; the engine
27698
27777
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28065,6 +28144,8 @@ var CamStreamDescriptorSchema = object({
28065
28144
  deviceFeatures: array(string()).optional(),
28066
28145
  /** Eligible for automatic profile assignment. Absent = `true`. */
28067
28146
  autoEligible: boolean().optional(),
28147
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28148
+ profileHint: CamProfileSchema.optional(),
28068
28149
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28069
28150
  metadata: record(string(), unknown()).optional()
28070
28151
  });
@@ -34010,6 +34091,12 @@ Object.freeze({
34010
34091
  addonId: null,
34011
34092
  access: "view"
34012
34093
  },
34094
+ "recordingSignal.getStatus": {
34095
+ capName: "recording-signal",
34096
+ capScope: "device",
34097
+ addonId: null,
34098
+ access: "view"
34099
+ },
34013
34100
  "sceneMonitor.captureReference": {
34014
34101
  capName: "scene-monitor",
34015
34102
  capScope: "device",
@@ -37002,6 +37089,11 @@ Object.freeze({
37002
37089
  form: "single",
37003
37090
  optional: true
37004
37091
  }],
37092
+ "recordingSignal.getStatus": [{
37093
+ name: "deviceId",
37094
+ form: "single",
37095
+ optional: false
37096
+ }],
37005
37097
  "sceneMonitor.captureReference": [{
37006
37098
  name: "deviceId",
37007
37099
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.70",
3
+ "version": "1.2.72",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",