@camstack/addon-remote-storage 1.2.89 → 1.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-B2_dMV3o.mjs → shared-Cle4oyGQ.mjs} +242 -18
- package/dist/{shared-DGPc5-3O.js → shared-cpT4iCZr.js} +242 -18
- package/dist/smb.addon.js +5 -5
- package/dist/smb.addon.mjs +5 -5
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/s3.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-cpT4iCZr.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
8
8
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/s3.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Cle4oyGQ.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
4
4
|
import { Upload } from "@aws-sdk/lib-storage";
|
package/dist/sftp.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-cpT4iCZr.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Cle4oyGQ.mjs";
|
|
2
2
|
import { Client } from "ssh2";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
//#region src/providers/sftp/sftp-config-schema.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import * as path from "node:path";
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -592,7 +592,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
592
592
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
593
593
|
*/
|
|
594
594
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
595
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
596
595
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
597
596
|
/**
|
|
598
597
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12508,7 +12507,7 @@ DeviceType.Camera;
|
|
|
12508
12507
|
var SourceInfoSchema = object({
|
|
12509
12508
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12510
12509
|
id: string(),
|
|
12511
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12510
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12512
12511
|
system: string(),
|
|
12513
12512
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12514
12513
|
* Used to detect rename when `id` changes. */
|
|
@@ -12995,7 +12994,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12995
12994
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
12996
12995
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
12997
12996
|
*
|
|
12998
|
-
* All device provider addons (rtsp, onvif,
|
|
12997
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
12999
12998
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13000
12999
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13001
13000
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17005,7 +17004,7 @@ var NcRuleInputSchema = object({
|
|
|
17005
17004
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17006
17005
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17007
17006
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17008
|
-
* 30 is
|
|
17007
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17009
17008
|
*
|
|
17010
17009
|
* ### What it replaces
|
|
17011
17010
|
*
|
|
@@ -19047,6 +19046,13 @@ var ZoneCrossingSchema = object({
|
|
|
19047
19046
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19048
19047
|
zoneName: string().optional()
|
|
19049
19048
|
});
|
|
19049
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19050
|
+
var ZoneOverlapSchema = object({
|
|
19051
|
+
zoneId: string(),
|
|
19052
|
+
zoneName: string().optional(),
|
|
19053
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19054
|
+
overlapPct: number()
|
|
19055
|
+
});
|
|
19050
19056
|
var ObjectEventSchema = object({
|
|
19051
19057
|
...BaseEventFields,
|
|
19052
19058
|
kind: literal("object"),
|
|
@@ -19071,6 +19077,35 @@ var ObjectEventSchema = object({
|
|
|
19071
19077
|
bbox: BoundingBoxSchema.optional(),
|
|
19072
19078
|
/** Heavy JSON — omitted in slim projection. */
|
|
19073
19079
|
zones: array(string()).readonly().optional(),
|
|
19080
|
+
/**
|
|
19081
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19082
|
+
* the BOX area.
|
|
19083
|
+
*
|
|
19084
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19085
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19086
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19087
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19088
|
+
* else to judge by.
|
|
19089
|
+
*/
|
|
19090
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19091
|
+
/**
|
|
19092
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19093
|
+
* has no track and never will.
|
|
19094
|
+
*
|
|
19095
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19096
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19097
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19098
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19099
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19100
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19101
|
+
* event at all.
|
|
19102
|
+
*
|
|
19103
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19104
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19105
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19106
|
+
* history is asking for something that never existed.
|
|
19107
|
+
*/
|
|
19108
|
+
spawnRefused: string().optional(),
|
|
19074
19109
|
/** Omitted in slim projection. */
|
|
19075
19110
|
state: TrackStateSchema.optional(),
|
|
19076
19111
|
/**
|
|
@@ -19497,7 +19532,17 @@ var EventDensityBucketSchema = object({
|
|
|
19497
19532
|
bucketStart: number(),
|
|
19498
19533
|
motion: number().int(),
|
|
19499
19534
|
object: number().int(),
|
|
19500
|
-
audio: number().int()
|
|
19535
|
+
audio: number().int(),
|
|
19536
|
+
/**
|
|
19537
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19538
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19539
|
+
*
|
|
19540
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19541
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19542
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19543
|
+
* the count-on-a-level-meter did.
|
|
19544
|
+
*/
|
|
19545
|
+
audioDbfs: number().optional()
|
|
19501
19546
|
});
|
|
19502
19547
|
/**
|
|
19503
19548
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20144,6 +20189,60 @@ var NativeCropResultSchema = object({
|
|
|
20144
20189
|
*/
|
|
20145
20190
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20146
20191
|
});
|
|
20192
|
+
/**
|
|
20193
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20194
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20195
|
+
*
|
|
20196
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20197
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20198
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20199
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20200
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20201
|
+
*
|
|
20202
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20203
|
+
*/
|
|
20204
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20205
|
+
/**
|
|
20206
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20207
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20208
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20209
|
+
* never a reason to retry in a loop.
|
|
20210
|
+
*
|
|
20211
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20212
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20213
|
+
* carries the runner's own miss reason.
|
|
20214
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20215
|
+
*/
|
|
20216
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20217
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20218
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20219
|
+
parked: literal(true),
|
|
20220
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20221
|
+
nodeId: string(),
|
|
20222
|
+
width: number().int().positive(),
|
|
20223
|
+
height: number().int().positive(),
|
|
20224
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20225
|
+
bytes: number().int().nonnegative(),
|
|
20226
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20227
|
+
replaced: boolean()
|
|
20228
|
+
}), object({
|
|
20229
|
+
parked: literal(false),
|
|
20230
|
+
nodeId: string(),
|
|
20231
|
+
reason: ParkRefusalSchema,
|
|
20232
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20233
|
+
handleAgeMs: number().nullable(),
|
|
20234
|
+
detail: string().optional()
|
|
20235
|
+
})]);
|
|
20236
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20237
|
+
var ParkedTrackFrameSchema = object({
|
|
20238
|
+
jpeg: string(),
|
|
20239
|
+
width: number().int().positive(),
|
|
20240
|
+
height: number().int().positive(),
|
|
20241
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20242
|
+
timestamp: number(),
|
|
20243
|
+
/** When the node stored it (the node's clock). */
|
|
20244
|
+
parkedAt: number()
|
|
20245
|
+
});
|
|
20147
20246
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20148
20247
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20149
20248
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20533,7 +20632,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20533
20632
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20534
20633
|
* analyzer providers) running on decoded frames in this runner.
|
|
20535
20634
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20536
|
-
* analytics
|
|
20635
|
+
* analytics). The provider emits ProviderMotion
|
|
20537
20636
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20538
20637
|
*/
|
|
20539
20638
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20775,7 +20874,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20775
20874
|
className: string(),
|
|
20776
20875
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20777
20876
|
sourceDeviceId: number()
|
|
20778
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
20877
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
20878
|
+
deviceId: number(),
|
|
20879
|
+
/** Opaque to the runner — the hub's track id. */
|
|
20880
|
+
trackId: string(),
|
|
20881
|
+
kind: ParkedFrameKindSchema,
|
|
20882
|
+
handle: FrameHandleSchema,
|
|
20883
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
20884
|
+
bbox: NativeCropBboxSchema,
|
|
20885
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
20886
|
+
maxWidth: number().int().positive().optional(),
|
|
20887
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
20888
|
+
timestamp: number()
|
|
20889
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
20890
|
+
deviceId: number(),
|
|
20891
|
+
trackId: string(),
|
|
20892
|
+
kind: ParkedFrameKindSchema
|
|
20893
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
20894
|
+
deviceId: number(),
|
|
20895
|
+
trackId: string()
|
|
20896
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20779
20897
|
var CameraPipelineConfigSchema = object({
|
|
20780
20898
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20781
20899
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23764,7 +23882,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23764
23882
|
*
|
|
23765
23883
|
* Implementations:
|
|
23766
23884
|
* - Each camera-providing addon registers this cap natively per
|
|
23767
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23885
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23768
23886
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23769
23887
|
* extra round-trip to the camera, no probing.
|
|
23770
23888
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25150,7 +25268,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25150
25268
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25151
25269
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25152
25270
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25153
|
-
* `device-provider` integrations (Reolink/
|
|
25271
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25154
25272
|
* legacy config → discovery flow.
|
|
25155
25273
|
*/
|
|
25156
25274
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27651,7 +27769,23 @@ var RecordingRangeSchema = object({
|
|
|
27651
27769
|
});
|
|
27652
27770
|
var RecordingAvailabilitySchema = object({
|
|
27653
27771
|
deviceId: number(),
|
|
27654
|
-
ranges: array(RecordingRangeSchema)
|
|
27772
|
+
ranges: array(RecordingRangeSchema),
|
|
27773
|
+
/**
|
|
27774
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27775
|
+
* describes (D433).
|
|
27776
|
+
*
|
|
27777
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27778
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27779
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27780
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27781
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27782
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27783
|
+
* UI could not see it.
|
|
27784
|
+
*
|
|
27785
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27786
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27787
|
+
*/
|
|
27788
|
+
profilesWithFootage: array(string())
|
|
27655
27789
|
});
|
|
27656
27790
|
var RecordingDaysSchema = object({
|
|
27657
27791
|
deviceId: number(),
|
|
@@ -27677,7 +27811,11 @@ var RecordingDaysSchema = object({
|
|
|
27677
27811
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27678
27812
|
deviceId: number(),
|
|
27679
27813
|
read: _enum(["read", "unreadable"]),
|
|
27680
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27814
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27815
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27816
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27817
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27818
|
+
profilesWithFootage: array(string()).readonly()
|
|
27681
27819
|
});
|
|
27682
27820
|
/**
|
|
27683
27821
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27707,13 +27845,31 @@ var RecordingManifestSchema = object({
|
|
|
27707
27845
|
*/
|
|
27708
27846
|
playbackEndpoints: array(string())
|
|
27709
27847
|
});
|
|
27710
|
-
/**
|
|
27711
|
-
*
|
|
27848
|
+
/**
|
|
27849
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27850
|
+
* across every profile and every resolvable location on this node.
|
|
27851
|
+
*
|
|
27852
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27853
|
+
*
|
|
27854
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27855
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27856
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27857
|
+
*
|
|
27858
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27859
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27860
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27861
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27862
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27863
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27864
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27865
|
+
*/
|
|
27712
27866
|
var RecordingDeviceUsageSchema = object({
|
|
27713
27867
|
deviceId: number(),
|
|
27868
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27869
|
+
* recordings locations. */
|
|
27714
27870
|
usedBytes: number(),
|
|
27715
27871
|
/**
|
|
27716
|
-
* Start of this camera's OLDEST
|
|
27872
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27717
27873
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27718
27874
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27719
27875
|
*
|
|
@@ -27723,7 +27879,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27723
27879
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27724
27880
|
* the later of the two.
|
|
27725
27881
|
*/
|
|
27726
|
-
oldestMs: number().nullable().optional()
|
|
27882
|
+
oldestMs: number().nullable().optional(),
|
|
27883
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27884
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27885
|
+
segments: number().optional(),
|
|
27886
|
+
/**
|
|
27887
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27888
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27889
|
+
*
|
|
27890
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27891
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27892
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27893
|
+
* it, and so does a node whose ledger could not answer.
|
|
27894
|
+
*/
|
|
27895
|
+
residentBytes: number().optional(),
|
|
27896
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27897
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27898
|
+
* retention. `null` = nothing resident. */
|
|
27899
|
+
residentOldestMs: number().nullable().optional()
|
|
27727
27900
|
});
|
|
27728
27901
|
/** Recording storage usage + capacity for one storage location. */
|
|
27729
27902
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27761,6 +27934,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27761
27934
|
totalUsedBytes: number(),
|
|
27762
27935
|
devices: array(RecordingDeviceUsageSchema),
|
|
27763
27936
|
/**
|
|
27937
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
27938
|
+
* disks (D418).
|
|
27939
|
+
*
|
|
27940
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
27941
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
27942
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
27943
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
27944
|
+
* and its rows are residency.
|
|
27945
|
+
*/
|
|
27946
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
27947
|
+
/**
|
|
27764
27948
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27765
27949
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27766
27950
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -27921,7 +28105,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
27921
28105
|
method(object({
|
|
27922
28106
|
deviceId: number(),
|
|
27923
28107
|
fromMs: number(),
|
|
27924
|
-
toMs: number()
|
|
28108
|
+
toMs: number(),
|
|
28109
|
+
/**
|
|
28110
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28111
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28112
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28113
|
+
* for.
|
|
28114
|
+
*/
|
|
28115
|
+
profile: string().optional()
|
|
27925
28116
|
}), RecordingAvailabilitySchema, {
|
|
27926
28117
|
kind: "query",
|
|
27927
28118
|
auth: "protected"
|
|
@@ -34148,6 +34339,24 @@ Object.freeze({
|
|
|
34148
34339
|
addonId: null,
|
|
34149
34340
|
access: "view"
|
|
34150
34341
|
},
|
|
34342
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34343
|
+
capName: "pipeline-runner",
|
|
34344
|
+
capScope: "system",
|
|
34345
|
+
addonId: null,
|
|
34346
|
+
access: "view"
|
|
34347
|
+
},
|
|
34348
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34349
|
+
capName: "pipeline-runner",
|
|
34350
|
+
capScope: "system",
|
|
34351
|
+
addonId: null,
|
|
34352
|
+
access: "create"
|
|
34353
|
+
},
|
|
34354
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34355
|
+
capName: "pipeline-runner",
|
|
34356
|
+
capScope: "system",
|
|
34357
|
+
addonId: null,
|
|
34358
|
+
access: "create"
|
|
34359
|
+
},
|
|
34151
34360
|
"pipelineRunner.reportMotion": {
|
|
34152
34361
|
capName: "pipeline-runner",
|
|
34153
34362
|
capScope: "system",
|
|
@@ -37425,6 +37634,21 @@ Object.freeze({
|
|
|
37425
37634
|
form: "single",
|
|
37426
37635
|
optional: false
|
|
37427
37636
|
}],
|
|
37637
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37638
|
+
name: "deviceId",
|
|
37639
|
+
form: "single",
|
|
37640
|
+
optional: false
|
|
37641
|
+
}],
|
|
37642
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37643
|
+
name: "deviceId",
|
|
37644
|
+
form: "single",
|
|
37645
|
+
optional: false
|
|
37646
|
+
}],
|
|
37647
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37648
|
+
name: "deviceId",
|
|
37649
|
+
form: "single",
|
|
37650
|
+
optional: false
|
|
37651
|
+
}],
|
|
37428
37652
|
"pipelineRunner.reportMotion": [{
|
|
37429
37653
|
name: "deviceId",
|
|
37430
37654
|
form: "single",
|
|
@@ -38116,7 +38340,7 @@ var PreviewTextField = string().max(200);
|
|
|
38116
38340
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38117
38341
|
*
|
|
38118
38342
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38119
|
-
* rule)"* —
|
|
38343
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38120
38344
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38121
38345
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38122
38346
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
let node_crypto = require("node:crypto");
|
|
24
24
|
let node_path = require("node:path");
|
|
25
25
|
node_path = __toESM(node_path);
|
|
26
|
-
//#region ../types/dist/event-category-
|
|
26
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
27
27
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
28
28
|
EventCategory["SystemBoot"] = "system.boot";
|
|
29
29
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -615,7 +615,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
615
615
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
616
616
|
*/
|
|
617
617
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
618
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
619
618
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
620
619
|
/**
|
|
621
620
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12531,7 +12530,7 @@ DeviceType.Camera;
|
|
|
12531
12530
|
var SourceInfoSchema = object({
|
|
12532
12531
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12533
12532
|
id: string(),
|
|
12534
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12533
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12535
12534
|
system: string(),
|
|
12536
12535
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12537
12536
|
* Used to detect rename when `id` changes. */
|
|
@@ -13018,7 +13017,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13018
13017
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13019
13018
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13020
13019
|
*
|
|
13021
|
-
* All device provider addons (rtsp, onvif,
|
|
13020
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13022
13021
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13023
13022
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13024
13023
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17028,7 +17027,7 @@ var NcRuleInputSchema = object({
|
|
|
17028
17027
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17029
17028
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17030
17029
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17031
|
-
* 30 is
|
|
17030
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17032
17031
|
*
|
|
17033
17032
|
* ### What it replaces
|
|
17034
17033
|
*
|
|
@@ -19070,6 +19069,13 @@ var ZoneCrossingSchema = object({
|
|
|
19070
19069
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19071
19070
|
zoneName: string().optional()
|
|
19072
19071
|
});
|
|
19072
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19073
|
+
var ZoneOverlapSchema = object({
|
|
19074
|
+
zoneId: string(),
|
|
19075
|
+
zoneName: string().optional(),
|
|
19076
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19077
|
+
overlapPct: number()
|
|
19078
|
+
});
|
|
19073
19079
|
var ObjectEventSchema = object({
|
|
19074
19080
|
...BaseEventFields,
|
|
19075
19081
|
kind: literal("object"),
|
|
@@ -19094,6 +19100,35 @@ var ObjectEventSchema = object({
|
|
|
19094
19100
|
bbox: BoundingBoxSchema.optional(),
|
|
19095
19101
|
/** Heavy JSON — omitted in slim projection. */
|
|
19096
19102
|
zones: array(string()).readonly().optional(),
|
|
19103
|
+
/**
|
|
19104
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19105
|
+
* the BOX area.
|
|
19106
|
+
*
|
|
19107
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19108
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19109
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19110
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19111
|
+
* else to judge by.
|
|
19112
|
+
*/
|
|
19113
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19114
|
+
/**
|
|
19115
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19116
|
+
* has no track and never will.
|
|
19117
|
+
*
|
|
19118
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19119
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19120
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19121
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19122
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19123
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19124
|
+
* event at all.
|
|
19125
|
+
*
|
|
19126
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19127
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19128
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19129
|
+
* history is asking for something that never existed.
|
|
19130
|
+
*/
|
|
19131
|
+
spawnRefused: string().optional(),
|
|
19097
19132
|
/** Omitted in slim projection. */
|
|
19098
19133
|
state: TrackStateSchema.optional(),
|
|
19099
19134
|
/**
|
|
@@ -19520,7 +19555,17 @@ var EventDensityBucketSchema = object({
|
|
|
19520
19555
|
bucketStart: number(),
|
|
19521
19556
|
motion: number().int(),
|
|
19522
19557
|
object: number().int(),
|
|
19523
|
-
audio: number().int()
|
|
19558
|
+
audio: number().int(),
|
|
19559
|
+
/**
|
|
19560
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19561
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19562
|
+
*
|
|
19563
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19564
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19565
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19566
|
+
* the count-on-a-level-meter did.
|
|
19567
|
+
*/
|
|
19568
|
+
audioDbfs: number().optional()
|
|
19524
19569
|
});
|
|
19525
19570
|
/**
|
|
19526
19571
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20167,6 +20212,60 @@ var NativeCropResultSchema = object({
|
|
|
20167
20212
|
*/
|
|
20168
20213
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20169
20214
|
});
|
|
20215
|
+
/**
|
|
20216
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20217
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20218
|
+
*
|
|
20219
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20220
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20221
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20222
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20223
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20224
|
+
*
|
|
20225
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20226
|
+
*/
|
|
20227
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20228
|
+
/**
|
|
20229
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20230
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20231
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20232
|
+
* never a reason to retry in a loop.
|
|
20233
|
+
*
|
|
20234
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20235
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20236
|
+
* carries the runner's own miss reason.
|
|
20237
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20238
|
+
*/
|
|
20239
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20240
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20241
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20242
|
+
parked: literal(true),
|
|
20243
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20244
|
+
nodeId: string(),
|
|
20245
|
+
width: number().int().positive(),
|
|
20246
|
+
height: number().int().positive(),
|
|
20247
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20248
|
+
bytes: number().int().nonnegative(),
|
|
20249
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20250
|
+
replaced: boolean()
|
|
20251
|
+
}), object({
|
|
20252
|
+
parked: literal(false),
|
|
20253
|
+
nodeId: string(),
|
|
20254
|
+
reason: ParkRefusalSchema,
|
|
20255
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20256
|
+
handleAgeMs: number().nullable(),
|
|
20257
|
+
detail: string().optional()
|
|
20258
|
+
})]);
|
|
20259
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20260
|
+
var ParkedTrackFrameSchema = object({
|
|
20261
|
+
jpeg: string(),
|
|
20262
|
+
width: number().int().positive(),
|
|
20263
|
+
height: number().int().positive(),
|
|
20264
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20265
|
+
timestamp: number(),
|
|
20266
|
+
/** When the node stored it (the node's clock). */
|
|
20267
|
+
parkedAt: number()
|
|
20268
|
+
});
|
|
20170
20269
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20171
20270
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20172
20271
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20556,7 +20655,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20556
20655
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20557
20656
|
* analyzer providers) running on decoded frames in this runner.
|
|
20558
20657
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20559
|
-
* analytics
|
|
20658
|
+
* analytics). The provider emits ProviderMotion
|
|
20560
20659
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20561
20660
|
*/
|
|
20562
20661
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20798,7 +20897,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20798
20897
|
className: string(),
|
|
20799
20898
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20800
20899
|
sourceDeviceId: number()
|
|
20801
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
20900
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
20901
|
+
deviceId: number(),
|
|
20902
|
+
/** Opaque to the runner — the hub's track id. */
|
|
20903
|
+
trackId: string(),
|
|
20904
|
+
kind: ParkedFrameKindSchema,
|
|
20905
|
+
handle: FrameHandleSchema,
|
|
20906
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
20907
|
+
bbox: NativeCropBboxSchema,
|
|
20908
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
20909
|
+
maxWidth: number().int().positive().optional(),
|
|
20910
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
20911
|
+
timestamp: number()
|
|
20912
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
20913
|
+
deviceId: number(),
|
|
20914
|
+
trackId: string(),
|
|
20915
|
+
kind: ParkedFrameKindSchema
|
|
20916
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
20917
|
+
deviceId: number(),
|
|
20918
|
+
trackId: string()
|
|
20919
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20802
20920
|
var CameraPipelineConfigSchema = object({
|
|
20803
20921
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20804
20922
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23787,7 +23905,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23787
23905
|
*
|
|
23788
23906
|
* Implementations:
|
|
23789
23907
|
* - Each camera-providing addon registers this cap natively per
|
|
23790
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23908
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23791
23909
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23792
23910
|
* extra round-trip to the camera, no probing.
|
|
23793
23911
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25173,7 +25291,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25173
25291
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25174
25292
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25175
25293
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25176
|
-
* `device-provider` integrations (Reolink/
|
|
25294
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25177
25295
|
* legacy config → discovery flow.
|
|
25178
25296
|
*/
|
|
25179
25297
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27674,7 +27792,23 @@ var RecordingRangeSchema = object({
|
|
|
27674
27792
|
});
|
|
27675
27793
|
var RecordingAvailabilitySchema = object({
|
|
27676
27794
|
deviceId: number(),
|
|
27677
|
-
ranges: array(RecordingRangeSchema)
|
|
27795
|
+
ranges: array(RecordingRangeSchema),
|
|
27796
|
+
/**
|
|
27797
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27798
|
+
* describes (D433).
|
|
27799
|
+
*
|
|
27800
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27801
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27802
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27803
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27804
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27805
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27806
|
+
* UI could not see it.
|
|
27807
|
+
*
|
|
27808
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27809
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27810
|
+
*/
|
|
27811
|
+
profilesWithFootage: array(string())
|
|
27678
27812
|
});
|
|
27679
27813
|
var RecordingDaysSchema = object({
|
|
27680
27814
|
deviceId: number(),
|
|
@@ -27700,7 +27834,11 @@ var RecordingDaysSchema = object({
|
|
|
27700
27834
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27701
27835
|
deviceId: number(),
|
|
27702
27836
|
read: _enum(["read", "unreadable"]),
|
|
27703
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27837
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27838
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27839
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27840
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27841
|
+
profilesWithFootage: array(string()).readonly()
|
|
27704
27842
|
});
|
|
27705
27843
|
/**
|
|
27706
27844
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27730,13 +27868,31 @@ var RecordingManifestSchema = object({
|
|
|
27730
27868
|
*/
|
|
27731
27869
|
playbackEndpoints: array(string())
|
|
27732
27870
|
});
|
|
27733
|
-
/**
|
|
27734
|
-
*
|
|
27871
|
+
/**
|
|
27872
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27873
|
+
* across every profile and every resolvable location on this node.
|
|
27874
|
+
*
|
|
27875
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27876
|
+
*
|
|
27877
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27878
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27879
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27880
|
+
*
|
|
27881
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27882
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27883
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27884
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27885
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27886
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27887
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27888
|
+
*/
|
|
27735
27889
|
var RecordingDeviceUsageSchema = object({
|
|
27736
27890
|
deviceId: number(),
|
|
27891
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27892
|
+
* recordings locations. */
|
|
27737
27893
|
usedBytes: number(),
|
|
27738
27894
|
/**
|
|
27739
|
-
* Start of this camera's OLDEST
|
|
27895
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27740
27896
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27741
27897
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27742
27898
|
*
|
|
@@ -27746,7 +27902,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27746
27902
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27747
27903
|
* the later of the two.
|
|
27748
27904
|
*/
|
|
27749
|
-
oldestMs: number().nullable().optional()
|
|
27905
|
+
oldestMs: number().nullable().optional(),
|
|
27906
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27907
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27908
|
+
segments: number().optional(),
|
|
27909
|
+
/**
|
|
27910
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27911
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27912
|
+
*
|
|
27913
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27914
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27915
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27916
|
+
* it, and so does a node whose ledger could not answer.
|
|
27917
|
+
*/
|
|
27918
|
+
residentBytes: number().optional(),
|
|
27919
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27920
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27921
|
+
* retention. `null` = nothing resident. */
|
|
27922
|
+
residentOldestMs: number().nullable().optional()
|
|
27750
27923
|
});
|
|
27751
27924
|
/** Recording storage usage + capacity for one storage location. */
|
|
27752
27925
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27784,6 +27957,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27784
27957
|
totalUsedBytes: number(),
|
|
27785
27958
|
devices: array(RecordingDeviceUsageSchema),
|
|
27786
27959
|
/**
|
|
27960
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
27961
|
+
* disks (D418).
|
|
27962
|
+
*
|
|
27963
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
27964
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
27965
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
27966
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
27967
|
+
* and its rows are residency.
|
|
27968
|
+
*/
|
|
27969
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
27970
|
+
/**
|
|
27787
27971
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27788
27972
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27789
27973
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -27944,7 +28128,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
27944
28128
|
method(object({
|
|
27945
28129
|
deviceId: number(),
|
|
27946
28130
|
fromMs: number(),
|
|
27947
|
-
toMs: number()
|
|
28131
|
+
toMs: number(),
|
|
28132
|
+
/**
|
|
28133
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28134
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28135
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28136
|
+
* for.
|
|
28137
|
+
*/
|
|
28138
|
+
profile: string().optional()
|
|
27948
28139
|
}), RecordingAvailabilitySchema, {
|
|
27949
28140
|
kind: "query",
|
|
27950
28141
|
auth: "protected"
|
|
@@ -34171,6 +34362,24 @@ Object.freeze({
|
|
|
34171
34362
|
addonId: null,
|
|
34172
34363
|
access: "view"
|
|
34173
34364
|
},
|
|
34365
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34366
|
+
capName: "pipeline-runner",
|
|
34367
|
+
capScope: "system",
|
|
34368
|
+
addonId: null,
|
|
34369
|
+
access: "view"
|
|
34370
|
+
},
|
|
34371
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34372
|
+
capName: "pipeline-runner",
|
|
34373
|
+
capScope: "system",
|
|
34374
|
+
addonId: null,
|
|
34375
|
+
access: "create"
|
|
34376
|
+
},
|
|
34377
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34378
|
+
capName: "pipeline-runner",
|
|
34379
|
+
capScope: "system",
|
|
34380
|
+
addonId: null,
|
|
34381
|
+
access: "create"
|
|
34382
|
+
},
|
|
34174
34383
|
"pipelineRunner.reportMotion": {
|
|
34175
34384
|
capName: "pipeline-runner",
|
|
34176
34385
|
capScope: "system",
|
|
@@ -37448,6 +37657,21 @@ Object.freeze({
|
|
|
37448
37657
|
form: "single",
|
|
37449
37658
|
optional: false
|
|
37450
37659
|
}],
|
|
37660
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37661
|
+
name: "deviceId",
|
|
37662
|
+
form: "single",
|
|
37663
|
+
optional: false
|
|
37664
|
+
}],
|
|
37665
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37666
|
+
name: "deviceId",
|
|
37667
|
+
form: "single",
|
|
37668
|
+
optional: false
|
|
37669
|
+
}],
|
|
37670
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37671
|
+
name: "deviceId",
|
|
37672
|
+
form: "single",
|
|
37673
|
+
optional: false
|
|
37674
|
+
}],
|
|
37451
37675
|
"pipelineRunner.reportMotion": [{
|
|
37452
37676
|
name: "deviceId",
|
|
37453
37677
|
form: "single",
|
|
@@ -38139,7 +38363,7 @@ var PreviewTextField = string().max(200);
|
|
|
38139
38363
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38140
38364
|
*
|
|
38141
38365
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38142
|
-
* rule)"* —
|
|
38366
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38143
38367
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38144
38368
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38145
38369
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/smb.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-cpT4iCZr.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
|
@@ -17,8 +17,8 @@ let node_util = require("node:util");
|
|
|
17
17
|
* SMB / CIFS `storage-provider` config schema — drives the "Add location"
|
|
18
18
|
* wizard form in the admin UI.
|
|
19
19
|
*
|
|
20
|
-
* The shape follows the operator's own production Samba backup client
|
|
21
|
-
*
|
|
20
|
+
* The shape follows the operator's own production Samba backup client:
|
|
21
|
+
* a server address, a target
|
|
22
22
|
* directory, username / password / domain, and a max-protocol override for
|
|
23
23
|
* the servers that need one pinned.
|
|
24
24
|
*
|
|
@@ -103,8 +103,8 @@ var SMB_CONFIG_SCHEMA = { sections: [{
|
|
|
103
103
|
* the whole reason it was chosen over the pure-JS options: every SMB client on
|
|
104
104
|
* npm is a fork of the abandoned `@marsaud/smb2` (last publish 2022), whereas
|
|
105
105
|
* `smbclient` is Samba's own tool, maintained by the people who define the
|
|
106
|
-
* protocol. It is the client the operator
|
|
107
|
-
*
|
|
106
|
+
* protocol. It is the client the operator has been running in production
|
|
107
|
+
* against this same NAS.
|
|
108
108
|
*
|
|
109
109
|
* The cost is stated plainly because it does not go away: **the provider
|
|
110
110
|
* cannot work without the `smbclient` binary on PATH.** It is absent from the
|
package/dist/smb.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-Cle4oyGQ.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -10,8 +10,8 @@ import { promisify } from "node:util";
|
|
|
10
10
|
* SMB / CIFS `storage-provider` config schema — drives the "Add location"
|
|
11
11
|
* wizard form in the admin UI.
|
|
12
12
|
*
|
|
13
|
-
* The shape follows the operator's own production Samba backup client
|
|
14
|
-
*
|
|
13
|
+
* The shape follows the operator's own production Samba backup client:
|
|
14
|
+
* a server address, a target
|
|
15
15
|
* directory, username / password / domain, and a max-protocol override for
|
|
16
16
|
* the servers that need one pinned.
|
|
17
17
|
*
|
|
@@ -96,8 +96,8 @@ var SMB_CONFIG_SCHEMA = { sections: [{
|
|
|
96
96
|
* the whole reason it was chosen over the pure-JS options: every SMB client on
|
|
97
97
|
* npm is a fork of the abandoned `@marsaud/smb2` (last publish 2022), whereas
|
|
98
98
|
* `smbclient` is Samba's own tool, maintained by the people who define the
|
|
99
|
-
* protocol. It is the client the operator
|
|
100
|
-
*
|
|
99
|
+
* protocol. It is the client the operator has been running in production
|
|
100
|
+
* against this same NAS.
|
|
101
101
|
*
|
|
102
102
|
* The cost is stated plainly because it does not go away: **the provider
|
|
103
103
|
* cannot work without the `smbclient` binary on PATH.** It is absent from the
|
package/dist/webdav.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-cpT4iCZr.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let webdav = require("webdav");
|
|
8
8
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Cle4oyGQ.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { AuthType, createClient } from "webdav";
|
|
4
4
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/package.json
CHANGED