@camstack/system 1.2.214 → 1.2.217
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/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-9GQQ9F3s.js → dist-C85OOASj.js} +278 -20
- package/dist/{dist-uZj-Z5uc.mjs → dist-DtDKMSeG.mjs} +278 -20
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{retired-settings-keys-BX0zIks4.mjs → retired-settings-keys-Cx-lYIbU.mjs} +1 -1
- package/dist/{retired-settings-keys-DfdSH46H.js → retired-settings-keys-Dfj9LA-i.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let zod = require("zod");
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -591,7 +591,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
591
591
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
592
592
|
*/
|
|
593
593
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
594
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
595
594
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
596
595
|
/**
|
|
597
596
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -10421,7 +10420,7 @@ var detectionPipelineCapability = {
|
|
|
10421
10420
|
var SourceInfoSchema = zod.z.object({
|
|
10422
10421
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
10423
10422
|
id: zod.z.string(),
|
|
10424
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
10423
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
10425
10424
|
system: zod.z.string(),
|
|
10426
10425
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
10427
10426
|
* Used to detect rename when `id` changes. */
|
|
@@ -11123,7 +11122,7 @@ var deviceProviderCapability = {
|
|
|
11123
11122
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
11124
11123
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
11125
11124
|
*
|
|
11126
|
-
* All device provider addons (rtsp, onvif,
|
|
11125
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
11127
11126
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
11128
11127
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
11129
11128
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -16069,7 +16068,7 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
16069
16068
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
16070
16069
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
16071
16070
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
16072
|
-
* 30 is
|
|
16071
|
+
* 30 s is a widely shipped value for the same decision.
|
|
16073
16072
|
*
|
|
16074
16073
|
* ### What it replaces
|
|
16075
16074
|
*
|
|
@@ -18476,6 +18475,13 @@ var ZoneCrossingSchema = zod.z.object({
|
|
|
18476
18475
|
/** Zone display name at crossing time (falls back to the id). */
|
|
18477
18476
|
zoneName: zod.z.string().optional()
|
|
18478
18477
|
});
|
|
18478
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
18479
|
+
var ZoneOverlapSchema = zod.z.object({
|
|
18480
|
+
zoneId: zod.z.string(),
|
|
18481
|
+
zoneName: zod.z.string().optional(),
|
|
18482
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
18483
|
+
overlapPct: zod.z.number()
|
|
18484
|
+
});
|
|
18479
18485
|
var ObjectEventSchema = zod.z.object({
|
|
18480
18486
|
...BaseEventFields,
|
|
18481
18487
|
kind: zod.z.literal("object"),
|
|
@@ -18500,6 +18506,35 @@ var ObjectEventSchema = zod.z.object({
|
|
|
18500
18506
|
bbox: BoundingBoxSchema.optional(),
|
|
18501
18507
|
/** Heavy JSON — omitted in slim projection. */
|
|
18502
18508
|
zones: zod.z.array(zod.z.string()).readonly().optional(),
|
|
18509
|
+
/**
|
|
18510
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
18511
|
+
* the BOX area.
|
|
18512
|
+
*
|
|
18513
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
18514
|
+
* the bar an operator argues with — and the number already existed: the
|
|
18515
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
18516
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
18517
|
+
* else to judge by.
|
|
18518
|
+
*/
|
|
18519
|
+
zoneOverlaps: zod.z.array(ZoneOverlapSchema).readonly().optional(),
|
|
18520
|
+
/**
|
|
18521
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
18522
|
+
* has no track and never will.
|
|
18523
|
+
*
|
|
18524
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
18525
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
18526
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
18527
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
18528
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
18529
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
18530
|
+
* event at all.
|
|
18531
|
+
*
|
|
18532
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
18533
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
18534
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
18535
|
+
* history is asking for something that never existed.
|
|
18536
|
+
*/
|
|
18537
|
+
spawnRefused: zod.z.string().optional(),
|
|
18503
18538
|
/** Omitted in slim projection. */
|
|
18504
18539
|
state: TrackStateSchema.optional(),
|
|
18505
18540
|
/**
|
|
@@ -18926,7 +18961,17 @@ var EventDensityBucketSchema = zod.z.object({
|
|
|
18926
18961
|
bucketStart: zod.z.number(),
|
|
18927
18962
|
motion: zod.z.number().int(),
|
|
18928
18963
|
object: zod.z.number().int(),
|
|
18929
|
-
audio: zod.z.number().int()
|
|
18964
|
+
audio: zod.z.number().int(),
|
|
18965
|
+
/**
|
|
18966
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
18967
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
18968
|
+
*
|
|
18969
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
18970
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
18971
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
18972
|
+
* the count-on-a-level-meter did.
|
|
18973
|
+
*/
|
|
18974
|
+
audioDbfs: zod.z.number().optional()
|
|
18930
18975
|
});
|
|
18931
18976
|
/**
|
|
18932
18977
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20169,6 +20214,60 @@ var NativeCropResultSchema = zod.z.object({
|
|
|
20169
20214
|
*/
|
|
20170
20215
|
tier: zod.z.enum(["native", "ram-fullframe"]).optional()
|
|
20171
20216
|
});
|
|
20217
|
+
/**
|
|
20218
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20219
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20220
|
+
*
|
|
20221
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20222
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20223
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20224
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20225
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20226
|
+
*
|
|
20227
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20228
|
+
*/
|
|
20229
|
+
var ParkedFrameKindSchema = zod.z.enum(["keyFrame", "thumbnail"]);
|
|
20230
|
+
/**
|
|
20231
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20232
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20233
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20234
|
+
* never a reason to retry in a loop.
|
|
20235
|
+
*
|
|
20236
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20237
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20238
|
+
* carries the runner's own miss reason.
|
|
20239
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20240
|
+
*/
|
|
20241
|
+
var ParkRefusalSchema = zod.z.enum(["handle-gone", "encode-failed"]);
|
|
20242
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20243
|
+
var ParkTrackFrameResultSchema = zod.z.discriminatedUnion("parked", [zod.z.object({
|
|
20244
|
+
parked: zod.z.literal(true),
|
|
20245
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20246
|
+
nodeId: zod.z.string(),
|
|
20247
|
+
width: zod.z.number().int().positive(),
|
|
20248
|
+
height: zod.z.number().int().positive(),
|
|
20249
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20250
|
+
bytes: zod.z.number().int().nonnegative(),
|
|
20251
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20252
|
+
replaced: zod.z.boolean()
|
|
20253
|
+
}), zod.z.object({
|
|
20254
|
+
parked: zod.z.literal(false),
|
|
20255
|
+
nodeId: zod.z.string(),
|
|
20256
|
+
reason: ParkRefusalSchema,
|
|
20257
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20258
|
+
handleAgeMs: zod.z.number().nullable(),
|
|
20259
|
+
detail: zod.z.string().optional()
|
|
20260
|
+
})]);
|
|
20261
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20262
|
+
var ParkedTrackFrameSchema = zod.z.object({
|
|
20263
|
+
jpeg: zod.z.string(),
|
|
20264
|
+
width: zod.z.number().int().positive(),
|
|
20265
|
+
height: zod.z.number().int().positive(),
|
|
20266
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20267
|
+
timestamp: zod.z.number(),
|
|
20268
|
+
/** When the node stored it (the node's clock). */
|
|
20269
|
+
parkedAt: zod.z.number()
|
|
20270
|
+
});
|
|
20172
20271
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20173
20272
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20174
20273
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20558,7 +20657,7 @@ var RunnerCameraConfigSchema = zod.z.object({
|
|
|
20558
20657
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20559
20658
|
* analyzer providers) running on decoded frames in this runner.
|
|
20560
20659
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20561
|
-
* analytics
|
|
20660
|
+
* analytics). The provider emits ProviderMotion
|
|
20562
20661
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20563
20662
|
*/
|
|
20564
20663
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20940,7 +21039,60 @@ var pipelineRunnerCapability = {
|
|
|
20940
21039
|
className: zod.z.string(),
|
|
20941
21040
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20942
21041
|
sourceDeviceId: zod.z.number()
|
|
20943
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21042
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
21043
|
+
/**
|
|
21044
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
21045
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21046
|
+
*
|
|
21047
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
21048
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
21049
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
21050
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
21051
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
21052
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
21053
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
21054
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
21055
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
21056
|
+
* encode at a decision point, never a stream.
|
|
21057
|
+
*
|
|
21058
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
21059
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
21060
|
+
* is ignored. Bounded per device and per node on the runner
|
|
21061
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
21062
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
21063
|
+
* handle's measured age — it is never retried into a loop.
|
|
21064
|
+
*/
|
|
21065
|
+
parkTrackFrame: method(zod.z.object({
|
|
21066
|
+
deviceId: zod.z.number(),
|
|
21067
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21068
|
+
trackId: zod.z.string(),
|
|
21069
|
+
kind: ParkedFrameKindSchema,
|
|
21070
|
+
handle: FrameHandleSchema,
|
|
21071
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21072
|
+
bbox: NativeCropBboxSchema,
|
|
21073
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21074
|
+
maxWidth: zod.z.number().int().positive().optional(),
|
|
21075
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21076
|
+
timestamp: zod.z.number()
|
|
21077
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
21078
|
+
/**
|
|
21079
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
21080
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
21081
|
+
* nothing was parked under that key on this node — never "too old".
|
|
21082
|
+
*/
|
|
21083
|
+
getParkedTrackFrame: method(zod.z.object({
|
|
21084
|
+
deviceId: zod.z.number(),
|
|
21085
|
+
trackId: zod.z.string(),
|
|
21086
|
+
kind: ParkedFrameKindSchema
|
|
21087
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
21088
|
+
/**
|
|
21089
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
21090
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
21091
|
+
*/
|
|
21092
|
+
releaseParkedTrackFrames: method(zod.z.object({
|
|
21093
|
+
deviceId: zod.z.number(),
|
|
21094
|
+
trackId: zod.z.string()
|
|
21095
|
+
}), zod.z.object({ released: zod.z.number().int().nonnegative() }), { kind: "mutation" })
|
|
20944
21096
|
}
|
|
20945
21097
|
};
|
|
20946
21098
|
var CameraPipelineConfigSchema = zod.z.object({
|
|
@@ -25243,8 +25395,8 @@ onStatusChanged: { data: zod.z.object({
|
|
|
25243
25395
|
/**
|
|
25244
25396
|
* Runtime-state slice — every provider that registers this cap
|
|
25245
25397
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25246
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25247
|
-
*
|
|
25398
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25399
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25248
25400
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25249
25401
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25250
25402
|
* the underlying driver.
|
|
@@ -25394,7 +25546,7 @@ var buttonCapability = {
|
|
|
25394
25546
|
*
|
|
25395
25547
|
* Implementations:
|
|
25396
25548
|
* - Each camera-providing addon registers this cap natively per
|
|
25397
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25549
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25398
25550
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25399
25551
|
* extra round-trip to the camera, no probing.
|
|
25400
25552
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27613,7 +27765,7 @@ var AvailableIntegrationTypeSchema = zod.z.object({
|
|
|
27613
27765
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27614
27766
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27615
27767
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27616
|
-
* `device-provider` integrations (Reolink/
|
|
27768
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27617
27769
|
* legacy config → discovery flow.
|
|
27618
27770
|
*/
|
|
27619
27771
|
kind: zod.z.enum(["device-adoption", "device-provider"]),
|
|
@@ -31494,7 +31646,23 @@ var RecordingRangeSchema = zod.z.object({
|
|
|
31494
31646
|
});
|
|
31495
31647
|
var RecordingAvailabilitySchema = zod.z.object({
|
|
31496
31648
|
deviceId: zod.z.number(),
|
|
31497
|
-
ranges: zod.z.array(RecordingRangeSchema)
|
|
31649
|
+
ranges: zod.z.array(RecordingRangeSchema),
|
|
31650
|
+
/**
|
|
31651
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
31652
|
+
* describes (D433).
|
|
31653
|
+
*
|
|
31654
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
31655
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
31656
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
31657
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
31658
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
31659
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
31660
|
+
* UI could not see it.
|
|
31661
|
+
*
|
|
31662
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
31663
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
31664
|
+
*/
|
|
31665
|
+
profilesWithFootage: zod.z.array(zod.z.string())
|
|
31498
31666
|
});
|
|
31499
31667
|
var RecordingDaysSchema = zod.z.object({
|
|
31500
31668
|
deviceId: zod.z.number(),
|
|
@@ -31520,7 +31688,11 @@ var RecordingDaysSchema = zod.z.object({
|
|
|
31520
31688
|
var RecordingAvailabilityForDeviceSchema = zod.z.object({
|
|
31521
31689
|
deviceId: zod.z.number(),
|
|
31522
31690
|
read: zod.z.enum(["read", "unreadable"]),
|
|
31523
|
-
ranges: zod.z.array(RecordingRangeSchema).readonly()
|
|
31691
|
+
ranges: zod.z.array(RecordingRangeSchema).readonly(),
|
|
31692
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
31693
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
31694
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
31695
|
+
profilesWithFootage: zod.z.array(zod.z.string()).readonly()
|
|
31524
31696
|
});
|
|
31525
31697
|
/**
|
|
31526
31698
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -31550,13 +31722,31 @@ var RecordingManifestSchema = zod.z.object({
|
|
|
31550
31722
|
*/
|
|
31551
31723
|
playbackEndpoints: zod.z.array(zod.z.string())
|
|
31552
31724
|
});
|
|
31553
|
-
/**
|
|
31554
|
-
*
|
|
31725
|
+
/**
|
|
31726
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31727
|
+
* across every profile and every resolvable location on this node.
|
|
31728
|
+
*
|
|
31729
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31730
|
+
*
|
|
31731
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31732
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31733
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31734
|
+
*
|
|
31735
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31736
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31737
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31738
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31739
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31740
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31741
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31742
|
+
*/
|
|
31555
31743
|
var RecordingDeviceUsageSchema = zod.z.object({
|
|
31556
31744
|
deviceId: zod.z.number(),
|
|
31745
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31746
|
+
* recordings locations. */
|
|
31557
31747
|
usedBytes: zod.z.number(),
|
|
31558
31748
|
/**
|
|
31559
|
-
* Start of this camera's OLDEST
|
|
31749
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
31560
31750
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
31561
31751
|
* only honest answer to "is retention actually holding?" per camera.
|
|
31562
31752
|
*
|
|
@@ -31566,7 +31756,24 @@ var RecordingDeviceUsageSchema = zod.z.object({
|
|
|
31566
31756
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
31567
31757
|
* the later of the two.
|
|
31568
31758
|
*/
|
|
31569
|
-
oldestMs: zod.z.number().nullable().optional()
|
|
31759
|
+
oldestMs: zod.z.number().nullable().optional(),
|
|
31760
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31761
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31762
|
+
segments: zod.z.number().optional(),
|
|
31763
|
+
/**
|
|
31764
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31765
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31766
|
+
*
|
|
31767
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31768
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31769
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31770
|
+
* it, and so does a node whose ledger could not answer.
|
|
31771
|
+
*/
|
|
31772
|
+
residentBytes: zod.z.number().optional(),
|
|
31773
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31774
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31775
|
+
* retention. `null` = nothing resident. */
|
|
31776
|
+
residentOldestMs: zod.z.number().nullable().optional()
|
|
31570
31777
|
});
|
|
31571
31778
|
/** Recording storage usage + capacity for one storage location. */
|
|
31572
31779
|
var RecordingLocationUsageSchema = zod.z.object({
|
|
@@ -31604,6 +31811,17 @@ var RecordingStorageUsageSchema = zod.z.object({
|
|
|
31604
31811
|
totalUsedBytes: zod.z.number(),
|
|
31605
31812
|
devices: zod.z.array(RecordingDeviceUsageSchema),
|
|
31606
31813
|
/**
|
|
31814
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31815
|
+
* disks (D418).
|
|
31816
|
+
*
|
|
31817
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31818
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31819
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31820
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31821
|
+
* and its rows are residency.
|
|
31822
|
+
*/
|
|
31823
|
+
devicesRead: zod.z.enum(["archive", "unavailable"]).optional(),
|
|
31824
|
+
/**
|
|
31607
31825
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
31608
31826
|
* of the payload without it: the hub serves this method through a BAKED
|
|
31609
31827
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -31774,7 +31992,14 @@ var recordingCapability = {
|
|
|
31774
31992
|
getAvailability: method(zod.z.object({
|
|
31775
31993
|
deviceId: zod.z.number(),
|
|
31776
31994
|
fromMs: zod.z.number(),
|
|
31777
|
-
toMs: zod.z.number()
|
|
31995
|
+
toMs: zod.z.number(),
|
|
31996
|
+
/**
|
|
31997
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31998
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31999
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
32000
|
+
* for.
|
|
32001
|
+
*/
|
|
32002
|
+
profile: zod.z.string().optional()
|
|
31778
32003
|
}), RecordingAvailabilitySchema, {
|
|
31779
32004
|
kind: "query",
|
|
31780
32005
|
auth: "protected"
|
|
@@ -40206,6 +40431,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
40206
40431
|
addonId: null,
|
|
40207
40432
|
access: "view"
|
|
40208
40433
|
},
|
|
40434
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
40435
|
+
capName: "pipeline-runner",
|
|
40436
|
+
capScope: "system",
|
|
40437
|
+
addonId: null,
|
|
40438
|
+
access: "view"
|
|
40439
|
+
},
|
|
40440
|
+
"pipelineRunner.parkTrackFrame": {
|
|
40441
|
+
capName: "pipeline-runner",
|
|
40442
|
+
capScope: "system",
|
|
40443
|
+
addonId: null,
|
|
40444
|
+
access: "create"
|
|
40445
|
+
},
|
|
40446
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
40447
|
+
capName: "pipeline-runner",
|
|
40448
|
+
capScope: "system",
|
|
40449
|
+
addonId: null,
|
|
40450
|
+
access: "create"
|
|
40451
|
+
},
|
|
40209
40452
|
"pipelineRunner.reportMotion": {
|
|
40210
40453
|
capName: "pipeline-runner",
|
|
40211
40454
|
capScope: "system",
|
|
@@ -43483,6 +43726,21 @@ Object.freeze({
|
|
|
43483
43726
|
form: "single",
|
|
43484
43727
|
optional: false
|
|
43485
43728
|
}],
|
|
43729
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
43730
|
+
name: "deviceId",
|
|
43731
|
+
form: "single",
|
|
43732
|
+
optional: false
|
|
43733
|
+
}],
|
|
43734
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
43735
|
+
name: "deviceId",
|
|
43736
|
+
form: "single",
|
|
43737
|
+
optional: false
|
|
43738
|
+
}],
|
|
43739
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
43740
|
+
name: "deviceId",
|
|
43741
|
+
form: "single",
|
|
43742
|
+
optional: false
|
|
43743
|
+
}],
|
|
43486
43744
|
"pipelineRunner.reportMotion": [{
|
|
43487
43745
|
name: "deviceId",
|
|
43488
43746
|
form: "single",
|
|
@@ -44466,7 +44724,7 @@ var PreviewTextField = zod.z.string().max(200);
|
|
|
44466
44724
|
* Whether the notification's preview is a STILL or a short animation.
|
|
44467
44725
|
*
|
|
44468
44726
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
44469
|
-
* rule)"* —
|
|
44727
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
44470
44728
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
44471
44729
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
44472
44730
|
* simply applies it to a dozen frames sampled across the render and assembles
|