@camstack/addon-smtp-nodemailer 1.2.86 → 1.2.88

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.
@@ -7648,6 +7648,157 @@ var CameraSwitchGroupSchema = object({
7648
7648
  /** Unix ms when the group was composed server-side. */
7649
7649
  fetchedAt: number()
7650
7650
  });
7651
+ /**
7652
+ * What the gate decided about a birth, from the CALLER's point of view.
7653
+ *
7654
+ * Deliberately not `ConfirmationVerdict`: `undecided` is not a birth decision
7655
+ * at all — it is a deferral, and the row is written when the deferral ENDS.
7656
+ * The third member is the one the gate's own type cannot express, because
7657
+ * exhaustion is a property of how long the caller waited.
7658
+ */
7659
+ var BirthDecisionVerdictSchema = _enum([
7660
+ "confirmed",
7661
+ "suppressed",
7662
+ "exhausted-fallback"
7663
+ ]);
7664
+ /** One birth decision, as it is kept. */
7665
+ var BirthDecisionRecordSchema = object({
7666
+ id: string(),
7667
+ /** Epoch ms the VERDICT was taken (not the birth instant — see `firstSeen`). */
7668
+ at: number().int(),
7669
+ /** The camera. Required: every question here is asked per-camera. */
7670
+ deviceId: number().int(),
7671
+ /**
7672
+ * The track the decision was about. PROVENANCE, not ownership — a suppressed
7673
+ * birth has no track at all, and a confirmed one is expected to age out long
7674
+ * before this row does. Named `sourceTrackId` so the retention model's
7675
+ * ownership derivation (`collection-classification.ts`, which keys on a
7676
+ * column literally called `trackId`) cannot reach it.
7677
+ */
7678
+ sourceTrackId: string(),
7679
+ /** The candidate's claimed class. The miss rate is asked per class too. */
7680
+ className: string(),
7681
+ verdict: BirthDecisionVerdictSchema,
7682
+ /**
7683
+ * The gate's own `ConfirmationReason` (`confirmed`, `suppressed`,
7684
+ * `native-pass`, `no-crop`, `timeout`, `carried-inconclusive`, …), or `null`
7685
+ * when the gate is DISABLED and every birth is waved through. `null` is not
7686
+ * "unknown": it says the gate took no measurement because it was off, which
7687
+ * is a different population and must never be averaged in with the rest.
7688
+ */
7689
+ reason: string().nullable(),
7690
+ /** Deferral attempts this birth used. 0 = decided on its first look. */
7691
+ attempts: number().int(),
7692
+ /** Ms from the FIRST undecided attempt to this verdict. 0 = never deferred. */
7693
+ deferredForMs: number().int(),
7694
+ /**
7695
+ * THE COLUMN THE RE-OFFER DEFECT IS COUNTED IN.
7696
+ *
7697
+ * `true` when the frame the verdict was taken on carried no matched
7698
+ * detection for this track — the tracker was coasting a frozen box and the
7699
+ * subject was not observed. The deferred-birth re-offer pulls the candidate
7700
+ * straight out of `result.tracked` without checking, so this is reachable
7701
+ * today; the question is the RATE, per camera, and whether refusing those
7702
+ * frames would have cost real tracks (cross-read against `verdict` and
7703
+ * `decidedByBirthEvidence`).
7704
+ */
7705
+ decidedOnCoastedFrame: boolean(),
7706
+ /** Were D379 birth-instant pixels in hand when this candidate was submitted? */
7707
+ birthEvidenceAvailable: boolean(),
7708
+ /**
7709
+ * Did those pixels DECIDE it (`cropSource === 'carried'`)? Available and
7710
+ * deciding are different: the carried crop is confirm-only, so a candidate
7711
+ * can hold evidence, be found inconclusive on it, and be decided by a native
7712
+ * crop of a later instant. A coasted decision backed by carried evidence is
7713
+ * a real observation of the birth instant; one without it is not.
7714
+ */
7715
+ decidedByBirthEvidence: boolean(),
7716
+ /** Best class-compatible crop score, or `null` when nothing compatible was
7717
+ * found — deliberately not 0, which would be a measurement that never was. */
7718
+ bestScore: number().nullable(),
7719
+ /** The bar this candidate actually faced (the phantom-cell hook may raise it). */
7720
+ appliedMinConfidence: number().nullable(),
7721
+ /**
7722
+ * The track's own `firstSeen` — the candidate's first frame, which is where
7723
+ * the timeline starts. `null` for a suppressed birth, which has no track.
7724
+ */
7725
+ firstSeen: number().int().nullable(),
7726
+ /**
7727
+ * The device's most recent motion RISING EDGE at the moment of the decision,
7728
+ * or `null` when there is none, it is older than
7729
+ * {@link MAX_BIRTH_LATENCY_PROXY_MS}, or this runner never saw one.
7730
+ */
7731
+ motionOnsetAt: number().int().nullable(),
7732
+ /**
7733
+ * `firstSeen − motionOnsetAt` — THE OPERATOR'S COMPLAINT, IN MILLISECONDS,
7734
+ * AND THE WEAKEST NUMBER IN THIS ROW. Read the error bars before quoting it.
7735
+ *
7736
+ * **Why motion onset and not something else.** Two other proxies were
7737
+ * considered and rejected:
7738
+ * - *the recording/pipeline session start*: for a camera on
7739
+ * `detectionMode: 'always'` the session opens at process start, hours
7740
+ * before any subject. It measures nothing.
7741
+ * - *the first detection on the device in this burst*: CIRCULAR. A track's
7742
+ * `firstSeen` IS the first detection of that object, so for the track that
7743
+ * OPENS a burst — the only one the operator is complaining about — the two
7744
+ * are the same instant and the latency is 0 by construction.
7745
+ * Motion onset is the only in-process signal produced by a DIFFERENT
7746
+ * mechanism from the object detector, so it is the only one that can precede
7747
+ * it. It is also already maintained per-device at frame rate on this very
7748
+ * node (`handleMotionAnalysis` / `handleOnboardMotion`), which is what makes
7749
+ * it free — and, decisively, the frame path and the motion path are gated to
7750
+ * the SAME designated post-processing node, so the mirror is never empty for
7751
+ * a camera whose births land here.
7752
+ *
7753
+ * **Error bars, all of them.**
7754
+ * 1. *Motion has no class.* A burst opened by rain, a headlight sweeping a
7755
+ * wall or a branch, and only later joined by the person, OVERSTATES the
7756
+ * latency without bound. Mitigated, never removed, by
7757
+ * {@link BirthDecisionRecord.birthIndexInBurst}: only index 0 is a
7758
+ * candidate for "this burst is this subject", and even then it is a
7759
+ * candidate, not a fact.
7760
+ * 2. *The sign is not guaranteed.* The analyzer needs a pixel-count and
7761
+ * intensity threshold. A subject entering slowly at the far edge of the
7762
+ * frame can clear the detector's confidence floor BEFORE it clears the
7763
+ * motion floor, making this negative. Negatives are stored as-is and
7764
+ * never clamped — clamping would fabricate the distribution's left tail,
7765
+ * which is the half that says the proxy is unreliable.
7766
+ * 3. *Onboard motion carries firmware latency of unknown, per-model offset*
7767
+ * (hundreds of ms), plus camera-vs-hub clock skew on top. Numbers are
7768
+ * therefore comparable WITHIN a camera and not across cameras of
7769
+ * different motion sources. The motion source is deliberately not copied
7770
+ * here — it belongs to the addon that owns the device (D224) and this is
7771
+ * a write on the frame path — so group by `deviceId`, which is how the
7772
+ * question is always asked anyway.
7773
+ * 4. *Continuous motion.* On a busy scene the burst never closes and the
7774
+ * onset is minutes old. Bounded by {@link MAX_BIRTH_LATENCY_PROXY_MS};
7775
+ * past it this is `null`.
7776
+ * 5. *No motion signal at all* — analyzer off, onboard-only camera not
7777
+ * reporting, or nothing since boot: `null`. Which is the truth about a
7778
+ * camera nobody has a reference instant for.
7779
+ *
7780
+ * So this is a per-camera DISTRIBUTION over index-0 births, and it is honest
7781
+ * as such. It is not a per-track fact and must never be shown as one.
7782
+ */
7783
+ birthLatencyMs: number().int().nullable(),
7784
+ /**
7785
+ * How many births this device has already decided since that motion onset.
7786
+ * 0 = the first, i.e. the only index at which the burst plausibly belongs to
7787
+ * this subject. `null` when there is no usable onset.
7788
+ */
7789
+ birthIndexInBurst: number().int().nullable()
7790
+ });
7791
+ /** Query input for `listBirthDecisions` — newest first, one camera or all. */
7792
+ var BirthDecisionQueryInputSchema = object({
7793
+ /** Restrict to a single camera; omit for every row. */
7794
+ deviceId: number().int().optional(),
7795
+ /** Only decisions at or after this epoch ms. */
7796
+ since: number().int().optional(),
7797
+ /** Restrict to one verdict — the miss rate is read one population at a time. */
7798
+ verdict: BirthDecisionVerdictSchema.optional(),
7799
+ /** Max rows returned, newest-first. */
7800
+ limit: number().int().min(1).max(5e3).optional()
7801
+ });
7651
7802
  /** One archived note — the operator's words plus enough context to find what
7652
7803
  * they were looking at, after the track itself is gone. */
