@camstack/addon-tailscale 1.2.20 → 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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-DGr1NbVk.js → dist-BclSVGVD.js} +178 -27
- package/dist/{dist-nGlZjTHi.mjs → dist-Bs4xKAvQ.mjs} +178 -27
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-BclSVGVD.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-Bs4xKAvQ.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-XfKNtfCc.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -15,9 +15,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
15
15
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
16
16
|
/**
|
|
17
17
|
* A newer addon or server-root package version was found by the
|
|
18
|
-
* authoritative registry check. Emitted once
|
|
19
|
-
* `(
|
|
20
|
-
*
|
|
18
|
+
* authoritative registry check. Emitted once when any observed
|
|
19
|
+
* `latestVersion` changes (or a package/node first appears behind);
|
|
20
|
+
* the payload carries the full currently-available list. Repeated
|
|
21
|
+
* polling of the same latests is silent.
|
|
21
22
|
*/
|
|
22
23
|
EventCategory["UpdateAvailable"] = "update.available";
|
|
23
24
|
/**
|
|
@@ -36,6 +37,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
36
37
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
37
38
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
38
39
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
40
|
+
/**
|
|
41
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
42
|
+
*
|
|
43
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
44
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
45
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
46
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
47
|
+
*
|
|
48
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
49
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
50
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
51
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
52
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
53
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
54
|
+
*/
|
|
55
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
39
56
|
EventCategory["AddonError"] = "addon.error";
|
|
40
57
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
41
58
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -7565,6 +7582,10 @@ var RecordingBandSchema = object({
|
|
|
7565
7582
|
preBufferSec: number().min(0).optional(),
|
|
7566
7583
|
postBufferSec: number().min(0).optional()
|
|
7567
7584
|
});
|
|
7585
|
+
({
|
|
7586
|
+
preBufferSec: 10,
|
|
7587
|
+
postBufferSec: 30
|
|
7588
|
+
}).postBufferSec * 1e3;
|
|
7568
7589
|
/**
|
|
7569
7590
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7570
7591
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -7612,6 +7633,12 @@ var RecordingConfigSchema = object({
|
|
|
7612
7633
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7613
7634
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7614
7635
|
mode: RecordingStorageModeSchema.optional(),
|
|
7636
|
+
/**
|
|
7637
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
7638
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
7639
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
7640
|
+
* picks it, and never a slot the broker has not assigned.
|
|
7641
|
+
*/
|
|
7615
7642
|
profiles: array(CamProfileSchema).optional(),
|
|
7616
7643
|
segmentSeconds: number().int().positive().optional(),
|
|
7617
7644
|
/**
|
|
@@ -7692,7 +7719,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7692
7719
|
profiles: array(string()).optional(),
|
|
7693
7720
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7694
7721
|
* never allowed to starve live writers. */
|
|
7695
|
-
throttleMbps: number().min(1).max(1e3).optional()
|
|
7722
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
7723
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
7724
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
7725
|
+
* wants the recent window on the new disk. */
|
|
7726
|
+
sinceMs: number().int().optional()
|
|
7696
7727
|
});
|
|
7697
7728
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
7698
7729
|
* from persistent recording settings: a migration never changes
|
|
@@ -14272,6 +14303,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14272
14303
|
"node-offline",
|
|
14273
14304
|
"node-inference-unavailable",
|
|
14274
14305
|
"detection-blind",
|
|
14306
|
+
"addon-crash-loop",
|
|
14275
14307
|
"addon-update-available",
|
|
14276
14308
|
"server-update-available",
|
|
14277
14309
|
"alarm-triggered",
|
|
@@ -14279,6 +14311,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14279
14311
|
"alarm-disarmed",
|
|
14280
14312
|
"alarm-arming",
|
|
14281
14313
|
"alarm-arm-refused",
|
|
14314
|
+
"addon-updated",
|
|
14315
|
+
"server-updated",
|
|
14316
|
+
"export-completed",
|
|
14282
14317
|
"camera-online",
|
|
14283
14318
|
"camera-offline",
|
|
14284
14319
|
"camera-disabled",
|
|
@@ -16172,13 +16207,19 @@ var RetrainStatusSchema = _enum([
|
|
|
16172
16207
|
* "never marked" from "already trained" must read `retrainStatus`.
|
|
16173
16208
|
*
|
|
16174
16209
|
* `debug` does NOT pin; it is attention, not durability.
|
|
16210
|
+
*
|
|
16211
|
+
* `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
|
|
16212
|
+
* A favourited track is skipped by retention the same way `staging` is, but
|
|
16213
|
+
* it does not enter `none|staging|trained` and has no staging budget.
|
|
16175
16214
|
*/
|
|
16176
16215
|
var TrackFlagFields = {
|
|
16177
16216
|
/** Operator marked this track as training material — i.e. `retrainStatus` is
|
|
16178
16217
|
* `'staging'`. */
|
|
16179
16218
|
markForTrain: boolean().optional(),
|
|
16180
16219
|
/** Operator marked this track for diagnostic attention. */
|
|
16181
|
-
debug: boolean().optional()
|
|
16220
|
+
debug: boolean().optional(),
|
|
16221
|
+
/** Operator favourited this track. Pins it against pruning. */
|
|
16222
|
+
favourited: boolean().optional()
|
|
16182
16223
|
};
|
|
16183
16224
|
/**
|
|
16184
16225
|
* The lifecycle field itself, on the READ surfaces only (`Track`, `KeyEvent`).
|
|
@@ -16203,6 +16244,7 @@ var TrackFlagsSchema = object({
|
|
|
16203
16244
|
trackId: string(),
|
|
16204
16245
|
markForTrain: boolean(),
|
|
16205
16246
|
debug: boolean(),
|
|
16247
|
+
favourited: boolean(),
|
|
16206
16248
|
/** The lifecycle state the boolean was derived from. Required here (unlike on
|
|
16207
16249
|
* a track row) because this shape is only ever produced by the write body,
|
|
16208
16250
|
* which always knows it — and a surface that has just written needs to render
|
|
@@ -16835,6 +16877,12 @@ var TrackCascadeCountsSchema = object({
|
|
|
16835
16877
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16836
16878
|
embeddings: number().int()
|
|
16837
16879
|
});
|
|
16880
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
16881
|
+
var DiskReconcileCountsSchema = object({
|
|
16882
|
+
mediaDropped: number().int(),
|
|
16883
|
+
tracks: number().int(),
|
|
16884
|
+
events: number().int()
|
|
16885
|
+
});
|
|
16838
16886
|
/** Event-store footprint for one camera. */
|
|
16839
16887
|
var EventStoreDeviceFootprintSchema = object({
|
|
16840
16888
|
deviceId: number(),
|
|
@@ -17011,6 +17059,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17011
17059
|
}), method(object({ deviceId: number() }), TrackCascadeCountsSchema, {
|
|
17012
17060
|
kind: "mutation",
|
|
17013
17061
|
auth: "admin"
|
|
17062
|
+
}), method(object({ deviceId: number() }), DiskReconcileCountsSchema, {
|
|
17063
|
+
kind: "mutation",
|
|
17064
|
+
auth: "admin"
|
|
17014
17065
|
}), method(object({
|
|
17015
17066
|
deviceId: number(),
|
|
17016
17067
|
trackIds: array(string()).min(1)
|
|
@@ -18521,6 +18572,24 @@ var CameraStatusDegradationSchema = object({
|
|
|
18521
18572
|
*
|
|
18522
18573
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
18523
18574
|
*/
|
|
18575
|
+
var DiskReconcileJobSchema = object({
|
|
18576
|
+
state: _enum([
|
|
18577
|
+
"idle",
|
|
18578
|
+
"running",
|
|
18579
|
+
"done",
|
|
18580
|
+
"error"
|
|
18581
|
+
]),
|
|
18582
|
+
total: number().int().nonnegative(),
|
|
18583
|
+
completed: number().int().nonnegative(),
|
|
18584
|
+
currentDeviceId: number().int().nullable(),
|
|
18585
|
+
failed: array(number().int()).readonly(),
|
|
18586
|
+
mediaDropped: number().int().nonnegative(),
|
|
18587
|
+
tracks: number().int().nonnegative(),
|
|
18588
|
+
events: number().int().nonnegative(),
|
|
18589
|
+
startedAtMs: number().int().nullable(),
|
|
18590
|
+
finishedAtMs: number().int().nullable(),
|
|
18591
|
+
error: string().nullable()
|
|
18592
|
+
});
|
|
18524
18593
|
var CameraStatusSchema = object({
|
|
18525
18594
|
deviceId: number(),
|
|
18526
18595
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -18752,7 +18821,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
18752
18821
|
}), CameraSwitchGroupSchema, {
|
|
18753
18822
|
kind: "mutation",
|
|
18754
18823
|
auth: "admin"
|
|
18755
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(),
|
|
18824
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
|
|
18825
|
+
kind: "mutation",
|
|
18826
|
+
auth: "admin"
|
|
18827
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
18756
18828
|
name: string(),
|
|
18757
18829
|
description: string().optional(),
|
|
18758
18830
|
config: CameraPipelineConfigSchema
|
|
@@ -19825,20 +19897,6 @@ var VectorStatsResultSchema = object({
|
|
|
19825
19897
|
exact: boolean()
|
|
19826
19898
|
});
|
|
19827
19899
|
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);
|
|
19828
|
-
/**
|
|
19829
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
19830
|
-
*
|
|
19831
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
19832
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
19833
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
19834
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
19835
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
19836
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
19837
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
19838
|
-
*
|
|
19839
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
19840
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
19841
|
-
*/
|
|
19842
19900
|
var ClipSchema = object({
|
|
19843
19901
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
19844
19902
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -19855,8 +19913,57 @@ var ClipSchema = object({
|
|
|
19855
19913
|
startMs: number(),
|
|
19856
19914
|
endMs: number()
|
|
19857
19915
|
}),
|
|
19858
|
-
/**
|
|
19859
|
-
thumbnail
|
|
19916
|
+
/**
|
|
19917
|
+
* Lazy thumbnail URL, never inlined.
|
|
19918
|
+
*
|
|
19919
|
+
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
19920
|
+
* continuous event+fragment visit) MUST use the snapshot of the **main
|
|
19921
|
+
* event of the interval** — `getEventMedia({ eventId, kind: 'snapshot' })`
|
|
19922
|
+
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
19923
|
+
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
19924
|
+
* mint their own stills.
|
|
19925
|
+
*
|
|
19926
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
19927
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
19928
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
19929
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
19930
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
19931
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
19932
|
+
*/
|
|
19933
|
+
thumbnail: string().optional(),
|
|
19934
|
+
/**
|
|
19935
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
19936
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
19937
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
19938
|
+
*
|
|
19939
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
19940
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
19941
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
19942
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
19943
|
+
* construction, so a naive midpoint lands in dead air.
|
|
19944
|
+
*/
|
|
19945
|
+
stillAtMs: number().optional(),
|
|
19946
|
+
/**
|
|
19947
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
19948
|
+
* first within kind (object → motion → audio), capped at
|
|
19949
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
19950
|
+
*
|
|
19951
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
19952
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
19953
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
19954
|
+
*/
|
|
19955
|
+
eventIds: array(string()).optional(),
|
|
19956
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
19957
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
19958
|
+
* list is never mistaken for a quiet visit. */
|
|
19959
|
+
eventCount: number().int().nonnegative().optional(),
|
|
19960
|
+
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
19961
|
+
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
19962
|
+
* bar keeps showing them via `recording.getAvailability`. */
|
|
19963
|
+
holes: array(object({
|
|
19964
|
+
startMs: number(),
|
|
19965
|
+
endMs: number()
|
|
19966
|
+
})).optional()
|
|
19860
19967
|
});
|
|
19861
19968
|
var ClipPlaybackSchema = object({
|
|
19862
19969
|
/** HLS master URL through the hub data-plane (Range + token in path). */
|
|
@@ -20320,7 +20427,14 @@ var SearchResultSchema = object({
|
|
|
20320
20427
|
});
|
|
20321
20428
|
var AutoUpdateSettingsSchema = object({
|
|
20322
20429
|
channel: ChannelSchema,
|
|
20323
|
-
intervalSeconds: number()
|
|
20430
|
+
intervalSeconds: number(),
|
|
20431
|
+
/**
|
|
20432
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
20433
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
20434
|
+
* about a publish and installing it are different decisions. Clamped
|
|
20435
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
20436
|
+
*/
|
|
20437
|
+
updateCheckIntervalSeconds: number()
|
|
20324
20438
|
});
|
|
20325
20439
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20326
20440
|
var RestartAddonResultSchema = unknown();
|
|
@@ -20461,7 +20575,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
20461
20575
|
auth: "admin"
|
|
20462
20576
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
20463
20577
|
channel: ChannelSchema,
|
|
20464
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
20578
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
20579
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
20580
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
20465
20581
|
}), unknown(), {
|
|
20466
20582
|
kind: "mutation",
|
|
20467
20583
|
auth: "admin"
|
|
@@ -24515,7 +24631,9 @@ var ExportOptionsSchema = object({
|
|
|
24515
24631
|
includeAudio: boolean(),
|
|
24516
24632
|
maxLifeMs: number().int().positive(),
|
|
24517
24633
|
deleteAfterDownload: boolean(),
|
|
24518
|
-
title: string().max(200).optional()
|
|
24634
|
+
title: string().max(200).optional(),
|
|
24635
|
+
/** Notification-output target ids to ping when this export becomes ready. */
|
|
24636
|
+
notifyTargetIds: array(string().min(1)).max(20).optional()
|
|
24519
24637
|
}).superRefine((v, ctx) => {
|
|
24520
24638
|
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
24521
24639
|
code: ZodIssueCode.custom,
|
|
@@ -24574,10 +24692,18 @@ var ExportBytesSchema = object({
|
|
|
24574
24692
|
});
|
|
24575
24693
|
method(object({
|
|
24576
24694
|
deviceId: number(),
|
|
24577
|
-
|
|
24695
|
+
/** @deprecated Prefer `profiles`. Kept so timelapse/notifiers keep working. */
|
|
24696
|
+
profile: string().optional(),
|
|
24697
|
+
profiles: array(string()).min(1).optional(),
|
|
24578
24698
|
fromMs: number(),
|
|
24579
24699
|
toMs: number(),
|
|
24580
24700
|
options: ExportOptionsSchema
|
|
24701
|
+
}).superRefine((v, ctx) => {
|
|
24702
|
+
if ((v.profiles !== void 0 && v.profiles.length > 0 ? v.profiles : v.profile !== void 0 ? [v.profile] : []).length < 1) ctx.addIssue({
|
|
24703
|
+
code: ZodIssueCode.custom,
|
|
24704
|
+
message: "pass profiles[] (min 1) or legacy profile",
|
|
24705
|
+
path: ["profiles"]
|
|
24706
|
+
});
|
|
24581
24707
|
}), ExportRecordSchema, {
|
|
24582
24708
|
kind: "mutation",
|
|
24583
24709
|
auth: "protected"
|
|
@@ -29177,6 +29303,12 @@ Object.freeze({
|
|
|
29177
29303
|
addonId: null,
|
|
29178
29304
|
access: "create"
|
|
29179
29305
|
},
|
|
29306
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
29307
|
+
capName: "pipeline-analytics",
|
|
29308
|
+
capScope: "device",
|
|
29309
|
+
addonId: null,
|
|
29310
|
+
access: "create"
|
|
29311
|
+
},
|
|
29180
29312
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
29181
29313
|
capName: "pipeline-analytics",
|
|
29182
29314
|
capScope: "device",
|
|
@@ -29579,6 +29711,12 @@ Object.freeze({
|
|
|
29579
29711
|
addonId: null,
|
|
29580
29712
|
access: "view"
|
|
29581
29713
|
},
|
|
29714
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
29715
|
+
capName: "pipeline-orchestrator",
|
|
29716
|
+
capScope: "system",
|
|
29717
|
+
addonId: null,
|
|
29718
|
+
access: "view"
|
|
29719
|
+
},
|
|
29582
29720
|
"pipelineOrchestrator.listAgentSettings": {
|
|
29583
29721
|
capName: "pipeline-orchestrator",
|
|
29584
29722
|
capScope: "system",
|
|
@@ -29603,6 +29741,12 @@ Object.freeze({
|
|
|
29603
29741
|
addonId: null,
|
|
29604
29742
|
access: "create"
|
|
29605
29743
|
},
|
|
29744
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
29745
|
+
capName: "pipeline-orchestrator",
|
|
29746
|
+
capScope: "system",
|
|
29747
|
+
addonId: null,
|
|
29748
|
+
access: "create"
|
|
29749
|
+
},
|
|
29606
29750
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
29607
29751
|
capName: "pipeline-orchestrator",
|
|
29608
29752
|
capScope: "system",
|
|
@@ -32594,6 +32738,11 @@ Object.freeze({
|
|
|
32594
32738
|
form: "single",
|
|
32595
32739
|
optional: true
|
|
32596
32740
|
}],
|
|
32741
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
32742
|
+
name: "deviceId",
|
|
32743
|
+
form: "single",
|
|
32744
|
+
optional: false
|
|
32745
|
+
}],
|
|
32597
32746
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
32598
32747
|
name: "deviceId",
|
|
32599
32748
|
form: "single",
|
|
@@ -33659,6 +33808,8 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
33659
33808
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
33660
33809
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
33661
33810
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
33811
|
+
var MB = 1024 * 1024;
|
|
33812
|
+
1024 * MB, 3072 * MB;
|
|
33662
33813
|
//#endregion
|
|
33663
33814
|
Object.defineProperty(exports, "BOOT_RECOVERY_BACKOFF_MS", {
|
|
33664
33815
|
enumerable: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-XfKNtfCc.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -15,9 +15,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
15
15
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
16
16
|
/**
|
|
17
17
|
* A newer addon or server-root package version was found by the
|
|
18
|
-
* authoritative registry check. Emitted once
|
|
19
|
-
* `(
|
|
20
|
-
*
|
|
18
|
+
* authoritative registry check. Emitted once when any observed
|
|
19
|
+
* `latestVersion` changes (or a package/node first appears behind);
|
|
20
|
+
* the payload carries the full currently-available list. Repeated
|
|
21
|
+
* polling of the same latests is silent.
|
|
21
22
|
*/
|
|
22
23
|
EventCategory["UpdateAvailable"] = "update.available";
|
|
23
24
|
/**
|
|
@@ -36,6 +37,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
36
37
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
37
38
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
38
39
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
40
|
+
/**
|
|
41
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
42
|
+
*
|
|
43
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
44
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
45
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
46
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
47
|
+
*
|
|
48
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
49
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
50
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
51
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
52
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
53
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
54
|
+
*/
|
|
55
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
39
56
|
EventCategory["AddonError"] = "addon.error";
|
|
40
57
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
41
58
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -7565,6 +7582,10 @@ var RecordingBandSchema = object({
|
|
|
7565
7582
|
preBufferSec: number().min(0).optional(),
|
|
7566
7583
|
postBufferSec: number().min(0).optional()
|
|
7567
7584
|
});
|
|
7585
|
+
({
|
|
7586
|
+
preBufferSec: 10,
|
|
7587
|
+
postBufferSec: 30
|
|
7588
|
+
}).postBufferSec * 1e3;
|
|
7568
7589
|
/**
|
|
7569
7590
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7570
7591
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -7612,6 +7633,12 @@ var RecordingConfigSchema = object({
|
|
|
7612
7633
|
/** DERIVED summary of `bands`, stamped by the recorder on every save.
|
|
7613
7634
|
* Authoring it has no effect — see {@link RecordingStorageModeSchema}. */
|
|
7614
7635
|
mode: RecordingStorageModeSchema.optional(),
|
|
7636
|
+
/**
|
|
7637
|
+
* Which assigned broker slots to record. Absent / empty = {@link
|
|
7638
|
+
* DEFAULT_RECORDING_PROFILES} (`high`+`low`) intersected with the
|
|
7639
|
+
* camera's currently assigned slots — never `mid` unless the operator
|
|
7640
|
+
* picks it, and never a slot the broker has not assigned.
|
|
7641
|
+
*/
|
|
7615
7642
|
profiles: array(CamProfileSchema).optional(),
|
|
7616
7643
|
segmentSeconds: number().int().positive().optional(),
|
|
7617
7644
|
/**
|
|
@@ -7692,7 +7719,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7692
7719
|
profiles: array(string()).optional(),
|
|
7693
7720
|
/** Copy throttle in MB/s (default 40) — the drain is a background chore,
|
|
7694
7721
|
* never allowed to starve live writers. */
|
|
7695
|
-
throttleMbps: number().min(1).max(1e3).optional()
|
|
7722
|
+
throttleMbps: number().min(1).max(1e3).optional(),
|
|
7723
|
+
/** Move only segments whose startMs is >= this. Absent = the whole source
|
|
7724
|
+
* pile. Used when a full drain is too expensive and the operator only
|
|
7725
|
+
* wants the recent window on the new disk. */
|
|
7726
|
+
sinceMs: number().int().optional()
|
|
7696
7727
|
});
|
|
7697
7728
|
/** Internal, lease-scoped participant operation. It is intentionally separate
|
|
7698
7729
|
* from persistent recording settings: a migration never changes
|
|
@@ -14272,6 +14303,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14272
14303
|
"node-offline",
|
|
14273
14304
|
"node-inference-unavailable",
|
|
14274
14305
|
"detection-blind",
|
|
14306
|
+
"addon-crash-loop",
|
|
14275
14307
|
"addon-update-available",
|
|
14276
14308
|
"server-update-available",
|
|
14277
14309
|
"alarm-triggered",
|
|
@@ -14279,6 +14311,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14279
14311
|
"alarm-disarmed",
|
|
14280
14312
|
"alarm-arming",
|
|
14281
14313
|
"alarm-arm-refused",
|
|
14314
|
+
"addon-updated",
|
|
14315
|
+
"server-updated",
|
|
14316
|
+
"export-completed",
|
|
14282
14317
|
"camera-online",
|
|
14283
14318
|
"camera-offline",
|
|
14284
14319
|
"camera-disabled",
|
|
@@ -16172,13 +16207,19 @@ var RetrainStatusSchema = _enum([
|
|
|
16172
16207
|
* "never marked" from "already trained" must read `retrainStatus`.
|
|
16173
16208
|
*
|
|
16174
16209
|
* `debug` does NOT pin; it is attention, not durability.
|
|
16210
|
+
*
|
|
16211
|
+
* `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
|
|
16212
|
+
* A favourited track is skipped by retention the same way `staging` is, but
|
|
16213
|
+
* it does not enter `none|staging|trained` and has no staging budget.
|
|
16175
16214
|
*/
|
|
16176
16215
|
var TrackFlagFields = {
|
|
16177
16216
|
/** Operator marked this track as training material — i.e. `retrainStatus` is
|
|
16178
16217
|
* `'staging'`. */
|
|
16179
16218
|
markForTrain: boolean().optional(),
|
|
16180
16219
|
/** Operator marked this track for diagnostic attention. */
|
|
16181
|
-
debug: boolean().optional()
|
|
16220
|
+
debug: boolean().optional(),
|
|
16221
|
+
/** Operator favourited this track. Pins it against pruning. */
|
|
16222
|
+
favourited: boolean().optional()
|
|
16182
16223
|
};
|
|
16183
16224
|
/**
|
|
16184
16225
|
* The lifecycle field itself, on the READ surfaces only (`Track`, `KeyEvent`).
|
|
@@ -16203,6 +16244,7 @@ var TrackFlagsSchema = object({
|
|
|
16203
16244
|
trackId: string(),
|
|
16204
16245
|
markForTrain: boolean(),
|
|
16205
16246
|
debug: boolean(),
|
|
16247
|
+
favourited: boolean(),
|
|
16206
16248
|
/** The lifecycle state the boolean was derived from. Required here (unlike on
|
|
16207
16249
|
* a track row) because this shape is only ever produced by the write body,
|
|
16208
16250
|
* which always knows it — and a surface that has just written needs to render
|
|
@@ -16835,6 +16877,12 @@ var TrackCascadeCountsSchema = object({
|
|
|
16835
16877
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16836
16878
|
embeddings: number().int()
|
|
16837
16879
|
});
|
|
16880
|
+
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
16881
|
+
var DiskReconcileCountsSchema = object({
|
|
16882
|
+
mediaDropped: number().int(),
|
|
16883
|
+
tracks: number().int(),
|
|
16884
|
+
events: number().int()
|
|
16885
|
+
});
|
|
16838
16886
|
/** Event-store footprint for one camera. */
|
|
16839
16887
|
var EventStoreDeviceFootprintSchema = object({
|
|
16840
16888
|
deviceId: number(),
|
|
@@ -17011,6 +17059,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17011
17059
|
}), method(object({ deviceId: number() }), TrackCascadeCountsSchema, {
|
|
17012
17060
|
kind: "mutation",
|
|
17013
17061
|
auth: "admin"
|
|
17062
|
+
}), method(object({ deviceId: number() }), DiskReconcileCountsSchema, {
|
|
17063
|
+
kind: "mutation",
|
|
17064
|
+
auth: "admin"
|
|
17014
17065
|
}), method(object({
|
|
17015
17066
|
deviceId: number(),
|
|
17016
17067
|
trackIds: array(string()).min(1)
|
|
@@ -18521,6 +18572,24 @@ var CameraStatusDegradationSchema = object({
|
|
|
18521
18572
|
*
|
|
18522
18573
|
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
18523
18574
|
*/
|
|
18575
|
+
var DiskReconcileJobSchema = object({
|
|
18576
|
+
state: _enum([
|
|
18577
|
+
"idle",
|
|
18578
|
+
"running",
|
|
18579
|
+
"done",
|
|
18580
|
+
"error"
|
|
18581
|
+
]),
|
|
18582
|
+
total: number().int().nonnegative(),
|
|
18583
|
+
completed: number().int().nonnegative(),
|
|
18584
|
+
currentDeviceId: number().int().nullable(),
|
|
18585
|
+
failed: array(number().int()).readonly(),
|
|
18586
|
+
mediaDropped: number().int().nonnegative(),
|
|
18587
|
+
tracks: number().int().nonnegative(),
|
|
18588
|
+
events: number().int().nonnegative(),
|
|
18589
|
+
startedAtMs: number().int().nullable(),
|
|
18590
|
+
finishedAtMs: number().int().nullable(),
|
|
18591
|
+
error: string().nullable()
|
|
18592
|
+
});
|
|
18524
18593
|
var CameraStatusSchema = object({
|
|
18525
18594
|
deviceId: number(),
|
|
18526
18595
|
assignment: CameraAssignmentStatusSchema,
|
|
@@ -18752,7 +18821,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
18752
18821
|
}), CameraSwitchGroupSchema, {
|
|
18753
18822
|
kind: "mutation",
|
|
18754
18823
|
auth: "admin"
|
|
18755
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(),
|
|
18824
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
|
|
18825
|
+
kind: "mutation",
|
|
18826
|
+
auth: "admin"
|
|
18827
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
18756
18828
|
name: string(),
|
|
18757
18829
|
description: string().optional(),
|
|
18758
18830
|
config: CameraPipelineConfigSchema
|
|
@@ -19825,20 +19897,6 @@ var VectorStatsResultSchema = object({
|
|
|
19825
19897
|
exact: boolean()
|
|
19826
19898
|
});
|
|
19827
19899
|
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);
|
|
19828
|
-
/**
|
|
19829
|
-
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
19830
|
-
*
|
|
19831
|
-
* A device-scoped WRAPPER cap (like `pipeline-analytics`): exactly one active
|
|
19832
|
-
* provider per device, substitutable. The DEFAULT provider (registered by
|
|
19833
|
-
* `addon-post-analysis`, `defaultActive: true`) composes the analytics event
|
|
19834
|
-
* log (markers + thumbnails) with the recorder's `getPlaybackManifest` — a clip
|
|
19835
|
-
* is a time-WINDOW over existing footage, never a separate file. A camera that
|
|
19836
|
-
* exposes NATIVE onboard clips (Reolink/Hikvision NVR) can later substitute the
|
|
19837
|
-
* wrapper provider for its device and serve its own clip catalog + URLs.
|
|
19838
|
-
*
|
|
19839
|
-
* A `Clip` is purely time-based (subtree-blind): playback resolves segments by
|
|
19840
|
-
* temporal overlap, so the API never decides `continuous` vs `events`.
|
|
19841
|
-
*/
|
|
19842
19900
|
var ClipSchema = object({
|
|
19843
19901
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
19844
19902
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -19855,8 +19913,57 @@ var ClipSchema = object({
|
|
|
19855
19913
|
startMs: number(),
|
|
19856
19914
|
endMs: number()
|
|
19857
19915
|
}),
|
|
19858
|
-
/**
|
|
19859
|
-
thumbnail
|
|
19916
|
+
/**
|
|
19917
|
+
* Lazy thumbnail URL, never inlined.
|
|
19918
|
+
*
|
|
19919
|
+
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
19920
|
+
* continuous event+fragment visit) MUST use the snapshot of the **main
|
|
19921
|
+
* event of the interval** — `getEventMedia({ eventId, kind: 'snapshot' })`
|
|
19922
|
+
* of the event that owns `kind` (object > motion > audio). Do not extract
|
|
19923
|
+
* a keyframe from the recorded segments. Other providers (onboard, HKSV)
|
|
19924
|
+
* mint their own stills.
|
|
19925
|
+
*
|
|
19926
|
+
* **VOUCHED, never fabricated.** A provider emits this only for an event it
|
|
19927
|
+
* has CONFIRMED owns at least one media row (its own, or its owning track's).
|
|
19928
|
+
* Absent is meaningful — "this visit has no event still" — never "we did not
|
|
19929
|
+
* look". Stamping it from a URL template made 35% of one camera's clips point
|
|
19930
|
+
* at a 404 (device 3836, 2026-08-17: 64 of 179 clips dead, 63 of them motion).
|
|
19931
|
+
* A read that FAILS drops the claim; it never invents it.
|
|
19932
|
+
*/
|
|
19933
|
+
thumbnail: string().optional(),
|
|
19934
|
+
/**
|
|
19935
|
+
* An instant INSIDE this visit's footage, hole-safe, where a recorded still
|
|
19936
|
+
* can be decoded. Present whenever the visit came from recorded availability;
|
|
19937
|
+
* absent on a per-event padded window (there is no footage to promise).
|
|
19938
|
+
*
|
|
19939
|
+
* This is not a thumbnail and not a second byte path: it is the argument to
|
|
19940
|
+
* the recorder's existing still route. The surface — never the provider —
|
|
19941
|
+
* decides whether to use it. It is the midpoint of the visit's LONGEST
|
|
19942
|
+
* contiguous range, not of the visit: a visit spans its holes by
|
|
19943
|
+
* construction, so a naive midpoint lands in dead air.
|
|
19944
|
+
*/
|
|
19945
|
+
stillAtMs: number().optional(),
|
|
19946
|
+
/**
|
|
19947
|
+
* Analytics event ids that overlap this visit — a BOUNDED sample, newest
|
|
19948
|
+
* first within kind (object → motion → audio), capped at
|
|
19949
|
+
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
19950
|
+
*
|
|
19951
|
+
* Bounded because it is not a payload the surface pages through: one visit on
|
|
19952
|
+
* device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
19953
|
+
* camera-day. Read {@link eventCount} for the true total.
|
|
19954
|
+
*/
|
|
19955
|
+
eventIds: array(string()).optional(),
|
|
19956
|
+
/** How many analytics events actually overlap this visit. Differs from
|
|
19957
|
+
* `eventIds.length` exactly when the sample was capped — so a truncated
|
|
19958
|
+
* list is never mistaken for a quiet visit. */
|
|
19959
|
+
eventCount: number().int().nonnegative().optional(),
|
|
19960
|
+
/** Intra-visit footage holes (GOP rolls, discarded segments) still shorter
|
|
19961
|
+
* than `VISIT_MERGE_GAP_MS`. Playback concatenates around them; the timeline
|
|
19962
|
+
* bar keeps showing them via `recording.getAvailability`. */
|
|
19963
|
+
holes: array(object({
|
|
19964
|
+
startMs: number(),
|
|
19965
|
+
endMs: number()
|
|
19966
|
+
})).optional()
|
|
19860
19967
|
});
|
|
19861
19968
|
var ClipPlaybackSchema = object({
|
|
19862
19969
|
/** HLS master URL through the hub data-plane (Range + token in path). */
|
|
@@ -20320,7 +20427,14 @@ var SearchResultSchema = object({
|
|
|
20320
20427
|
});
|
|
20321
20428
|
var AutoUpdateSettingsSchema = object({
|
|
20322
20429
|
channel: ChannelSchema,
|
|
20323
|
-
intervalSeconds: number()
|
|
20430
|
+
intervalSeconds: number(),
|
|
20431
|
+
/**
|
|
20432
|
+
* Cadence of the "an update exists" POLLER, in seconds. Independent of
|
|
20433
|
+
* `channel`: the poller runs while auto-apply is `off`, because being told
|
|
20434
|
+
* about a publish and installing it are different decisions. Clamped
|
|
20435
|
+
* server-side to 900 s … 604800 s; defaults to 21600 s (6 h).
|
|
20436
|
+
*/
|
|
20437
|
+
updateCheckIntervalSeconds: number()
|
|
20324
20438
|
});
|
|
20325
20439
|
var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
20326
20440
|
var RestartAddonResultSchema = unknown();
|
|
@@ -20461,7 +20575,9 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
20461
20575
|
auth: "admin"
|
|
20462
20576
|
}), method(_void(), AutoUpdateSettingsSchema, { auth: "admin" }), method(object({
|
|
20463
20577
|
channel: ChannelSchema,
|
|
20464
|
-
intervalSeconds: number().min(300).max(86400).optional()
|
|
20578
|
+
intervalSeconds: number().min(300).max(86400).optional(),
|
|
20579
|
+
/** Availability-poll cadence; see AutoUpdateSettingsSchema. */
|
|
20580
|
+
updateCheckIntervalSeconds: number().min(900).max(604800).optional()
|
|
20465
20581
|
}), unknown(), {
|
|
20466
20582
|
kind: "mutation",
|
|
20467
20583
|
auth: "admin"
|
|
@@ -24515,7 +24631,9 @@ var ExportOptionsSchema = object({
|
|
|
24515
24631
|
includeAudio: boolean(),
|
|
24516
24632
|
maxLifeMs: number().int().positive(),
|
|
24517
24633
|
deleteAfterDownload: boolean(),
|
|
24518
|
-
title: string().max(200).optional()
|
|
24634
|
+
title: string().max(200).optional(),
|
|
24635
|
+
/** Notification-output target ids to ping when this export becomes ready. */
|
|
24636
|
+
notifyTargetIds: array(string().min(1)).max(20).optional()
|
|
24519
24637
|
}).superRefine((v, ctx) => {
|
|
24520
24638
|
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
24521
24639
|
code: ZodIssueCode.custom,
|
|
@@ -24574,10 +24692,18 @@ var ExportBytesSchema = object({
|
|
|
24574
24692
|
});
|
|
24575
24693
|
method(object({
|
|
24576
24694
|
deviceId: number(),
|
|
24577
|
-
|
|
24695
|
+
/** @deprecated Prefer `profiles`. Kept so timelapse/notifiers keep working. */
|
|
24696
|
+
profile: string().optional(),
|
|
24697
|
+
profiles: array(string()).min(1).optional(),
|
|
24578
24698
|
fromMs: number(),
|
|
24579
24699
|
toMs: number(),
|
|
24580
24700
|
options: ExportOptionsSchema
|
|
24701
|
+
}).superRefine((v, ctx) => {
|
|
24702
|
+
if ((v.profiles !== void 0 && v.profiles.length > 0 ? v.profiles : v.profile !== void 0 ? [v.profile] : []).length < 1) ctx.addIssue({
|
|
24703
|
+
code: ZodIssueCode.custom,
|
|
24704
|
+
message: "pass profiles[] (min 1) or legacy profile",
|
|
24705
|
+
path: ["profiles"]
|
|
24706
|
+
});
|
|
24581
24707
|
}), ExportRecordSchema, {
|
|
24582
24708
|
kind: "mutation",
|
|
24583
24709
|
auth: "protected"
|
|
@@ -29177,6 +29303,12 @@ Object.freeze({
|
|
|
29177
29303
|
addonId: null,
|
|
29178
29304
|
access: "create"
|
|
29179
29305
|
},
|
|
29306
|
+
"pipelineAnalytics.reconcileFromDisk": {
|
|
29307
|
+
capName: "pipeline-analytics",
|
|
29308
|
+
capScope: "device",
|
|
29309
|
+
addonId: null,
|
|
29310
|
+
access: "create"
|
|
29311
|
+
},
|
|
29180
29312
|
"pipelineAnalytics.refreshStorageLocationsForMigration": {
|
|
29181
29313
|
capName: "pipeline-analytics",
|
|
29182
29314
|
capScope: "device",
|
|
@@ -29579,6 +29711,12 @@ Object.freeze({
|
|
|
29579
29711
|
addonId: null,
|
|
29580
29712
|
access: "view"
|
|
29581
29713
|
},
|
|
29714
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
29715
|
+
capName: "pipeline-orchestrator",
|
|
29716
|
+
capScope: "system",
|
|
29717
|
+
addonId: null,
|
|
29718
|
+
access: "view"
|
|
29719
|
+
},
|
|
29582
29720
|
"pipelineOrchestrator.listAgentSettings": {
|
|
29583
29721
|
capName: "pipeline-orchestrator",
|
|
29584
29722
|
capScope: "system",
|
|
@@ -29603,6 +29741,12 @@ Object.freeze({
|
|
|
29603
29741
|
addonId: null,
|
|
29604
29742
|
access: "create"
|
|
29605
29743
|
},
|
|
29744
|
+
"pipelineOrchestrator.reconcileFromDisk": {
|
|
29745
|
+
capName: "pipeline-orchestrator",
|
|
29746
|
+
capScope: "system",
|
|
29747
|
+
addonId: null,
|
|
29748
|
+
access: "create"
|
|
29749
|
+
},
|
|
29606
29750
|
"pipelineOrchestrator.removeAgentSettings": {
|
|
29607
29751
|
capName: "pipeline-orchestrator",
|
|
29608
29752
|
capScope: "system",
|
|
@@ -32594,6 +32738,11 @@ Object.freeze({
|
|
|
32594
32738
|
form: "single",
|
|
32595
32739
|
optional: true
|
|
32596
32740
|
}],
|
|
32741
|
+
"pipelineAnalytics.reconcileFromDisk": [{
|
|
32742
|
+
name: "deviceId",
|
|
32743
|
+
form: "single",
|
|
32744
|
+
optional: false
|
|
32745
|
+
}],
|
|
32597
32746
|
"pipelineAnalytics.restageRetrainTrack": [{
|
|
32598
32747
|
name: "deviceId",
|
|
32599
32748
|
form: "single",
|
|
@@ -33659,5 +33808,7 @@ DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
|
33659
33808
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
33660
33809
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
33661
33810
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
33811
|
+
var MB = 1024 * 1024;
|
|
33812
|
+
1024 * MB, 3072 * MB;
|
|
33662
33813
|
//#endregion
|
|
33663
33814
|
export { EventCategory as a, BaseAddon as i, networkAccessCapability as n, BOOT_RECOVERY_BACKOFF_MS as r, meshNetworkCapability as t };
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BclSVGVD.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-Bs4xKAvQ.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|