@camstack/addon-smtp-nodemailer 1.2.89 → 1.2.91

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.
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-CnLqLOKs.mjs
39
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -628,7 +628,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
628
628
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
629
629
  */
630
630
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
631
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
632
631
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
633
632
  /**
634
633
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12544,7 +12543,7 @@ DeviceType.Camera;
12544
12543
  var SourceInfoSchema = object({
12545
12544
  /** Live dispatch key — mutable when the source system allows rename. */
12546
12545
  id: string(),
12547
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12546
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12548
12547
  system: string(),
12549
12548
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12550
12549
  * Used to detect rename when `id` changes. */
@@ -13031,7 +13030,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13031
13030
  * - `device-management.router.ts` (deleted in Phase 2)
13032
13031
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13033
13032
  *
13034
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13033
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13035
13034
  * fork into separate processes but never run on remote cluster agents. Therefore:
13036
13035
  * - No nodeId routing needed — this is a pure hub singleton.
13037
13036
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17041,7 +17040,7 @@ var NcRuleInputSchema = object({
17041
17040
  * The measured seven-person arrival on device 590 spans 110 s with every
17042
17041
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17043
17042
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17044
- * 30 is Frigate's shipped value for the same decision.
17043
+ * 30 s is a widely shipped value for the same decision.
17045
17044
  *
17046
17045
  * ### What it replaces
17047
17046
  *
@@ -19083,6 +19082,13 @@ var ZoneCrossingSchema = object({
19083
19082
  /** Zone display name at crossing time (falls back to the id). */
19084
19083
  zoneName: string().optional()
19085
19084
  });
19085
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19086
+ var ZoneOverlapSchema = object({
19087
+ zoneId: string(),
19088
+ zoneName: string().optional(),
19089
+ /** Percentage of the BOX area inside the zone, 0–100. */
19090
+ overlapPct: number()
19091
+ });
19086
19092
  var ObjectEventSchema = object({
19087
19093
  ...BaseEventFields,
19088
19094
  kind: literal("object"),
@@ -19107,6 +19113,35 @@ var ObjectEventSchema = object({
19107
19113
  bbox: BoundingBoxSchema.optional(),
19108
19114
  /** Heavy JSON — omitted in slim projection. */
19109
19115
  zones: array(string()).readonly().optional(),
19116
+ /**
19117
+ * How far inside each stamped zone the box actually was, as a percentage of
19118
+ * the BOX area.
19119
+ *
19120
+ * Membership alone cannot express "at least a third of it inside", which is
19121
+ * the bar an operator argues with — and the number already existed: the
19122
+ * engine computed it, the pipeline logged it, and then discarded it. It
19123
+ * matters most on the events that carry no track, where a rule has nothing
19124
+ * else to judge by.
19125
+ */
19126
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19127
+ /**
19128
+ * Present when this event describes a detection the TRACKER refused, so it
19129
+ * has no track and never will.
19130
+ *
19131
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19132
+ * NOW?"; tracking answers a different question ("is this the same subject as
19133
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19134
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19135
+ * seconds with three different candidate ids — seven analysed frames in the
19136
+ * window, the subject in a handful of them, metres apart — and produced no
19137
+ * event at all.
19138
+ *
19139
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19140
+ * with no track and no reason is indistinguishable from a track whose media
19141
+ * went missing, and a consumer that asks this one for a best shot or a
19142
+ * history is asking for something that never existed.
19143
+ */
19144
+ spawnRefused: string().optional(),
19110
19145
  /** Omitted in slim projection. */
19111
19146
  state: TrackStateSchema.optional(),
19112
19147
  /**
@@ -20180,6 +20215,60 @@ var NativeCropResultSchema = object({
20180
20215
  */
20181
20216
  tier: _enum(["native", "ram-fullframe"]).optional()
20182
20217
  });
20218
+ /**
20219
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20220
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20221
+ *
20222
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20223
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20224
+ * from, and what the detail plane's full-frame rung cuts from.
20225
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20226
+ * window, cut by the runner at uncapped native resolution.
20227
+ *
20228
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20229
+ */
20230
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20231
+ /**
20232
+ * Why a park did NOT happen. Every one is logged on the runner with
20233
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20234
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20235
+ * never a reason to retry in a loop.
20236
+ *
20237
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20238
+ * registered, past the lease bound, or the worker released it). `detail`
20239
+ * carries the runner's own miss reason.
20240
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20241
+ */
20242
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20243
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20244
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20245
+ parked: literal(true),
20246
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20247
+ nodeId: string(),
20248
+ width: number().int().positive(),
20249
+ height: number().int().positive(),
20250
+ /** JPEG bytes the parcel costs on the node. */
20251
+ bytes: number().int().nonnegative(),
20252
+ /** Whether this park replaced a parcel already held for the key. */
20253
+ replaced: boolean()
20254
+ }), object({
20255
+ parked: literal(false),
20256
+ nodeId: string(),
20257
+ reason: ParkRefusalSchema,
20258
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20259
+ handleAgeMs: number().nullable(),
20260
+ detail: string().optional()
20261
+ })]);
20262
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20263
+ var ParkedTrackFrameSchema = object({
20264
+ jpeg: string(),
20265
+ width: number().int().positive(),
20266
+ height: number().int().positive(),
20267
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20268
+ timestamp: number(),
20269
+ /** When the node stored it (the node's clock). */
20270
+ parkedAt: number()
20271
+ });
20183
20272
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20184
20273
  * originating detection, in FRAME-space coordinates. Reuses