7653
7804
  var ArchivedDebugNoteSchema = object({
@@ -19772,7 +19923,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19772
19923
  deviceId: number(),
19773
19924
  trackId: string(),
19774
19925
  flags: TrackFlagsPatchSchema
19775
- }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19926
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19776
19927
  kind: "query",
19777
19928
  auth: "admin"
19778
19929
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -20214,6 +20365,22 @@ var occupancyRecheckFramesField = {
20214
20365
  step: 1
20215
20366
  };
20216
20367
  /**
20368
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20369
+ *
20370
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20371
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20372
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20373
+ * spare for live. `0` turns the burst off entirely (the history is still
20374
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20375
+ * discarded — the pre-D411 behaviour).
20376
+ */
20377
+ var preRollInferenceFramesField = {
20378
+ min: 0,
20379
+ max: 30,
20380
+ default: 12,
20381
+ step: 1
20382
+ };
20383
+ /**
20217
20384
  * Source enum for motion signals fed to the runner. Extensible — add
20218
20385
  * new variants here when new motion-trigger paths are wired in
20219
20386
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20454,6 +20621,31 @@ var RunnerCameraConfigSchema = object({
20454
20621
  * to every occupancy rule until something moved in front of it. The churn is
20455
20622
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20456
20623
  */
20624
+ /**
20625
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20626
+ * at session open — instead of decoding it and throwing it away.
20627
+ *
20628
+ * DEFAULT `true`, and the default is the argument. This is not a new
20629
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20630
+ * already served, already decoded and already paid for on every on-motion
20631
+ * detection session that asks for history. What shipped was a last-moment
20632
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20633
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20634
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20635
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20636
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20637
+ * was decoded, and was freed.
20638
+ *
20639
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20640
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20641
+ * late. What makes ON safe is not a switch but the BOUND —
20642
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20643
+ * the last inference permit — so the switch exists for the camera where the
20644
+ * history is worthless (a doorbell whose subject is always already at the
20645
+ * door), not as a hedge against the feature.
20646
+ */
20647
+ preRollInferenceEnabled: boolean().default(true),
20648
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20457
20649
  occupancyRecheckEnabled: boolean().default(true),
20458
20650
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20459
20651
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20482,7 +20674,7 @@ var RunnerCameraConfigSchema = object({
20482
20674
  */
20483
20675
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20484
20676
  });
20485
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20677
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20486
20678
  /**
20487
20679
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20488
20680
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -33189,6 +33381,12 @@ Object.freeze({
33189
33381
  addonId: null,
33190
33382
  access: "view"
33191
33383
  },
33384
+ "pipelineAnalytics.listBirthDecisions": {
33385
+ capName: "pipeline-analytics",
33386
+ capScope: "device",
33387
+ addonId: null,
33388
+ access: "view"
33389
+ },
33192
33390
  "pipelineAnalytics.listEventKinds": {
33193
33391
  capName: "pipeline-analytics",
33194
33392
  capScope: "device",
@@ -36981,6 +37179,11 @@ Object.freeze({
36981
37179
  form: "single",
36982
37180
  optional: true
36983
37181
  }],
37182
+ "pipelineAnalytics.listBirthDecisions": [{
37183
+ name: "deviceId",
37184
+ form: "single",
37185
+ optional: true
37186
+ }],
36984
37187
  "pipelineAnalytics.listEventKinds": [{
36985
37188
  name: "deviceId",
36986
37189
  form: "single",
@@ -7646,6 +7646,157 @@ var CameraSwitchGroupSchema = object({
7646
7646
  /** Unix ms when the group was composed server-side. */
7647
7647
  fetchedAt: number()
7648
7648
  });
