@camstack/addon-tailscale 1.2.102 → 1.2.104
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-AkkjrQjN.mjs → dist-CQ9xsWl-.mjs} +316 -10
- package/dist/{dist-BcyUFopm.js → dist-CimxBsE_.js} +316 -10
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +2 -2
|
@@ -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-CimxBsE_.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-CQ9xsWl-.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";
|
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -17868,6 +17868,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17868
17868
|
settings: NcAlarmSettingsSchema,
|
|
17869
17869
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17870
17870
|
});
|
|
17871
|
+
/**
|
|
17872
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17873
|
+
*
|
|
17874
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17875
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17876
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17877
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17878
|
+
* a different thing from never having been told, and only the envelope
|
|
17879
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17880
|
+
*/
|
|
17881
|
+
var NcClipRetentionAskSchema = object({
|
|
17882
|
+
/**
|
|
17883
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17884
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17885
|
+
* asking everywhere.
|
|
17886
|
+
*/
|
|
17887
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17888
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17889
|
+
* needs nothing produces no ask at all. */
|
|
17890
|
+
seconds: number().min(0).max(60),
|
|
17891
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17892
|
+
* assigned, which is what the cut defaults to. */
|
|
17893
|
+
profile: CamProfileSchema.optional(),
|
|
17894
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17895
|
+
ruleId: string(),
|
|
17896
|
+
ruleName: string(),
|
|
17897
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17898
|
+
reason: _enum(["window", "occupancy"])
|
|
17899
|
+
});
|
|
17900
|
+
/**
|
|
17901
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17902
|
+
*
|
|
17903
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17904
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17905
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17906
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17907
|
+
* footage this mechanism exists to keep.
|
|
17908
|
+
*/
|
|
17909
|
+
var NcClipRetentionPlanSchema = object({
|
|
17910
|
+
rulesLoaded: boolean(),
|
|
17911
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17912
|
+
});
|
|
17871
17913
|
method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
|
|
17872
17914
|
kind: "mutation",
|
|
17873
17915
|
auth: "admin",
|
|
@@ -17888,7 +17930,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17888
17930
|
}), object({ success: literal(true) }), {
|
|
17889
17931
|
kind: "mutation",
|
|
17890
17932
|
auth: "admin"
|
|
17891
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17933
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17892
17934
|
deviceId: number().int(),
|
|
17893
17935
|
muted: boolean()
|
|
17894
17936
|
}), object({ success: literal(true) }), {
|
|
@@ -19033,13 +19075,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19033
19075
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19034
19076
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19035
19077
|
*
|
|
19078
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19079
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19080
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19081
|
+
* detector.
|
|
19082
|
+
*
|
|
19083
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19084
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19085
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19086
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19087
|
+
* could not name.
|
|
19088
|
+
*
|
|
19036
19089
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19037
19090
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19038
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19039
|
-
* check silently readmits every source added after it was
|
|
19091
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19092
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19093
|
+
* written.
|
|
19040
19094
|
*/
|
|
19041
19095
|
var TrackSourceSchema = _enum([
|
|
19042
19096
|
"pipeline",
|
|
19097
|
+
"onboard",
|
|
19043
19098
|
"sensor",
|
|
19044
19099
|
"audio"
|
|
19045
19100
|
]);
|
|
@@ -20422,6 +20477,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20422
20477
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20423
20478
|
framesMatched: number().int()
|
|
20424
20479
|
})).readonly() });
|
|
20480
|
+
/**
|
|
20481
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20482
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20483
|
+
* is an alias of this, not a second list.
|
|
20484
|
+
*/
|
|
20485
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20486
|
+
"motion",
|
|
20487
|
+
"audio-dbfs",
|
|
20488
|
+
"battery",
|
|
20489
|
+
"occupancy"
|
|
20490
|
+
]);
|
|
20491
|
+
/**
|
|
20492
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20493
|
+
*
|
|
20494
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20495
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20496
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20497
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20498
|
+
*/
|
|
20499
|
+
var LtsBucketSchema = object({
|
|
20500
|
+
scope: string(),
|
|
20501
|
+
bucketStart: number().int(),
|
|
20502
|
+
samples: number().int().nonnegative(),
|
|
20503
|
+
sum: number(),
|
|
20504
|
+
min: number(),
|
|
20505
|
+
max: number()
|
|
20506
|
+
});
|
|
20425
20507
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20426
20508
|
deviceId: number(),
|
|
20427
20509
|
trackId: string()
|
|
@@ -20468,6 +20550,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20468
20550
|
kinds: array(string()).optional(),
|
|
20469
20551
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20470
20552
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20553
|
+
deviceId: number(),
|
|
20554
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20555
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20556
|
+
scope: string().optional(),
|
|
20557
|
+
from: number(),
|
|
20558
|
+
to: number(),
|
|
20559
|
+
limit: number().int().positive().optional()
|
|
20560
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20471
20561
|
deviceId: number(),
|
|
20472
20562
|
since: number(),
|
|
20473
20563
|
until: number(),
|
|
@@ -21086,6 +21176,40 @@ var MotionSourceEnum = _enum([
|
|
|
21086
21176
|
*/
|
|
21087
21177
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21088
21178
|
/**
|
|
21179
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21180
|
+
*
|
|
21181
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21182
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21183
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21184
|
+
* track, the overlay and the debug row.
|
|
21185
|
+
*
|
|
21186
|
+
* ## Why one, and why it is still an array
|
|
21187
|
+
*
|
|
21188
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21189
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21190
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21191
|
+
* detectors disagree about the same box by construction — which is the
|
|
21192
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21193
|
+
*
|
|
21194
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21195
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21196
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21197
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21198
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21199
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21200
|
+
* rely on.
|
|
21201
|
+
*
|
|
21202
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21203
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21204
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21205
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21206
|
+
* suite caught it.
|
|
21207
|
+
*
|
|
21208
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21209
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21210
|
+
*/
|
|
21211
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21212
|
+
/**
|
|
21089
21213
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21090
21214
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21091
21215
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21236,6 +21360,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21236
21360
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21237
21361
|
*/
|
|
21238
21362
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21363
|
+
/**
|
|
21364
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21365
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21366
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21367
|
+
*
|
|
21368
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21369
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21370
|
+
* here. Its boxes reach post-analysis on the same
|
|
21371
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21372
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21373
|
+
* subtree (face / plate / embedding).
|
|
21374
|
+
*
|
|
21375
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21376
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21377
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21378
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21379
|
+
*
|
|
21380
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21381
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21382
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21383
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21384
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21385
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21386
|
+
*
|
|
21387
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21388
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21389
|
+
* default.
|
|
21390
|
+
*/
|
|
21391
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21239
21392
|
pipelineEnabled: boolean().default(true),
|
|
21240
21393
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21241
21394
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21417,7 +21570,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21417
21570
|
queueDepth: number(),
|
|
21418
21571
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21419
21572
|
});
|
|
21573
|
+
/**
|
|
21574
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21575
|
+
*
|
|
21576
|
+
* One instance per node. Receives camera assignments from
|
|
21577
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21578
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21579
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21580
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21581
|
+
* the bus.
|
|
21582
|
+
*
|
|
21583
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21584
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21585
|
+
* makes assignment decisions itself.
|
|
21586
|
+
*/
|
|
21587
|
+
/**
|
|
21588
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21589
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21590
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21591
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21592
|
+
*/
|
|
21593
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21594
|
+
"not-attached",
|
|
21595
|
+
"battery-asleep",
|
|
21596
|
+
"not-watching",
|
|
21597
|
+
"already-bursting"
|
|
21598
|
+
]);
|
|
21420
21599
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
21600
|
+
deviceId: number(),
|
|
21601
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21602
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21603
|
+
frames: number().int().positive().optional(),
|
|
21604
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21605
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21606
|
+
reason: string()
|
|
21607
|
+
}), object({
|
|
21608
|
+
started: boolean(),
|
|
21609
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21610
|
+
}), {
|
|
21611
|
+
auth: "admin",
|
|
21612
|
+
kind: "mutation"
|
|
21613
|
+
}), method(object({
|
|
21421
21614
|
handle: FrameHandleSchema,
|
|
21422
21615
|
bbox: NativeCropBboxSchema,
|
|
21423
21616
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26947,7 +27140,7 @@ var NativeDetectionSchema = object({
|
|
|
26947
27140
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26948
27141
|
confidence: number().min(0).max(1).optional()
|
|
26949
27142
|
});
|
|
26950
|
-
object({
|
|
27143
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26951
27144
|
/**
|
|
26952
27145
|
* Last observed instance per class. Missing entries mean the class
|
|
26953
27146
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26964,14 +27157,56 @@ object({
|
|
|
26964
27157
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26965
27158
|
/**
|
|
26966
27159
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26967
|
-
*
|
|
26968
|
-
*
|
|
27160
|
+
*
|
|
27161
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27162
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27163
|
+
* other detection choice is made. `geometry` on
|
|
27164
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27165
|
+
* choice would buy this particular camera.
|
|
26969
27166
|
*/
|
|
26970
27167
|
enabled: boolean()
|
|
26971
|
-
})
|
|
27168
|
+
});
|
|
27169
|
+
/**
|
|
27170
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27171
|
+
*
|
|
27172
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27173
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27174
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27175
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27176
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27177
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27178
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27179
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27180
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27181
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27182
|
+
* tracker as motion and no further.
|
|
27183
|
+
*
|
|
27184
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27185
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27186
|
+
* derived form is only as honest as `getOptions`).
|
|
27187
|
+
*/
|
|
27188
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27189
|
+
"boxed",
|
|
27190
|
+
"while-streaming",
|
|
27191
|
+
"flag-only"
|
|
27192
|
+
]);
|
|
27193
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27194
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27195
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27196
|
+
/** What a detection from this camera carries. */
|
|
27197
|
+
geometry: NativeObjectGeometryEnum
|
|
27198
|
+
});
|
|
27199
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27200
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26972
27201
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26973
27202
|
lastFetchedAt: number() });
|
|
26974
|
-
DeviceType.Camera, method(object({
|
|
27203
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27204
|
+
deviceId: number(),
|
|
27205
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27206
|
+
}), _void(), {
|
|
27207
|
+
kind: "mutation",
|
|
27208
|
+
auth: "admin"
|
|
27209
|
+
}), method(object({
|
|
26975
27210
|
deviceId: number(),
|
|
26976
27211
|
enabled: boolean()
|
|
26977
27212
|
}), _void(), {
|
|
@@ -30770,7 +31005,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30770
31005
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30771
31006
|
totalObjects: number().int().nonnegative(),
|
|
30772
31007
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30773
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31008
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31009
|
+
/**
|
|
31010
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31011
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31012
|
+
*
|
|
31013
|
+
* The operator's question about a scene has two halves and they answer
|
|
31014
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31015
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31016
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31017
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31018
|
+
*
|
|
31019
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31020
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31021
|
+
*
|
|
31022
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31023
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31024
|
+
* parked objects here" about a camera whose lot is full.
|
|
31025
|
+
*/
|
|
31026
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31027
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31028
|
+
* same absence rule. */
|
|
31029
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30774
31030
|
});
|
|
30775
31031
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30776
31032
|
zoneId: string(),
|
|
@@ -33709,12 +33965,24 @@ Object.freeze({
|
|
|
33709
33965
|
addonId: null,
|
|
33710
33966
|
access: "create"
|
|
33711
33967
|
},
|
|
33968
|
+
"nativeObjectDetection.getOptions": {
|
|
33969
|
+
capName: "native-object-detection",
|
|
33970
|
+
capScope: "device",
|
|
33971
|
+
addonId: null,
|
|
33972
|
+
access: "view"
|
|
33973
|
+
},
|
|
33712
33974
|
"nativeObjectDetection.setEnabled": {
|
|
33713
33975
|
capName: "native-object-detection",
|
|
33714
33976
|
capScope: "device",
|
|
33715
33977
|
addonId: null,
|
|
33716
33978
|
access: "create"
|
|
33717
33979
|
},
|
|
33980
|
+
"nativeObjectDetection.setSettings": {
|
|
33981
|
+
capName: "native-object-detection",
|
|
33982
|
+
capScope: "device",
|
|
33983
|
+
addonId: null,
|
|
33984
|
+
access: "create"
|
|
33985
|
+
},
|
|
33718
33986
|
"navigation.getFeatures": {
|
|
33719
33987
|
capName: "navigation",
|
|
33720
33988
|
capScope: "device",
|
|
@@ -33979,6 +34247,12 @@ Object.freeze({
|
|
|
33979
34247
|
addonId: null,
|
|
33980
34248
|
access: "view"
|
|
33981
34249
|
},
|
|
34250
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34251
|
+
capName: "notification-rules",
|
|
34252
|
+
capScope: "system",
|
|
34253
|
+
addonId: null,
|
|
34254
|
+
access: "view"
|
|
34255
|
+
},
|
|
33982
34256
|
"notificationRules.getConditionCatalog": {
|
|
33983
34257
|
capName: "notification-rules",
|
|
33984
34258
|
capScope: "system",
|
|
@@ -34489,6 +34763,12 @@ Object.freeze({
|
|
|
34489
34763
|
addonId: null,
|
|
34490
34764
|
access: "create"
|
|
34491
34765
|
},
|
|
34766
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34767
|
+
capName: "pipeline-analytics",
|
|
34768
|
+
capScope: "device",
|
|
34769
|
+
addonId: null,
|
|
34770
|
+
access: "view"
|
|
34771
|
+
},
|
|
34492
34772
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34493
34773
|
capName: "pipeline-analytics",
|
|
34494
34774
|
capScope: "device",
|
|
@@ -35161,6 +35441,12 @@ Object.freeze({
|
|
|
35161
35441
|
addonId: null,
|
|
35162
35442
|
access: "create"
|
|
35163
35443
|
},
|
|
35444
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35445
|
+
capName: "pipeline-runner",
|
|
35446
|
+
capScope: "system",
|
|
35447
|
+
addonId: null,
|
|
35448
|
+
access: "create"
|
|
35449
|
+
},
|
|
35164
35450
|
"pipelineRunner.runDetailSubtree": {
|
|
35165
35451
|
capName: "pipeline-runner",
|
|
35166
35452
|
capScope: "system",
|
|
@@ -37941,11 +38227,21 @@ Object.freeze({
|
|
|
37941
38227
|
form: "single",
|
|
37942
38228
|
optional: false
|
|
37943
38229
|
}],
|
|
38230
|
+
"nativeObjectDetection.getOptions": [{
|
|
38231
|
+
name: "deviceId",
|
|
38232
|
+
form: "single",
|
|
38233
|
+
optional: false
|
|
38234
|
+
}],
|
|
37944
38235
|
"nativeObjectDetection.setEnabled": [{
|
|
37945
38236
|
name: "deviceId",
|
|
37946
38237
|
form: "single",
|
|
37947
38238
|
optional: false
|
|
37948
38239
|
}],
|
|
38240
|
+
"nativeObjectDetection.setSettings": [{
|
|
38241
|
+
name: "deviceId",
|
|
38242
|
+
form: "single",
|
|
38243
|
+
optional: false
|
|
38244
|
+
}],
|
|
37949
38245
|
"navigation.getFeatures": [{
|
|
37950
38246
|
name: "deviceId",
|
|
37951
38247
|
form: "single",
|
|
@@ -38295,6 +38591,11 @@ Object.freeze({
|
|
|
38295
38591
|
form: "single",
|
|
38296
38592
|
optional: false
|
|
38297
38593
|
}],
|
|
38594
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38595
|
+
name: "deviceId",
|
|
38596
|
+
form: "single",
|
|
38597
|
+
optional: false
|
|
38598
|
+
}],
|
|
38298
38599
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38299
38600
|
name: "deviceId",
|
|
38300
38601
|
form: "single",
|
|
@@ -38485,6 +38786,11 @@ Object.freeze({
|
|
|
38485
38786
|
form: "single",
|
|
38486
38787
|
optional: false
|
|
38487
38788
|
}],
|
|
38789
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38790
|
+
name: "deviceId",
|
|
38791
|
+
form: "single",
|
|
38792
|
+
optional: false
|
|
38793
|
+
}],
|
|
38488
38794
|
"pipelineRunner.runDetailSubtree": [{
|
|
38489
38795
|
name: "deviceId",
|
|
38490
38796
|
form: "single",
|
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -17868,6 +17868,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17868
17868
|
settings: NcAlarmSettingsSchema,
|
|
17869
17869
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17870
17870
|
});
|
|
17871
|
+
/**
|
|
17872
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17873
|
+
*
|
|
17874
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17875
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17876
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17877
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17878
|
+
* a different thing from never having been told, and only the envelope
|
|
17879
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17880
|
+
*/
|
|
17881
|
+
var NcClipRetentionAskSchema = object({
|
|
17882
|
+
/**
|
|
17883
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17884
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17885
|
+
* asking everywhere.
|
|
17886
|
+
*/
|
|
17887
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17888
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17889
|
+
* needs nothing produces no ask at all. */
|
|
17890
|
+
seconds: number().min(0).max(60),
|
|
17891
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17892
|
+
* assigned, which is what the cut defaults to. */
|
|
17893
|
+
profile: CamProfileSchema.optional(),
|
|
17894
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17895
|
+
ruleId: string(),
|
|
17896
|
+
ruleName: string(),
|
|
17897
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17898
|
+
reason: _enum(["window", "occupancy"])
|
|
17899
|
+
});
|
|
17900
|
+
/**
|
|
17901
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17902
|
+
*
|
|
17903
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17904
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17905
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17906
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17907
|
+
* footage this mechanism exists to keep.
|
|
17908
|
+
*/
|
|
17909
|
+
var NcClipRetentionPlanSchema = object({
|
|
17910
|
+
rulesLoaded: boolean(),
|
|
17911
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17912
|
+
});
|
|
17871
17913
|
method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
|
|
17872
17914
|
kind: "mutation",
|
|
17873
17915
|
auth: "admin",
|
|
@@ -17888,7 +17930,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17888
17930
|
}), object({ success: literal(true) }), {
|
|
17889
17931
|
kind: "mutation",
|
|
17890
17932
|
auth: "admin"
|
|
17891
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17933
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17892
17934
|
deviceId: number().int(),
|
|
17893
17935
|
muted: boolean()
|
|
17894
17936
|
}), object({ success: literal(true) }), {
|
|
@@ -19033,13 +19075,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19033
19075
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19034
19076
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19035
19077
|
*
|
|
19078
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19079
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19080
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19081
|
+
* detector.
|
|
19082
|
+
*
|
|
19083
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19084
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19085
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19086
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19087
|
+
* could not name.
|
|
19088
|
+
*
|
|
19036
19089
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19037
19090
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19038
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19039
|
-
* check silently readmits every source added after it was
|
|
19091
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19092
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19093
|
+
* written.
|
|
19040
19094
|
*/
|
|
19041
19095
|
var TrackSourceSchema = _enum([
|
|
19042
19096
|
"pipeline",
|
|
19097
|
+
"onboard",
|
|
19043
19098
|
"sensor",
|
|
19044
19099
|
"audio"
|
|
19045
19100
|
]);
|
|
@@ -20422,6 +20477,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20422
20477
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20423
20478
|
framesMatched: number().int()
|
|
20424
20479
|
})).readonly() });
|
|
20480
|
+
/**
|
|
20481
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20482
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20483
|
+
* is an alias of this, not a second list.
|
|
20484
|
+
*/
|
|
20485
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20486
|
+
"motion",
|
|
20487
|
+
"audio-dbfs",
|
|
20488
|
+
"battery",
|
|
20489
|
+
"occupancy"
|
|
20490
|
+
]);
|
|
20491
|
+
/**
|
|
20492
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20493
|
+
*
|
|
20494
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20495
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20496
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20497
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20498
|
+
*/
|
|
20499
|
+
var LtsBucketSchema = object({
|
|
20500
|
+
scope: string(),
|
|
20501
|
+
bucketStart: number().int(),
|
|
20502
|
+
samples: number().int().nonnegative(),
|
|
20503
|
+
sum: number(),
|
|
20504
|
+
min: number(),
|
|
20505
|
+
max: number()
|
|
20506
|
+
});
|
|
20425
20507
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20426
20508
|
deviceId: number(),
|
|
20427
20509
|
trackId: string()
|
|
@@ -20468,6 +20550,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20468
20550
|
kinds: array(string()).optional(),
|
|
20469
20551
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20470
20552
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20553
|
+
deviceId: number(),
|
|
20554
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20555
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20556
|
+
scope: string().optional(),
|
|
20557
|
+
from: number(),
|
|
20558
|
+
to: number(),
|
|
20559
|
+
limit: number().int().positive().optional()
|
|
20560
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20471
20561
|
deviceId: number(),
|
|
20472
20562
|
since: number(),
|
|
20473
20563
|
until: number(),
|
|
@@ -21086,6 +21176,40 @@ var MotionSourceEnum = _enum([
|
|
|
21086
21176
|
*/
|
|
21087
21177
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21088
21178
|
/**
|
|
21179
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21180
|
+
*
|
|
21181
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21182
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21183
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21184
|
+
* track, the overlay and the debug row.
|
|
21185
|
+
*
|
|
21186
|
+
* ## Why one, and why it is still an array
|
|
21187
|
+
*
|
|
21188
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21189
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21190
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21191
|
+
* detectors disagree about the same box by construction — which is the
|
|
21192
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21193
|
+
*
|
|
21194
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21195
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21196
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21197
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21198
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21199
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21200
|
+
* rely on.
|
|
21201
|
+
*
|
|
21202
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21203
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21204
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21205
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21206
|
+
* suite caught it.
|
|
21207
|
+
*
|
|
21208
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21209
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21210
|
+
*/
|
|
21211
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21212
|
+
/**
|
|
21089
21213
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21090
21214
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21091
21215
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21236,6 +21360,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21236
21360
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21237
21361
|
*/
|
|
21238
21362
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21363
|
+
/**
|
|
21364
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21365
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21366
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21367
|
+
*
|
|
21368
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21369
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21370
|
+
* here. Its boxes reach post-analysis on the same
|
|
21371
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21372
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21373
|
+
* subtree (face / plate / embedding).
|
|
21374
|
+
*
|
|
21375
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21376
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21377
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21378
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21379
|
+
*
|
|
21380
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21381
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21382
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21383
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21384
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21385
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21386
|
+
*
|
|
21387
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21388
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21389
|
+
* default.
|
|
21390
|
+
*/
|
|
21391
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21239
21392
|
pipelineEnabled: boolean().default(true),
|
|
21240
21393
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21241
21394
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21417,7 +21570,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21417
21570
|
queueDepth: number(),
|
|
21418
21571
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21419
21572
|
});
|
|
21573
|
+
/**
|
|
21574
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21575
|
+
*
|
|
21576
|
+
* One instance per node. Receives camera assignments from
|
|
21577
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21578
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21579
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21580
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21581
|
+
* the bus.
|
|
21582
|
+
*
|
|
21583
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21584
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21585
|
+
* makes assignment decisions itself.
|
|
21586
|
+
*/
|
|
21587
|
+
/**
|
|
21588
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21589
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21590
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21591
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21592
|
+
*/
|
|
21593
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21594
|
+
"not-attached",
|
|
21595
|
+
"battery-asleep",
|
|
21596
|
+
"not-watching",
|
|
21597
|
+
"already-bursting"
|
|
21598
|
+
]);
|
|
21420
21599
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
21600
|
+
deviceId: number(),
|
|
21601
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21602
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21603
|
+
frames: number().int().positive().optional(),
|
|
21604
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21605
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21606
|
+
reason: string()
|
|
21607
|
+
}), object({
|
|
21608
|
+
started: boolean(),
|
|
21609
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21610
|
+
}), {
|
|
21611
|
+
auth: "admin",
|
|
21612
|
+
kind: "mutation"
|
|
21613
|
+
}), method(object({
|
|
21421
21614
|
handle: FrameHandleSchema,
|
|
21422
21615
|
bbox: NativeCropBboxSchema,
|
|
21423
21616
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26947,7 +27140,7 @@ var NativeDetectionSchema = object({
|
|
|
26947
27140
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26948
27141
|
confidence: number().min(0).max(1).optional()
|
|
26949
27142
|
});
|
|
26950
|
-
object({
|
|
27143
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26951
27144
|
/**
|
|
26952
27145
|
* Last observed instance per class. Missing entries mean the class
|
|
26953
27146
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26964,14 +27157,56 @@ object({
|
|
|
26964
27157
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26965
27158
|
/**
|
|
26966
27159
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26967
|
-
*
|
|
26968
|
-
*
|
|
27160
|
+
*
|
|
27161
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27162
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27163
|
+
* other detection choice is made. `geometry` on
|
|
27164
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27165
|
+
* choice would buy this particular camera.
|
|
26969
27166
|
*/
|
|
26970
27167
|
enabled: boolean()
|
|
26971
|
-
})
|
|
27168
|
+
});
|
|
27169
|
+
/**
|
|
27170
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27171
|
+
*
|
|
27172
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27173
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27174
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27175
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27176
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27177
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27178
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27179
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27180
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27181
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27182
|
+
* tracker as motion and no further.
|
|
27183
|
+
*
|
|
27184
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27185
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27186
|
+
* derived form is only as honest as `getOptions`).
|
|
27187
|
+
*/
|
|
27188
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27189
|
+
"boxed",
|
|
27190
|
+
"while-streaming",
|
|
27191
|
+
"flag-only"
|
|
27192
|
+
]);
|
|
27193
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27194
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27195
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27196
|
+
/** What a detection from this camera carries. */
|
|
27197
|
+
geometry: NativeObjectGeometryEnum
|
|
27198
|
+
});
|
|
27199
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27200
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26972
27201
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26973
27202
|
lastFetchedAt: number() });
|
|
26974
|
-
DeviceType.Camera, method(object({
|
|
27203
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27204
|
+
deviceId: number(),
|
|
27205
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27206
|
+
}), _void(), {
|
|
27207
|
+
kind: "mutation",
|
|
27208
|
+
auth: "admin"
|
|
27209
|
+
}), method(object({
|
|
26975
27210
|
deviceId: number(),
|
|
26976
27211
|
enabled: boolean()
|
|
26977
27212
|
}), _void(), {
|
|
@@ -30770,7 +31005,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30770
31005
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30771
31006
|
totalObjects: number().int().nonnegative(),
|
|
30772
31007
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30773
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31008
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31009
|
+
/**
|
|
31010
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31011
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31012
|
+
*
|
|
31013
|
+
* The operator's question about a scene has two halves and they answer
|
|
31014
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31015
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31016
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31017
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31018
|
+
*
|
|
31019
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31020
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31021
|
+
*
|
|
31022
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31023
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31024
|
+
* parked objects here" about a camera whose lot is full.
|
|
31025
|
+
*/
|
|
31026
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31027
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31028
|
+
* same absence rule. */
|
|
31029
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30774
31030
|
});
|
|
30775
31031
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30776
31032
|
zoneId: string(),
|
|
@@ -33709,12 +33965,24 @@ Object.freeze({
|
|
|
33709
33965
|
addonId: null,
|
|
33710
33966
|
access: "create"
|
|
33711
33967
|
},
|
|
33968
|
+
"nativeObjectDetection.getOptions": {
|
|
33969
|
+
capName: "native-object-detection",
|
|
33970
|
+
capScope: "device",
|
|
33971
|
+
addonId: null,
|
|
33972
|
+
access: "view"
|
|
33973
|
+
},
|
|
33712
33974
|
"nativeObjectDetection.setEnabled": {
|
|
33713
33975
|
capName: "native-object-detection",
|
|
33714
33976
|
capScope: "device",
|
|
33715
33977
|
addonId: null,
|
|
33716
33978
|
access: "create"
|
|
33717
33979
|
},
|
|
33980
|
+
"nativeObjectDetection.setSettings": {
|
|
33981
|
+
capName: "native-object-detection",
|
|
33982
|
+
capScope: "device",
|
|
33983
|
+
addonId: null,
|
|
33984
|
+
access: "create"
|
|
33985
|
+
},
|
|
33718
33986
|
"navigation.getFeatures": {
|
|
33719
33987
|
capName: "navigation",
|
|
33720
33988
|
capScope: "device",
|
|
@@ -33979,6 +34247,12 @@ Object.freeze({
|
|
|
33979
34247
|
addonId: null,
|
|
33980
34248
|
access: "view"
|
|
33981
34249
|
},
|
|
34250
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34251
|
+
capName: "notification-rules",
|
|
34252
|
+
capScope: "system",
|
|
34253
|
+
addonId: null,
|
|
34254
|
+
access: "view"
|
|
34255
|
+
},
|
|
33982
34256
|
"notificationRules.getConditionCatalog": {
|
|
33983
34257
|
capName: "notification-rules",
|
|
33984
34258
|
capScope: "system",
|
|
@@ -34489,6 +34763,12 @@ Object.freeze({
|
|
|
34489
34763
|
addonId: null,
|
|
34490
34764
|
access: "create"
|
|
34491
34765
|
},
|
|
34766
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34767
|
+
capName: "pipeline-analytics",
|
|
34768
|
+
capScope: "device",
|
|
34769
|
+
addonId: null,
|
|
34770
|
+
access: "view"
|
|
34771
|
+
},
|
|
34492
34772
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34493
34773
|
capName: "pipeline-analytics",
|
|
34494
34774
|
capScope: "device",
|
|
@@ -35161,6 +35441,12 @@ Object.freeze({
|
|
|
35161
35441
|
addonId: null,
|
|
35162
35442
|
access: "create"
|
|
35163
35443
|
},
|
|
35444
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35445
|
+
capName: "pipeline-runner",
|
|
35446
|
+
capScope: "system",
|
|
35447
|
+
addonId: null,
|
|
35448
|
+
access: "create"
|
|
35449
|
+
},
|
|
35164
35450
|
"pipelineRunner.runDetailSubtree": {
|
|
35165
35451
|
capName: "pipeline-runner",
|
|
35166
35452
|
capScope: "system",
|
|
@@ -37941,11 +38227,21 @@ Object.freeze({
|
|
|
37941
38227
|
form: "single",
|
|
37942
38228
|
optional: false
|
|
37943
38229
|
}],
|
|
38230
|
+
"nativeObjectDetection.getOptions": [{
|
|
38231
|
+
name: "deviceId",
|
|
38232
|
+
form: "single",
|
|
38233
|
+
optional: false
|
|
38234
|
+
}],
|
|
37944
38235
|
"nativeObjectDetection.setEnabled": [{
|
|
37945
38236
|
name: "deviceId",
|
|
37946
38237
|
form: "single",
|
|
37947
38238
|
optional: false
|
|
37948
38239
|
}],
|
|
38240
|
+
"nativeObjectDetection.setSettings": [{
|
|
38241
|
+
name: "deviceId",
|
|
38242
|
+
form: "single",
|
|
38243
|
+
optional: false
|
|
38244
|
+
}],
|
|
37949
38245
|
"navigation.getFeatures": [{
|
|
37950
38246
|
name: "deviceId",
|
|
37951
38247
|
form: "single",
|
|
@@ -38295,6 +38591,11 @@ Object.freeze({
|
|
|
38295
38591
|
form: "single",
|
|
38296
38592
|
optional: false
|
|
38297
38593
|
}],
|
|
38594
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38595
|
+
name: "deviceId",
|
|
38596
|
+
form: "single",
|
|
38597
|
+
optional: false
|
|
38598
|
+
}],
|
|
38298
38599
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38299
38600
|
name: "deviceId",
|
|
38300
38601
|
form: "single",
|
|
@@ -38485,6 +38786,11 @@ Object.freeze({
|
|
|
38485
38786
|
form: "single",
|
|
38486
38787
|
optional: false
|
|
38487
38788
|
}],
|
|
38789
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38790
|
+
name: "deviceId",
|
|
38791
|
+
form: "single",
|
|
38792
|
+
optional: false
|
|
38793
|
+
}],
|
|
38488
38794
|
"pipelineRunner.runDetailSubtree": [{
|
|
38489
38795
|
name: "deviceId",
|
|
38490
38796
|
form: "single",
|
|
@@ -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-CimxBsE_.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-CQ9xsWl-.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.104",
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"build": "vite build",
|
|
88
88
|
"typecheck": "tsc --noEmit",
|
|
89
89
|
"validate": "tsx ../../scripts/validate-addon.ts .",
|
|
90
|
-
"publish": "npm publish --access public"
|
|
90
|
+
"publish:npm": "npm publish --access public"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@camstack/types": "*"
|