@camstack/addon-smtp-nodemailer 1.2.89 → 1.2.92
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 +242 -18
- package/dist/smtp.addon.mjs +242 -18
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -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-
|
|
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' | '
|
|
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,
|
|
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
|
|
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
|
/**
|
|
@@ -19533,7 +19568,17 @@ var EventDensityBucketSchema = object({
|
|
|
19533
19568
|
bucketStart: number(),
|
|
19534
19569
|
motion: number().int(),
|
|
19535
19570
|
object: number().int(),
|
|
19536
|
-
audio: number().int()
|
|
19571
|
+
audio: number().int(),
|
|
19572
|
+
/**
|
|
19573
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19574
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19575
|
+
*
|
|
19576
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19577
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19578
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19579
|
+
* the count-on-a-level-meter did.
|
|
19580
|
+
*/
|
|
19581
|
+
audioDbfs: number().optional()
|
|
19537
19582
|
});
|
|
19538
19583
|
/**
|
|
19539
19584
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20180,6 +20225,60 @@ var NativeCropResultSchema = object({
|
|
|
20180
20225
|
*/
|
|
20181
20226
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20182
20227
|
});
|
|
20228
|
+
/**
|
|
20229
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20230
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20231
|
+
*
|
|
20232
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20233
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20234
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20235
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20236
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20237
|
+
*
|
|
20238
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20239
|
+
*/
|
|
20240
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20241
|
+
/**
|
|
20242
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20243
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20244
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20245
|
+
* never a reason to retry in a loop.
|
|
20246
|
+
*
|
|
20247
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20248
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20249
|
+
* carries the runner's own miss reason.
|
|
20250
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20251
|
+
*/
|
|
20252
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20253
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20254
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20255
|
+
parked: literal(true),
|
|
20256
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20257
|
+
nodeId: string(),
|
|
20258
|
+
width: number().int().positive(),
|
|
20259
|
+
height: number().int().positive(),
|
|
20260
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20261
|
+
bytes: number().int().nonnegative(),
|
|
20262
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20263
|
+
replaced: boolean()
|
|
20264
|
+
}), object({
|
|
20265
|
+
parked: literal(false),
|
|
20266
|
+
nodeId: string(),
|
|
20267
|
+
reason: ParkRefusalSchema,
|
|
20268
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20269
|
+
handleAgeMs: number().nullable(),
|
|
20270
|
+
detail: string().optional()
|
|
20271
|
+
})]);
|
|
20272
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20273
|
+
var ParkedTrackFrameSchema = object({
|
|
20274
|
+
jpeg: string(),
|
|
20275
|
+
width: number().int().positive(),
|
|
20276
|
+
height: number().int().positive(),
|
|
20277
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20278
|
+
timestamp: number(),
|
|
20279
|
+
/** When the node stored it (the node's clock). */
|
|
20280
|
+
parkedAt: number()
|
|
20281
|
+
});
|
|
20183
20282
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20184
20283
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20185
20284
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20569,7 +20668,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20569
20668
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20570
20669
|
* analyzer providers) running on decoded frames in this runner.
|
|
20571
20670
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20572
|
-
* analytics
|
|
20671
|
+
* analytics). The provider emits ProviderMotion
|
|
20573
20672
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20574
20673
|
*/
|
|
20575
20674
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20811,7 +20910,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20811
20910
|
className: string(),
|
|
20812
20911
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20813
20912
|
sourceDeviceId: number()
|
|
20814
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
20913
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
20914
|
+
deviceId: number(),
|
|
20915
|
+
/** Opaque to the runner — the hub's track id. */
|
|
20916
|
+
trackId: string(),
|
|
20917
|
+
kind: ParkedFrameKindSchema,
|
|
20918
|
+
handle: FrameHandleSchema,
|
|
20919
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
20920
|
+
bbox: NativeCropBboxSchema,
|
|
20921
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
20922
|
+
maxWidth: number().int().positive().optional(),
|
|
20923
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
20924
|
+
timestamp: number()
|
|
20925
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
20926
|
+
deviceId: number(),
|
|
20927
|
+
trackId: string(),
|
|
20928
|
+
kind: ParkedFrameKindSchema
|
|
20929
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
20930
|
+
deviceId: number(),
|
|
20931
|
+
trackId: string()
|
|
20932
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20815
20933
|
var CameraPipelineConfigSchema = object({
|
|
20816
20934
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20817
20935
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23753,7 +23871,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23753
23871
|
*
|
|
23754
23872
|
* Implementations:
|
|
23755
23873
|
* - Each camera-providing addon registers this cap natively per
|
|
23756
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23874
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23757
23875
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23758
23876
|
* extra round-trip to the camera, no probing.
|
|
23759
23877
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25139,7 +25257,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25139
25257
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25140
25258
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25141
25259
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25142
|
-
* `device-provider` integrations (Reolink/
|
|
25260
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25143
25261
|
* legacy config → discovery flow.
|
|
25144
25262
|
*/
|
|
25145
25263
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27640,7 +27758,23 @@ var RecordingRangeSchema = object({
|
|
|
27640
27758
|
});
|
|
27641
27759
|
var RecordingAvailabilitySchema = object({
|
|
27642
27760
|
deviceId: number(),
|
|
27643
|
-
ranges: array(RecordingRangeSchema)
|
|
27761
|
+
ranges: array(RecordingRangeSchema),
|
|
27762
|
+
/**
|
|
27763
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27764
|
+
* describes (D433).
|
|
27765
|
+
*
|
|
27766
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27767
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27768
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27769
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27770
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27771
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27772
|
+
* UI could not see it.
|
|
27773
|
+
*
|
|
27774
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27775
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27776
|
+
*/
|
|
27777
|
+
profilesWithFootage: array(string())
|
|
27644
27778
|
});
|
|
27645
27779
|
var RecordingDaysSchema = object({
|
|
27646
27780
|
deviceId: number(),
|
|
@@ -27666,7 +27800,11 @@ var RecordingDaysSchema = object({
|
|
|
27666
27800
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27667
27801
|
deviceId: number(),
|
|
27668
27802
|
read: _enum(["read", "unreadable"]),
|
|
27669
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27803
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27804
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27805
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27806
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27807
|
+
profilesWithFootage: array(string()).readonly()
|
|
27670
27808
|
});
|
|
27671
27809
|
/**
|
|
27672
27810
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27696,13 +27834,31 @@ var RecordingManifestSchema = object({
|
|
|
27696
27834
|
*/
|
|
27697
27835
|
playbackEndpoints: array(string())
|
|
27698
27836
|
});
|
|
27699
|
-
/**
|
|
27700
|
-
*
|
|
27837
|
+
/**
|
|
27838
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27839
|
+
* across every profile and every resolvable location on this node.
|
|
27840
|
+
*
|
|
27841
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27842
|
+
*
|
|
27843
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27844
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27845
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27846
|
+
*
|
|
27847
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27848
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27849
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27850
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27851
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27852
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27853
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27854
|
+
*/
|
|
27701
27855
|
var RecordingDeviceUsageSchema = object({
|
|
27702
27856
|
deviceId: number(),
|
|
27857
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27858
|
+
* recordings locations. */
|
|
27703
27859
|
usedBytes: number(),
|
|
27704
27860
|
/**
|
|
27705
|
-
* Start of this camera's OLDEST
|
|
27861
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27706
27862
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27707
27863
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27708
27864
|
*
|
|
@@ -27712,7 +27868,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27712
27868
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27713
27869
|
* the later of the two.
|
|
27714
27870
|
*/
|
|
27715
|
-
oldestMs: number().nullable().optional()
|
|
27871
|
+
oldestMs: number().nullable().optional(),
|
|
27872
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27873
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27874
|
+
segments: number().optional(),
|
|
27875
|
+
/**
|
|
27876
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27877
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27878
|
+
*
|
|
27879
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27880
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27881
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27882
|
+
* it, and so does a node whose ledger could not answer.
|
|
27883
|
+
*/
|
|
27884
|
+
residentBytes: number().optional(),
|
|
27885
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27886
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27887
|
+
* retention. `null` = nothing resident. */
|
|
27888
|
+
residentOldestMs: number().nullable().optional()
|
|
27716
27889
|
});
|
|
27717
27890
|
/** Recording storage usage + capacity for one storage location. */
|
|
27718
27891
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27750,6 +27923,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27750
27923
|
totalUsedBytes: number(),
|
|
27751
27924
|
devices: array(RecordingDeviceUsageSchema),
|
|
27752
27925
|
/**
|
|
27926
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
27927
|
+
* disks (D418).
|
|
27928
|
+
*
|
|
27929
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
27930
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
27931
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
27932
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
27933
|
+
* and its rows are residency.
|
|
27934
|
+
*/
|
|
27935
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
27936
|
+
/**
|
|
27753
27937
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27754
27938
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27755
27939
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -27910,7 +28094,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
27910
28094
|
method(object({
|
|
27911
28095
|
deviceId: number(),
|
|
27912
28096
|
fromMs: number(),
|
|
27913
|
-
toMs: number()
|
|
28097
|
+
toMs: number(),
|
|
28098
|
+
/**
|
|
28099
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28100
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28101
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28102
|
+
* for.
|
|
28103
|
+
*/
|
|
28104
|
+
profile: string().optional()
|
|
27914
28105
|
}), RecordingAvailabilitySchema, {
|
|
27915
28106
|
kind: "query",
|
|
27916
28107
|
auth: "protected"
|
|
@@ -34137,6 +34328,24 @@ Object.freeze({
|
|
|
34137
34328
|
addonId: null,
|
|
34138
34329
|
access: "view"
|
|
34139
34330
|
},
|
|
34331
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34332
|
+
capName: "pipeline-runner",
|
|
34333
|
+
capScope: "system",
|
|
34334
|
+
addonId: null,
|
|
34335
|
+
access: "view"
|
|
34336
|
+
},
|
|
34337
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34338
|
+
capName: "pipeline-runner",
|
|
34339
|
+
capScope: "system",
|
|
34340
|
+
addonId: null,
|
|
34341
|
+
access: "create"
|
|
34342
|
+
},
|
|
34343
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34344
|
+
capName: "pipeline-runner",
|
|
34345
|
+
capScope: "system",
|
|
34346
|
+
addonId: null,
|
|
34347
|
+
access: "create"
|
|
34348
|
+
},
|
|
34140
34349
|
"pipelineRunner.reportMotion": {
|
|
34141
34350
|
capName: "pipeline-runner",
|
|
34142
34351
|
capScope: "system",
|
|
@@ -37414,6 +37623,21 @@ Object.freeze({
|
|
|
37414
37623
|
form: "single",
|
|
37415
37624
|
optional: false
|
|
37416
37625
|
}],
|
|
37626
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37627
|
+
name: "deviceId",
|
|
37628
|
+
form: "single",
|
|
37629
|
+
optional: false
|
|
37630
|
+
}],
|
|
37631
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37632
|
+
name: "deviceId",
|
|
37633
|
+
form: "single",
|
|
37634
|
+
optional: false
|
|
37635
|
+
}],
|
|
37636
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37637
|
+
name: "deviceId",
|
|
37638
|
+
form: "single",
|
|
37639
|
+
optional: false
|
|
37640
|
+
}],
|
|
37417
37641
|
"pipelineRunner.reportMotion": [{
|
|
37418
37642
|
name: "deviceId",
|
|
37419
37643
|
form: "single",
|
|
@@ -38105,7 +38329,7 @@ var PreviewTextField = string().max(200);
|
|
|
38105
38329
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38106
38330
|
*
|
|
38107
38331
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38108
|
-
* rule)"* —
|
|
38332
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38109
38333
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38110
38334
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38111
38335
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -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-
|
|
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' | '
|
|
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,
|
|
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
|
|
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
|
/**
|
|
@@ -19531,7 +19566,17 @@ var EventDensityBucketSchema = object({
|
|
|
19531
19566
|
bucketStart: number(),
|
|
19532
19567
|
motion: number().int(),
|
|
19533
19568
|
object: number().int(),
|
|
19534
|
-
audio: number().int()
|
|
19569
|
+
audio: number().int(),
|
|
19570
|
+
/**
|
|
19571
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19572
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19573
|
+
*
|
|
19574
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19575
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19576
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19577
|
+
* the count-on-a-level-meter did.
|
|
19578
|
+
*/
|
|
19579
|
+
audioDbfs: number().optional()
|
|
19535
19580
|
});
|
|
19536
19581
|
/**
|
|
19537
19582
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20178,6 +20223,60 @@ var NativeCropResultSchema = object({
|
|
|
20178
20223
|
*/
|
|
20179
20224
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20180
20225
|
});
|
|
20226
|
+
/**
|
|
20227
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20228
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20229
|
+
*
|
|
20230
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20231
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20232
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20233
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20234
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20235
|
+
*
|
|
20236
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20237
|
+
*/
|
|
20238
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20239
|
+
/**
|
|
20240
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20241
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20242
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20243
|
+
* never a reason to retry in a loop.
|
|
20244
|
+
*
|
|
20245
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20246
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20247
|
+
* carries the runner's own miss reason.
|
|
20248
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20249
|
+
*/
|
|
20250
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20251
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20252
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20253
|
+
parked: literal(true),
|
|
20254
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20255
|
+
nodeId: string(),
|
|
20256
|
+
width: number().int().positive(),
|
|
20257
|
+
height: number().int().positive(),
|
|
20258
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20259
|
+
bytes: number().int().nonnegative(),
|
|
20260
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20261
|
+
replaced: boolean()
|
|
20262
|
+
}), object({
|
|
20263
|
+
parked: literal(false),
|
|
20264
|
+
nodeId: string(),
|
|
20265
|
+
reason: ParkRefusalSchema,
|
|
20266
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20267
|
+
handleAgeMs: number().nullable(),
|
|
20268
|
+
detail: string().optional()
|
|
20269
|
+
})]);
|
|
20270
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20271
|
+
var ParkedTrackFrameSchema = object({
|
|
20272
|
+
jpeg: string(),
|
|
20273
|
+
width: number().int().positive(),
|
|
20274
|
+
height: number().int().positive(),
|
|
20275
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20276
|
+
timestamp: number(),
|
|
20277
|
+
/** When the node stored it (the node's clock). */
|
|
20278
|
+
parkedAt: number()
|
|
20279
|
+
});
|
|
20181
20280
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20182
20281
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20183
20282
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20567,7 +20666,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20567
20666
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20568
20667
|
* analyzer providers) running on decoded frames in this runner.
|
|
20569
20668
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20570
|
-
* analytics
|
|
20669
|
+
* analytics). The provider emits ProviderMotion
|
|
20571
20670
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20572
20671
|
*/
|
|
20573
20672
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20809,7 +20908,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20809
20908
|
className: string(),
|
|
20810
20909
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20811
20910
|
sourceDeviceId: number()
|
|
20812
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
20911
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
20912
|
+
deviceId: number(),
|
|
20913
|
+
/** Opaque to the runner — the hub's track id. */
|
|
20914
|
+
trackId: string(),
|
|
20915
|
+
kind: ParkedFrameKindSchema,
|
|
20916
|
+
handle: FrameHandleSchema,
|
|
20917
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
20918
|
+
bbox: NativeCropBboxSchema,
|
|
20919
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
20920
|
+
maxWidth: number().int().positive().optional(),
|
|
20921
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
20922
|
+
timestamp: number()
|
|
20923
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
20924
|
+
deviceId: number(),
|
|
20925
|
+
trackId: string(),
|
|
20926
|
+
kind: ParkedFrameKindSchema
|
|
20927
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
20928
|
+
deviceId: number(),
|
|
20929
|
+
trackId: string()
|
|
20930
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20813
20931
|
var CameraPipelineConfigSchema = object({
|
|
20814
20932
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20815
20933
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23751,7 +23869,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23751
23869
|
*
|
|
23752
23870
|
* Implementations:
|
|
23753
23871
|
* - Each camera-providing addon registers this cap natively per
|
|
23754
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23872
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23755
23873
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23756
23874
|
* extra round-trip to the camera, no probing.
|
|
23757
23875
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25137,7 +25255,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25137
25255
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25138
25256
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25139
25257
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25140
|
-
* `device-provider` integrations (Reolink/
|
|
25258
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25141
25259
|
* legacy config → discovery flow.
|
|
25142
25260
|
*/
|
|
25143
25261
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27638,7 +27756,23 @@ var RecordingRangeSchema = object({
|
|
|
27638
27756
|
});
|
|
27639
27757
|
var RecordingAvailabilitySchema = object({
|
|
27640
27758
|
deviceId: number(),
|
|
27641
|
-
ranges: array(RecordingRangeSchema)
|
|
27759
|
+
ranges: array(RecordingRangeSchema),
|
|
27760
|
+
/**
|
|
27761
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27762
|
+
* describes (D433).
|
|
27763
|
+
*
|
|
27764
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27765
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27766
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27767
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27768
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27769
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27770
|
+
* UI could not see it.
|
|
27771
|
+
*
|
|
27772
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27773
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27774
|
+
*/
|
|
27775
|
+
profilesWithFootage: array(string())
|
|
27642
27776
|
});
|
|
27643
27777
|
var RecordingDaysSchema = object({
|
|
27644
27778
|
deviceId: number(),
|
|
@@ -27664,7 +27798,11 @@ var RecordingDaysSchema = object({
|
|
|
27664
27798
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27665
27799
|
deviceId: number(),
|
|
27666
27800
|
read: _enum(["read", "unreadable"]),
|
|
27667
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27801
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27802
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27803
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27804
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27805
|
+
profilesWithFootage: array(string()).readonly()
|
|
27668
27806
|
});
|
|
27669
27807
|
/**
|
|
27670
27808
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27694,13 +27832,31 @@ var RecordingManifestSchema = object({
|
|
|
27694
27832
|
*/
|
|
27695
27833
|
playbackEndpoints: array(string())
|
|
27696
27834
|
});
|
|
27697
|
-
/**
|
|
27698
|
-
*
|
|
27835
|
+
/**
|
|
27836
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27837
|
+
* across every profile and every resolvable location on this node.
|
|
27838
|
+
*
|
|
27839
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27840
|
+
*
|
|
27841
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27842
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27843
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27844
|
+
*
|
|
27845
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27846
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27847
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27848
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27849
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27850
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27851
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27852
|
+
*/
|
|
27699
27853
|
var RecordingDeviceUsageSchema = object({
|
|
27700
27854
|
deviceId: number(),
|
|
27855
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27856
|
+
* recordings locations. */
|
|
27701
27857
|
usedBytes: number(),
|
|
27702
27858
|
/**
|
|
27703
|
-
* Start of this camera's OLDEST
|
|
27859
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27704
27860
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27705
27861
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27706
27862
|
*
|
|
@@ -27710,7 +27866,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27710
27866
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27711
27867
|
* the later of the two.
|
|
27712
27868
|
*/
|
|
27713
|
-
oldestMs: number().nullable().optional()
|
|
27869
|
+
oldestMs: number().nullable().optional(),
|
|
27870
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27871
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27872
|
+
segments: number().optional(),
|
|
27873
|
+
/**
|
|
27874
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27875
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27876
|
+
*
|
|
27877
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27878
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27879
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27880
|
+
* it, and so does a node whose ledger could not answer.
|
|
27881
|
+
*/
|
|
27882
|
+
residentBytes: number().optional(),
|
|
27883
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27884
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27885
|
+
* retention. `null` = nothing resident. */
|
|
27886
|
+
residentOldestMs: number().nullable().optional()
|
|
27714
27887
|
});
|
|
27715
27888
|
/** Recording storage usage + capacity for one storage location. */
|
|
27716
27889
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27748,6 +27921,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27748
27921
|
totalUsedBytes: number(),
|
|
27749
27922
|
devices: array(RecordingDeviceUsageSchema),
|
|
27750
27923
|
/**
|
|
27924
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
27925
|
+
* disks (D418).
|
|
27926
|
+
*
|
|
27927
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
27928
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
27929
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
27930
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
27931
|
+
* and its rows are residency.
|
|
27932
|
+
*/
|
|
27933
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
27934
|
+
/**
|
|
27751
27935
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27752
27936
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27753
27937
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -27908,7 +28092,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
27908
28092
|
method(object({
|
|
27909
28093
|
deviceId: number(),
|
|
27910
28094
|
fromMs: number(),
|
|
27911
|
-
toMs: number()
|
|
28095
|
+
toMs: number(),
|
|
28096
|
+
/**
|
|
28097
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28098
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28099
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28100
|
+
* for.
|
|
28101
|
+
*/
|
|
28102
|
+
profile: string().optional()
|
|
27912
28103
|
}), RecordingAvailabilitySchema, {
|
|
27913
28104
|
kind: "query",
|
|
27914
28105
|
auth: "protected"
|
|
@@ -34135,6 +34326,24 @@ Object.freeze({
|
|
|
34135
34326
|
addonId: null,
|
|
34136
34327
|
access: "view"
|
|
34137
34328
|
},
|
|
34329
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34330
|
+
capName: "pipeline-runner",
|
|
34331
|
+
capScope: "system",
|
|
34332
|
+
addonId: null,
|
|
34333
|
+
access: "view"
|
|
34334
|
+
},
|
|
34335
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34336
|
+
capName: "pipeline-runner",
|
|
34337
|
+
capScope: "system",
|
|
34338
|
+
addonId: null,
|
|
34339
|
+
access: "create"
|
|
34340
|
+
},
|
|
34341
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34342
|
+
capName: "pipeline-runner",
|
|
34343
|
+
capScope: "system",
|
|
34344
|
+
addonId: null,
|
|
34345
|
+
access: "create"
|
|
34346
|
+
},
|
|
34138
34347
|
"pipelineRunner.reportMotion": {
|
|
34139
34348
|
capName: "pipeline-runner",
|
|
34140
34349
|
capScope: "system",
|
|
@@ -37412,6 +37621,21 @@ Object.freeze({
|
|
|
37412
37621
|
form: "single",
|
|
37413
37622
|
optional: false
|
|
37414
37623
|
}],
|
|
37624
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37625
|
+
name: "deviceId",
|
|
37626
|
+
form: "single",
|
|
37627
|
+
optional: false
|
|
37628
|
+
}],
|
|
37629
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37630
|
+
name: "deviceId",
|
|
37631
|
+
form: "single",
|
|
37632
|
+
optional: false
|
|
37633
|
+
}],
|
|
37634
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37635
|
+
name: "deviceId",
|
|
37636
|
+
form: "single",
|
|
37637
|
+
optional: false
|
|
37638
|
+
}],
|
|
37415
37639
|
"pipelineRunner.reportMotion": [{
|
|
37416
37640
|
name: "deviceId",
|
|
37417
37641
|
form: "single",
|
|
@@ -38103,7 +38327,7 @@ var PreviewTextField = string().max(200);
|
|
|
38103
38327
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38104
38328
|
*
|
|
38105
38329
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38106
|
-
* rule)"* —
|
|
38330
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38107
38331
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38108
38332
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38109
38333
|
* 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.
|
|
3
|
+
"version": "1.2.92",
|
|
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",
|