@camstack/addon-provider-reolink 1.2.42 → 1.2.43
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 +128 -22
- package/dist/addon.mjs +128 -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). */
|
|
@@ -20517,12 +20560,41 @@ var ClipSchema = object({
|
|
|
20517
20560
|
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
20518
20561
|
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
20519
20562
|
* mint their own stills.
|
|
20563
|
+
*
|
|
20564
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
20565
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
20566
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
20567
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
20568
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
20569
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
20520
20570
|
*/
|
|
20521
20571
|
thumbnail: string().optional(),
|
|
20522
|
-
/**
|
|
20523
|
-
*
|
|
20524
|
-
*
|
|
20572
|
+
/**
|
|
20573
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
20574
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
20575
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
20576
|
+
*
|
|
20577
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
20578
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
20579
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
20580
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
20581
|
+
* construction, so a naive midpoint lands in dead air.
|
|
20582
|
+
*/
|
|
20583
|
+
stillAtMs: number().optional(),
|
|
20584
|
+
/**
|
|
20585
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
20586
|
+
* first within kind (object → motion → audio), capped at
|
|
20587
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
20588
|
+
*
|
|
20589
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
20590
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
20591
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
20592
|
+
*/
|
|
20525
20593
|
eventIds: array(string()).optional(),
|
|
20594
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
20595
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
20596
|
+
* list is never mistaken for a quiet visit. */
|
|
20597
|
+
eventCount: number().int().nonnegative().optional(),
|
|
20526
20598
|
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
20527
20599
|
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
20528
20600
|
* bar keeps showing them via `recording.getAvailability`. */
|
|
@@ -20993,7 +21065,14 @@ var SearchResultSchema = object({
|
|
|
20993
21065
|
});
|
|
20994
21066
|
var AutoUpdateSettingsSchema = object({
|
|
20995
21067
|
channel: ChannelSchema,
|
|
20996
|
-
intervalSeconds: number()
|
|
21068
|
+
intervalSeconds: number(),
|
|
21069
|
+
/**
|
|
21070
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
21071
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
21072
|
+
* about a publish and installing it are different decisions. Clamped
|
|
21073
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
21074
|
+
*/
|
|
21075
|
+
updateCheckIntervalSeconds: number()
|
|
20997
21076
|
});
|
|
20998
21077
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20999
21078
|
var RestartAddonResultSchema = unknown();
|
|
@@ -21134,7 +21213,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21134
21213
|
auth: "admin"
|
|
21135
21214
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
21136
21215
|
channel: ChannelSchema,
|
|
21137
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
21216
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
21217
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
21218
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
21138
21219
|
}), unknown(), {
|
|
21139
21220
|
kind: "mutation",
|
|
21140
21221
|
auth: "admin"
|
|
@@ -33521,6 +33602,12 @@ Object.freeze({
|
|
|
33521
33602
|
addonId: null,
|
|
33522
33603
|
access: "create"
|
|
33523
33604
|
},
|
|
33605
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
33606
|
+
capName: "pipeline-analytics",
|
|
33607
|
+
capScope: "device",
|
|
33608
|
+
addonId: null,
|
|
33609
|
+
access: "create"
|
|
33610
|
+
},
|
|
33524
33611
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
33525
33612
|
capName: "pipeline-analytics",
|
|
33526
33613
|
capScope: "device",
|
|
@@ -33923,6 +34010,12 @@ Object.freeze({
|
|
|
33923
34010
|
addonId: null,
|
|
33924
34011
|
access: "view"
|
|
33925
34012
|
},
|
|
34013
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
34014
|
+
capName: "pipeline-orchestrator",
|
|
34015
|
+
capScope: "system",
|
|
34016
|
+
addonId: null,
|
|
34017
|
+
access: "view"
|
|
34018
|
+
},
|
|
33926
34019
|
"pipelineOrchestrator.listAgentSettings": {
|
|
33927
34020
|
capName: "pipeline-orchestrator",
|
|
33928
34021
|
capScope: "system",
|
|
@@ -33947,6 +34040,12 @@ Object.freeze({
|
|
|
33947
34040
|
addonId: null,
|
|
33948
34041
|
access: "create"
|
|
33949
34042
|
},
|
|
34043
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
34044
|
+
capName: "pipeline-orchestrator",
|
|
34045
|
+
capScope: "system",
|
|
34046
|
+
addonId: null,
|
|
34047
|
+
access: "create"
|
|
34048
|
+
},
|
|
33950
34049
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
33951
34050
|
capName: "pipeline-orchestrator",
|
|
33952
34051
|
capScope: "system",
|
|
@@ -36938,6 +37037,11 @@ Object.freeze({
|
|
|
36938
37037
|
form: "single",
|
|
36939
37038
|
optional: true
|
|
36940
37039
|
}],
|
|
37040
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
37041
|
+
name: "deviceId",
|
|
37042
|
+
form: "single",
|
|
37043
|
+
optional: false
|
|
37044
|
+
}],
|
|
36941
37045
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36942
37046
|
name: "deviceId",
|
|
36943
37047
|
form: "single",
|
|
@@ -38003,6 +38107,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
38003
38107
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
38004
38108
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38005
38109
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38110
|
+
var MB = 1024 * 1024;
|
|
38111
|
+
1024 * MB, 3072 * MB;
|
|
38006
38112
|
//#endregion
|
|
38007
38113
|
//#region ../../node_modules/undici/lib/core/symbols.js
|
|
38008
38114
|
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). */
|
|
@@ -20512,12 +20555,41 @@ var ClipSchema = object({
|
|
|
20512
20555
|
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
20513
20556
|
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
20514
20557
|
* mint their own stills.
|
|
20558
|
+
*
|
|
20559
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
20560
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
20561
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
20562
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
20563
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
20564
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
20515
20565
|
*/
|
|
20516
20566
|
thumbnail: string().optional(),
|
|
20517
|
-
/**
|
|
20518
|
-
*
|
|
20519
|
-
*
|
|
20567
|
+
/**
|
|
20568
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
20569
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
20570
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
20571
|
+
*
|
|
20572
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
20573
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
20574
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
20575
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
20576
|
+
* construction, so a naive midpoint lands in dead air.
|
|
20577
|
+
*/
|
|
20578
|
+
stillAtMs: number().optional(),
|
|
20579
|
+
/**
|
|
20580
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
20581
|
+
* first within kind (object → motion → audio), capped at
|
|
20582
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
20583
|
+
*
|
|
20584
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
20585
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
20586
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
20587
|
+
*/
|
|
20520
20588
|
eventIds: array(string()).optional(),
|
|
20589
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
20590
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
20591
|
+
* list is never mistaken for a quiet visit. */
|
|
20592
|
+
eventCount: number().int().nonnegative().optional(),
|
|
20521
20593
|
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
20522
20594
|
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
20523
20595
|
* bar keeps showing them via `recording.getAvailability`. */
|
|
@@ -20988,7 +21060,14 @@ var SearchResultSchema = object({
|
|
|
20988
21060
|
});
|
|
20989
21061
|
var AutoUpdateSettingsSchema = object({
|
|
20990
21062
|
channel: ChannelSchema,
|
|
20991
|
-
intervalSeconds: number()
|
|
21063
|
+
intervalSeconds: number(),
|
|
21064
|
+
/**
|
|
21065
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
21066
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
21067
|
+
* about a publish and installing it are different decisions. Clamped
|
|
21068
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
21069
|
+
*/
|
|
21070
|
+
updateCheckIntervalSeconds: number()
|
|
20992
21071
|
});
|
|
20993
21072
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20994
21073
|
var RestartAddonResultSchema = unknown();
|
|
@@ -21129,7 +21208,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21129
21208
|
auth: "admin"
|
|
21130
21209
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
21131
21210
|
channel: ChannelSchema,
|
|
21132
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
21211
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
21212
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
21213
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
21133
21214
|
}), unknown(), {
|
|
21134
21215
|
kind: "mutation",
|
|
21135
21216
|
auth: "admin"
|
|
@@ -33516,6 +33597,12 @@ Object.freeze({
|
|
|
33516
33597
|
addonId: null,
|
|
33517
33598
|
access: "create"
|
|
33518
33599
|
},
|
|
33600
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
33601
|
+
capName: "pipeline-analytics",
|
|
33602
|
+
capScope: "device",
|
|
33603
|
+
addonId: null,
|
|
33604
|
+
access: "create"
|
|
33605
|
+
},
|
|
33519
33606
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
33520
33607
|
capName: "pipeline-analytics",
|
|
33521
33608
|
capScope: "device",
|
|
@@ -33918,6 +34005,12 @@ Object.freeze({
|
|
|
33918
34005
|
addonId: null,
|
|
33919
34006
|
access: "view"
|
|
33920
34007
|
},
|
|
34008
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
34009
|
+
capName: "pipeline-orchestrator",
|
|
34010
|
+
capScope: "system",
|
|
34011
|
+
addonId: null,
|
|
34012
|
+
access: "view"
|
|
34013
|
+
},
|
|
33921
34014
|
"pipelineOrchestrator.listAgentSettings": {
|
|
33922
34015
|
capName: "pipeline-orchestrator",
|
|
33923
34016
|
capScope: "system",
|
|
@@ -33942,6 +34035,12 @@ Object.freeze({
|
|
|
33942
34035
|
addonId: null,
|
|
33943
34036
|
access: "create"
|
|
33944
34037
|
},
|
|
34038
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
34039
|
+
capName: "pipeline-orchestrator",
|
|
34040
|
+
capScope: "system",
|
|
34041
|
+
addonId: null,
|
|
34042
|
+
access: "create"
|
|
34043
|
+
},
|
|
33945
34044
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
33946
34045
|
capName: "pipeline-orchestrator",
|
|
33947
34046
|
capScope: "system",
|
|
@@ -36933,6 +37032,11 @@ Object.freeze({
|
|
|
36933
37032
|
form: "single",
|
|
36934
37033
|
optional: true
|
|
36935
37034
|
}],
|
|
37035
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
37036
|
+
name: "deviceId",
|
|
37037
|
+
form: "single",
|
|
37038
|
+
optional: false
|
|
37039
|
+
}],
|
|
36936
37040
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36937
37041
|
name: "deviceId",
|
|
36938
37042
|
form: "single",
|
|
@@ -37998,6 +38102,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
37998
38102
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
37999
38103
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38000
38104
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38105
|
+
var MB = 1024 * 1024;
|
|
38106
|
+
1024 * MB, 3072 * MB;
|
|
38001
38107
|
//#endregion
|
|
38002
38108
|
//#region ../../node_modules/undici/lib/core/symbols.js
|
|
38003
38109
|
var require_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|