@camstack/addon-decoder-nodeav 1.2.90 → 1.2.93
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/index.js +242 -18
- package/dist/index.mjs +242 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
|
-
//#region ../types/dist/event-category-
|
|
6
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
7
7
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
8
8
|
EventCategory["SystemBoot"] = "system.boot";
|
|
9
9
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -595,7 +595,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
595
595
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
596
596
|
*/
|
|
597
597
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
598
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
599
598
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
600
599
|
/**
|
|
601
600
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12653,7 +12652,7 @@ DeviceType.Camera;
|
|
|
12653
12652
|
var SourceInfoSchema = object({
|
|
12654
12653
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12655
12654
|
id: string(),
|
|
12656
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12655
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12657
12656
|
system: string(),
|
|
12658
12657
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12659
12658
|
* Used to detect rename when `id` changes. */
|
|
@@ -13140,7 +13139,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13140
13139
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13141
13140
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13142
13141
|
*
|
|
13143
|
-
* All device provider addons (rtsp, onvif,
|
|
13142
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13144
13143
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13145
13144
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13146
13145
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17150,7 +17149,7 @@ var NcRuleInputSchema = object({
|
|
|
17150
17149
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17151
17150
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17152
17151
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17153
|
-
* 30 is
|
|
17152
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17154
17153
|
*
|
|
17155
17154
|
* ### What it replaces
|
|
17156
17155
|
*
|
|
@@ -19192,6 +19191,13 @@ var ZoneCrossingSchema = object({
|
|
|
19192
19191
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19193
19192
|
zoneName: string().optional()
|
|
19194
19193
|
});
|
|
19194
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19195
|
+
var ZoneOverlapSchema = object({
|
|
19196
|
+
zoneId: string(),
|
|
19197
|
+
zoneName: string().optional(),
|
|
19198
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19199
|
+
overlapPct: number()
|
|
19200
|
+
});
|
|
19195
19201
|
var ObjectEventSchema = object({
|
|
19196
19202
|
...BaseEventFields,
|
|
19197
19203
|
kind: literal("object"),
|
|
@@ -19216,6 +19222,35 @@ var ObjectEventSchema = object({
|
|
|
19216
19222
|
bbox: BoundingBoxSchema.optional(),
|
|
19217
19223
|
/** Heavy JSON — omitted in slim projection. */
|
|
19218
19224
|
zones: array(string()).readonly().optional(),
|
|
19225
|
+
/**
|
|
19226
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19227
|
+
* the BOX area.
|
|
19228
|
+
*
|
|
19229
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19230
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19231
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19232
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19233
|
+
* else to judge by.
|
|
19234
|
+
*/
|
|
19235
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19236
|
+
/**
|
|
19237
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19238
|
+
* has no track and never will.
|
|
19239
|
+
*
|
|
19240
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19241
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19242
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19243
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19244
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19245
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19246
|
+
* event at all.
|
|
19247
|
+
*
|
|
19248
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19249
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19250
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19251
|
+
* history is asking for something that never existed.
|
|
19252
|
+
*/
|
|
19253
|
+
spawnRefused: string().optional(),
|
|
19219
19254
|
/** Omitted in slim projection. */
|
|
19220
19255
|
state: TrackStateSchema.optional(),
|
|
19221
19256
|
/**
|
|
@@ -19642,7 +19677,17 @@ var EventDensityBucketSchema = object({
|
|
|
19642
19677
|
bucketStart: number(),
|
|
19643
19678
|
motion: number().int(),
|
|
19644
19679
|
object: number().int(),
|
|
19645
|
-
audio: number().int()
|
|
19680
|
+
audio: number().int(),
|
|
19681
|
+
/**
|
|
19682
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19683
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19684
|
+
*
|
|
19685
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19686
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19687
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19688
|
+
* the count-on-a-level-meter did.
|
|
19689
|
+
*/
|
|
19690
|
+
audioDbfs: number().optional()
|
|
19646
19691
|
});
|
|
19647
19692
|
/**
|
|
19648
19693
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20289,6 +20334,60 @@ var NativeCropResultSchema = object({
|
|
|
20289
20334
|
*/
|
|
20290
20335
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20291
20336
|
});
|
|
20337
|
+
/**
|
|
20338
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20339
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20340
|
+
*
|
|
20341
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20342
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20343
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20344
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20345
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20346
|
+
*
|
|
20347
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20348
|
+
*/
|
|
20349
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20350
|
+
/**
|
|
20351
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20352
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20353
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20354
|
+
* never a reason to retry in a loop.
|
|
20355
|
+
*
|
|
20356
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20357
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20358
|
+
* carries the runner's own miss reason.
|
|
20359
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20360
|
+
*/
|
|
20361
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20362
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20363
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20364
|
+
parked: literal(true),
|
|
20365
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20366
|
+
nodeId: string(),
|
|
20367
|
+
width: number().int().positive(),
|
|
20368
|
+
height: number().int().positive(),
|
|
20369
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20370
|
+
bytes: number().int().nonnegative(),
|
|
20371
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20372
|
+
replaced: boolean()
|
|
20373
|
+
}), object({
|
|
20374
|
+
parked: literal(false),
|
|
20375
|
+
nodeId: string(),
|
|
20376
|
+
reason: ParkRefusalSchema,
|
|
20377
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20378
|
+
handleAgeMs: number().nullable(),
|
|
20379
|
+
detail: string().optional()
|
|
20380
|
+
})]);
|
|
20381
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20382
|
+
var ParkedTrackFrameSchema = object({
|
|
20383
|
+
jpeg: string(),
|
|
20384
|
+
width: number().int().positive(),
|
|
20385
|
+
height: number().int().positive(),
|
|
20386
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20387
|
+
timestamp: number(),
|
|
20388
|
+
/** When the node stored it (the node's clock). */
|
|
20389
|
+
parkedAt: number()
|
|
20390
|
+
});
|
|
20292
20391
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20293
20392
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20294
20393
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20678,7 +20777,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20678
20777
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20679
20778
|
* analyzer providers) running on decoded frames in this runner.
|
|
20680
20779
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20681
|
-
* analytics
|
|
20780
|
+
* analytics). The provider emits ProviderMotion
|
|
20682
20781
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20683
20782
|
*/
|
|
20684
20783
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20920,7 +21019,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20920
21019
|
className: string(),
|
|
20921
21020
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20922
21021
|
sourceDeviceId: number()
|
|
20923
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21022
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21023
|
+
deviceId: number(),
|
|
21024
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21025
|
+
trackId: string(),
|
|
21026
|
+
kind: ParkedFrameKindSchema,
|
|
21027
|
+
handle: FrameHandleSchema,
|
|
21028
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21029
|
+
bbox: NativeCropBboxSchema,
|
|
21030
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21031
|
+
maxWidth: number().int().positive().optional(),
|
|
21032
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21033
|
+
timestamp: number()
|
|
21034
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21035
|
+
deviceId: number(),
|
|
21036
|
+
trackId: string(),
|
|
21037
|
+
kind: ParkedFrameKindSchema
|
|
21038
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21039
|
+
deviceId: number(),
|
|
21040
|
+
trackId: string()
|
|
21041
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20924
21042
|
var CameraPipelineConfigSchema = object({
|
|
20925
21043
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20926
21044
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23849,7 +23967,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23849
23967
|
*
|
|
23850
23968
|
* Implementations:
|
|
23851
23969
|
* - Each camera-providing addon registers this cap natively per
|
|
23852
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23970
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23853
23971
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23854
23972
|
* extra round-trip to the camera, no probing.
|
|
23855
23973
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25235,7 +25353,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25235
25353
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25236
25354
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25237
25355
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25238
|
-
* `device-provider` integrations (Reolink/
|
|
25356
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25239
25357
|
* legacy config → discovery flow.
|
|
25240
25358
|
*/
|
|
25241
25359
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27736,7 +27854,23 @@ var RecordingRangeSchema = object({
|
|
|
27736
27854
|
});
|
|
27737
27855
|
var RecordingAvailabilitySchema = object({
|
|
27738
27856
|
deviceId: number(),
|
|
27739
|
-
ranges: array(RecordingRangeSchema)
|
|
27857
|
+
ranges: array(RecordingRangeSchema),
|
|
27858
|
+
/**
|
|
27859
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27860
|
+
* describes (D433).
|
|
27861
|
+
*
|
|
27862
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27863
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27864
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27865
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27866
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27867
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27868
|
+
* UI could not see it.
|
|
27869
|
+
*
|
|
27870
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27871
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27872
|
+
*/
|
|
27873
|
+
profilesWithFootage: array(string())
|
|
27740
27874
|
});
|
|
27741
27875
|
var RecordingDaysSchema = object({
|
|
27742
27876
|
deviceId: number(),
|
|
@@ -27762,7 +27896,11 @@ var RecordingDaysSchema = object({
|
|
|
27762
27896
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27763
27897
|
deviceId: number(),
|
|
27764
27898
|
read: _enum(["read", "unreadable"]),
|
|
27765
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27899
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27900
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27901
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27902
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27903
|
+
profilesWithFootage: array(string()).readonly()
|
|
27766
27904
|
});
|
|
27767
27905
|
/**
|
|
27768
27906
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27792,13 +27930,31 @@ var RecordingManifestSchema = object({
|
|
|
27792
27930
|
*/
|
|
27793
27931
|
playbackEndpoints: array(string())
|
|
27794
27932
|
});
|
|
27795
|
-
/**
|
|
27796
|
-
*
|
|
27933
|
+
/**
|
|
27934
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27935
|
+
* across every profile and every resolvable location on this node.
|
|
27936
|
+
*
|
|
27937
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27938
|
+
*
|
|
27939
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27940
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27941
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27942
|
+
*
|
|
27943
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27944
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27945
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27946
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27947
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27948
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27949
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27950
|
+
*/
|
|
27797
27951
|
var RecordingDeviceUsageSchema = object({
|
|
27798
27952
|
deviceId: number(),
|
|
27953
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27954
|
+
* recordings locations. */
|
|
27799
27955
|
usedBytes: number(),
|
|
27800
27956
|
/**
|
|
27801
|
-
* Start of this camera's OLDEST
|
|
27957
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27802
27958
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27803
27959
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27804
27960
|
*
|
|
@@ -27808,7 +27964,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27808
27964
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27809
27965
|
* the later of the two.
|
|
27810
27966
|
*/
|
|
27811
|
-
oldestMs: number().nullable().optional()
|
|
27967
|
+
oldestMs: number().nullable().optional(),
|
|
27968
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27969
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27970
|
+
segments: number().optional(),
|
|
27971
|
+
/**
|
|
27972
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27973
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27974
|
+
*
|
|
27975
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27976
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27977
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27978
|
+
* it, and so does a node whose ledger could not answer.
|
|
27979
|
+
*/
|
|
27980
|
+
residentBytes: number().optional(),
|
|
27981
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27982
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27983
|
+
* retention. `null` = nothing resident. */
|
|
27984
|
+
residentOldestMs: number().nullable().optional()
|
|
27812
27985
|
});
|
|
27813
27986
|
/** Recording storage usage + capacity for one storage location. */
|
|
27814
27987
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27846,6 +28019,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27846
28019
|
totalUsedBytes: number(),
|
|
27847
28020
|
devices: array(RecordingDeviceUsageSchema),
|
|
27848
28021
|
/**
|
|
28022
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28023
|
+
* disks (D418).
|
|
28024
|
+
*
|
|
28025
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28026
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28027
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28028
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28029
|
+
* and its rows are residency.
|
|
28030
|
+
*/
|
|
28031
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28032
|
+
/**
|
|
27849
28033
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27850
28034
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27851
28035
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28006,7 +28190,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28006
28190
|
method(object({
|
|
28007
28191
|
deviceId: number(),
|
|
28008
28192
|
fromMs: number(),
|
|
28009
|
-
toMs: number()
|
|
28193
|
+
toMs: number(),
|
|
28194
|
+
/**
|
|
28195
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28196
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28197
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28198
|
+
* for.
|
|
28199
|
+
*/
|
|
28200
|
+
profile: string().optional()
|
|
28010
28201
|
}), RecordingAvailabilitySchema, {
|
|
28011
28202
|
kind: "query",
|
|
28012
28203
|
auth: "protected"
|
|
@@ -34233,6 +34424,24 @@ Object.freeze({
|
|
|
34233
34424
|
addonId: null,
|
|
34234
34425
|
access: "view"
|
|
34235
34426
|
},
|
|
34427
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34428
|
+
capName: "pipeline-runner",
|
|
34429
|
+
capScope: "system",
|
|
34430
|
+
addonId: null,
|
|
34431
|
+
access: "view"
|
|
34432
|
+
},
|
|
34433
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34434
|
+
capName: "pipeline-runner",
|
|
34435
|
+
capScope: "system",
|
|
34436
|
+
addonId: null,
|
|
34437
|
+
access: "create"
|
|
34438
|
+
},
|
|
34439
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34440
|
+
capName: "pipeline-runner",
|
|
34441
|
+
capScope: "system",
|
|
34442
|
+
addonId: null,
|
|
34443
|
+
access: "create"
|
|
34444
|
+
},
|
|
34236
34445
|
"pipelineRunner.reportMotion": {
|
|
34237
34446
|
capName: "pipeline-runner",
|
|
34238
34447
|
capScope: "system",
|
|
@@ -37510,6 +37719,21 @@ Object.freeze({
|
|
|
37510
37719
|
form: "single",
|
|
37511
37720
|
optional: false
|
|
37512
37721
|
}],
|
|
37722
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37723
|
+
name: "deviceId",
|
|
37724
|
+
form: "single",
|
|
37725
|
+
optional: false
|
|
37726
|
+
}],
|
|
37727
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37728
|
+
name: "deviceId",
|
|
37729
|
+
form: "single",
|
|
37730
|
+
optional: false
|
|
37731
|
+
}],
|
|
37732
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37733
|
+
name: "deviceId",
|
|
37734
|
+
form: "single",
|
|
37735
|
+
optional: false
|
|
37736
|
+
}],
|
|
37513
37737
|
"pipelineRunner.reportMotion": [{
|
|
37514
37738
|
name: "deviceId",
|
|
37515
37739
|
form: "single",
|
|
@@ -38201,7 +38425,7 @@ var PreviewTextField = string().max(200);
|
|
|
38201
38425
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38202
38426
|
*
|
|
38203
38427
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38204
|
-
* rule)"* —
|
|
38428
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38205
38429
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38206
38430
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38207
38431
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -591,7 +591,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
591
591
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
592
592
|
*/
|
|
593
593
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
594
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
595
594
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
596
595
|
/**
|
|
597
596
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12649,7 +12648,7 @@ DeviceType.Camera;
|
|
|
12649
12648
|
var SourceInfoSchema = object({
|
|
12650
12649
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12651
12650
|
id: string(),
|
|
12652
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12651
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12653
12652
|
system: string(),
|
|
12654
12653
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12655
12654
|
* Used to detect rename when `id` changes. */
|
|
@@ -13136,7 +13135,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13136
13135
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13137
13136
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13138
13137
|
*
|
|
13139
|
-
* All device provider addons (rtsp, onvif,
|
|
13138
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13140
13139
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13141
13140
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13142
13141
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17146,7 +17145,7 @@ var NcRuleInputSchema = object({
|
|
|
17146
17145
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17147
17146
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17148
17147
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17149
|
-
* 30 is
|
|
17148
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17150
17149
|
*
|
|
17151
17150
|
* ### What it replaces
|
|
17152
17151
|
*
|
|
@@ -19188,6 +19187,13 @@ var ZoneCrossingSchema = object({
|
|
|
19188
19187
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19189
19188
|
zoneName: string().optional()
|
|
19190
19189
|
});
|
|
19190
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19191
|
+
var ZoneOverlapSchema = object({
|
|
19192
|
+
zoneId: string(),
|
|
19193
|
+
zoneName: string().optional(),
|
|
19194
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19195
|
+
overlapPct: number()
|
|
19196
|
+
});
|
|
19191
19197
|
var ObjectEventSchema = object({
|
|
19192
19198
|
...BaseEventFields,
|
|
19193
19199
|
kind: literal("object"),
|
|
@@ -19212,6 +19218,35 @@ var ObjectEventSchema = object({
|
|
|
19212
19218
|
bbox: BoundingBoxSchema.optional(),
|
|
19213
19219
|
/** Heavy JSON — omitted in slim projection. */
|
|
19214
19220
|
zones: array(string()).readonly().optional(),
|
|
19221
|
+
/**
|
|
19222
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19223
|
+
* the BOX area.
|
|
19224
|
+
*
|
|
19225
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19226
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19227
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19228
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19229
|
+
* else to judge by.
|
|
19230
|
+
*/
|
|
19231
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19232
|
+
/**
|
|
19233
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19234
|
+
* has no track and never will.
|
|
19235
|
+
*
|
|
19236
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19237
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19238
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19239
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19240
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19241
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19242
|
+
* event at all.
|
|
19243
|
+
*
|
|
19244
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19245
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19246
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19247
|
+
* history is asking for something that never existed.
|
|
19248
|
+
*/
|
|
19249
|
+
spawnRefused: string().optional(),
|
|
19215
19250
|
/** Omitted in slim projection. */
|
|
19216
19251
|
state: TrackStateSchema.optional(),
|
|
19217
19252
|
/**
|
|
@@ -19638,7 +19673,17 @@ var EventDensityBucketSchema = object({
|
|
|
19638
19673
|
bucketStart: number(),
|
|
19639
19674
|
motion: number().int(),
|
|
19640
19675
|
object: number().int(),
|
|
19641
|
-
audio: number().int()
|
|
19676
|
+
audio: number().int(),
|
|
19677
|
+
/**
|
|
19678
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19679
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19680
|
+
*
|
|
19681
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19682
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19683
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19684
|
+
* the count-on-a-level-meter did.
|
|
19685
|
+
*/
|
|
19686
|
+
audioDbfs: number().optional()
|
|
19642
19687
|
});
|
|
19643
19688
|
/**
|
|
19644
19689
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20285,6 +20330,60 @@ var NativeCropResultSchema = object({
|
|
|
20285
20330
|
*/
|
|
20286
20331
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20287
20332
|
});
|
|
20333
|
+
/**
|
|
20334
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20335
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20336
|
+
*
|
|
20337
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20338
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20339
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20340
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20341
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20342
|
+
*
|
|
20343
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20344
|
+
*/
|
|
20345
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20346
|
+
/**
|
|
20347
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20348
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20349
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20350
|
+
* never a reason to retry in a loop.
|
|
20351
|
+
*
|
|
20352
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20353
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20354
|
+
* carries the runner's own miss reason.
|
|
20355
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20356
|
+
*/
|
|
20357
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20358
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20359
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20360
|
+
parked: literal(true),
|
|
20361
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20362
|
+
nodeId: string(),
|
|
20363
|
+
width: number().int().positive(),
|
|
20364
|
+
height: number().int().positive(),
|
|
20365
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20366
|
+
bytes: number().int().nonnegative(),
|
|
20367
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20368
|
+
replaced: boolean()
|
|
20369
|
+
}), object({
|
|
20370
|
+
parked: literal(false),
|
|
20371
|
+
nodeId: string(),
|
|
20372
|
+
reason: ParkRefusalSchema,
|
|
20373
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20374
|
+
handleAgeMs: number().nullable(),
|
|
20375
|
+
detail: string().optional()
|
|
20376
|
+
})]);
|
|
20377
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20378
|
+
var ParkedTrackFrameSchema = object({
|
|
20379
|
+
jpeg: string(),
|
|
20380
|
+
width: number().int().positive(),
|
|
20381
|
+
height: number().int().positive(),
|
|
20382
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20383
|
+
timestamp: number(),
|
|
20384
|
+
/** When the node stored it (the node's clock). */
|
|
20385
|
+
parkedAt: number()
|
|
20386
|
+
});
|
|
20288
20387
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20289
20388
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20290
20389
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20674,7 +20773,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20674
20773
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20675
20774
|
* analyzer providers) running on decoded frames in this runner.
|
|
20676
20775
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20677
|
-
* analytics
|
|
20776
|
+
* analytics). The provider emits ProviderMotion
|
|
20678
20777
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20679
20778
|
*/
|
|
20680
20779
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20916,7 +21015,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20916
21015
|
className: string(),
|
|
20917
21016
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20918
21017
|
sourceDeviceId: number()
|
|
20919
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21018
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21019
|
+
deviceId: number(),
|
|
21020
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21021
|
+
trackId: string(),
|
|
21022
|
+
kind: ParkedFrameKindSchema,
|
|
21023
|
+
handle: FrameHandleSchema,
|
|
21024
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21025
|
+
bbox: NativeCropBboxSchema,
|
|
21026
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21027
|
+
maxWidth: number().int().positive().optional(),
|
|
21028
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21029
|
+
timestamp: number()
|
|
21030
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21031
|
+
deviceId: number(),
|
|
21032
|
+
trackId: string(),
|
|
21033
|
+
kind: ParkedFrameKindSchema
|
|
21034
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21035
|
+
deviceId: number(),
|
|
21036
|
+
trackId: string()
|
|
21037
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20920
21038
|
var CameraPipelineConfigSchema = object({
|
|
20921
21039
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20922
21040
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23845,7 +23963,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23845
23963
|
*
|
|
23846
23964
|
* Implementations:
|
|
23847
23965
|
* - Each camera-providing addon registers this cap natively per
|
|
23848
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23966
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23849
23967
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23850
23968
|
* extra round-trip to the camera, no probing.
|
|
23851
23969
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25231,7 +25349,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25231
25349
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25232
25350
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25233
25351
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25234
|
-
* `device-provider` integrations (Reolink/
|
|
25352
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25235
25353
|
* legacy config → discovery flow.
|
|
25236
25354
|
*/
|
|
25237
25355
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27732,7 +27850,23 @@ var RecordingRangeSchema = object({
|
|
|
27732
27850
|
});
|
|
27733
27851
|
var RecordingAvailabilitySchema = object({
|
|
27734
27852
|
deviceId: number(),
|
|
27735
|
-
ranges: array(RecordingRangeSchema)
|
|
27853
|
+
ranges: array(RecordingRangeSchema),
|
|
27854
|
+
/**
|
|
27855
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27856
|
+
* describes (D433).
|
|
27857
|
+
*
|
|
27858
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27859
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27860
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27861
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27862
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27863
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27864
|
+
* UI could not see it.
|
|
27865
|
+
*
|
|
27866
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27867
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27868
|
+
*/
|
|
27869
|
+
profilesWithFootage: array(string())
|
|
27736
27870
|
});
|
|
27737
27871
|
var RecordingDaysSchema = object({
|
|
27738
27872
|
deviceId: number(),
|
|
@@ -27758,7 +27892,11 @@ var RecordingDaysSchema = object({
|
|
|
27758
27892
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27759
27893
|
deviceId: number(),
|
|
27760
27894
|
read: _enum(["read", "unreadable"]),
|
|
27761
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27895
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27896
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27897
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27898
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27899
|
+
profilesWithFootage: array(string()).readonly()
|
|
27762
27900
|
});
|
|
27763
27901
|
/**
|
|
27764
27902
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27788,13 +27926,31 @@ var RecordingManifestSchema = object({
|
|
|
27788
27926
|
*/
|
|
27789
27927
|
playbackEndpoints: array(string())
|
|
27790
27928
|
});
|
|
27791
|
-
/**
|
|
27792
|
-
*
|
|
27929
|
+
/**
|
|
27930
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27931
|
+
* across every profile and every resolvable location on this node.
|
|
27932
|
+
*
|
|
27933
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27934
|
+
*
|
|
27935
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27936
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27937
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27938
|
+
*
|
|
27939
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27940
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27941
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27942
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27943
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27944
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27945
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27946
|
+
*/
|
|
27793
27947
|
var RecordingDeviceUsageSchema = object({
|
|
27794
27948
|
deviceId: number(),
|
|
27949
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27950
|
+
* recordings locations. */
|
|
27795
27951
|
usedBytes: number(),
|
|
27796
27952
|
/**
|
|
27797
|
-
* Start of this camera's OLDEST
|
|
27953
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27798
27954
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27799
27955
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27800
27956
|
*
|
|
@@ -27804,7 +27960,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27804
27960
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27805
27961
|
* the later of the two.
|
|
27806
27962
|
*/
|
|
27807
|
-
oldestMs: number().nullable().optional()
|
|
27963
|
+
oldestMs: number().nullable().optional(),
|
|
27964
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27965
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27966
|
+
segments: number().optional(),
|
|
27967
|
+
/**
|
|
27968
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27969
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27970
|
+
*
|
|
27971
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27972
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27973
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27974
|
+
* it, and so does a node whose ledger could not answer.
|
|
27975
|
+
*/
|
|
27976
|
+
residentBytes: number().optional(),
|
|
27977
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27978
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27979
|
+
* retention. `null` = nothing resident. */
|
|
27980
|
+
residentOldestMs: number().nullable().optional()
|
|
27808
27981
|
});
|
|
27809
27982
|
/** Recording storage usage + capacity for one storage location. */
|
|
27810
27983
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27842,6 +28015,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27842
28015
|
totalUsedBytes: number(),
|
|
27843
28016
|
devices: array(RecordingDeviceUsageSchema),
|
|
27844
28017
|
/**
|
|
28018
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28019
|
+
* disks (D418).
|
|
28020
|
+
*
|
|
28021
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28022
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28023
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28024
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28025
|
+
* and its rows are residency.
|
|
28026
|
+
*/
|
|
28027
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28028
|
+
/**
|
|
27845
28029
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27846
28030
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27847
28031
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28002,7 +28186,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28002
28186
|
method(object({
|
|
28003
28187
|
deviceId: number(),
|
|
28004
28188
|
fromMs: number(),
|
|
28005
|
-
toMs: number()
|
|
28189
|
+
toMs: number(),
|
|
28190
|
+
/**
|
|
28191
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28192
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28193
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28194
|
+
* for.
|
|
28195
|
+
*/
|
|
28196
|
+
profile: string().optional()
|
|
28006
28197
|
}), RecordingAvailabilitySchema, {
|
|
28007
28198
|
kind: "query",
|
|
28008
28199
|
auth: "protected"
|
|
@@ -34229,6 +34420,24 @@ Object.freeze({
|
|
|
34229
34420
|
addonId: null,
|
|
34230
34421
|
access: "view"
|
|
34231
34422
|
},
|
|
34423
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34424
|
+
capName: "pipeline-runner",
|
|
34425
|
+
capScope: "system",
|
|
34426
|
+
addonId: null,
|
|
34427
|
+
access: "view"
|
|
34428
|
+
},
|
|
34429
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34430
|
+
capName: "pipeline-runner",
|
|
34431
|
+
capScope: "system",
|
|
34432
|
+
addonId: null,
|
|
34433
|
+
access: "create"
|
|
34434
|
+
},
|
|
34435
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34436
|
+
capName: "pipeline-runner",
|
|
34437
|
+
capScope: "system",
|
|
34438
|
+
addonId: null,
|
|
34439
|
+
access: "create"
|
|
34440
|
+
},
|
|
34232
34441
|
"pipelineRunner.reportMotion": {
|
|
34233
34442
|
capName: "pipeline-runner",
|
|
34234
34443
|
capScope: "system",
|
|
@@ -37506,6 +37715,21 @@ Object.freeze({
|
|
|
37506
37715
|
form: "single",
|
|
37507
37716
|
optional: false
|
|
37508
37717
|
}],
|
|
37718
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37719
|
+
name: "deviceId",
|
|
37720
|
+
form: "single",
|
|
37721
|
+
optional: false
|
|
37722
|
+
}],
|
|
37723
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37724
|
+
name: "deviceId",
|
|
37725
|
+
form: "single",
|
|
37726
|
+
optional: false
|
|
37727
|
+
}],
|
|
37728
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37729
|
+
name: "deviceId",
|
|
37730
|
+
form: "single",
|
|
37731
|
+
optional: false
|
|
37732
|
+
}],
|
|
37509
37733
|
"pipelineRunner.reportMotion": [{
|
|
37510
37734
|
name: "deviceId",
|
|
37511
37735
|
form: "single",
|
|
@@ -38197,7 +38421,7 @@ var PreviewTextField = string().max(200);
|
|
|
38197
38421
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38198
38422
|
*
|
|
38199
38423
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38200
|
-
* rule)"* —
|
|
38424
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38201
38425
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38202
38426
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38203
38427
|
* simply applies it to a dozen frames sampled across the render and assembles
|