@camstack/addon-provider-petkit 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
|
@@ -1101,7 +1101,7 @@ var Nodepetkit = class {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
};
|
|
1103
1103
|
//#endregion
|
|
1104
|
-
//#region ../types/dist/event-category-
|
|
1104
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
1105
1105
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
1106
1106
|
EventCategory["SystemBoot"] = "system.boot";
|
|
1107
1107
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1693,7 +1693,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1693
1693
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
1694
1694
|
*/
|
|
1695
1695
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
1696
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
1697
1696
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
1698
1697
|
/**
|
|
1699
1698
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13727,7 +13726,7 @@ DeviceType.Camera;
|
|
|
13727
13726
|
var SourceInfoSchema = object({
|
|
13728
13727
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13729
13728
|
id: string(),
|
|
13730
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13729
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13731
13730
|
system: string(),
|
|
13732
13731
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13733
13732
|
* Used to detect rename when `id` changes. */
|
|
@@ -13740,7 +13739,7 @@ var SourceInfoSchema = object({
|
|
|
13740
13739
|
/**
|
|
13741
13740
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
13742
13741
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
13743
|
-
* (Reolink / Hikvision / ONVIF /
|
|
13742
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
13744
13743
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
13745
13744
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
13746
13745
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -14419,7 +14418,7 @@ var deviceProviderCapability = {
|
|
|
14419
14418
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
14420
14419
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
14421
14420
|
*
|
|
14422
|
-
* All device provider addons (rtsp, onvif,
|
|
14421
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
14423
14422
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
14424
14423
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
14425
14424
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -18467,7 +18466,7 @@ var NcRuleInputSchema = object({
|
|
|
18467
18466
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
18468
18467
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
18469
18468
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
18470
|
-
* 30 is
|
|
18469
|
+
* 30 s is a widely shipped value for the same decision.
|
|
18471
18470
|
*
|
|
18472
18471
|
* ### What it replaces
|
|
18473
18472
|
*
|
|
@@ -20549,6 +20548,13 @@ var ZoneCrossingSchema = object({
|
|
|
20549
20548
|
/** Zone display name at crossing time (falls back to the id). */
|
|
20550
20549
|
zoneName: string().optional()
|
|
20551
20550
|
});
|
|
20551
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
20552
|
+
var ZoneOverlapSchema = object({
|
|
20553
|
+
zoneId: string(),
|
|
20554
|
+
zoneName: string().optional(),
|
|
20555
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
20556
|
+
overlapPct: number()
|
|
20557
|
+
});
|
|
20552
20558
|
var ObjectEventSchema = object({
|
|
20553
20559
|
...BaseEventFields,
|
|
20554
20560
|
kind: literal("object"),
|
|
@@ -20573,6 +20579,35 @@ var ObjectEventSchema = object({
|
|
|
20573
20579
|
bbox: BoundingBoxSchema.optional(),
|
|
20574
20580
|
/** Heavy JSON — omitted in slim projection. */
|
|
20575
20581
|
zones: array(string()).readonly().optional(),
|
|
20582
|
+
/**
|
|
20583
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
20584
|
+
* the BOX area.
|
|
20585
|
+
*
|
|
20586
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
20587
|
+
* the bar an operator argues with — and the number already existed: the
|
|
20588
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
20589
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
20590
|
+
* else to judge by.
|
|
20591
|
+
*/
|
|
20592
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
20593
|
+
/**
|
|
20594
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
20595
|
+
* has no track and never will.
|
|
20596
|
+
*
|
|
20597
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
20598
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
20599
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
20600
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
20601
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
20602
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
20603
|
+
* event at all.
|
|
20604
|
+
*
|
|
20605
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
20606
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
20607
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
20608
|
+
* history is asking for something that never existed.
|
|
20609
|
+
*/
|
|
20610
|
+
spawnRefused: string().optional(),
|
|
20576
20611
|
/** Omitted in slim projection. */
|
|
20577
20612
|
state: TrackStateSchema.optional(),
|
|
20578
20613
|
/**
|
|
@@ -20999,7 +21034,17 @@ var EventDensityBucketSchema = object({
|
|
|
20999
21034
|
bucketStart: number(),
|
|
21000
21035
|
motion: number().int(),
|
|
21001
21036
|
object: number().int(),
|
|
21002
|
-
audio: number().int()
|
|
21037
|
+
audio: number().int(),
|
|
21038
|
+
/**
|
|
21039
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
21040
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
21041
|
+
*
|
|
21042
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
21043
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
21044
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
21045
|
+
* the count-on-a-level-meter did.
|
|
21046
|
+
*/
|
|
21047
|
+
audioDbfs: number().optional()
|
|
21003
21048
|
});
|
|
21004
21049
|
/**
|
|
21005
21050
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21646,6 +21691,60 @@ var NativeCropResultSchema = object({
|
|
|
21646
21691
|
*/
|
|
21647
21692
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
21648
21693
|
});
|
|
21694
|
+
/**
|
|
21695
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
21696
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21697
|
+
*
|
|
21698
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
21699
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
21700
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
21701
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
21702
|
+
* window, cut by the runner at uncapped native resolution.
|
|
21703
|
+
*
|
|
21704
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
21705
|
+
*/
|
|
21706
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
21707
|
+
/**
|
|
21708
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21709
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21710
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21711
|
+
* never a reason to retry in a loop.
|
|
21712
|
+
*
|
|
21713
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21714
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21715
|
+
* carries the runner's own miss reason.
|
|
21716
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21717
|
+
*/
|
|
21718
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
21719
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21720
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
21721
|
+
parked: literal(true),
|
|
21722
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21723
|
+
nodeId: string(),
|
|
21724
|
+
width: number().int().positive(),
|
|
21725
|
+
height: number().int().positive(),
|
|
21726
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21727
|
+
bytes: number().int().nonnegative(),
|
|
21728
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21729
|
+
replaced: boolean()
|
|
21730
|
+
}), object({
|
|
21731
|
+
parked: literal(false),
|
|
21732
|
+
nodeId: string(),
|
|
21733
|
+
reason: ParkRefusalSchema,
|
|
21734
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21735
|
+
handleAgeMs: number().nullable(),
|
|
21736
|
+
detail: string().optional()
|
|
21737
|
+
})]);
|
|
21738
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21739
|
+
var ParkedTrackFrameSchema = object({
|
|
21740
|
+
jpeg: string(),
|
|
21741
|
+
width: number().int().positive(),
|
|
21742
|
+
height: number().int().positive(),
|
|
21743
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21744
|
+
timestamp: number(),
|
|
21745
|
+
/** When the node stored it (the node's clock). */
|
|
21746
|
+
parkedAt: number()
|
|
21747
|
+
});
|
|
21649
21748
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
21650
21749
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
21651
21750
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -22035,7 +22134,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
22035
22134
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
22036
22135
|
* analyzer providers) running on decoded frames in this runner.
|
|
22037
22136
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
22038
|
-
* analytics
|
|
22137
|
+
* analytics). The provider emits ProviderMotion
|
|
22039
22138
|
* events; the orchestrator forwards to `reportMotion`.
|
|
22040
22139
|
*/
|
|
22041
22140
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -22277,7 +22376,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22277
22376
|
className: string(),
|
|
22278
22377
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
22279
22378
|
sourceDeviceId: number()
|
|
22280
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
22379
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
22380
|
+
deviceId: number(),
|
|
22381
|
+
/** Opaque to the runner — the hub's track id. */
|
|
22382
|
+
trackId: string(),
|
|
22383
|
+
kind: ParkedFrameKindSchema,
|
|
22384
|
+
handle: FrameHandleSchema,
|
|
22385
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
22386
|
+
bbox: NativeCropBboxSchema,
|
|
22387
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
22388
|
+
maxWidth: number().int().positive().optional(),
|
|
22389
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
22390
|
+
timestamp: number()
|
|
22391
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
22392
|
+
deviceId: number(),
|
|
22393
|
+
trackId: string(),
|
|
22394
|
+
kind: ParkedFrameKindSchema
|
|
22395
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
22396
|
+
deviceId: number(),
|
|
22397
|
+
trackId: string()
|
|
22398
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
22281
22399
|
var CameraPipelineConfigSchema = object({
|
|
22282
22400
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
22283
22401
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -25347,8 +25465,8 @@ onStatusChanged: { data: object({
|
|
|
25347
25465
|
/**
|
|
25348
25466
|
* Runtime-state slice — every provider that registers this cap
|
|
25349
25467
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25350
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25351
|
-
*
|
|
25468
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25469
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25352
25470
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25353
25471
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25354
25472
|
* the underlying driver.
|
|
@@ -25481,7 +25599,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
25481
25599
|
*
|
|
25482
25600
|
* Implementations:
|
|
25483
25601
|
* - Each camera-providing addon registers this cap natively per
|
|
25484
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25602
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25485
25603
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25486
25604
|
* extra round-trip to the camera, no probing.
|
|
25487
25605
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27581,7 +27699,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
27581
27699
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27582
27700
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27583
27701
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27584
|
-
* `device-provider` integrations (Reolink/
|
|
27702
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27585
27703
|
* legacy config → discovery flow.
|
|
27586
27704
|
*/
|
|
27587
27705
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30949,7 +31067,23 @@ var RecordingRangeSchema = object({
|
|
|
30949
31067
|
});
|
|
30950
31068
|
var RecordingAvailabilitySchema = object({
|
|
30951
31069
|
deviceId: number(),
|
|
30952
|
-
ranges: array(RecordingRangeSchema)
|
|
31070
|
+
ranges: array(RecordingRangeSchema),
|
|
31071
|
+
/**
|
|
31072
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
31073
|
+
* describes (D433).
|
|
31074
|
+
*
|
|
31075
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
31076
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
31077
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
31078
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
31079
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
31080
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
31081
|
+
* UI could not see it.
|
|
31082
|
+
*
|
|
31083
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
31084
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
31085
|
+
*/
|
|
31086
|
+
profilesWithFootage: array(string())
|
|
30953
31087
|
});
|
|
30954
31088
|
var RecordingDaysSchema = object({
|
|
30955
31089
|
deviceId: number(),
|
|
@@ -30975,7 +31109,11 @@ var RecordingDaysSchema = object({
|
|
|
30975
31109
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30976
31110
|
deviceId: number(),
|
|
30977
31111
|
read: _enum(["read", "unreadable"]),
|
|
30978
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
31112
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
31113
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
31114
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
31115
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
31116
|
+
profilesWithFootage: array(string()).readonly()
|
|
30979
31117
|
});
|
|
30980
31118
|
/**
|
|
30981
31119
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -31005,13 +31143,31 @@ var RecordingManifestSchema = object({
|
|
|
31005
31143
|
*/
|
|
31006
31144
|
playbackEndpoints: array(string())
|
|
31007
31145
|
});
|
|
31008
|
-
/**
|
|
31009
|
-
*
|
|
31146
|
+
/**
|
|
31147
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31148
|
+
* across every profile and every resolvable location on this node.
|
|
31149
|
+
*
|
|
31150
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31151
|
+
*
|
|
31152
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31153
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31154
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31155
|
+
*
|
|
31156
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31157
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31158
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31159
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31160
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31161
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31162
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31163
|
+
*/
|
|
31010
31164
|
var RecordingDeviceUsageSchema = object({
|
|
31011
31165
|
deviceId: number(),
|
|
31166
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31167
|
+
* recordings locations. */
|
|
31012
31168
|
usedBytes: number(),
|
|
31013
31169
|
/**
|
|
31014
|
-
* Start of this camera's OLDEST
|
|
31170
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
31015
31171
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
31016
31172
|
* only honest answer to "is retention actually holding?" per camera.
|
|
31017
31173
|
*
|
|
@@ -31021,7 +31177,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
31021
31177
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
31022
31178
|
* the later of the two.
|
|
31023
31179
|
*/
|
|
31024
|
-
oldestMs: number().nullable().optional()
|
|
31180
|
+
oldestMs: number().nullable().optional(),
|
|
31181
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31182
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31183
|
+
segments: number().optional(),
|
|
31184
|
+
/**
|
|
31185
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31186
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31187
|
+
*
|
|
31188
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31189
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31190
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31191
|
+
* it, and so does a node whose ledger could not answer.
|
|
31192
|
+
*/
|
|
31193
|
+
residentBytes: number().optional(),
|
|
31194
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31195
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31196
|
+
* retention. `null` = nothing resident. */
|
|
31197
|
+
residentOldestMs: number().nullable().optional()
|
|
31025
31198
|
});
|
|
31026
31199
|
/** Recording storage usage + capacity for one storage location. */
|
|
31027
31200
|
var RecordingLocationUsageSchema = object({
|
|
@@ -31059,6 +31232,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
31059
31232
|
totalUsedBytes: number(),
|
|
31060
31233
|
devices: array(RecordingDeviceUsageSchema),
|
|
31061
31234
|
/**
|
|
31235
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31236
|
+
* disks (D418).
|
|
31237
|
+
*
|
|
31238
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31239
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31240
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31241
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31242
|
+
* and its rows are residency.
|
|
31243
|
+
*/
|
|
31244
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
31245
|
+
/**
|
|
31062
31246
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
31063
31247
|
* of the payload without it: the hub serves this method through a BAKED
|
|
31064
31248
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -31219,7 +31403,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31219
31403
|
method(object({
|
|
31220
31404
|
deviceId: number(),
|
|
31221
31405
|
fromMs: number(),
|
|
31222
|
-
toMs: number()
|
|
31406
|
+
toMs: number(),
|
|
31407
|
+
/**
|
|
31408
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31409
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31410
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31411
|
+
* for.
|
|
31412
|
+
*/
|
|
31413
|
+
profile: string().optional()
|
|
31223
31414
|
}), RecordingAvailabilitySchema, {
|
|
31224
31415
|
kind: "query",
|
|
31225
31416
|
auth: "protected"
|
|
@@ -34938,7 +35129,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
34938
35129
|
};
|
|
34939
35130
|
}
|
|
34940
35131
|
/**
|
|
34941
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
35132
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
34942
35133
|
*
|
|
34943
35134
|
* Provides default implementations for the common device-provider cap
|
|
34944
35135
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -39594,6 +39785,24 @@ Object.freeze({
|
|
|
39594
39785
|
addonId: null,
|
|
39595
39786
|
access: "view"
|
|
39596
39787
|
},
|
|
39788
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
39789
|
+
capName: "pipeline-runner",
|
|
39790
|
+
capScope: "system",
|
|
39791
|
+
addonId: null,
|
|
39792
|
+
access: "view"
|
|
39793
|
+
},
|
|
39794
|
+
"pipelineRunner.parkTrackFrame": {
|
|
39795
|
+
capName: "pipeline-runner",
|
|
39796
|
+
capScope: "system",
|
|
39797
|
+
addonId: null,
|
|
39798
|
+
access: "create"
|
|
39799
|
+
},
|
|
39800
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
39801
|
+
capName: "pipeline-runner",
|
|
39802
|
+
capScope: "system",
|
|
39803
|
+
addonId: null,
|
|
39804
|
+
access: "create"
|
|
39805
|
+
},
|
|
39597
39806
|
"pipelineRunner.reportMotion": {
|
|
39598
39807
|
capName: "pipeline-runner",
|
|
39599
39808
|
capScope: "system",
|
|
@@ -42871,6 +43080,21 @@ Object.freeze({
|
|
|
42871
43080
|
form: "single",
|
|
42872
43081
|
optional: false
|
|
42873
43082
|
}],
|
|
43083
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
43084
|
+
name: "deviceId",
|
|
43085
|
+
form: "single",
|
|
43086
|
+
optional: false
|
|
43087
|
+
}],
|
|
43088
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
43089
|
+
name: "deviceId",
|
|
43090
|
+
form: "single",
|
|
43091
|
+
optional: false
|
|
43092
|
+
}],
|
|
43093
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
43094
|
+
name: "deviceId",
|
|
43095
|
+
form: "single",
|
|
43096
|
+
optional: false
|
|
43097
|
+
}],
|
|
42874
43098
|
"pipelineRunner.reportMotion": [{
|
|
42875
43099
|
name: "deviceId",
|
|
42876
43100
|
form: "single",
|
|
@@ -43562,7 +43786,7 @@ var PreviewTextField = string().max(200);
|
|
|
43562
43786
|
* Whether the notification's preview is a STILL or a short animation.
|
|
43563
43787
|
*
|
|
43564
43788
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
43565
|
-
* rule)"* —
|
|
43789
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
43566
43790
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
43567
43791
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
43568
43792
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/addon.mjs
CHANGED
|
@@ -1100,7 +1100,7 @@ var Nodepetkit = class {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
1102
|
//#endregion
|
|
1103
|
-
//#region ../types/dist/event-category-
|
|
1103
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
1104
1104
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
1105
1105
|
EventCategory["SystemBoot"] = "system.boot";
|
|
1106
1106
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1692,7 +1692,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1692
1692
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
1693
1693
|
*/
|
|
1694
1694
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
1695
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
1696
1695
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
1697
1696
|
/**
|
|
1698
1697
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13726,7 +13725,7 @@ DeviceType.Camera;
|
|
|
13726
13725
|
var SourceInfoSchema = object({
|
|
13727
13726
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13728
13727
|
id: string(),
|
|
13729
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13728
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13730
13729
|
system: string(),
|
|
13731
13730
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13732
13731
|
* Used to detect rename when `id` changes. */
|
|
@@ -13739,7 +13738,7 @@ var SourceInfoSchema = object({
|
|
|
13739
13738
|
/**
|
|
13740
13739
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
13741
13740
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
13742
|
-
* (Reolink / Hikvision / ONVIF /
|
|
13741
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
13743
13742
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
13744
13743
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
13745
13744
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -14418,7 +14417,7 @@ var deviceProviderCapability = {
|
|
|
14418
14417
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
14419
14418
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
14420
14419
|
*
|
|
14421
|
-
* All device provider addons (rtsp, onvif,
|
|
14420
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
14422
14421
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
14423
14422
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
14424
14423
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -18466,7 +18465,7 @@ var NcRuleInputSchema = object({
|
|
|
18466
18465
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
18467
18466
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
18468
18467
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
18469
|
-
* 30 is
|
|
18468
|
+
* 30 s is a widely shipped value for the same decision.
|
|
18470
18469
|
*
|
|
18471
18470
|
* ### What it replaces
|
|
18472
18471
|
*
|
|
@@ -20548,6 +20547,13 @@ var ZoneCrossingSchema = object({
|
|
|
20548
20547
|
/** Zone display name at crossing time (falls back to the id). */
|
|
20549
20548
|
zoneName: string().optional()
|
|
20550
20549
|
});
|
|
20550
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
20551
|
+
var ZoneOverlapSchema = object({
|
|
20552
|
+
zoneId: string(),
|
|
20553
|
+
zoneName: string().optional(),
|
|
20554
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
20555
|
+
overlapPct: number()
|
|
20556
|
+
});
|
|
20551
20557
|
var ObjectEventSchema = object({
|
|
20552
20558
|
...BaseEventFields,
|
|
20553
20559
|
kind: literal("object"),
|
|
@@ -20572,6 +20578,35 @@ var ObjectEventSchema = object({
|
|
|
20572
20578
|
bbox: BoundingBoxSchema.optional(),
|
|
20573
20579
|
/** Heavy JSON — omitted in slim projection. */
|
|
20574
20580
|
zones: array(string()).readonly().optional(),
|
|
20581
|
+
/**
|
|
20582
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
20583
|
+
* the BOX area.
|
|
20584
|
+
*
|
|
20585
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
20586
|
+
* the bar an operator argues with — and the number already existed: the
|
|
20587
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
20588
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
20589
|
+
* else to judge by.
|
|
20590
|
+
*/
|
|
20591
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
20592
|
+
/**
|
|
20593
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
20594
|
+
* has no track and never will.
|
|
20595
|
+
*
|
|
20596
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
20597
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
20598
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
20599
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
20600
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
20601
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
20602
|
+
* event at all.
|
|
20603
|
+
*
|
|
20604
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
20605
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
20606
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
20607
|
+
* history is asking for something that never existed.
|
|
20608
|
+
*/
|
|
20609
|
+
spawnRefused: string().optional(),
|
|
20575
20610
|
/** Omitted in slim projection. */
|
|
20576
20611
|
state: TrackStateSchema.optional(),
|
|
20577
20612
|
/**
|
|
@@ -20998,7 +21033,17 @@ var EventDensityBucketSchema = object({
|
|
|
20998
21033
|
bucketStart: number(),
|
|
20999
21034
|
motion: number().int(),
|
|
21000
21035
|
object: number().int(),
|
|
21001
|
-
audio: number().int()
|
|
21036
|
+
audio: number().int(),
|
|
21037
|
+
/**
|
|
21038
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
21039
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
21040
|
+
*
|
|
21041
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
21042
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
21043
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
21044
|
+
* the count-on-a-level-meter did.
|
|
21045
|
+
*/
|
|
21046
|
+
audioDbfs: number().optional()
|
|
21002
21047
|
});
|
|
21003
21048
|
/**
|
|
21004
21049
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21645,6 +21690,60 @@ var NativeCropResultSchema = object({
|
|
|
21645
21690
|
*/
|
|
21646
21691
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
21647
21692
|
});
|
|
21693
|
+
/**
|
|
21694
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
21695
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21696
|
+
*
|
|
21697
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
21698
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
21699
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
21700
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
21701
|
+
* window, cut by the runner at uncapped native resolution.
|
|
21702
|
+
*
|
|
21703
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
21704
|
+
*/
|
|
21705
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
21706
|
+
/**
|
|
21707
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21708
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21709
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21710
|
+
* never a reason to retry in a loop.
|
|
21711
|
+
*
|
|
21712
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21713
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21714
|
+
* carries the runner's own miss reason.
|
|
21715
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21716
|
+
*/
|
|
21717
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
21718
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21719
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
21720
|
+
parked: literal(true),
|
|
21721
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21722
|
+
nodeId: string(),
|
|
21723
|
+
width: number().int().positive(),
|
|
21724
|
+
height: number().int().positive(),
|
|
21725
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21726
|
+
bytes: number().int().nonnegative(),
|
|
21727
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21728
|
+
replaced: boolean()
|
|
21729
|
+
}), object({
|
|
21730
|
+
parked: literal(false),
|
|
21731
|
+
nodeId: string(),
|
|
21732
|
+
reason: ParkRefusalSchema,
|
|
21733
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21734
|
+
handleAgeMs: number().nullable(),
|
|
21735
|
+
detail: string().optional()
|
|
21736
|
+
})]);
|
|
21737
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21738
|
+
var ParkedTrackFrameSchema = object({
|
|
21739
|
+
jpeg: string(),
|
|
21740
|
+
width: number().int().positive(),
|
|
21741
|
+
height: number().int().positive(),
|
|
21742
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21743
|
+
timestamp: number(),
|
|
21744
|
+
/** When the node stored it (the node's clock). */
|
|
21745
|
+
parkedAt: number()
|
|
21746
|
+
});
|
|
21648
21747
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
21649
21748
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
21650
21749
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -22034,7 +22133,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
22034
22133
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
22035
22134
|
* analyzer providers) running on decoded frames in this runner.
|
|
22036
22135
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
22037
|
-
* analytics
|
|
22136
|
+
* analytics). The provider emits ProviderMotion
|
|
22038
22137
|
* events; the orchestrator forwards to `reportMotion`.
|
|
22039
22138
|
*/
|
|
22040
22139
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -22276,7 +22375,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
22276
22375
|
className: string(),
|
|
22277
22376
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
22278
22377
|
sourceDeviceId: number()
|
|
22279
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
22378
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
22379
|
+
deviceId: number(),
|
|
22380
|
+
/** Opaque to the runner — the hub's track id. */
|
|
22381
|
+
trackId: string(),
|
|
22382
|
+
kind: ParkedFrameKindSchema,
|
|
22383
|
+
handle: FrameHandleSchema,
|
|
22384
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
22385
|
+
bbox: NativeCropBboxSchema,
|
|
22386
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
22387
|
+
maxWidth: number().int().positive().optional(),
|
|
22388
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
22389
|
+
timestamp: number()
|
|
22390
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
22391
|
+
deviceId: number(),
|
|
22392
|
+
trackId: string(),
|
|
22393
|
+
kind: ParkedFrameKindSchema
|
|
22394
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
22395
|
+
deviceId: number(),
|
|
22396
|
+
trackId: string()
|
|
22397
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
22280
22398
|
var CameraPipelineConfigSchema = object({
|
|
22281
22399
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
22282
22400
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -25346,8 +25464,8 @@ onStatusChanged: { data: object({
|
|
|
25346
25464
|
/**
|
|
25347
25465
|
* Runtime-state slice — every provider that registers this cap
|
|
25348
25466
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25349
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25350
|
-
*
|
|
25467
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25468
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25351
25469
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25352
25470
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25353
25471
|
* the underlying driver.
|
|
@@ -25480,7 +25598,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
25480
25598
|
*
|
|
25481
25599
|
* Implementations:
|
|
25482
25600
|
* - Each camera-providing addon registers this cap natively per
|
|
25483
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25601
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25484
25602
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25485
25603
|
* extra round-trip to the camera, no probing.
|
|
25486
25604
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27580,7 +27698,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
27580
27698
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27581
27699
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27582
27700
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27583
|
-
* `device-provider` integrations (Reolink/
|
|
27701
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27584
27702
|
* legacy config → discovery flow.
|
|
27585
27703
|
*/
|
|
27586
27704
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30948,7 +31066,23 @@ var RecordingRangeSchema = object({
|
|
|
30948
31066
|
});
|
|
30949
31067
|
var RecordingAvailabilitySchema = object({
|
|
30950
31068
|
deviceId: number(),
|
|
30951
|
-
ranges: array(RecordingRangeSchema)
|
|
31069
|
+
ranges: array(RecordingRangeSchema),
|
|
31070
|
+
/**
|
|
31071
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
31072
|
+
* describes (D433).
|
|
31073
|
+
*
|
|
31074
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
31075
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
31076
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
31077
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
31078
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
31079
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
31080
|
+
* UI could not see it.
|
|
31081
|
+
*
|
|
31082
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
31083
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
31084
|
+
*/
|
|
31085
|
+
profilesWithFootage: array(string())
|
|
30952
31086
|
});
|
|
30953
31087
|
var RecordingDaysSchema = object({
|
|
30954
31088
|
deviceId: number(),
|
|
@@ -30974,7 +31108,11 @@ var RecordingDaysSchema = object({
|
|
|
30974
31108
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30975
31109
|
deviceId: number(),
|
|
30976
31110
|
read: _enum(["read", "unreadable"]),
|
|
30977
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
31111
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
31112
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
31113
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
31114
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
31115
|
+
profilesWithFootage: array(string()).readonly()
|
|
30978
31116
|
});
|
|
30979
31117
|
/**
|
|
30980
31118
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -31004,13 +31142,31 @@ var RecordingManifestSchema = object({
|
|
|
31004
31142
|
*/
|
|
31005
31143
|
playbackEndpoints: array(string())
|
|
31006
31144
|
});
|
|
31007
|
-
/**
|
|
31008
|
-
*
|
|
31145
|
+
/**
|
|
31146
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31147
|
+
* across every profile and every resolvable location on this node.
|
|
31148
|
+
*
|
|
31149
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31150
|
+
*
|
|
31151
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31152
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31153
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31154
|
+
*
|
|
31155
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31156
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31157
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31158
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31159
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31160
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31161
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31162
|
+
*/
|
|
31009
31163
|
var RecordingDeviceUsageSchema = object({
|
|
31010
31164
|
deviceId: number(),
|
|
31165
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31166
|
+
* recordings locations. */
|
|
31011
31167
|
usedBytes: number(),
|
|
31012
31168
|
/**
|
|
31013
|
-
* Start of this camera's OLDEST
|
|
31169
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
31014
31170
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
31015
31171
|
* only honest answer to "is retention actually holding?" per camera.
|
|
31016
31172
|
*
|
|
@@ -31020,7 +31176,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
31020
31176
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
31021
31177
|
* the later of the two.
|
|
31022
31178
|
*/
|
|
31023
|
-
oldestMs: number().nullable().optional()
|
|
31179
|
+
oldestMs: number().nullable().optional(),
|
|
31180
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31181
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31182
|
+
segments: number().optional(),
|
|
31183
|
+
/**
|
|
31184
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31185
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31186
|
+
*
|
|
31187
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31188
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31189
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31190
|
+
* it, and so does a node whose ledger could not answer.
|
|
31191
|
+
*/
|
|
31192
|
+
residentBytes: number().optional(),
|
|
31193
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31194
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31195
|
+
* retention. `null` = nothing resident. */
|
|
31196
|
+
residentOldestMs: number().nullable().optional()
|
|
31024
31197
|
});
|
|
31025
31198
|
/** Recording storage usage + capacity for one storage location. */
|
|
31026
31199
|
var RecordingLocationUsageSchema = object({
|
|
@@ -31058,6 +31231,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
31058
31231
|
totalUsedBytes: number(),
|
|
31059
31232
|
devices: array(RecordingDeviceUsageSchema),
|
|
31060
31233
|
/**
|
|
31234
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31235
|
+
* disks (D418).
|
|
31236
|
+
*
|
|
31237
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31238
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31239
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31240
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31241
|
+
* and its rows are residency.
|
|
31242
|
+
*/
|
|
31243
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
31244
|
+
/**
|
|
31061
31245
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
31062
31246
|
* of the payload without it: the hub serves this method through a BAKED
|
|
31063
31247
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -31218,7 +31402,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31218
31402
|
method(object({
|
|
31219
31403
|
deviceId: number(),
|
|
31220
31404
|
fromMs: number(),
|
|
31221
|
-
toMs: number()
|
|
31405
|
+
toMs: number(),
|
|
31406
|
+
/**
|
|
31407
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31408
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31409
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31410
|
+
* for.
|
|
31411
|
+
*/
|
|
31412
|
+
profile: string().optional()
|
|
31222
31413
|
}), RecordingAvailabilitySchema, {
|
|
31223
31414
|
kind: "query",
|
|
31224
31415
|
auth: "protected"
|
|
@@ -34937,7 +35128,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
34937
35128
|
};
|
|
34938
35129
|
}
|
|
34939
35130
|
/**
|
|
34940
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
35131
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
34941
35132
|
*
|
|
34942
35133
|
* Provides default implementations for the common device-provider cap
|
|
34943
35134
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -39593,6 +39784,24 @@ Object.freeze({
|
|
|
39593
39784
|
addonId: null,
|
|
39594
39785
|
access: "view"
|
|
39595
39786
|
},
|
|
39787
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
39788
|
+
capName: "pipeline-runner",
|
|
39789
|
+
capScope: "system",
|
|
39790
|
+
addonId: null,
|
|
39791
|
+
access: "view"
|
|
39792
|
+
},
|
|
39793
|
+
"pipelineRunner.parkTrackFrame": {
|
|
39794
|
+
capName: "pipeline-runner",
|
|
39795
|
+
capScope: "system",
|
|
39796
|
+
addonId: null,
|
|
39797
|
+
access: "create"
|
|
39798
|
+
},
|
|
39799
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
39800
|
+
capName: "pipeline-runner",
|
|
39801
|
+
capScope: "system",
|
|
39802
|
+
addonId: null,
|
|
39803
|
+
access: "create"
|
|
39804
|
+
},
|
|
39596
39805
|
"pipelineRunner.reportMotion": {
|
|
39597
39806
|
capName: "pipeline-runner",
|
|
39598
39807
|
capScope: "system",
|
|
@@ -42870,6 +43079,21 @@ Object.freeze({
|
|
|
42870
43079
|
form: "single",
|
|
42871
43080
|
optional: false
|
|
42872
43081
|
}],
|
|
43082
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
43083
|
+
name: "deviceId",
|
|
43084
|
+
form: "single",
|
|
43085
|
+
optional: false
|
|
43086
|
+
}],
|
|
43087
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
43088
|
+
name: "deviceId",
|
|
43089
|
+
form: "single",
|
|
43090
|
+
optional: false
|
|
43091
|
+
}],
|
|
43092
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
43093
|
+
name: "deviceId",
|
|
43094
|
+
form: "single",
|
|
43095
|
+
optional: false
|
|
43096
|
+
}],
|
|
42873
43097
|
"pipelineRunner.reportMotion": [{
|
|
42874
43098
|
name: "deviceId",
|
|
42875
43099
|
form: "single",
|
|
@@ -43561,7 +43785,7 @@ var PreviewTextField = string().max(200);
|
|
|
43561
43785
|
* Whether the notification's preview is a STILL or a short animation.
|
|
43562
43786
|
*
|
|
43563
43787
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
43564
|
-
* rule)"* —
|
|
43788
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
43565
43789
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
43566
43790
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
43567
43791
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/package.json
CHANGED