@camstack/addon-notifiers 1.2.106 → 1.2.107
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/addon.js +297 -30
- package/dist/addon.mjs +297 -30
- package/package.json +2 -2
package/dist/addon.js
CHANGED
|
@@ -5390,7 +5390,7 @@ var ZodIssueCode = {
|
|
|
5390
5390
|
var ZodFirstPartyTypeKind;
|
|
5391
5391
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5392
5392
|
//#endregion
|
|
5393
|
-
//#region ../types/dist/sleep-
|
|
5393
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5394
5394
|
/**
|
|
5395
5395
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5396
5396
|
* window to float samples (D455).
|
|
@@ -7271,6 +7271,28 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7271
7271
|
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
7272
7272
|
return DeviceRole;
|
|
7273
7273
|
}({});
|
|
7274
|
+
/**
|
|
7275
|
+
* Identity — preserves literal types for downstream inference.
|
|
7276
|
+
*
|
|
7277
|
+
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
7278
|
+
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
7279
|
+
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
7280
|
+
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
7281
|
+
* whose return type is already a `CustomActionSpec<...>`.
|
|
7282
|
+
*/
|
|
7283
|
+
function defineCustomActions(spec) {
|
|
7284
|
+
return spec;
|
|
7285
|
+
}
|
|
7286
|
+
function customAction(input, output, options) {
|
|
7287
|
+
return {
|
|
7288
|
+
input,
|
|
7289
|
+
output,
|
|
7290
|
+
kind: options?.kind ?? "query",
|
|
7291
|
+
auth: options?.auth ?? "protected",
|
|
7292
|
+
scope: options?.scope ?? { kind: "system" },
|
|
7293
|
+
...options?.caller ? { caller: "required" } : {}
|
|
7294
|
+
};
|
|
7295
|
+
}
|
|
7274
7296
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7275
7297
|
var VersionOutputSchema = object({ version: string() });
|
|
7276
7298
|
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
@@ -12570,28 +12592,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
12570
12592
|
content: string()
|
|
12571
12593
|
})) }), { auth: "admin" });
|
|
12572
12594
|
/**
|
|
12573
|
-
* Identity — preserves literal types for downstream inference.
|
|
12574
|
-
*
|
|
12575
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
12576
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
12577
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
12578
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
12579
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
12580
|
-
*/
|
|
12581
|
-
function defineCustomActions(spec) {
|
|
12582
|
-
return spec;
|
|
12583
|
-
}
|
|
12584
|
-
function customAction(input, output, options) {
|
|
12585
|
-
return {
|
|
12586
|
-
input,
|
|
12587
|
-
output,
|
|
12588
|
-
kind: options?.kind ?? "query",
|
|
12589
|
-
auth: options?.auth ?? "protected",
|
|
12590
|
-
scope: options?.scope ?? { kind: "system" },
|
|
12591
|
-
...options?.caller ? { caller: "required" } : {}
|
|
12592
|
-
};
|
|
12593
|
-
}
|
|
12594
|
-
/**
|
|
12595
12595
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
12596
12596
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
12597
12597
|
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
@@ -18020,6 +18020,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18020
18020
|
settings: NcAlarmSettingsSchema,
|
|
18021
18021
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18022
18022
|
});
|
|
18023
|
+
/**
|
|
18024
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18025
|
+
*
|
|
18026
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18027
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18028
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18029
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18030
|
+
* a different thing from never having been told, and only the envelope
|
|
18031
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18032
|
+
*/
|
|
18033
|
+
var NcClipRetentionAskSchema = object({
|
|
18034
|
+
/**
|
|
18035
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18036
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18037
|
+
* asking everywhere.
|
|
18038
|
+
*/
|
|
18039
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18040
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18041
|
+
* needs nothing produces no ask at all. */
|
|
18042
|
+
seconds: number().min(0).max(60),
|
|
18043
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18044
|
+
* assigned, which is what the cut defaults to. */
|
|
18045
|
+
profile: CamProfileSchema.optional(),
|
|
18046
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18047
|
+
ruleId: string(),
|
|
18048
|
+
ruleName: string(),
|
|
18049
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18050
|
+
reason: _enum(["window", "occupancy"])
|
|
18051
|
+
});
|
|
18052
|
+
/**
|
|
18053
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18054
|
+
*
|
|
18055
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18056
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18057
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18058
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18059
|
+
* footage this mechanism exists to keep.
|
|
18060
|
+
*/
|
|
18061
|
+
var NcClipRetentionPlanSchema = object({
|
|
18062
|
+
rulesLoaded: boolean(),
|
|
18063
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18064
|
+
});
|
|
18023
18065
|
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 }), {
|
|
18024
18066
|
kind: "mutation",
|
|
18025
18067
|
auth: "admin",
|
|
@@ -18040,7 +18082,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18040
18082
|
}), object({ success: literal(true) }), {
|
|
18041
18083
|
kind: "mutation",
|
|
18042
18084
|
auth: "admin"
|
|
18043
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18085
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18044
18086
|
deviceId: number().int(),
|
|
18045
18087
|
muted: boolean()
|
|
18046
18088
|
}), object({ success: literal(true) }), {
|
|
@@ -20574,6 +20616,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20574
20616
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20575
20617
|
framesMatched: number().int()
|
|
20576
20618
|
})).readonly() });
|
|
20619
|
+
/**
|
|
20620
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20621
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20622
|
+
* is an alias of this, not a second list.
|
|
20623
|
+
*/
|
|
20624
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20625
|
+
"motion",
|
|
20626
|
+
"audio-dbfs",
|
|
20627
|
+
"battery",
|
|
20628
|
+
"occupancy"
|
|
20629
|
+
]);
|
|
20630
|
+
/**
|
|
20631
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20632
|
+
*
|
|
20633
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20634
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20635
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20636
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20637
|
+
*/
|
|
20638
|
+
var LtsBucketSchema = object({
|
|
20639
|
+
scope: string(),
|
|
20640
|
+
bucketStart: number().int(),
|
|
20641
|
+
samples: number().int().nonnegative(),
|
|
20642
|
+
sum: number(),
|
|
20643
|
+
min: number(),
|
|
20644
|
+
max: number()
|
|
20645
|
+
});
|
|
20577
20646
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20578
20647
|
deviceId: number(),
|
|
20579
20648
|
trackId: string()
|
|
@@ -20620,6 +20689,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20620
20689
|
kinds: array(string()).optional(),
|
|
20621
20690
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20622
20691
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20692
|
+
deviceId: number(),
|
|
20693
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20694
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20695
|
+
scope: string().optional(),
|
|
20696
|
+
from: number(),
|
|
20697
|
+
to: number(),
|
|
20698
|
+
limit: number().int().positive().optional()
|
|
20699
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20623
20700
|
deviceId: number(),
|
|
20624
20701
|
since: number(),
|
|
20625
20702
|
until: number(),
|
|
@@ -21238,6 +21315,14 @@ var MotionSourceEnum = _enum([
|
|
|
21238
21315
|
*/
|
|
21239
21316
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21240
21317
|
/**
|
|
21318
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21319
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21320
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21321
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21322
|
+
* row.
|
|
21323
|
+
*/
|
|
21324
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21325
|
+
/**
|
|
21241
21326
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21242
21327
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21243
21328
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21388,6 +21473,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21388
21473
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21389
21474
|
*/
|
|
21390
21475
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21476
|
+
/**
|
|
21477
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21478
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21479
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21480
|
+
*
|
|
21481
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21482
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21483
|
+
* here. Its boxes reach post-analysis on the same
|
|
21484
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21485
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21486
|
+
* subtree (face / plate / embedding).
|
|
21487
|
+
*
|
|
21488
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21489
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21490
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21491
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21492
|
+
*
|
|
21493
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21494
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21495
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21496
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21497
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21498
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21499
|
+
*
|
|
21500
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21501
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21502
|
+
* default.
|
|
21503
|
+
*/
|
|
21504
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21391
21505
|
pipelineEnabled: boolean().default(true),
|
|
21392
21506
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21393
21507
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21569,7 +21683,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21569
21683
|
queueDepth: number(),
|
|
21570
21684
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21571
21685
|
});
|
|
21686
|
+
/**
|
|
21687
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21688
|
+
*
|
|
21689
|
+
* One instance per node. Receives camera assignments from
|
|
21690
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21691
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21692
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21693
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21694
|
+
* the bus.
|
|
21695
|
+
*
|
|
21696
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21697
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21698
|
+
* makes assignment decisions itself.
|
|
21699
|
+
*/
|
|
21700
|
+
/**
|
|
21701
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21702
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21703
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21704
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21705
|
+
*/
|
|
21706
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21707
|
+
"not-attached",
|
|
21708
|
+
"battery-asleep",
|
|
21709
|
+
"not-watching",
|
|
21710
|
+
"already-bursting"
|
|
21711
|
+
]);
|
|
21572
21712
|
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({
|
|
21713
|
+
deviceId: number(),
|
|
21714
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21715
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21716
|
+
frames: number().int().positive().optional(),
|
|
21717
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21718
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21719
|
+
reason: string()
|
|
21720
|
+
}), object({
|
|
21721
|
+
started: boolean(),
|
|
21722
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21723
|
+
}), {
|
|
21724
|
+
auth: "admin",
|
|
21725
|
+
kind: "mutation"
|
|
21726
|
+
}), method(object({
|
|
21573
21727
|
handle: FrameHandleSchema,
|
|
21574
21728
|
bbox: NativeCropBboxSchema,
|
|
21575
21729
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27038,7 +27192,7 @@ var NativeDetectionSchema = object({
|
|
|
27038
27192
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27039
27193
|
confidence: number().min(0).max(1).optional()
|
|
27040
27194
|
});
|
|
27041
|
-
object({
|
|
27195
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27042
27196
|
/**
|
|
27043
27197
|
* Last observed instance per class. Missing entries mean the class
|
|
27044
27198
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27055,14 +27209,56 @@ object({
|
|
|
27055
27209
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27056
27210
|
/**
|
|
27057
27211
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27058
|
-
*
|
|
27059
|
-
*
|
|
27212
|
+
*
|
|
27213
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27214
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27215
|
+
* other detection choice is made. `geometry` on
|
|
27216
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27217
|
+
* choice would buy this particular camera.
|
|
27060
27218
|
*/
|
|
27061
27219
|
enabled: boolean()
|
|
27062
|
-
})
|
|
27220
|
+
});
|
|
27221
|
+
/**
|
|
27222
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27223
|
+
*
|
|
27224
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27225
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27226
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27227
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27228
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27229
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27230
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27231
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27232
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27233
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27234
|
+
* tracker as motion and no further.
|
|
27235
|
+
*
|
|
27236
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27237
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27238
|
+
* derived form is only as honest as `getOptions`).
|
|
27239
|
+
*/
|
|
27240
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27241
|
+
"boxed",
|
|
27242
|
+
"while-streaming",
|
|
27243
|
+
"flag-only"
|
|
27244
|
+
]);
|
|
27245
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27246
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27247
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27248
|
+
/** What a detection from this camera carries. */
|
|
27249
|
+
geometry: NativeObjectGeometryEnum
|
|
27250
|
+
});
|
|
27251
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27252
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27063
27253
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27064
27254
|
lastFetchedAt: number() });
|
|
27065
|
-
DeviceType.Camera, method(object({
|
|
27255
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27256
|
+
deviceId: number(),
|
|
27257
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27258
|
+
}), _void(), {
|
|
27259
|
+
kind: "mutation",
|
|
27260
|
+
auth: "admin"
|
|
27261
|
+
}), method(object({
|
|
27066
27262
|
deviceId: number(),
|
|
27067
27263
|
enabled: boolean()
|
|
27068
27264
|
}), _void(), {
|
|
@@ -30861,7 +31057,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30861
31057
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30862
31058
|
totalObjects: number().int().nonnegative(),
|
|
30863
31059
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30864
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31060
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31061
|
+
/**
|
|
31062
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31063
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31064
|
+
*
|
|
31065
|
+
* The operator's question about a scene has two halves and they answer
|
|
31066
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31067
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31068
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31069
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31070
|
+
*
|
|
31071
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31072
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31073
|
+
*
|
|
31074
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31075
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31076
|
+
* parked objects here" about a camera whose lot is full.
|
|
31077
|
+
*/
|
|
31078
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31079
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31080
|
+
* same absence rule. */
|
|
31081
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30865
31082
|
});
|
|
30866
31083
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30867
31084
|
zoneId: string(),
|
|
@@ -33800,12 +34017,24 @@ Object.freeze({
|
|
|
33800
34017
|
addonId: null,
|
|
33801
34018
|
access: "create"
|
|
33802
34019
|
},
|
|
34020
|
+
"nativeObjectDetection.getOptions": {
|
|
34021
|
+
capName: "native-object-detection",
|
|
34022
|
+
capScope: "device",
|
|
34023
|
+
addonId: null,
|
|
34024
|
+
access: "view"
|
|
34025
|
+
},
|
|
33803
34026
|
"nativeObjectDetection.setEnabled": {
|
|
33804
34027
|
capName: "native-object-detection",
|
|
33805
34028
|
capScope: "device",
|
|
33806
34029
|
addonId: null,
|
|
33807
34030
|
access: "create"
|
|
33808
34031
|
},
|
|
34032
|
+
"nativeObjectDetection.setSettings": {
|
|
34033
|
+
capName: "native-object-detection",
|
|
34034
|
+
capScope: "device",
|
|
34035
|
+
addonId: null,
|
|
34036
|
+
access: "create"
|
|
34037
|
+
},
|
|
33809
34038
|
"navigation.getFeatures": {
|
|
33810
34039
|
capName: "navigation",
|
|
33811
34040
|
capScope: "device",
|
|
@@ -34070,6 +34299,12 @@ Object.freeze({
|
|
|
34070
34299
|
addonId: null,
|
|
34071
34300
|
access: "view"
|
|
34072
34301
|
},
|
|
34302
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34303
|
+
capName: "notification-rules",
|
|
34304
|
+
capScope: "system",
|
|
34305
|
+
addonId: null,
|
|
34306
|
+
access: "view"
|
|
34307
|
+
},
|
|
34073
34308
|
"notificationRules.getConditionCatalog": {
|
|
34074
34309
|
capName: "notification-rules",
|
|
34075
34310
|
capScope: "system",
|
|
@@ -34580,6 +34815,12 @@ Object.freeze({
|
|
|
34580
34815
|
addonId: null,
|
|
34581
34816
|
access: "create"
|
|
34582
34817
|
},
|
|
34818
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34819
|
+
capName: "pipeline-analytics",
|
|
34820
|
+
capScope: "device",
|
|
34821
|
+
addonId: null,
|
|
34822
|
+
access: "view"
|
|
34823
|
+
},
|
|
34583
34824
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34584
34825
|
capName: "pipeline-analytics",
|
|
34585
34826
|
capScope: "device",
|
|
@@ -35252,6 +35493,12 @@ Object.freeze({
|
|
|
35252
35493
|
addonId: null,
|
|
35253
35494
|
access: "create"
|
|
35254
35495
|
},
|
|
35496
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35497
|
+
capName: "pipeline-runner",
|
|
35498
|
+
capScope: "system",
|
|
35499
|
+
addonId: null,
|
|
35500
|
+
access: "create"
|
|
35501
|
+
},
|
|
35255
35502
|
"pipelineRunner.runDetailSubtree": {
|
|
35256
35503
|
capName: "pipeline-runner",
|
|
35257
35504
|
capScope: "system",
|
|
@@ -38032,11 +38279,21 @@ Object.freeze({
|
|
|
38032
38279
|
form: "single",
|
|
38033
38280
|
optional: false
|
|
38034
38281
|
}],
|
|
38282
|
+
"nativeObjectDetection.getOptions": [{
|
|
38283
|
+
name: "deviceId",
|
|
38284
|
+
form: "single",
|
|
38285
|
+
optional: false
|
|
38286
|
+
}],
|
|
38035
38287
|
"nativeObjectDetection.setEnabled": [{
|
|
38036
38288
|
name: "deviceId",
|
|
38037
38289
|
form: "single",
|
|
38038
38290
|
optional: false
|
|
38039
38291
|
}],
|
|
38292
|
+
"nativeObjectDetection.setSettings": [{
|
|
38293
|
+
name: "deviceId",
|
|
38294
|
+
form: "single",
|
|
38295
|
+
optional: false
|
|
38296
|
+
}],
|
|
38040
38297
|
"navigation.getFeatures": [{
|
|
38041
38298
|
name: "deviceId",
|
|
38042
38299
|
form: "single",
|
|
@@ -38386,6 +38643,11 @@ Object.freeze({
|
|
|
38386
38643
|
form: "single",
|
|
38387
38644
|
optional: false
|
|
38388
38645
|
}],
|
|
38646
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38647
|
+
name: "deviceId",
|
|
38648
|
+
form: "single",
|
|
38649
|
+
optional: false
|
|
38650
|
+
}],
|
|
38389
38651
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38390
38652
|
name: "deviceId",
|
|
38391
38653
|
form: "single",
|
|
@@ -38576,6 +38838,11 @@ Object.freeze({
|
|
|
38576
38838
|
form: "single",
|
|
38577
38839
|
optional: false
|
|
38578
38840
|
}],
|
|
38841
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38842
|
+
name: "deviceId",
|
|
38843
|
+
form: "single",
|
|
38844
|
+
optional: false
|
|
38845
|
+
}],
|
|
38579
38846
|
"pipelineRunner.runDetailSubtree": [{
|
|
38580
38847
|
name: "deviceId",
|
|
38581
38848
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
|
|
|
5363
5363
|
var ZodFirstPartyTypeKind;
|
|
5364
5364
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5365
5365
|
//#endregion
|
|
5366
|
-
//#region ../types/dist/sleep-
|
|
5366
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5367
5367
|
/**
|
|
5368
5368
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5369
5369
|
* window to float samples (D455).
|
|
@@ -7244,6 +7244,28 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7244
7244
|
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
7245
7245
|
return DeviceRole;
|
|
7246
7246
|
}({});
|
|
7247
|
+
/**
|
|
7248
|
+
* Identity — preserves literal types for downstream inference.
|
|
7249
|
+
*
|
|
7250
|
+
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
7251
|
+
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
7252
|
+
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
7253
|
+
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
7254
|
+
* whose return type is already a `CustomActionSpec<...>`.
|
|
7255
|
+
*/
|
|
7256
|
+
function defineCustomActions(spec) {
|
|
7257
|
+
return spec;
|
|
7258
|
+
}
|
|
7259
|
+
function customAction(input, output, options) {
|
|
7260
|
+
return {
|
|
7261
|
+
input,
|
|
7262
|
+
output,
|
|
7263
|
+
kind: options?.kind ?? "query",
|
|
7264
|
+
auth: options?.auth ?? "protected",
|
|
7265
|
+
scope: options?.scope ?? { kind: "system" },
|
|
7266
|
+
...options?.caller ? { caller: "required" } : {}
|
|
7267
|
+
};
|
|
7268
|
+
}
|
|
7247
7269
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7248
7270
|
var VersionOutputSchema = object({ version: string() });
|
|
7249
7271
|
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
@@ -12543,28 +12565,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
12543
12565
|
content: string()
|
|
12544
12566
|
})) }), { auth: "admin" });
|
|
12545
12567
|
/**
|
|
12546
|
-
* Identity — preserves literal types for downstream inference.
|
|
12547
|
-
*
|
|
12548
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
12549
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
12550
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
12551
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
12552
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
12553
|
-
*/
|
|
12554
|
-
function defineCustomActions(spec) {
|
|
12555
|
-
return spec;
|
|
12556
|
-
}
|
|
12557
|
-
function customAction(input, output, options) {
|
|
12558
|
-
return {
|
|
12559
|
-
input,
|
|
12560
|
-
output,
|
|
12561
|
-
kind: options?.kind ?? "query",
|
|
12562
|
-
auth: options?.auth ?? "protected",
|
|
12563
|
-
scope: options?.scope ?? { kind: "system" },
|
|
12564
|
-
...options?.caller ? { caller: "required" } : {}
|
|
12565
|
-
};
|
|
12566
|
-
}
|
|
12567
|
-
/**
|
|
12568
12568
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
12569
12569
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
12570
12570
|
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
@@ -17993,6 +17993,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17993
17993
|
settings: NcAlarmSettingsSchema,
|
|
17994
17994
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17995
17995
|
});
|
|
17996
|
+
/**
|
|
17997
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17998
|
+
*
|
|
17999
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18000
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18001
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18002
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18003
|
+
* a different thing from never having been told, and only the envelope
|
|
18004
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18005
|
+
*/
|
|
18006
|
+
var NcClipRetentionAskSchema = object({
|
|
18007
|
+
/**
|
|
18008
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18009
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18010
|
+
* asking everywhere.
|
|
18011
|
+
*/
|
|
18012
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18013
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18014
|
+
* needs nothing produces no ask at all. */
|
|
18015
|
+
seconds: number().min(0).max(60),
|
|
18016
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18017
|
+
* assigned, which is what the cut defaults to. */
|
|
18018
|
+
profile: CamProfileSchema.optional(),
|
|
18019
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18020
|
+
ruleId: string(),
|
|
18021
|
+
ruleName: string(),
|
|
18022
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18023
|
+
reason: _enum(["window", "occupancy"])
|
|
18024
|
+
});
|
|
18025
|
+
/**
|
|
18026
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18027
|
+
*
|
|
18028
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18029
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18030
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18031
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18032
|
+
* footage this mechanism exists to keep.
|
|
18033
|
+
*/
|
|
18034
|
+
var NcClipRetentionPlanSchema = object({
|
|
18035
|
+
rulesLoaded: boolean(),
|
|
18036
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18037
|
+
});
|
|
17996
18038
|
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 }), {
|
|
17997
18039
|
kind: "mutation",
|
|
17998
18040
|
auth: "admin",
|
|
@@ -18013,7 +18055,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18013
18055
|
}), object({ success: literal(true) }), {
|
|
18014
18056
|
kind: "mutation",
|
|
18015
18057
|
auth: "admin"
|
|
18016
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18058
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18017
18059
|
deviceId: number().int(),
|
|
18018
18060
|
muted: boolean()
|
|
18019
18061
|
}), object({ success: literal(true) }), {
|
|
@@ -20547,6 +20589,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20547
20589
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20548
20590
|
framesMatched: number().int()
|
|
20549
20591
|
})).readonly() });
|
|
20592
|
+
/**
|
|
20593
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20594
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20595
|
+
* is an alias of this, not a second list.
|
|
20596
|
+
*/
|
|
20597
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20598
|
+
"motion",
|
|
20599
|
+
"audio-dbfs",
|
|
20600
|
+
"battery",
|
|
20601
|
+
"occupancy"
|
|
20602
|
+
]);
|
|
20603
|
+
/**
|
|
20604
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20605
|
+
*
|
|
20606
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20607
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20608
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20609
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20610
|
+
*/
|
|
20611
|
+
var LtsBucketSchema = object({
|
|
20612
|
+
scope: string(),
|
|
20613
|
+
bucketStart: number().int(),
|
|
20614
|
+
samples: number().int().nonnegative(),
|
|
20615
|
+
sum: number(),
|
|
20616
|
+
min: number(),
|
|
20617
|
+
max: number()
|
|
20618
|
+
});
|
|
20550
20619
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20551
20620
|
deviceId: number(),
|
|
20552
20621
|
trackId: string()
|
|
@@ -20593,6 +20662,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20593
20662
|
kinds: array(string()).optional(),
|
|
20594
20663
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20595
20664
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20665
|
+
deviceId: number(),
|
|
20666
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20667
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20668
|
+
scope: string().optional(),
|
|
20669
|
+
from: number(),
|
|
20670
|
+
to: number(),
|
|
20671
|
+
limit: number().int().positive().optional()
|
|
20672
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20596
20673
|
deviceId: number(),
|
|
20597
20674
|
since: number(),
|
|
20598
20675
|
until: number(),
|
|
@@ -21211,6 +21288,14 @@ var MotionSourceEnum = _enum([
|
|
|
21211
21288
|
*/
|
|
21212
21289
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21213
21290
|
/**
|
|
21291
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21292
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21293
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21294
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21295
|
+
* row.
|
|
21296
|
+
*/
|
|
21297
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21298
|
+
/**
|
|
21214
21299
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21215
21300
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21216
21301
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21361,6 +21446,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21361
21446
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21362
21447
|
*/
|
|
21363
21448
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21449
|
+
/**
|
|
21450
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21451
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21452
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21453
|
+
*
|
|
21454
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21455
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21456
|
+
* here. Its boxes reach post-analysis on the same
|
|
21457
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21458
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21459
|
+
* subtree (face / plate / embedding).
|
|
21460
|
+
*
|
|
21461
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21462
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21463
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21464
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21465
|
+
*
|
|
21466
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21467
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21468
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21469
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21470
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21471
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21472
|
+
*
|
|
21473
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21474
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21475
|
+
* default.
|
|
21476
|
+
*/
|
|
21477
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21364
21478
|
pipelineEnabled: boolean().default(true),
|
|
21365
21479
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21366
21480
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21542,7 +21656,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21542
21656
|
queueDepth: number(),
|
|
21543
21657
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21544
21658
|
});
|
|
21659
|
+
/**
|
|
21660
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21661
|
+
*
|
|
21662
|
+
* One instance per node. Receives camera assignments from
|
|
21663
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21664
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21665
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21666
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21667
|
+
* the bus.
|
|
21668
|
+
*
|
|
21669
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21670
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21671
|
+
* makes assignment decisions itself.
|
|
21672
|
+
*/
|
|
21673
|
+
/**
|
|
21674
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21675
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21676
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21677
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21678
|
+
*/
|
|
21679
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21680
|
+
"not-attached",
|
|
21681
|
+
"battery-asleep",
|
|
21682
|
+
"not-watching",
|
|
21683
|
+
"already-bursting"
|
|
21684
|
+
]);
|
|
21545
21685
|
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({
|
|
21686
|
+
deviceId: number(),
|
|
21687
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21688
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21689
|
+
frames: number().int().positive().optional(),
|
|
21690
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21691
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21692
|
+
reason: string()
|
|
21693
|
+
}), object({
|
|
21694
|
+
started: boolean(),
|
|
21695
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21696
|
+
}), {
|
|
21697
|
+
auth: "admin",
|
|
21698
|
+
kind: "mutation"
|
|
21699
|
+
}), method(object({
|
|
21546
21700
|
handle: FrameHandleSchema,
|
|
21547
21701
|
bbox: NativeCropBboxSchema,
|
|
21548
21702
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27011,7 +27165,7 @@ var NativeDetectionSchema = object({
|
|
|
27011
27165
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27012
27166
|
confidence: number().min(0).max(1).optional()
|
|
27013
27167
|
});
|
|
27014
|
-
object({
|
|
27168
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27015
27169
|
/**
|
|
27016
27170
|
* Last observed instance per class. Missing entries mean the class
|
|
27017
27171
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27028,14 +27182,56 @@ object({
|
|
|
27028
27182
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27029
27183
|
/**
|
|
27030
27184
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27031
|
-
*
|
|
27032
|
-
*
|
|
27185
|
+
*
|
|
27186
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27187
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27188
|
+
* other detection choice is made. `geometry` on
|
|
27189
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27190
|
+
* choice would buy this particular camera.
|
|
27033
27191
|
*/
|
|
27034
27192
|
enabled: boolean()
|
|
27035
|
-
})
|
|
27193
|
+
});
|
|
27194
|
+
/**
|
|
27195
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27196
|
+
*
|
|
27197
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27198
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27199
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27200
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27201
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27202
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27203
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27204
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27205
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27206
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27207
|
+
* tracker as motion and no further.
|
|
27208
|
+
*
|
|
27209
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27210
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27211
|
+
* derived form is only as honest as `getOptions`).
|
|
27212
|
+
*/
|
|
27213
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27214
|
+
"boxed",
|
|
27215
|
+
"while-streaming",
|
|
27216
|
+
"flag-only"
|
|
27217
|
+
]);
|
|
27218
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27219
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27220
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27221
|
+
/** What a detection from this camera carries. */
|
|
27222
|
+
geometry: NativeObjectGeometryEnum
|
|
27223
|
+
});
|
|
27224
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27225
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27036
27226
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27037
27227
|
lastFetchedAt: number() });
|
|
27038
|
-
DeviceType.Camera, method(object({
|
|
27228
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27229
|
+
deviceId: number(),
|
|
27230
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27231
|
+
}), _void(), {
|
|
27232
|
+
kind: "mutation",
|
|
27233
|
+
auth: "admin"
|
|
27234
|
+
}), method(object({
|
|
27039
27235
|
deviceId: number(),
|
|
27040
27236
|
enabled: boolean()
|
|
27041
27237
|
}), _void(), {
|
|
@@ -30834,7 +31030,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30834
31030
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30835
31031
|
totalObjects: number().int().nonnegative(),
|
|
30836
31032
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30837
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31033
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31034
|
+
/**
|
|
31035
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31036
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31037
|
+
*
|
|
31038
|
+
* The operator's question about a scene has two halves and they answer
|
|
31039
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31040
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31041
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31042
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31043
|
+
*
|
|
31044
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31045
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31046
|
+
*
|
|
31047
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31048
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31049
|
+
* parked objects here" about a camera whose lot is full.
|
|
31050
|
+
*/
|
|
31051
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31052
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31053
|
+
* same absence rule. */
|
|
31054
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30838
31055
|
});
|
|
30839
31056
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30840
31057
|
zoneId: string(),
|
|
@@ -33773,12 +33990,24 @@ Object.freeze({
|
|
|
33773
33990
|
addonId: null,
|
|
33774
33991
|
access: "create"
|
|
33775
33992
|
},
|
|
33993
|
+
"nativeObjectDetection.getOptions": {
|
|
33994
|
+
capName: "native-object-detection",
|
|
33995
|
+
capScope: "device",
|
|
33996
|
+
addonId: null,
|
|
33997
|
+
access: "view"
|
|
33998
|
+
},
|
|
33776
33999
|
"nativeObjectDetection.setEnabled": {
|
|
33777
34000
|
capName: "native-object-detection",
|
|
33778
34001
|
capScope: "device",
|
|
33779
34002
|
addonId: null,
|
|
33780
34003
|
access: "create"
|
|
33781
34004
|
},
|
|
34005
|
+
"nativeObjectDetection.setSettings": {
|
|
34006
|
+
capName: "native-object-detection",
|
|
34007
|
+
capScope: "device",
|
|
34008
|
+
addonId: null,
|
|
34009
|
+
access: "create"
|
|
34010
|
+
},
|
|
33782
34011
|
"navigation.getFeatures": {
|
|
33783
34012
|
capName: "navigation",
|
|
33784
34013
|
capScope: "device",
|
|
@@ -34043,6 +34272,12 @@ Object.freeze({
|
|
|
34043
34272
|
addonId: null,
|
|
34044
34273
|
access: "view"
|
|
34045
34274
|
},
|
|
34275
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34276
|
+
capName: "notification-rules",
|
|
34277
|
+
capScope: "system",
|
|
34278
|
+
addonId: null,
|
|
34279
|
+
access: "view"
|
|
34280
|
+
},
|
|
34046
34281
|
"notificationRules.getConditionCatalog": {
|
|
34047
34282
|
capName: "notification-rules",
|
|
34048
34283
|
capScope: "system",
|
|
@@ -34553,6 +34788,12 @@ Object.freeze({
|
|
|
34553
34788
|
addonId: null,
|
|
34554
34789
|
access: "create"
|
|
34555
34790
|
},
|
|
34791
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34792
|
+
capName: "pipeline-analytics",
|
|
34793
|
+
capScope: "device",
|
|
34794
|
+
addonId: null,
|
|
34795
|
+
access: "view"
|
|
34796
|
+
},
|
|
34556
34797
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34557
34798
|
capName: "pipeline-analytics",
|
|
34558
34799
|
capScope: "device",
|
|
@@ -35225,6 +35466,12 @@ Object.freeze({
|
|
|
35225
35466
|
addonId: null,
|
|
35226
35467
|
access: "create"
|
|
35227
35468
|
},
|
|
35469
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35470
|
+
capName: "pipeline-runner",
|
|
35471
|
+
capScope: "system",
|
|
35472
|
+
addonId: null,
|
|
35473
|
+
access: "create"
|
|
35474
|
+
},
|
|
35228
35475
|
"pipelineRunner.runDetailSubtree": {
|
|
35229
35476
|
capName: "pipeline-runner",
|
|
35230
35477
|
capScope: "system",
|
|
@@ -38005,11 +38252,21 @@ Object.freeze({
|
|
|
38005
38252
|
form: "single",
|
|
38006
38253
|
optional: false
|
|
38007
38254
|
}],
|
|
38255
|
+
"nativeObjectDetection.getOptions": [{
|
|
38256
|
+
name: "deviceId",
|
|
38257
|
+
form: "single",
|
|
38258
|
+
optional: false
|
|
38259
|
+
}],
|
|
38008
38260
|
"nativeObjectDetection.setEnabled": [{
|
|
38009
38261
|
name: "deviceId",
|
|
38010
38262
|
form: "single",
|
|
38011
38263
|
optional: false
|
|
38012
38264
|
}],
|
|
38265
|
+
"nativeObjectDetection.setSettings": [{
|
|
38266
|
+
name: "deviceId",
|
|
38267
|
+
form: "single",
|
|
38268
|
+
optional: false
|
|
38269
|
+
}],
|
|
38013
38270
|
"navigation.getFeatures": [{
|
|
38014
38271
|
name: "deviceId",
|
|
38015
38272
|
form: "single",
|
|
@@ -38359,6 +38616,11 @@ Object.freeze({
|
|
|
38359
38616
|
form: "single",
|
|
38360
38617
|
optional: false
|
|
38361
38618
|
}],
|
|
38619
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38620
|
+
name: "deviceId",
|
|
38621
|
+
form: "single",
|
|
38622
|
+
optional: false
|
|
38623
|
+
}],
|
|
38362
38624
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38363
38625
|
name: "deviceId",
|
|
38364
38626
|
form: "single",
|
|
@@ -38549,6 +38811,11 @@ Object.freeze({
|
|
|
38549
38811
|
form: "single",
|
|
38550
38812
|
optional: false
|
|
38551
38813
|
}],
|
|
38814
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38815
|
+
name: "deviceId",
|
|
38816
|
+
form: "single",
|
|
38817
|
+
optional: false
|
|
38818
|
+
}],
|
|
38552
38819
|
"pipelineRunner.runDetailSubtree": [{
|
|
38553
38820
|
name: "deviceId",
|
|
38554
38821
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.107",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dev": "vite build --watch",
|
|
59
59
|
"typecheck": "tsc --noEmit",
|
|
60
60
|
"test": "vitest run",
|
|
61
|
-
"publish": "npm publish --access public"
|
|
61
|
+
"publish:npm": "npm publish --access public"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@camstack/types": "*"
|