@camstack/addon-export-hap 1.2.100 → 1.2.103
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/hap-export.addon.js +201 -14
- package/dist/hap-export.addon.mjs +201 -14
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -84,7 +84,7 @@ function carryForward(base, existing, keys) {
|
|
|
84
84
|
return out;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region ../types/dist/event-category-
|
|
87
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
88
88
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
89
89
|
EventCategory["SystemBoot"] = "system.boot";
|
|
90
90
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -676,7 +676,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
676
676
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
677
677
|
*/
|
|
678
678
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
679
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
680
679
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
681
680
|
/**
|
|
682
681
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13299,7 +13298,7 @@ DeviceType.Camera;
|
|
|
13299
13298
|
var SourceInfoSchema = object({
|
|
13300
13299
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13301
13300
|
id: string(),
|
|
13302
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13301
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13303
13302
|
system: string(),
|
|
13304
13303
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13305
13304
|
* Used to detect rename when `id` changes. */
|
|
@@ -13811,7 +13810,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13811
13810
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13812
13811
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13813
13812
|
*
|
|
13814
|
-
* All device provider addons (rtsp, onvif,
|
|
13813
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13815
13814
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13816
13815
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13817
13816
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17821,7 +17820,7 @@ var NcRuleInputSchema = object({
|
|
|
17821
17820
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17822
17821
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17823
17822
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17824
|
-
* 30 is
|
|
17823
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17825
17824
|
*
|
|
17826
17825
|
* ### What it replaces
|
|
17827
17826
|
*
|
|
@@ -19863,6 +19862,13 @@ var ZoneCrossingSchema = object({
|
|
|
19863
19862
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19864
19863
|
zoneName: string().optional()
|
|
19865
19864
|
});
|
|
19865
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19866
|
+
var ZoneOverlapSchema = object({
|
|
19867
|
+
zoneId: string(),
|
|
19868
|
+
zoneName: string().optional(),
|
|
19869
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19870
|
+
overlapPct: number()
|
|
19871
|
+
});
|
|
19866
19872
|
var ObjectEventSchema = object({
|
|
19867
19873
|
...BaseEventFields,
|
|
19868
19874
|
kind: literal("object"),
|
|
@@ -19887,6 +19893,35 @@ var ObjectEventSchema = object({
|
|
|
19887
19893
|
bbox: BoundingBoxSchema.optional(),
|
|
19888
19894
|
/** Heavy JSON — omitted in slim projection. */
|
|
19889
19895
|
zones: array(string()).readonly().optional(),
|
|
19896
|
+
/**
|
|
19897
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19898
|
+
* the BOX area.
|
|
19899
|
+
*
|
|
19900
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19901
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19902
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19903
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19904
|
+
* else to judge by.
|
|
19905
|
+
*/
|
|
19906
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19907
|
+
/**
|
|
19908
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19909
|
+
* has no track and never will.
|
|
19910
|
+
*
|
|
19911
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19912
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19913
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19914
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19915
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19916
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19917
|
+
* event at all.
|
|
19918
|
+
*
|
|
19919
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19920
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19921
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19922
|
+
* history is asking for something that never existed.
|
|
19923
|
+
*/
|
|
19924
|
+
spawnRefused: string().optional(),
|
|
19890
19925
|
/** Omitted in slim projection. */
|
|
19891
19926
|
state: TrackStateSchema.optional(),
|
|
19892
19927
|
/**
|
|
@@ -20960,6 +20995,60 @@ var NativeCropResultSchema = object({
|
|
|
20960
20995
|
*/
|
|
20961
20996
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20962
20997
|
});
|
|
20998
|
+
/**
|
|
20999
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
21000
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21001
|
+
*
|
|
21002
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
21003
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
21004
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
21005
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
21006
|
+
* window, cut by the runner at uncapped native resolution.
|
|
21007
|
+
*
|
|
21008
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
21009
|
+
*/
|
|
21010
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
21011
|
+
/**
|
|
21012
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21013
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21014
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21015
|
+
* never a reason to retry in a loop.
|
|
21016
|
+
*
|
|
21017
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21018
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21019
|
+
* carries the runner's own miss reason.
|
|
21020
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21021
|
+
*/
|
|
21022
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
21023
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21024
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
21025
|
+
parked: literal(true),
|
|
21026
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21027
|
+
nodeId: string(),
|
|
21028
|
+
width: number().int().positive(),
|
|
21029
|
+
height: number().int().positive(),
|
|
21030
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21031
|
+
bytes: number().int().nonnegative(),
|
|
21032
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21033
|
+
replaced: boolean()
|
|
21034
|
+
}), object({
|
|
21035
|
+
parked: literal(false),
|
|
21036
|
+
nodeId: string(),
|
|
21037
|
+
reason: ParkRefusalSchema,
|
|
21038
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21039
|
+
handleAgeMs: number().nullable(),
|
|
21040
|
+
detail: string().optional()
|
|
21041
|
+
})]);
|
|
21042
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21043
|
+
var ParkedTrackFrameSchema = object({
|
|
21044
|
+
jpeg: string(),
|
|
21045
|
+
width: number().int().positive(),
|
|
21046
|
+
height: number().int().positive(),
|
|
21047
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21048
|
+
timestamp: number(),
|
|
21049
|
+
/** When the node stored it (the node's clock). */
|
|
21050
|
+
parkedAt: number()
|
|
21051
|
+
});
|
|
20963
21052
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20964
21053
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20965
21054
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21349,7 +21438,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21349
21438
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21350
21439
|
* analyzer providers) running on decoded frames in this runner.
|
|
21351
21440
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21352
|
-
* analytics
|
|
21441
|
+
* analytics). The provider emits ProviderMotion
|
|
21353
21442
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21354
21443
|
*/
|
|
21355
21444
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21591,7 +21680,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21591
21680
|
className: string(),
|
|
21592
21681
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21593
21682
|
sourceDeviceId: number()
|
|
21594
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21683
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21684
|
+
deviceId: number(),
|
|
21685
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21686
|
+
trackId: string(),
|
|
21687
|
+
kind: ParkedFrameKindSchema,
|
|
21688
|
+
handle: FrameHandleSchema,
|
|
21689
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21690
|
+
bbox: NativeCropBboxSchema,
|
|
21691
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21692
|
+
maxWidth: number().int().positive().optional(),
|
|
21693
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21694
|
+
timestamp: number()
|
|
21695
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21696
|
+
deviceId: number(),
|
|
21697
|
+
trackId: string(),
|
|
21698
|
+
kind: ParkedFrameKindSchema
|
|
21699
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21700
|
+
deviceId: number(),
|
|
21701
|
+
trackId: string()
|
|
21702
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21595
21703
|
var CameraPipelineConfigSchema = object({
|
|
21596
21704
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21597
21705
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24524,7 +24632,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24524
24632
|
*
|
|
24525
24633
|
* Implementations:
|
|
24526
24634
|
* - Each camera-providing addon registers this cap natively per
|
|
24527
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24635
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24528
24636
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24529
24637
|
* extra round-trip to the camera, no probing.
|
|
24530
24638
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25942,7 +26050,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25942
26050
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25943
26051
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25944
26052
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25945
|
-
* `device-provider` integrations (Reolink/
|
|
26053
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25946
26054
|
* legacy config → discovery flow.
|
|
25947
26055
|
*/
|
|
25948
26056
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -28511,13 +28619,31 @@ var RecordingManifestSchema = object({
|
|
|
28511
28619
|
*/
|
|
28512
28620
|
playbackEndpoints: array(string())
|
|
28513
28621
|
});
|
|
28514
|
-
/**
|
|
28515
|
-
*
|
|
28622
|
+
/**
|
|
28623
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28624
|
+
* across every profile and every resolvable location on this node.
|
|
28625
|
+
*
|
|
28626
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28627
|
+
*
|
|
28628
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28629
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28630
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28631
|
+
*
|
|
28632
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28633
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28634
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28635
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28636
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28637
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28638
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28639
|
+
*/
|
|
28516
28640
|
var RecordingDeviceUsageSchema = object({
|
|
28517
28641
|
deviceId: number(),
|
|
28642
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28643
|
+
* recordings locations. */
|
|
28518
28644
|
usedBytes: number(),
|
|
28519
28645
|
/**
|
|
28520
|
-
* Start of this camera's OLDEST
|
|
28646
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
28521
28647
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
28522
28648
|
* only honest answer to "is retention actually holding?" per camera.
|
|
28523
28649
|
*
|
|
@@ -28527,7 +28653,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
28527
28653
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
28528
28654
|
* the later of the two.
|
|
28529
28655
|
*/
|
|
28530
|
-
oldestMs: number().nullable().optional()
|
|
28656
|
+
oldestMs: number().nullable().optional(),
|
|
28657
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28658
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28659
|
+
segments: number().optional(),
|
|
28660
|
+
/**
|
|
28661
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28662
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28663
|
+
*
|
|
28664
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28665
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28666
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28667
|
+
* it, and so does a node whose ledger could not answer.
|
|
28668
|
+
*/
|
|
28669
|
+
residentBytes: number().optional(),
|
|
28670
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28671
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28672
|
+
* retention. `null` = nothing resident. */
|
|
28673
|
+
residentOldestMs: number().nullable().optional()
|
|
28531
28674
|
});
|
|
28532
28675
|
/** Recording storage usage + capacity for one storage location. */
|
|
28533
28676
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28565,6 +28708,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28565
28708
|
totalUsedBytes: number(),
|
|
28566
28709
|
devices: array(RecordingDeviceUsageSchema),
|
|
28567
28710
|
/**
|
|
28711
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28712
|
+
* disks (D418).
|
|
28713
|
+
*
|
|
28714
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28715
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28716
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28717
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28718
|
+
* and its rows are residency.
|
|
28719
|
+
*/
|
|
28720
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28721
|
+
/**
|
|
28568
28722
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28569
28723
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28570
28724
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -34977,6 +35131,24 @@ Object.freeze({
|
|
|
34977
35131
|
addonId: null,
|
|
34978
35132
|
access: "view"
|
|
34979
35133
|
},
|
|
35134
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
35135
|
+
capName: "pipeline-runner",
|
|
35136
|
+
capScope: "system",
|
|
35137
|
+
addonId: null,
|
|
35138
|
+
access: "view"
|
|
35139
|
+
},
|
|
35140
|
+
"pipelineRunner.parkTrackFrame": {
|
|
35141
|
+
capName: "pipeline-runner",
|
|
35142
|
+
capScope: "system",
|
|
35143
|
+
addonId: null,
|
|
35144
|
+
access: "create"
|
|
35145
|
+
},
|
|
35146
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
35147
|
+
capName: "pipeline-runner",
|
|
35148
|
+
capScope: "system",
|
|
35149
|
+
addonId: null,
|
|
35150
|
+
access: "create"
|
|
35151
|
+
},
|
|
34980
35152
|
"pipelineRunner.reportMotion": {
|
|
34981
35153
|
capName: "pipeline-runner",
|
|
34982
35154
|
capScope: "system",
|
|
@@ -38254,6 +38426,21 @@ Object.freeze({
|
|
|
38254
38426
|
form: "single",
|
|
38255
38427
|
optional: false
|
|
38256
38428
|
}],
|
|
38429
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
38430
|
+
name: "deviceId",
|
|
38431
|
+
form: "single",
|
|
38432
|
+
optional: false
|
|
38433
|
+
}],
|
|
38434
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
38435
|
+
name: "deviceId",
|
|
38436
|
+
form: "single",
|
|
38437
|
+
optional: false
|
|
38438
|
+
}],
|
|
38439
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
38440
|
+
name: "deviceId",
|
|
38441
|
+
form: "single",
|
|
38442
|
+
optional: false
|
|
38443
|
+
}],
|
|
38257
38444
|
"pipelineRunner.reportMotion": [{
|
|
38258
38445
|
name: "deviceId",
|
|
38259
38446
|
form: "single",
|
|
@@ -38945,7 +39132,7 @@ var PreviewTextField = string().max(200);
|
|
|
38945
39132
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38946
39133
|
*
|
|
38947
39134
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38948
|
-
* rule)"* —
|
|
39135
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38949
39136
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38950
39137
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38951
39138
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -72,7 +72,7 @@ function carryForward(base, existing, keys) {
|
|
|
72
72
|
return out;
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region ../types/dist/event-category-
|
|
75
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
76
76
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
77
77
|
EventCategory["SystemBoot"] = "system.boot";
|
|
78
78
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -664,7 +664,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
664
664
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
665
665
|
*/
|
|
666
666
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
667
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
668
667
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
669
668
|
/**
|
|
670
669
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -13287,7 +13286,7 @@ DeviceType.Camera;
|
|
|
13287
13286
|
var SourceInfoSchema = object({
|
|
13288
13287
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
13289
13288
|
id: string(),
|
|
13290
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
13289
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
13291
13290
|
system: string(),
|
|
13292
13291
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
13293
13292
|
* Used to detect rename when `id` changes. */
|
|
@@ -13799,7 +13798,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13799
13798
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13800
13799
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13801
13800
|
*
|
|
13802
|
-
* All device provider addons (rtsp, onvif,
|
|
13801
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13803
13802
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13804
13803
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13805
13804
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17809,7 +17808,7 @@ var NcRuleInputSchema = object({
|
|
|
17809
17808
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17810
17809
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17811
17810
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17812
|
-
* 30 is
|
|
17811
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17813
17812
|
*
|
|
17814
17813
|
* ### What it replaces
|
|
17815
17814
|
*
|
|
@@ -19851,6 +19850,13 @@ var ZoneCrossingSchema = object({
|
|
|
19851
19850
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19852
19851
|
zoneName: string().optional()
|
|
19853
19852
|
});
|
|
19853
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19854
|
+
var ZoneOverlapSchema = object({
|
|
19855
|
+
zoneId: string(),
|
|
19856
|
+
zoneName: string().optional(),
|
|
19857
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19858
|
+
overlapPct: number()
|
|
19859
|
+
});
|
|
19854
19860
|
var ObjectEventSchema = object({
|
|
19855
19861
|
...BaseEventFields,
|
|
19856
19862
|
kind: literal("object"),
|
|
@@ -19875,6 +19881,35 @@ var ObjectEventSchema = object({
|
|
|
19875
19881
|
bbox: BoundingBoxSchema.optional(),
|
|
19876
19882
|
/** Heavy JSON — omitted in slim projection. */
|
|
19877
19883
|
zones: array(string()).readonly().optional(),
|
|
19884
|
+
/**
|
|
19885
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19886
|
+
* the BOX area.
|
|
19887
|
+
*
|
|
19888
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19889
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19890
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19891
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19892
|
+
* else to judge by.
|
|
19893
|
+
*/
|
|
19894
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19895
|
+
/**
|
|
19896
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19897
|
+
* has no track and never will.
|
|
19898
|
+
*
|
|
19899
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19900
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19901
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19902
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19903
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19904
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19905
|
+
* event at all.
|
|
19906
|
+
*
|
|
19907
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19908
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19909
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19910
|
+
* history is asking for something that never existed.
|
|
19911
|
+
*/
|
|
19912
|
+
spawnRefused: string().optional(),
|
|
19878
19913
|
/** Omitted in slim projection. */
|
|
19879
19914
|
state: TrackStateSchema.optional(),
|
|
19880
19915
|
/**
|
|
@@ -20948,6 +20983,60 @@ var NativeCropResultSchema = object({
|
|
|
20948
20983
|
*/
|
|
20949
20984
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20950
20985
|
});
|
|
20986
|
+
/**
|
|
20987
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20988
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20989
|
+
*
|
|
20990
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20991
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20992
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20993
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20994
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20995
|
+
*
|
|
20996
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20997
|
+
*/
|
|
20998
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20999
|
+
/**
|
|
21000
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21001
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21002
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21003
|
+
* never a reason to retry in a loop.
|
|
21004
|
+
*
|
|
21005
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21006
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21007
|
+
* carries the runner's own miss reason.
|
|
21008
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21009
|
+
*/
|
|
21010
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
21011
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21012
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
21013
|
+
parked: literal(true),
|
|
21014
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21015
|
+
nodeId: string(),
|
|
21016
|
+
width: number().int().positive(),
|
|
21017
|
+
height: number().int().positive(),
|
|
21018
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21019
|
+
bytes: number().int().nonnegative(),
|
|
21020
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21021
|
+
replaced: boolean()
|
|
21022
|
+
}), object({
|
|
21023
|
+
parked: literal(false),
|
|
21024
|
+
nodeId: string(),
|
|
21025
|
+
reason: ParkRefusalSchema,
|
|
21026
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21027
|
+
handleAgeMs: number().nullable(),
|
|
21028
|
+
detail: string().optional()
|
|
21029
|
+
})]);
|
|
21030
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21031
|
+
var ParkedTrackFrameSchema = object({
|
|
21032
|
+
jpeg: string(),
|
|
21033
|
+
width: number().int().positive(),
|
|
21034
|
+
height: number().int().positive(),
|
|
21035
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21036
|
+
timestamp: number(),
|
|
21037
|
+
/** When the node stored it (the node's clock). */
|
|
21038
|
+
parkedAt: number()
|
|
21039
|
+
});
|
|
20951
21040
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20952
21041
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20953
21042
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21337,7 +21426,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21337
21426
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21338
21427
|
* analyzer providers) running on decoded frames in this runner.
|
|
21339
21428
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21340
|
-
* analytics
|
|
21429
|
+
* analytics). The provider emits ProviderMotion
|
|
21341
21430
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21342
21431
|
*/
|
|
21343
21432
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21579,7 +21668,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21579
21668
|
className: string(),
|
|
21580
21669
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21581
21670
|
sourceDeviceId: number()
|
|
21582
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21671
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21672
|
+
deviceId: number(),
|
|
21673
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21674
|
+
trackId: string(),
|
|
21675
|
+
kind: ParkedFrameKindSchema,
|
|
21676
|
+
handle: FrameHandleSchema,
|
|
21677
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21678
|
+
bbox: NativeCropBboxSchema,
|
|
21679
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21680
|
+
maxWidth: number().int().positive().optional(),
|
|
21681
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21682
|
+
timestamp: number()
|
|
21683
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21684
|
+
deviceId: number(),
|
|
21685
|
+
trackId: string(),
|
|
21686
|
+
kind: ParkedFrameKindSchema
|
|
21687
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21688
|
+
deviceId: number(),
|
|
21689
|
+
trackId: string()
|
|
21690
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21583
21691
|
var CameraPipelineConfigSchema = object({
|
|
21584
21692
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21585
21693
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24512,7 +24620,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24512
24620
|
*
|
|
24513
24621
|
* Implementations:
|
|
24514
24622
|
* - Each camera-providing addon registers this cap natively per
|
|
24515
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24623
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24516
24624
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24517
24625
|
* extra round-trip to the camera, no probing.
|
|
24518
24626
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25930,7 +26038,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25930
26038
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25931
26039
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25932
26040
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25933
|
-
* `device-provider` integrations (Reolink/
|
|
26041
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25934
26042
|
* legacy config → discovery flow.
|
|
25935
26043
|
*/
|
|
25936
26044
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -28499,13 +28607,31 @@ var RecordingManifestSchema = object({
|
|
|
28499
28607
|
*/
|
|
28500
28608
|
playbackEndpoints: array(string())
|
|
28501
28609
|
});
|
|
28502
|
-
/**
|
|
28503
|
-
*
|
|
28610
|
+
/**
|
|
28611
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28612
|
+
* across every profile and every resolvable location on this node.
|
|
28613
|
+
*
|
|
28614
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28615
|
+
*
|
|
28616
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28617
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28618
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28619
|
+
*
|
|
28620
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28621
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28622
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28623
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28624
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28625
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28626
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28627
|
+
*/
|
|
28504
28628
|
var RecordingDeviceUsageSchema = object({
|
|
28505
28629
|
deviceId: number(),
|
|
28630
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28631
|
+
* recordings locations. */
|
|
28506
28632
|
usedBytes: number(),
|
|
28507
28633
|
/**
|
|
28508
|
-
* Start of this camera's OLDEST
|
|
28634
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
28509
28635
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
28510
28636
|
* only honest answer to "is retention actually holding?" per camera.
|
|
28511
28637
|
*
|
|
@@ -28515,7 +28641,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
28515
28641
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
28516
28642
|
* the later of the two.
|
|
28517
28643
|
*/
|
|
28518
|
-
oldestMs: number().nullable().optional()
|
|
28644
|
+
oldestMs: number().nullable().optional(),
|
|
28645
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28646
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28647
|
+
segments: number().optional(),
|
|
28648
|
+
/**
|
|
28649
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28650
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28651
|
+
*
|
|
28652
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28653
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28654
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28655
|
+
* it, and so does a node whose ledger could not answer.
|
|
28656
|
+
*/
|
|
28657
|
+
residentBytes: number().optional(),
|
|
28658
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28659
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28660
|
+
* retention. `null` = nothing resident. */
|
|
28661
|
+
residentOldestMs: number().nullable().optional()
|
|
28519
28662
|
});
|
|
28520
28663
|
/** Recording storage usage + capacity for one storage location. */
|
|
28521
28664
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28553,6 +28696,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28553
28696
|
totalUsedBytes: number(),
|
|
28554
28697
|
devices: array(RecordingDeviceUsageSchema),
|
|
28555
28698
|
/**
|
|
28699
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28700
|
+
* disks (D418).
|
|
28701
|
+
*
|
|
28702
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28703
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28704
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28705
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28706
|
+
* and its rows are residency.
|
|
28707
|
+
*/
|
|
28708
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28709
|
+
/**
|
|
28556
28710
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28557
28711
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28558
28712
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -34965,6 +35119,24 @@ Object.freeze({
|
|
|
34965
35119
|
addonId: null,
|
|
34966
35120
|
access: "view"
|
|
34967
35121
|
},
|
|
35122
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
35123
|
+
capName: "pipeline-runner",
|
|
35124
|
+
capScope: "system",
|
|
35125
|
+
addonId: null,
|
|
35126
|
+
access: "view"
|
|
35127
|
+
},
|
|
35128
|
+
"pipelineRunner.parkTrackFrame": {
|
|
35129
|
+
capName: "pipeline-runner",
|
|
35130
|
+
capScope: "system",
|
|
35131
|
+
addonId: null,
|
|
35132
|
+
access: "create"
|
|
35133
|
+
},
|
|
35134
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
35135
|
+
capName: "pipeline-runner",
|
|
35136
|
+
capScope: "system",
|
|
35137
|
+
addonId: null,
|
|
35138
|
+
access: "create"
|
|
35139
|
+
},
|
|
34968
35140
|
"pipelineRunner.reportMotion": {
|
|
34969
35141
|
capName: "pipeline-runner",
|
|
34970
35142
|
capScope: "system",
|
|
@@ -38242,6 +38414,21 @@ Object.freeze({
|
|
|
38242
38414
|
form: "single",
|
|
38243
38415
|
optional: false
|
|
38244
38416
|
}],
|
|
38417
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
38418
|
+
name: "deviceId",
|
|
38419
|
+
form: "single",
|
|
38420
|
+
optional: false
|
|
38421
|
+
}],
|
|
38422
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
38423
|
+
name: "deviceId",
|
|
38424
|
+
form: "single",
|
|
38425
|
+
optional: false
|
|
38426
|
+
}],
|
|
38427
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
38428
|
+
name: "deviceId",
|
|
38429
|
+
form: "single",
|
|
38430
|
+
optional: false
|
|
38431
|
+
}],
|
|
38245
38432
|
"pipelineRunner.reportMotion": [{
|
|
38246
38433
|
name: "deviceId",
|
|
38247
38434
|
form: "single",
|
|
@@ -38933,7 +39120,7 @@ var PreviewTextField = string().max(200);
|
|
|
38933
39120
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38934
39121
|
*
|
|
38935
39122
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38936
|
-
* rule)"* —
|
|
39123
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38937
39124
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38938
39125
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38939
39126
|
* 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-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.103",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|