7649
+ /**
7650
+ * What the gate decided about a birth, from the CALLER's point of view.
7651
+ *
7652
+ * Deliberately not `ConfirmationVerdict`: `undecided` is not a birth decision
7653
+ * at all — it is a deferral, and the row is written when the deferral ENDS.
7654
+ * The third member is the one the gate's own type cannot express, because
7655
+ * exhaustion is a property of how long the caller waited.
7656
+ */
7657
+ var BirthDecisionVerdictSchema = _enum([
7658
+ "confirmed",
7659
+ "suppressed",
7660
+ "exhausted-fallback"
7661
+ ]);
7662
+ /** One birth decision, as it is kept. */
7663
+ var BirthDecisionRecordSchema = object({
7664
+ id: string(),
7665
+ /** Epoch ms the VERDICT was taken (not the birth instant — see `firstSeen`). */
7666
+ at: number().int(),
7667
+ /** The camera. Required: every question here is asked per-camera. */
7668
+ deviceId: number().int(),
7669
+ /**
7670
+ * The track the decision was about. PROVENANCE, not ownership — a suppressed
7671
+ * birth has no track at all, and a confirmed one is expected to age out long
7672
+ * before this row does. Named `sourceTrackId` so the retention model's
7673
+ * ownership derivation (`collection-classification.ts`, which keys on a
7674
+ * column literally called `trackId`) cannot reach it.
7675
+ */
7676
+ sourceTrackId: string(),
7677
+ /** The candidate's claimed class. The miss rate is asked per class too. */
7678
+ className: string(),
7679
+ verdict: BirthDecisionVerdictSchema,
7680
+ /**
7681
+ * The gate's own `ConfirmationReason` (`confirmed`, `suppressed`,
7682
+ * `native-pass`, `no-crop`, `timeout`, `carried-inconclusive`, …), or `null`
7683
+ * when the gate is DISABLED and every birth is waved through. `null` is not
7684
+ * "unknown": it says the gate took no measurement because it was off, which
7685
+ * is a different population and must never be averaged in with the rest.
7686
+ */
7687
+ reason: string().nullable(),
7688
+ /** Deferral attempts this birth used. 0 = decided on its first look. */
7689
+ attempts: number().int(),
7690
+ /** Ms from the FIRST undecided attempt to this verdict. 0 = never deferred. */
7691
+ deferredForMs: number().int(),
7692
+ /**
7693
+ * THE COLUMN THE RE-OFFER DEFECT IS COUNTED IN.
7694
+ *
7695
+ * `true` when the frame the verdict was taken on carried no matched
7696
+ * detection for this track — the tracker was coasting a frozen box and the
7697
+ * subject was not observed. The deferred-birth re-offer pulls the candidate
7698
+ * straight out of `result.tracked` without checking, so this is reachable
7699
+ * today; the question is the RATE, per camera, and whether refusing those
7700
+ * frames would have cost real tracks (cross-read against `verdict` and
7701
+ * `decidedByBirthEvidence`).
7702
+ */
7703
+ decidedOnCoastedFrame: boolean(),
7704
+ /** Were D379 birth-instant pixels in hand when this candidate was submitted? */
7705
+ birthEvidenceAvailable: boolean(),
7706
+ /**
7707
+ * Did those pixels DECIDE it (`cropSource === 'carried'`)? Available and
7708
+ * deciding are different: the carried crop is confirm-only, so a candidate
7709
+ * can hold evidence, be found inconclusive on it, and be decided by a native
7710
+ * crop of a later instant. A coasted decision backed by carried evidence is
7711
+ * a real observation of the birth instant; one without it is not.
7712
+ */
7713
+ decidedByBirthEvidence: boolean(),
7714
+ /** Best class-compatible crop score, or `null` when nothing compatible was
7715
+ * found — deliberately not 0, which would be a measurement that never was. */
7716
+ bestScore: number().nullable(),
7717
+ /** The bar this candidate actually faced (the phantom-cell hook may raise it). */
7718
+ appliedMinConfidence: number().nullable(),
7719
+ /**
7720
+ * The track's own `firstSeen` — the candidate's first frame, which is where
7721
+ * the timeline starts. `null` for a suppressed birth, which has no track.
7722
+ */
7723
+ firstSeen: number().int().nullable(),
7724
+ /**
7725
+ * The device's most recent motion RISING EDGE at the moment of the decision,
7726
+ * or `null` when there is none, it is older than
7727
+ * {@link MAX_BIRTH_LATENCY_PROXY_MS}, or this runner never saw one.
7728
+ */
7729
+ motionOnsetAt: number().int().nullable(),
7730
+ /**
7731
+ * `firstSeen − motionOnsetAt` — THE OPERATOR'S COMPLAINT, IN MILLISECONDS,
7732
+ * AND THE WEAKEST NUMBER IN THIS ROW. Read the error bars before quoting it.
7733
+ *
7734
+ * **Why motion onset and not something else.** Two other proxies were
7735
+ * considered and rejected:
7736
+ * - *the recording/pipeline session start*: for a camera on
7737
+ * `detectionMode: 'always'` the session opens at process start, hours
7738
+ * before any subject. It measures nothing.
7739
+ * - *the first detection on the device in this burst*: CIRCULAR. A track's
7740
+ * `firstSeen` IS the first detection of that object, so for the track that
7741
+ * OPENS a burst — the only one the operator is complaining about — the two
7742
+ * are the same instant and the latency is 0 by construction.
7743
+ * Motion onset is the only in-process signal produced by a DIFFERENT
7744
+ * mechanism from the object detector, so it is the only one that can precede
7745
+ * it. It is also already maintained per-device at frame rate on this very
7746
+ * node (`handleMotionAnalysis` / `handleOnboardMotion`), which is what makes
7747
+ * it free — and, decisively, the frame path and the motion path are gated to
7748
+ * the SAME designated post-processing node, so the mirror is never empty for
7749
+ * a camera whose births land here.
7750
+ *
7751
+ * **Error bars, all of them.**
7752
+ * 1. *Motion has no class.* A burst opened by rain, a headlight sweeping a
7753
+ * wall or a branch, and only later joined by the person, OVERSTATES the
7754
+ * latency without bound. Mitigated, never removed, by
7755
+ * {@link BirthDecisionRecord.birthIndexInBurst}: only index 0 is a
7756
+ * candidate for "this burst is this subject", and even then it is a
7757
+ * candidate, not a fact.
7758
+ * 2. *The sign is not guaranteed.* The analyzer needs a pixel-count and
7759
+ * intensity threshold. A subject entering slowly at the far edge of the
7760
+ * frame can clear the detector's confidence floor BEFORE it clears the
7761
+ * motion floor, making this negative. Negatives are stored as-is and
7762
+ * never clamped — clamping would fabricate the distribution's left tail,
7763
+ * which is the half that says the proxy is unreliable.
7764
+ * 3. *Onboard motion carries firmware latency of unknown, per-model offset*
7765
+ * (hundreds of ms), plus camera-vs-hub clock skew on top. Numbers are
7766
+ * therefore comparable WITHIN a camera and not across cameras of
7767
+ * different motion sources. The motion source is deliberately not copied
7768
+ * here — it belongs to the addon that owns the device (D224) and this is
7769
+ * a write on the frame path — so group by `deviceId`, which is how the
7770
+ * question is always asked anyway.
7771
+ * 4. *Continuous motion.* On a busy scene the burst never closes and the
7772
+ * onset is minutes old. Bounded by {@link MAX_BIRTH_LATENCY_PROXY_MS};
7773
+ * past it this is `null`.
7774
+ * 5. *No motion signal at all* — analyzer off, onboard-only camera not
7775
+ * reporting, or nothing since boot: `null`. Which is the truth about a
7776
+ * camera nobody has a reference instant for.
7777
+ *
7778
+ * So this is a per-camera DISTRIBUTION over index-0 births, and it is honest
7779
+ * as such. It is not a per-track fact and must never be shown as one.
7780
+ */
7781
+ birthLatencyMs: number().int().nullable(),
7782
+ /**
7783
+ * How many births this device has already decided since that motion onset.
7784
+ * 0 = the first, i.e. the only index at which the burst plausibly belongs to
7785
+ * this subject. `null` when there is no usable onset.
7786
+ */
7787
+ birthIndexInBurst: number().int().nullable()
7788
+ });
7789
+ /** Query input for `listBirthDecisions` — newest first, one camera or all. */
7790
+ var BirthDecisionQueryInputSchema = object({
7791
+ /** Restrict to a single camera; omit for every row. */
7792
+ deviceId: number().int().optional(),
7793
+ /** Only decisions at or after this epoch ms. */
7794
+ since: number().int().optional(),
7795
+ /** Restrict to one verdict — the miss rate is read one population at a time. */
7796
+ verdict: BirthDecisionVerdictSchema.optional(),
7797
+ /** Max rows returned, newest-first. */
7798
+ limit: number().int().min(1).max(5e3).optional()
7799
+ });
7649
7800
  /** One archived note — the operator's words plus enough context to find what
7650
7801
  * they were looking at, after the track itself is gone. */
