@camstack/addon-provider-velux 0.2.90 → 0.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/addon.js +246 -22
- package/dist/addon.mjs +246 -22
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
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.
|
|
@@ -12625,7 +12624,7 @@ DeviceType.Camera;
|
|
|
12625
12624
|
var SourceInfoSchema = object({
|
|
12626
12625
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12627
12626
|
id: string(),
|
|
12628
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12627
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12629
12628
|
system: string(),
|
|
12630
12629
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12631
12630
|
* Used to detect rename when `id` changes. */
|
|
@@ -12638,7 +12637,7 @@ var SourceInfoSchema = object({
|
|
|
12638
12637
|
/**
|
|
12639
12638
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12640
12639
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12641
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12640
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12642
12641
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12643
12642
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12644
12643
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13300,7 +13299,7 @@ var deviceProviderCapability = {
|
|
|
13300
13299
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13301
13300
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13302
13301
|
*
|
|
13303
|
-
* All device provider addons (rtsp, onvif,
|
|
13302
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13304
13303
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13305
13304
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13306
13305
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17348,7 +17347,7 @@ var NcRuleInputSchema = object({
|
|
|
17348
17347
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17349
17348
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17350
17349
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17351
|
-
* 30 is
|
|
17350
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17352
17351
|
*
|
|
17353
17352
|
* ### What it replaces
|
|
17354
17353
|
*
|
|
@@ -19430,6 +19429,13 @@ var ZoneCrossingSchema = object({
|
|
|
19430
19429
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19431
19430
|
zoneName: string().optional()
|
|
19432
19431
|
});
|
|
19432
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19433
|
+
var ZoneOverlapSchema = object({
|
|
19434
|
+
zoneId: string(),
|
|
19435
|
+
zoneName: string().optional(),
|
|
19436
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19437
|
+
overlapPct: number()
|
|
19438
|
+
});
|
|
19433
19439
|
var ObjectEventSchema = object({
|
|
19434
19440
|
...BaseEventFields,
|
|
19435
19441
|
kind: literal("object"),
|
|
@@ -19454,6 +19460,35 @@ var ObjectEventSchema = object({
|
|
|
19454
19460
|
bbox: BoundingBoxSchema.optional(),
|
|
19455
19461
|
/** Heavy JSON — omitted in slim projection. */
|
|
19456
19462
|
zones: array(string()).readonly().optional(),
|
|
19463
|
+
/**
|
|
19464
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19465
|
+
* the BOX area.
|
|
19466
|
+
*
|
|
19467
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19468
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19469
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19470
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19471
|
+
* else to judge by.
|
|
19472
|
+
*/
|
|
19473
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19474
|
+
/**
|
|
19475
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19476
|
+
* has no track and never will.
|
|
19477
|
+
*
|
|
19478
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19479
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19480
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19481
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19482
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19483
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19484
|
+
* event at all.
|
|
19485
|
+
*
|
|
19486
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19487
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19488
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19489
|
+
* history is asking for something that never existed.
|
|
19490
|
+
*/
|
|
19491
|
+
spawnRefused: string().optional(),
|
|
19457
19492
|
/** Omitted in slim projection. */
|
|
19458
19493
|
state: TrackStateSchema.optional(),
|
|
19459
19494
|
/**
|
|
@@ -19880,7 +19915,17 @@ var EventDensityBucketSchema = object({
|
|
|
19880
19915
|
bucketStart: number(),
|
|
19881
19916
|
motion: number().int(),
|
|
19882
19917
|
object: number().int(),
|
|
19883
|
-
audio: number().int()
|
|
19918
|
+
audio: number().int(),
|
|
19919
|
+
/**
|
|
19920
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19921
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19922
|
+
*
|
|
19923
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19924
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19925
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19926
|
+
* the count-on-a-level-meter did.
|
|
19927
|
+
*/
|
|
19928
|
+
audioDbfs: number().optional()
|
|
19884
19929
|
});
|
|
19885
19930
|
/**
|
|
19886
19931
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20527,6 +20572,60 @@ var NativeCropResultSchema = object({
|
|
|
20527
20572
|
*/
|
|
20528
20573
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20529
20574
|
});
|
|
20575
|
+
/**
|
|
20576
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20577
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20578
|
+
*
|
|
20579
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20580
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20581
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20582
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20583
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20584
|
+
*
|
|
20585
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20586
|
+
*/
|
|
20587
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20588
|
+
/**
|
|
20589
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20590
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20591
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20592
|
+
* never a reason to retry in a loop.
|
|
20593
|
+
*
|
|
20594
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20595
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20596
|
+
* carries the runner's own miss reason.
|
|
20597
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20598
|
+
*/
|
|
20599
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20600
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20601
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20602
|
+
parked: literal(true),
|
|
20603
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20604
|
+
nodeId: string(),
|
|
20605
|
+
width: number().int().positive(),
|
|
20606
|
+
height: number().int().positive(),
|
|
20607
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20608
|
+
bytes: number().int().nonnegative(),
|
|
20609
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20610
|
+
replaced: boolean()
|
|
20611
|
+
}), object({
|
|
20612
|
+
parked: literal(false),
|
|
20613
|
+
nodeId: string(),
|
|
20614
|
+
reason: ParkRefusalSchema,
|
|
20615
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20616
|
+
handleAgeMs: number().nullable(),
|
|
20617
|
+
detail: string().optional()
|
|
20618
|
+
})]);
|
|
20619
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20620
|
+
var ParkedTrackFrameSchema = object({
|
|
20621
|
+
jpeg: string(),
|
|
20622
|
+
width: number().int().positive(),
|
|
20623
|
+
height: number().int().positive(),
|
|
20624
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20625
|
+
timestamp: number(),
|
|
20626
|
+
/** When the node stored it (the node's clock). */
|
|
20627
|
+
parkedAt: number()
|
|
20628
|
+
});
|
|
20530
20629
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20531
20630
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20532
20631
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20916,7 +21015,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20916
21015
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20917
21016
|
* analyzer providers) running on decoded frames in this runner.
|
|
20918
21017
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20919
|
-
* analytics
|
|
21018
|
+
* analytics). The provider emits ProviderMotion
|
|
20920
21019
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20921
21020
|
*/
|
|
20922
21021
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21158,7 +21257,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21158
21257
|
className: string(),
|
|
21159
21258
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21160
21259
|
sourceDeviceId: number()
|
|
21161
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21260
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21261
|
+
deviceId: number(),
|
|
21262
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21263
|
+
trackId: string(),
|
|
21264
|
+
kind: ParkedFrameKindSchema,
|
|
21265
|
+
handle: FrameHandleSchema,
|
|
21266
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21267
|
+
bbox: NativeCropBboxSchema,
|
|
21268
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21269
|
+
maxWidth: number().int().positive().optional(),
|
|
21270
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21271
|
+
timestamp: number()
|
|
21272
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21273
|
+
deviceId: number(),
|
|
21274
|
+
trackId: string(),
|
|
21275
|
+
kind: ParkedFrameKindSchema
|
|
21276
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21277
|
+
deviceId: number(),
|
|
21278
|
+
trackId: string()
|
|
21279
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21162
21280
|
var CameraPipelineConfigSchema = object({
|
|
21163
21281
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21164
21282
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24228,8 +24346,8 @@ onStatusChanged: { data: object({
|
|
|
24228
24346
|
/**
|
|
24229
24347
|
* Runtime-state slice — every provider that registers this cap
|
|
24230
24348
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24231
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24232
|
-
*
|
|
24349
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24350
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24233
24351
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24234
24352
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24235
24353
|
* the underlying driver.
|
|
@@ -24362,7 +24480,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24362
24480
|
*
|
|
24363
24481
|
* Implementations:
|
|
24364
24482
|
* - Each camera-providing addon registers this cap natively per
|
|
24365
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24483
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24366
24484
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24367
24485
|
* extra round-trip to the camera, no probing.
|
|
24368
24486
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26454,7 +26572,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26454
26572
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26455
26573
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26456
26574
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26457
|
-
* `device-provider` integrations (Reolink/
|
|
26575
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26458
26576
|
* legacy config → discovery flow.
|
|
26459
26577
|
*/
|
|
26460
26578
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -29822,7 +29940,23 @@ var RecordingRangeSchema = object({
|
|
|
29822
29940
|
});
|
|
29823
29941
|
var RecordingAvailabilitySchema = object({
|
|
29824
29942
|
deviceId: number(),
|
|
29825
|
-
ranges: array(RecordingRangeSchema)
|
|
29943
|
+
ranges: array(RecordingRangeSchema),
|
|
29944
|
+
/**
|
|
29945
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
29946
|
+
* describes (D433).
|
|
29947
|
+
*
|
|
29948
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
29949
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
29950
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
29951
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
29952
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
29953
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
29954
|
+
* UI could not see it.
|
|
29955
|
+
*
|
|
29956
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
29957
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
29958
|
+
*/
|
|
29959
|
+
profilesWithFootage: array(string())
|
|
29826
29960
|
});
|
|
29827
29961
|
var RecordingDaysSchema = object({
|
|
29828
29962
|
deviceId: number(),
|
|
@@ -29848,7 +29982,11 @@ var RecordingDaysSchema = object({
|
|
|
29848
29982
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29849
29983
|
deviceId: number(),
|
|
29850
29984
|
read: _enum(["read", "unreadable"]),
|
|
29851
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
29985
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
29986
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
29987
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
29988
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
29989
|
+
profilesWithFootage: array(string()).readonly()
|
|
29852
29990
|
});
|
|
29853
29991
|
/**
|
|
29854
29992
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -29878,13 +30016,31 @@ var RecordingManifestSchema = object({
|
|
|
29878
30016
|
*/
|
|
29879
30017
|
playbackEndpoints: array(string())
|
|
29880
30018
|
});
|
|
29881
|
-
/**
|
|
29882
|
-
*
|
|
30019
|
+
/**
|
|
30020
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30021
|
+
* across every profile and every resolvable location on this node.
|
|
30022
|
+
*
|
|
30023
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30024
|
+
*
|
|
30025
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30026
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30027
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30028
|
+
*
|
|
30029
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30030
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30031
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30032
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30033
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30034
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30035
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30036
|
+
*/
|
|
29883
30037
|
var RecordingDeviceUsageSchema = object({
|
|
29884
30038
|
deviceId: number(),
|
|
30039
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30040
|
+
* recordings locations. */
|
|
29885
30041
|
usedBytes: number(),
|
|
29886
30042
|
/**
|
|
29887
|
-
* Start of this camera's OLDEST
|
|
30043
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
29888
30044
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
29889
30045
|
* only honest answer to "is retention actually holding?" per camera.
|
|
29890
30046
|
*
|
|
@@ -29894,7 +30050,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
29894
30050
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
29895
30051
|
* the later of the two.
|
|
29896
30052
|
*/
|
|
29897
|
-
oldestMs: number().nullable().optional()
|
|
30053
|
+
oldestMs: number().nullable().optional(),
|
|
30054
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30055
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30056
|
+
segments: number().optional(),
|
|
30057
|
+
/**
|
|
30058
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30059
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30060
|
+
*
|
|
30061
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30062
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30063
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30064
|
+
* it, and so does a node whose ledger could not answer.
|
|
30065
|
+
*/
|
|
30066
|
+
residentBytes: number().optional(),
|
|
30067
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30068
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30069
|
+
* retention. `null` = nothing resident. */
|
|
30070
|
+
residentOldestMs: number().nullable().optional()
|
|
29898
30071
|
});
|
|
29899
30072
|
/** Recording storage usage + capacity for one storage location. */
|
|
29900
30073
|
var RecordingLocationUsageSchema = object({
|
|
@@ -29932,6 +30105,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
29932
30105
|
totalUsedBytes: number(),
|
|
29933
30106
|
devices: array(RecordingDeviceUsageSchema),
|
|
29934
30107
|
/**
|
|
30108
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30109
|
+
* disks (D418).
|
|
30110
|
+
*
|
|
30111
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30112
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30113
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30114
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30115
|
+
* and its rows are residency.
|
|
30116
|
+
*/
|
|
30117
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30118
|
+
/**
|
|
29935
30119
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
29936
30120
|
* of the payload without it: the hub serves this method through a BAKED
|
|
29937
30121
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30092,7 +30276,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30092
30276
|
method(object({
|
|
30093
30277
|
deviceId: number(),
|
|
30094
30278
|
fromMs: number(),
|
|
30095
|
-
toMs: number()
|
|
30279
|
+
toMs: number(),
|
|
30280
|
+
/**
|
|
30281
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30282
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30283
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30284
|
+
* for.
|
|
30285
|
+
*/
|
|
30286
|
+
profile: string().optional()
|
|
30096
30287
|
}), RecordingAvailabilitySchema, {
|
|
30097
30288
|
kind: "query",
|
|
30098
30289
|
auth: "protected"
|
|
@@ -33811,7 +34002,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
33811
34002
|
};
|
|
33812
34003
|
}
|
|
33813
34004
|
/**
|
|
33814
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34005
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
33815
34006
|
*
|
|
33816
34007
|
* Provides default implementations for the common device-provider cap
|
|
33817
34008
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38467,6 +38658,24 @@ Object.freeze({
|
|
|
38467
38658
|
addonId: null,
|
|
38468
38659
|
access: "view"
|
|
38469
38660
|
},
|
|
38661
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38662
|
+
capName: "pipeline-runner",
|
|
38663
|
+
capScope: "system",
|
|
38664
|
+
addonId: null,
|
|
38665
|
+
access: "view"
|
|
38666
|
+
},
|
|
38667
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38668
|
+
capName: "pipeline-runner",
|
|
38669
|
+
capScope: "system",
|
|
38670
|
+
addonId: null,
|
|
38671
|
+
access: "create"
|
|
38672
|
+
},
|
|
38673
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38674
|
+
capName: "pipeline-runner",
|
|
38675
|
+
capScope: "system",
|
|
38676
|
+
addonId: null,
|
|
38677
|
+
access: "create"
|
|
38678
|
+
},
|
|
38470
38679
|
"pipelineRunner.reportMotion": {
|
|
38471
38680
|
capName: "pipeline-runner",
|
|
38472
38681
|
capScope: "system",
|
|
@@ -41744,6 +41953,21 @@ Object.freeze({
|
|
|
41744
41953
|
form: "single",
|
|
41745
41954
|
optional: false
|
|
41746
41955
|
}],
|
|
41956
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
41957
|
+
name: "deviceId",
|
|
41958
|
+
form: "single",
|
|
41959
|
+
optional: false
|
|
41960
|
+
}],
|
|
41961
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
41962
|
+
name: "deviceId",
|
|
41963
|
+
form: "single",
|
|
41964
|
+
optional: false
|
|
41965
|
+
}],
|
|
41966
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
41967
|
+
name: "deviceId",
|
|
41968
|
+
form: "single",
|
|
41969
|
+
optional: false
|
|
41970
|
+
}],
|
|
41747
41971
|
"pipelineRunner.reportMotion": [{
|
|
41748
41972
|
name: "deviceId",
|
|
41749
41973
|
form: "single",
|
|
@@ -42435,7 +42659,7 @@ var PreviewTextField = string().max(200);
|
|
|
42435
42659
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42436
42660
|
*
|
|
42437
42661
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42438
|
-
* rule)"* —
|
|
42662
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42439
42663
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42440
42664
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42441
42665
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -590,7 +590,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
590
590
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
591
591
|
*/
|
|
592
592
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
593
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
594
593
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
595
594
|
/**
|
|
596
595
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12624,7 +12623,7 @@ DeviceType.Camera;
|
|
|
12624
12623
|
var SourceInfoSchema = object({
|
|
12625
12624
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12626
12625
|
id: string(),
|
|
12627
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12626
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12628
12627
|
system: string(),
|
|
12629
12628
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12630
12629
|
* Used to detect rename when `id` changes. */
|
|
@@ -12637,7 +12636,7 @@ var SourceInfoSchema = object({
|
|
|
12637
12636
|
/**
|
|
12638
12637
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12639
12638
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12640
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12639
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12641
12640
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12642
12641
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12643
12642
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13299,7 +13298,7 @@ var deviceProviderCapability = {
|
|
|
13299
13298
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13300
13299
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13301
13300
|
*
|
|
13302
|
-
* All device provider addons (rtsp, onvif,
|
|
13301
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13303
13302
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13304
13303
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13305
13304
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17347,7 +17346,7 @@ var NcRuleInputSchema = object({
|
|
|
17347
17346
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17348
17347
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17349
17348
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17350
|
-
* 30 is
|
|
17349
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17351
17350
|
*
|
|
17352
17351
|
* ### What it replaces
|
|
17353
17352
|
*
|
|
@@ -19429,6 +19428,13 @@ var ZoneCrossingSchema = object({
|
|
|
19429
19428
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19430
19429
|
zoneName: string().optional()
|
|
19431
19430
|
});
|
|
19431
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19432
|
+
var ZoneOverlapSchema = object({
|
|
19433
|
+
zoneId: string(),
|
|
19434
|
+
zoneName: string().optional(),
|
|
19435
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19436
|
+
overlapPct: number()
|
|
19437
|
+
});
|
|
19432
19438
|
var ObjectEventSchema = object({
|
|
19433
19439
|
...BaseEventFields,
|
|
19434
19440
|
kind: literal("object"),
|
|
@@ -19453,6 +19459,35 @@ var ObjectEventSchema = object({
|
|
|
19453
19459
|
bbox: BoundingBoxSchema.optional(),
|
|
19454
19460
|
/** Heavy JSON — omitted in slim projection. */
|
|
19455
19461
|
zones: array(string()).readonly().optional(),
|
|
19462
|
+
/**
|
|
19463
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19464
|
+
* the BOX area.
|
|
19465
|
+
*
|
|
19466
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19467
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19468
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19469
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19470
|
+
* else to judge by.
|
|
19471
|
+
*/
|
|
19472
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19473
|
+
/**
|
|
19474
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19475
|
+
* has no track and never will.
|
|
19476
|
+
*
|
|
19477
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19478
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19479
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19480
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19481
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19482
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19483
|
+
* event at all.
|
|
19484
|
+
*
|
|
19485
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19486
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19487
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19488
|
+
* history is asking for something that never existed.
|
|
19489
|
+
*/
|
|
19490
|
+
spawnRefused: string().optional(),
|
|
19456
19491
|
/** Omitted in slim projection. */
|
|
19457
19492
|
state: TrackStateSchema.optional(),
|
|
19458
19493
|
/**
|
|
@@ -19879,7 +19914,17 @@ var EventDensityBucketSchema = object({
|
|
|
19879
19914
|
bucketStart: number(),
|
|
19880
19915
|
motion: number().int(),
|
|
19881
19916
|
object: number().int(),
|
|
19882
|
-
audio: number().int()
|
|
19917
|
+
audio: number().int(),
|
|
19918
|
+
/**
|
|
19919
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19920
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19921
|
+
*
|
|
19922
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19923
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19924
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19925
|
+
* the count-on-a-level-meter did.
|
|
19926
|
+
*/
|
|
19927
|
+
audioDbfs: number().optional()
|
|
19883
19928
|
});
|
|
19884
19929
|
/**
|
|
19885
19930
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20526,6 +20571,60 @@ var NativeCropResultSchema = object({
|
|
|
20526
20571
|
*/
|
|
20527
20572
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20528
20573
|
});
|
|
20574
|
+
/**
|
|
20575
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20576
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20577
|
+
*
|
|
20578
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20579
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20580
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20581
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20582
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20583
|
+
*
|
|
20584
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20585
|
+
*/
|
|
20586
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20587
|
+
/**
|
|
20588
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20589
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20590
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20591
|
+
* never a reason to retry in a loop.
|
|
20592
|
+
*
|
|
20593
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20594
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20595
|
+
* carries the runner's own miss reason.
|
|
20596
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20597
|
+
*/
|
|
20598
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20599
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20600
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20601
|
+
parked: literal(true),
|
|
20602
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20603
|
+
nodeId: string(),
|
|
20604
|
+
width: number().int().positive(),
|
|
20605
|
+
height: number().int().positive(),
|
|
20606
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20607
|
+
bytes: number().int().nonnegative(),
|
|
20608
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20609
|
+
replaced: boolean()
|
|
20610
|
+
}), object({
|
|
20611
|
+
parked: literal(false),
|
|
20612
|
+
nodeId: string(),
|
|
20613
|
+
reason: ParkRefusalSchema,
|
|
20614
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20615
|
+
handleAgeMs: number().nullable(),
|
|
20616
|
+
detail: string().optional()
|
|
20617
|
+
})]);
|
|
20618
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20619
|
+
var ParkedTrackFrameSchema = object({
|
|
20620
|
+
jpeg: string(),
|
|
20621
|
+
width: number().int().positive(),
|
|
20622
|
+
height: number().int().positive(),
|
|
20623
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20624
|
+
timestamp: number(),
|
|
20625
|
+
/** When the node stored it (the node's clock). */
|
|
20626
|
+
parkedAt: number()
|
|
20627
|
+
});
|
|
20529
20628
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20530
20629
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20531
20630
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20915,7 +21014,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20915
21014
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20916
21015
|
* analyzer providers) running on decoded frames in this runner.
|
|
20917
21016
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20918
|
-
* analytics
|
|
21017
|
+
* analytics). The provider emits ProviderMotion
|
|
20919
21018
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20920
21019
|
*/
|
|
20921
21020
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21157,7 +21256,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21157
21256
|
className: string(),
|
|
21158
21257
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21159
21258
|
sourceDeviceId: number()
|
|
21160
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21259
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21260
|
+
deviceId: number(),
|
|
21261
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21262
|
+
trackId: string(),
|
|
21263
|
+
kind: ParkedFrameKindSchema,
|
|
21264
|
+
handle: FrameHandleSchema,
|
|
21265
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21266
|
+
bbox: NativeCropBboxSchema,
|
|
21267
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21268
|
+
maxWidth: number().int().positive().optional(),
|
|
21269
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21270
|
+
timestamp: number()
|
|
21271
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21272
|
+
deviceId: number(),
|
|
21273
|
+
trackId: string(),
|
|
21274
|
+
kind: ParkedFrameKindSchema
|
|
21275
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21276
|
+
deviceId: number(),
|
|
21277
|
+
trackId: string()
|
|
21278
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21161
21279
|
var CameraPipelineConfigSchema = object({
|
|
21162
21280
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21163
21281
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24227,8 +24345,8 @@ onStatusChanged: { data: object({
|
|
|
24227
24345
|
/**
|
|
24228
24346
|
* Runtime-state slice — every provider that registers this cap
|
|
24229
24347
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24230
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24231
|
-
*
|
|
24348
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24349
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24232
24350
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24233
24351
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24234
24352
|
* the underlying driver.
|
|
@@ -24361,7 +24479,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24361
24479
|
*
|
|
24362
24480
|
* Implementations:
|
|
24363
24481
|
* - Each camera-providing addon registers this cap natively per
|
|
24364
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24482
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24365
24483
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24366
24484
|
* extra round-trip to the camera, no probing.
|
|
24367
24485
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26453,7 +26571,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26453
26571
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26454
26572
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26455
26573
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26456
|
-
* `device-provider` integrations (Reolink/
|
|
26574
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26457
26575
|
* legacy config → discovery flow.
|
|
26458
26576
|
*/
|
|
26459
26577
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -29821,7 +29939,23 @@ var RecordingRangeSchema = object({
|
|
|
29821
29939
|
});
|
|
29822
29940
|
var RecordingAvailabilitySchema = object({
|
|
29823
29941
|
deviceId: number(),
|
|
29824
|
-
ranges: array(RecordingRangeSchema)
|
|
29942
|
+
ranges: array(RecordingRangeSchema),
|
|
29943
|
+
/**
|
|
29944
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
29945
|
+
* describes (D433).
|
|
29946
|
+
*
|
|
29947
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
29948
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
29949
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
29950
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
29951
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
29952
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
29953
|
+
* UI could not see it.
|
|
29954
|
+
*
|
|
29955
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
29956
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
29957
|
+
*/
|
|
29958
|
+
profilesWithFootage: array(string())
|
|
29825
29959
|
});
|
|
29826
29960
|
var RecordingDaysSchema = object({
|
|
29827
29961
|
deviceId: number(),
|
|
@@ -29847,7 +29981,11 @@ var RecordingDaysSchema = object({
|
|
|
29847
29981
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29848
29982
|
deviceId: number(),
|
|
29849
29983
|
read: _enum(["read", "unreadable"]),
|
|
29850
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
29984
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
29985
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
29986
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
29987
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
29988
|
+
profilesWithFootage: array(string()).readonly()
|
|
29851
29989
|
});
|
|
29852
29990
|
/**
|
|
29853
29991
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -29877,13 +30015,31 @@ var RecordingManifestSchema = object({
|
|
|
29877
30015
|
*/
|
|
29878
30016
|
playbackEndpoints: array(string())
|
|
29879
30017
|
});
|
|
29880
|
-
/**
|
|
29881
|
-
*
|
|
30018
|
+
/**
|
|
30019
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30020
|
+
* across every profile and every resolvable location on this node.
|
|
30021
|
+
*
|
|
30022
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30023
|
+
*
|
|
30024
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30025
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30026
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30027
|
+
*
|
|
30028
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30029
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30030
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30031
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30032
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30033
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30034
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30035
|
+
*/
|
|
29882
30036
|
var RecordingDeviceUsageSchema = object({
|
|
29883
30037
|
deviceId: number(),
|
|
30038
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30039
|
+
* recordings locations. */
|
|
29884
30040
|
usedBytes: number(),
|
|
29885
30041
|
/**
|
|
29886
|
-
* Start of this camera's OLDEST
|
|
30042
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
29887
30043
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
29888
30044
|
* only honest answer to "is retention actually holding?" per camera.
|
|
29889
30045
|
*
|
|
@@ -29893,7 +30049,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
29893
30049
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
29894
30050
|
* the later of the two.
|
|
29895
30051
|
*/
|
|
29896
|
-
oldestMs: number().nullable().optional()
|
|
30052
|
+
oldestMs: number().nullable().optional(),
|
|
30053
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30054
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30055
|
+
segments: number().optional(),
|
|
30056
|
+
/**
|
|
30057
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30058
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30059
|
+
*
|
|
30060
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30061
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30062
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30063
|
+
* it, and so does a node whose ledger could not answer.
|
|
30064
|
+
*/
|
|
30065
|
+
residentBytes: number().optional(),
|
|
30066
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30067
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30068
|
+
* retention. `null` = nothing resident. */
|
|
30069
|
+
residentOldestMs: number().nullable().optional()
|
|
29897
30070
|
});
|
|
29898
30071
|
/** Recording storage usage + capacity for one storage location. */
|
|
29899
30072
|
var RecordingLocationUsageSchema = object({
|
|
@@ -29931,6 +30104,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
29931
30104
|
totalUsedBytes: number(),
|
|
29932
30105
|
devices: array(RecordingDeviceUsageSchema),
|
|
29933
30106
|
/**
|
|
30107
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30108
|
+
* disks (D418).
|
|
30109
|
+
*
|
|
30110
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30111
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30112
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30113
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30114
|
+
* and its rows are residency.
|
|
30115
|
+
*/
|
|
30116
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30117
|
+
/**
|
|
29934
30118
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
29935
30119
|
* of the payload without it: the hub serves this method through a BAKED
|
|
29936
30120
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30091,7 +30275,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30091
30275
|
method(object({
|
|
30092
30276
|
deviceId: number(),
|
|
30093
30277
|
fromMs: number(),
|
|
30094
|
-
toMs: number()
|
|
30278
|
+
toMs: number(),
|
|
30279
|
+
/**
|
|
30280
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30281
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30282
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30283
|
+
* for.
|
|
30284
|
+
*/
|
|
30285
|
+
profile: string().optional()
|
|
30095
30286
|
}), RecordingAvailabilitySchema, {
|
|
30096
30287
|
kind: "query",
|
|
30097
30288
|
auth: "protected"
|
|
@@ -33810,7 +34001,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
33810
34001
|
};
|
|
33811
34002
|
}
|
|
33812
34003
|
/**
|
|
33813
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34004
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
33814
34005
|
*
|
|
33815
34006
|
* Provides default implementations for the common device-provider cap
|
|
33816
34007
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38466,6 +38657,24 @@ Object.freeze({
|
|
|
38466
38657
|
addonId: null,
|
|
38467
38658
|
access: "view"
|
|
38468
38659
|
},
|
|
38660
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38661
|
+
capName: "pipeline-runner",
|
|
38662
|
+
capScope: "system",
|
|
38663
|
+
addonId: null,
|
|
38664
|
+
access: "view"
|
|
38665
|
+
},
|
|
38666
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38667
|
+
capName: "pipeline-runner",
|
|
38668
|
+
capScope: "system",
|
|
38669
|
+
addonId: null,
|
|
38670
|
+
access: "create"
|
|
38671
|
+
},
|
|
38672
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38673
|
+
capName: "pipeline-runner",
|
|
38674
|
+
capScope: "system",
|
|
38675
|
+
addonId: null,
|
|
38676
|
+
access: "create"
|
|
38677
|
+
},
|
|
38469
38678
|
"pipelineRunner.reportMotion": {
|
|
38470
38679
|
capName: "pipeline-runner",
|
|
38471
38680
|
capScope: "system",
|
|
@@ -41743,6 +41952,21 @@ Object.freeze({
|
|
|
41743
41952
|
form: "single",
|
|
41744
41953
|
optional: false
|
|
41745
41954
|
}],
|
|
41955
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
41956
|
+
name: "deviceId",
|
|
41957
|
+
form: "single",
|
|
41958
|
+
optional: false
|
|
41959
|
+
}],
|
|
41960
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
41961
|
+
name: "deviceId",
|
|
41962
|
+
form: "single",
|
|
41963
|
+
optional: false
|
|
41964
|
+
}],
|
|
41965
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
41966
|
+
name: "deviceId",
|
|
41967
|
+
form: "single",
|
|
41968
|
+
optional: false
|
|
41969
|
+
}],
|
|
41746
41970
|
"pipelineRunner.reportMotion": [{
|
|
41747
41971
|
name: "deviceId",
|
|
41748
41972
|
form: "single",
|
|
@@ -42434,7 +42658,7 @@ var PreviewTextField = string().max(200);
|
|
|
42434
42658
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42435
42659
|
*
|
|
42436
42660
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42437
|
-
* rule)"* —
|
|
42661
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42438
42662
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42439
42663
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42440
42664
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/package.json
CHANGED