@camstack/addon-smtp-nodemailer 1.2.102 → 1.2.104

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.
@@ -19062,13 +19062,26 @@ var TrackAudioLabelSchema = object({
19062
19062
  * - `audio` — an audio event on the camera itself that was anomalous for
19063
19063
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19064
19064
  *
19065
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19066
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19067
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19068
+ * detector.
19069
+ *
19070
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19071
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19072
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19073
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19074
+ * could not name.
19075
+ *
19065
19076
  * The spatial subsystems (tracker association, occupancy count, re-id /
19066
19077
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19067
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19068
- * check silently readmits every source added after it was written.
19078
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19079
+ * `!== 'sensor'` check silently readmits every source added after it was
19080
+ * written.
19069
19081
  */
19070
19082
  var TrackSourceSchema = _enum([
19071
19083
  "pipeline",
19084
+ "onboard",
19072
19085
  "sensor",
19073
19086
  "audio"
19074
19087
  ]);
@@ -19656,6 +19669,7 @@ var MediaFileKindEnum = _enum([
19656
19669
  "keyFrame",
19657
19670
  "keyFrameSmall",
19658
19671
  "thumbnailSmall",
19672
+ "confirmationCrop",
19659
19673
  "sceneFrame"
19660
19674
  ]);
19661
19675
  /**
@@ -21150,13 +21164,39 @@ var MotionSourceEnum = _enum([
21150
21164
  */
21151
21165
  var MotionSourcesSchema = array(MotionSourceEnum);
21152
21166
  /**
21153
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21154
- * post-analysis already tags every detection with (`DetectionSource`) rather
21155
- * than a second spelling of the same two ideas the value an operator picks
21156
- * here is the value that comes back on the track, the overlay and the debug
21157
- * row.
21167
+ * Which root detector a camera runs EXACTLY ONE.
21168
+ *
21169
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21170
+ * with (`DetectionSource`) rather than a second spelling of the same two
21171
+ * ideas: the value an operator picks here is the value that comes back on the
21172
+ * track, the overlay and the debug row.
21173
+ *
21174
+ * ## Why one, and why it is still an array
21175
+ *
21176
+ * Two roots on one camera is a capability nobody asked for and the operator has
21177
+ * since ruled out. It was never free: both planes feed the SAME per-device
21178
+ * stationary registry, both can promote the same parked object, and the two
21179
+ * detectors disagree about the same box by construction — which is the
21180
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21181
+ *
21182
+ * The ARRAY shape survives because the stored settings and the attach payload
21183
+ * already speak it on every camera of every fleet, and a cap input that
21184
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21185
+ * in the one direction that costs an operator their cameras. So the wire stays
21186
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21187
+ * element rather than refused, and `max(1)` is what every consumer can then
21188
+ * rely on.
21189
+ *
21190
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21191
+ * a camera an operator left with no root detector — and `planDetectionSources`
21192
+ * has always said so: inventing a root for them is how a default acts without
21193
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21194
+ * suite caught it.
21195
+ *
21196
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21197
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21158
21198
  */
21159
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21199
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21160
21200
  /**
21161
21201
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21162
21202
  * so cap-side consumers (the orchestrator forward, the runner addon's
@@ -19060,13 +19060,26 @@ var TrackAudioLabelSchema = object({
19060
19060
  * - `audio` — an audio event on the camera itself that was anomalous for
19061
19061
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19062
19062
  *
19063
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19064
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19065
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19066
+ * detector.
19067
+ *
19068
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19069
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19070
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19071
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19072
+ * could not name.
19073
+ *
19063
19074
  * The spatial subsystems (tracker association, occupancy count, re-id /
19064
19075
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19065
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19066
- * check silently readmits every source added after it was written.
19076
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19077
+ * `!== 'sensor'` check silently readmits every source added after it was
19078
+ * written.
19067
19079
  */
19068
19080
  var TrackSourceSchema = _enum([
19069
19081
  "pipeline",
19082
+ "onboard",
19070
19083
  "sensor",
19071
19084
  "audio"
19072
19085
  ]);
@@ -19654,6 +19667,7 @@ var MediaFileKindEnum = _enum([
19654
19667
  "keyFrame",
19655
19668
  "keyFrameSmall",
19656
19669
  "thumbnailSmall",
19670
+ "confirmationCrop",
19657
19671
  "sceneFrame"
19658
19672
  ]);
19659
19673
  /**
@@ -21148,13 +21162,39 @@ var MotionSourceEnum = _enum([
21148
21162
  */
21149
21163
  var MotionSourcesSchema = array(MotionSourceEnum);
21150
21164
  /**
21151
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21152
- * post-analysis already tags every detection with (`DetectionSource`) rather
21153
- * than a second spelling of the same two ideas the value an operator picks
21154
- * here is the value that comes back on the track, the overlay and the debug
21155
- * row.
21165
+ * Which root detector a camera runs EXACTLY ONE.
21166
+ *
21167
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21168
+ * with (`DetectionSource`) rather than a second spelling of the same two
21169
+ * ideas: the value an operator picks here is the value that comes back on the
21170
+ * track, the overlay and the debug row.
21171
+ *
21172
+ * ## Why one, and why it is still an array
21173
+ *
21174
+ * Two roots on one camera is a capability nobody asked for and the operator has
21175
+ * since ruled out. It was never free: both planes feed the SAME per-device
21176
+ * stationary registry, both can promote the same parked object, and the two
21177
+ * detectors disagree about the same box by construction — which is the
21178
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21179
+ *
21180
+ * The ARRAY shape survives because the stored settings and the attach payload
21181
+ * already speak it on every camera of every fleet, and a cap input that
21182
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21183
+ * in the one direction that costs an operator their cameras. So the wire stays
21184
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21185
+ * element rather than refused, and `max(1)` is what every consumer can then
21186
+ * rely on.
21187
+ *
21188
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21189
+ * a camera an operator left with no root detector — and `planDetectionSources`
21190
+ * has always said so: inventing a root for them is how a default acts without
21191
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21192
+ * suite caught it.
21193
+ *
21194
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21195
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21156
21196
  */
21157
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21197
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21158
21198
  /**
21159
21199
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21160
21200
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.102",
3
+ "version": "1.2.104",
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",