@camstack/system 1.2.101 → 1.2.103
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/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +182 -25
- package/dist/builtins/snapshot/index.mjs +182 -25
- package/dist/builtins/snapshot/snapshot-cache.d.ts +63 -0
- package/dist/builtins/snapshot/snapshot-grab-pick.d.ts +20 -0
- package/dist/builtins/snapshot/snapshot-resize.d.ts +33 -1
- package/dist/builtins/snapshot/snapshot.addon.d.ts +6 -0
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-RbFV8cX7.mjs → dist-DHKXob1m.mjs} +179 -29
- package/dist/{dist-tMrPAfpF.js → dist-qnwy_iWM.js} +179 -29
- package/dist/index.js +264 -62
- package/dist/index.mjs +264 -62
- package/dist/kernel/config-schema.d.ts +14 -10
- package/dist/kernel/heap-watch.d.ts +39 -7
- package/dist/kernel/moleculer/process-service.d.ts +34 -0
- package/dist/logging/log-manager.d.ts +7 -5
- package/dist/logging/partitioned-log-buffer.d.ts +95 -16
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-C0lyLd5U.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
|
/**
|
|
@@ -3651,6 +3652,10 @@ var RecordingBandSchema = z.object({
|
|
|
3651
3652
|
preBufferSec: z.number().min(0).optional(),
|
|
3652
3653
|
postBufferSec: z.number().min(0).optional()
|
|
3653
3654
|
});
|
|
3655
|
+
({
|
|
3656
|
+
preBufferSec: 10,
|
|
3657
|
+
postBufferSec: 30
|
|
3658
|
+
}).postBufferSec * 1e3;
|
|
3654
3659
|
/**
|
|
3655
3660
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
3656
3661
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -3698,6 +3703,12 @@ var RecordingConfigSchema = z.object({
|
|
|
3698
3703
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
3699
3704
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
3700
3705
|
mode: RecordingStorageModeSchema.optional(),
|
|
3706
|
+
/**
|
|
3707
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
3708
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
3709
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
3710
|
+
* picks it, and never a slot the broker has not assigned.
|
|
3711
|
+
*/
|
|
3701
3712
|
profiles: z.array(CamProfileSchema).optional(),
|
|
3702
3713
|
segmentSeconds: z.number().int().positive().optional(),
|
|
3703
3714
|
/**
|
|
@@ -3778,7 +3789,11 @@ var RelocateFootageInputSchema = z.object({
|
|
|
3778
3789
|
profiles: z.array(z.string()).optional(),
|
|
3779
3790
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
3780
3791
|
* never allowed to starve live writers. */
|
|
3781
|
-
throttleMbps: z.number().min(1).max(1e3).optional()
|
|
3792
|
+
throttleMbps: z.number().min(1).max(1e3).optional(),
|
|
3793
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
3794
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
3795
|
+
* wants the recent window on the new disk. */
|
|
3796
|
+
sinceMs: z.number().int().optional()
|
|
3782
3797
|
});
|
|
3783
3798
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
3784
3799
|
* from persistent recording settings: a migration never changes
|
|
@@ -12433,6 +12448,9 @@ var NcSystemEventKindSchema = z.enum([
|
|
|
12433
12448
|
"alarm-disarmed",
|
|
12434
12449
|
"alarm-arming",
|
|
12435
12450
|
"alarm-arm-refused",
|
|
12451
|
+
"addon-updated",
|
|
12452
|
+
"server-updated",
|
|
12453
|
+
"export-completed",
|
|
12436
12454
|
"camera-online",
|
|
12437
12455
|
"camera-offline",
|
|
12438
12456
|
"camera-disabled",
|
|
@@ -14436,13 +14454,19 @@ var RetrainStatusSchema = z.enum([
|
|
|
14436
14454
|
* "never marked" from "already trained" must read `retrainStatus`.
|
|
14437
14455
|
*
|
|
14438
14456
|
* `debug` does NOT pin; it is attention, not durability.
|
|
14457
|
+
*
|
|
14458
|
+
* `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
|
|
14459
|
+
* A favourited track is skipped by retention the same way `staging` is, but
|
|
14460
|
+
* it does not enter `none|staging|trained` and has no staging budget.
|
|
14439
14461
|
*/
|
|
14440
14462
|
var TrackFlagFields = {
|
|
14441
14463
|
/** Operator marked this track as training material — i.e. `retrainStatus` is
|
|
14442
14464
|
* `'staging'`. */
|
|
14443
14465
|
markForTrain: z.boolean().optional(),
|
|
14444
14466
|
/** Operator marked this track for diagnostic attention. */
|
|
14445
|
-
debug: z.boolean().optional()
|
|
14467
|
+
debug: z.boolean().optional(),
|
|
14468
|
+
/** Operator favourited this track. Pins it against pruning. */
|
|
14469
|
+
favourited: z.boolean().optional()
|
|
14446
14470
|
};
|
|
14447
14471
|
/**
|
|
14448
14472
|
* The lifecycle field itself, on the READ surfaces only (`Track`, `KeyEvent`).
|
|
@@ -14467,6 +14491,7 @@ var TrackFlagsSchema = z.object({
|
|
|
14467
14491
|
trackId: z.string(),
|
|
14468
14492
|
markForTrain: z.boolean(),
|
|
14469
14493
|
debug: z.boolean(),
|
|
14494
|
+
favourited: z.boolean(),
|
|
14470
14495
|
/** The lifecycle state the boolean was derived from. Required here (unlike on
|
|
14471
14496
|
* a track row) because this shape is only ever produced by the write body,
|
|
14472
14497
|
* which always knows it — and a surface that has just written needs to render
|
|
@@ -15107,6 +15132,12 @@ var TrackCascadeCountsSchema = z.object({
|
|
|
15107
15132
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
15108
15133
|
embeddings: z.number().int()
|
|
15109
15134
|
});
|
|
15135
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
15136
|
+
var DiskReconcileCountsSchema = z.object({
|
|
15137
|
+
mediaDropped: z.number().int(),
|
|
15138
|
+
tracks: z.number().int(),
|
|
15139
|
+
events: z.number().int()
|
|
15140
|
+
});
|
|
15110
15141
|
/** Event-store footprint for one camera. */
|
|
15111
15142
|
var EventStoreDeviceFootprintSchema = z.object({
|
|
15112
15143
|
deviceId: z.number(),
|
|
@@ -15392,6 +15423,17 @@ var pipelineAnalyticsCapability = {
|
|
|
15392
15423
|
auth: "admin"
|
|
15393
15424
|
}),
|
|
15394
15425
|
/**
|
|
15426
|
+
* Disk-wins reconcile for one camera. Drops media index rows whose blobs
|
|
15427
|
+
* are gone, then cascades tracks (including favourited and staging) that
|
|
15428
|
+
* have no remaining files. Enrolled identity/vehicle/scene media is never
|
|
15429
|
+
* probed. Trackless motion/audio events with no remaining file are dropped,
|
|
15430
|
+
* including snapshot-less rows.
|
|
15431
|
+
*/
|
|
15432
|
+
reconcileFromDisk: method(z.object({ deviceId: z.number() }), DiskReconcileCountsSchema, {
|
|
15433
|
+
kind: "mutation",
|
|
15434
|
+
auth: "admin"
|
|
15435
|
+
}),
|
|
15436
|
+
/**
|
|
15395
15437
|
* Delete whole tracks (object events) by id for the given device,
|
|
15396
15438
|
* cascading their media in lockstep. Returns the number of tracks
|
|
15397
15439
|
* actually deleted plus the ids that could not be removed.
|
|
@@ -15410,7 +15452,7 @@ var pipelineAnalyticsCapability = {
|
|
|
15410
15452
|
auth: "admin"
|
|
15411
15453
|
}),
|
|
15412
15454
|
/**
|
|
15413
|
-
* Set the per-track operator flags (`markForTrain`, `debug`) on ONE track.
|
|
15455
|
+
* Set the per-track operator flags (`markForTrain`, `debug`, `favourited`) on ONE track.
|
|
15414
15456
|
* The patch is PARTIAL — an omitted key is left untouched — because the
|
|
15415
15457
|
* three surfaces that write it (admin Events grid, viewer track detail,
|
|
15416
15458
|
* viewer cluster detail) each own one toggle and must not clobber the other.
|
|
@@ -17549,6 +17591,24 @@ var CameraStatusDegradationSchema = z.object({
|
|
|
17549
17591
|
*
|
|
17550
17592
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
17551
17593
|
*/
|
|
17594
|
+
var DiskReconcileJobSchema = z.object({
|
|
17595
|
+
state: z.enum([
|
|
17596
|
+
"idle",
|
|
17597
|
+
"running",
|
|
17598
|
+
"done",
|
|
17599
|
+
"error"
|
|
17600
|
+
]),
|
|
17601
|
+
total: z.number().int().nonnegative(),
|
|
17602
|
+
completed: z.number().int().nonnegative(),
|
|
17603
|
+
currentDeviceId: z.number().int().nullable(),
|
|
17604
|
+
failed: z.array(z.number().int()).readonly(),
|
|
17605
|
+
mediaDropped: z.number().int().nonnegative(),
|
|
17606
|
+
tracks: z.number().int().nonnegative(),
|
|
17607
|
+
events: z.number().int().nonnegative(),
|
|
17608
|
+
startedAtMs: z.number().int().nullable(),
|
|
17609
|
+
finishedAtMs: z.number().int().nullable(),
|
|
17610
|
+
error: z.string().nullable()
|
|
17611
|
+
});
|
|
17552
17612
|
var CameraStatusSchema = z.object({
|
|
17553
17613
|
deviceId: z.number(),
|
|
17554
17614
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -18085,6 +18145,18 @@ var pipelineOrchestratorCapability = {
|
|
|
18085
18145
|
* rail without issuing N parallel browser round-trips.
|
|
18086
18146
|
*/
|
|
18087
18147
|
getCameraStatuses: method(z.object({ deviceIds: z.array(z.number()).optional() }), z.array(CameraStatusSchema).readonly()),
|
|
18148
|
+
/**
|
|
18149
|
+
* Disk-wins fleet reconcile after a recordings wipe. Starts the walk in
|
|
18150
|
+
* the addon process and returns immediately with the job snapshot — the
|
|
18151
|
+
* work outlives the tRPC/UDS 60s timeout. Poll `getReconcileFromDiskStatus`.
|
|
18152
|
+
* Admin-only. Idempotent while a job is already running.
|
|
18153
|
+
*/
|
|
18154
|
+
reconcileFromDisk: method(z.void(), DiskReconcileJobSchema, {
|
|
18155
|
+
kind: "mutation",
|
|
18156
|
+
auth: "admin"
|
|
18157
|
+
}),
|
|
18158
|
+
/** Snapshot of the in-flight or last disk-wins fleet reconcile. */
|
|
18159
|
+
getReconcileFromDiskStatus: method(z.void(), DiskReconcileJobSchema, { auth: "admin" }),
|
|
18088
18160
|
/** List every template the operator has saved. */
|
|
18089
18161
|
listTemplates: method(z.void(), z.array(PipelineTemplateSchema).readonly()),
|
|
18090
18162
|
/** Create a new named preset from a given CameraPipelineConfig. */
|
|
@@ -19557,20 +19629,6 @@ var vectorStoreCapability = {
|
|
|
19557
19629
|
stats: method(VectorStatsInputSchema, VectorStatsResultSchema)
|
|
19558
19630
|
}
|
|
19559
19631
|
};
|
|
19560
|
-
/**
|
|
19561
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
19562
|
-
*
|
|
19563
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
19564
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
19565
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
19566
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
19567
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
19568
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
19569
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
19570
|
-
*
|
|
19571
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
19572
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
19573
|
-
*/
|
|
19574
19632
|
var ClipSchema = z.object({
|
|
19575
19633
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
19576
19634
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -19587,8 +19645,57 @@ var ClipSchema = z.object({
|
|
|
19587
19645
|
startMs: z.number(),
|
|
19588
19646
|
endMs: z.number()
|
|
19589
19647
|
}),
|
|
19590
|
-
/**
|
|
19591
|
-
thumbnail
|
|
19648
|
+
/**
|
|
19649
|
+
* Lazy thumbnail URL, never inlined.
|
|
19650
|
+
*
|
|
19651
|
+
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
19652
|
+
* continuous event+fragment visit) MUST use the snapshot of the **main
|
|
19653
|
+
* event of the interval** — `getEventMedia({ eventId, kind: 'snapshot' })`
|
|
19654
|
+
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
19655
|
+
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
19656
|
+
* mint their own stills.
|
|
19657
|
+
*
|
|
19658
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
19659
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
19660
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
19661
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
19662
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
19663
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
19664
|
+
*/
|
|
19665
|
+
thumbnail: z.string().optional(),
|
|
19666
|
+
/**
|
|
19667
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
19668
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
19669
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
19670
|
+
*
|
|
19671
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
19672
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
19673
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
19674
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
19675
|
+
* construction, so a naive midpoint lands in dead air.
|
|
19676
|
+
*/
|
|
19677
|
+
stillAtMs: z.number().optional(),
|
|
19678
|
+
/**
|
|
19679
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
19680
|
+
* first within kind (object → motion → audio), capped at
|
|
19681
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
19682
|
+
*
|
|
19683
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
19684
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
19685
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
19686
|
+
*/
|
|
19687
|
+
eventIds: z.array(z.string()).optional(),
|
|
19688
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
19689
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
19690
|
+
* list is never mistaken for a quiet visit. */
|
|
19691
|
+
eventCount: z.number().int().nonnegative().optional(),
|
|
19692
|
+
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
19693
|
+
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
19694
|
+
* bar keeps showing them via `recording.getAvailability`. */
|
|
19695
|
+
holes: z.array(z.object({
|
|
19696
|
+
startMs: z.number(),
|
|
19697
|
+
endMs: z.number()
|
|
19698
|
+
})).optional()
|
|
19592
19699
|
});
|
|
19593
19700
|
var ClipPlaybackSchema = z.object({
|
|
19594
19701
|
/** HLS master URL through the hub data-plane (Range + token in path). */
|
|
@@ -20218,7 +20325,14 @@ var SearchResultSchema = z.object({
|
|
|
20218
20325
|
});
|
|
20219
20326
|
var AutoUpdateSettingsSchema = z.object({
|
|
20220
20327
|
channel: ChannelSchema,
|
|
20221
|
-
intervalSeconds: z.number()
|
|
20328
|
+
intervalSeconds: z.number(),
|
|
20329
|
+
/**
|
|
20330
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
20331
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
20332
|
+
* about a publish and installing it are different decisions. Clamped
|
|
20333
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
20334
|
+
*/
|
|
20335
|
+
updateCheckIntervalSeconds: z.number()
|
|
20222
20336
|
});
|
|
20223
20337
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20224
20338
|
var RestartAddonResultSchema = z.unknown();
|
|
@@ -20487,7 +20601,9 @@ var addonsCapability = {
|
|
|
20487
20601
|
getAutoUpdateSettings: method(z.void(), AutoUpdateSettingsSchema, { auth: "admin" }),
|
|
20488
20602
|
setAutoUpdateSettings: method(z.object({
|
|
20489
20603
|
channel: ChannelSchema,
|
|
20490
|
-
intervalSeconds: z.number().min(300).max(86400).optional()
|
|
20604
|
+
intervalSeconds: z.number().min(300).max(86400).optional(),
|
|
20605
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
20606
|
+
updateCheckIntervalSeconds: z.number().min(900).max(604800).optional()
|
|
20491
20607
|
}), z.unknown(), {
|
|
20492
20608
|
kind: "mutation",
|
|
20493
20609
|
auth: "admin"
|
|
@@ -26912,7 +27028,9 @@ var ExportOptionsSchema = z.object({
|
|
|
26912
27028
|
includeAudio: z.boolean(),
|
|
26913
27029
|
maxLifeMs: z.number().int().positive(),
|
|
26914
27030
|
deleteAfterDownload: z.boolean(),
|
|
26915
|
-
title: z.string().max(200).optional()
|
|
27031
|
+
title: z.string().max(200).optional(),
|
|
27032
|
+
/** Notification-output target ids to ping when this export becomes ready. */
|
|
27033
|
+
notifyTargetIds: z.array(z.string().min(1)).max(20).optional()
|
|
26916
27034
|
}).superRefine((v, ctx) => {
|
|
26917
27035
|
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
26918
27036
|
code: z.ZodIssueCode.custom,
|
|
@@ -26974,14 +27092,23 @@ var recordingExportCapability = {
|
|
|
26974
27092
|
scope: "system",
|
|
26975
27093
|
mode: "singleton",
|
|
26976
27094
|
methods: {
|
|
26977
|
-
/** Queue a render of `[fromMs,toMs)` for `deviceId`/`
|
|
26978
|
-
*
|
|
27095
|
+
/** Queue a render of `[fromMs,toMs)` for `deviceId`/`profiles` (legacy
|
|
27096
|
+
* singular `profile` still accepted). Fails fast when no footage covers
|
|
27097
|
+
* the range. One job per profile; returns the first queued record. */
|
|
26979
27098
|
createExport: method(z.object({
|
|
26980
27099
|
deviceId: z.number(),
|
|
26981
|
-
|
|
27100
|
+
/** @deprecated Prefer `profiles`. Kept so timelapse/notifiers keep working. */
|
|
27101
|
+
profile: z.string().optional(),
|
|
27102
|
+
profiles: z.array(z.string()).min(1).optional(),
|
|
26982
27103
|
fromMs: z.number(),
|
|
26983
27104
|
toMs: z.number(),
|
|
26984
27105
|
options: ExportOptionsSchema
|
|
27106
|
+
}).superRefine((v, ctx) => {
|
|
27107
|
+
if ((v.profiles !== void 0 && v.profiles.length > 0 ? v.profiles : v.profile !== void 0 ? [v.profile] : []).length < 1) ctx.addIssue({
|
|
27108
|
+
code: z.ZodIssueCode.custom,
|
|
27109
|
+
message: "pass profiles[] (min 1) or legacy profile",
|
|
27110
|
+
path: ["profiles"]
|
|
27111
|
+
});
|
|
26985
27112
|
}), ExportRecordSchema, {
|
|
26986
27113
|
kind: "mutation",
|
|
26987
27114
|
auth: "protected"
|
|
@@ -33191,6 +33318,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
33191
33318
|
addonId: null,
|
|
33192
33319
|
access: "create"
|
|
33193
33320
|
},
|
|
33321
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
33322
|
+
capName: "pipeline-analytics",
|
|
33323
|
+
capScope: "device",
|
|
33324
|
+
addonId: null,
|
|
33325
|
+
access: "create"
|
|
33326
|
+
},
|
|
33194
33327
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
33195
33328
|
capName: "pipeline-analytics",
|
|
33196
33329
|
capScope: "device",
|
|
@@ -33593,6 +33726,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
33593
33726
|
addonId: null,
|
|
33594
33727
|
access: "view"
|
|
33595
33728
|
},
|
|
33729
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
33730
|
+
capName: "pipeline-orchestrator",
|
|
33731
|
+
capScope: "system",
|
|
33732
|
+
addonId: null,
|
|
33733
|
+
access: "view"
|
|
33734
|
+
},
|
|
33596
33735
|
"pipelineOrchestrator.listAgentSettings": {
|
|
33597
33736
|
capName: "pipeline-orchestrator",
|
|
33598
33737
|
capScope: "system",
|
|
@@ -33617,6 +33756,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
33617
33756
|
addonId: null,
|
|
33618
33757
|
access: "create"
|
|
33619
33758
|
},
|
|
33759
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
33760
|
+
capName: "pipeline-orchestrator",
|
|
33761
|
+
capScope: "system",
|
|
33762
|
+
addonId: null,
|
|
33763
|
+
access: "create"
|
|
33764
|
+
},
|
|
33620
33765
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
33621
33766
|
capName: "pipeline-orchestrator",
|
|
33622
33767
|
capScope: "system",
|
|
@@ -36608,6 +36753,11 @@ Object.freeze({
|
|
|
36608
36753
|
form: "single",
|
|
36609
36754
|
optional: true
|
|
36610
36755
|
}],
|
|
36756
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
36757
|
+
name: "deviceId",
|
|
36758
|
+
form: "single",
|
|
36759
|
+
optional: false
|
|
36760
|
+
}],
|
|
36611
36761
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36612
36762
|
name: "deviceId",
|
|
36613
36763
|
form: "single",
|