@camstack/addon-export-google 0.1.54 → 0.1.57
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-google.addon.js +242 -18
- package/dist/export-google.addon.mjs +242 -18
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
//#region ../types/dist/event-category-
|
|
80
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
81
81
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
82
82
|
EventCategory["SystemBoot"] = "system.boot";
|
|
83
83
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -669,7 +669,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
669
669
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
670
670
|
*/
|
|
671
671
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
672
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
673
672
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
674
673
|
/**
|
|
675
674
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12764,7 +12763,7 @@ DeviceType.Camera;
|
|
|
12764
12763
|
var SourceInfoSchema = object({
|
|
12765
12764
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12766
12765
|
id: string(),
|
|
12767
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12766
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12768
12767
|
system: string(),
|
|
12769
12768
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12770
12769
|
* Used to detect rename when `id` changes. */
|
|
@@ -13276,7 +13275,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13276
13275
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13277
13276
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13278
13277
|
*
|
|
13279
|
-
* All device provider addons (rtsp, onvif,
|
|
13278
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13280
13279
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13281
13280
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13282
13281
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17286,7 +17285,7 @@ var NcRuleInputSchema = object({
|
|
|
17286
17285
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17287
17286
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17288
17287
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17289
|
-
* 30 is
|
|
17288
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17290
17289
|
*
|
|
17291
17290
|
* ### What it replaces
|
|
17292
17291
|
*
|
|
@@ -19344,6 +19343,13 @@ var ZoneCrossingSchema = object({
|
|
|
19344
19343
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19345
19344
|
zoneName: string().optional()
|
|
19346
19345
|
});
|
|
19346
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19347
|
+
var ZoneOverlapSchema = object({
|
|
19348
|
+
zoneId: string(),
|
|
19349
|
+
zoneName: string().optional(),
|
|
19350
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19351
|
+
overlapPct: number()
|
|
19352
|
+
});
|
|
19347
19353
|
var ObjectEventSchema = object({
|
|
19348
19354
|
...BaseEventFields,
|
|
19349
19355
|
kind: literal("object"),
|
|
@@ -19368,6 +19374,35 @@ var ObjectEventSchema = object({
|
|
|
19368
19374
|
bbox: BoundingBoxSchema.optional(),
|
|
19369
19375
|
/** Heavy JSON — omitted in slim projection. */
|
|
19370
19376
|
zones: array(string()).readonly().optional(),
|
|
19377
|
+
/**
|
|
19378
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19379
|
+
* the BOX area.
|
|
19380
|
+
*
|
|
19381
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19382
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19383
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19384
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19385
|
+
* else to judge by.
|
|
19386
|
+
*/
|
|
19387
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19388
|
+
/**
|
|
19389
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19390
|
+
* has no track and never will.
|
|
19391
|
+
*
|
|
19392
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19393
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19394
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19395
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19396
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19397
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19398
|
+
* event at all.
|
|
19399
|
+
*
|
|
19400
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19401
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19402
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19403
|
+
* history is asking for something that never existed.
|
|
19404
|
+
*/
|
|
19405
|
+
spawnRefused: string().optional(),
|
|
19371
19406
|
/** Omitted in slim projection. */
|
|
19372
19407
|
state: TrackStateSchema.optional(),
|
|
19373
19408
|
/**
|
|
@@ -19794,7 +19829,17 @@ var EventDensityBucketSchema = object({
|
|
|
19794
19829
|
bucketStart: number(),
|
|
19795
19830
|
motion: number().int(),
|
|
19796
19831
|
object: number().int(),
|
|
19797
|
-
audio: number().int()
|
|
19832
|
+
audio: number().int(),
|
|
19833
|
+
/**
|
|
19834
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19835
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19836
|
+
*
|
|
19837
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19838
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19839
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19840
|
+
* the count-on-a-level-meter did.
|
|
19841
|
+
*/
|
|
19842
|
+
audioDbfs: number().optional()
|
|
19798
19843
|
});
|
|
19799
19844
|
/**
|
|
19800
19845
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20441,6 +20486,60 @@ var NativeCropResultSchema = object({
|
|
|
20441
20486
|
*/
|
|
20442
20487
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20443
20488
|
});
|
|
20489
|
+
/**
|
|
20490
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20491
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20492
|
+
*
|
|
20493
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20494
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20495
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20496
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20497
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20498
|
+
*
|
|
20499
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20500
|
+
*/
|
|
20501
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20502
|
+
/**
|
|
20503
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20504
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20505
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20506
|
+
* never a reason to retry in a loop.
|
|
20507
|
+
*
|
|
20508
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20509
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20510
|
+
* carries the runner's own miss reason.
|
|
20511
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20512
|
+
*/
|
|
20513
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20514
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20515
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20516
|
+
parked: literal(true),
|
|
20517
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20518
|
+
nodeId: string(),
|
|
20519
|
+
width: number().int().positive(),
|
|
20520
|
+
height: number().int().positive(),
|
|
20521
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20522
|
+
bytes: number().int().nonnegative(),
|
|
20523
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20524
|
+
replaced: boolean()
|
|
20525
|
+
}), object({
|
|
20526
|
+
parked: literal(false),
|
|
20527
|
+
nodeId: string(),
|
|
20528
|
+
reason: ParkRefusalSchema,
|
|
20529
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20530
|
+
handleAgeMs: number().nullable(),
|
|
20531
|
+
detail: string().optional()
|
|
20532
|
+
})]);
|
|
20533
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20534
|
+
var ParkedTrackFrameSchema = object({
|
|
20535
|
+
jpeg: string(),
|
|
20536
|
+
width: number().int().positive(),
|
|
20537
|
+
height: number().int().positive(),
|
|
20538
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20539
|
+
timestamp: number(),
|
|
20540
|
+
/** When the node stored it (the node's clock). */
|
|
20541
|
+
parkedAt: number()
|
|
20542
|
+
});
|
|
20444
20543
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20445
20544
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20446
20545
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20830,7 +20929,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20830
20929
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20831
20930
|
* analyzer providers) running on decoded frames in this runner.
|
|
20832
20931
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20833
|
-
* analytics
|
|
20932
|
+
* analytics). The provider emits ProviderMotion
|
|
20834
20933
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20835
20934
|
*/
|
|
20836
20935
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21072,7 +21171,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21072
21171
|
className: string(),
|
|
21073
21172
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21074
21173
|
sourceDeviceId: number()
|
|
21075
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21174
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21175
|
+
deviceId: number(),
|
|
21176
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21177
|
+
trackId: string(),
|
|
21178
|
+
kind: ParkedFrameKindSchema,
|
|
21179
|
+
handle: FrameHandleSchema,
|
|
21180
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21181
|
+
bbox: NativeCropBboxSchema,
|
|
21182
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21183
|
+
maxWidth: number().int().positive().optional(),
|
|
21184
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21185
|
+
timestamp: number()
|
|
21186
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21187
|
+
deviceId: number(),
|
|
21188
|
+
trackId: string(),
|
|
21189
|
+
kind: ParkedFrameKindSchema
|
|
21190
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21191
|
+
deviceId: number(),
|
|
21192
|
+
trackId: string()
|
|
21193
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21076
21194
|
var CameraPipelineConfigSchema = object({
|
|
21077
21195
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21078
21196
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24013,7 +24131,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24013
24131
|
*
|
|
24014
24132
|
* Implementations:
|
|
24015
24133
|
* - Each camera-providing addon registers this cap natively per
|
|
24016
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24134
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24017
24135
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24018
24136
|
* extra round-trip to the camera, no probing.
|
|
24019
24137
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25399,7 +25517,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25399
25517
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25400
25518
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25401
25519
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25402
|
-
* `device-provider` integrations (Reolink/
|
|
25520
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25403
25521
|
* legacy config → discovery flow.
|
|
25404
25522
|
*/
|
|
25405
25523
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27900,7 +28018,23 @@ var RecordingRangeSchema = object({
|
|
|
27900
28018
|
});
|
|
27901
28019
|
var RecordingAvailabilitySchema = object({
|
|
27902
28020
|
deviceId: number(),
|
|
27903
|
-
ranges: array(RecordingRangeSchema)
|
|
28021
|
+
ranges: array(RecordingRangeSchema),
|
|
28022
|
+
/**
|
|
28023
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28024
|
+
* describes (D433).
|
|
28025
|
+
*
|
|
28026
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28027
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28028
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28029
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28030
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28031
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28032
|
+
* UI could not see it.
|
|
28033
|
+
*
|
|
28034
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28035
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28036
|
+
*/
|
|
28037
|
+
profilesWithFootage: array(string())
|
|
27904
28038
|
});
|
|
27905
28039
|
var RecordingDaysSchema = object({
|
|
27906
28040
|
deviceId: number(),
|
|
@@ -27926,7 +28060,11 @@ var RecordingDaysSchema = object({
|
|
|
27926
28060
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27927
28061
|
deviceId: number(),
|
|
27928
28062
|
read: _enum(["read", "unreadable"]),
|
|
27929
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28063
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28064
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28065
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28066
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28067
|
+
profilesWithFootage: array(string()).readonly()
|
|
27930
28068
|
});
|
|
27931
28069
|
/**
|
|
27932
28070
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27956,13 +28094,31 @@ var RecordingManifestSchema = object({
|
|
|
27956
28094
|
*/
|
|
27957
28095
|
playbackEndpoints: array(string())
|
|
27958
28096
|
});
|
|
27959
|
-
/**
|
|
27960
|
-
*
|
|
28097
|
+
/**
|
|
28098
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28099
|
+
* across every profile and every resolvable location on this node.
|
|
28100
|
+
*
|
|
28101
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28102
|
+
*
|
|
28103
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28104
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28105
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28106
|
+
*
|
|
28107
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28108
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28109
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28110
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28111
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28112
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28113
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28114
|
+
*/
|
|
27961
28115
|
var RecordingDeviceUsageSchema = object({
|
|
27962
28116
|
deviceId: number(),
|
|
28117
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28118
|
+
* recordings locations. */
|
|
27963
28119
|
usedBytes: number(),
|
|
27964
28120
|
/**
|
|
27965
|
-
* Start of this camera's OLDEST
|
|
28121
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27966
28122
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27967
28123
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27968
28124
|
*
|
|
@@ -27972,7 +28128,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27972
28128
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27973
28129
|
* the later of the two.
|
|
27974
28130
|
*/
|
|
27975
|
-
oldestMs: number().nullable().optional()
|
|
28131
|
+
oldestMs: number().nullable().optional(),
|
|
28132
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28133
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28134
|
+
segments: number().optional(),
|
|
28135
|
+
/**
|
|
28136
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28137
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28138
|
+
*
|
|
28139
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28140
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28141
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28142
|
+
* it, and so does a node whose ledger could not answer.
|
|
28143
|
+
*/
|
|
28144
|
+
residentBytes: number().optional(),
|
|
28145
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28146
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28147
|
+
* retention. `null` = nothing resident. */
|
|
28148
|
+
residentOldestMs: number().nullable().optional()
|
|
27976
28149
|
});
|
|
27977
28150
|
/** Recording storage usage + capacity for one storage location. */
|
|
27978
28151
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28010,6 +28183,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28010
28183
|
totalUsedBytes: number(),
|
|
28011
28184
|
devices: array(RecordingDeviceUsageSchema),
|
|
28012
28185
|
/**
|
|
28186
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28187
|
+
* disks (D418).
|
|
28188
|
+
*
|
|
28189
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28190
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28191
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28192
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28193
|
+
* and its rows are residency.
|
|
28194
|
+
*/
|
|
28195
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28196
|
+
/**
|
|
28013
28197
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28014
28198
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28015
28199
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28170,7 +28354,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28170
28354
|
method(object({
|
|
28171
28355
|
deviceId: number(),
|
|
28172
28356
|
fromMs: number(),
|
|
28173
|
-
toMs: number()
|
|
28357
|
+
toMs: number(),
|
|
28358
|
+
/**
|
|
28359
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28360
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28361
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28362
|
+
* for.
|
|
28363
|
+
*/
|
|
28364
|
+
profile: string().optional()
|
|
28174
28365
|
}), RecordingAvailabilitySchema, {
|
|
28175
28366
|
kind: "query",
|
|
28176
28367
|
auth: "protected"
|
|
@@ -34404,6 +34595,24 @@ Object.freeze({
|
|
|
34404
34595
|
addonId: null,
|
|
34405
34596
|
access: "view"
|
|
34406
34597
|
},
|
|
34598
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34599
|
+
capName: "pipeline-runner",
|
|
34600
|
+
capScope: "system",
|
|
34601
|
+
addonId: null,
|
|
34602
|
+
access: "view"
|
|
34603
|
+
},
|
|
34604
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34605
|
+
capName: "pipeline-runner",
|
|
34606
|
+
capScope: "system",
|
|
34607
|
+
addonId: null,
|
|
34608
|
+
access: "create"
|
|
34609
|
+
},
|
|
34610
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34611
|
+
capName: "pipeline-runner",
|
|
34612
|
+
capScope: "system",
|
|
34613
|
+
addonId: null,
|
|
34614
|
+
access: "create"
|
|
34615
|
+
},
|
|
34407
34616
|
"pipelineRunner.reportMotion": {
|
|
34408
34617
|
capName: "pipeline-runner",
|
|
34409
34618
|
capScope: "system",
|
|
@@ -37681,6 +37890,21 @@ Object.freeze({
|
|
|
37681
37890
|
form: "single",
|
|
37682
37891
|
optional: false
|
|
37683
37892
|
}],
|
|
37893
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37894
|
+
name: "deviceId",
|
|
37895
|
+
form: "single",
|
|
37896
|
+
optional: false
|
|
37897
|
+
}],
|
|
37898
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37899
|
+
name: "deviceId",
|
|
37900
|
+
form: "single",
|
|
37901
|
+
optional: false
|
|
37902
|
+
}],
|
|
37903
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37904
|
+
name: "deviceId",
|
|
37905
|
+
form: "single",
|
|
37906
|
+
optional: false
|
|
37907
|
+
}],
|
|
37684
37908
|
"pipelineRunner.reportMotion": [{
|
|
37685
37909
|
name: "deviceId",
|
|
37686
37910
|
form: "single",
|
|
@@ -38372,7 +38596,7 @@ var PreviewTextField = string().max(200);
|
|
|
38372
38596
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38373
38597
|
*
|
|
38374
38598
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38375
|
-
* rule)"* —
|
|
38599
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38376
38600
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38377
38601
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38378
38602
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -73,7 +73,7 @@ function createApiDeviceGateway(deps) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region ../types/dist/event-category-
|
|
76
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
77
77
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
78
78
|
EventCategory["SystemBoot"] = "system.boot";
|
|
79
79
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -665,7 +665,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
665
665
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
666
666
|
*/
|
|
667
667
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
668
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
669
668
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
670
669
|
/**
|
|
671
670
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12760,7 +12759,7 @@ DeviceType.Camera;
|
|
|
12760
12759
|
var SourceInfoSchema = object({
|
|
12761
12760
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12762
12761
|
id: string(),
|
|
12763
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12762
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12764
12763
|
system: string(),
|
|
12765
12764
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12766
12765
|
* Used to detect rename when `id` changes. */
|
|
@@ -13272,7 +13271,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13272
13271
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13273
13272
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13274
13273
|
*
|
|
13275
|
-
* All device provider addons (rtsp, onvif,
|
|
13274
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13276
13275
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13277
13276
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13278
13277
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17282,7 +17281,7 @@ var NcRuleInputSchema = object({
|
|
|
17282
17281
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17283
17282
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17284
17283
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17285
|
-
* 30 is
|
|
17284
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17286
17285
|
*
|
|
17287
17286
|
* ### What it replaces
|
|
17288
17287
|
*
|
|
@@ -19340,6 +19339,13 @@ var ZoneCrossingSchema = object({
|
|
|
19340
19339
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19341
19340
|
zoneName: string().optional()
|
|
19342
19341
|
});
|
|
19342
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19343
|
+
var ZoneOverlapSchema = object({
|
|
19344
|
+
zoneId: string(),
|
|
19345
|
+
zoneName: string().optional(),
|
|
19346
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19347
|
+
overlapPct: number()
|
|
19348
|
+
});
|
|
19343
19349
|
var ObjectEventSchema = object({
|
|
19344
19350
|
...BaseEventFields,
|
|
19345
19351
|
kind: literal("object"),
|
|
@@ -19364,6 +19370,35 @@ var ObjectEventSchema = object({
|
|
|
19364
19370
|
bbox: BoundingBoxSchema.optional(),
|
|
19365
19371
|
/** Heavy JSON — omitted in slim projection. */
|
|
19366
19372
|
zones: array(string()).readonly().optional(),
|
|
19373
|
+
/**
|
|
19374
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19375
|
+
* the BOX area.
|
|
19376
|
+
*
|
|
19377
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19378
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19379
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19380
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19381
|
+
* else to judge by.
|
|
19382
|
+
*/
|
|
19383
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19384
|
+
/**
|
|
19385
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19386
|
+
* has no track and never will.
|
|
19387
|
+
*
|
|
19388
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19389
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19390
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19391
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19392
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19393
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19394
|
+
* event at all.
|
|
19395
|
+
*
|
|
19396
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19397
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19398
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19399
|
+
* history is asking for something that never existed.
|
|
19400
|
+
*/
|
|
19401
|
+
spawnRefused: string().optional(),
|
|
19367
19402
|
/** Omitted in slim projection. */
|
|
19368
19403
|
state: TrackStateSchema.optional(),
|
|
19369
19404
|
/**
|
|
@@ -19790,7 +19825,17 @@ var EventDensityBucketSchema = object({
|
|
|
19790
19825
|
bucketStart: number(),
|
|
19791
19826
|
motion: number().int(),
|
|
19792
19827
|
object: number().int(),
|
|
19793
|
-
audio: number().int()
|
|
19828
|
+
audio: number().int(),
|
|
19829
|
+
/**
|
|
19830
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19831
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19832
|
+
*
|
|
19833
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19834
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19835
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19836
|
+
* the count-on-a-level-meter did.
|
|
19837
|
+
*/
|
|
19838
|
+
audioDbfs: number().optional()
|
|
19794
19839
|
});
|
|
19795
19840
|
/**
|
|
19796
19841
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20437,6 +20482,60 @@ var NativeCropResultSchema = object({
|
|
|
20437
20482
|
*/
|
|
20438
20483
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20439
20484
|
});
|
|
20485
|
+
/**
|
|
20486
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20487
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20488
|
+
*
|
|
20489
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20490
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20491
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20492
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20493
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20494
|
+
*
|
|
20495
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20496
|
+
*/
|
|
20497
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20498
|
+
/**
|
|
20499
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20500
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20501
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20502
|
+
* never a reason to retry in a loop.
|
|
20503
|
+
*
|
|
20504
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20505
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20506
|
+
* carries the runner's own miss reason.
|
|
20507
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20508
|
+
*/
|
|
20509
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20510
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20511
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20512
|
+
parked: literal(true),
|
|
20513
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20514
|
+
nodeId: string(),
|
|
20515
|
+
width: number().int().positive(),
|
|
20516
|
+
height: number().int().positive(),
|
|
20517
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20518
|
+
bytes: number().int().nonnegative(),
|
|
20519
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20520
|
+
replaced: boolean()
|
|
20521
|
+
}), object({
|
|
20522
|
+
parked: literal(false),
|
|
20523
|
+
nodeId: string(),
|
|
20524
|
+
reason: ParkRefusalSchema,
|
|
20525
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20526
|
+
handleAgeMs: number().nullable(),
|
|
20527
|
+
detail: string().optional()
|
|
20528
|
+
})]);
|
|
20529
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20530
|
+
var ParkedTrackFrameSchema = object({
|
|
20531
|
+
jpeg: string(),
|
|
20532
|
+
width: number().int().positive(),
|
|
20533
|
+
height: number().int().positive(),
|
|
20534
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20535
|
+
timestamp: number(),
|
|
20536
|
+
/** When the node stored it (the node's clock). */
|
|
20537
|
+
parkedAt: number()
|
|
20538
|
+
});
|
|
20440
20539
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20441
20540
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20442
20541
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20826,7 +20925,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20826
20925
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20827
20926
|
* analyzer providers) running on decoded frames in this runner.
|
|
20828
20927
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20829
|
-
* analytics
|
|
20928
|
+
* analytics). The provider emits ProviderMotion
|
|
20830
20929
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20831
20930
|
*/
|
|
20832
20931
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21068,7 +21167,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21068
21167
|
className: string(),
|
|
21069
21168
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21070
21169
|
sourceDeviceId: number()
|
|
21071
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21170
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21171
|
+
deviceId: number(),
|
|
21172
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21173
|
+
trackId: string(),
|
|
21174
|
+
kind: ParkedFrameKindSchema,
|
|
21175
|
+
handle: FrameHandleSchema,
|
|
21176
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21177
|
+
bbox: NativeCropBboxSchema,
|
|
21178
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21179
|
+
maxWidth: number().int().positive().optional(),
|
|
21180
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21181
|
+
timestamp: number()
|
|
21182
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21183
|
+
deviceId: number(),
|
|
21184
|
+
trackId: string(),
|
|
21185
|
+
kind: ParkedFrameKindSchema
|
|
21186
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21187
|
+
deviceId: number(),
|
|
21188
|
+
trackId: string()
|
|
21189
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
21072
21190
|
var CameraPipelineConfigSchema = object({
|
|
21073
21191
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21074
21192
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24009,7 +24127,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
24009
24127
|
*
|
|
24010
24128
|
* Implementations:
|
|
24011
24129
|
* - Each camera-providing addon registers this cap natively per
|
|
24012
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24130
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24013
24131
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24014
24132
|
* extra round-trip to the camera, no probing.
|
|
24015
24133
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25395,7 +25513,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25395
25513
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25396
25514
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25397
25515
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25398
|
-
* `device-provider` integrations (Reolink/
|
|
25516
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25399
25517
|
* legacy config → discovery flow.
|
|
25400
25518
|
*/
|
|
25401
25519
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27896,7 +28014,23 @@ var RecordingRangeSchema = object({
|
|
|
27896
28014
|
});
|
|
27897
28015
|
var RecordingAvailabilitySchema = object({
|
|
27898
28016
|
deviceId: number(),
|
|
27899
|
-
ranges: array(RecordingRangeSchema)
|
|
28017
|
+
ranges: array(RecordingRangeSchema),
|
|
28018
|
+
/**
|
|
28019
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28020
|
+
* describes (D433).
|
|
28021
|
+
*
|
|
28022
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28023
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28024
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28025
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28026
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28027
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28028
|
+
* UI could not see it.
|
|
28029
|
+
*
|
|
28030
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28031
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28032
|
+
*/
|
|
28033
|
+
profilesWithFootage: array(string())
|
|
27900
28034
|
});
|
|
27901
28035
|
var RecordingDaysSchema = object({
|
|
27902
28036
|
deviceId: number(),
|
|
@@ -27922,7 +28056,11 @@ var RecordingDaysSchema = object({
|
|
|
27922
28056
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27923
28057
|
deviceId: number(),
|
|
27924
28058
|
read: _enum(["read", "unreadable"]),
|
|
27925
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28059
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28060
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28061
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28062
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28063
|
+
profilesWithFootage: array(string()).readonly()
|
|
27926
28064
|
});
|
|
27927
28065
|
/**
|
|
27928
28066
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27952,13 +28090,31 @@ var RecordingManifestSchema = object({
|
|
|
27952
28090
|
*/
|
|
27953
28091
|
playbackEndpoints: array(string())
|
|
27954
28092
|
});
|
|
27955
|
-
/**
|
|
27956
|
-
*
|
|
28093
|
+
/**
|
|
28094
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28095
|
+
* across every profile and every resolvable location on this node.
|
|
28096
|
+
*
|
|
28097
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28098
|
+
*
|
|
28099
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28100
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28101
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28102
|
+
*
|
|
28103
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28104
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28105
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28106
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28107
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28108
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28109
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28110
|
+
*/
|
|
27957
28111
|
var RecordingDeviceUsageSchema = object({
|
|
27958
28112
|
deviceId: number(),
|
|
28113
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28114
|
+
* recordings locations. */
|
|
27959
28115
|
usedBytes: number(),
|
|
27960
28116
|
/**
|
|
27961
|
-
* Start of this camera's OLDEST
|
|
28117
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27962
28118
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27963
28119
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27964
28120
|
*
|
|
@@ -27968,7 +28124,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27968
28124
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27969
28125
|
* the later of the two.
|
|
27970
28126
|
*/
|
|
27971
|
-
oldestMs: number().nullable().optional()
|
|
28127
|
+
oldestMs: number().nullable().optional(),
|
|
28128
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28129
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28130
|
+
segments: number().optional(),
|
|
28131
|
+
/**
|
|
28132
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28133
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28134
|
+
*
|
|
28135
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28136
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28137
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28138
|
+
* it, and so does a node whose ledger could not answer.
|
|
28139
|
+
*/
|
|
28140
|
+
residentBytes: number().optional(),
|
|
28141
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28142
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28143
|
+
* retention. `null` = nothing resident. */
|
|
28144
|
+
residentOldestMs: number().nullable().optional()
|
|
27972
28145
|
});
|
|
27973
28146
|
/** Recording storage usage + capacity for one storage location. */
|
|
27974
28147
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28006,6 +28179,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28006
28179
|
totalUsedBytes: number(),
|
|
28007
28180
|
devices: array(RecordingDeviceUsageSchema),
|
|
28008
28181
|
/**
|
|
28182
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28183
|
+
* disks (D418).
|
|
28184
|
+
*
|
|
28185
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28186
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28187
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28188
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28189
|
+
* and its rows are residency.
|
|
28190
|
+
*/
|
|
28191
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28192
|
+
/**
|
|
28009
28193
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28010
28194
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28011
28195
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28166,7 +28350,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28166
28350
|
method(object({
|
|
28167
28351
|
deviceId: number(),
|
|
28168
28352
|
fromMs: number(),
|
|
28169
|
-
toMs: number()
|
|
28353
|
+
toMs: number(),
|
|
28354
|
+
/**
|
|
28355
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28356
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28357
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28358
|
+
* for.
|
|
28359
|
+
*/
|
|
28360
|
+
profile: string().optional()
|
|
28170
28361
|
}), RecordingAvailabilitySchema, {
|
|
28171
28362
|
kind: "query",
|
|
28172
28363
|
auth: "protected"
|
|
@@ -34400,6 +34591,24 @@ Object.freeze({
|
|
|
34400
34591
|
addonId: null,
|
|
34401
34592
|
access: "view"
|
|
34402
34593
|
},
|
|
34594
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34595
|
+
capName: "pipeline-runner",
|
|
34596
|
+
capScope: "system",
|
|
34597
|
+
addonId: null,
|
|
34598
|
+
access: "view"
|
|
34599
|
+
},
|
|
34600
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34601
|
+
capName: "pipeline-runner",
|
|
34602
|
+
capScope: "system",
|
|
34603
|
+
addonId: null,
|
|
34604
|
+
access: "create"
|
|
34605
|
+
},
|
|
34606
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34607
|
+
capName: "pipeline-runner",
|
|
34608
|
+
capScope: "system",
|
|
34609
|
+
addonId: null,
|
|
34610
|
+
access: "create"
|
|
34611
|
+
},
|
|
34403
34612
|
"pipelineRunner.reportMotion": {
|
|
34404
34613
|
capName: "pipeline-runner",
|
|
34405
34614
|
capScope: "system",
|
|
@@ -37677,6 +37886,21 @@ Object.freeze({
|
|
|
37677
37886
|
form: "single",
|
|
37678
37887
|
optional: false
|
|
37679
37888
|
}],
|
|
37889
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37890
|
+
name: "deviceId",
|
|
37891
|
+
form: "single",
|
|
37892
|
+
optional: false
|
|
37893
|
+
}],
|
|
37894
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37895
|
+
name: "deviceId",
|
|
37896
|
+
form: "single",
|
|
37897
|
+
optional: false
|
|
37898
|
+
}],
|
|
37899
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37900
|
+
name: "deviceId",
|
|
37901
|
+
form: "single",
|
|
37902
|
+
optional: false
|
|
37903
|
+
}],
|
|
37680
37904
|
"pipelineRunner.reportMotion": [{
|
|
37681
37905
|
name: "deviceId",
|
|
37682
37906
|
form: "single",
|
|
@@ -38368,7 +38592,7 @@ var PreviewTextField = string().max(200);
|
|
|
38368
38592
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38369
38593
|
*
|
|
38370
38594
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38371
|
-
* rule)"* —
|
|
38595
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38372
38596
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38373
38597
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38374
38598
|
* 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-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|