@camstack/addon-provider-rademacher 0.2.89 → 0.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +246 -22
- package/dist/addon.mjs +246 -22
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -984,7 +984,7 @@ var Rademacher = class {
|
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
//#endregion
|
|
987
|
-
//#region ../types/dist/event-category-
|
|
987
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
988
988
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
989
989
|
EventCategory["SystemBoot"] = "system.boot";
|
|
990
990
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1576,7 +1576,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1576
1576
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
1577
1577
|
*/
|
|
1578
1578
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
1579
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
1580
1579
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
1581
1580
|
/**
|
|
1582
1581
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13610,7 +13609,7 @@ DeviceType.Camera;
|
|
|
13610
13609
|
var SourceInfoSchema = object({
|
|
13611
13610
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13612
13611
|
id: string(),
|
|
13613
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13612
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13614
13613
|
system: string(),
|
|
13615
13614
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13616
13615
|
* Used to detect rename when `id` changes. */
|
|
@@ -13623,7 +13622,7 @@ var SourceInfoSchema = object({
|
|
|
13623
13622
|
/**
|
|
13624
13623
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
13625
13624
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
13626
|
-
* (Reolink / Hikvision / ONVIF /
|
|
13625
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
13627
13626
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
13628
13627
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
13629
13628
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -14285,7 +14284,7 @@ var deviceProviderCapability = {
|
|
|
14285
14284
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
14286
14285
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
14287
14286
|
*
|
|
14288
|
-
* All device provider addons (rtsp, onvif,
|
|
14287
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
14289
14288
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
14290
14289
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
14291
14290
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -18333,7 +18332,7 @@ var NcRuleInputSchema = object({
|
|
|
18333
18332
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
18334
18333
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
18335
18334
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
18336
|
-
* 30 is
|
|
18335
|
+
* 30 s is a widely shipped value for the same decision.
|
|
18337
18336
|
*
|
|
18338
18337
|
* ### What it replaces
|
|
18339
18338
|
*
|
|
@@ -20415,6 +20414,13 @@ var ZoneCrossingSchema = object({
|
|
|
20415
20414
|
/** Zone display name at crossing time (falls back to the id). */
|
|
20416
20415
|
zoneName: string().optional()
|
|
20417
20416
|
});
|
|
20417
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
20418
|
+
var ZoneOverlapSchema = object({
|
|
20419
|
+
zoneId: string(),
|
|
20420
|
+
zoneName: string().optional(),
|
|
20421
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
20422
|
+
overlapPct: number()
|
|
20423
|
+
});
|
|
20418
20424
|
var ObjectEventSchema = object({
|
|
20419
20425
|
...BaseEventFields,
|
|
20420
20426
|
kind: literal("object"),
|
|
@@ -20439,6 +20445,35 @@ var ObjectEventSchema = object({
|
|
|
20439
20445
|
bbox: BoundingBoxSchema.optional(),
|
|
20440
20446
|
/** Heavy JSON — omitted in slim projection. */
|
|
20441
20447
|
zones: array(string()).readonly().optional(),
|
|
20448
|
+
/**
|
|
20449
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
20450
|
+
* the BOX area.
|
|
20451
|
+
*
|
|
20452
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
20453
|
+
* the bar an operator argues with — and the number already existed: the
|
|
20454
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
20455
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
20456
|
+
* else to judge by.
|
|
20457
|
+
*/
|
|
20458
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
20459
|
+
/**
|
|
20460
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
20461
|
+
* has no track and never will.
|
|
20462
|
+
*
|
|
20463
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
20464
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
20465
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
20466
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
20467
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
20468
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
20469
|
+
* event at all.
|
|
20470
|
+
*
|
|
20471
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
20472
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
20473
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
20474
|
+
* history is asking for something that never existed.
|
|
20475
|
+
*/
|
|
20476
|
+
spawnRefused: string().optional(),
|
|
20442
20477
|
/** Omitted in slim projection. */
|
|
20443
20478
|
state: TrackStateSchema.optional(),
|
|
20444
20479
|
/**
|
|
@@ -20865,7 +20900,17 @@ var EventDensityBucketSchema = object({
|
|
|
20865
20900
|
bucketStart: number(),
|
|
20866
20901
|
motion: number().int(),
|
|
20867
20902
|
object: number().int(),
|
|
20868
|
-
audio: number().int()
|
|
20903
|
+
audio: number().int(),
|
|
20904
|
+
/**
|
|
20905
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20906
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20907
|
+
*
|
|
20908
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20909
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20910
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20911
|
+
* the count-on-a-level-meter did.
|
|
20912
|
+
*/
|
|
20913
|
+
audioDbfs: number().optional()
|
|
20869
20914
|
});
|
|
20870
20915
|
/**
|
|
20871
20916
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21512,6 +21557,60 @@ var NativeCropResultSchema = object({
|
|
|
21512
21557
|
*/
|
|
21513
21558
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
21514
21559
|
});
|
|
21560
|
+
/**
|
|
21561
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
21562
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21563
|
+
*
|
|
21564
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
21565
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
21566
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
21567
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
21568
|
+
* window, cut by the runner at uncapped native resolution.
|
|
21569
|
+
*
|
|
21570
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
21571
|
+
*/
|
|
21572
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
21573
|
+
/**
|
|
21574
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21575
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21576
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21577
|
+
* never a reason to retry in a loop.
|
|
21578
|
+
*
|
|
21579
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21580
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21581
|
+
* carries the runner's own miss reason.
|
|
21582
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21583
|
+
*/
|
|
21584
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
21585
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21586
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
21587
|
+
parked: literal(true),
|
|
21588
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21589
|
+
nodeId: string(),
|
|
21590
|
+
width: number().int().positive(),
|
|
21591
|
+
height: number().int().positive(),
|
|
21592
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21593
|
+
bytes: number().int().nonnegative(),
|
|
21594
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21595
|
+
replaced: boolean()
|
|
21596
|
+
}), object({
|
|
21597
|
+
parked: literal(false),
|
|
21598
|
+
nodeId: string(),
|
|
21599
|
+
reason: ParkRefusalSchema,
|
|
21600
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21601
|
+
handleAgeMs: number().nullable(),
|
|
21602
|
+
detail: string().optional()
|
|
21603
|
+
})]);
|
|
21604
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21605
|
+
var ParkedTrackFrameSchema = object({
|
|
21606
|
+
jpeg: string(),
|
|
21607
|
+
width: number().int().positive(),
|
|
21608
|
+
height: number().int().positive(),
|
|
21609
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21610
|
+
timestamp: number(),
|
|
21611
|
+
/** When the node stored it (the node's clock). */
|
|
21612
|
+
parkedAt: number()
|
|
21613
|
+
});
|
|
21515
21614
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
21516
21615
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
21517
21616
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21901,7 +22000,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21901
22000
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21902
22001
|
* analyzer providers) running on decoded frames in this runner.
|
|
21903
22002
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21904
|
-
* analytics
|
|
22003
|
+
* analytics). The provider emits ProviderMotion
|
|
21905
22004
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21906
22005
|
*/
|
|
21907
22006
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -22143,7 +22242,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22143
22242
|
className: string(),
|
|
22144
22243
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
22145
22244
|
sourceDeviceId: number()
|
|
22146
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
22245
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
22246
|
+
deviceId: number(),
|
|
22247
|
+
/** Opaque to the runner — the hub's track id. */
|
|
22248
|
+
trackId: string(),
|
|
22249
|
+
kind: ParkedFrameKindSchema,
|
|
22250
|
+
handle: FrameHandleSchema,
|
|
22251
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
22252
|
+
bbox: NativeCropBboxSchema,
|
|
22253
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
22254
|
+
maxWidth: number().int().positive().optional(),
|
|
22255
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
22256
|
+
timestamp: number()
|
|
22257
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
22258
|
+
deviceId: number(),
|
|
22259
|
+
trackId: string(),
|
|
22260
|
+
kind: ParkedFrameKindSchema
|
|
22261
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
22262
|
+
deviceId: number(),
|
|
22263
|
+
trackId: string()
|
|
22264
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
22147
22265
|
var CameraPipelineConfigSchema = object({
|
|
22148
22266
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
22149
22267
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -25213,8 +25331,8 @@ onStatusChanged: { data: object({
|
|
|
25213
25331
|
/**
|
|
25214
25332
|
* Runtime-state slice — every provider that registers this cap
|
|
25215
25333
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25216
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25217
|
-
*
|
|
25334
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25335
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25218
25336
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25219
25337
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25220
25338
|
* the underlying driver.
|
|
@@ -25347,7 +25465,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
25347
25465
|
*
|
|
25348
25466
|
* Implementations:
|
|
25349
25467
|
* - Each camera-providing addon registers this cap natively per
|
|
25350
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25468
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25351
25469
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25352
25470
|
* extra round-trip to the camera, no probing.
|
|
25353
25471
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27439,7 +27557,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
27439
27557
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27440
27558
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27441
27559
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27442
|
-
* `device-provider` integrations (Reolink/
|
|
27560
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27443
27561
|
* legacy config → discovery flow.
|
|
27444
27562
|
*/
|
|
27445
27563
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30807,7 +30925,23 @@ var RecordingRangeSchema = object({
|
|
|
30807
30925
|
});
|
|
30808
30926
|
var RecordingAvailabilitySchema = object({
|
|
30809
30927
|
deviceId: number(),
|
|
30810
|
-
ranges: array(RecordingRangeSchema)
|
|
30928
|
+
ranges: array(RecordingRangeSchema),
|
|
30929
|
+
/**
|
|
30930
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30931
|
+
* describes (D433).
|
|
30932
|
+
*
|
|
30933
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30934
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30935
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30936
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30937
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30938
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30939
|
+
* UI could not see it.
|
|
30940
|
+
*
|
|
30941
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30942
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30943
|
+
*/
|
|
30944
|
+
profilesWithFootage: array(string())
|
|
30811
30945
|
});
|
|
30812
30946
|
var RecordingDaysSchema = object({
|
|
30813
30947
|
deviceId: number(),
|
|
@@ -30833,7 +30967,11 @@ var RecordingDaysSchema = object({
|
|
|
30833
30967
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30834
30968
|
deviceId: number(),
|
|
30835
30969
|
read: _enum(["read", "unreadable"]),
|
|
30836
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30970
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30971
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30972
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30973
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30974
|
+
profilesWithFootage: array(string()).readonly()
|
|
30837
30975
|
});
|
|
30838
30976
|
/**
|
|
30839
30977
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30863,13 +31001,31 @@ var RecordingManifestSchema = object({
|
|
|
30863
31001
|
*/
|
|
30864
31002
|
playbackEndpoints: array(string())
|
|
30865
31003
|
});
|
|
30866
|
-
/**
|
|
30867
|
-
*
|
|
31004
|
+
/**
|
|
31005
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31006
|
+
* across every profile and every resolvable location on this node.
|
|
31007
|
+
*
|
|
31008
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31009
|
+
*
|
|
31010
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31011
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31012
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31013
|
+
*
|
|
31014
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31015
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31016
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31017
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31018
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31019
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31020
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31021
|
+
*/
|
|
30868
31022
|
var RecordingDeviceUsageSchema = object({
|
|
30869
31023
|
deviceId: number(),
|
|
31024
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31025
|
+
* recordings locations. */
|
|
30870
31026
|
usedBytes: number(),
|
|
30871
31027
|
/**
|
|
30872
|
-
* Start of this camera's OLDEST
|
|
31028
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30873
31029
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30874
31030
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30875
31031
|
*
|
|
@@ -30879,7 +31035,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30879
31035
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30880
31036
|
* the later of the two.
|
|
30881
31037
|
*/
|
|
30882
|
-
oldestMs: number().nullable().optional()
|
|
31038
|
+
oldestMs: number().nullable().optional(),
|
|
31039
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31040
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31041
|
+
segments: number().optional(),
|
|
31042
|
+
/**
|
|
31043
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31044
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31045
|
+
*
|
|
31046
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31047
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31048
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31049
|
+
* it, and so does a node whose ledger could not answer.
|
|
31050
|
+
*/
|
|
31051
|
+
residentBytes: number().optional(),
|
|
31052
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31053
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31054
|
+
* retention. `null` = nothing resident. */
|
|
31055
|
+
residentOldestMs: number().nullable().optional()
|
|
30883
31056
|
});
|
|
30884
31057
|
/** Recording storage usage + capacity for one storage location. */
|
|
30885
31058
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30917,6 +31090,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30917
31090
|
totalUsedBytes: number(),
|
|
30918
31091
|
devices: array(RecordingDeviceUsageSchema),
|
|
30919
31092
|
/**
|
|
31093
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31094
|
+
* disks (D418).
|
|
31095
|
+
*
|
|
31096
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31097
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31098
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31099
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31100
|
+
* and its rows are residency.
|
|
31101
|
+
*/
|
|
31102
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
31103
|
+
/**
|
|
30920
31104
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30921
31105
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30922
31106
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -31077,7 +31261,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31077
31261
|
method(object({
|
|
31078
31262
|
deviceId: number(),
|
|
31079
31263
|
fromMs: number(),
|
|
31080
|
-
toMs: number()
|
|
31264
|
+
toMs: number(),
|
|
31265
|
+
/**
|
|
31266
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31267
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31268
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31269
|
+
* for.
|
|
31270
|
+
*/
|
|
31271
|
+
profile: string().optional()
|
|
31081
31272
|
}), RecordingAvailabilitySchema, {
|
|
31082
31273
|
kind: "query",
|
|
31083
31274
|
auth: "protected"
|
|
@@ -34796,7 +34987,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
34796
34987
|
};
|
|
34797
34988
|
}
|
|
34798
34989
|
/**
|
|
34799
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34990
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
34800
34991
|
*
|
|
34801
34992
|
* Provides default implementations for the common device-provider cap
|
|
34802
34993
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -39452,6 +39643,24 @@ Object.freeze({
|
|
|
39452
39643
|
addonId: null,
|
|
39453
39644
|
access: "view"
|
|
39454
39645
|
},
|
|
39646
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
39647
|
+
capName: "pipeline-runner",
|
|
39648
|
+
capScope: "system",
|
|
39649
|
+
addonId: null,
|
|
39650
|
+
access: "view"
|
|
39651
|
+
},
|
|
39652
|
+
"pipelineRunner.parkTrackFrame": {
|
|
39653
|
+
capName: "pipeline-runner",
|
|
39654
|
+
capScope: "system",
|
|
39655
|
+
addonId: null,
|
|
39656
|
+
access: "create"
|
|
39657
|
+
},
|
|
39658
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
39659
|
+
capName: "pipeline-runner",
|
|
39660
|
+
capScope: "system",
|
|
39661
|
+
addonId: null,
|
|
39662
|
+
access: "create"
|
|
39663
|
+
},
|
|
39455
39664
|
"pipelineRunner.reportMotion": {
|
|
39456
39665
|
capName: "pipeline-runner",
|
|
39457
39666
|
capScope: "system",
|
|
@@ -42729,6 +42938,21 @@ Object.freeze({
|
|
|
42729
42938
|
form: "single",
|
|
42730
42939
|
optional: false
|
|
42731
42940
|
}],
|
|
42941
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
42942
|
+
name: "deviceId",
|
|
42943
|
+
form: "single",
|
|
42944
|
+
optional: false
|
|
42945
|
+
}],
|
|
42946
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
42947
|
+
name: "deviceId",
|
|
42948
|
+
form: "single",
|
|
42949
|
+
optional: false
|
|
42950
|
+
}],
|
|
42951
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
42952
|
+
name: "deviceId",
|
|
42953
|
+
form: "single",
|
|
42954
|
+
optional: false
|
|
42955
|
+
}],
|
|
42732
42956
|
"pipelineRunner.reportMotion": [{
|
|
42733
42957
|
name: "deviceId",
|
|
42734
42958
|
form: "single",
|
|
@@ -43420,7 +43644,7 @@ var PreviewTextField = string().max(200);
|
|
|
43420
43644
|
* Whether the notification's preview is a STILL or a short animation.
|
|
43421
43645
|
*
|
|
43422
43646
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
43423
|
-
* rule)"* —
|
|
43647
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
43424
43648
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
43425
43649
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
43426
43650
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/addon.mjs
CHANGED
|
@@ -983,7 +983,7 @@ var Rademacher = class {
|
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
//#endregion
|
|
986
|
-
//#region ../types/dist/event-category-
|
|
986
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
987
987
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
988
988
|
EventCategory["SystemBoot"] = "system.boot";
|
|
989
989
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1575,7 +1575,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1575
1575
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
1576
1576
|
*/
|
|
1577
1577
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
1578
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
1579
1578
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
1580
1579
|
/**
|
|
1581
1580
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13609,7 +13608,7 @@ DeviceType.Camera;
|
|
|
13609
13608
|
var SourceInfoSchema = object({
|
|
13610
13609
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13611
13610
|
id: string(),
|
|
13612
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13611
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13613
13612
|
system: string(),
|
|
13614
13613
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13615
13614
|
* Used to detect rename when `id` changes. */
|
|
@@ -13622,7 +13621,7 @@ var SourceInfoSchema = object({
|
|
|
13622
13621
|
/**
|
|
13623
13622
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
13624
13623
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
13625
|
-
* (Reolink / Hikvision / ONVIF /
|
|
13624
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
13626
13625
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
13627
13626
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
13628
13627
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -14284,7 +14283,7 @@ var deviceProviderCapability = {
|
|
|
14284
14283
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
14285
14284
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
14286
14285
|
*
|
|
14287
|
-
* All device provider addons (rtsp, onvif,
|
|
14286
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
14288
14287
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
14289
14288
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
14290
14289
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -18332,7 +18331,7 @@ var NcRuleInputSchema = object({
|
|
|
18332
18331
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
18333
18332
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
18334
18333
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
18335
|
-
* 30 is
|
|
18334
|
+
* 30 s is a widely shipped value for the same decision.
|
|
18336
18335
|
*
|
|
18337
18336
|
* ### What it replaces
|
|
18338
18337
|
*
|
|
@@ -20414,6 +20413,13 @@ var ZoneCrossingSchema = object({
|
|
|
20414
20413
|
/** Zone display name at crossing time (falls back to the id). */
|
|
20415
20414
|
zoneName: string().optional()
|
|
20416
20415
|
});
|
|
20416
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
20417
|
+
var ZoneOverlapSchema = object({
|
|
20418
|
+
zoneId: string(),
|
|
20419
|
+
zoneName: string().optional(),
|
|
20420
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
20421
|
+
overlapPct: number()
|
|
20422
|
+
});
|
|
20417
20423
|
var ObjectEventSchema = object({
|
|
20418
20424
|
...BaseEventFields,
|
|
20419
20425
|
kind: literal("object"),
|
|
@@ -20438,6 +20444,35 @@ var ObjectEventSchema = object({
|
|
|
20438
20444
|
bbox: BoundingBoxSchema.optional(),
|
|
20439
20445
|
/** Heavy JSON — omitted in slim projection. */
|
|
20440
20446
|
zones: array(string()).readonly().optional(),
|
|
20447
|
+
/**
|
|
20448
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
20449
|
+
* the BOX area.
|
|
20450
|
+
*
|
|
20451
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
20452
|
+
* the bar an operator argues with — and the number already existed: the
|
|
20453
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
20454
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
20455
|
+
* else to judge by.
|
|
20456
|
+
*/
|
|
20457
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
20458
|
+
/**
|
|
20459
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
20460
|
+
* has no track and never will.
|
|
20461
|
+
*
|
|
20462
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
20463
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
20464
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
20465
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
20466
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
20467
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
20468
|
+
* event at all.
|
|
20469
|
+
*
|
|
20470
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
20471
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
20472
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
20473
|
+
* history is asking for something that never existed.
|
|
20474
|
+
*/
|
|
20475
|
+
spawnRefused: string().optional(),
|
|
20441
20476
|
/** Omitted in slim projection. */
|
|
20442
20477
|
state: TrackStateSchema.optional(),
|
|
20443
20478
|
/**
|
|
@@ -20864,7 +20899,17 @@ var EventDensityBucketSchema = object({
|
|
|
20864
20899
|
bucketStart: number(),
|
|
20865
20900
|
motion: number().int(),
|
|
20866
20901
|
object: number().int(),
|
|
20867
|
-
audio: number().int()
|
|
20902
|
+
audio: number().int(),
|
|
20903
|
+
/**
|
|
20904
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20905
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20906
|
+
*
|
|
20907
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20908
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20909
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20910
|
+
* the count-on-a-level-meter did.
|
|
20911
|
+
*/
|
|
20912
|
+
audioDbfs: number().optional()
|
|
20868
20913
|
});
|
|
20869
20914
|
/**
|
|
20870
20915
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21511,6 +21556,60 @@ var NativeCropResultSchema = object({
|
|
|
21511
21556
|
*/
|
|
21512
21557
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
21513
21558
|
});
|
|
21559
|
+
/**
|
|
21560
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
21561
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21562
|
+
*
|
|
21563
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
21564
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
21565
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
21566
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
21567
|
+
* window, cut by the runner at uncapped native resolution.
|
|
21568
|
+
*
|
|
21569
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
21570
|
+
*/
|
|
21571
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
21572
|
+
/**
|
|
21573
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21574
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21575
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21576
|
+
* never a reason to retry in a loop.
|
|
21577
|
+
*
|
|
21578
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21579
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21580
|
+
* carries the runner's own miss reason.
|
|
21581
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21582
|
+
*/
|
|
21583
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
21584
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21585
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
21586
|
+
parked: literal(true),
|
|
21587
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21588
|
+
nodeId: string(),
|
|
21589
|
+
width: number().int().positive(),
|
|
21590
|
+
height: number().int().positive(),
|
|
21591
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21592
|
+
bytes: number().int().nonnegative(),
|
|
21593
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21594
|
+
replaced: boolean()
|
|
21595
|
+
}), object({
|
|
21596
|
+
parked: literal(false),
|
|
21597
|
+
nodeId: string(),
|
|
21598
|
+
reason: ParkRefusalSchema,
|
|
21599
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21600
|
+
handleAgeMs: number().nullable(),
|
|
21601
|
+
detail: string().optional()
|
|
21602
|
+
})]);
|
|
21603
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21604
|
+
var ParkedTrackFrameSchema = object({
|
|
21605
|
+
jpeg: string(),
|
|
21606
|
+
width: number().int().positive(),
|
|
21607
|
+
height: number().int().positive(),
|
|
21608
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21609
|
+
timestamp: number(),
|
|
21610
|
+
/** When the node stored it (the node's clock). */
|
|
21611
|
+
parkedAt: number()
|
|
21612
|
+
});
|
|
21514
21613
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
21515
21614
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
21516
21615
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21900,7 +21999,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21900
21999
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21901
22000
|
* analyzer providers) running on decoded frames in this runner.
|
|
21902
22001
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21903
|
-
* analytics
|
|
22002
|
+
* analytics). The provider emits ProviderMotion
|
|
21904
22003
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21905
22004
|
*/
|
|
21906
22005
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -22142,7 +22241,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22142
22241
|
className: string(),
|
|
22143
22242
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
22144
22243
|
sourceDeviceId: number()
|
|
22145
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
22244
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
22245
|
+
deviceId: number(),
|
|
22246
|
+
/** Opaque to the runner — the hub's track id. */
|
|
22247
|
+
trackId: string(),
|
|
22248
|
+
kind: ParkedFrameKindSchema,
|
|
22249
|
+
handle: FrameHandleSchema,
|
|
22250
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
22251
|
+
bbox: NativeCropBboxSchema,
|
|
22252
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
22253
|
+
maxWidth: number().int().positive().optional(),
|
|
22254
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
22255
|
+
timestamp: number()
|
|
22256
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
22257
|
+
deviceId: number(),
|
|
22258
|
+
trackId: string(),
|
|
22259
|
+
kind: ParkedFrameKindSchema
|
|
22260
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
22261
|
+
deviceId: number(),
|
|
22262
|
+
trackId: string()
|
|
22263
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
22146
22264
|
var CameraPipelineConfigSchema = object({
|
|
22147
22265
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
22148
22266
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -25212,8 +25330,8 @@ onStatusChanged: { data: object({
|
|
|
25212
25330
|
/**
|
|
25213
25331
|
* Runtime-state slice — every provider that registers this cap
|
|
25214
25332
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25215
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25216
|
-
*
|
|
25333
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25334
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25217
25335
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25218
25336
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25219
25337
|
* the underlying driver.
|
|
@@ -25346,7 +25464,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
25346
25464
|
*
|
|
25347
25465
|
* Implementations:
|
|
25348
25466
|
* - Each camera-providing addon registers this cap natively per
|
|
25349
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25467
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25350
25468
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25351
25469
|
* extra round-trip to the camera, no probing.
|
|
25352
25470
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27438,7 +27556,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
27438
27556
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27439
27557
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27440
27558
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27441
|
-
* `device-provider` integrations (Reolink/
|
|
27559
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27442
27560
|
* legacy config → discovery flow.
|
|
27443
27561
|
*/
|
|
27444
27562
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30806,7 +30924,23 @@ var RecordingRangeSchema = object({
|
|
|
30806
30924
|
});
|
|
30807
30925
|
var RecordingAvailabilitySchema = object({
|
|
30808
30926
|
deviceId: number(),
|
|
30809
|
-
ranges: array(RecordingRangeSchema)
|
|
30927
|
+
ranges: array(RecordingRangeSchema),
|
|
30928
|
+
/**
|
|
30929
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30930
|
+
* describes (D433).
|
|
30931
|
+
*
|
|
30932
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30933
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30934
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30935
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30936
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30937
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30938
|
+
* UI could not see it.
|
|
30939
|
+
*
|
|
30940
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30941
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30942
|
+
*/
|
|
30943
|
+
profilesWithFootage: array(string())
|
|
30810
30944
|
});
|
|
30811
30945
|
var RecordingDaysSchema = object({
|
|
30812
30946
|
deviceId: number(),
|
|
@@ -30832,7 +30966,11 @@ var RecordingDaysSchema = object({
|
|
|
30832
30966
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30833
30967
|
deviceId: number(),
|
|
30834
30968
|
read: _enum(["read", "unreadable"]),
|
|
30835
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30969
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30970
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30971
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30972
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30973
|
+
profilesWithFootage: array(string()).readonly()
|
|
30836
30974
|
});
|
|
30837
30975
|
/**
|
|
30838
30976
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30862,13 +31000,31 @@ var RecordingManifestSchema = object({
|
|
|
30862
31000
|
*/
|
|
30863
31001
|
playbackEndpoints: array(string())
|
|
30864
31002
|
});
|
|
30865
|
-
/**
|
|
30866
|
-
*
|
|
31003
|
+
/**
|
|
31004
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31005
|
+
* across every profile and every resolvable location on this node.
|
|
31006
|
+
*
|
|
31007
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31008
|
+
*
|
|
31009
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31010
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31011
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31012
|
+
*
|
|
31013
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31014
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31015
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31016
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31017
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31018
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31019
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31020
|
+
*/
|
|
30867
31021
|
var RecordingDeviceUsageSchema = object({
|
|
30868
31022
|
deviceId: number(),
|
|
31023
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31024
|
+
* recordings locations. */
|
|
30869
31025
|
usedBytes: number(),
|
|
30870
31026
|
/**
|
|
30871
|
-
* Start of this camera's OLDEST
|
|
31027
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30872
31028
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30873
31029
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30874
31030
|
*
|
|
@@ -30878,7 +31034,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30878
31034
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30879
31035
|
* the later of the two.
|
|
30880
31036
|
*/
|
|
30881
|
-
oldestMs: number().nullable().optional()
|
|
31037
|
+
oldestMs: number().nullable().optional(),
|
|
31038
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31039
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31040
|
+
segments: number().optional(),
|
|
31041
|
+
/**
|
|
31042
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31043
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31044
|
+
*
|
|
31045
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31046
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31047
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31048
|
+
* it, and so does a node whose ledger could not answer.
|
|
31049
|
+
*/
|
|
31050
|
+
residentBytes: number().optional(),
|
|
31051
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31052
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31053
|
+
* retention. `null` = nothing resident. */
|
|
31054
|
+
residentOldestMs: number().nullable().optional()
|
|
30882
31055
|
});
|
|
30883
31056
|
/** Recording storage usage + capacity for one storage location. */
|
|
30884
31057
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30916,6 +31089,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30916
31089
|
totalUsedBytes: number(),
|
|
30917
31090
|
devices: array(RecordingDeviceUsageSchema),
|
|
30918
31091
|
/**
|
|
31092
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31093
|
+
* disks (D418).
|
|
31094
|
+
*
|
|
31095
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31096
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31097
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31098
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31099
|
+
* and its rows are residency.
|
|
31100
|
+
*/
|
|
31101
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
31102
|
+
/**
|
|
30919
31103
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30920
31104
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30921
31105
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -31076,7 +31260,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31076
31260
|
method(object({
|
|
31077
31261
|
deviceId: number(),
|
|
31078
31262
|
fromMs: number(),
|
|
31079
|
-
toMs: number()
|
|
31263
|
+
toMs: number(),
|
|
31264
|
+
/**
|
|
31265
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31266
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31267
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31268
|
+
* for.
|
|
31269
|
+
*/
|
|
31270
|
+
profile: string().optional()
|
|
31080
31271
|
}), RecordingAvailabilitySchema, {
|
|
31081
31272
|
kind: "query",
|
|
31082
31273
|
auth: "protected"
|
|
@@ -34795,7 +34986,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
34795
34986
|
};
|
|
34796
34987
|
}
|
|
34797
34988
|
/**
|
|
34798
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34989
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
34799
34990
|
*
|
|
34800
34991
|
* Provides default implementations for the common device-provider cap
|
|
34801
34992
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -39451,6 +39642,24 @@ Object.freeze({
|
|
|
39451
39642
|
addonId: null,
|
|
39452
39643
|
access: "view"
|
|
39453
39644
|
},
|
|
39645
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
39646
|
+
capName: "pipeline-runner",
|
|
39647
|
+
capScope: "system",
|
|
39648
|
+
addonId: null,
|
|
39649
|
+
access: "view"
|
|
39650
|
+
},
|
|
39651
|
+
"pipelineRunner.parkTrackFrame": {
|
|
39652
|
+
capName: "pipeline-runner",
|
|
39653
|
+
capScope: "system",
|
|
39654
|
+
addonId: null,
|
|
39655
|
+
access: "create"
|
|
39656
|
+
},
|
|
39657
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
39658
|
+
capName: "pipeline-runner",
|
|
39659
|
+
capScope: "system",
|
|
39660
|
+
addonId: null,
|
|
39661
|
+
access: "create"
|
|
39662
|
+
},
|
|
39454
39663
|
"pipelineRunner.reportMotion": {
|
|
39455
39664
|
capName: "pipeline-runner",
|
|
39456
39665
|
capScope: "system",
|
|
@@ -42728,6 +42937,21 @@ Object.freeze({
|
|
|
42728
42937
|
form: "single",
|
|
42729
42938
|
optional: false
|
|
42730
42939
|
}],
|
|
42940
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
42941
|
+
name: "deviceId",
|
|
42942
|
+
form: "single",
|
|
42943
|
+
optional: false
|
|
42944
|
+
}],
|
|
42945
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
42946
|
+
name: "deviceId",
|
|
42947
|
+
form: "single",
|
|
42948
|
+
optional: false
|
|
42949
|
+
}],
|
|
42950
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
42951
|
+
name: "deviceId",
|
|
42952
|
+
form: "single",
|
|
42953
|
+
optional: false
|
|
42954
|
+
}],
|
|
42731
42955
|
"pipelineRunner.reportMotion": [{
|
|
42732
42956
|
name: "deviceId",
|
|
42733
42957
|
form: "single",
|
|
@@ -43419,7 +43643,7 @@ var PreviewTextField = string().max(200);
|
|
|
43419
43643
|
* Whether the notification's preview is a STILL or a short animation.
|
|
43420
43644
|
*
|
|
43421
43645
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
43422
|
-
* rule)"* —
|
|
43646
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
43423
43647
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
43424
43648
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
43425
43649
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.92",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|