@camstack/addon-export-alexa 1.2.96 → 1.2.99
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/export-alexa.addon.js +242 -18
- package/dist/export-alexa.addon.mjs +242 -18
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
//#endregion
|
|
27
27
|
let node_crypto = require("node:crypto");
|
|
28
28
|
node_crypto = __toESM(node_crypto);
|
|
29
|
-
//#region ../types/dist/event-category-
|
|
29
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
30
30
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
31
31
|
EventCategory["SystemBoot"] = "system.boot";
|
|
32
32
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -618,7 +618,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
618
618
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
619
619
|
*/
|
|
620
620
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
621
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
622
621
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
623
622
|
/**
|
|
624
623
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12793,7 +12792,7 @@ DeviceType.Camera;
|
|
|
12793
12792
|
var SourceInfoSchema = object({
|
|
12794
12793
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12795
12794
|
id: string(),
|
|
12796
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12795
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12797
12796
|
system: string(),
|
|
12798
12797
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12799
12798
|
* Used to detect rename when `id` changes. */
|
|
@@ -13305,7 +13304,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13305
13304
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13306
13305
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13307
13306
|
*
|
|
13308
|
-
* All device provider addons (rtsp, onvif,
|
|
13307
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13309
13308
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13310
13309
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13311
13310
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17315,7 +17314,7 @@ var NcRuleInputSchema = object({
|
|
|
17315
17314
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17316
17315
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17317
17316
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17318
|
-
* 30 is
|
|
17317
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17319
17318
|
*
|
|
17320
17319
|
* ### What it replaces
|
|
17321
17320
|
*
|
|
@@ -19373,6 +19372,13 @@ var ZoneCrossingSchema = object({
|
|
|
19373
19372
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19374
19373
|
zoneName: string().optional()
|
|
19375
19374
|
});
|
|
19375
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19376
|
+
var ZoneOverlapSchema = object({
|
|
19377
|
+
zoneId: string(),
|
|
19378
|
+
zoneName: string().optional(),
|
|
19379
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19380
|
+
overlapPct: number()
|
|
19381
|
+
});
|
|
19376
19382
|
var ObjectEventSchema = object({
|
|
19377
19383
|
...BaseEventFields,
|
|
19378
19384
|
kind: literal("object"),
|
|
@@ -19397,6 +19403,35 @@ var ObjectEventSchema = object({
|
|
|
19397
19403
|
bbox: BoundingBoxSchema.optional(),
|
|
19398
19404
|
/** Heavy JSON — omitted in slim projection. */
|
|
19399
19405
|
zones: array(string()).readonly().optional(),
|
|
19406
|
+
/**
|
|
19407
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19408
|
+
* the BOX area.
|
|
19409
|
+
*
|
|
19410
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19411
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19412
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19413
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19414
|
+
* else to judge by.
|
|
19415
|
+
*/
|
|
19416
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19417
|
+
/**
|
|
19418
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19419
|
+
* has no track and never will.
|
|
19420
|
+
*
|
|
19421
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19422
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19423
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19424
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19425
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19426
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19427
|
+
* event at all.
|
|
19428
|
+
*
|
|
19429
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19430
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19431
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19432
|
+
* history is asking for something that never existed.
|
|
19433
|
+
*/
|
|
19434
|
+
spawnRefused: string().optional(),
|
|
19400
19435
|
/** Omitted in slim projection. */
|
|
19401
19436
|
state: TrackStateSchema.optional(),
|
|
19402
19437
|
/**
|
|
@@ -19823,7 +19858,17 @@ var EventDensityBucketSchema = object({
|
|
|
19823
19858
|
bucketStart: number(),
|
|
19824
19859
|
motion: number().int(),
|
|
19825
19860
|
object: number().int(),
|
|
19826
|
-
audio: number().int()
|
|
19861
|
+
audio: number().int(),
|
|
19862
|
+
/**
|
|
19863
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19864
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19865
|
+
*
|
|
19866
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19867
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19868
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19869
|
+
* the count-on-a-level-meter did.
|
|
19870
|
+
*/
|
|
19871
|
+
audioDbfs: number().optional()
|
|
19827
19872
|
});
|
|
19828
19873
|
/**
|
|
19829
19874
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20470,6 +20515,60 @@ var NativeCropResultSchema = object({
|
|
|
20470
20515
|
*/
|
|
20471
20516
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20472
20517
|
});
|
|
20518
|
+
/**
|
|
20519
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20520
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20521
|
+
*
|
|
20522
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20523
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20524
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20525
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20526
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20527
|
+
*
|
|
20528
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20529
|
+
*/
|
|
20530
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20531
|
+
/**
|
|
20532
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20533
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20534
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20535
|
+
* never a reason to retry in a loop.
|
|
20536
|
+
*
|
|
20537
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20538
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20539
|
+
* carries the runner's own miss reason.
|
|
20540
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20541
|
+
*/
|
|
20542
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20543
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20544
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20545
|
+
parked: literal(true),
|
|
20546
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20547
|
+
nodeId: string(),
|
|
20548
|
+
width: number().int().positive(),
|
|
20549
|
+
height: number().int().positive(),
|
|
20550
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20551
|
+
bytes: number().int().nonnegative(),
|
|
20552
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20553
|
+
replaced: boolean()
|
|
20554
|
+
}), object({
|
|
20555
|
+
parked: literal(false),
|
|
20556
|
+
nodeId: string(),
|
|
20557
|
+
reason: ParkRefusalSchema,
|
|
20558
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20559
|
+
handleAgeMs: number().nullable(),
|
|
20560
|
+
detail: string().optional()
|
|
20561
|
+
})]);
|
|
20562
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20563
|
+
var ParkedTrackFrameSchema = object({
|
|
20564
|
+
jpeg: string(),
|
|
20565
|
+
width: number().int().positive(),
|
|
20566
|
+
height: number().int().positive(),
|
|
20567
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20568
|
+
timestamp: number(),
|
|
20569
|
+
/** When the node stored it (the node's clock). */
|
|
20570
|
+
parkedAt: number()
|
|
20571
|
+
});
|
|
20473
20572
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20474
20573
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20475
20574
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20859,7 +20958,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20859
20958
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20860
20959
|
* analyzer providers) running on decoded frames in this runner.
|
|
20861
20960
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20862
|
-
* analytics
|
|
20961
|
+
* analytics). The provider emits ProviderMotion
|
|
20863
20962
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20864
20963
|
*/
|
|
20865
20964
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21101,7 +21200,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21101
21200
|
className: string(),
|
|
21102
21201
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21103
21202
|
sourceDeviceId: number()
|
|
21104
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21203
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21204
|
+
deviceId: number(),
|
|
21205
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21206
|
+
trackId: string(),
|
|
21207
|
+
kind: ParkedFrameKindSchema,
|
|
21208
|
+
handle: FrameHandleSchema,
|
|
21209
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21210
|
+
bbox: NativeCropBboxSchema,
|
|
21211
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21212
|
+
maxWidth: number().int().positive().optional(),
|
|
21213
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21214
|
+
timestamp: number()
|
|
21215
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21216
|
+
deviceId: number(),
|
|
21217
|
+
trackId: string(),
|
|
21218
|
+
kind: ParkedFrameKindSchema
|
|
21219
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21220
|
+
deviceId: number(),
|
|
21221
|
+
trackId: string()
|
|
21222
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21105
21223
|
var CameraPipelineConfigSchema = object({
|
|
21106
21224
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21107
21225
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24030,7 +24148,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24030
24148
|
*
|
|
24031
24149
|
* Implementations:
|
|
24032
24150
|
* - Each camera-providing addon registers this cap natively per
|
|
24033
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24151
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24034
24152
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24035
24153
|
* extra round-trip to the camera, no probing.
|
|
24036
24154
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25416,7 +25534,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25416
25534
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25417
25535
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25418
25536
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25419
|
-
* `device-provider` integrations (Reolink/
|
|
25537
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25420
25538
|
* legacy config → discovery flow.
|
|
25421
25539
|
*/
|
|
25422
25540
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27917,7 +28035,23 @@ var RecordingRangeSchema = object({
|
|
|
27917
28035
|
});
|
|
27918
28036
|
var RecordingAvailabilitySchema = object({
|
|
27919
28037
|
deviceId: number(),
|
|
27920
|
-
ranges: array(RecordingRangeSchema)
|
|
28038
|
+
ranges: array(RecordingRangeSchema),
|
|
28039
|
+
/**
|
|
28040
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28041
|
+
* describes (D433).
|
|
28042
|
+
*
|
|
28043
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28044
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28045
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28046
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28047
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28048
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28049
|
+
* UI could not see it.
|
|
28050
|
+
*
|
|
28051
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28052
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28053
|
+
*/
|
|
28054
|
+
profilesWithFootage: array(string())
|
|
27921
28055
|
});
|
|
27922
28056
|
var RecordingDaysSchema = object({
|
|
27923
28057
|
deviceId: number(),
|
|
@@ -27943,7 +28077,11 @@ var RecordingDaysSchema = object({
|
|
|
27943
28077
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27944
28078
|
deviceId: number(),
|
|
27945
28079
|
read: _enum(["read", "unreadable"]),
|
|
27946
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28080
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28081
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28082
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28083
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28084
|
+
profilesWithFootage: array(string()).readonly()
|
|
27947
28085
|
});
|
|
27948
28086
|
/**
|
|
27949
28087
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27973,13 +28111,31 @@ var RecordingManifestSchema = object({
|
|
|
27973
28111
|
*/
|
|
27974
28112
|
playbackEndpoints: array(string())
|
|
27975
28113
|
});
|
|
27976
|
-
/**
|
|
27977
|
-
*
|
|
28114
|
+
/**
|
|
28115
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28116
|
+
* across every profile and every resolvable location on this node.
|
|
28117
|
+
*
|
|
28118
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28119
|
+
*
|
|
28120
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28121
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28122
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28123
|
+
*
|
|
28124
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28125
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28126
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28127
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28128
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28129
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28130
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28131
|
+
*/
|
|
27978
28132
|
var RecordingDeviceUsageSchema = object({
|
|
27979
28133
|
deviceId: number(),
|
|
28134
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28135
|
+
* recordings locations. */
|
|
27980
28136
|
usedBytes: number(),
|
|
27981
28137
|
/**
|
|
27982
|
-
* Start of this camera's OLDEST
|
|
28138
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27983
28139
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27984
28140
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27985
28141
|
*
|
|
@@ -27989,7 +28145,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27989
28145
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27990
28146
|
* the later of the two.
|
|
27991
28147
|
*/
|
|
27992
|
-
oldestMs: number().nullable().optional()
|
|
28148
|
+
oldestMs: number().nullable().optional(),
|
|
28149
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28150
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28151
|
+
segments: number().optional(),
|
|
28152
|
+
/**
|
|
28153
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28154
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28155
|
+
*
|
|
28156
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28157
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28158
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28159
|
+
* it, and so does a node whose ledger could not answer.
|
|
28160
|
+
*/
|
|
28161
|
+
residentBytes: number().optional(),
|
|
28162
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28163
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28164
|
+
* retention. `null` = nothing resident. */
|
|
28165
|
+
residentOldestMs: number().nullable().optional()
|
|
27993
28166
|
});
|
|
27994
28167
|
/** Recording storage usage + capacity for one storage location. */
|
|
27995
28168
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28027,6 +28200,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28027
28200
|
totalUsedBytes: number(),
|
|
28028
28201
|
devices: array(RecordingDeviceUsageSchema),
|
|
28029
28202
|
/**
|
|
28203
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28204
|
+
* disks (D418).
|
|
28205
|
+
*
|
|
28206
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28207
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28208
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28209
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28210
|
+
* and its rows are residency.
|
|
28211
|
+
*/
|
|
28212
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28213
|
+
/**
|
|
28030
28214
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28031
28215
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28032
28216
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28187,7 +28371,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28187
28371
|
method(object({
|
|
28188
28372
|
deviceId: number(),
|
|
28189
28373
|
fromMs: number(),
|
|
28190
|
-
toMs: number()
|
|
28374
|
+
toMs: number(),
|
|
28375
|
+
/**
|
|
28376
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28377
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28378
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28379
|
+
* for.
|
|
28380
|
+
*/
|
|
28381
|
+
profile: string().optional()
|
|
28191
28382
|
}), RecordingAvailabilitySchema, {
|
|
28192
28383
|
kind: "query",
|
|
28193
28384
|
auth: "protected"
|
|
@@ -34414,6 +34605,24 @@ Object.freeze({
|
|
|
34414
34605
|
addonId: null,
|
|
34415
34606
|
access: "view"
|
|
34416
34607
|
},
|
|
34608
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34609
|
+
capName: "pipeline-runner",
|
|
34610
|
+
capScope: "system",
|
|
34611
|
+
addonId: null,
|
|
34612
|
+
access: "view"
|
|
34613
|
+
},
|
|
34614
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34615
|
+
capName: "pipeline-runner",
|
|
34616
|
+
capScope: "system",
|
|
34617
|
+
addonId: null,
|
|
34618
|
+
access: "create"
|
|
34619
|
+
},
|
|
34620
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34621
|
+
capName: "pipeline-runner",
|
|
34622
|
+
capScope: "system",
|
|
34623
|
+
addonId: null,
|
|
34624
|
+
access: "create"
|
|
34625
|
+
},
|
|
34417
34626
|
"pipelineRunner.reportMotion": {
|
|
34418
34627
|
capName: "pipeline-runner",
|
|
34419
34628
|
capScope: "system",
|
|
@@ -37691,6 +37900,21 @@ Object.freeze({
|
|
|
37691
37900
|
form: "single",
|
|
37692
37901
|
optional: false
|
|
37693
37902
|
}],
|
|
37903
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37904
|
+
name: "deviceId",
|
|
37905
|
+
form: "single",
|
|
37906
|
+
optional: false
|
|
37907
|
+
}],
|
|
37908
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37909
|
+
name: "deviceId",
|
|
37910
|
+
form: "single",
|
|
37911
|
+
optional: false
|
|
37912
|
+
}],
|
|
37913
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37914
|
+
name: "deviceId",
|
|
37915
|
+
form: "single",
|
|
37916
|
+
optional: false
|
|
37917
|
+
}],
|
|
37694
37918
|
"pipelineRunner.reportMotion": [{
|
|
37695
37919
|
name: "deviceId",
|
|
37696
37920
|
form: "single",
|
|
@@ -38382,7 +38606,7 @@ var PreviewTextField = string().max(200);
|
|
|
38382
38606
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38383
38607
|
*
|
|
38384
38608
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38385
|
-
* rule)"* —
|
|
38609
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38386
38610
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38387
38611
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38388
38612
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as crypto$1 from "node:crypto";
|
|
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.
|
|
@@ -12766,7 +12765,7 @@ DeviceType.Camera;
|
|
|
12766
12765
|
var SourceInfoSchema = object({
|
|
12767
12766
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12768
12767
|
id: string(),
|
|
12769
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12768
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12770
12769
|
system: string(),
|
|
12771
12770
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12772
12771
|
* Used to detect rename when `id` changes. */
|
|
@@ -13278,7 +13277,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13278
13277
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13279
13278
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13280
13279
|
*
|
|
13281
|
-
* All device provider addons (rtsp, onvif,
|
|
13280
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13282
13281
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13283
13282
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13284
13283
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17288,7 +17287,7 @@ var NcRuleInputSchema = object({
|
|
|
17288
17287
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17289
17288
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17290
17289
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17291
|
-
* 30 is
|
|
17290
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17292
17291
|
*
|
|
17293
17292
|
* ### What it replaces
|
|
17294
17293
|
*
|
|
@@ -19346,6 +19345,13 @@ var ZoneCrossingSchema = object({
|
|
|
19346
19345
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19347
19346
|
zoneName: string().optional()
|
|
19348
19347
|
});
|
|
19348
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19349
|
+
var ZoneOverlapSchema = object({
|
|
19350
|
+
zoneId: string(),
|
|
19351
|
+
zoneName: string().optional(),
|
|
19352
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19353
|
+
overlapPct: number()
|
|
19354
|
+
});
|
|
19349
19355
|
var ObjectEventSchema = object({
|
|
19350
19356
|
...BaseEventFields,
|
|
19351
19357
|
kind: literal("object"),
|
|
@@ -19370,6 +19376,35 @@ var ObjectEventSchema = object({
|
|
|
19370
19376
|
bbox: BoundingBoxSchema.optional(),
|
|
19371
19377
|
/** Heavy JSON — omitted in slim projection. */
|
|
19372
19378
|
zones: array(string()).readonly().optional(),
|
|
19379
|
+
/**
|
|
19380
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19381
|
+
* the BOX area.
|
|
19382
|
+
*
|
|
19383
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19384
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19385
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19386
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19387
|
+
* else to judge by.
|
|
19388
|
+
*/
|
|
19389
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19390
|
+
/**
|
|
19391
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19392
|
+
* has no track and never will.
|
|
19393
|
+
*
|
|
19394
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19395
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19396
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19397
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19398
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19399
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19400
|
+
* event at all.
|
|
19401
|
+
*
|
|
19402
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19403
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19404
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19405
|
+
* history is asking for something that never existed.
|
|
19406
|
+
*/
|
|
19407
|
+
spawnRefused: string().optional(),
|
|
19373
19408
|
/** Omitted in slim projection. */
|
|
19374
19409
|
state: TrackStateSchema.optional(),
|
|
19375
19410
|
/**
|
|
@@ -19796,7 +19831,17 @@ var EventDensityBucketSchema = object({
|
|
|
19796
19831
|
bucketStart: number(),
|
|
19797
19832
|
motion: number().int(),
|
|
19798
19833
|
object: number().int(),
|
|
19799
|
-
audio: number().int()
|
|
19834
|
+
audio: number().int(),
|
|
19835
|
+
/**
|
|
19836
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19837
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19838
|
+
*
|
|
19839
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19840
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19841
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19842
|
+
* the count-on-a-level-meter did.
|
|
19843
|
+
*/
|
|
19844
|
+
audioDbfs: number().optional()
|
|
19800
19845
|
});
|
|
19801
19846
|
/**
|
|
19802
19847
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20443,6 +20488,60 @@ var NativeCropResultSchema = object({
|
|
|
20443
20488
|
*/
|
|
20444
20489
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20445
20490
|
});
|
|
20491
|
+
/**
|
|
20492
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20493
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20494
|
+
*
|
|
20495
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20496
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20497
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20498
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20499
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20500
|
+
*
|
|
20501
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20502
|
+
*/
|
|
20503
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20504
|
+
/**
|
|
20505
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20506
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20507
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20508
|
+
* never a reason to retry in a loop.
|
|
20509
|
+
*
|
|
20510
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20511
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20512
|
+
* carries the runner's own miss reason.
|
|
20513
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20514
|
+
*/
|
|
20515
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20516
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20517
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20518
|
+
parked: literal(true),
|
|
20519
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20520
|
+
nodeId: string(),
|
|
20521
|
+
width: number().int().positive(),
|
|
20522
|
+
height: number().int().positive(),
|
|
20523
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20524
|
+
bytes: number().int().nonnegative(),
|
|
20525
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20526
|
+
replaced: boolean()
|
|
20527
|
+
}), object({
|
|
20528
|
+
parked: literal(false),
|
|
20529
|
+
nodeId: string(),
|
|
20530
|
+
reason: ParkRefusalSchema,
|
|
20531
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20532
|
+
handleAgeMs: number().nullable(),
|
|
20533
|
+
detail: string().optional()
|
|
20534
|
+
})]);
|
|
20535
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20536
|
+
var ParkedTrackFrameSchema = object({
|
|
20537
|
+
jpeg: string(),
|
|
20538
|
+
width: number().int().positive(),
|
|
20539
|
+
height: number().int().positive(),
|
|
20540
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20541
|
+
timestamp: number(),
|
|
20542
|
+
/** When the node stored it (the node's clock). */
|
|
20543
|
+
parkedAt: number()
|
|
20544
|
+
});
|
|
20446
20545
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20447
20546
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20448
20547
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20832,7 +20931,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20832
20931
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20833
20932
|
* analyzer providers) running on decoded frames in this runner.
|
|
20834
20933
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20835
|
-
* analytics
|
|
20934
|
+
* analytics). The provider emits ProviderMotion
|
|
20836
20935
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20837
20936
|
*/
|
|
20838
20937
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21074,7 +21173,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21074
21173
|
className: string(),
|
|
21075
21174
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21076
21175
|
sourceDeviceId: number()
|
|
21077
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21176
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21177
|
+
deviceId: number(),
|
|
21178
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21179
|
+
trackId: string(),
|
|
21180
|
+
kind: ParkedFrameKindSchema,
|
|
21181
|
+
handle: FrameHandleSchema,
|
|
21182
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21183
|
+
bbox: NativeCropBboxSchema,
|
|
21184
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21185
|
+
maxWidth: number().int().positive().optional(),
|
|
21186
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21187
|
+
timestamp: number()
|
|
21188
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21189
|
+
deviceId: number(),
|
|
21190
|
+
trackId: string(),
|
|
21191
|
+
kind: ParkedFrameKindSchema
|
|
21192
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21193
|
+
deviceId: number(),
|
|
21194
|
+
trackId: string()
|
|
21195
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21078
21196
|
var CameraPipelineConfigSchema = object({
|
|
21079
21197
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21080
21198
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24003,7 +24121,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24003
24121
|
*
|
|
24004
24122
|
* Implementations:
|
|
24005
24123
|
* - Each camera-providing addon registers this cap natively per
|
|
24006
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24124
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24007
24125
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24008
24126
|
* extra round-trip to the camera, no probing.
|
|
24009
24127
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25389,7 +25507,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25389
25507
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25390
25508
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25391
25509
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25392
|
-
* `device-provider` integrations (Reolink/
|
|
25510
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25393
25511
|
* legacy config → discovery flow.
|
|
25394
25512
|
*/
|
|
25395
25513
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27890,7 +28008,23 @@ var RecordingRangeSchema = object({
|
|
|
27890
28008
|
});
|
|
27891
28009
|
var RecordingAvailabilitySchema = object({
|
|
27892
28010
|
deviceId: number(),
|
|
27893
|
-
ranges: array(RecordingRangeSchema)
|
|
28011
|
+
ranges: array(RecordingRangeSchema),
|
|
28012
|
+
/**
|
|
28013
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28014
|
+
* describes (D433).
|
|
28015
|
+
*
|
|
28016
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28017
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28018
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28019
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28020
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28021
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28022
|
+
* UI could not see it.
|
|
28023
|
+
*
|
|
28024
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28025
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28026
|
+
*/
|
|
28027
|
+
profilesWithFootage: array(string())
|
|
27894
28028
|
});
|
|
27895
28029
|
var RecordingDaysSchema = object({
|
|
27896
28030
|
deviceId: number(),
|
|
@@ -27916,7 +28050,11 @@ var RecordingDaysSchema = object({
|
|
|
27916
28050
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27917
28051
|
deviceId: number(),
|
|
27918
28052
|
read: _enum(["read", "unreadable"]),
|
|
27919
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28053
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28054
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28055
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28056
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28057
|
+
profilesWithFootage: array(string()).readonly()
|
|
27920
28058
|
});
|
|
27921
28059
|
/**
|
|
27922
28060
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27946,13 +28084,31 @@ var RecordingManifestSchema = object({
|
|
|
27946
28084
|
*/
|
|
27947
28085
|
playbackEndpoints: array(string())
|
|
27948
28086
|
});
|
|
27949
|
-
/**
|
|
27950
|
-
*
|
|
28087
|
+
/**
|
|
28088
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28089
|
+
* across every profile and every resolvable location on this node.
|
|
28090
|
+
*
|
|
28091
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28092
|
+
*
|
|
28093
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28094
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28095
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28096
|
+
*
|
|
28097
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28098
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28099
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28100
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28101
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28102
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28103
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28104
|
+
*/
|
|
27951
28105
|
var RecordingDeviceUsageSchema = object({
|
|
27952
28106
|
deviceId: number(),
|
|
28107
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28108
|
+
* recordings locations. */
|
|
27953
28109
|
usedBytes: number(),
|
|
27954
28110
|
/**
|
|
27955
|
-
* Start of this camera's OLDEST
|
|
28111
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27956
28112
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27957
28113
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27958
28114
|
*
|
|
@@ -27962,7 +28118,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27962
28118
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27963
28119
|
* the later of the two.
|
|
27964
28120
|
*/
|
|
27965
|
-
oldestMs: number().nullable().optional()
|
|
28121
|
+
oldestMs: number().nullable().optional(),
|
|
28122
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28123
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28124
|
+
segments: number().optional(),
|
|
28125
|
+
/**
|
|
28126
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28127
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28128
|
+
*
|
|
28129
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28130
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28131
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28132
|
+
* it, and so does a node whose ledger could not answer.
|
|
28133
|
+
*/
|
|
28134
|
+
residentBytes: number().optional(),
|
|
28135
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28136
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28137
|
+
* retention. `null` = nothing resident. */
|
|
28138
|
+
residentOldestMs: number().nullable().optional()
|
|
27966
28139
|
});
|
|
27967
28140
|
/** Recording storage usage + capacity for one storage location. */
|
|
27968
28141
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28000,6 +28173,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28000
28173
|
totalUsedBytes: number(),
|
|
28001
28174
|
devices: array(RecordingDeviceUsageSchema),
|
|
28002
28175
|
/**
|
|
28176
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28177
|
+
* disks (D418).
|
|
28178
|
+
*
|
|
28179
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28180
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28181
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28182
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28183
|
+
* and its rows are residency.
|
|
28184
|
+
*/
|
|
28185
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28186
|
+
/**
|
|
28003
28187
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28004
28188
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28005
28189
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28160,7 +28344,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28160
28344
|
method(object({
|
|
28161
28345
|
deviceId: number(),
|
|
28162
28346
|
fromMs: number(),
|
|
28163
|
-
toMs: number()
|
|
28347
|
+
toMs: number(),
|
|
28348
|
+
/**
|
|
28349
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28350
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28351
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28352
|
+
* for.
|
|
28353
|
+
*/
|
|
28354
|
+
profile: string().optional()
|
|
28164
28355
|
}), RecordingAvailabilitySchema, {
|
|
28165
28356
|
kind: "query",
|
|
28166
28357
|
auth: "protected"
|
|
@@ -34387,6 +34578,24 @@ Object.freeze({
|
|
|
34387
34578
|
addonId: null,
|
|
34388
34579
|
access: "view"
|
|
34389
34580
|
},
|
|
34581
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34582
|
+
capName: "pipeline-runner",
|
|
34583
|
+
capScope: "system",
|
|
34584
|
+
addonId: null,
|
|
34585
|
+
access: "view"
|
|
34586
|
+
},
|
|
34587
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34588
|
+
capName: "pipeline-runner",
|
|
34589
|
+
capScope: "system",
|
|
34590
|
+
addonId: null,
|
|
34591
|
+
access: "create"
|
|
34592
|
+
},
|
|
34593
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34594
|
+
capName: "pipeline-runner",
|
|
34595
|
+
capScope: "system",
|
|
34596
|
+
addonId: null,
|
|
34597
|
+
access: "create"
|
|
34598
|
+
},
|
|
34390
34599
|
"pipelineRunner.reportMotion": {
|
|
34391
34600
|
capName: "pipeline-runner",
|
|
34392
34601
|
capScope: "system",
|
|
@@ -37664,6 +37873,21 @@ Object.freeze({
|
|
|
37664
37873
|
form: "single",
|
|
37665
37874
|
optional: false
|
|
37666
37875
|
}],
|
|
37876
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37877
|
+
name: "deviceId",
|
|
37878
|
+
form: "single",
|
|
37879
|
+
optional: false
|
|
37880
|
+
}],
|
|
37881
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37882
|
+
name: "deviceId",
|
|
37883
|
+
form: "single",
|
|
37884
|
+
optional: false
|
|
37885
|
+
}],
|
|
37886
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37887
|
+
name: "deviceId",
|
|
37888
|
+
form: "single",
|
|
37889
|
+
optional: false
|
|
37890
|
+
}],
|
|
37667
37891
|
"pipelineRunner.reportMotion": [{
|
|
37668
37892
|
name: "deviceId",
|
|
37669
37893
|
form: "single",
|
|
@@ -38355,7 +38579,7 @@ var PreviewTextField = string().max(200);
|
|
|
38355
38579
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38356
38580
|
*
|
|
38357
38581
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38358
|
-
* rule)"* —
|
|
38582
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38359
38583
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38360
38584
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38361
38585
|
* 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-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.99",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|