@camstack/addon-tailscale 1.2.102 → 1.2.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-BcyUFopm.js → dist--IlqSQuX.js} +275 -8
- package/dist/{dist-AkkjrQjN.mjs → dist-BXOKgV-B.mjs} +275 -8
- 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--IlqSQuX.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-BXOKgV-B.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) }), {
|
|
@@ -20422,6 +20464,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20422
20464
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20423
20465
|
framesMatched: number().int()
|
|
20424
20466
|
})).readonly() });
|
|
20467
|
+
/**
|
|
20468
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20469
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20470
|
+
* is an alias of this, not a second list.
|
|
20471
|
+
*/
|
|
20472
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20473
|
+
"motion",
|
|
20474
|
+
"audio-dbfs",
|
|
20475
|
+
"battery",
|
|
20476
|
+
"occupancy"
|
|
20477
|
+
]);
|
|
20478
|
+
/**
|
|
20479
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20480
|
+
*
|
|
20481
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20482
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20483
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20484
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20485
|
+
*/
|
|
20486
|
+
var LtsBucketSchema = object({
|
|
20487
|
+
scope: string(),
|
|
20488
|
+
bucketStart: number().int(),
|
|
20489
|
+
samples: number().int().nonnegative(),
|
|
20490
|
+
sum: number(),
|
|
20491
|
+
min: number(),
|
|
20492
|
+
max: number()
|
|
20493
|
+
});
|
|
20425
20494
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20426
20495
|
deviceId: number(),
|
|
20427
20496
|
trackId: string()
|
|
@@ -20468,6 +20537,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20468
20537
|
kinds: array(string()).optional(),
|
|
20469
20538
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20470
20539
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20540
|
+
deviceId: number(),
|
|
20541
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20542
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20543
|
+
scope: string().optional(),
|
|
20544
|
+
from: number(),
|
|
20545
|
+
to: number(),
|
|
20546
|
+
limit: number().int().positive().optional()
|
|
20547
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20471
20548
|
deviceId: number(),
|
|
20472
20549
|
since: number(),
|
|
20473
20550
|
until: number(),
|
|
@@ -21086,6 +21163,14 @@ var MotionSourceEnum = _enum([
|
|
|
21086
21163
|
*/
|
|
21087
21164
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21088
21165
|
/**
|
|
21166
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21167
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21168
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21169
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21170
|
+
* row.
|
|
21171
|
+
*/
|
|
21172
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21173
|
+
/**
|
|
21089
21174
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21090
21175
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21091
21176
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21236,6 +21321,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21236
21321
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21237
21322
|
*/
|
|
21238
21323
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21324
|
+
/**
|
|
21325
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21326
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21327
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21328
|
+
*
|
|
21329
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21330
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21331
|
+
* here. Its boxes reach post-analysis on the same
|
|
21332
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21333
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21334
|
+
* subtree (face / plate / embedding).
|
|
21335
|
+
*
|
|
21336
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21337
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21338
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21339
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21340
|
+
*
|
|
21341
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21342
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21343
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21344
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21345
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21346
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21347
|
+
*
|
|
21348
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21349
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21350
|
+
* default.
|
|
21351
|
+
*/
|
|
21352
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21239
21353
|
pipelineEnabled: boolean().default(true),
|
|
21240
21354
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21241
21355
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21417,7 +21531,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21417
21531
|
queueDepth: number(),
|
|
21418
21532
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21419
21533
|
});
|
|
21534
|
+
/**
|
|
21535
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21536
|
+
*
|
|
21537
|
+
* One instance per node. Receives camera assignments from
|
|
21538
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21539
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21540
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21541
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21542
|
+
* the bus.
|
|
21543
|
+
*
|
|
21544
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21545
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21546
|
+
* makes assignment decisions itself.
|
|
21547
|
+
*/
|
|
21548
|
+
/**
|
|
21549
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21550
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21551
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21552
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21553
|
+
*/
|
|
21554
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21555
|
+
"not-attached",
|
|
21556
|
+
"battery-asleep",
|
|
21557
|
+
"not-watching",
|
|
21558
|
+
"already-bursting"
|
|
21559
|
+
]);
|
|
21420
21560
|
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({
|
|
21561
|
+
deviceId: number(),
|
|
21562
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21563
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21564
|
+
frames: number().int().positive().optional(),
|
|
21565
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21566
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21567
|
+
reason: string()
|
|
21568
|
+
}), object({
|
|
21569
|
+
started: boolean(),
|
|
21570
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21571
|
+
}), {
|
|
21572
|
+
auth: "admin",
|
|
21573
|
+
kind: "mutation"
|
|
21574
|
+
}), method(object({
|
|
21421
21575
|
handle: FrameHandleSchema,
|
|
21422
21576
|
bbox: NativeCropBboxSchema,
|
|
21423
21577
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26947,7 +27101,7 @@ var NativeDetectionSchema = object({
|
|
|
26947
27101
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26948
27102
|
confidence: number().min(0).max(1).optional()
|
|
26949
27103
|
});
|
|
26950
|
-
object({
|
|
27104
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26951
27105
|
/**
|
|
26952
27106
|
* Last observed instance per class. Missing entries mean the class
|
|
26953
27107
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26964,14 +27118,56 @@ object({
|
|
|
26964
27118
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26965
27119
|
/**
|
|
26966
27120
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26967
|
-
*
|
|
26968
|
-
*
|
|
27121
|
+
*
|
|
27122
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27123
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27124
|
+
* other detection choice is made. `geometry` on
|
|
27125
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27126
|
+
* choice would buy this particular camera.
|
|
26969
27127
|
*/
|
|
26970
27128
|
enabled: boolean()
|
|
26971
|
-
})
|
|
27129
|
+
});
|
|
27130
|
+
/**
|
|
27131
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27132
|
+
*
|
|
27133
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27134
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27135
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27136
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27137
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27138
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27139
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27140
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27141
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27142
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27143
|
+
* tracker as motion and no further.
|
|
27144
|
+
*
|
|
27145
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27146
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27147
|
+
* derived form is only as honest as `getOptions`).
|
|
27148
|
+
*/
|
|
27149
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27150
|
+
"boxed",
|
|
27151
|
+
"while-streaming",
|
|
27152
|
+
"flag-only"
|
|
27153
|
+
]);
|
|
27154
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27155
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27156
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27157
|
+
/** What a detection from this camera carries. */
|
|
27158
|
+
geometry: NativeObjectGeometryEnum
|
|
27159
|
+
});
|
|
27160
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27161
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26972
27162
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26973
27163
|
lastFetchedAt: number() });
|
|
26974
|
-
DeviceType.Camera, method(object({
|
|
27164
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27165
|
+
deviceId: number(),
|
|
27166
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27167
|
+
}), _void(), {
|
|
27168
|
+
kind: "mutation",
|
|
27169
|
+
auth: "admin"
|
|
27170
|
+
}), method(object({
|
|
26975
27171
|
deviceId: number(),
|
|
26976
27172
|
enabled: boolean()
|
|
26977
27173
|
}), _void(), {
|
|
@@ -30770,7 +30966,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30770
30966
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30771
30967
|
totalObjects: number().int().nonnegative(),
|
|
30772
30968
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30773
|
-
byClass: record(string(), number().int().nonnegative())
|
|
30969
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
30970
|
+
/**
|
|
30971
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
30972
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
30973
|
+
*
|
|
30974
|
+
* The operator's question about a scene has two halves and they answer
|
|
30975
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
30976
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
30977
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
30978
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
30979
|
+
*
|
|
30980
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
30981
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
30982
|
+
*
|
|
30983
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
30984
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
30985
|
+
* parked objects here" about a camera whose lot is full.
|
|
30986
|
+
*/
|
|
30987
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
30988
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
30989
|
+
* same absence rule. */
|
|
30990
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30774
30991
|
});
|
|
30775
30992
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30776
30993
|
zoneId: string(),
|
|
@@ -33709,12 +33926,24 @@ Object.freeze({
|
|
|
33709
33926
|
addonId: null,
|
|
33710
33927
|
access: "create"
|
|
33711
33928
|
},
|
|
33929
|
+
"nativeObjectDetection.getOptions": {
|
|
33930
|
+
capName: "native-object-detection",
|
|
33931
|
+
capScope: "device",
|
|
33932
|
+
addonId: null,
|
|
33933
|
+
access: "view"
|
|
33934
|
+
},
|
|
33712
33935
|
"nativeObjectDetection.setEnabled": {
|
|
33713
33936
|
capName: "native-object-detection",
|
|
33714
33937
|
capScope: "device",
|
|
33715
33938
|
addonId: null,
|
|
33716
33939
|
access: "create"
|
|
33717
33940
|
},
|
|
33941
|
+
"nativeObjectDetection.setSettings": {
|
|
33942
|
+
capName: "native-object-detection",
|
|
33943
|
+
capScope: "device",
|
|
33944
|
+
addonId: null,
|
|
33945
|
+
access: "create"
|
|
33946
|
+
},
|
|
33718
33947
|
"navigation.getFeatures": {
|
|
33719
33948
|
capName: "navigation",
|
|
33720
33949
|
capScope: "device",
|
|
@@ -33979,6 +34208,12 @@ Object.freeze({
|
|
|
33979
34208
|
addonId: null,
|
|
33980
34209
|
access: "view"
|
|
33981
34210
|
},
|
|
34211
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34212
|
+
capName: "notification-rules",
|
|
34213
|
+
capScope: "system",
|
|
34214
|
+
addonId: null,
|
|
34215
|
+
access: "view"
|
|
34216
|
+
},
|
|
33982
34217
|
"notificationRules.getConditionCatalog": {
|
|
33983
34218
|
capName: "notification-rules",
|
|
33984
34219
|
capScope: "system",
|
|
@@ -34489,6 +34724,12 @@ Object.freeze({
|
|
|
34489
34724
|
addonId: null,
|
|
34490
34725
|
access: "create"
|
|
34491
34726
|
},
|
|
34727
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34728
|
+
capName: "pipeline-analytics",
|
|
34729
|
+
capScope: "device",
|
|
34730
|
+
addonId: null,
|
|
34731
|
+
access: "view"
|
|
34732
|
+
},
|
|
34492
34733
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34493
34734
|
capName: "pipeline-analytics",
|
|
34494
34735
|
capScope: "device",
|
|
@@ -35161,6 +35402,12 @@ Object.freeze({
|
|
|
35161
35402
|
addonId: null,
|
|
35162
35403
|
access: "create"
|
|
35163
35404
|
},
|
|
35405
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35406
|
+
capName: "pipeline-runner",
|
|
35407
|
+
capScope: "system",
|
|
35408
|
+
addonId: null,
|
|
35409
|
+
access: "create"
|
|
35410
|
+
},
|
|
35164
35411
|
"pipelineRunner.runDetailSubtree": {
|
|
35165
35412
|
capName: "pipeline-runner",
|
|
35166
35413
|
capScope: "system",
|
|
@@ -37941,11 +38188,21 @@ Object.freeze({
|
|
|
37941
38188
|
form: "single",
|
|
37942
38189
|
optional: false
|
|
37943
38190
|
}],
|
|
38191
|
+
"nativeObjectDetection.getOptions": [{
|
|
38192
|
+
name: "deviceId",
|
|
38193
|
+
form: "single",
|
|
38194
|
+
optional: false
|
|
38195
|
+
}],
|
|
37944
38196
|
"nativeObjectDetection.setEnabled": [{
|
|
37945
38197
|
name: "deviceId",
|
|
37946
38198
|
form: "single",
|
|
37947
38199
|
optional: false
|
|
37948
38200
|
}],
|
|
38201
|
+
"nativeObjectDetection.setSettings": [{
|
|
38202
|
+
name: "deviceId",
|
|
38203
|
+
form: "single",
|
|
38204
|
+
optional: false
|
|
38205
|
+
}],
|
|
37949
38206
|
"navigation.getFeatures": [{
|
|
37950
38207
|
name: "deviceId",
|
|
37951
38208
|
form: "single",
|
|
@@ -38295,6 +38552,11 @@ Object.freeze({
|
|
|
38295
38552
|
form: "single",
|
|
38296
38553
|
optional: false
|
|
38297
38554
|
}],
|
|
38555
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38556
|
+
name: "deviceId",
|
|
38557
|
+
form: "single",
|
|
38558
|
+
optional: false
|
|
38559
|
+
}],
|
|
38298
38560
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38299
38561
|
name: "deviceId",
|
|
38300
38562
|
form: "single",
|
|
@@ -38485,6 +38747,11 @@ Object.freeze({
|
|
|
38485
38747
|
form: "single",
|
|
38486
38748
|
optional: false
|
|
38487
38749
|
}],
|
|
38750
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38751
|
+
name: "deviceId",
|
|
38752
|
+
form: "single",
|
|
38753
|
+
optional: false
|
|
38754
|
+
}],
|
|
38488
38755
|
"pipelineRunner.runDetailSubtree": [{
|
|
38489
38756
|
name: "deviceId",
|
|
38490
38757
|
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) }), {
|
|
@@ -20422,6 +20464,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20422
20464
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20423
20465
|
framesMatched: number().int()
|
|
20424
20466
|
})).readonly() });
|
|
20467
|
+
/**
|
|
20468
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20469
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20470
|
+
* is an alias of this, not a second list.
|
|
20471
|
+
*/
|
|
20472
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20473
|
+
"motion",
|
|
20474
|
+
"audio-dbfs",
|
|
20475
|
+
"battery",
|
|
20476
|
+
"occupancy"
|
|
20477
|
+
]);
|
|
20478
|
+
/**
|
|
20479
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20480
|
+
*
|
|
20481
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20482
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20483
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20484
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20485
|
+
*/
|
|
20486
|
+
var LtsBucketSchema = object({
|
|
20487
|
+
scope: string(),
|
|
20488
|
+
bucketStart: number().int(),
|
|
20489
|
+
samples: number().int().nonnegative(),
|
|
20490
|
+
sum: number(),
|
|
20491
|
+
min: number(),
|
|
20492
|
+
max: number()
|
|
20493
|
+
});
|
|
20425
20494
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20426
20495
|
deviceId: number(),
|
|
20427
20496
|
trackId: string()
|
|
@@ -20468,6 +20537,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20468
20537
|
kinds: array(string()).optional(),
|
|
20469
20538
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20470
20539
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20540
|
+
deviceId: number(),
|
|
20541
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20542
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20543
|
+
scope: string().optional(),
|
|
20544
|
+
from: number(),
|
|
20545
|
+
to: number(),
|
|
20546
|
+
limit: number().int().positive().optional()
|
|
20547
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20471
20548
|
deviceId: number(),
|
|
20472
20549
|
since: number(),
|
|
20473
20550
|
until: number(),
|
|
@@ -21086,6 +21163,14 @@ var MotionSourceEnum = _enum([
|
|
|
21086
21163
|
*/
|
|
21087
21164
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21088
21165
|
/**
|
|
21166
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21167
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21168
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21169
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21170
|
+
* row.
|
|
21171
|
+
*/
|
|
21172
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21173
|
+
/**
|
|
21089
21174
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21090
21175
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21091
21176
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21236,6 +21321,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21236
21321
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21237
21322
|
*/
|
|
21238
21323
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21324
|
+
/**
|
|
21325
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21326
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21327
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21328
|
+
*
|
|
21329
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21330
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21331
|
+
* here. Its boxes reach post-analysis on the same
|
|
21332
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21333
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21334
|
+
* subtree (face / plate / embedding).
|
|
21335
|
+
*
|
|
21336
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21337
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21338
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21339
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21340
|
+
*
|
|
21341
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21342
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21343
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21344
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21345
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21346
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21347
|
+
*
|
|
21348
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21349
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21350
|
+
* default.
|
|
21351
|
+
*/
|
|
21352
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21239
21353
|
pipelineEnabled: boolean().default(true),
|
|
21240
21354
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21241
21355
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21417,7 +21531,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21417
21531
|
queueDepth: number(),
|
|
21418
21532
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21419
21533
|
});
|
|
21534
|
+
/**
|
|
21535
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21536
|
+
*
|
|
21537
|
+
* One instance per node. Receives camera assignments from
|
|
21538
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21539
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21540
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21541
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21542
|
+
* the bus.
|
|
21543
|
+
*
|
|
21544
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21545
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21546
|
+
* makes assignment decisions itself.
|
|
21547
|
+
*/
|
|
21548
|
+
/**
|
|
21549
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21550
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21551
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21552
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21553
|
+
*/
|
|
21554
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21555
|
+
"not-attached",
|
|
21556
|
+
"battery-asleep",
|
|
21557
|
+
"not-watching",
|
|
21558
|
+
"already-bursting"
|
|
21559
|
+
]);
|
|
21420
21560
|
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({
|
|
21561
|
+
deviceId: number(),
|
|
21562
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21563
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21564
|
+
frames: number().int().positive().optional(),
|
|
21565
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21566
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21567
|
+
reason: string()
|
|
21568
|
+
}), object({
|
|
21569
|
+
started: boolean(),
|
|
21570
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21571
|
+
}), {
|
|
21572
|
+
auth: "admin",
|
|
21573
|
+
kind: "mutation"
|
|
21574
|
+
}), method(object({
|
|
21421
21575
|
handle: FrameHandleSchema,
|
|
21422
21576
|
bbox: NativeCropBboxSchema,
|
|
21423
21577
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26947,7 +27101,7 @@ var NativeDetectionSchema = object({
|
|
|
26947
27101
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26948
27102
|
confidence: number().min(0).max(1).optional()
|
|
26949
27103
|
});
|
|
26950
|
-
object({
|
|
27104
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26951
27105
|
/**
|
|
26952
27106
|
* Last observed instance per class. Missing entries mean the class
|
|
26953
27107
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26964,14 +27118,56 @@ object({
|
|
|
26964
27118
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26965
27119
|
/**
|
|
26966
27120
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26967
|
-
*
|
|
26968
|
-
*
|
|
27121
|
+
*
|
|
27122
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27123
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27124
|
+
* other detection choice is made. `geometry` on
|
|
27125
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27126
|
+
* choice would buy this particular camera.
|
|
26969
27127
|
*/
|
|
26970
27128
|
enabled: boolean()
|
|
26971
|
-
})
|
|
27129
|
+
});
|
|
27130
|
+
/**
|
|
27131
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27132
|
+
*
|
|
27133
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27134
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27135
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27136
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27137
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27138
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27139
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27140
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27141
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27142
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27143
|
+
* tracker as motion and no further.
|
|
27144
|
+
*
|
|
27145
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27146
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27147
|
+
* derived form is only as honest as `getOptions`).
|
|
27148
|
+
*/
|
|
27149
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27150
|
+
"boxed",
|
|
27151
|
+
"while-streaming",
|
|
27152
|
+
"flag-only"
|
|
27153
|
+
]);
|
|
27154
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27155
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27156
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27157
|
+
/** What a detection from this camera carries. */
|
|
27158
|
+
geometry: NativeObjectGeometryEnum
|
|
27159
|
+
});
|
|
27160
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27161
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26972
27162
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26973
27163
|
lastFetchedAt: number() });
|
|
26974
|
-
DeviceType.Camera, method(object({
|
|
27164
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27165
|
+
deviceId: number(),
|
|
27166
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27167
|
+
}), _void(), {
|
|
27168
|
+
kind: "mutation",
|
|
27169
|
+
auth: "admin"
|
|
27170
|
+
}), method(object({
|
|
26975
27171
|
deviceId: number(),
|
|
26976
27172
|
enabled: boolean()
|
|
26977
27173
|
}), _void(), {
|
|
@@ -30770,7 +30966,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30770
30966
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30771
30967
|
totalObjects: number().int().nonnegative(),
|
|
30772
30968
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30773
|
-
byClass: record(string(), number().int().nonnegative())
|
|
30969
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
30970
|
+
/**
|
|
30971
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
30972
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
30973
|
+
*
|
|
30974
|
+
* The operator's question about a scene has two halves and they answer
|
|
30975
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
30976
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
30977
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
30978
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
30979
|
+
*
|
|
30980
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
30981
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
30982
|
+
*
|
|
30983
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
30984
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
30985
|
+
* parked objects here" about a camera whose lot is full.
|
|
30986
|
+
*/
|
|
30987
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
30988
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
30989
|
+
* same absence rule. */
|
|
30990
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30774
30991
|
});
|
|
30775
30992
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30776
30993
|
zoneId: string(),
|
|
@@ -33709,12 +33926,24 @@ Object.freeze({
|
|
|
33709
33926
|
addonId: null,
|
|
33710
33927
|
access: "create"
|
|
33711
33928
|
},
|
|
33929
|
+
"nativeObjectDetection.getOptions": {
|
|
33930
|
+
capName: "native-object-detection",
|
|
33931
|
+
capScope: "device",
|
|
33932
|
+
addonId: null,
|
|
33933
|
+
access: "view"
|
|
33934
|
+
},
|
|
33712
33935
|
"nativeObjectDetection.setEnabled": {
|
|
33713
33936
|
capName: "native-object-detection",
|
|
33714
33937
|
capScope: "device",
|
|
33715
33938
|
addonId: null,
|
|
33716
33939
|
access: "create"
|
|
33717
33940
|
},
|
|
33941
|
+
"nativeObjectDetection.setSettings": {
|
|
33942
|
+
capName: "native-object-detection",
|
|
33943
|
+
capScope: "device",
|
|
33944
|
+
addonId: null,
|
|
33945
|
+
access: "create"
|
|
33946
|
+
},
|
|
33718
33947
|
"navigation.getFeatures": {
|
|
33719
33948
|
capName: "navigation",
|
|
33720
33949
|
capScope: "device",
|
|
@@ -33979,6 +34208,12 @@ Object.freeze({
|
|
|
33979
34208
|
addonId: null,
|
|
33980
34209
|
access: "view"
|
|
33981
34210
|
},
|
|
34211
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34212
|
+
capName: "notification-rules",
|
|
34213
|
+
capScope: "system",
|
|
34214
|
+
addonId: null,
|
|
34215
|
+
access: "view"
|
|
34216
|
+
},
|
|
33982
34217
|
"notificationRules.getConditionCatalog": {
|
|
33983
34218
|
capName: "notification-rules",
|
|
33984
34219
|
capScope: "system",
|
|
@@ -34489,6 +34724,12 @@ Object.freeze({
|
|
|
34489
34724
|
addonId: null,
|
|
34490
34725
|
access: "create"
|
|
34491
34726
|
},
|
|
34727
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34728
|
+
capName: "pipeline-analytics",
|
|
34729
|
+
capScope: "device",
|
|
34730
|
+
addonId: null,
|
|
34731
|
+
access: "view"
|
|
34732
|
+
},
|
|
34492
34733
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34493
34734
|
capName: "pipeline-analytics",
|
|
34494
34735
|
capScope: "device",
|
|
@@ -35161,6 +35402,12 @@ Object.freeze({
|
|
|
35161
35402
|
addonId: null,
|
|
35162
35403
|
access: "create"
|
|
35163
35404
|
},
|
|
35405
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35406
|
+
capName: "pipeline-runner",
|
|
35407
|
+
capScope: "system",
|
|
35408
|
+
addonId: null,
|
|
35409
|
+
access: "create"
|
|
35410
|
+
},
|
|
35164
35411
|
"pipelineRunner.runDetailSubtree": {
|
|
35165
35412
|
capName: "pipeline-runner",
|
|
35166
35413
|
capScope: "system",
|
|
@@ -37941,11 +38188,21 @@ Object.freeze({
|
|
|
37941
38188
|
form: "single",
|
|
37942
38189
|
optional: false
|
|
37943
38190
|
}],
|
|
38191
|
+
"nativeObjectDetection.getOptions": [{
|
|
38192
|
+
name: "deviceId",
|
|
38193
|
+
form: "single",
|
|
38194
|
+
optional: false
|
|
38195
|
+
}],
|
|
37944
38196
|
"nativeObjectDetection.setEnabled": [{
|
|
37945
38197
|
name: "deviceId",
|
|
37946
38198
|
form: "single",
|
|
37947
38199
|
optional: false
|
|
37948
38200
|
}],
|
|
38201
|
+
"nativeObjectDetection.setSettings": [{
|
|
38202
|
+
name: "deviceId",
|
|
38203
|
+
form: "single",
|
|
38204
|
+
optional: false
|
|
38205
|
+
}],
|
|
37949
38206
|
"navigation.getFeatures": [{
|
|
37950
38207
|
name: "deviceId",
|
|
37951
38208
|
form: "single",
|
|
@@ -38295,6 +38552,11 @@ Object.freeze({
|
|
|
38295
38552
|
form: "single",
|
|
38296
38553
|
optional: false
|
|
38297
38554
|
}],
|
|
38555
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38556
|
+
name: "deviceId",
|
|
38557
|
+
form: "single",
|
|
38558
|
+
optional: false
|
|
38559
|
+
}],
|
|
38298
38560
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38299
38561
|
name: "deviceId",
|
|
38300
38562
|
form: "single",
|
|
@@ -38485,6 +38747,11 @@ Object.freeze({
|
|
|
38485
38747
|
form: "single",
|
|
38486
38748
|
optional: false
|
|
38487
38749
|
}],
|
|
38750
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38751
|
+
name: "deviceId",
|
|
38752
|
+
form: "single",
|
|
38753
|
+
optional: false
|
|
38754
|
+
}],
|
|
38488
38755
|
"pipelineRunner.runDetailSubtree": [{
|
|
38489
38756
|
name: "deviceId",
|
|
38490
38757
|
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--IlqSQuX.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-BXOKgV-B.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.103",
|
|
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": "*"
|