20185
20274
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20569,7 +20658,7 @@ var RunnerCameraConfigSchema = object({
20569
20658
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20570
20659
  * analyzer providers) running on decoded frames in this runner.
20571
20660
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20572
- * analytics, Frigate motion). The provider emits ProviderMotion
20661
+ * analytics). The provider emits ProviderMotion
20573
20662
  * events; the orchestrator forwards to `reportMotion`.
20574
20663
  */
20575
20664
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -20811,7 +20900,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20811
20900
  className: string(),
20812
20901
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
20813
20902
  sourceDeviceId: number()
20814
- }), RunStatelessStepResultSchema, { kind: "mutation" });
20903
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
20904
+ deviceId: number(),
20905
+ /** Opaque to the runner — the hub's track id. */
20906
+ trackId: string(),
20907
+ kind: ParkedFrameKindSchema,
20908
+ handle: FrameHandleSchema,
20909
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
20910
+ bbox: NativeCropBboxSchema,
20911
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
20912
+ maxWidth: number().int().positive().optional(),
20913
+ /** The frame instant (caller's clock) — orders parks for one key. */
20914
+ timestamp: number()
20915
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
20916
+ deviceId: number(),
20917
+ trackId: string(),
20918
+ kind: ParkedFrameKindSchema
20919
+ }), ParkedTrackFrameSchema.nullable()), method(object({
20920
+ deviceId: number(),
20921
+ trackId: string()
20922
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
20815
20923
  var CameraPipelineConfigSchema = object({
20816
20924
  engine: PipelineEngineChoiceSchema.optional(),
20817
20925
  steps: array(PipelineStepInputSchema).readonly(),
@@ -23753,7 +23861,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
23753
23861
  *
23754
23862
  * Implementations:
23755
23863
  * - Each camera-providing addon registers this cap natively per
23756
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
23864
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
23757
23865
  * - Returns a snapshot from the persisted device config blob — no
23758
23866
  * extra round-trip to the camera, no probing.
23759
23867
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25139,7 +25247,7 @@ var AvailableIntegrationTypeSchema = object({
25139
25247
  * Which integration-marker cap the addon declared, so the wizard can
25140
25248
  * branch on CAP — never on addon name. `device-adoption` integrations
25141
25249
  * (Home Assistant, …) route through the broker step (Approach A);
25142
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25250
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25143
25251
  * legacy config → discovery flow.
25144
25252
  */
25145
25253
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27696,13 +27804,31 @@ var RecordingManifestSchema = object({
27696
27804
  */
27697
27805
  playbackEndpoints: array(string())
27698
27806
  });
27699
- /** Recording storage usage for one camera (bytes on disk across all its
27700
- * profiles/subtrees/locations on this node). */
27807
+ /**
27808
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
27809
+ * across every profile and every resolvable location on this node.
27810
+ *
27811
+ * ## Archive vs residency, which is the whole point of this shape (D418)
27812
+ *
27813
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
27814
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
27815
+ * this camera writes to, so the two can be added up and compared.
27816
+ *
27817
+ * They were not always. Until D418 this row came from the recorder's in-RAM
27818
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
27819
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
27820
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
27821
+ * that said otherwise, and two people read it as retention eating recent
27822
+ * footage. Residency is still reported, under `residentBytes` /
27823
+ * `residentOldestMs`, which answer a different question and say so.
27824
+ */
27701
27825
  var RecordingDeviceUsageSchema = object({
27702
27826
  deviceId: number(),
27827
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
27828
+ * recordings locations. */
27703
27829
  usedBytes: number(),
27704
27830
  /**
27705
- * Start of this camera's OLDEST indexed segment, across every profile and
27831
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27706
27832
  * location — the "Oldest footage" column in Recordings → Storage, and the
27707
27833
  * only honest answer to "is retention actually holding?" per camera.
27708
27834
  *
@@ -27712,7 +27838,24 @@ var RecordingDeviceUsageSchema = object({
27712
27838
  * (types) and the addon ship on different trains, and the addon is usually
27713
27839
  * the later of the two.
27714
27840
  */
27715
- oldestMs: number().nullable().optional()
27841
+ oldestMs: number().nullable().optional(),
27842
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
27843
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
27844
+ segments: number().optional(),
27845
+ /**
27846
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
27847
+ * its RAM index — the live tail plus the hours a reader hydrated.
27848
+ *
27849
+ * It answers "what can be served without touching the disk", never "how much
27850
+ * footage this camera has". A UI that renders it must label it as such, and
27851
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
27852
+ * it, and so does a node whose ledger could not answer.
27853
+ */
27854
+ residentBytes: number().optional(),
27855
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
27856
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
27857
+ * retention. `null` = nothing resident. */
27858
+ residentOldestMs: number().nullable().optional()
27716
27859
  });
27717
27860
  /** Recording storage usage + capacity for one storage location. */
27718
27861
  var RecordingLocationUsageSchema = object({
@@ -27750,6 +27893,17 @@ var RecordingStorageUsageSchema = object({
27750
27893
  totalUsedBytes: number(),
27751
27894
  devices: array(RecordingDeviceUsageSchema),
27752
27895
  /**
27896
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
27897
+ * disks (D418).
27898
+ *
27899
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
27900
+ * declared no ledger and the recorder REFUSED rather than answering the
27901
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
27902
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
27903
+ * and its rows are residency.
27904
+ */
27905
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
27906
+ /**
27753
27907
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27754
27908
  * of the payload without it: the hub serves this method through a BAKED
27755
27909
  * router, so a hub whose framework train predates a change to this array
@@ -34137,6 +34291,24 @@ Object.freeze({
34137
34291
  addonId: null,
34138
34292
  access: "view"
34139
34293
  },
34294
+ "pipelineRunner.getParkedTrackFrame": {
34295
+ capName: "pipeline-runner",
34296
+ capScope: "system",
34297
+ addonId: null,
34298
+ access: "view"
34299
+ },
34300
+ "pipelineRunner.parkTrackFrame": {
34301
+ capName: "pipeline-runner",
34302
+ capScope: "system",
34303
+ addonId: null,
34304
+ access: "create"
34305
+ },
34306
+ "pipelineRunner.releaseParkedTrackFrames": {
34307
+ capName: "pipeline-runner",
34308
+ capScope: "system",
34309
+ addonId: null,
34310
+ access: "create"
34311
+ },
34140
34312
  "pipelineRunner.reportMotion": {
34141
34313
  capName: "pipeline-runner",
34142
34314
  capScope: "system",
@@ -37414,6 +37586,21 @@ Object.freeze({
37414
37586
  form: "single",
37415
37587
  optional: false
37416
37588
  }],
37589
+ "pipelineRunner.getParkedTrackFrame": [{
37590
+ name: "deviceId",
37591
+ form: "single",
37592
+ optional: false
37593
+ }],
37594
+ "pipelineRunner.parkTrackFrame": [{
37595
+ name: "deviceId",
37596
+ form: "single",
37597
+ optional: false
37598
+ }],
37599
+ "pipelineRunner.releaseParkedTrackFrames": [{
37600
+ name: "deviceId",
37601
+ form: "single",
37602
+ optional: false
37603
+ }],
37417
37604
  "pipelineRunner.reportMotion": [{
37418
37605
  name: "deviceId",
37419
37606
  form: "single",
@@ -38105,7 +38292,7 @@ var PreviewTextField = string().max(200);
38105
38292
  * Whether the notification's preview is a STILL or a short animation.
38106
38293
  *
38107
38294
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38108
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38295
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38109
38296
  * night reads better as three seconds of motion than as one frame of it. Both
38110
38297
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38111
38298
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
36
  //#endregion
37
- //#region ../types/dist/event-category-CnLqLOKs.mjs
37
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -626,7 +626,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
626
626
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
627
627
  */
628
628
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
629
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
630
629
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
631
630
  /**
632
631
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12542,7 +12541,7 @@ DeviceType.Camera;
12542
12541
  var SourceInfoSchema = object({
12543
12542
  /** Live dispatch key — mutable when the source system allows rename. */
12544
12543
  id: string(),
12545
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12544
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12546
12545
  system: string(),
12547
12546
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12548
12547
  * Used to detect rename when `id` changes. */
@@ -13029,7 +13028,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13029
13028
  * - `device-management.router.ts` (deleted in Phase 2)
13030
13029
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13031
13030
  *
13032
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13031
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13033
13032
  * fork into separate processes but never run on remote cluster agents. Therefore:
13034
13033
  * - No nodeId routing needed — this is a pure hub singleton.
13035
13034
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17039,7 +17038,7 @@ var NcRuleInputSchema = object({
17039
17038
  * The measured seven-person arrival on device 590 spans 110 s with every
17040
17039
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17041
17040
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17042
- * 30 is Frigate's shipped value for the same decision.
17041
+ * 30 s is a widely shipped value for the same decision.
17043
17042
  *
17044
17043
  * ### What it replaces
17045
17044
  *
@@ -19081,6 +19080,13 @@ var ZoneCrossingSchema = object({
19081
19080
  /** Zone display name at crossing time (falls back to the id). */
19082
19081
  zoneName: string().optional()
19083
19082
  });
19083
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19084
+ var ZoneOverlapSchema = object({
19085
+ zoneId: string(),
19086
+ zoneName: string().optional(),
19087
+ /** Percentage of the BOX area inside the zone, 0–100. */
19088
+ overlapPct: number()
19089
+ });
19084
19090
  var ObjectEventSchema = object({
19085
19091
  ...BaseEventFields,
19086
19092
  kind: literal("object"),
@@ -19105,6 +19111,35 @@ var ObjectEventSchema = object({
19105
19111
  bbox: BoundingBoxSchema.optional(),
19106
19112
  /** Heavy JSON — omitted in slim projection. */
19107
19113
  zones: array(string()).readonly().optional(),
19114
+ /**
19115
+ * How far inside each stamped zone the box actually was, as a percentage of
19116
+ * the BOX area.
19117
+ *
19118
+ * Membership alone cannot express "at least a third of it inside", which is
19119
+ * the bar an operator argues with — and the number already existed: the
19120
+ * engine computed it, the pipeline logged it, and then discarded it. It
19121
+ * matters most on the events that carry no track, where a rule has nothing
19122
+ * else to judge by.
19123
+ */
19124
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19125
+ /**
19126
+ * Present when this event describes a detection the TRACKER refused, so it
19127
+ * has no track and never will.
19128
+ *
19129
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19130
+ * NOW?"; tracking answers a different question ("is this the same subject as
19131
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19132
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19133
+ * seconds with three different candidate ids — seven analysed frames in the
19134
+ * window, the subject in a handful of them, metres apart — and produced no
19135
+ * event at all.
19136
+ *
19137
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19138
+ * with no track and no reason is indistinguishable from a track whose media
19139
+ * went missing, and a consumer that asks this one for a best shot or a
19140
+ * history is asking for something that never existed.
19141
+ */
19142
+ spawnRefused: string().optional(),
19108
19143
  /** Omitted in slim projection. */
19109
19144
  state: TrackStateSchema.optional(),
19110
19145
  /**
@@ -20178,6 +20213,60 @@ var NativeCropResultSchema = object({
20178
20213
  */
20179
20214
  tier: _enum(["native", "ram-fullframe"]).optional()
20180
20215
  });
20216
+ /**
20217
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20218
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20219
+ *
20220
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20221
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20222
+ * from, and what the detail plane's full-frame rung cuts from.
20223
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20224
+ * window, cut by the runner at uncapped native resolution.
20225
+ *
20226
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20227
+ */
20228
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20229
+ /**
20230
+ * Why a park did NOT happen. Every one is logged on the runner with
20231
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20232
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20233
+ * never a reason to retry in a loop.
20234
+ *
20235
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20236
+ * registered, past the lease bound, or the worker released it). `detail`
20237
+ * carries the runner's own miss reason.
20238
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20239
+ */
20240
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20241
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20242
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20243
+ parked: literal(true),
20244
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20245
+ nodeId: string(),
20246
+ width: number().int().positive(),
20247
+ height: number().int().positive(),
20248
+ /** JPEG bytes the parcel costs on the node. */
20249
+ bytes: number().int().nonnegative(),
20250
+ /** Whether this park replaced a parcel already held for the key. */
20251
+ replaced: boolean()
20252
+ }), object({
20253
+ parked: literal(false),
20254
+ nodeId: string(),
20255
+ reason: ParkRefusalSchema,
20256
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20257
+ handleAgeMs: number().nullable(),
20258
+ detail: string().optional()
20259
+ })]);
20260
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20261
+ var ParkedTrackFrameSchema = object({
20262
+ jpeg: string(),
20263
+ width: number().int().positive(),
20264
+ height: number().int().positive(),
20265
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20266
+ timestamp: number(),
20267
+ /** When the node stored it (the node's clock). */
20268
+ parkedAt: number()
20269
+ });
20181
20270
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20182
20271
  * originating detection, in FRAME-space coordinates. Reuses
20183
20272
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20567,7 +20656,7 @@ var RunnerCameraConfigSchema = object({
20567
20656
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20568
20657
  * analyzer providers) running on decoded frames in this runner.
20569
20658
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20570
- * analytics, Frigate motion). The provider emits ProviderMotion
20659
+ * analytics). The provider emits ProviderMotion
20571
20660
  * events; the orchestrator forwards to `reportMotion`.
20572
20661
  */
20573
20662
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -20809,7 +20898,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20809
20898
  className: string(),
20810
20899
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
20811
20900
  sourceDeviceId: number()
20812
- }), RunStatelessStepResultSchema, { kind: "mutation" });
20901
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
20902
+ deviceId: number(),
20903
+ /** Opaque to the runner — the hub's track id. */
20904
+ trackId: string(),
20905
+ kind: ParkedFrameKindSchema,
20906
+ handle: FrameHandleSchema,
20907
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
20908
+ bbox: NativeCropBboxSchema,
20909
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
20910
+ maxWidth: number().int().positive().optional(),
20911
+ /** The frame instant (caller's clock) — orders parks for one key. */
20912
+ timestamp: number()
20913
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
20914
+ deviceId: number(),
20915
+ trackId: string(),
20916
+ kind: ParkedFrameKindSchema
20917
+ }), ParkedTrackFrameSchema.nullable()), method(object({
20918
+ deviceId: number(),
20919
+ trackId: string()
20920
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
20813
20921
  var CameraPipelineConfigSchema = object({
20814
20922
  engine: PipelineEngineChoiceSchema.optional(),
20815
20923
  steps: array(PipelineStepInputSchema).readonly(),
@@ -23751,7 +23859,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
23751
23859
  *
23752
23860
  * Implementations:
23753
23861
  * - Each camera-providing addon registers this cap natively per
23754
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
23862
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
23755
23863
  * - Returns a snapshot from the persisted device config blob — no
23756
23864
  * extra round-trip to the camera, no probing.
23757
23865
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25137,7 +25245,7 @@ var AvailableIntegrationTypeSchema = object({
25137
25245
  * Which integration-marker cap the addon declared, so the wizard can
25138
25246
  * branch on CAP — never on addon name. `device-adoption` integrations
25139
25247
  * (Home Assistant, …) route through the broker step (Approach A);
25140
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25248
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25141
25249
  * legacy config → discovery flow.
25142
25250
  */
25143
25251
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27694,13 +27802,31 @@ var RecordingManifestSchema = object({
27694
27802
  */
27695
27803
  playbackEndpoints: array(string())
27696
27804
  });
27697
- /** Recording storage usage for one camera (bytes on disk across all its
27698
- * profiles/subtrees/locations on this node). */
27805
+ /**
27806
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
27807
+ * across every profile and every resolvable location on this node.
27808
+ *
27809
+ * ## Archive vs residency, which is the whole point of this shape (D418)
27810
+ *
27811
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
27812
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
27813
+ * this camera writes to, so the two can be added up and compared.
27814
+ *
27815
+ * They were not always. Until D418 this row came from the recorder's in-RAM
27816
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
27817
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
27818
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
27819
+ * that said otherwise, and two people read it as retention eating recent
27820
+ * footage. Residency is still reported, under `residentBytes` /
27821
+ * `residentOldestMs`, which answer a different question and say so.
27822
+ */
27699
27823
  var RecordingDeviceUsageSchema = object({
27700
27824
  deviceId: number(),
27825
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
27826
+ * recordings locations. */
27701
27827
  usedBytes: number(),
27702
27828
  /**
27703
- * Start of this camera's OLDEST indexed segment, across every profile and
27829
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27704
27830
  * location — the "Oldest footage" column in Recordings → Storage, and the
27705
27831
  * only honest answer to "is retention actually holding?" per camera.
27706
27832
  *
@@ -27710,7 +27836,24 @@ var RecordingDeviceUsageSchema = object({
27710
27836
  * (types) and the addon ship on different trains, and the addon is usually
27711
27837
  * the later of the two.
27712
27838
  */
27713
- oldestMs: number().nullable().optional()
27839
+ oldestMs: number().nullable().optional(),
27840
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
27841
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
27842
+ segments: number().optional(),
27843
+ /**
27844
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
27845
+ * its RAM index — the live tail plus the hours a reader hydrated.
27846
+ *
27847
+ * It answers "what can be served without touching the disk", never "how much
27848
+ * footage this camera has". A UI that renders it must label it as such, and
27849
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
27850
+ * it, and so does a node whose ledger could not answer.
27851
+ */
27852
+ residentBytes: number().optional(),
27853
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
27854
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
27855
+ * retention. `null` = nothing resident. */
27856
+ residentOldestMs: number().nullable().optional()
27714
27857
  });
27715
27858
  /** Recording storage usage + capacity for one storage location. */
27716
27859
  var RecordingLocationUsageSchema = object({
@@ -27748,6 +27891,17 @@ var RecordingStorageUsageSchema = object({
27748
27891
  totalUsedBytes: number(),
27749
27892
  devices: array(RecordingDeviceUsageSchema),
27750
27893
  /**
27894
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
27895
+ * disks (D418).
27896
+ *
27897
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
27898
+ * declared no ledger and the recorder REFUSED rather than answering the
27899
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
27900
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
27901
+ * and its rows are residency.
27902
+ */
27903
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
27904
+ /**
27751
27905
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27752
27906
  * of the payload without it: the hub serves this method through a BAKED
27753
27907
  * router, so a hub whose framework train predates a change to this array
@@ -34135,6 +34289,24 @@ Object.freeze({
34135
34289
  addonId: null,
34136
34290
  access: "view"
34137
34291
  },
34292
+ "pipelineRunner.getParkedTrackFrame": {
34293
+ capName: "pipeline-runner",
34294
+ capScope: "system",
34295
+ addonId: null,
34296
+ access: "view"
34297
+ },
34298
+ "pipelineRunner.parkTrackFrame": {
34299
+ capName: "pipeline-runner",
34300
+ capScope: "system",
34301
+ addonId: null,
34302
+ access: "create"
34303
+ },
34304
+ "pipelineRunner.releaseParkedTrackFrames": {
34305
+ capName: "pipeline-runner",
34306
+ capScope: "system",
34307
+ addonId: null,
34308
+ access: "create"
34309
+ },
34138
34310
  "pipelineRunner.reportMotion": {
34139
34311
  capName: "pipeline-runner",
34140
34312
  capScope: "system",
@@ -37412,6 +37584,21 @@ Object.freeze({
37412
37584
  form: "single",
37413
37585
  optional: false
37414
37586
  }],
37587
+ "pipelineRunner.getParkedTrackFrame": [{
37588
+ name: "deviceId",
37589
+ form: "single",
37590
+ optional: false
37591
+ }],
37592
+ "pipelineRunner.parkTrackFrame": [{
37593
+ name: "deviceId",
37594
+ form: "single",
37595
+ optional: false
37596
+ }],
37597
+ "pipelineRunner.releaseParkedTrackFrames": [{
37598
+ name: "deviceId",
37599
+ form: "single",
37600
+ optional: false
37601
+ }],
37415
37602
  "pipelineRunner.reportMotion": [{
37416
37603
  name: "deviceId",
37417
37604
  form: "single",
@@ -38103,7 +38290,7 @@ var PreviewTextField = string().max(200);
38103
38290
  * Whether the notification's preview is a STILL or a short animation.
38104
38291
  *
38105
38292
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38106
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38293
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38107
38294
  * night reads better as three seconds of motion than as one frame of it. Both
38108
38295
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38109
38296
  * simply applies it to a dozen frames sampled across the render and assembles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.89",
3
+ "version": "1.2.91",
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",