@camstack/addon-smtp-nodemailer 1.2.102 → 1.2.103
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/smtp.addon.js +47 -8
- package/dist/smtp.addon.mjs +47 -8
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -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
|
|
19068
|
-
* check silently readmits every source added after it was
|
|
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
|
]);
|
|
@@ -21150,13 +21163,39 @@ var MotionSourceEnum = _enum([
|
|
|
21150
21163
|
*/
|
|
21151
21164
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21152
21165
|
/**
|
|
21153
|
-
* Which root
|
|
21154
|
-
*
|
|
21155
|
-
*
|
|
21156
|
-
*
|
|
21157
|
-
*
|
|
21166
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21167
|
+
*
|
|
21168
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21169
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21170
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21171
|
+
* track, the overlay and the debug row.
|
|
21172
|
+
*
|
|
21173
|
+
* ## Why one, and why it is still an array
|
|
21174
|
+
*
|
|
21175
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21176
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21177
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21178
|
+
* detectors disagree about the same box by construction — which is the
|
|
21179
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21180
|
+
*
|
|
21181
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21182
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21183
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21184
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21185
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21186
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21187
|
+
* rely on.
|
|
21188
|
+
*
|
|
21189
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21190
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21191
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21192
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21193
|
+
* suite caught it.
|
|
21194
|
+
*
|
|
21195
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21196
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21158
21197
|
*/
|
|
21159
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21198
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21160
21199
|
/**
|
|
21161
21200
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21162
21201
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -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
|
|
19066
|
-
* check silently readmits every source added after it was
|
|
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
|
]);
|
|
@@ -21148,13 +21161,39 @@ var MotionSourceEnum = _enum([
|
|
|
21148
21161
|
*/
|
|
21149
21162
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21150
21163
|
/**
|
|
21151
|
-
* Which root
|
|
21152
|
-
*
|
|
21153
|
-
*
|
|
21154
|
-
*
|
|
21155
|
-
*
|
|
21164
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21165
|
+
*
|
|
21166
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21167
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21168
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21169
|
+
* track, the overlay and the debug row.
|
|
21170
|
+
*
|
|
21171
|
+
* ## Why one, and why it is still an array
|
|
21172
|
+
*
|
|
21173
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21174
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21175
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21176
|
+
* detectors disagree about the same box by construction — which is the
|
|
21177
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21178
|
+
*
|
|
21179
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21180
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21181
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21182
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21183
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21184
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21185
|
+
* rely on.
|
|
21186
|
+
*
|
|
21187
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21188
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21189
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21190
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21191
|
+
* suite caught it.
|
|
21192
|
+
*
|
|
21193
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21194
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21156
21195
|
*/
|
|
21157
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21196
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21158
21197
|
/**
|
|
21159
21198
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21160
21199
|
* 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.
|
|
3
|
+
"version": "1.2.103",
|
|
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",
|