@camstack/addon-provider-reolink 1.2.42 → 1.2.44
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 +136 -22
- package/dist/addon.mjs +136 -22
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -26,7 +26,7 @@ let fs_promises = require("fs/promises");
|
|
|
26
26
|
fs_promises = require_chunk.__toESM(fs_promises, 1);
|
|
27
27
|
let node_os = require("node:os");
|
|
28
28
|
node_os = require_chunk.__toESM(node_os);
|
|
29
|
-
//#region ../types/dist/event-category-
|
|
29
|
+
//#region ../types/dist/event-category-XfKNtfCc.mjs
|
|
30
30
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
31
31
|
EventCategory["SystemBoot"] = "system.boot";
|
|
32
32
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -65,6 +65,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
65
65
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
66
66
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
67
67
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
68
|
+
/**
|
|
69
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
70
|
+
*
|
|
71
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
72
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
73
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
74
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
75
|
+
*
|
|
76
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
77
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
78
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
79
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
80
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
81
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
82
|
+
*/
|
|
83
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
68
84
|
EventCategory["AddonError"] = "addon.error";
|
|
69
85
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
70
86
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -7639,6 +7655,12 @@ var RecordingConfigSchema = object({
|
|
|
7639
7655
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7640
7656
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7641
7657
|
mode: RecordingStorageModeSchema.optional(),
|
|
7658
|
+
/**
|
|
7659
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
7660
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
7661
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
7662
|
+
* picks it, and never a slot the broker has not assigned.
|
|
7663
|
+
*/
|
|
7642
7664
|
profiles: array(CamProfileSchema).optional(),
|
|
7643
7665
|
segmentSeconds: number().int().positive().optional(),
|
|
7644
7666
|
/**
|
|
@@ -7719,7 +7741,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7719
7741
|
profiles: array(string()).optional(),
|
|
7720
7742
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7721
7743
|
* never allowed to starve live writers. */
|
|
7722
|
-
throttleMbps: number().min(1).max(1e3).optional()
|
|
7744
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
7745
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
7746
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
7747
|
+
* wants the recent window on the new disk. */
|
|
7748
|
+
sinceMs: number().int().optional()
|
|
7723
7749
|
});
|
|
7724
7750
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
7725
7751
|
* from persistent recording settings: a migration never changes
|
|
@@ -14771,6 +14797,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14771
14797
|
"node-offline",
|
|
14772
14798
|
"node-inference-unavailable",
|
|
14773
14799
|
"detection-blind",
|
|
14800
|
+
"addon-crash-loop",
|
|
14774
14801
|
"addon-update-available",
|
|
14775
14802
|
"server-update-available",
|
|
14776
14803
|
"alarm-triggered",
|
|
@@ -17344,6 +17371,12 @@ var TrackCascadeCountsSchema = object({
|
|
|
17344
17371
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17345
17372
|
embeddings: number().int()
|
|
17346
17373
|
});
|
|
17374
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17375
|
+
var DiskReconcileCountsSchema = object({
|
|
17376
|
+
mediaDropped: number().int(),
|
|
17377
|
+
tracks: number().int(),
|
|
17378
|
+
events: number().int()
|
|
17379
|
+
});
|
|
17347
17380
|
/** Event-store footprint for one camera. */
|
|
17348
17381
|
var EventStoreDeviceFootprintSchema = object({
|
|
17349
17382
|
deviceId: number(),
|
|
@@ -17520,6 +17553,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17520
17553
|
}), method(object({ deviceId: number() }), TrackCascadeCountsSchema, {
|
|
17521
17554
|
kind: "mutation",
|
|
17522
17555
|
auth: "admin"
|
|
17556
|
+
}), method(object({ deviceId: number() }), DiskReconcileCountsSchema, {
|
|
17557
|
+
kind: "mutation",
|
|
17558
|
+
auth: "admin"
|
|
17523
17559
|
}), method(object({
|
|
17524
17560
|
deviceId: number(),
|
|
17525
17561
|
trackIds: array(string()).min(1)
|
|
@@ -19070,6 +19106,24 @@ var CameraStatusDegradationSchema = object({
|
|
|
19070
19106
|
*
|
|
19071
19107
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
19072
19108
|
*/
|
|
19109
|
+
var DiskReconcileJobSchema = object({
|
|
19110
|
+
state: _enum([
|
|
19111
|
+
"idle",
|
|
19112
|
+
"running",
|
|
19113
|
+
"done",
|
|
19114
|
+
"error"
|
|
19115
|
+
]),
|
|
19116
|
+
total: number().int().nonnegative(),
|
|
19117
|
+
completed: number().int().nonnegative(),
|
|
19118
|
+
currentDeviceId: number().int().nullable(),
|
|
19119
|
+
failed: array(number().int()).readonly(),
|
|
19120
|
+
mediaDropped: number().int().nonnegative(),
|
|
19121
|
+
tracks: number().int().nonnegative(),
|
|
19122
|
+
events: number().int().nonnegative(),
|
|
19123
|
+
startedAtMs: number().int().nullable(),
|
|
19124
|
+
finishedAtMs: number().int().nullable(),
|
|
19125
|
+
error: string().nullable()
|
|
19126
|
+
});
|
|
19073
19127
|
var CameraStatusSchema = object({
|
|
19074
19128
|
deviceId: number(),
|
|
19075
19129
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -19301,7 +19355,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
19301
19355
|
}), CameraSwitchGroupSchema, {
|
|
19302
19356
|
kind: "mutation",
|
|
19303
19357
|
auth: "admin"
|
|
19304
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(),
|
|
19358
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
|
|
19359
|
+
kind: "mutation",
|
|
19360
|
+
auth: "admin"
|
|
19361
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
19305
19362
|
name: string(),
|
|
19306
19363
|
description: string().optional(),
|
|
19307
19364
|
config: CameraPipelineConfigSchema
|
|
@@ -20478,20 +20535,6 @@ var VectorStatsResultSchema = object({
|
|
|
20478
20535
|
exact: boolean()
|
|
20479
20536
|
});
|
|
20480
20537
|
method(VectorDeclareIndexInputSchema, _void(), { kind: "mutation" }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, { kind: "mutation" }), method(VectorQueryInputSchema, VectorQueryResultSchema), method(VectorGetInputSchema, VectorGetResultSchema), method(VectorDeleteInputSchema, VectorDeleteResultSchema, { kind: "mutation" }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, { kind: "mutation" }), method(VectorStatsInputSchema, VectorStatsResultSchema);
|
|
20481
|
-
/**
|
|
20482
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
20483
|
-
*
|
|
20484
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
20485
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
20486
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
20487
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
20488
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
20489
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
20490
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
20491
|
-
*
|
|
20492
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
20493
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
20494
|
-
*/
|
|
20495
20538
|
var ClipSchema = object({
|
|
20496
20539
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20497
20540
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -20509,6 +20552,14 @@ var ClipSchema = object({
|
|
|
20509
20552
|
endMs: number()
|
|
20510
20553
|
}),
|
|
20511
20554
|
/**
|
|
20555
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
20556
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
20557
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
20558
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
20559
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
20560
|
+
*/
|
|
20561
|
+
labels: array(string()).max(3).optional(),
|
|
20562
|
+
/**
|
|
20512
20563
|
* Lazy thumbnail URL, never inlined.
|
|
20513
20564
|
*
|
|
20514
20565
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -20517,12 +20568,41 @@ var ClipSchema = object({
|
|
|
20517
20568
|
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
20518
20569
|
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
20519
20570
|
* mint their own stills.
|
|
20571
|
+
*
|
|
20572
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
20573
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
20574
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
20575
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
20576
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
20577
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
20520
20578
|
*/
|
|
20521
20579
|
thumbnail: string().optional(),
|
|
20522
|
-
/**
|
|
20523
|
-
*
|
|
20524
|
-
*
|
|
20580
|
+
/**
|
|
20581
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
20582
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
20583
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
20584
|
+
*
|
|
20585
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
20586
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
20587
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
20588
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
20589
|
+
* construction, so a naive midpoint lands in dead air.
|
|
20590
|
+
*/
|
|
20591
|
+
stillAtMs: number().optional(),
|
|
20592
|
+
/**
|
|
20593
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
20594
|
+
* first within kind (object → motion → audio), capped at
|
|
20595
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
20596
|
+
*
|
|
20597
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
20598
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
20599
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
20600
|
+
*/
|
|
20525
20601
|
eventIds: array(string()).optional(),
|
|
20602
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
20603
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
20604
|
+
* list is never mistaken for a quiet visit. */
|
|
20605
|
+
eventCount: number().int().nonnegative().optional(),
|
|
20526
20606
|
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
20527
20607
|
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
20528
20608
|
* bar keeps showing them via `recording.getAvailability`. */
|
|
@@ -20993,7 +21073,14 @@ var SearchResultSchema = object({
|
|
|
20993
21073
|
});
|
|
20994
21074
|
var AutoUpdateSettingsSchema = object({
|
|
20995
21075
|
channel: ChannelSchema,
|
|
20996
|
-
intervalSeconds: number()
|
|
21076
|
+
intervalSeconds: number(),
|
|
21077
|
+
/**
|
|
21078
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
21079
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
21080
|
+
* about a publish and installing it are different decisions. Clamped
|
|
21081
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
21082
|
+
*/
|
|
21083
|
+
updateCheckIntervalSeconds: number()
|
|
20997
21084
|
});
|
|
20998
21085
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20999
21086
|
var RestartAddonResultSchema = unknown();
|
|
@@ -21134,7 +21221,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21134
21221
|
auth: "admin"
|
|
21135
21222
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
21136
21223
|
channel: ChannelSchema,
|
|
21137
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
21224
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
21225
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
21226
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
21138
21227
|
}), unknown(), {
|
|
21139
21228
|
kind: "mutation",
|
|
21140
21229
|
auth: "admin"
|
|
@@ -33521,6 +33610,12 @@ Object.freeze({
|
|
|
33521
33610
|
addonId: null,
|
|
33522
33611
|
access: "create"
|
|
33523
33612
|
},
|
|
33613
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
33614
|
+
capName: "pipeline-analytics",
|
|
33615
|
+
capScope: "device",
|
|
33616
|
+
addonId: null,
|
|
33617
|
+
access: "create"
|
|
33618
|
+
},
|
|
33524
33619
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
33525
33620
|
capName: "pipeline-analytics",
|
|
33526
33621
|
capScope: "device",
|
|
@@ -33923,6 +34018,12 @@ Object.freeze({
|
|
|
33923
34018
|
addonId: null,
|
|
33924
34019
|
access: "view"
|
|
33925
34020
|
},
|
|
34021
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
34022
|
+
capName: "pipeline-orchestrator",
|
|
34023
|
+
capScope: "system",
|
|
34024
|
+
addonId: null,
|
|
34025
|
+
access: "view"
|
|
34026
|
+
},
|
|
33926
34027
|
"pipelineOrchestrator.listAgentSettings": {
|
|
33927
34028
|
capName: "pipeline-orchestrator",
|
|
33928
34029
|
capScope: "system",
|
|
@@ -33947,6 +34048,12 @@ Object.freeze({
|
|
|
33947
34048
|
addonId: null,
|
|
33948
34049
|
access: "create"
|
|
33949
34050
|
},
|
|
34051
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
34052
|
+
capName: "pipeline-orchestrator",
|
|
34053
|
+
capScope: "system",
|
|
34054
|
+
addonId: null,
|
|
34055
|
+
access: "create"
|
|
34056
|
+
},
|
|
33950
34057
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
33951
34058
|
capName: "pipeline-orchestrator",
|
|
33952
34059
|
capScope: "system",
|
|
@@ -36938,6 +37045,11 @@ Object.freeze({
|
|
|
36938
37045
|
form: "single",
|
|
36939
37046
|
optional: true
|
|
36940
37047
|
}],
|
|
37048
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
37049
|
+
name: "deviceId",
|
|
37050
|
+
form: "single",
|
|
37051
|
+
optional: false
|
|
37052
|
+
}],
|
|
36941
37053
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36942
37054
|
name: "deviceId",
|
|
36943
37055
|
form: "single",
|
|
@@ -38003,6 +38115,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
38003
38115
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
38004
38116
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38005
38117
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38118
|
+
var MB = 1024 * 1024;
|
|
38119
|
+
1024 * MB, 3072 * MB;
|
|
38006
38120
|
//#endregion
|
|
38007
38121
|
//#region ../../node_modules/undici/lib/core/symbols.js
|
|
38008
38122
|
var require_symbols = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
package/dist/addon.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import netImpl from "net";
|
|
|
21
21
|
import { fileURLToPath } from "url";
|
|
22
22
|
import { mkdir } from "fs/promises";
|
|
23
23
|
import os from "node:os";
|
|
24
|
-
//#region ../types/dist/event-category-
|
|
24
|
+
//#region ../types/dist/event-category-XfKNtfCc.mjs
|
|
25
25
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
26
26
|
EventCategory["SystemBoot"] = "system.boot";
|
|
27
27
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -60,6 +60,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
60
60
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
61
61
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
62
62
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
63
|
+
/**
|
|
64
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
65
|
+
*
|
|
66
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
67
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
68
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
69
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
70
|
+
*
|
|
71
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
72
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
73
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
74
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
75
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
76
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
77
|
+
*/
|
|
78
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
63
79
|
EventCategory["AddonError"] = "addon.error";
|
|
64
80
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
65
81
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -7634,6 +7650,12 @@ var RecordingConfigSchema = object({
|
|
|
7634
7650
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7635
7651
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7636
7652
|
mode: RecordingStorageModeSchema.optional(),
|
|
7653
|
+
/**
|
|
7654
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
7655
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
7656
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
7657
|
+
* picks it, and never a slot the broker has not assigned.
|
|
7658
|
+
*/
|
|
7637
7659
|
profiles: array(CamProfileSchema).optional(),
|
|
7638
7660
|
segmentSeconds: number().int().positive().optional(),
|
|
7639
7661
|
/**
|
|
@@ -7714,7 +7736,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7714
7736
|
profiles: array(string()).optional(),
|
|
7715
7737
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7716
7738
|
* never allowed to starve live writers. */
|
|
7717
|
-
throttleMbps: number().min(1).max(1e3).optional()
|
|
7739
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
7740
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
7741
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
7742
|
+
* wants the recent window on the new disk. */
|
|
7743
|
+
sinceMs: number().int().optional()
|
|
7718
7744
|
});
|
|
7719
7745
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
7720
7746
|
* from persistent recording settings: a migration never changes
|
|
@@ -14766,6 +14792,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14766
14792
|
"node-offline",
|
|
14767
14793
|
"node-inference-unavailable",
|
|
14768
14794
|
"detection-blind",
|
|
14795
|
+
"addon-crash-loop",
|
|
14769
14796
|
"addon-update-available",
|
|
14770
14797
|
"server-update-available",
|
|
14771
14798
|
"alarm-triggered",
|
|
@@ -17339,6 +17366,12 @@ var TrackCascadeCountsSchema = object({
|
|
|
17339
17366
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17340
17367
|
embeddings: number().int()
|
|
17341
17368
|
});
|
|
17369
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17370
|
+
var DiskReconcileCountsSchema = object({
|
|
17371
|
+
mediaDropped: number().int(),
|
|
17372
|
+
tracks: number().int(),
|
|
17373
|
+
events: number().int()
|
|
17374
|
+
});
|
|
17342
17375
|
/** Event-store footprint for one camera. */
|
|
17343
17376
|
var EventStoreDeviceFootprintSchema = object({
|
|
17344
17377
|
deviceId: number(),
|
|
@@ -17515,6 +17548,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17515
17548
|
}), method(object({ deviceId: number() }), TrackCascadeCountsSchema, {
|
|
17516
17549
|
kind: "mutation",
|
|
17517
17550
|
auth: "admin"
|
|
17551
|
+
}), method(object({ deviceId: number() }), DiskReconcileCountsSchema, {
|
|
17552
|
+
kind: "mutation",
|
|
17553
|
+
auth: "admin"
|
|
17518
17554
|
}), method(object({
|
|
17519
17555
|
deviceId: number(),
|
|
17520
17556
|
trackIds: array(string()).min(1)
|
|
@@ -19065,6 +19101,24 @@ var CameraStatusDegradationSchema = object({
|
|
|
19065
19101
|
*
|
|
19066
19102
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
19067
19103
|
*/
|
|
19104
|
+
var DiskReconcileJobSchema = object({
|
|
19105
|
+
state: _enum([
|
|
19106
|
+
"idle",
|
|
19107
|
+
"running",
|
|
19108
|
+
"done",
|
|
19109
|
+
"error"
|
|
19110
|
+
]),
|
|
19111
|
+
total: number().int().nonnegative(),
|
|
19112
|
+
completed: number().int().nonnegative(),
|
|
19113
|
+
currentDeviceId: number().int().nullable(),
|
|
19114
|
+
failed: array(number().int()).readonly(),
|
|
19115
|
+
mediaDropped: number().int().nonnegative(),
|
|
19116
|
+
tracks: number().int().nonnegative(),
|
|
19117
|
+
events: number().int().nonnegative(),
|
|
19118
|
+
startedAtMs: number().int().nullable(),
|
|
19119
|
+
finishedAtMs: number().int().nullable(),
|
|
19120
|
+
error: string().nullable()
|
|
19121
|
+
});
|
|
19068
19122
|
var CameraStatusSchema = object({
|
|
19069
19123
|
deviceId: number(),
|
|
19070
19124
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -19296,7 +19350,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
19296
19350
|
}), CameraSwitchGroupSchema, {
|
|
19297
19351
|
kind: "mutation",
|
|
19298
19352
|
auth: "admin"
|
|
19299
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(),
|
|
19353
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
|
|
19354
|
+
kind: "mutation",
|
|
19355
|
+
auth: "admin"
|
|
19356
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
19300
19357
|
name: string(),
|
|
19301
19358
|
description: string().optional(),
|
|
19302
19359
|
config: CameraPipelineConfigSchema
|
|
@@ -20473,20 +20530,6 @@ var VectorStatsResultSchema = object({
|
|
|
20473
20530
|
exact: boolean()
|
|
20474
20531
|
});
|
|
20475
20532
|
method(VectorDeclareIndexInputSchema, _void(), { kind: "mutation" }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, { kind: "mutation" }), method(VectorQueryInputSchema, VectorQueryResultSchema), method(VectorGetInputSchema, VectorGetResultSchema), method(VectorDeleteInputSchema, VectorDeleteResultSchema, { kind: "mutation" }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, { kind: "mutation" }), method(VectorStatsInputSchema, VectorStatsResultSchema);
|
|
20476
|
-
/**
|
|
20477
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
20478
|
-
*
|
|
20479
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
20480
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
20481
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
20482
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
20483
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
20484
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
20485
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
20486
|
-
*
|
|
20487
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
20488
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
20489
|
-
*/
|
|
20490
20533
|
var ClipSchema = object({
|
|
20491
20534
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20492
20535
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -20504,6 +20547,14 @@ var ClipSchema = object({
|
|
|
20504
20547
|
endMs: number()
|
|
20505
20548
|
}),
|
|
20506
20549
|
/**
|
|
20550
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
20551
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
20552
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
20553
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
20554
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
20555
|
+
*/
|
|
20556
|
+
labels: array(string()).max(3).optional(),
|
|
20557
|
+
/**
|
|
20507
20558
|
* Lazy thumbnail URL, never inlined.
|
|
20508
20559
|
*
|
|
20509
20560
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -20512,12 +20563,41 @@ var ClipSchema = object({
|
|
|
20512
20563
|
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
20513
20564
|
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
20514
20565
|
* mint their own stills.
|
|
20566
|
+
*
|
|
20567
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
20568
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
20569
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
20570
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
20571
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
20572
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
20515
20573
|
*/
|
|
20516
20574
|
thumbnail: string().optional(),
|
|
20517
|
-
/**
|
|
20518
|
-
*
|
|
20519
|
-
*
|
|
20575
|
+
/**
|
|
20576
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
20577
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
20578
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
20579
|
+
*
|
|
20580
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
20581
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
20582
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
20583
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
20584
|
+
* construction, so a naive midpoint lands in dead air.
|
|
20585
|
+
*/
|
|
20586
|
+
stillAtMs: number().optional(),
|
|
20587
|
+
/**
|
|
20588
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
20589
|
+
* first within kind (object → motion → audio), capped at
|
|
20590
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
20591
|
+
*
|
|
20592
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
20593
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
20594
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
20595
|
+
*/
|
|
20520
20596
|
eventIds: array(string()).optional(),
|
|
20597
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
20598
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
20599
|
+
* list is never mistaken for a quiet visit. */
|
|
20600
|
+
eventCount: number().int().nonnegative().optional(),
|
|
20521
20601
|
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
20522
20602
|
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
20523
20603
|
* bar keeps showing them via `recording.getAvailability`. */
|
|
@@ -20988,7 +21068,14 @@ var SearchResultSchema = object({
|
|
|
20988
21068
|
});
|
|
20989
21069
|
var AutoUpdateSettingsSchema = object({
|
|
20990
21070
|
channel: ChannelSchema,
|
|
20991
|
-
intervalSeconds: number()
|
|
21071
|
+
intervalSeconds: number(),
|
|
21072
|
+
/**
|
|
21073
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
21074
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
21075
|
+
* about a publish and installing it are different decisions. Clamped
|
|
21076
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
21077
|
+
*/
|
|
21078
|
+
updateCheckIntervalSeconds: number()
|
|
20992
21079
|
});
|
|
20993
21080
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20994
21081
|
var RestartAddonResultSchema = unknown();
|
|
@@ -21129,7 +21216,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21129
21216
|
auth: "admin"
|
|
21130
21217
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
21131
21218
|
channel: ChannelSchema,
|
|
21132
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
21219
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
21220
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
21221
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
21133
21222
|
}), unknown(), {
|
|
21134
21223
|
kind: "mutation",
|
|
21135
21224
|
auth: "admin"
|
|
@@ -33516,6 +33605,12 @@ Object.freeze({
|
|
|
33516
33605
|
addonId: null,
|
|
33517
33606
|
access: "create"
|
|
33518
33607
|
},
|
|
33608
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
33609
|
+
capName: "pipeline-analytics",
|
|
33610
|
+
capScope: "device",
|
|
33611
|
+
addonId: null,
|
|
33612
|
+
access: "create"
|
|
33613
|
+
},
|
|
33519
33614
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
33520
33615
|
capName: "pipeline-analytics",
|
|
33521
33616
|
capScope: "device",
|
|
@@ -33918,6 +34013,12 @@ Object.freeze({
|
|
|
33918
34013
|
addonId: null,
|
|
33919
34014
|
access: "view"
|
|
33920
34015
|
},
|
|
34016
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
34017
|
+
capName: "pipeline-orchestrator",
|
|
34018
|
+
capScope: "system",
|
|
34019
|
+
addonId: null,
|
|
34020
|
+
access: "view"
|
|
34021
|
+
},
|
|
33921
34022
|
"pipelineOrchestrator.listAgentSettings": {
|
|
33922
34023
|
capName: "pipeline-orchestrator",
|
|
33923
34024
|
capScope: "system",
|
|
@@ -33942,6 +34043,12 @@ Object.freeze({
|
|
|
33942
34043
|
addonId: null,
|
|
33943
34044
|
access: "create"
|
|
33944
34045
|
},
|
|
34046
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
34047
|
+
capName: "pipeline-orchestrator",
|
|
34048
|
+
capScope: "system",
|
|
34049
|
+
addonId: null,
|
|
34050
|
+
access: "create"
|
|
34051
|
+
},
|
|
33945
34052
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
33946
34053
|
capName: "pipeline-orchestrator",
|
|
33947
34054
|
capScope: "system",
|
|
@@ -36933,6 +37040,11 @@ Object.freeze({
|
|
|
36933
37040
|
form: "single",
|
|
36934
37041
|
optional: true
|
|
36935
37042
|
}],
|
|
37043
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
37044
|
+
name: "deviceId",
|
|
37045
|
+
form: "single",
|
|
37046
|
+
optional: false
|
|
37047
|
+
}],
|
|
36936
37048
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36937
37049
|
name: "deviceId",
|
|
36938
37050
|
form: "single",
|
|
@@ -37998,6 +38110,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
37998
38110
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
37999
38111
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38000
38112
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38113
|
+
var MB = 1024 * 1024;
|
|
38114
|
+
1024 * MB, 3072 * MB;
|
|
38001
38115
|
//#endregion
|
|
38002
38116
|
//#region ../../node_modules/undici/lib/core/symbols.js
|
|
38003
38117
|
var require_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|