@camstack/addon-smtp-nodemailer 1.2.85 → 1.2.87
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 +203 -1
- package/dist/smtp.addon.mjs +203 -1
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -7649,6 +7649,186 @@ var CameraSwitchGroupSchema = object({
|
|
|
7649
7649
|
fetchedAt: number()
|
|
7650
7650
|
});
|
|
7651
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
|
+
});
|
|
7802
|
+
/** One archived note — the operator's words plus enough context to find what
|
|
7803
|
+
* they were looking at, after the track itself is gone. */
|
|
7804
|
+
var ArchivedDebugNoteSchema = object({
|
|
7805
|
+
/** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
|
|
7806
|
+
* same sentence about the same track lands on the row already there. */
|
|
7807
|
+
id: string(),
|
|
7808
|
+
/** The operator's own words, verbatim. */
|
|
7809
|
+
note: string(),
|
|
7810
|
+
/** The camera. Required — every question here is asked per-camera. */
|
|
7811
|
+
deviceId: number().int(),
|
|
7812
|
+
/** The track the note was written on. PROVENANCE, not ownership: the track
|
|
7813
|
+
* is expected to be gone, and this row is not a reference to it. */
|
|
7814
|
+
sourceTrackId: string(),
|
|
7815
|
+
/** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
|
|
7816
|
+
archivedAt: number().int(),
|
|
7817
|
+
/** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
|
|
7818
|
+
trackStartedAt: number().int().nullable(),
|
|
7819
|
+
/** The track's detector class (`person`, `car`, …); `null` when unknown. */
|
|
7820
|
+
trackClass: string().nullable(),
|
|
7821
|
+
/** The track's display label at review time; `null` when it had none. */
|
|
7822
|
+
trackLabel: string().nullable()
|
|
7823
|
+
});
|
|
7824
|
+
/** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
|
|
7825
|
+
var ArchivedDebugNoteQueryInputSchema = object({
|
|
7826
|
+
/** Restrict to a single camera; omit for every row. */
|
|
7827
|
+
deviceId: number().int().optional(),
|
|
7828
|
+
/** Max rows returned, newest-first. */
|
|
7829
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
7830
|
+
});
|
|
7831
|
+
/**
|
|
7652
7832
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
7653
7833
|
* recordings and events management surfaces.
|
|
7654
7834
|
*
|
|
@@ -19743,7 +19923,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19743
19923
|
deviceId: number(),
|
|
19744
19924
|
trackId: string(),
|
|
19745
19925
|
flags: TrackFlagsPatchSchema
|
|
19746
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
|
|
19926
|
+
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
19747
19927
|
kind: "query",
|
|
19748
19928
|
auth: "admin"
|
|
19749
19929
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -33154,6 +33334,18 @@ Object.freeze({
|
|
|
33154
33334
|
addonId: null,
|
|
33155
33335
|
access: "view"
|
|
33156
33336
|
},
|
|
33337
|
+
"pipelineAnalytics.listArchivedDebugNotes": {
|
|
33338
|
+
capName: "pipeline-analytics",
|
|
33339
|
+
capScope: "device",
|
|
33340
|
+
addonId: null,
|
|
33341
|
+
access: "view"
|
|
33342
|
+
},
|
|
33343
|
+
"pipelineAnalytics.listBirthDecisions": {
|
|
33344
|
+
capName: "pipeline-analytics",
|
|
33345
|
+
capScope: "device",
|
|
33346
|
+
addonId: null,
|
|
33347
|
+
access: "view"
|
|
33348
|
+
},
|
|
33157
33349
|
"pipelineAnalytics.listEventKinds": {
|
|
33158
33350
|
capName: "pipeline-analytics",
|
|
33159
33351
|
capScope: "device",
|
|
@@ -36941,6 +37133,16 @@ Object.freeze({
|
|
|
36941
37133
|
form: "array",
|
|
36942
37134
|
optional: true
|
|
36943
37135
|
}],
|
|
37136
|
+
"pipelineAnalytics.listArchivedDebugNotes": [{
|
|
37137
|
+
name: "deviceId",
|
|
37138
|
+
form: "single",
|
|
37139
|
+
optional: true
|
|
37140
|
+
}],
|
|
37141
|
+
"pipelineAnalytics.listBirthDecisions": [{
|
|
37142
|
+
name: "deviceId",
|
|
37143
|
+
form: "single",
|
|
37144
|
+
optional: true
|
|
37145
|
+
}],
|
|
36944
37146
|
"pipelineAnalytics.listEventKinds": [{
|
|
36945
37147
|
name: "deviceId",
|
|
36946
37148
|
form: "single",
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -7647,6 +7647,186 @@ var CameraSwitchGroupSchema = object({
|
|
|
7647
7647
|
fetchedAt: number()
|
|
7648
7648
|
});
|
|
7649
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
|
+
});
|
|
7800
|
+
/** One archived note — the operator's words plus enough context to find what
|
|
7801
|
+
* they were looking at, after the track itself is gone. */
|
|
7802
|
+
var ArchivedDebugNoteSchema = object({
|
|
7803
|
+
/** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
|
|
7804
|
+
* same sentence about the same track lands on the row already there. */
|
|
7805
|
+
id: string(),
|
|
7806
|
+
/** The operator's own words, verbatim. */
|
|
7807
|
+
note: string(),
|
|
7808
|
+
/** The camera. Required — every question here is asked per-camera. */
|
|
7809
|
+
deviceId: number().int(),
|
|
7810
|
+
/** The track the note was written on. PROVENANCE, not ownership: the track
|
|
7811
|
+
* is expected to be gone, and this row is not a reference to it. */
|
|
7812
|
+
sourceTrackId: string(),
|
|
7813
|
+
/** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
|
|
7814
|
+
archivedAt: number().int(),
|
|
7815
|
+
/** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
|
|
7816
|
+
trackStartedAt: number().int().nullable(),
|
|
7817
|
+
/** The track's detector class (`person`, `car`, …); `null` when unknown. */
|
|
7818
|
+
trackClass: string().nullable(),
|
|
7819
|
+
/** The track's display label at review time; `null` when it had none. */
|
|
7820
|
+
trackLabel: string().nullable()
|
|
7821
|
+
});
|
|
7822
|
+
/** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
|
|
7823
|
+
var ArchivedDebugNoteQueryInputSchema = object({
|
|
7824
|
+
/** Restrict to a single camera; omit for every row. */
|
|
7825
|
+
deviceId: number().int().optional(),
|
|
7826
|
+
/** Max rows returned, newest-first. */
|
|
7827
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
7828
|
+
});
|
|
7829
|
+
/**
|
|
7650
7830
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
7651
7831
|
* recordings and events management surfaces.
|
|
7652
7832
|
*
|
|
@@ -19741,7 +19921,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19741
19921
|
deviceId: number(),
|
|
19742
19922
|
trackId: string(),
|
|
19743
19923
|
flags: TrackFlagsPatchSchema
|
|
19744
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
|
|
19924
|
+
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
19745
19925
|
kind: "query",
|
|
19746
19926
|
auth: "admin"
|
|
19747
19927
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -33152,6 +33332,18 @@ Object.freeze({
|
|
|
33152
33332
|
addonId: null,
|
|
33153
33333
|
access: "view"
|
|
33154
33334
|
},
|
|
33335
|
+
"pipelineAnalytics.listArchivedDebugNotes": {
|
|
33336
|
+
capName: "pipeline-analytics",
|
|
33337
|
+
capScope: "device",
|
|
33338
|
+
addonId: null,
|
|
33339
|
+
access: "view"
|
|
33340
|
+
},
|
|
33341
|
+
"pipelineAnalytics.listBirthDecisions": {
|
|
33342
|
+
capName: "pipeline-analytics",
|
|
33343
|
+
capScope: "device",
|
|
33344
|
+
addonId: null,
|
|
33345
|
+
access: "view"
|
|
33346
|
+
},
|
|
33155
33347
|
"pipelineAnalytics.listEventKinds": {
|
|
33156
33348
|
capName: "pipeline-analytics",
|
|
33157
33349
|
capScope: "device",
|
|
@@ -36939,6 +37131,16 @@ Object.freeze({
|
|
|
36939
37131
|
form: "array",
|
|
36940
37132
|
optional: true
|
|
36941
37133
|
}],
|
|
37134
|
+
"pipelineAnalytics.listArchivedDebugNotes": [{
|
|
37135
|
+
name: "deviceId",
|
|
37136
|
+
form: "single",
|
|
37137
|
+
optional: true
|
|
37138
|
+
}],
|
|
37139
|
+
"pipelineAnalytics.listBirthDecisions": [{
|
|
37140
|
+
name: "deviceId",
|
|
37141
|
+
form: "single",
|
|
37142
|
+
optional: true
|
|
37143
|
+
}],
|
|
36942
37144
|
"pipelineAnalytics.listEventKinds": [{
|
|
36943
37145
|
name: "deviceId",
|
|
36944
37146
|
form: "single",
|
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.87",
|
|
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",
|