@camstack/addon-provider-unifi 0.2.90 → 0.2.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +246 -22
- package/dist/addon.mjs +246 -22
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -591,7 +591,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
591
591
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
592
592
|
*/
|
|
593
593
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
594
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
595
594
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
596
595
|
/**
|
|
597
596
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12625,7 +12624,7 @@ DeviceType.Camera;
|
|
|
12625
12624
|
var SourceInfoSchema = object({
|
|
12626
12625
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12627
12626
|
id: string(),
|
|
12628
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12627
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12629
12628
|
system: string(),
|
|
12630
12629
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12631
12630
|
* Used to detect rename when `id` changes. */
|
|
@@ -12638,7 +12637,7 @@ var SourceInfoSchema = object({
|
|
|
12638
12637
|
/**
|
|
12639
12638
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12640
12639
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12641
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12640
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12642
12641
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12643
12642
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12644
12643
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13300,7 +13299,7 @@ var deviceProviderCapability = {
|
|
|
13300
13299
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13301
13300
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13302
13301
|
*
|
|
13303
|
-
* All device provider addons (rtsp, onvif,
|
|
13302
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13304
13303
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13305
13304
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13306
13305
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17348,7 +17347,7 @@ var NcRuleInputSchema = object({
|
|
|
17348
17347
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17349
17348
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17350
17349
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17351
|
-
* 30 is
|
|
17350
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17352
17351
|
*
|
|
17353
17352
|
* ### What it replaces
|
|
17354
17353
|
*
|
|
@@ -19430,6 +19429,13 @@ var ZoneCrossingSchema = object({
|
|
|
19430
19429
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19431
19430
|
zoneName: string().optional()
|
|
19432
19431
|
});
|
|
19432
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19433
|
+
var ZoneOverlapSchema = object({
|
|
19434
|
+
zoneId: string(),
|
|
19435
|
+
zoneName: string().optional(),
|
|
19436
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19437
|
+
overlapPct: number()
|
|
19438
|
+
});
|
|
19433
19439
|
var ObjectEventSchema = object({
|
|
19434
19440
|
...BaseEventFields,
|
|
19435
19441
|
kind: literal("object"),
|
|
@@ -19454,6 +19460,35 @@ var ObjectEventSchema = object({
|
|
|
19454
19460
|
bbox: BoundingBoxSchema.optional(),
|
|
19455
19461
|
/** Heavy JSON — omitted in slim projection. */
|
|
19456
19462
|
zones: array(string()).readonly().optional(),
|
|
19463
|
+
/**
|
|
19464
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19465
|
+
* the BOX area.
|
|
19466
|
+
*
|
|
19467
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19468
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19469
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19470
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19471
|
+
* else to judge by.
|
|
19472
|
+
*/
|
|
19473
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19474
|
+
/**
|
|
19475
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19476
|
+
* has no track and never will.
|
|
19477
|
+
*
|
|
19478
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19479
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19480
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19481
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19482
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19483
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19484
|
+
* event at all.
|
|
19485
|
+
*
|
|
19486
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19487
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19488
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19489
|
+
* history is asking for something that never existed.
|
|
19490
|
+
*/
|
|
19491
|
+
spawnRefused: string().optional(),
|
|
19457
19492
|
/** Omitted in slim projection. */
|
|
19458
19493
|
state: TrackStateSchema.optional(),
|
|
19459
19494
|
/**
|
|
@@ -19880,7 +19915,17 @@ var EventDensityBucketSchema = object({
|
|
|
19880
19915
|
bucketStart: number(),
|
|
19881
19916
|
motion: number().int(),
|
|
19882
19917
|
object: number().int(),
|
|
19883
|
-
audio: number().int()
|
|
19918
|
+
audio: number().int(),
|
|
19919
|
+
/**
|
|
19920
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19921
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19922
|
+
*
|
|
19923
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19924
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19925
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19926
|
+
* the count-on-a-level-meter did.
|
|
19927
|
+
*/
|
|
19928
|
+
audioDbfs: number().optional()
|
|
19884
19929
|
});
|
|
19885
19930
|
/**
|
|
19886
19931
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20527,6 +20572,60 @@ var NativeCropResultSchema = object({
|
|
|
20527
20572
|
*/
|
|
20528
20573
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20529
20574
|
});
|
|
20575
|
+
/**
|
|
20576
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20577
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20578
|
+
*
|
|
20579
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20580
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20581
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20582
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20583
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20584
|
+
*
|
|
20585
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20586
|
+
*/
|
|
20587
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20588
|
+
/**
|
|
20589
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20590
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20591
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20592
|
+
* never a reason to retry in a loop.
|
|
20593
|
+
*
|
|
20594
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20595
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20596
|
+
* carries the runner's own miss reason.
|
|
20597
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20598
|
+
*/
|
|
20599
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20600
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20601
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20602
|
+
parked: literal(true),
|
|
20603
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20604
|
+
nodeId: string(),
|
|
20605
|
+
width: number().int().positive(),
|
|
20606
|
+
height: number().int().positive(),
|
|
20607
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20608
|
+
bytes: number().int().nonnegative(),
|
|
20609
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20610
|
+
replaced: boolean()
|
|
20611
|
+
}), object({
|
|
20612
|
+
parked: literal(false),
|
|
20613
|
+
nodeId: string(),
|
|
20614
|
+
reason: ParkRefusalSchema,
|
|
20615
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20616
|
+
handleAgeMs: number().nullable(),
|
|
20617
|
+
detail: string().optional()
|
|
20618
|
+
})]);
|
|
20619
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20620
|
+
var ParkedTrackFrameSchema = object({
|
|
20621
|
+
jpeg: string(),
|
|
20622
|
+
width: number().int().positive(),
|
|
20623
|
+
height: number().int().positive(),
|
|
20624
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20625
|
+
timestamp: number(),
|
|
20626
|
+
/** When the node stored it (the node's clock). */
|
|
20627
|
+
parkedAt: number()
|
|
20628
|
+
});
|
|
20530
20629
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20531
20630
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20532
20631
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20916,7 +21015,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20916
21015
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20917
21016
|
* analyzer providers) running on decoded frames in this runner.
|
|
20918
21017
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20919
|
-
* analytics
|
|
21018
|
+
* analytics). The provider emits ProviderMotion
|
|
20920
21019
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20921
21020
|
*/
|
|
20922
21021
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21158,7 +21257,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21158
21257
|
className: string(),
|
|
21159
21258
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21160
21259
|
sourceDeviceId: number()
|
|
21161
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21260
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21261
|
+
deviceId: number(),
|
|
21262
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21263
|
+
trackId: string(),
|
|
21264
|
+
kind: ParkedFrameKindSchema,
|
|
21265
|
+
handle: FrameHandleSchema,
|
|
21266
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21267
|
+
bbox: NativeCropBboxSchema,
|
|
21268
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21269
|
+
maxWidth: number().int().positive().optional(),
|
|
21270
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21271
|
+
timestamp: number()
|
|
21272
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21273
|
+
deviceId: number(),
|
|
21274
|
+
trackId: string(),
|
|
21275
|
+
kind: ParkedFrameKindSchema
|
|
21276
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21277
|
+
deviceId: number(),
|
|
21278
|
+
trackId: string()
|
|
21279
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21162
21280
|
var CameraPipelineConfigSchema = object({
|
|
21163
21281
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21164
21282
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24228,8 +24346,8 @@ onStatusChanged: { data: object({
|
|
|
24228
24346
|
/**
|
|
24229
24347
|
* Runtime-state slice — every provider that registers this cap
|
|
24230
24348
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24231
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24232
|
-
*
|
|
24349
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24350
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24233
24351
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24234
24352
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24235
24353
|
* the underlying driver.
|
|
@@ -24379,7 +24497,7 @@ var buttonCapability = {
|
|
|
24379
24497
|
*
|
|
24380
24498
|
* Implementations:
|
|
24381
24499
|
* - Each camera-providing addon registers this cap natively per
|
|
24382
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24500
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24383
24501
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24384
24502
|
* extra round-trip to the camera, no probing.
|
|
24385
24503
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26471,7 +26589,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26471
26589
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26472
26590
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26473
26591
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26474
|
-
* `device-provider` integrations (Reolink/
|
|
26592
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26475
26593
|
* legacy config → discovery flow.
|
|
26476
26594
|
*/
|
|
26477
26595
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -29839,7 +29957,23 @@ var RecordingRangeSchema = object({
|
|
|
29839
29957
|
});
|
|
29840
29958
|
var RecordingAvailabilitySchema = object({
|
|
29841
29959
|
deviceId: number(),
|
|
29842
|
-
ranges: array(RecordingRangeSchema)
|
|
29960
|
+
ranges: array(RecordingRangeSchema),
|
|
29961
|
+
/**
|
|
29962
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
29963
|
+
* describes (D433).
|
|
29964
|
+
*
|
|
29965
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
29966
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
29967
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
29968
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
29969
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
29970
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
29971
|
+
* UI could not see it.
|
|
29972
|
+
*
|
|
29973
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
29974
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
29975
|
+
*/
|
|
29976
|
+
profilesWithFootage: array(string())
|
|
29843
29977
|
});
|
|
29844
29978
|
var RecordingDaysSchema = object({
|
|
29845
29979
|
deviceId: number(),
|
|
@@ -29865,7 +29999,11 @@ var RecordingDaysSchema = object({
|
|
|
29865
29999
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29866
30000
|
deviceId: number(),
|
|
29867
30001
|
read: _enum(["read", "unreadable"]),
|
|
29868
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30002
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30003
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30004
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30005
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30006
|
+
profilesWithFootage: array(string()).readonly()
|
|
29869
30007
|
});
|
|
29870
30008
|
/**
|
|
29871
30009
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -29895,13 +30033,31 @@ var RecordingManifestSchema = object({
|
|
|
29895
30033
|
*/
|
|
29896
30034
|
playbackEndpoints: array(string())
|
|
29897
30035
|
});
|
|
29898
|
-
/**
|
|
29899
|
-
*
|
|
30036
|
+
/**
|
|
30037
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30038
|
+
* across every profile and every resolvable location on this node.
|
|
30039
|
+
*
|
|
30040
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30041
|
+
*
|
|
30042
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30043
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30044
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30045
|
+
*
|
|
30046
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30047
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30048
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30049
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30050
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30051
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30052
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30053
|
+
*/
|
|
29900
30054
|
var RecordingDeviceUsageSchema = object({
|
|
29901
30055
|
deviceId: number(),
|
|
30056
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30057
|
+
* recordings locations. */
|
|
29902
30058
|
usedBytes: number(),
|
|
29903
30059
|
/**
|
|
29904
|
-
* Start of this camera's OLDEST
|
|
30060
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
29905
30061
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
29906
30062
|
* only honest answer to "is retention actually holding?" per camera.
|
|
29907
30063
|
*
|
|
@@ -29911,7 +30067,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
29911
30067
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
29912
30068
|
* the later of the two.
|
|
29913
30069
|
*/
|
|
29914
|
-
oldestMs: number().nullable().optional()
|
|
30070
|
+
oldestMs: number().nullable().optional(),
|
|
30071
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30072
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30073
|
+
segments: number().optional(),
|
|
30074
|
+
/**
|
|
30075
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30076
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30077
|
+
*
|
|
30078
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30079
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30080
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30081
|
+
* it, and so does a node whose ledger could not answer.
|
|
30082
|
+
*/
|
|
30083
|
+
residentBytes: number().optional(),
|
|
30084
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30085
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30086
|
+
* retention. `null` = nothing resident. */
|
|
30087
|
+
residentOldestMs: number().nullable().optional()
|
|
29915
30088
|
});
|
|
29916
30089
|
/** Recording storage usage + capacity for one storage location. */
|
|
29917
30090
|
var RecordingLocationUsageSchema = object({
|
|
@@ -29949,6 +30122,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
29949
30122
|
totalUsedBytes: number(),
|
|
29950
30123
|
devices: array(RecordingDeviceUsageSchema),
|
|
29951
30124
|
/**
|
|
30125
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30126
|
+
* disks (D418).
|
|
30127
|
+
*
|
|
30128
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30129
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30130
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30131
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30132
|
+
* and its rows are residency.
|
|
30133
|
+
*/
|
|
30134
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30135
|
+
/**
|
|
29952
30136
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
29953
30137
|
* of the payload without it: the hub serves this method through a BAKED
|
|
29954
30138
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30109,7 +30293,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30109
30293
|
method(object({
|
|
30110
30294
|
deviceId: number(),
|
|
30111
30295
|
fromMs: number(),
|
|
30112
|
-
toMs: number()
|
|
30296
|
+
toMs: number(),
|
|
30297
|
+
/**
|
|
30298
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30299
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30300
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30301
|
+
* for.
|
|
30302
|
+
*/
|
|
30303
|
+
profile: string().optional()
|
|
30113
30304
|
}), RecordingAvailabilitySchema, {
|
|
30114
30305
|
kind: "query",
|
|
30115
30306
|
auth: "protected"
|
|
@@ -33828,7 +34019,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
33828
34019
|
};
|
|
33829
34020
|
}
|
|
33830
34021
|
/**
|
|
33831
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34022
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
33832
34023
|
*
|
|
33833
34024
|
* Provides default implementations for the common device-provider cap
|
|
33834
34025
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38484,6 +38675,24 @@ Object.freeze({
|
|
|
38484
38675
|
addonId: null,
|
|
38485
38676
|
access: "view"
|
|
38486
38677
|
},
|
|
38678
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38679
|
+
capName: "pipeline-runner",
|
|
38680
|
+
capScope: "system",
|
|
38681
|
+
addonId: null,
|
|
38682
|
+
access: "view"
|
|
38683
|
+
},
|
|
38684
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38685
|
+
capName: "pipeline-runner",
|
|
38686
|
+
capScope: "system",
|
|
38687
|
+
addonId: null,
|
|
38688
|
+
access: "create"
|
|
38689
|
+
},
|
|
38690
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38691
|
+
capName: "pipeline-runner",
|
|
38692
|
+
capScope: "system",
|
|
38693
|
+
addonId: null,
|
|
38694
|
+
access: "create"
|
|
38695
|
+
},
|
|
38487
38696
|
"pipelineRunner.reportMotion": {
|
|
38488
38697
|
capName: "pipeline-runner",
|
|
38489
38698
|
capScope: "system",
|
|
@@ -41761,6 +41970,21 @@ Object.freeze({
|
|
|
41761
41970
|
form: "single",
|
|
41762
41971
|
optional: false
|
|
41763
41972
|
}],
|
|
41973
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
41974
|
+
name: "deviceId",
|
|
41975
|
+
form: "single",
|
|
41976
|
+
optional: false
|
|
41977
|
+
}],
|
|
41978
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
41979
|
+
name: "deviceId",
|
|
41980
|
+
form: "single",
|
|
41981
|
+
optional: false
|
|
41982
|
+
}],
|
|
41983
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
41984
|
+
name: "deviceId",
|
|
41985
|
+
form: "single",
|
|
41986
|
+
optional: false
|
|
41987
|
+
}],
|
|
41764
41988
|
"pipelineRunner.reportMotion": [{
|
|
41765
41989
|
name: "deviceId",
|
|
41766
41990
|
form: "single",
|
|
@@ -42452,7 +42676,7 @@ var PreviewTextField = string().max(200);
|
|
|
42452
42676
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42453
42677
|
*
|
|
42454
42678
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42455
|
-
* rule)"* —
|
|
42679
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42456
42680
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42457
42681
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42458
42682
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -590,7 +590,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
590
590
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
591
591
|
*/
|
|
592
592
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
593
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
594
593
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
595
594
|
/**
|
|
596
595
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12624,7 +12623,7 @@ DeviceType.Camera;
|
|
|
12624
12623
|
var SourceInfoSchema = object({
|
|
12625
12624
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12626
12625
|
id: string(),
|
|
12627
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12626
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12628
12627
|
system: string(),
|
|
12629
12628
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12630
12629
|
* Used to detect rename when `id` changes. */
|
|
@@ -12637,7 +12636,7 @@ var SourceInfoSchema = object({
|
|
|
12637
12636
|
/**
|
|
12638
12637
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12639
12638
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12640
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12639
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12641
12640
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12642
12641
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12643
12642
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13299,7 +13298,7 @@ var deviceProviderCapability = {
|
|
|
13299
13298
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13300
13299
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13301
13300
|
*
|
|
13302
|
-
* All device provider addons (rtsp, onvif,
|
|
13301
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13303
13302
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13304
13303
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13305
13304
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17347,7 +17346,7 @@ var NcRuleInputSchema = object({
|
|
|
17347
17346
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17348
17347
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17349
17348
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17350
|
-
* 30 is
|
|
17349
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17351
17350
|
*
|
|
17352
17351
|
* ### What it replaces
|
|
17353
17352
|
*
|
|
@@ -19429,6 +19428,13 @@ var ZoneCrossingSchema = object({
|
|
|
19429
19428
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19430
19429
|
zoneName: string().optional()
|
|
19431
19430
|
});
|
|
19431
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19432
|
+
var ZoneOverlapSchema = object({
|
|
19433
|
+
zoneId: string(),
|
|
19434
|
+
zoneName: string().optional(),
|
|
19435
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19436
|
+
overlapPct: number()
|
|
19437
|
+
});
|
|
19432
19438
|
var ObjectEventSchema = object({
|
|
19433
19439
|
...BaseEventFields,
|
|
19434
19440
|
kind: literal("object"),
|
|
@@ -19453,6 +19459,35 @@ var ObjectEventSchema = object({
|
|
|
19453
19459
|
bbox: BoundingBoxSchema.optional(),
|
|
19454
19460
|
/** Heavy JSON — omitted in slim projection. */
|
|
19455
19461
|
zones: array(string()).readonly().optional(),
|
|
19462
|
+
/**
|
|
19463
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19464
|
+
* the BOX area.
|
|
19465
|
+
*
|
|
19466
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19467
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19468
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19469
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19470
|
+
* else to judge by.
|
|
19471
|
+
*/
|
|
19472
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19473
|
+
/**
|
|
19474
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19475
|
+
* has no track and never will.
|
|
19476
|
+
*
|
|
19477
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19478
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19479
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19480
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19481
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19482
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19483
|
+
* event at all.
|
|
19484
|
+
*
|
|
19485
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19486
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19487
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19488
|
+
* history is asking for something that never existed.
|
|
19489
|
+
*/
|
|
19490
|
+
spawnRefused: string().optional(),
|
|
19456
19491
|
/** Omitted in slim projection. */
|
|
19457
19492
|
state: TrackStateSchema.optional(),
|
|
19458
19493
|
/**
|
|
@@ -19879,7 +19914,17 @@ var EventDensityBucketSchema = object({
|
|
|
19879
19914
|
bucketStart: number(),
|
|
19880
19915
|
motion: number().int(),
|
|
19881
19916
|
object: number().int(),
|
|
19882
|
-
audio: number().int()
|
|
19917
|
+
audio: number().int(),
|
|
19918
|
+
/**
|
|
19919
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19920
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19921
|
+
*
|
|
19922
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19923
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19924
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19925
|
+
* the count-on-a-level-meter did.
|
|
19926
|
+
*/
|
|
19927
|
+
audioDbfs: number().optional()
|
|
19883
19928
|
});
|
|
19884
19929
|
/**
|
|
19885
19930
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20526,6 +20571,60 @@ var NativeCropResultSchema = object({
|
|
|
20526
20571
|
*/
|
|
20527
20572
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20528
20573
|
});
|
|
20574
|
+
/**
|
|
20575
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20576
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20577
|
+
*
|
|
20578
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20579
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20580
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20581
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20582
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20583
|
+
*
|
|
20584
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20585
|
+
*/
|
|
20586
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20587
|
+
/**
|
|
20588
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20589
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20590
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20591
|
+
* never a reason to retry in a loop.
|
|
20592
|
+
*
|
|
20593
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20594
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20595
|
+
* carries the runner's own miss reason.
|
|
20596
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20597
|
+
*/
|
|
20598
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20599
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20600
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20601
|
+
parked: literal(true),
|
|
20602
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20603
|
+
nodeId: string(),
|
|
20604
|
+
width: number().int().positive(),
|
|
20605
|
+
height: number().int().positive(),
|
|
20606
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20607
|
+
bytes: number().int().nonnegative(),
|
|
20608
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20609
|
+
replaced: boolean()
|
|
20610
|
+
}), object({
|
|
20611
|
+
parked: literal(false),
|
|
20612
|
+
nodeId: string(),
|
|
20613
|
+
reason: ParkRefusalSchema,
|
|
20614
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20615
|
+
handleAgeMs: number().nullable(),
|
|
20616
|
+
detail: string().optional()
|
|
20617
|
+
})]);
|
|
20618
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20619
|
+
var ParkedTrackFrameSchema = object({
|
|
20620
|
+
jpeg: string(),
|
|
20621
|
+
width: number().int().positive(),
|
|
20622
|
+
height: number().int().positive(),
|
|
20623
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20624
|
+
timestamp: number(),
|
|
20625
|
+
/** When the node stored it (the node's clock). */
|
|
20626
|
+
parkedAt: number()
|
|
20627
|
+
});
|
|
20529
20628
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20530
20629
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20531
20630
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20915,7 +21014,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20915
21014
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20916
21015
|
* analyzer providers) running on decoded frames in this runner.
|
|
20917
21016
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20918
|
-
* analytics
|
|
21017
|
+
* analytics). The provider emits ProviderMotion
|
|
20919
21018
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20920
21019
|
*/
|
|
20921
21020
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21157,7 +21256,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21157
21256
|
className: string(),
|
|
21158
21257
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21159
21258
|
sourceDeviceId: number()
|
|
21160
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21259
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21260
|
+
deviceId: number(),
|
|
21261
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21262
|
+
trackId: string(),
|
|
21263
|
+
kind: ParkedFrameKindSchema,
|
|
21264
|
+
handle: FrameHandleSchema,
|
|
21265
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21266
|
+
bbox: NativeCropBboxSchema,
|
|
21267
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21268
|
+
maxWidth: number().int().positive().optional(),
|
|
21269
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21270
|
+
timestamp: number()
|
|
21271
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21272
|
+
deviceId: number(),
|
|
21273
|
+
trackId: string(),
|
|
21274
|
+
kind: ParkedFrameKindSchema
|
|
21275
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21276
|
+
deviceId: number(),
|
|
21277
|
+
trackId: string()
|
|
21278
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21161
21279
|
var CameraPipelineConfigSchema = object({
|
|
21162
21280
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21163
21281
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24227,8 +24345,8 @@ onStatusChanged: { data: object({
|
|
|
24227
24345
|
/**
|
|
24228
24346
|
* Runtime-state slice — every provider that registers this cap
|
|
24229
24347
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24230
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24231
|
-
*
|
|
24348
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24349
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24232
24350
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24233
24351
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24234
24352
|
* the underlying driver.
|
|
@@ -24378,7 +24496,7 @@ var buttonCapability = {
|
|
|
24378
24496
|
*
|
|
24379
24497
|
* Implementations:
|
|
24380
24498
|
* - Each camera-providing addon registers this cap natively per
|
|
24381
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24499
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24382
24500
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24383
24501
|
* extra round-trip to the camera, no probing.
|
|
24384
24502
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26470,7 +26588,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26470
26588
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26471
26589
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26472
26590
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26473
|
-
* `device-provider` integrations (Reolink/
|
|
26591
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26474
26592
|
* legacy config → discovery flow.
|
|
26475
26593
|
*/
|
|
26476
26594
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -29838,7 +29956,23 @@ var RecordingRangeSchema = object({
|
|
|
29838
29956
|
});
|
|
29839
29957
|
var RecordingAvailabilitySchema = object({
|
|
29840
29958
|
deviceId: number(),
|
|
29841
|
-
ranges: array(RecordingRangeSchema)
|
|
29959
|
+
ranges: array(RecordingRangeSchema),
|
|
29960
|
+
/**
|
|
29961
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
29962
|
+
* describes (D433).
|
|
29963
|
+
*
|
|
29964
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
29965
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
29966
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
29967
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
29968
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
29969
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
29970
|
+
* UI could not see it.
|
|
29971
|
+
*
|
|
29972
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
29973
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
29974
|
+
*/
|
|
29975
|
+
profilesWithFootage: array(string())
|
|
29842
29976
|
});
|
|
29843
29977
|
var RecordingDaysSchema = object({
|
|
29844
29978
|
deviceId: number(),
|
|
@@ -29864,7 +29998,11 @@ var RecordingDaysSchema = object({
|
|
|
29864
29998
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29865
29999
|
deviceId: number(),
|
|
29866
30000
|
read: _enum(["read", "unreadable"]),
|
|
29867
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30001
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30002
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30003
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30004
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30005
|
+
profilesWithFootage: array(string()).readonly()
|
|
29868
30006
|
});
|
|
29869
30007
|
/**
|
|
29870
30008
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -29894,13 +30032,31 @@ var RecordingManifestSchema = object({
|
|
|
29894
30032
|
*/
|
|
29895
30033
|
playbackEndpoints: array(string())
|
|
29896
30034
|
});
|
|
29897
|
-
/**
|
|
29898
|
-
*
|
|
30035
|
+
/**
|
|
30036
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30037
|
+
* across every profile and every resolvable location on this node.
|
|
30038
|
+
*
|
|
30039
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30040
|
+
*
|
|
30041
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30042
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30043
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30044
|
+
*
|
|
30045
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30046
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30047
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30048
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30049
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30050
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30051
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30052
|
+
*/
|
|
29899
30053
|
var RecordingDeviceUsageSchema = object({
|
|
29900
30054
|
deviceId: number(),
|
|
30055
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30056
|
+
* recordings locations. */
|
|
29901
30057
|
usedBytes: number(),
|
|
29902
30058
|
/**
|
|
29903
|
-
* Start of this camera's OLDEST
|
|
30059
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
29904
30060
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
29905
30061
|
* only honest answer to "is retention actually holding?" per camera.
|
|
29906
30062
|
*
|
|
@@ -29910,7 +30066,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
29910
30066
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
29911
30067
|
* the later of the two.
|
|
29912
30068
|
*/
|
|
29913
|
-
oldestMs: number().nullable().optional()
|
|
30069
|
+
oldestMs: number().nullable().optional(),
|
|
30070
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30071
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30072
|
+
segments: number().optional(),
|
|
30073
|
+
/**
|
|
30074
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30075
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30076
|
+
*
|
|
30077
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30078
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30079
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30080
|
+
* it, and so does a node whose ledger could not answer.
|
|
30081
|
+
*/
|
|
30082
|
+
residentBytes: number().optional(),
|
|
30083
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30084
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30085
|
+
* retention. `null` = nothing resident. */
|
|
30086
|
+
residentOldestMs: number().nullable().optional()
|
|
29914
30087
|
});
|
|
29915
30088
|
/** Recording storage usage + capacity for one storage location. */
|
|
29916
30089
|
var RecordingLocationUsageSchema = object({
|
|
@@ -29948,6 +30121,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
29948
30121
|
totalUsedBytes: number(),
|
|
29949
30122
|
devices: array(RecordingDeviceUsageSchema),
|
|
29950
30123
|
/**
|
|
30124
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30125
|
+
* disks (D418).
|
|
30126
|
+
*
|
|
30127
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30128
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30129
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30130
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30131
|
+
* and its rows are residency.
|
|
30132
|
+
*/
|
|
30133
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30134
|
+
/**
|
|
29951
30135
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
29952
30136
|
* of the payload without it: the hub serves this method through a BAKED
|
|
29953
30137
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30108,7 +30292,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30108
30292
|
method(object({
|
|
30109
30293
|
deviceId: number(),
|
|
30110
30294
|
fromMs: number(),
|
|
30111
|
-
toMs: number()
|
|
30295
|
+
toMs: number(),
|
|
30296
|
+
/**
|
|
30297
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30298
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30299
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30300
|
+
* for.
|
|
30301
|
+
*/
|
|
30302
|
+
profile: string().optional()
|
|
30112
30303
|
}), RecordingAvailabilitySchema, {
|
|
30113
30304
|
kind: "query",
|
|
30114
30305
|
auth: "protected"
|
|
@@ -33827,7 +34018,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
33827
34018
|
};
|
|
33828
34019
|
}
|
|
33829
34020
|
/**
|
|
33830
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34021
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
33831
34022
|
*
|
|
33832
34023
|
* Provides default implementations for the common device-provider cap
|
|
33833
34024
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38483,6 +38674,24 @@ Object.freeze({
|
|
|
38483
38674
|
addonId: null,
|
|
38484
38675
|
access: "view"
|
|
38485
38676
|
},
|
|
38677
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38678
|
+
capName: "pipeline-runner",
|
|
38679
|
+
capScope: "system",
|
|
38680
|
+
addonId: null,
|
|
38681
|
+
access: "view"
|
|
38682
|
+
},
|
|
38683
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38684
|
+
capName: "pipeline-runner",
|
|
38685
|
+
capScope: "system",
|
|
38686
|
+
addonId: null,
|
|
38687
|
+
access: "create"
|
|
38688
|
+
},
|
|
38689
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38690
|
+
capName: "pipeline-runner",
|
|
38691
|
+
capScope: "system",
|
|
38692
|
+
addonId: null,
|
|
38693
|
+
access: "create"
|
|
38694
|
+
},
|
|
38486
38695
|
"pipelineRunner.reportMotion": {
|
|
38487
38696
|
capName: "pipeline-runner",
|
|
38488
38697
|
capScope: "system",
|
|
@@ -41760,6 +41969,21 @@ Object.freeze({
|
|
|
41760
41969
|
form: "single",
|
|
41761
41970
|
optional: false
|
|
41762
41971
|
}],
|
|
41972
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
41973
|
+
name: "deviceId",
|
|
41974
|
+
form: "single",
|
|
41975
|
+
optional: false
|
|
41976
|
+
}],
|
|
41977
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
41978
|
+
name: "deviceId",
|
|
41979
|
+
form: "single",
|
|
41980
|
+
optional: false
|
|
41981
|
+
}],
|
|
41982
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
41983
|
+
name: "deviceId",
|
|
41984
|
+
form: "single",
|
|
41985
|
+
optional: false
|
|
41986
|
+
}],
|
|
41763
41987
|
"pipelineRunner.reportMotion": [{
|
|
41764
41988
|
name: "deviceId",
|
|
41765
41989
|
form: "single",
|
|
@@ -42451,7 +42675,7 @@ var PreviewTextField = string().max(200);
|
|
|
42451
42675
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42452
42676
|
*
|
|
42453
42677
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42454
|
-
* rule)"* —
|
|
42678
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42455
42679
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42456
42680
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42457
42681
|
* 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-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.93",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|