@camstack/addon-decoder-nodeav 1.2.19 → 1.2.21
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/index.js +186 -27
- package/dist/index.mjs +186 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
|
-
//#region ../types/dist/event-category-
|
|
6
|
+
//#region ../types/dist/event-category-XfKNtfCc.mjs
|
|
7
7
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
8
8
|
EventCategory["SystemBoot"] = "system.boot";
|
|
9
9
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -20,9 +20,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
20
20
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
21
21
|
/**
|
|
22
22
|
* A newer addon or server-root package version was found by the
|
|
23
|
-
* authoritative registry check. Emitted once
|
|
24
|
-
* `(
|
|
25
|
-
*
|
|
23
|
+
* authoritative registry check. Emitted once when any observed
|
|
24
|
+
* `latestVersion` changes (or a package/node first appears behind);
|
|
25
|
+
* the payload carries the full currently-available list. Repeated
|
|
26
|
+
* polling of the same latests is silent.
|
|
26
27
|
*/
|
|
27
28
|
EventCategory["UpdateAvailable"] = "update.available";
|
|
28
29
|
/**
|
|
@@ -41,6 +42,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
41
42
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
42
43
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
43
44
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
45
|
+
/**
|
|
46
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
47
|
+
*
|
|
48
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
49
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
50
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
51
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
52
|
+
*
|
|
53
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
54
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
55
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
56
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
57
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
58
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
59
|
+
*/
|
|
60
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
44
61
|
EventCategory["AddonError"] = "addon.error";
|
|
45
62
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
46
63
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -7548,6 +7565,10 @@ var RecordingBandSchema = object({
|
|
|
7548
7565
|
preBufferSec: number().min(0).optional(),
|
|
7549
7566
|
postBufferSec: number().min(0).optional()
|
|
7550
7567
|
});
|
|
7568
|
+
({
|
|
7569
|
+
preBufferSec: 10,
|
|
7570
|
+
postBufferSec: 30
|
|
7571
|
+
}).postBufferSec * 1e3;
|
|
7551
7572
|
/**
|
|
7552
7573
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7553
7574
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -7595,6 +7616,12 @@ var RecordingConfigSchema = object({
|
|
|
7595
7616
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7596
7617
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7597
7618
|
mode: RecordingStorageModeSchema.optional(),
|
|
7619
|
+
/**
|
|
7620
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
7621
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
7622
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
7623
|
+
* picks it, and never a slot the broker has not assigned.
|
|
7624
|
+
*/
|
|
7598
7625
|
profiles: array(CamProfileSchema).optional(),
|
|
7599
7626
|
segmentSeconds: number().int().positive().optional(),
|
|
7600
7627
|
/**
|
|
@@ -7675,7 +7702,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7675
7702
|
profiles: array(string()).optional(),
|
|
7676
7703
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7677
7704
|
* never allowed to starve live writers. */
|
|
7678
|
-
throttleMbps: number().min(1).max(1e3).optional()
|
|
7705
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
7706
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
7707
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
7708
|
+
* wants the recent window on the new disk. */
|
|
7709
|
+
sinceMs: number().int().optional()
|
|
7679
7710
|
});
|
|
7680
7711
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
7681
7712
|
* from persistent recording settings: a migration never changes
|
|
@@ -14368,6 +14399,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14368
14399
|
"node-offline",
|
|
14369
14400
|
"node-inference-unavailable",
|
|
14370
14401
|
"detection-blind",
|
|
14402
|
+
"addon-crash-loop",
|
|
14371
14403
|
"addon-update-available",
|
|
14372
14404
|
"server-update-available",
|
|
14373
14405
|
"alarm-triggered",
|
|
@@ -14375,6 +14407,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14375
14407
|
"alarm-disarmed",
|
|
14376
14408
|
"alarm-arming",
|
|
14377
14409
|
"alarm-arm-refused",
|
|
14410
|
+
"addon-updated",
|
|
14411
|
+
"server-updated",
|
|
14412
|
+
"export-completed",
|
|
14378
14413
|
"camera-online",
|
|
14379
14414
|
"camera-offline",
|
|
14380
14415
|
"camera-disabled",
|
|
@@ -16268,13 +16303,19 @@ var RetrainStatusSchema = _enum([
|
|
|
16268
16303
|
* "never marked" from "already trained" must read `retrainStatus`.
|
|
16269
16304
|
*
|
|
16270
16305
|
* `debug` does NOT pin; it is attention, not durability.
|
|
16306
|
+
*
|
|
16307
|
+
* `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
|
|
16308
|
+
* A favourited track is skipped by retention the same way `staging` is, but
|
|
16309
|
+
* it does not enter `none|staging|trained` and has no staging budget.
|
|
16271
16310
|
*/
|
|
16272
16311
|
var TrackFlagFields = {
|
|
16273
16312
|
/** Operator marked this track as training material — i.e. `retrainStatus` is
|
|
16274
16313
|
* `'staging'`. */
|
|
16275
16314
|
markForTrain: boolean().optional(),
|
|
16276
16315
|
/** Operator marked this track for diagnostic attention. */
|
|
16277
|
-
debug: boolean().optional()
|
|
16316
|
+
debug: boolean().optional(),
|
|
16317
|
+
/** Operator favourited this track. Pins it against pruning. */
|
|
16318
|
+
favourited: boolean().optional()
|
|
16278
16319
|
};
|
|
16279
16320
|
/**
|
|
16280
16321
|
* The lifecycle field itself, on the READ surfaces only (`Track`, `KeyEvent`).
|
|
@@ -16299,6 +16340,7 @@ var TrackFlagsSchema = object({
|
|
|
16299
16340
|
trackId: string(),
|
|
16300
16341
|
markForTrain: boolean(),
|
|
16301
16342
|
debug: boolean(),
|
|
16343
|
+
favourited: boolean(),
|
|
16302
16344
|
/** The lifecycle state the boolean was derived from. Required here (unlike on
|
|
16303
16345
|
* a track row) because this shape is only ever produced by the write body,
|
|
16304
16346
|
* which always knows it — and a surface that has just written needs to render
|
|
@@ -16931,6 +16973,12 @@ var TrackCascadeCountsSchema = object({
|
|
|
16931
16973
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16932
16974
|
embeddings: number().int()
|
|
16933
16975
|
});
|
|
16976
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
16977
|
+
var DiskReconcileCountsSchema = object({
|
|
16978
|
+
mediaDropped: number().int(),
|
|
16979
|
+
tracks: number().int(),
|
|
16980
|
+
events: number().int()
|
|
16981
|
+
});
|
|
16934
16982
|
/** Event-store footprint for one camera. */
|
|
16935
16983
|
var EventStoreDeviceFootprintSchema = object({
|
|
16936
16984
|
deviceId: number(),
|
|
@@ -17107,6 +17155,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17107
17155
|
}), method(object({ deviceId: number() }), TrackCascadeCountsSchema, {
|
|
17108
17156
|
kind: "mutation",
|
|
17109
17157
|
auth: "admin"
|
|
17158
|
+
}), method(object({ deviceId: number() }), DiskReconcileCountsSchema, {
|
|
17159
|
+
kind: "mutation",
|
|
17160
|
+
auth: "admin"
|
|
17110
17161
|
}), method(object({
|
|
17111
17162
|
deviceId: number(),
|
|
17112
17163
|
trackIds: array(string()).min(1)
|
|
@@ -18617,6 +18668,24 @@ var CameraStatusDegradationSchema = object({
|
|
|
18617
18668
|
*
|
|
18618
18669
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
18619
18670
|
*/
|
|
18671
|
+
var DiskReconcileJobSchema = object({
|
|
18672
|
+
state: _enum([
|
|
18673
|
+
"idle",
|
|
18674
|
+
"running",
|
|
18675
|
+
"done",
|
|
18676
|
+
"error"
|
|
18677
|
+
]),
|
|
18678
|
+
total: number().int().nonnegative(),
|
|
18679
|
+
completed: number().int().nonnegative(),
|
|
18680
|
+
currentDeviceId: number().int().nullable(),
|
|
18681
|
+
failed: array(number().int()).readonly(),
|
|
18682
|
+
mediaDropped: number().int().nonnegative(),
|
|
18683
|
+
tracks: number().int().nonnegative(),
|
|
18684
|
+
events: number().int().nonnegative(),
|
|
18685
|
+
startedAtMs: number().int().nullable(),
|
|
18686
|
+
finishedAtMs: number().int().nullable(),
|
|
18687
|
+
error: string().nullable()
|
|
18688
|
+
});
|
|
18620
18689
|
var CameraStatusSchema = object({
|
|
18621
18690
|
deviceId: number(),
|
|
18622
18691
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -18848,7 +18917,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
18848
18917
|
}), CameraSwitchGroupSchema, {
|
|
18849
18918
|
kind: "mutation",
|
|
18850
18919
|
auth: "admin"
|
|
18851
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(),
|
|
18920
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
|
|
18921
|
+
kind: "mutation",
|
|
18922
|
+
auth: "admin"
|
|
18923
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
18852
18924
|
name: string(),
|
|
18853
18925
|
description: string().optional(),
|
|
18854
18926
|
config: CameraPipelineConfigSchema
|
|
@@ -19921,20 +19993,6 @@ var VectorStatsResultSchema = object({
|
|
|
19921
19993
|
exact: boolean()
|
|
19922
19994
|
});
|
|
19923
19995
|
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);
|
|
19924
|
-
/**
|
|
19925
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
19926
|
-
*
|
|
19927
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
19928
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
19929
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
19930
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
19931
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
19932
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
19933
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
19934
|
-
*
|
|
19935
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
19936
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
19937
|
-
*/
|
|
19938
19996
|
var ClipSchema = object({
|
|
19939
19997
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
19940
19998
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -19951,8 +20009,65 @@ var ClipSchema = object({
|
|
|
19951
20009
|
startMs: number(),
|
|
19952
20010
|
endMs: number()
|
|
19953
20011
|
}),
|
|
19954
|
-
/**
|
|
19955
|
-
|
|
20012
|
+
/**
|
|
20013
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
20014
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
20015
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
20016
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
20017
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
20018
|
+
*/
|
|
20019
|
+
labels: array(string()).max(3).optional(),
|
|
20020
|
+
/**
|
|
20021
|
+
* Lazy thumbnail URL, never inlined.
|
|
20022
|
+
*
|
|
20023
|
+
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
20024
|
+
* continuous event+fragment visit) MUST use the snapshot of the **main
|
|
20025
|
+
* event of the interval** — `getEventMedia({ eventId, kind: 'snapshot' })`
|
|
20026
|
+
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
20027
|
+
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
20028
|
+
* mint their own stills.
|
|
20029
|
+
*
|
|
20030
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
20031
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
20032
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
20033
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
20034
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
20035
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
20036
|
+
*/
|
|
20037
|
+
thumbnail: string().optional(),
|
|
20038
|
+
/**
|
|
20039
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
20040
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
20041
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
20042
|
+
*
|
|
20043
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
20044
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
20045
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
20046
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
20047
|
+
* construction, so a naive midpoint lands in dead air.
|
|
20048
|
+
*/
|
|
20049
|
+
stillAtMs: number().optional(),
|
|
20050
|
+
/**
|
|
20051
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
20052
|
+
* first within kind (object → motion → audio), capped at
|
|
20053
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
20054
|
+
*
|
|
20055
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
20056
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
20057
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
20058
|
+
*/
|
|
20059
|
+
eventIds: array(string()).optional(),
|
|
20060
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
20061
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
20062
|
+
* list is never mistaken for a quiet visit. */
|
|
20063
|
+
eventCount: number().int().nonnegative().optional(),
|
|
20064
|
+
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
20065
|
+
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
20066
|
+
* bar keeps showing them via `recording.getAvailability`. */
|
|
20067
|
+
holes: array(object({
|
|
20068
|
+
startMs: number(),
|
|
20069
|
+
endMs: number()
|
|
20070
|
+
})).optional()
|
|
19956
20071
|
});
|
|
19957
20072
|
var ClipPlaybackSchema = object({
|
|
19958
20073
|
/** HLS master URL through the hub data-plane (Range + token in path). */
|
|
@@ -20416,7 +20531,14 @@ var SearchResultSchema = object({
|
|
|
20416
20531
|
});
|
|
20417
20532
|
var AutoUpdateSettingsSchema = object({
|
|
20418
20533
|
channel: ChannelSchema,
|
|
20419
|
-
intervalSeconds: number()
|
|
20534
|
+
intervalSeconds: number(),
|
|
20535
|
+
/**
|
|
20536
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
20537
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
20538
|
+
* about a publish and installing it are different decisions. Clamped
|
|
20539
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
20540
|
+
*/
|
|
20541
|
+
updateCheckIntervalSeconds: number()
|
|
20420
20542
|
});
|
|
20421
20543
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20422
20544
|
var RestartAddonResultSchema = unknown();
|
|
@@ -20557,7 +20679,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
20557
20679
|
auth: "admin"
|
|
20558
20680
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
20559
20681
|
channel: ChannelSchema,
|
|
20560
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
20682
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
20683
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
20684
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
20561
20685
|
}), unknown(), {
|
|
20562
20686
|
kind: "mutation",
|
|
20563
20687
|
auth: "admin"
|
|
@@ -24550,7 +24674,9 @@ var ExportOptionsSchema = object({
|
|
|
24550
24674
|
includeAudio: boolean(),
|
|
24551
24675
|
maxLifeMs: number().int().positive(),
|
|
24552
24676
|
deleteAfterDownload: boolean(),
|
|
24553
|
-
title: string().max(200).optional()
|
|
24677
|
+
title: string().max(200).optional(),
|
|
24678
|
+
/** Notification-output target ids to ping when this export becomes ready. */
|
|
24679
|
+
notifyTargetIds: array(string().min(1)).max(20).optional()
|
|
24554
24680
|
}).superRefine((v, ctx) => {
|
|
24555
24681
|
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
24556
24682
|
code: ZodIssueCode.custom,
|
|
@@ -24609,10 +24735,18 @@ var ExportBytesSchema = object({
|
|
|
24609
24735
|
});
|
|
24610
24736
|
method(object({
|
|
24611
24737
|
deviceId: number(),
|
|
24612
|
-
|
|
24738
|
+
/** @deprecated Prefer `profiles`. Kept so timelapse/notifiers keep working. */
|
|
24739
|
+
profile: string().optional(),
|
|
24740
|
+
profiles: array(string()).min(1).optional(),
|
|
24613
24741
|
fromMs: number(),
|
|
24614
24742
|
toMs: number(),
|
|
24615
24743
|
options: ExportOptionsSchema
|
|
24744
|
+
}).superRefine((v, ctx) => {
|
|
24745
|
+
if ((v.profiles !== void 0 && v.profiles.length > 0 ? v.profiles : v.profile !== void 0 ? [v.profile] : []).length < 1) ctx.addIssue({
|
|
24746
|
+
code: ZodIssueCode.custom,
|
|
24747
|
+
message: "pass profiles[] (min 1) or legacy profile",
|
|
24748
|
+
path: ["profiles"]
|
|
24749
|
+
});
|
|
24616
24750
|
}), ExportRecordSchema, {
|
|
24617
24751
|
kind: "mutation",
|
|
24618
24752
|
auth: "protected"
|
|
@@ -29212,6 +29346,12 @@ Object.freeze({
|
|
|
29212
29346
|
addonId: null,
|
|
29213
29347
|
access: "create"
|
|
29214
29348
|
},
|
|
29349
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
29350
|
+
capName: "pipeline-analytics",
|
|
29351
|
+
capScope: "device",
|
|
29352
|
+
addonId: null,
|
|
29353
|
+
access: "create"
|
|
29354
|
+
},
|
|
29215
29355
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
29216
29356
|
capName: "pipeline-analytics",
|
|
29217
29357
|
capScope: "device",
|
|
@@ -29614,6 +29754,12 @@ Object.freeze({
|
|
|
29614
29754
|
addonId: null,
|
|
29615
29755
|
access: "view"
|
|
29616
29756
|
},
|
|
29757
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
29758
|
+
capName: "pipeline-orchestrator",
|
|
29759
|
+
capScope: "system",
|
|
29760
|
+
addonId: null,
|
|
29761
|
+
access: "view"
|
|
29762
|
+
},
|
|
29617
29763
|
"pipelineOrchestrator.listAgentSettings": {
|
|
29618
29764
|
capName: "pipeline-orchestrator",
|
|
29619
29765
|
capScope: "system",
|
|
@@ -29638,6 +29784,12 @@ Object.freeze({
|
|
|
29638
29784
|
addonId: null,
|
|
29639
29785
|
access: "create"
|
|
29640
29786
|
},
|
|
29787
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
29788
|
+
capName: "pipeline-orchestrator",
|
|
29789
|
+
capScope: "system",
|
|
29790
|
+
addonId: null,
|
|
29791
|
+
access: "create"
|
|
29792
|
+
},
|
|
29641
29793
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
29642
29794
|
capName: "pipeline-orchestrator",
|
|
29643
29795
|
capScope: "system",
|
|
@@ -32629,6 +32781,11 @@ Object.freeze({
|
|
|
32629
32781
|
form: "single",
|
|
32630
32782
|
optional: true
|
|
32631
32783
|
}],
|
|
32784
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
32785
|
+
name: "deviceId",
|
|
32786
|
+
form: "single",
|
|
32787
|
+
optional: false
|
|
32788
|
+
}],
|
|
32632
32789
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
32633
32790
|
name: "deviceId",
|
|
32634
32791
|
form: "single",
|
|
@@ -33694,6 +33851,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
33694
33851
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
33695
33852
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
33696
33853
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
33854
|
+
var MB = 1024 * 1024;
|
|
33855
|
+
1024 * MB, 3072 * MB;
|
|
33697
33856
|
/**
|
|
33698
33857
|
* Fixed-capacity ring buffer. When full, push() overwrites the oldest entry.
|
|
33699
33858
|
* drain() returns up to maxCount items in FIFO order and removes them.
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-XfKNtfCc.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -16,9 +16,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
16
16
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
17
17
|
/**
|
|
18
18
|
* A newer addon or server-root package version was found by the
|
|
19
|
-
* authoritative registry check. Emitted once
|
|
20
|
-
* `(
|
|
21
|
-
*
|
|
19
|
+
* authoritative registry check. Emitted once when any observed
|
|
20
|
+
* `latestVersion` changes (or a package/node first appears behind);
|
|
21
|
+
* the payload carries the full currently-available list. Repeated
|
|
22
|
+
* polling of the same latests is silent.
|
|
22
23
|
*/
|
|
23
24
|
EventCategory["UpdateAvailable"] = "update.available";
|
|
24
25
|
/**
|
|
@@ -37,6 +38,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
37
38
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
38
39
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
39
40
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
41
|
+
/**
|
|
42
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
43
|
+
*
|
|
44
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
45
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
46
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
47
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
48
|
+
*
|
|
49
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
50
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
51
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
52
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
53
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
54
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
55
|
+
*/
|
|
56
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
40
57
|
EventCategory["AddonError"] = "addon.error";
|
|
41
58
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
42
59
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -7544,6 +7561,10 @@ var RecordingBandSchema = object({
|
|
|
7544
7561
|
preBufferSec: number().min(0).optional(),
|
|
7545
7562
|
postBufferSec: number().min(0).optional()
|
|
7546
7563
|
});
|
|
7564
|
+
({
|
|
7565
|
+
preBufferSec: 10,
|
|
7566
|
+
postBufferSec: 30
|
|
7567
|
+
}).postBufferSec * 1e3;
|
|
7547
7568
|
/**
|
|
7548
7569
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7549
7570
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -7591,6 +7612,12 @@ var RecordingConfigSchema = object({
|
|
|
7591
7612
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7592
7613
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7593
7614
|
mode: RecordingStorageModeSchema.optional(),
|
|
7615
|
+
/**
|
|
7616
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
7617
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
7618
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
7619
|
+
* picks it, and never a slot the broker has not assigned.
|
|
7620
|
+
*/
|
|
7594
7621
|
profiles: array(CamProfileSchema).optional(),
|
|
7595
7622
|
segmentSeconds: number().int().positive().optional(),
|
|
7596
7623
|
/**
|
|
@@ -7671,7 +7698,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7671
7698
|
profiles: array(string()).optional(),
|
|
7672
7699
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7673
7700
|
* never allowed to starve live writers. */
|
|
7674
|
-
throttleMbps: number().min(1).max(1e3).optional()
|
|
7701
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
7702
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
7703
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
7704
|
+
* wants the recent window on the new disk. */
|
|
7705
|
+
sinceMs: number().int().optional()
|
|
7675
7706
|
});
|
|
7676
7707
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
7677
7708
|
* from persistent recording settings: a migration never changes
|
|
@@ -14364,6 +14395,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14364
14395
|
"node-offline",
|
|
14365
14396
|
"node-inference-unavailable",
|
|
14366
14397
|
"detection-blind",
|
|
14398
|
+
"addon-crash-loop",
|
|
14367
14399
|
"addon-update-available",
|
|
14368
14400
|
"server-update-available",
|
|
14369
14401
|
"alarm-triggered",
|
|
@@ -14371,6 +14403,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14371
14403
|
"alarm-disarmed",
|
|
14372
14404
|
"alarm-arming",
|
|
14373
14405
|
"alarm-arm-refused",
|
|
14406
|
+
"addon-updated",
|
|
14407
|
+
"server-updated",
|
|
14408
|
+
"export-completed",
|
|
14374
14409
|
"camera-online",
|
|
14375
14410
|
"camera-offline",
|
|
14376
14411
|
"camera-disabled",
|
|
@@ -16264,13 +16299,19 @@ var RetrainStatusSchema = _enum([
|
|
|
16264
16299
|
* "never marked" from "already trained" must read `retrainStatus`.
|
|
16265
16300
|
*
|
|
16266
16301
|
* `debug` does NOT pin; it is attention, not durability.
|
|
16302
|
+
*
|
|
16303
|
+
* `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
|
|
16304
|
+
* A favourited track is skipped by retention the same way `staging` is, but
|
|
16305
|
+
* it does not enter `none|staging|trained` and has no staging budget.
|
|
16267
16306
|
*/
|
|
16268
16307
|
var TrackFlagFields = {
|
|
16269
16308
|
/** Operator marked this track as training material — i.e. `retrainStatus` is
|
|
16270
16309
|
* `'staging'`. */
|
|
16271
16310
|
markForTrain: boolean().optional(),
|
|
16272
16311
|
/** Operator marked this track for diagnostic attention. */
|
|
16273
|
-
debug: boolean().optional()
|
|
16312
|
+
debug: boolean().optional(),
|
|
16313
|
+
/** Operator favourited this track. Pins it against pruning. */
|
|
16314
|
+
favourited: boolean().optional()
|
|
16274
16315
|
};
|
|
16275
16316
|
/**
|
|
16276
16317
|
* The lifecycle field itself, on the READ surfaces only (`Track`, `KeyEvent`).
|
|
@@ -16295,6 +16336,7 @@ var TrackFlagsSchema = object({
|
|
|
16295
16336
|
trackId: string(),
|
|
16296
16337
|
markForTrain: boolean(),
|
|
16297
16338
|
debug: boolean(),
|
|
16339
|
+
favourited: boolean(),
|
|
16298
16340
|
/** The lifecycle state the boolean was derived from. Required here (unlike on
|
|
16299
16341
|
* a track row) because this shape is only ever produced by the write body,
|
|
16300
16342
|
* which always knows it — and a surface that has just written needs to render
|
|
@@ -16927,6 +16969,12 @@ var TrackCascadeCountsSchema = object({
|
|
|
16927
16969
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16928
16970
|
embeddings: number().int()
|
|
16929
16971
|
});
|
|
16972
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
16973
|
+
var DiskReconcileCountsSchema = object({
|
|
16974
|
+
mediaDropped: number().int(),
|
|
16975
|
+
tracks: number().int(),
|
|
16976
|
+
events: number().int()
|
|
16977
|
+
});
|
|
16930
16978
|
/** Event-store footprint for one camera. */
|
|
16931
16979
|
var EventStoreDeviceFootprintSchema = object({
|
|
16932
16980
|
deviceId: number(),
|
|
@@ -17103,6 +17151,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17103
17151
|
}), method(object({ deviceId: number() }), TrackCascadeCountsSchema, {
|
|
17104
17152
|
kind: "mutation",
|
|
17105
17153
|
auth: "admin"
|
|
17154
|
+
}), method(object({ deviceId: number() }), DiskReconcileCountsSchema, {
|
|
17155
|
+
kind: "mutation",
|
|
17156
|
+
auth: "admin"
|
|
17106
17157
|
}), method(object({
|
|
17107
17158
|
deviceId: number(),
|
|
17108
17159
|
trackIds: array(string()).min(1)
|
|
@@ -18613,6 +18664,24 @@ var CameraStatusDegradationSchema = object({
|
|
|
18613
18664
|
*
|
|
18614
18665
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
18615
18666
|
*/
|
|
18667
|
+
var DiskReconcileJobSchema = object({
|
|
18668
|
+
state: _enum([
|
|
18669
|
+
"idle",
|
|
18670
|
+
"running",
|
|
18671
|
+
"done",
|
|
18672
|
+
"error"
|
|
18673
|
+
]),
|
|
18674
|
+
total: number().int().nonnegative(),
|
|
18675
|
+
completed: number().int().nonnegative(),
|
|
18676
|
+
currentDeviceId: number().int().nullable(),
|
|
18677
|
+
failed: array(number().int()).readonly(),
|
|
18678
|
+
mediaDropped: number().int().nonnegative(),
|
|
18679
|
+
tracks: number().int().nonnegative(),
|
|
18680
|
+
events: number().int().nonnegative(),
|
|
18681
|
+
startedAtMs: number().int().nullable(),
|
|
18682
|
+
finishedAtMs: number().int().nullable(),
|
|
18683
|
+
error: string().nullable()
|
|
18684
|
+
});
|
|
18616
18685
|
var CameraStatusSchema = object({
|
|
18617
18686
|
deviceId: number(),
|
|
18618
18687
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -18844,7 +18913,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
18844
18913
|
}), CameraSwitchGroupSchema, {
|
|
18845
18914
|
kind: "mutation",
|
|
18846
18915
|
auth: "admin"
|
|
18847
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(),
|
|
18916
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
|
|
18917
|
+
kind: "mutation",
|
|
18918
|
+
auth: "admin"
|
|
18919
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
18848
18920
|
name: string(),
|
|
18849
18921
|
description: string().optional(),
|
|
18850
18922
|
config: CameraPipelineConfigSchema
|
|
@@ -19917,20 +19989,6 @@ var VectorStatsResultSchema = object({
|
|
|
19917
19989
|
exact: boolean()
|
|
19918
19990
|
});
|
|
19919
19991
|
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);
|
|
19920
|
-
/**
|
|
19921
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
19922
|
-
*
|
|
19923
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
19924
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
19925
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
19926
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
19927
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
19928
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
19929
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
19930
|
-
*
|
|
19931
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
19932
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
19933
|
-
*/
|
|
19934
19992
|
var ClipSchema = object({
|
|
19935
19993
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
19936
19994
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -19947,8 +20005,65 @@ var ClipSchema = object({
|
|
|
19947
20005
|
startMs: number(),
|
|
19948
20006
|
endMs: number()
|
|
19949
20007
|
}),
|
|
19950
|
-
/**
|
|
19951
|
-
|
|
20008
|
+
/**
|
|
20009
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
20010
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
20011
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
20012
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
20013
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
20014
|
+
*/
|
|
20015
|
+
labels: array(string()).max(3).optional(),
|
|
20016
|
+
/**
|
|
20017
|
+
* Lazy thumbnail URL, never inlined.
|
|
20018
|
+
*
|
|
20019
|
+
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
20020
|
+
* continuous event+fragment visit) MUST use the snapshot of the **main
|
|
20021
|
+
* event of the interval** — `getEventMedia({ eventId, kind: 'snapshot' })`
|
|
20022
|
+
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
20023
|
+
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
20024
|
+
* mint their own stills.
|
|
20025
|
+
*
|
|
20026
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
20027
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
20028
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
20029
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
20030
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
20031
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
20032
|
+
*/
|
|
20033
|
+
thumbnail: string().optional(),
|
|
20034
|
+
/**
|
|
20035
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
20036
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
20037
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
20038
|
+
*
|
|
20039
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
20040
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
20041
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
20042
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
20043
|
+
* construction, so a naive midpoint lands in dead air.
|
|
20044
|
+
*/
|
|
20045
|
+
stillAtMs: number().optional(),
|
|
20046
|
+
/**
|
|
20047
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
20048
|
+
* first within kind (object → motion → audio), capped at
|
|
20049
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
20050
|
+
*
|
|
20051
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
20052
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
20053
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
20054
|
+
*/
|
|
20055
|
+
eventIds: array(string()).optional(),
|
|
20056
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
20057
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
20058
|
+
* list is never mistaken for a quiet visit. */
|
|
20059
|
+
eventCount: number().int().nonnegative().optional(),
|
|
20060
|
+
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
20061
|
+
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
20062
|
+
* bar keeps showing them via `recording.getAvailability`. */
|
|
20063
|
+
holes: array(object({
|
|
20064
|
+
startMs: number(),
|
|
20065
|
+
endMs: number()
|
|
20066
|
+
})).optional()
|
|
19952
20067
|
});
|
|
19953
20068
|
var ClipPlaybackSchema = object({
|
|
19954
20069
|
/** HLS master URL through the hub data-plane (Range + token in path). */
|
|
@@ -20412,7 +20527,14 @@ var SearchResultSchema = object({
|
|
|
20412
20527
|
});
|
|
20413
20528
|
var AutoUpdateSettingsSchema = object({
|
|
20414
20529
|
channel: ChannelSchema,
|
|
20415
|
-
intervalSeconds: number()
|
|
20530
|
+
intervalSeconds: number(),
|
|
20531
|
+
/**
|
|
20532
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
20533
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
20534
|
+
* about a publish and installing it are different decisions. Clamped
|
|
20535
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
20536
|
+
*/
|
|
20537
|
+
updateCheckIntervalSeconds: number()
|
|
20416
20538
|
});
|
|
20417
20539
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20418
20540
|
var RestartAddonResultSchema = unknown();
|
|
@@ -20553,7 +20675,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
20553
20675
|
auth: "admin"
|
|
20554
20676
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
20555
20677
|
channel: ChannelSchema,
|
|
20556
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
20678
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
20679
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
20680
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
20557
20681
|
}), unknown(), {
|
|
20558
20682
|
kind: "mutation",
|
|
20559
20683
|
auth: "admin"
|
|
@@ -24546,7 +24670,9 @@ var ExportOptionsSchema = object({
|
|
|
24546
24670
|
includeAudio: boolean(),
|
|
24547
24671
|
maxLifeMs: number().int().positive(),
|
|
24548
24672
|
deleteAfterDownload: boolean(),
|
|
24549
|
-
title: string().max(200).optional()
|
|
24673
|
+
title: string().max(200).optional(),
|
|
24674
|
+
/** Notification-output target ids to ping when this export becomes ready. */
|
|
24675
|
+
notifyTargetIds: array(string().min(1)).max(20).optional()
|
|
24550
24676
|
}).superRefine((v, ctx) => {
|
|
24551
24677
|
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
24552
24678
|
code: ZodIssueCode.custom,
|
|
@@ -24605,10 +24731,18 @@ var ExportBytesSchema = object({
|
|
|
24605
24731
|
});
|
|
24606
24732
|
method(object({
|
|
24607
24733
|
deviceId: number(),
|
|
24608
|
-
|
|
24734
|
+
/** @deprecated Prefer `profiles`. Kept so timelapse/notifiers keep working. */
|
|
24735
|
+
profile: string().optional(),
|
|
24736
|
+
profiles: array(string()).min(1).optional(),
|
|
24609
24737
|
fromMs: number(),
|
|
24610
24738
|
toMs: number(),
|
|
24611
24739
|
options: ExportOptionsSchema
|
|
24740
|
+
}).superRefine((v, ctx) => {
|
|
24741
|
+
if ((v.profiles !== void 0 && v.profiles.length > 0 ? v.profiles : v.profile !== void 0 ? [v.profile] : []).length < 1) ctx.addIssue({
|
|
24742
|
+
code: ZodIssueCode.custom,
|
|
24743
|
+
message: "pass profiles[] (min 1) or legacy profile",
|
|
24744
|
+
path: ["profiles"]
|
|
24745
|
+
});
|
|
24612
24746
|
}), ExportRecordSchema, {
|
|
24613
24747
|
kind: "mutation",
|
|
24614
24748
|
auth: "protected"
|
|
@@ -29208,6 +29342,12 @@ Object.freeze({
|
|
|
29208
29342
|
addonId: null,
|
|
29209
29343
|
access: "create"
|
|
29210
29344
|
},
|
|
29345
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
29346
|
+
capName: "pipeline-analytics",
|
|
29347
|
+
capScope: "device",
|
|
29348
|
+
addonId: null,
|
|
29349
|
+
access: "create"
|
|
29350
|
+
},
|
|
29211
29351
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
29212
29352
|
capName: "pipeline-analytics",
|
|
29213
29353
|
capScope: "device",
|
|
@@ -29610,6 +29750,12 @@ Object.freeze({
|
|
|
29610
29750
|
addonId: null,
|
|
29611
29751
|
access: "view"
|
|
29612
29752
|
},
|
|
29753
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
29754
|
+
capName: "pipeline-orchestrator",
|
|
29755
|
+
capScope: "system",
|
|
29756
|
+
addonId: null,
|
|
29757
|
+
access: "view"
|
|
29758
|
+
},
|
|
29613
29759
|
"pipelineOrchestrator.listAgentSettings": {
|
|
29614
29760
|
capName: "pipeline-orchestrator",
|
|
29615
29761
|
capScope: "system",
|
|
@@ -29634,6 +29780,12 @@ Object.freeze({
|
|
|
29634
29780
|
addonId: null,
|
|
29635
29781
|
access: "create"
|
|
29636
29782
|
},
|
|
29783
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
29784
|
+
capName: "pipeline-orchestrator",
|
|
29785
|
+
capScope: "system",
|
|
29786
|
+
addonId: null,
|
|
29787
|
+
access: "create"
|
|
29788
|
+
},
|
|
29637
29789
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
29638
29790
|
capName: "pipeline-orchestrator",
|
|
29639
29791
|
capScope: "system",
|
|
@@ -32625,6 +32777,11 @@ Object.freeze({
|
|
|
32625
32777
|
form: "single",
|
|
32626
32778
|
optional: true
|
|
32627
32779
|
}],
|
|
32780
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
32781
|
+
name: "deviceId",
|
|
32782
|
+
form: "single",
|
|
32783
|
+
optional: false
|
|
32784
|
+
}],
|
|
32628
32785
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
32629
32786
|
name: "deviceId",
|
|
32630
32787
|
form: "single",
|
|
@@ -33690,6 +33847,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
33690
33847
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
33691
33848
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
33692
33849
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
33850
|
+
var MB = 1024 * 1024;
|
|
33851
|
+
1024 * MB, 3072 * MB;
|
|
33693
33852
|
/**
|
|
33694
33853
|
* Fixed-capacity ring buffer. When full, push() overwrites the oldest entry.
|
|
33695
33854
|
* drain() returns up to maxCount items in FIFO order and removes them.
|