@camstack/types 1.2.173 → 1.2.175
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 +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/battery.cap.d.ts +2 -2
- package/dist/capabilities/camera-credentials.cap.d.ts +1 -1
- package/dist/capabilities/capability-definition.d.ts +2 -2
- package/dist/capabilities/device-manager.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/notification-rules.cap.d.ts +11 -11
- package/dist/capabilities/pipeline-analytics.cap.d.ts +31 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +162 -0
- package/dist/capabilities/recording.cap.d.ts +35 -2
- package/dist/device/base-device-provider.d.ts +1 -1
- package/dist/device/device-runtime-state.d.ts +2 -2
- package/dist/device/device.d.ts +1 -1
- package/dist/device/source-info.d.ts +1 -1
- package/dist/enums/event-category.d.ts +0 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-BVo6ta6_.js → event-category-BNJ9EE5B.js} +0 -1
- package/dist/{event-category-CnLqLOKs.mjs → event-category-DAXzJeTX.mjs} +0 -1
- package/dist/generated/addon-api.d.ts +21 -0
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/index.js +247 -18
- package/dist/index.mjs +244 -19
- package/dist/interfaces/addon.d.ts +1 -1
- package/dist/interfaces/config-ui.d.ts +1 -1
- package/dist/interfaces/context.d.ts +2 -2
- package/dist/interfaces/device-provider.d.ts +1 -1
- package/dist/interfaces/event-bus.d.ts +1 -1
- package/dist/interfaces/pipeline-runner-capability.d.ts +28 -0
- package/dist/interfaces/stream-broker.d.ts +7 -7
- package/dist/notification/timelapse-rule.d.ts +1 -1
- package/dist/{sleep-Bo9cUOXp.js → sleep-CTHjJilA.js} +5 -2
- package/dist/{sleep-DMghvp8F.mjs → sleep-ox21Ig4I.mjs} +5 -2
- package/dist/types/detection.d.ts +3 -5
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 372 methods carry a device reference, of which
|
|
10
|
+
* 137 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_event_category = require("./event-category-BNJ9EE5B.js");
|
|
3
|
+
const require_sleep = require("./sleep-CTHjJilA.js");
|
|
4
4
|
const require_canonical_hash = require("./canonical-hash-DNV8S5ET.js");
|
|
5
5
|
const require_enums = require("./enums.js");
|
|
6
6
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
@@ -10202,7 +10202,7 @@ var detectionPipelineCapability = {
|
|
|
10202
10202
|
var SourceInfoSchema = zod.z.object({
|
|
10203
10203
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
10204
10204
|
id: zod.z.string(),
|
|
10205
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
10205
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
10206
10206
|
system: zod.z.string(),
|
|
10207
10207
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
10208
10208
|
* Used to detect rename when `id` changes. */
|
|
@@ -10215,7 +10215,7 @@ var SourceInfoSchema = zod.z.object({
|
|
|
10215
10215
|
/**
|
|
10216
10216
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
10217
10217
|
* when no upstream value has been persisted. Keeps non-migrated providers
|
|
10218
|
-
* (Reolink / Hikvision / ONVIF /
|
|
10218
|
+
* (Reolink / Hikvision / ONVIF / RTSP) functional without code
|
|
10219
10219
|
* changes — `id` reuses the CamStack stableId, `system` reuses the addon
|
|
10220
10220
|
* id. Real upstream identity replaces this once a provider migrates and
|
|
10221
10221
|
* calls `updateSourceInfo()` with concrete values.
|
|
@@ -10974,7 +10974,7 @@ var deviceProviderCapability = {
|
|
|
10974
10974
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
10975
10975
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
10976
10976
|
*
|
|
10977
|
-
* All device provider addons (rtsp, onvif,
|
|
10977
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
10978
10978
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
10979
10979
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
10980
10980
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -16517,7 +16517,7 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
16517
16517
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
16518
16518
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
16519
16519
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
16520
|
-
* 30 is
|
|
16520
|
+
* 30 s is a widely shipped value for the same decision.
|
|
16521
16521
|
*
|
|
16522
16522
|
* ### What it replaces
|
|
16523
16523
|
*
|
|
@@ -19414,6 +19414,13 @@ var ZoneCrossingSchema = zod.z.object({
|
|
|
19414
19414
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19415
19415
|
zoneName: zod.z.string().optional()
|
|
19416
19416
|
});
|
|
19417
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19418
|
+
var ZoneOverlapSchema = zod.z.object({
|
|
19419
|
+
zoneId: zod.z.string(),
|
|
19420
|
+
zoneName: zod.z.string().optional(),
|
|
19421
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19422
|
+
overlapPct: zod.z.number()
|
|
19423
|
+
});
|
|
19417
19424
|
var ObjectEventSchema = zod.z.object({
|
|
19418
19425
|
...BaseEventFields,
|
|
19419
19426
|
kind: zod.z.literal("object"),
|
|
@@ -19438,6 +19445,35 @@ var ObjectEventSchema = zod.z.object({
|
|
|
19438
19445
|
bbox: BoundingBoxSchema.optional(),
|
|
19439
19446
|
/** Heavy JSON — omitted in slim projection. */
|
|
19440
19447
|
zones: zod.z.array(zod.z.string()).readonly().optional(),
|
|
19448
|
+
/**
|
|
19449
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19450
|
+
* the BOX area.
|
|
19451
|
+
*
|
|
19452
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19453
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19454
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19455
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19456
|
+
* else to judge by.
|
|
19457
|
+
*/
|
|
19458
|
+
zoneOverlaps: zod.z.array(ZoneOverlapSchema).readonly().optional(),
|
|
19459
|
+
/**
|
|
19460
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19461
|
+
* has no track and never will.
|
|
19462
|
+
*
|
|
19463
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19464
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19465
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19466
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19467
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19468
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19469
|
+
* event at all.
|
|
19470
|
+
*
|
|
19471
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19472
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19473
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19474
|
+
* history is asking for something that never existed.
|
|
19475
|
+
*/
|
|
19476
|
+
spawnRefused: zod.z.string().optional(),
|
|
19441
19477
|
/** Omitted in slim projection. */
|
|
19442
19478
|
state: TrackStateSchema.optional(),
|
|
19443
19479
|
/**
|
|
@@ -21139,6 +21175,60 @@ var NativeCropResultSchema = zod.z.object({
|
|
|
21139
21175
|
*/
|
|
21140
21176
|
tier: zod.z.enum(["native", "ram-fullframe"]).optional()
|
|
21141
21177
|
});
|
|
21178
|
+
/**
|
|
21179
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
21180
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21181
|
+
*
|
|
21182
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
21183
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
21184
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
21185
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
21186
|
+
* window, cut by the runner at uncapped native resolution.
|
|
21187
|
+
*
|
|
21188
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
21189
|
+
*/
|
|
21190
|
+
var ParkedFrameKindSchema = zod.z.enum(["keyFrame", "thumbnail"]);
|
|
21191
|
+
/**
|
|
21192
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
21193
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
21194
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
21195
|
+
* never a reason to retry in a loop.
|
|
21196
|
+
*
|
|
21197
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
21198
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
21199
|
+
* carries the runner's own miss reason.
|
|
21200
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
21201
|
+
*/
|
|
21202
|
+
var ParkRefusalSchema = zod.z.enum(["handle-gone", "encode-failed"]);
|
|
21203
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
21204
|
+
var ParkTrackFrameResultSchema = zod.z.discriminatedUnion("parked", [zod.z.object({
|
|
21205
|
+
parked: zod.z.literal(true),
|
|
21206
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
21207
|
+
nodeId: zod.z.string(),
|
|
21208
|
+
width: zod.z.number().int().positive(),
|
|
21209
|
+
height: zod.z.number().int().positive(),
|
|
21210
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
21211
|
+
bytes: zod.z.number().int().nonnegative(),
|
|
21212
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
21213
|
+
replaced: zod.z.boolean()
|
|
21214
|
+
}), zod.z.object({
|
|
21215
|
+
parked: zod.z.literal(false),
|
|
21216
|
+
nodeId: zod.z.string(),
|
|
21217
|
+
reason: ParkRefusalSchema,
|
|
21218
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
21219
|
+
handleAgeMs: zod.z.number().nullable(),
|
|
21220
|
+
detail: zod.z.string().optional()
|
|
21221
|
+
})]);
|
|
21222
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21223
|
+
var ParkedTrackFrameSchema = zod.z.object({
|
|
21224
|
+
jpeg: zod.z.string(),
|
|
21225
|
+
width: zod.z.number().int().positive(),
|
|
21226
|
+
height: zod.z.number().int().positive(),
|
|
21227
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
21228
|
+
timestamp: zod.z.number(),
|
|
21229
|
+
/** When the node stored it (the node's clock). */
|
|
21230
|
+
parkedAt: zod.z.number()
|
|
21231
|
+
});
|
|
21142
21232
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
21143
21233
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
21144
21234
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -21528,7 +21618,7 @@ var RunnerCameraConfigSchema = zod.z.object({
|
|
|
21528
21618
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
21529
21619
|
* analyzer providers) running on decoded frames in this runner.
|
|
21530
21620
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
21531
|
-
* analytics
|
|
21621
|
+
* analytics). The provider emits ProviderMotion
|
|
21532
21622
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21533
21623
|
*/
|
|
21534
21624
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -22098,7 +22188,60 @@ var pipelineRunnerCapability = {
|
|
|
22098
22188
|
className: zod.z.string(),
|
|
22099
22189
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
22100
22190
|
sourceDeviceId: zod.z.number()
|
|
22101
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
22191
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
22192
|
+
/**
|
|
22193
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
22194
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
22195
|
+
*
|
|
22196
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
22197
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
22198
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
22199
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
22200
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
22201
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
22202
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
22203
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
22204
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
22205
|
+
* encode at a decision point, never a stream.
|
|
22206
|
+
*
|
|
22207
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
22208
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
22209
|
+
* is ignored. Bounded per device and per node on the runner
|
|
22210
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
22211
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
22212
|
+
* handle's measured age — it is never retried into a loop.
|
|
22213
|
+
*/
|
|
22214
|
+
parkTrackFrame: require_sleep.method(zod.z.object({
|
|
22215
|
+
deviceId: zod.z.number(),
|
|
22216
|
+
/** Opaque to the runner — the hub's track id. */
|
|
22217
|
+
trackId: zod.z.string(),
|
|
22218
|
+
kind: ParkedFrameKindSchema,
|
|
22219
|
+
handle: require_sleep.FrameHandleSchema,
|
|
22220
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
22221
|
+
bbox: NativeCropBboxSchema,
|
|
22222
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
22223
|
+
maxWidth: zod.z.number().int().positive().optional(),
|
|
22224
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
22225
|
+
timestamp: zod.z.number()
|
|
22226
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
22227
|
+
/**
|
|
22228
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
22229
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
22230
|
+
* nothing was parked under that key on this node — never "too old".
|
|
22231
|
+
*/
|
|
22232
|
+
getParkedTrackFrame: require_sleep.method(zod.z.object({
|
|
22233
|
+
deviceId: zod.z.number(),
|
|
22234
|
+
trackId: zod.z.string(),
|
|
22235
|
+
kind: ParkedFrameKindSchema
|
|
22236
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
22237
|
+
/**
|
|
22238
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
22239
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
22240
|
+
*/
|
|
22241
|
+
releaseParkedTrackFrames: require_sleep.method(zod.z.object({
|
|
22242
|
+
deviceId: zod.z.number(),
|
|
22243
|
+
trackId: zod.z.string()
|
|
22244
|
+
}), zod.z.object({ released: zod.z.number().int().nonnegative() }), { kind: "mutation" })
|
|
22102
22245
|
}
|
|
22103
22246
|
};
|
|
22104
22247
|
//#endregion
|
|
@@ -26518,8 +26661,8 @@ onStatusChanged: { data: zod.z.object({
|
|
|
26518
26661
|
/**
|
|
26519
26662
|
* Runtime-state slice — every provider that registers this cap
|
|
26520
26663
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
26521
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
26522
|
-
*
|
|
26664
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
26665
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
26523
26666
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
26524
26667
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
26525
26668
|
* the underlying driver.
|
|
@@ -26677,7 +26820,7 @@ var buttonCapability = {
|
|
|
26677
26820
|
*
|
|
26678
26821
|
* Implementations:
|
|
26679
26822
|
* - Each camera-providing addon registers this cap natively per
|
|
26680
|
-
* device (Reolink, Hikvision, RTSP,
|
|
26823
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
26681
26824
|
* - Returns a snapshot from the persisted device config blob — no
|
|
26682
26825
|
* extra round-trip to the camera, no probing.
|
|
26683
26826
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -29000,7 +29143,7 @@ var AvailableIntegrationTypeSchema = zod.z.object({
|
|
|
29000
29143
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
29001
29144
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
29002
29145
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
29003
|
-
* `device-provider` integrations (Reolink/
|
|
29146
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
29004
29147
|
* legacy config → discovery flow.
|
|
29005
29148
|
*/
|
|
29006
29149
|
kind: zod.z.enum(["device-adoption", "device-provider"]),
|
|
@@ -33237,13 +33380,31 @@ var RecordingManifestSchema = zod.z.object({
|
|
|
33237
33380
|
*/
|
|
33238
33381
|
playbackEndpoints: zod.z.array(zod.z.string())
|
|
33239
33382
|
});
|
|
33240
|
-
/**
|
|
33241
|
-
*
|
|
33383
|
+
/**
|
|
33384
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
33385
|
+
* across every profile and every resolvable location on this node.
|
|
33386
|
+
*
|
|
33387
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
33388
|
+
*
|
|
33389
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
33390
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
33391
|
+
* this camera writes to, so the two can be added up and compared.
|
|
33392
|
+
*
|
|
33393
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
33394
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
33395
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
33396
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
33397
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
33398
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
33399
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
33400
|
+
*/
|
|
33242
33401
|
var RecordingDeviceUsageSchema = zod.z.object({
|
|
33243
33402
|
deviceId: zod.z.number(),
|
|
33403
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
33404
|
+
* recordings locations. */
|
|
33244
33405
|
usedBytes: zod.z.number(),
|
|
33245
33406
|
/**
|
|
33246
|
-
* Start of this camera's OLDEST
|
|
33407
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
33247
33408
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
33248
33409
|
* only honest answer to "is retention actually holding?" per camera.
|
|
33249
33410
|
*
|
|
@@ -33253,7 +33414,24 @@ var RecordingDeviceUsageSchema = zod.z.object({
|
|
|
33253
33414
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
33254
33415
|
* the later of the two.
|
|
33255
33416
|
*/
|
|
33256
|
-
oldestMs: zod.z.number().nullable().optional()
|
|
33417
|
+
oldestMs: zod.z.number().nullable().optional(),
|
|
33418
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
33419
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
33420
|
+
segments: zod.z.number().optional(),
|
|
33421
|
+
/**
|
|
33422
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
33423
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
33424
|
+
*
|
|
33425
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
33426
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
33427
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
33428
|
+
* it, and so does a node whose ledger could not answer.
|
|
33429
|
+
*/
|
|
33430
|
+
residentBytes: zod.z.number().optional(),
|
|
33431
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
33432
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
33433
|
+
* retention. `null` = nothing resident. */
|
|
33434
|
+
residentOldestMs: zod.z.number().nullable().optional()
|
|
33257
33435
|
});
|
|
33258
33436
|
/** Recording storage usage + capacity for one storage location. */
|
|
33259
33437
|
var RecordingLocationUsageSchema = zod.z.object({
|
|
@@ -33291,6 +33469,17 @@ var RecordingStorageUsageSchema = zod.z.object({
|
|
|
33291
33469
|
totalUsedBytes: zod.z.number(),
|
|
33292
33470
|
devices: zod.z.array(RecordingDeviceUsageSchema),
|
|
33293
33471
|
/**
|
|
33472
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
33473
|
+
* disks (D418).
|
|
33474
|
+
*
|
|
33475
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
33476
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
33477
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
33478
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
33479
|
+
* and its rows are residency.
|
|
33480
|
+
*/
|
|
33481
|
+
devicesRead: zod.z.enum(["archive", "unavailable"]).optional(),
|
|
33482
|
+
/**
|
|
33294
33483
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
33295
33484
|
* of the payload without it: the hub serves this method through a BAKED
|
|
33296
33485
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -38294,7 +38483,7 @@ function toDeviceSummary(device, addonId) {
|
|
|
38294
38483
|
};
|
|
38295
38484
|
}
|
|
38296
38485
|
/**
|
|
38297
|
-
* Base class for device-provider addons (rtsp, onvif
|
|
38486
|
+
* Base class for device-provider addons (rtsp, onvif).
|
|
38298
38487
|
*
|
|
38299
38488
|
* Provides default implementations for the common device-provider cap
|
|
38300
38489
|
* methods (`start`, `stop`, `getStatus`, `getDevices`, `supportsDiscovery`,
|
|
@@ -45750,6 +45939,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
45750
45939
|
addonId: null,
|
|
45751
45940
|
access: "view"
|
|
45752
45941
|
},
|
|
45942
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
45943
|
+
capName: "pipeline-runner",
|
|
45944
|
+
capScope: "system",
|
|
45945
|
+
addonId: null,
|
|
45946
|
+
access: "view"
|
|
45947
|
+
},
|
|
45948
|
+
"pipelineRunner.parkTrackFrame": {
|
|
45949
|
+
capName: "pipeline-runner",
|
|
45950
|
+
capScope: "system",
|
|
45951
|
+
addonId: null,
|
|
45952
|
+
access: "create"
|
|
45953
|
+
},
|
|
45954
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
45955
|
+
capName: "pipeline-runner",
|
|
45956
|
+
capScope: "system",
|
|
45957
|
+
addonId: null,
|
|
45958
|
+
access: "create"
|
|
45959
|
+
},
|
|
45753
45960
|
"pipelineRunner.reportMotion": {
|
|
45754
45961
|
capName: "pipeline-runner",
|
|
45755
45962
|
capScope: "system",
|
|
@@ -49296,6 +49503,21 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
49296
49503
|
form: "single",
|
|
49297
49504
|
optional: false
|
|
49298
49505
|
}],
|
|
49506
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
49507
|
+
name: "deviceId",
|
|
49508
|
+
form: "single",
|
|
49509
|
+
optional: false
|
|
49510
|
+
}],
|
|
49511
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
49512
|
+
name: "deviceId",
|
|
49513
|
+
form: "single",
|
|
49514
|
+
optional: false
|
|
49515
|
+
}],
|
|
49516
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
49517
|
+
name: "deviceId",
|
|
49518
|
+
form: "single",
|
|
49519
|
+
optional: false
|
|
49520
|
+
}],
|
|
49299
49521
|
"pipelineRunner.reportMotion": [{
|
|
49300
49522
|
name: "deviceId",
|
|
49301
49523
|
form: "single",
|
|
@@ -49975,6 +50197,9 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
|
|
|
49975
50197
|
"pipelineRunner.attachCamera",
|
|
49976
50198
|
"pipelineRunner.detachCamera",
|
|
49977
50199
|
"pipelineRunner.getCameraMetrics",
|
|
50200
|
+
"pipelineRunner.getParkedTrackFrame",
|
|
50201
|
+
"pipelineRunner.parkTrackFrame",
|
|
50202
|
+
"pipelineRunner.releaseParkedTrackFrames",
|
|
49978
50203
|
"pipelineRunner.reportMotion",
|
|
49979
50204
|
"pipelineRunner.runDetailSubtree",
|
|
49980
50205
|
"pipelineRunner.runStatelessStep",
|
|
@@ -52239,7 +52464,7 @@ var PreviewTextField = zod.z.string().max(200);
|
|
|
52239
52464
|
* Whether the notification's preview is a STILL or a short animation.
|
|
52240
52465
|
*
|
|
52241
52466
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
52242
|
-
* rule)"* —
|
|
52467
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
52243
52468
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
52244
52469
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
52245
52470
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -55763,6 +55988,10 @@ exports.PROVIDER_KIND_CAP_NAMES = PROVIDER_KIND_CAP_NAMES;
|
|
|
55763
55988
|
exports.PYTHON_SCRIPT = PYTHON_SCRIPT;
|
|
55764
55989
|
exports.PackageUpdateSchema = PackageUpdateSchema;
|
|
55765
55990
|
exports.PackageVersionInfoSchema = PackageVersionInfoSchema;
|
|
55991
|
+
exports.ParkRefusalSchema = ParkRefusalSchema;
|
|
55992
|
+
exports.ParkTrackFrameResultSchema = ParkTrackFrameResultSchema;
|
|
55993
|
+
exports.ParkedFrameKindSchema = ParkedFrameKindSchema;
|
|
55994
|
+
exports.ParkedTrackFrameSchema = ParkedTrackFrameSchema;
|
|
55766
55995
|
exports.PasskeyLoginMethodSchema = PasskeyLoginMethodSchema;
|
|
55767
55996
|
exports.PasskeySummarySchema = PasskeySummarySchema;
|
|
55768
55997
|
exports.PcmSampleFormatSchema = PcmSampleFormatSchema;
|