7651
7802
  var ArchivedDebugNoteSchema = object({
@@ -19770,7 +19921,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19770
19921
  deviceId: number(),
19771
19922
  trackId: string(),
19772
19923
  flags: TrackFlagsPatchSchema
19773
- }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19924
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19774
19925
  kind: "query",
19775
19926
  auth: "admin"
19776
19927
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -20212,6 +20363,22 @@ var occupancyRecheckFramesField = {
20212
20363
  step: 1
20213
20364
  };
20214
20365
  /**
20366
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20367
+ *
20368
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20369
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20370
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20371
+ * spare for live. `0` turns the burst off entirely (the history is still
20372
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20373
+ * discarded — the pre-D411 behaviour).
20374
+ */
20375
+ var preRollInferenceFramesField = {
20376
+ min: 0,
20377
+ max: 30,
20378
+ default: 12,
20379
+ step: 1
20380
+ };
20381
+ /**
20215
20382
  * Source enum for motion signals fed to the runner. Extensible — add
20216
20383
  * new variants here when new motion-trigger paths are wired in
20217
20384
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20452,6 +20619,31 @@ var RunnerCameraConfigSchema = object({
20452
20619
  * to every occupancy rule until something moved in front of it. The churn is
20453
20620
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20454
20621
  */
20622
+ /**
20623
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20624
+ * at session open — instead of decoding it and throwing it away.
20625
+ *
20626
+ * DEFAULT `true`, and the default is the argument. This is not a new
20627
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20628
+ * already served, already decoded and already paid for on every on-motion
20629
+ * detection session that asks for history. What shipped was a last-moment
20630
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20631
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20632
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20633
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20634
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20635
+ * was decoded, and was freed.
20636
+ *
20637
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20638
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20639
+ * late. What makes ON safe is not a switch but the BOUND —
20640
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20641
+ * the last inference permit — so the switch exists for the camera where the
20642
+ * history is worthless (a doorbell whose subject is always already at the
20643
+ * door), not as a hedge against the feature.
20644
+ */
20645
+ preRollInferenceEnabled: boolean().default(true),
20646
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20455
20647
  occupancyRecheckEnabled: boolean().default(true),
20456
20648
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20457
20649
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20480,7 +20672,7 @@ var RunnerCameraConfigSchema = object({
20480
20672
  */
20481
20673
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20482
20674
  });
20483
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20675
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20484
20676
  /**
20485
20677
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20486
20678
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -33187,6 +33379,12 @@ Object.freeze({
33187
33379
  addonId: null,
33188
33380
  access: "view"
33189
33381
  },
33382
+ "pipelineAnalytics.listBirthDecisions": {
33383
+ capName: "pipeline-analytics",
33384
+ capScope: "device",
33385
+ addonId: null,
33386
+ access: "view"
33387
+ },
33190
33388
  "pipelineAnalytics.listEventKinds": {
33191
33389
  capName: "pipeline-analytics",
33192
33390
  capScope: "device",
@@ -36979,6 +37177,11 @@ Object.freeze({
36979
37177
  form: "single",
36980
37178
  optional: true
36981
37179
  }],
37180
+ "pipelineAnalytics.listBirthDecisions": [{
37181
+ name: "deviceId",
37182
+ form: "single",
37183
+ optional: true
37184
+ }],
36982
37185
  "pipelineAnalytics.listEventKinds": [{
36983
37186
  name: "deviceId",
36984
37187
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.86",
3
+ "version": "1.2.88",
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",