@camstack/addon-import-alexa 0.2.89 → 0.2.92
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
|
@@ -38,7 +38,7 @@ let node_os = require("node:os");
|
|
|
38
38
|
let node_fs = require("node:fs");
|
|
39
39
|
let node_path = require("node:path");
|
|
40
40
|
node_path = __toESM(node_path);
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -630,7 +630,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
630
630
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
631
631
|
*/
|
|
632
632
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
633
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
634
633
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
635
634
|
/**
|
|
636
635
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12851,7 +12850,7 @@ DeviceType.Camera;
|
|
|
12851
12850
|
var SourceInfoSchema = object({
|
|
12852
12851
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12853
12852
|
id: string(),
|
|
12854
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12853
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12855
12854
|
system: string(),
|
|
12856
12855
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12857
12856
|
* Used to detect rename when `id` changes. */
|
|
@@ -12864,7 +12863,7 @@ var SourceInfoSchema = object({
|
|
|
12864
12863
|
/**
|
|
12865
12864
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12866
12865
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12867
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12866
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12868
12867
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12869
12868
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12870
12869
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13543,7 +13542,7 @@ var deviceProviderCapability = {
|
|
|
13543
13542
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13544
13543
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13545
13544
|
*
|
|
13546
|
-
* All device provider addons (rtsp, onvif,
|
|
13545
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13547
13546
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13548
13547
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13549
13548
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17591,7 +17590,7 @@ var NcRuleInputSchema = object({
|
|
|
17591
17590
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17592
17591
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17593
17592
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17594
|
-
* 30 is
|
|
17593
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17595
17594
|
*
|
|
17596
17595
|
* ### What it replaces
|
|
17597
17596
|
*
|
|
@@ -19673,6 +19672,13 @@ var ZoneCrossingSchema = object({
|
|
|
19673
19672
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19674
19673
|
zoneName: string().optional()
|
|
19675
19674
|
});
|
|
19675
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19676
|
+
var ZoneOverlapSchema = object({
|
|
19677
|
+
zoneId: string(),
|
|
19678
|
+
zoneName: string().optional(),
|
|
19679
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19680
|
+
overlapPct: number()
|
|
19681
|
+
});
|
|
19676
19682
|
var ObjectEventSchema = object({
|
|
19677
19683
|
...BaseEventFields,
|
|
19678
19684
|
kind: literal("object"),
|
|
@@ -19697,6 +19703,35 @@ var ObjectEventSchema = object({
|
|
|
19697
19703
|
bbox: BoundingBoxSchema.optional(),
|
|
19698
19704
|
/** Heavy JSON — omitted in slim projection. */
|
|
19699
19705
|
zones: array(string()).readonly().optional(),
|
|
19706
|
+
/**
|
|
19707
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19708
|
+
* the BOX area.
|
|
19709
|
+
*
|
|
19710
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19711
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19712
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19713
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19714
|
+
* else to judge by.
|
|
19715
|
+
*/
|
|
19716
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19717
|
+
/**
|
|
19718
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19719
|
+
* has no track and never will.
|
|
19720
|
+
*
|
|
19721
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19722
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19723
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19724
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19725
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19726
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19727
|
+
* event at all.
|
|
19728
|
+
*
|
|
19729
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19730
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19731
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19732
|
+
* history is asking for something that never existed.
|
|
19733
|
+
*/
|
|
19734
|
+
spawnRefused: string().optional(),
|
|
19700
19735
|
/** Omitted in slim projection. */
|
|
19701
19736
|
state: TrackStateSchema.optional(),
|
|
19702
19737
|
/**
|
|
@@ -20123,7 +20158,17 @@ var EventDensityBucketSchema = object({
|
|
|
20123
20158
|
bucketStart: number(),
|
|
20124
20159
|
motion: number().int(),
|
|
20125
20160
|
object: number().int(),
|
|
20126
|
-
audio: number().int()
|
|
20161
|
+
audio: number().int(),
|
|
20162
|
+
/**
|
|
20163
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20164
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20165
|
+
*
|
|
20166
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20167
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20168
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20169
|
+
* the count-on-a-level-meter did.
|
|
20170
|
+
*/
|
|
20171
|
+
audioDbfs: number().optional()
|
|
20127
20172
|
});
|
|
20128
20173
|
/**
|
|
20129
20174
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20770,6 +20815,60 @@ var NativeCropResultSchema = object({
|
|
|
20770
20815
|
*/
|
|
20771
20816
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20772
20817
|
});
|
|
20818
|
+
/**
|
|
20819
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20820
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20821
|
+
*
|
|
20822
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20823
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20824
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20825
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20826
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20827
|
+
*
|
|
20828
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20829
|
+
*/
|
|
20830
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20831
|
+
/**
|
|
20832
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20833
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20834
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20835
|
+
* never a reason to retry in a loop.
|
|
20836
|
+
*
|
|
20837
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20838
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20839
|
+
* carries the runner's own miss reason.
|
|
20840
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20841
|
+
*/
|
|
20842
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20843
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20844
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20845
|
+
parked: literal(true),
|
|
20846
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20847
|
+
nodeId: string(),
|
|
20848
|
+
width: number().int().positive(),
|
|
20849
|
+
height: number().int().positive(),
|
|
20850
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20851
|
+
bytes: number().int().nonnegative(),
|
|
20852
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20853
|
+
replaced: boolean()
|
|
20854
|
+
}), object({
|
|
20855
|
+
parked: literal(false),
|
|
20856
|
+
nodeId: string(),
|
|
20857
|
+
reason: ParkRefusalSchema,
|
|
20858
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20859
|
+
handleAgeMs: number().nullable(),
|
|
20860
|
+
detail: string().optional()
|
|
20861
|
+
})]);
|
|
20862
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20863
|
+
var ParkedTrackFrameSchema = object({
|
|
20864
|
+
jpeg: string(),
|
|
20865
|
+
width: number().int().positive(),
|
|
20866
|
+
height: number().int().positive(),
|
|
20867
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20868
|
+
timestamp: number(),
|
|
20869
|
+
/** When the node stored it (the node's clock). */
|
|
20870
|
+
parkedAt: number()
|
|
20871
|
+
});
|
|
20773
20872
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20774
20873
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20775
20874
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21159,7 +21258,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21159
21258
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21160
21259
|
* analyzer providers) running on decoded frames in this runner.
|
|
21161
21260
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21162
|
-
* analytics
|
|
21261
|
+
* analytics). The provider emits ProviderMotion
|
|
21163
21262
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21164
21263
|
*/
|
|
21165
21264
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21401,7 +21500,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21401
21500
|
className: string(),
|
|
21402
21501
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21403
21502
|
sourceDeviceId: number()
|
|
21404
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21503
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21504
|
+
deviceId: number(),
|
|
21505
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21506
|
+
trackId: string(),
|
|
21507
|
+
kind: ParkedFrameKindSchema,
|
|
21508
|
+
handle: FrameHandleSchema,
|
|
21509
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21510
|
+
bbox: NativeCropBboxSchema,
|
|
21511
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21512
|
+
maxWidth: number().int().positive().optional(),
|
|
21513
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21514
|
+
timestamp: number()
|
|
21515
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21516
|
+
deviceId: number(),
|
|
21517
|
+
trackId: string(),
|
|
21518
|
+
kind: ParkedFrameKindSchema
|
|
21519
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21520
|
+
deviceId: number(),
|
|
21521
|
+
trackId: string()
|
|
21522
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21405
21523
|
var CameraPipelineConfigSchema = object({
|
|
21406
21524
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21407
21525
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24471,8 +24589,8 @@ onStatusChanged: { data: object({
|
|
|
24471
24589
|
/**
|
|
24472
24590
|
* Runtime-state slice — every provider that registers this cap
|
|
24473
24591
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24474
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24475
|
-
*
|
|
24592
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24593
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24476
24594
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24477
24595
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24478
24596
|
* the underlying driver.
|
|
@@ -24622,7 +24740,7 @@ var buttonCapability = {
|
|
|
24622
24740
|
*
|
|
24623
24741
|
* Implementations:
|
|
24624
24742
|
* - Each camera-providing addon registers this cap natively per
|
|
24625
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24743
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24626
24744
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24627
24745
|
* extra round-trip to the camera, no probing.
|
|
24628
24746
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26714,7 +26832,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26714
26832
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26715
26833
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26716
26834
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26717
|
-
* `device-provider` integrations (Reolink/
|
|
26835
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26718
26836
|
* legacy config → discovery flow.
|
|
26719
26837
|
*/
|
|
26720
26838
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30082,7 +30200,23 @@ var RecordingRangeSchema = object({
|
|
|
30082
30200
|
});
|
|
30083
30201
|
var RecordingAvailabilitySchema = object({
|
|
30084
30202
|
deviceId: number(),
|
|
30085
|
-
ranges: array(RecordingRangeSchema)
|
|
30203
|
+
ranges: array(RecordingRangeSchema),
|
|
30204
|
+
/**
|
|
30205
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30206
|
+
* describes (D433).
|
|
30207
|
+
*
|
|
30208
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30209
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30210
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30211
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30212
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30213
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30214
|
+
* UI could not see it.
|
|
30215
|
+
*
|
|
30216
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30217
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30218
|
+
*/
|
|
30219
|
+
profilesWithFootage: array(string())
|
|
30086
30220
|
});
|
|
30087
30221
|
var RecordingDaysSchema = object({
|
|
30088
30222
|
deviceId: number(),
|
|
@@ -30108,7 +30242,11 @@ var RecordingDaysSchema = object({
|
|
|
30108
30242
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30109
30243
|
deviceId: number(),
|
|
30110
30244
|
read: _enum(["read", "unreadable"]),
|
|
30111
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30245
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30246
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30247
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30248
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30249
|
+
profilesWithFootage: array(string()).readonly()
|
|
30112
30250
|
});
|
|
30113
30251
|
/**
|
|
30114
30252
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30138,13 +30276,31 @@ var RecordingManifestSchema = object({
|
|
|
30138
30276
|
*/
|
|
30139
30277
|
playbackEndpoints: array(string())
|
|
30140
30278
|
});
|
|
30141
|
-
/**
|
|
30142
|
-
*
|
|
30279
|
+
/**
|
|
30280
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30281
|
+
* across every profile and every resolvable location on this node.
|
|
30282
|
+
*
|
|
30283
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30284
|
+
*
|
|
30285
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30286
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30287
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30288
|
+
*
|
|
30289
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30290
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30291
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30292
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30293
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30294
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30295
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30296
|
+
*/
|
|
30143
30297
|
var RecordingDeviceUsageSchema = object({
|
|
30144
30298
|
deviceId: number(),
|
|
30299
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30300
|
+
* recordings locations. */
|
|
30145
30301
|
usedBytes: number(),
|
|
30146
30302
|
/**
|
|
30147
|
-
* Start of this camera's OLDEST
|
|
30303
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30148
30304
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30149
30305
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30150
30306
|
*
|
|
@@ -30154,7 +30310,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30154
30310
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30155
30311
|
* the later of the two.
|
|
30156
30312
|
*/
|
|
30157
|
-
oldestMs: number().nullable().optional()
|
|
30313
|
+
oldestMs: number().nullable().optional(),
|
|
30314
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30315
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30316
|
+
segments: number().optional(),
|
|
30317
|
+
/**
|
|
30318
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30319
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30320
|
+
*
|
|
30321
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30322
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30323
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30324
|
+
* it, and so does a node whose ledger could not answer.
|
|
30325
|
+
*/
|
|
30326
|
+
residentBytes: number().optional(),
|
|
30327
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30328
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30329
|
+
* retention. `null` = nothing resident. */
|
|
30330
|
+
residentOldestMs: number().nullable().optional()
|
|
30158
30331
|
});
|
|
30159
30332
|
/** Recording storage usage + capacity for one storage location. */
|
|
30160
30333
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30192,6 +30365,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30192
30365
|
totalUsedBytes: number(),
|
|
30193
30366
|
devices: array(RecordingDeviceUsageSchema),
|
|
30194
30367
|
/**
|
|
30368
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30369
|
+
* disks (D418).
|
|
30370
|
+
*
|
|
30371
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30372
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30373
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30374
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30375
|
+
* and its rows are residency.
|
|
30376
|
+
*/
|
|
30377
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30378
|
+
/**
|
|
30195
30379
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30196
30380
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30197
30381
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30352,7 +30536,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30352
30536
|
method(object({
|
|
30353
30537
|
deviceId: number(),
|
|
30354
30538
|
fromMs: number(),
|
|
30355
|
-
toMs: number()
|
|
30539
|
+
toMs: number(),
|
|
30540
|
+
/**
|
|
30541
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30542
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30543
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30544
|
+
* for.
|
|
30545
|
+
*/
|
|
30546
|
+
profile: string().optional()
|
|
30356
30547
|
}), RecordingAvailabilitySchema, {
|
|
30357
30548
|
kind: "query",
|
|
30358
30549
|
auth: "protected"
|
|
@@ -34071,7 +34262,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
34071
34262
|
};
|
|
34072
34263
|
}
|
|
34073
34264
|
/**
|
|
34074
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34265
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
34075
34266
|
*
|
|
34076
34267
|
* Provides default implementations for the common device-provider cap
|
|
34077
34268
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38727,6 +38918,24 @@ Object.freeze({
|
|
|
38727
38918
|
addonId: null,
|
|
38728
38919
|
access: "view"
|
|
38729
38920
|
},
|
|
38921
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38922
|
+
capName: "pipeline-runner",
|
|
38923
|
+
capScope: "system",
|
|
38924
|
+
addonId: null,
|
|
38925
|
+
access: "view"
|
|
38926
|
+
},
|
|
38927
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38928
|
+
capName: "pipeline-runner",
|
|
38929
|
+
capScope: "system",
|
|
38930
|
+
addonId: null,
|
|
38931
|
+
access: "create"
|
|
38932
|
+
},
|
|
38933
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38934
|
+
capName: "pipeline-runner",
|
|
38935
|
+
capScope: "system",
|
|
38936
|
+
addonId: null,
|
|
38937
|
+
access: "create"
|
|
38938
|
+
},
|
|
38730
38939
|
"pipelineRunner.reportMotion": {
|
|
38731
38940
|
capName: "pipeline-runner",
|
|
38732
38941
|
capScope: "system",
|
|
@@ -42004,6 +42213,21 @@ Object.freeze({
|
|
|
42004
42213
|
form: "single",
|
|
42005
42214
|
optional: false
|
|
42006
42215
|
}],
|
|
42216
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
42217
|
+
name: "deviceId",
|
|
42218
|
+
form: "single",
|
|
42219
|
+
optional: false
|
|
42220
|
+
}],
|
|
42221
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
42222
|
+
name: "deviceId",
|
|
42223
|
+
form: "single",
|
|
42224
|
+
optional: false
|
|
42225
|
+
}],
|
|
42226
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
42227
|
+
name: "deviceId",
|
|
42228
|
+
form: "single",
|
|
42229
|
+
optional: false
|
|
42230
|
+
}],
|
|
42007
42231
|
"pipelineRunner.reportMotion": [{
|
|
42008
42232
|
name: "deviceId",
|
|
42009
42233
|
form: "single",
|
|
@@ -42695,7 +42919,7 @@ var PreviewTextField = string().max(200);
|
|
|
42695
42919
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42696
42920
|
*
|
|
42697
42921
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42698
|
-
* rule)"* —
|
|
42922
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42699
42923
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42700
42924
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42701
42925
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/addon.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -630,7 +630,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
630
630
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
631
631
|
*/
|
|
632
632
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
633
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
634
633
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
635
634
|
/**
|
|
636
635
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12851,7 +12850,7 @@ DeviceType.Camera;
|
|
|
12851
12850
|
var SourceInfoSchema = object({
|
|
12852
12851
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12853
12852
|
id: string(),
|
|
12854
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12853
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12855
12854
|
system: string(),
|
|
12856
12855
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12857
12856
|
* Used to detect rename when `id` changes. */
|
|
@@ -12864,7 +12863,7 @@ var SourceInfoSchema = object({
|
|
|
12864
12863
|
/**
|
|
12865
12864
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
12866
12865
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
12867
|
-
* (Reolink / Hikvision / ONVIF /
|
|
12866
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
12868
12867
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
12869
12868
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
12870
12869
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -13543,7 +13542,7 @@ var deviceProviderCapability = {
|
|
|
13543
13542
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13544
13543
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13545
13544
|
*
|
|
13546
|
-
* All device provider addons (rtsp, onvif,
|
|
13545
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13547
13546
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13548
13547
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13549
13548
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17591,7 +17590,7 @@ var NcRuleInputSchema = object({
|
|
|
17591
17590
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17592
17591
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17593
17592
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17594
|
-
* 30 is
|
|
17593
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17595
17594
|
*
|
|
17596
17595
|
* ### What it replaces
|
|
17597
17596
|
*
|
|
@@ -19673,6 +19672,13 @@ var ZoneCrossingSchema = object({
|
|
|
19673
19672
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19674
19673
|
zoneName: string().optional()
|
|
19675
19674
|
});
|
|
19675
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19676
|
+
var ZoneOverlapSchema = object({
|
|
19677
|
+
zoneId: string(),
|
|
19678
|
+
zoneName: string().optional(),
|
|
19679
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19680
|
+
overlapPct: number()
|
|
19681
|
+
});
|
|
19676
19682
|
var ObjectEventSchema = object({
|
|
19677
19683
|
...BaseEventFields,
|
|
19678
19684
|
kind: literal("object"),
|
|
@@ -19697,6 +19703,35 @@ var ObjectEventSchema = object({
|
|
|
19697
19703
|
bbox: BoundingBoxSchema.optional(),
|
|
19698
19704
|
/** Heavy JSON — omitted in slim projection. */
|
|
19699
19705
|
zones: array(string()).readonly().optional(),
|
|
19706
|
+
/**
|
|
19707
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19708
|
+
* the BOX area.
|
|
19709
|
+
*
|
|
19710
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19711
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19712
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19713
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19714
|
+
* else to judge by.
|
|
19715
|
+
*/
|
|
19716
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19717
|
+
/**
|
|
19718
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19719
|
+
* has no track and never will.
|
|
19720
|
+
*
|
|
19721
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19722
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19723
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19724
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19725
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19726
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19727
|
+
* event at all.
|
|
19728
|
+
*
|
|
19729
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19730
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19731
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19732
|
+
* history is asking for something that never existed.
|
|
19733
|
+
*/
|
|
19734
|
+
spawnRefused: string().optional(),
|
|
19700
19735
|
/** Omitted in slim projection. */
|
|
19701
19736
|
state: TrackStateSchema.optional(),
|
|
19702
19737
|
/**
|
|
@@ -20123,7 +20158,17 @@ var EventDensityBucketSchema = object({
|
|
|
20123
20158
|
bucketStart: number(),
|
|
20124
20159
|
motion: number().int(),
|
|
20125
20160
|
object: number().int(),
|
|
20126
|
-
audio: number().int()
|
|
20161
|
+
audio: number().int(),
|
|
20162
|
+
/**
|
|
20163
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20164
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20165
|
+
*
|
|
20166
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20167
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20168
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20169
|
+
* the count-on-a-level-meter did.
|
|
20170
|
+
*/
|
|
20171
|
+
audioDbfs: number().optional()
|
|
20127
20172
|
});
|
|
20128
20173
|
/**
|
|
20129
20174
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20770,6 +20815,60 @@ var NativeCropResultSchema = object({
|
|
|
20770
20815
|
*/
|
|
20771
20816
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20772
20817
|
});
|
|
20818
|
+
/**
|
|
20819
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20820
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20821
|
+
*
|
|
20822
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20823
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20824
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20825
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20826
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20827
|
+
*
|
|
20828
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20829
|
+
*/
|
|
20830
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20831
|
+
/**
|
|
20832
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20833
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20834
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20835
|
+
* never a reason to retry in a loop.
|
|
20836
|
+
*
|
|
20837
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20838
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20839
|
+
* carries the runner's own miss reason.
|
|
20840
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20841
|
+
*/
|
|
20842
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20843
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20844
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20845
|
+
parked: literal(true),
|
|
20846
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20847
|
+
nodeId: string(),
|
|
20848
|
+
width: number().int().positive(),
|
|
20849
|
+
height: number().int().positive(),
|
|
20850
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20851
|
+
bytes: number().int().nonnegative(),
|
|
20852
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20853
|
+
replaced: boolean()
|
|
20854
|
+
}), object({
|
|
20855
|
+
parked: literal(false),
|
|
20856
|
+
nodeId: string(),
|
|
20857
|
+
reason: ParkRefusalSchema,
|
|
20858
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20859
|
+
handleAgeMs: number().nullable(),
|
|
20860
|
+
detail: string().optional()
|
|
20861
|
+
})]);
|
|
20862
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20863
|
+
var ParkedTrackFrameSchema = object({
|
|
20864
|
+
jpeg: string(),
|
|
20865
|
+
width: number().int().positive(),
|
|
20866
|
+
height: number().int().positive(),
|
|
20867
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20868
|
+
timestamp: number(),
|
|
20869
|
+
/** When the node stored it (the node's clock). */
|
|
20870
|
+
parkedAt: number()
|
|
20871
|
+
});
|
|
20773
20872
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20774
20873
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20775
20874
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21159,7 +21258,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21159
21258
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21160
21259
|
* analyzer providers) running on decoded frames in this runner.
|
|
21161
21260
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21162
|
-
* analytics
|
|
21261
|
+
* analytics). The provider emits ProviderMotion
|
|
21163
21262
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21164
21263
|
*/
|
|
21165
21264
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21401,7 +21500,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21401
21500
|
className: string(),
|
|
21402
21501
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21403
21502
|
sourceDeviceId: number()
|
|
21404
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21503
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21504
|
+
deviceId: number(),
|
|
21505
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21506
|
+
trackId: string(),
|
|
21507
|
+
kind: ParkedFrameKindSchema,
|
|
21508
|
+
handle: FrameHandleSchema,
|
|
21509
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21510
|
+
bbox: NativeCropBboxSchema,
|
|
21511
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21512
|
+
maxWidth: number().int().positive().optional(),
|
|
21513
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21514
|
+
timestamp: number()
|
|
21515
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21516
|
+
deviceId: number(),
|
|
21517
|
+
trackId: string(),
|
|
21518
|
+
kind: ParkedFrameKindSchema
|
|
21519
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21520
|
+
deviceId: number(),
|
|
21521
|
+
trackId: string()
|
|
21522
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21405
21523
|
var CameraPipelineConfigSchema = object({
|
|
21406
21524
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21407
21525
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24471,8 +24589,8 @@ onStatusChanged: { data: object({
|
|
|
24471
24589
|
/**
|
|
24472
24590
|
* Runtime-state slice — every provider that registers this cap
|
|
24473
24591
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
24474
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
24475
|
-
*
|
|
24592
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
24593
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
24476
24594
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
24477
24595
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24478
24596
|
* the underlying driver.
|
|
@@ -24622,7 +24740,7 @@ var buttonCapability = {
|
|
|
24622
24740
|
*
|
|
24623
24741
|
* Implementations:
|
|
24624
24742
|
* - Each camera-providing addon registers this cap natively per
|
|
24625
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24743
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24626
24744
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24627
24745
|
* extra round-trip to the camera, no probing.
|
|
24628
24746
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -26714,7 +26832,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
26714
26832
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
26715
26833
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
26716
26834
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
26717
|
-
* `device-provider` integrations (Reolink/
|
|
26835
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
26718
26836
|
* legacy config → discovery flow.
|
|
26719
26837
|
*/
|
|
26720
26838
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30082,7 +30200,23 @@ var RecordingRangeSchema = object({
|
|
|
30082
30200
|
});
|
|
30083
30201
|
var RecordingAvailabilitySchema = object({
|
|
30084
30202
|
deviceId: number(),
|
|
30085
|
-
ranges: array(RecordingRangeSchema)
|
|
30203
|
+
ranges: array(RecordingRangeSchema),
|
|
30204
|
+
/**
|
|
30205
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30206
|
+
* describes (D433).
|
|
30207
|
+
*
|
|
30208
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30209
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30210
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30211
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30212
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30213
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30214
|
+
* UI could not see it.
|
|
30215
|
+
*
|
|
30216
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30217
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30218
|
+
*/
|
|
30219
|
+
profilesWithFootage: array(string())
|
|
30086
30220
|
});
|
|
30087
30221
|
var RecordingDaysSchema = object({
|
|
30088
30222
|
deviceId: number(),
|
|
@@ -30108,7 +30242,11 @@ var RecordingDaysSchema = object({
|
|
|
30108
30242
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30109
30243
|
deviceId: number(),
|
|
30110
30244
|
read: _enum(["read", "unreadable"]),
|
|
30111
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30245
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30246
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30247
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30248
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30249
|
+
profilesWithFootage: array(string()).readonly()
|
|
30112
30250
|
});
|
|
30113
30251
|
/**
|
|
30114
30252
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30138,13 +30276,31 @@ var RecordingManifestSchema = object({
|
|
|
30138
30276
|
*/
|
|
30139
30277
|
playbackEndpoints: array(string())
|
|
30140
30278
|
});
|
|
30141
|
-
/**
|
|
30142
|
-
*
|
|
30279
|
+
/**
|
|
30280
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30281
|
+
* across every profile and every resolvable location on this node.
|
|
30282
|
+
*
|
|
30283
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30284
|
+
*
|
|
30285
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30286
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30287
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30288
|
+
*
|
|
30289
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30290
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30291
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30292
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30293
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30294
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30295
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30296
|
+
*/
|
|
30143
30297
|
var RecordingDeviceUsageSchema = object({
|
|
30144
30298
|
deviceId: number(),
|
|
30299
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30300
|
+
* recordings locations. */
|
|
30145
30301
|
usedBytes: number(),
|
|
30146
30302
|
/**
|
|
30147
|
-
* Start of this camera's OLDEST
|
|
30303
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30148
30304
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30149
30305
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30150
30306
|
*
|
|
@@ -30154,7 +30310,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30154
30310
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30155
30311
|
* the later of the two.
|
|
30156
30312
|
*/
|
|
30157
|
-
oldestMs: number().nullable().optional()
|
|
30313
|
+
oldestMs: number().nullable().optional(),
|
|
30314
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30315
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30316
|
+
segments: number().optional(),
|
|
30317
|
+
/**
|
|
30318
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30319
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30320
|
+
*
|
|
30321
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30322
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30323
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30324
|
+
* it, and so does a node whose ledger could not answer.
|
|
30325
|
+
*/
|
|
30326
|
+
residentBytes: number().optional(),
|
|
30327
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30328
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30329
|
+
* retention. `null` = nothing resident. */
|
|
30330
|
+
residentOldestMs: number().nullable().optional()
|
|
30158
30331
|
});
|
|
30159
30332
|
/** Recording storage usage + capacity for one storage location. */
|
|
30160
30333
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30192,6 +30365,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30192
30365
|
totalUsedBytes: number(),
|
|
30193
30366
|
devices: array(RecordingDeviceUsageSchema),
|
|
30194
30367
|
/**
|
|
30368
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30369
|
+
* disks (D418).
|
|
30370
|
+
*
|
|
30371
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30372
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30373
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30374
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30375
|
+
* and its rows are residency.
|
|
30376
|
+
*/
|
|
30377
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30378
|
+
/**
|
|
30195
30379
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30196
30380
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30197
30381
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30352,7 +30536,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30352
30536
|
method(object({
|
|
30353
30537
|
deviceId: number(),
|
|
30354
30538
|
fromMs: number(),
|
|
30355
|
-
toMs: number()
|
|
30539
|
+
toMs: number(),
|
|
30540
|
+
/**
|
|
30541
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30542
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30543
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30544
|
+
* for.
|
|
30545
|
+
*/
|
|
30546
|
+
profile: string().optional()
|
|
30356
30547
|
}), RecordingAvailabilitySchema, {
|
|
30357
30548
|
kind: "query",
|
|
30358
30549
|
auth: "protected"
|
|
@@ -34071,7 +34262,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
34071
34262
|
};
|
|
34072
34263
|
}
|
|
34073
34264
|
/**
|
|
34074
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
34265
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
34075
34266
|
*
|
|
34076
34267
|
* Provides default implementations for the common device-provider cap
|
|
34077
34268
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -38727,6 +38918,24 @@ Object.freeze({
|
|
|
38727
38918
|
addonId: null,
|
|
38728
38919
|
access: "view"
|
|
38729
38920
|
},
|
|
38921
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
38922
|
+
capName: "pipeline-runner",
|
|
38923
|
+
capScope: "system",
|
|
38924
|
+
addonId: null,
|
|
38925
|
+
access: "view"
|
|
38926
|
+
},
|
|
38927
|
+
"pipelineRunner.parkTrackFrame": {
|
|
38928
|
+
capName: "pipeline-runner",
|
|
38929
|
+
capScope: "system",
|
|
38930
|
+
addonId: null,
|
|
38931
|
+
access: "create"
|
|
38932
|
+
},
|
|
38933
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
38934
|
+
capName: "pipeline-runner",
|
|
38935
|
+
capScope: "system",
|
|
38936
|
+
addonId: null,
|
|
38937
|
+
access: "create"
|
|
38938
|
+
},
|
|
38730
38939
|
"pipelineRunner.reportMotion": {
|
|
38731
38940
|
capName: "pipeline-runner",
|
|
38732
38941
|
capScope: "system",
|
|
@@ -42004,6 +42213,21 @@ Object.freeze({
|
|
|
42004
42213
|
form: "single",
|
|
42005
42214
|
optional: false
|
|
42006
42215
|
}],
|
|
42216
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
42217
|
+
name: "deviceId",
|
|
42218
|
+
form: "single",
|
|
42219
|
+
optional: false
|
|
42220
|
+
}],
|
|
42221
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
42222
|
+
name: "deviceId",
|
|
42223
|
+
form: "single",
|
|
42224
|
+
optional: false
|
|
42225
|
+
}],
|
|
42226
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
42227
|
+
name: "deviceId",
|
|
42228
|
+
form: "single",
|
|
42229
|
+
optional: false
|
|
42230
|
+
}],
|
|
42007
42231
|
"pipelineRunner.reportMotion": [{
|
|
42008
42232
|
name: "deviceId",
|
|
42009
42233
|
form: "single",
|
|
@@ -42695,7 +42919,7 @@ var PreviewTextField = string().max(200);
|
|
|
42695
42919
|
* Whether the notification's preview is a STILL or a short animation.
|
|
42696
42920
|
*
|
|
42697
42921
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
42698
|
-
* rule)"* —
|
|
42922
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
42699
42923
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
42700
42924
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
42701
42925
|
* 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-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.92",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|