@camstack/addon-osd-manager 0.1.87 → 0.1.90
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/{MotionZonesSettings-CTeumHLO.mjs → MotionZonesSettings-CpZBRWm5.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-fdjNIqKO.mjs → PrivacyMaskSettings-Tl9QmM7H.mjs} +4 -4
- package/dist/{SceneMonitorEditor-B2J48DBP.mjs → SceneMonitorEditor-BVeDOkRJ.mjs} +3 -3
- package/dist/_stub.js +11 -11
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-C6TKqht-.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-mVEk22g7.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.js-B_4MkXHU.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-mCB-uuJD.mjs +26 -0
- package/dist/addon-osd-manager.css +1 -1
- package/dist/{hostInit-B-ZY3KOE.mjs → hostInit-Dy2SVBdp.mjs} +3 -3
- package/dist/index.js +278 -20
- package/dist/index.mjs +278 -20
- package/dist/{player-overlays-NTelJ6s9.mjs → player-overlays-DlFy1Vd1.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-su-j7vCi.mjs → responsive-Bu9A8Rdp.mjs} +1 -1
- package/dist/{square-C6ZCvrTe.mjs → square-e8perRQ-.mjs} +1 -1
- package/dist/{trash-2-Co_YN77y.mjs → trash-2-C2VSW2kV.mjs} +1 -1
- package/dist/{use-device-snapshot-BAK2bXGM.mjs → use-device-snapshot-BO5IPkxL.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-i9Bjc5m5.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-B8bHCFNK.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.js-plrwWXXt.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-uewjKOcg.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -594,7 +594,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
594
594
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
595
595
|
*/
|
|
596
596
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
597
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
598
597
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
599
598
|
/**
|
|
600
599
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13717,7 +13716,7 @@ var detectionPipelineCapability = {
|
|
|
13717
13716
|
var SourceInfoSchema = object({
|
|
13718
13717
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13719
13718
|
id: string(),
|
|
13720
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13719
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13721
13720
|
system: string(),
|
|
13722
13721
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13723
13722
|
* Used to detect rename when `id` changes. */
|
|
@@ -14374,7 +14373,7 @@ var deviceProviderCapability = {
|
|
|
14374
14373
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
14375
14374
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
14376
14375
|
*
|
|
14377
|
-
* All device provider addons (rtsp, onvif,
|
|
14376
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
14378
14377
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
14379
14378
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
14380
14379
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -19292,7 +19291,7 @@ var NcRuleInputSchema = object({
|
|
|
19292
19291
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19293
19292
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19294
19293
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19295
|
-
* 30 is
|
|
19294
|
+
* 30 s is a widely shipped value for the same decision.
|
|
19296
19295
|
*
|
|
19297
19296
|
* ### What it replaces
|
|
19298
19297
|
*
|
|
@@ -22133,6 +22132,13 @@ var ZoneCrossingSchema = object({
|
|
|
22133
22132
|
/** Zone display name at crossing time (falls back to the id). */
|
|
22134
22133
|
zoneName: string().optional()
|
|
22135
22134
|
});
|
|
22135
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
22136
|
+
var ZoneOverlapSchema = object({
|
|
22137
|
+
zoneId: string(),
|
|
22138
|
+
zoneName: string().optional(),
|
|
22139
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
22140
|
+
overlapPct: number()
|
|
22141
|
+
});
|
|
22136
22142
|
var ObjectEventSchema = object({
|
|
22137
22143
|
...BaseEventFields,
|
|
22138
22144
|
kind: literal("object"),
|
|
@@ -22157,6 +22163,35 @@ var ObjectEventSchema = object({
|
|
|
22157
22163
|
bbox: BoundingBoxSchema.optional(),
|
|
22158
22164
|
/** Heavy JSON — omitted in slim projection. */
|
|
22159
22165
|
zones: array(string()).readonly().optional(),
|
|
22166
|
+
/**
|
|
22167
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
22168
|
+
* the BOX area.
|
|
22169
|
+
*
|
|
22170
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
22171
|
+
* the bar an operator argues with — and the number already existed: the
|
|
22172
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
22173
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
22174
|
+
* else to judge by.
|
|
22175
|
+
*/
|
|
22176
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
22177
|
+
/**
|
|
22178
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
22179
|
+
* has no track and never will.
|
|
22180
|
+
*
|
|
22181
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
22182
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
22183
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
22184
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
22185
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
22186
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
22187
|
+
* event at all.
|
|
22188
|
+
*
|
|
22189
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
22190
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
22191
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
22192
|
+
* history is asking for something that never existed.
|
|
22193
|
+
*/
|
|
22194
|
+
spawnRefused: string().optional(),
|
|
22160
22195
|
/** Omitted in slim projection. */
|
|
22161
22196
|
state: TrackStateSchema.optional(),
|
|
22162
22197
|
/**
|
|
@@ -22583,7 +22618,17 @@ var EventDensityBucketSchema = object({
|
|
|
22583
22618
|
bucketStart: number(),
|
|
22584
22619
|
motion: number().int(),
|
|
22585
22620
|
object: number().int(),
|
|
22586
|
-
audio: number().int()
|
|
22621
|
+
audio: number().int(),
|
|
22622
|
+
/**
|
|
22623
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
22624
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
22625
|
+
*
|
|
22626
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
22627
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
22628
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
22629
|
+
* the count-on-a-level-meter did.
|
|
22630
|
+
*/
|
|
22631
|
+
audioDbfs: number().optional()
|
|
22587
22632
|
});
|
|
22588
22633
|
/**
|
|
22589
22634
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -23825,6 +23870,60 @@ var NativeCropResultSchema = object({
|
|
|
23825
23870
|
*/
|
|
23826
23871
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
23827
23872
|
});
|
|
23873
|
+
/**
|
|
23874
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
23875
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
23876
|
+
*
|
|
23877
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
23878
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
23879
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
23880
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
23881
|
+
* window, cut by the runner at uncapped native resolution.
|
|
23882
|
+
*
|
|
23883
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
23884
|
+
*/
|
|
23885
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
23886
|
+
/**
|
|
23887
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
23888
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
23889
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
23890
|
+
* never a reason to retry in a loop.
|
|
23891
|
+
*
|
|
23892
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
23893
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
23894
|
+
* carries the runner's own miss reason.
|
|
23895
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
23896
|
+
*/
|
|
23897
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
23898
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
23899
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
23900
|
+
parked: literal(true),
|
|
23901
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
23902
|
+
nodeId: string(),
|
|
23903
|
+
width: number().int().positive(),
|
|
23904
|
+
height: number().int().positive(),
|
|
23905
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
23906
|
+
bytes: number().int().nonnegative(),
|
|
23907
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
23908
|
+
replaced: boolean()
|
|
23909
|
+
}), object({
|
|
23910
|
+
parked: literal(false),
|
|
23911
|
+
nodeId: string(),
|
|
23912
|
+
reason: ParkRefusalSchema,
|
|
23913
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
23914
|
+
handleAgeMs: number().nullable(),
|
|
23915
|
+
detail: string().optional()
|
|
23916
|
+
})]);
|
|
23917
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
23918
|
+
var ParkedTrackFrameSchema = object({
|
|
23919
|
+
jpeg: string(),
|
|
23920
|
+
width: number().int().positive(),
|
|
23921
|
+
height: number().int().positive(),
|
|
23922
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
23923
|
+
timestamp: number(),
|
|
23924
|
+
/** When the node stored it (the node's clock). */
|
|
23925
|
+
parkedAt: number()
|
|
23926
|
+
});
|
|
23828
23927
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
23829
23928
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
23830
23929
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -24214,7 +24313,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
24214
24313
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
24215
24314
|
* analyzer providers) running on decoded frames in this runner.
|
|
24216
24315
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
24217
|
-
* analytics
|
|
24316
|
+
* analytics). The provider emits ProviderMotion
|
|
24218
24317
|
* events; the orchestrator forwards to `reportMotion`.
|
|
24219
24318
|
*/
|
|
24220
24319
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -24596,7 +24695,60 @@ var pipelineRunnerCapability = {
|
|
|
24596
24695
|
className: string(),
|
|
24597
24696
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
24598
24697
|
sourceDeviceId: number()
|
|
24599
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
24698
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
24699
|
+
/**
|
|
24700
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
24701
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
24702
|
+
*
|
|
24703
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
24704
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
24705
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
24706
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
24707
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
24708
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
24709
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
24710
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
24711
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
24712
|
+
* encode at a decision point, never a stream.
|
|
24713
|
+
*
|
|
24714
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
24715
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
24716
|
+
* is ignored. Bounded per device and per node on the runner
|
|
24717
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
24718
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
24719
|
+
* handle's measured age — it is never retried into a loop.
|
|
24720
|
+
*/
|
|
24721
|
+
parkTrackFrame: method(object({
|
|
24722
|
+
deviceId: number(),
|
|
24723
|
+
/** Opaque to the runner — the hub's track id. */
|
|
24724
|
+
trackId: string(),
|
|
24725
|
+
kind: ParkedFrameKindSchema,
|
|
24726
|
+
handle: FrameHandleSchema,
|
|
24727
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
24728
|
+
bbox: NativeCropBboxSchema,
|
|
24729
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
24730
|
+
maxWidth: number().int().positive().optional(),
|
|
24731
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
24732
|
+
timestamp: number()
|
|
24733
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
24734
|
+
/**
|
|
24735
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
24736
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
24737
|
+
* nothing was parked under that key on this node — never "too old".
|
|
24738
|
+
*/
|
|
24739
|
+
getParkedTrackFrame: method(object({
|
|
24740
|
+
deviceId: number(),
|
|
24741
|
+
trackId: string(),
|
|
24742
|
+
kind: ParkedFrameKindSchema
|
|
24743
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
24744
|
+
/**
|
|
24745
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
24746
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
24747
|
+
*/
|
|
24748
|
+
releaseParkedTrackFrames: method(object({
|
|
24749
|
+
deviceId: number(),
|
|
24750
|
+
trackId: string()
|
|
24751
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" })
|
|
24600
24752
|
}
|
|
24601
24753
|
};
|
|
24602
24754
|
var CameraPipelineConfigSchema = object({
|
|
@@ -28836,8 +28988,8 @@ onStatusChanged: { data: object({
|
|
|
28836
28988
|
/**
|
|
28837
28989
|
* Runtime-state slice — every provider that registers this cap
|
|
28838
28990
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
28839
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
28840
|
-
*
|
|
28991
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
28992
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
28841
28993
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
28842
28994
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
28843
28995
|
* the underlying driver.
|
|
@@ -28987,7 +29139,7 @@ var buttonCapability = {
|
|
|
28987
29139
|
*
|
|
28988
29140
|
* Implementations:
|
|
28989
29141
|
* - Each camera-providing addon registers this cap natively per
|
|
28990
|
-
* device (Reolink, Hikvision, RTSP,
|
|
29142
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
28991
29143
|
* - Returns a snapshot from the persisted device config blob — no
|
|
28992
29144
|
* extra round-trip to the camera, no probing.
|
|
28993
29145
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -31160,7 +31312,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
31160
31312
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
31161
31313
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
31162
31314
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
31163
|
-
* `device-provider` integrations (Reolink/
|
|
31315
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
31164
31316
|
* legacy config → discovery flow.
|
|
31165
31317
|
*/
|
|
31166
31318
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -34981,7 +35133,23 @@ var RecordingRangeSchema = object({
|
|
|
34981
35133
|
});
|
|
34982
35134
|
var RecordingAvailabilitySchema = object({
|
|
34983
35135
|
deviceId: number(),
|
|
34984
|
-
ranges: array(RecordingRangeSchema)
|
|
35136
|
+
ranges: array(RecordingRangeSchema),
|
|
35137
|
+
/**
|
|
35138
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
35139
|
+
* describes (D433).
|
|
35140
|
+
*
|
|
35141
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
35142
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
35143
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
35144
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
35145
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
35146
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
35147
|
+
* UI could not see it.
|
|
35148
|
+
*
|
|
35149
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
35150
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
35151
|
+
*/
|
|
35152
|
+
profilesWithFootage: array(string())
|
|
34985
35153
|
});
|
|
34986
35154
|
var RecordingDaysSchema = object({
|
|
34987
35155
|
deviceId: number(),
|
|
@@ -35007,7 +35175,11 @@ var RecordingDaysSchema = object({
|
|
|
35007
35175
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
35008
35176
|
deviceId: number(),
|
|
35009
35177
|
read: _enum(["read", "unreadable"]),
|
|
35010
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
35178
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
35179
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
35180
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
35181
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
35182
|
+
profilesWithFootage: array(string()).readonly()
|
|
35011
35183
|
});
|
|
35012
35184
|
/**
|
|
35013
35185
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -35037,13 +35209,31 @@ var RecordingManifestSchema = object({
|
|
|
35037
35209
|
*/
|
|
35038
35210
|
playbackEndpoints: array(string())
|
|
35039
35211
|
});
|
|
35040
|
-
/**
|
|
35041
|
-
*
|
|
35212
|
+
/**
|
|
35213
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
35214
|
+
* across every profile and every resolvable location on this node.
|
|
35215
|
+
*
|
|
35216
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
35217
|
+
*
|
|
35218
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
35219
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
35220
|
+
* this camera writes to, so the two can be added up and compared.
|
|
35221
|
+
*
|
|
35222
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
35223
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
35224
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
35225
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
35226
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
35227
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
35228
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
35229
|
+
*/
|
|
35042
35230
|
var RecordingDeviceUsageSchema = object({
|
|
35043
35231
|
deviceId: number(),
|
|
35232
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
35233
|
+
* recordings locations. */
|
|
35044
35234
|
usedBytes: number(),
|
|
35045
35235
|
/**
|
|
35046
|
-
* Start of this camera's OLDEST
|
|
35236
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
35047
35237
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
35048
35238
|
* only honest answer to "is retention actually holding?" per camera.
|
|
35049
35239
|
*
|
|
@@ -35053,7 +35243,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
35053
35243
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
35054
35244
|
* the later of the two.
|
|
35055
35245
|
*/
|
|
35056
|
-
oldestMs: number().nullable().optional()
|
|
35246
|
+
oldestMs: number().nullable().optional(),
|
|
35247
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
35248
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
35249
|
+
segments: number().optional(),
|
|
35250
|
+
/**
|
|
35251
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
35252
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
35253
|
+
*
|
|
35254
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
35255
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
35256
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
35257
|
+
* it, and so does a node whose ledger could not answer.
|
|
35258
|
+
*/
|
|
35259
|
+
residentBytes: number().optional(),
|
|
35260
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
35261
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
35262
|
+
* retention. `null` = nothing resident. */
|
|
35263
|
+
residentOldestMs: number().nullable().optional()
|
|
35057
35264
|
});
|
|
35058
35265
|
/** Recording storage usage + capacity for one storage location. */
|
|
35059
35266
|
var RecordingLocationUsageSchema = object({
|
|
@@ -35091,6 +35298,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
35091
35298
|
totalUsedBytes: number(),
|
|
35092
35299
|
devices: array(RecordingDeviceUsageSchema),
|
|
35093
35300
|
/**
|
|
35301
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
35302
|
+
* disks (D418).
|
|
35303
|
+
*
|
|
35304
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
35305
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
35306
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
35307
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
35308
|
+
* and its rows are residency.
|
|
35309
|
+
*/
|
|
35310
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
35311
|
+
/**
|
|
35094
35312
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
35095
35313
|
* of the payload without it: the hub serves this method through a BAKED
|
|
35096
35314
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -35261,7 +35479,14 @@ var recordingCapability = {
|
|
|
35261
35479
|
getAvailability: method(object({
|
|
35262
35480
|
deviceId: number(),
|
|
35263
35481
|
fromMs: number(),
|
|
35264
|
-
toMs: number()
|
|
35482
|
+
toMs: number(),
|
|
35483
|
+
/**
|
|
35484
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
35485
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
35486
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
35487
|
+
* for.
|
|
35488
|
+
*/
|
|
35489
|
+
profile: string().optional()
|
|
35265
35490
|
}), RecordingAvailabilitySchema, {
|
|
35266
35491
|
kind: "query",
|
|
35267
35492
|
auth: "protected"
|
|
@@ -42748,6 +42973,24 @@ Object.freeze({
|
|
|
42748
42973
|
addonId: null,
|
|
42749
42974
|
access: "view"
|
|
42750
42975
|
},
|
|
42976
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
42977
|
+
capName: "pipeline-runner",
|
|
42978
|
+
capScope: "system",
|
|
42979
|
+
addonId: null,
|
|
42980
|
+
access: "view"
|
|
42981
|
+
},
|
|
42982
|
+
"pipelineRunner.parkTrackFrame": {
|
|
42983
|
+
capName: "pipeline-runner",
|
|
42984
|
+
capScope: "system",
|
|
42985
|
+
addonId: null,
|
|
42986
|
+
access: "create"
|
|
42987
|
+
},
|
|
42988
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
42989
|
+
capName: "pipeline-runner",
|
|
42990
|
+
capScope: "system",
|
|
42991
|
+
addonId: null,
|
|
42992
|
+
access: "create"
|
|
42993
|
+
},
|
|
42751
42994
|
"pipelineRunner.reportMotion": {
|
|
42752
42995
|
capName: "pipeline-runner",
|
|
42753
42996
|
capScope: "system",
|
|
@@ -46025,6 +46268,21 @@ Object.freeze({
|
|
|
46025
46268
|
form: "single",
|
|
46026
46269
|
optional: false
|
|
46027
46270
|
}],
|
|
46271
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
46272
|
+
name: "deviceId",
|
|
46273
|
+
form: "single",
|
|
46274
|
+
optional: false
|
|
46275
|
+
}],
|
|
46276
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
46277
|
+
name: "deviceId",
|
|
46278
|
+
form: "single",
|
|
46279
|
+
optional: false
|
|
46280
|
+
}],
|
|
46281
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
46282
|
+
name: "deviceId",
|
|
46283
|
+
form: "single",
|
|
46284
|
+
optional: false
|
|
46285
|
+
}],
|
|
46028
46286
|
"pipelineRunner.reportMotion": [{
|
|
46029
46287
|
name: "deviceId",
|
|
46030
46288
|
form: "single",
|
|
@@ -46776,7 +47034,7 @@ var PreviewTextField = string().max(200);
|
|
|
46776
47034
|
* Whether the notification's preview is a STILL or a short animation.
|
|
46777
47035
|
*
|
|
46778
47036
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
46779
|
-
* rule)"* —
|
|
47037
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
46780
47038
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
46781
47039
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
46782
47040
|
* simply applies it to a dozen frames sampled across the render and assembles
|