@camstack/addon-export-google 0.1.66 → 0.1.67
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/export-google.addon.js +297 -30
- package/dist/export-google.addon.mjs +297 -30
- package/package.json +1 -1
|
@@ -5438,7 +5438,7 @@ var ZodIssueCode = {
|
|
|
5438
5438
|
var ZodFirstPartyTypeKind;
|
|
5439
5439
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5440
5440
|
//#endregion
|
|
5441
|
-
//#region ../types/dist/sleep-
|
|
5441
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5442
5442
|
/**
|
|
5443
5443
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5444
5444
|
* window to float samples (D455).
|
|
@@ -7319,6 +7319,28 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7319
7319
|
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
7320
7320
|
return DeviceRole;
|
|
7321
7321
|
}({});
|
|
7322
|
+
/**
|
|
7323
|
+
* Identity — preserves literal types for downstream inference.
|
|
7324
|
+
*
|
|
7325
|
+
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
7326
|
+
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
7327
|
+
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
7328
|
+
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
7329
|
+
* whose return type is already a `CustomActionSpec<...>`.
|
|
7330
|
+
*/
|
|
7331
|
+
function defineCustomActions(spec) {
|
|
7332
|
+
return spec;
|
|
7333
|
+
}
|
|
7334
|
+
function customAction(input, output, options) {
|
|
7335
|
+
return {
|
|
7336
|
+
input,
|
|
7337
|
+
output,
|
|
7338
|
+
kind: options?.kind ?? "query",
|
|
7339
|
+
auth: options?.auth ?? "protected",
|
|
7340
|
+
scope: options?.scope ?? { kind: "system" },
|
|
7341
|
+
...options?.caller ? { caller: "required" } : {}
|
|
7342
|
+
};
|
|
7343
|
+
}
|
|
7322
7344
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7323
7345
|
var VersionOutputSchema = object({ version: string() });
|
|
7324
7346
|
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
@@ -12637,28 +12659,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
12637
12659
|
content: string()
|
|
12638
12660
|
})) }), { auth: "admin" });
|
|
12639
12661
|
/**
|
|
12640
|
-
* Identity — preserves literal types for downstream inference.
|
|
12641
|
-
*
|
|
12642
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
12643
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
12644
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
12645
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
12646
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
12647
|
-
*/
|
|
12648
|
-
function defineCustomActions(spec) {
|
|
12649
|
-
return spec;
|
|
12650
|
-
}
|
|
12651
|
-
function customAction(input, output, options) {
|
|
12652
|
-
return {
|
|
12653
|
-
input,
|
|
12654
|
-
output,
|
|
12655
|
-
kind: options?.kind ?? "query",
|
|
12656
|
-
auth: options?.auth ?? "protected",
|
|
12657
|
-
scope: options?.scope ?? { kind: "system" },
|
|
12658
|
-
...options?.caller ? { caller: "required" } : {}
|
|
12659
|
-
};
|
|
12660
|
-
}
|
|
12661
|
-
/**
|
|
12662
12662
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
12663
12663
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
12664
12664
|
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
@@ -18098,6 +18098,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18098
18098
|
settings: NcAlarmSettingsSchema,
|
|
18099
18099
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18100
18100
|
});
|
|
18101
|
+
/**
|
|
18102
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18103
|
+
*
|
|
18104
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18105
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18106
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18107
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18108
|
+
* a different thing from never having been told, and only the envelope
|
|
18109
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18110
|
+
*/
|
|
18111
|
+
var NcClipRetentionAskSchema = object({
|
|
18112
|
+
/**
|
|
18113
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18114
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18115
|
+
* asking everywhere.
|
|
18116
|
+
*/
|
|
18117
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18118
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18119
|
+
* needs nothing produces no ask at all. */
|
|
18120
|
+
seconds: number().min(0).max(60),
|
|
18121
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18122
|
+
* assigned, which is what the cut defaults to. */
|
|
18123
|
+
profile: CamProfileSchema.optional(),
|
|
18124
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18125
|
+
ruleId: string(),
|
|
18126
|
+
ruleName: string(),
|
|
18127
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18128
|
+
reason: _enum(["window", "occupancy"])
|
|
18129
|
+
});
|
|
18130
|
+
/**
|
|
18131
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18132
|
+
*
|
|
18133
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18134
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18135
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18136
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18137
|
+
* footage this mechanism exists to keep.
|
|
18138
|
+
*/
|
|
18139
|
+
var NcClipRetentionPlanSchema = object({
|
|
18140
|
+
rulesLoaded: boolean(),
|
|
18141
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18142
|
+
});
|
|
18101
18143
|
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 }), {
|
|
18102
18144
|
kind: "mutation",
|
|
18103
18145
|
auth: "admin",
|
|
@@ -18118,7 +18160,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18118
18160
|
}), object({ success: literal(true) }), {
|
|
18119
18161
|
kind: "mutation",
|
|
18120
18162
|
auth: "admin"
|
|
18121
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18163
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18122
18164
|
deviceId: number().int(),
|
|
18123
18165
|
muted: boolean()
|
|
18124
18166
|
}), object({ success: literal(true) }), {
|
|
@@ -20668,6 +20710,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20668
20710
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20669
20711
|
framesMatched: number().int()
|
|
20670
20712
|
})).readonly() });
|
|
20713
|
+
/**
|
|
20714
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20715
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20716
|
+
* is an alias of this, not a second list.
|
|
20717
|
+
*/
|
|
20718
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20719
|
+
"motion",
|
|
20720
|
+
"audio-dbfs",
|
|
20721
|
+
"battery",
|
|
20722
|
+
"occupancy"
|
|
20723
|
+
]);
|
|
20724
|
+
/**
|
|
20725
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20726
|
+
*
|
|
20727
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20728
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20729
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20730
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20731
|
+
*/
|
|
20732
|
+
var LtsBucketSchema = object({
|
|
20733
|
+
scope: string(),
|
|
20734
|
+
bucketStart: number().int(),
|
|
20735
|
+
samples: number().int().nonnegative(),
|
|
20736
|
+
sum: number(),
|
|
20737
|
+
min: number(),
|
|
20738
|
+
max: number()
|
|
20739
|
+
});
|
|
20671
20740
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20672
20741
|
deviceId: number(),
|
|
20673
20742
|
trackId: string()
|
|
@@ -20714,6 +20783,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20714
20783
|
kinds: array(string()).optional(),
|
|
20715
20784
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20716
20785
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20786
|
+
deviceId: number(),
|
|
20787
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20788
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20789
|
+
scope: string().optional(),
|
|
20790
|
+
from: number(),
|
|
20791
|
+
to: number(),
|
|
20792
|
+
limit: number().int().positive().optional()
|
|
20793
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20717
20794
|
deviceId: number(),
|
|
20718
20795
|
since: number(),
|
|
20719
20796
|
until: number(),
|
|
@@ -21332,6 +21409,14 @@ var MotionSourceEnum = _enum([
|
|
|
21332
21409
|
*/
|
|
21333
21410
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21334
21411
|
/**
|
|
21412
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21413
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21414
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21415
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21416
|
+
* row.
|
|
21417
|
+
*/
|
|
21418
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21419
|
+
/**
|
|
21335
21420
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21336
21421
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21337
21422
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21482,6 +21567,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21482
21567
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21483
21568
|
*/
|
|
21484
21569
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21570
|
+
/**
|
|
21571
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21572
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21573
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21574
|
+
*
|
|
21575
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21576
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21577
|
+
* here. Its boxes reach post-analysis on the same
|
|
21578
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21579
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21580
|
+
* subtree (face / plate / embedding).
|
|
21581
|
+
*
|
|
21582
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21583
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21584
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21585
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21586
|
+
*
|
|
21587
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21588
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21589
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21590
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21591
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21592
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21593
|
+
*
|
|
21594
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21595
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21596
|
+
* default.
|
|
21597
|
+
*/
|
|
21598
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21485
21599
|
pipelineEnabled: boolean().default(true),
|
|
21486
21600
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21487
21601
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21663,7 +21777,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21663
21777
|
queueDepth: number(),
|
|
21664
21778
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21665
21779
|
});
|
|
21780
|
+
/**
|
|
21781
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21782
|
+
*
|
|
21783
|
+
* One instance per node. Receives camera assignments from
|
|
21784
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21785
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21786
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21787
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21788
|
+
* the bus.
|
|
21789
|
+
*
|
|
21790
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21791
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21792
|
+
* makes assignment decisions itself.
|
|
21793
|
+
*/
|
|
21794
|
+
/**
|
|
21795
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21796
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21797
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21798
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21799
|
+
*/
|
|
21800
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21801
|
+
"not-attached",
|
|
21802
|
+
"battery-asleep",
|
|
21803
|
+
"not-watching",
|
|
21804
|
+
"already-bursting"
|
|
21805
|
+
]);
|
|
21666
21806
|
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({
|
|
21807
|
+
deviceId: number(),
|
|
21808
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21809
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21810
|
+
frames: number().int().positive().optional(),
|
|
21811
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21812
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21813
|
+
reason: string()
|
|
21814
|
+
}), object({
|
|
21815
|
+
started: boolean(),
|
|
21816
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21817
|
+
}), {
|
|
21818
|
+
auth: "admin",
|
|
21819
|
+
kind: "mutation"
|
|
21820
|
+
}), method(object({
|
|
21667
21821
|
handle: FrameHandleSchema,
|
|
21668
21822
|
bbox: NativeCropBboxSchema,
|
|
21669
21823
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27144,7 +27298,7 @@ var NativeDetectionSchema = object({
|
|
|
27144
27298
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27145
27299
|
confidence: number().min(0).max(1).optional()
|
|
27146
27300
|
});
|
|
27147
|
-
object({
|
|
27301
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27148
27302
|
/**
|
|
27149
27303
|
* Last observed instance per class. Missing entries mean the class
|
|
27150
27304
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27161,14 +27315,56 @@ object({
|
|
|
27161
27315
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27162
27316
|
/**
|
|
27163
27317
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27164
|
-
*
|
|
27165
|
-
*
|
|
27318
|
+
*
|
|
27319
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27320
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27321
|
+
* other detection choice is made. `geometry` on
|
|
27322
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27323
|
+
* choice would buy this particular camera.
|
|
27166
27324
|
*/
|
|
27167
27325
|
enabled: boolean()
|
|
27168
|
-
})
|
|
27326
|
+
});
|
|
27327
|
+
/**
|
|
27328
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27329
|
+
*
|
|
27330
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27331
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27332
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27333
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27334
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27335
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27336
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27337
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27338
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27339
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27340
|
+
* tracker as motion and no further.
|
|
27341
|
+
*
|
|
27342
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27343
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27344
|
+
* derived form is only as honest as `getOptions`).
|
|
27345
|
+
*/
|
|
27346
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27347
|
+
"boxed",
|
|
27348
|
+
"while-streaming",
|
|
27349
|
+
"flag-only"
|
|
27350
|
+
]);
|
|
27351
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27352
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27353
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27354
|
+
/** What a detection from this camera carries. */
|
|
27355
|
+
geometry: NativeObjectGeometryEnum
|
|
27356
|
+
});
|
|
27357
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27358
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27169
27359
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27170
27360
|
lastFetchedAt: number() });
|
|
27171
|
-
DeviceType.Camera, method(object({
|
|
27361
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27362
|
+
deviceId: number(),
|
|
27363
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27364
|
+
}), _void(), {
|
|
27365
|
+
kind: "mutation",
|
|
27366
|
+
auth: "admin"
|
|
27367
|
+
}), method(object({
|
|
27172
27368
|
deviceId: number(),
|
|
27173
27369
|
enabled: boolean()
|
|
27174
27370
|
}), _void(), {
|
|
@@ -30974,7 +31170,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30974
31170
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30975
31171
|
totalObjects: number().int().nonnegative(),
|
|
30976
31172
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30977
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31173
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31174
|
+
/**
|
|
31175
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31176
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31177
|
+
*
|
|
31178
|
+
* The operator's question about a scene has two halves and they answer
|
|
31179
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31180
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31181
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31182
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31183
|
+
*
|
|
31184
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31185
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31186
|
+
*
|
|
31187
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31188
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31189
|
+
* parked objects here" about a camera whose lot is full.
|
|
31190
|
+
*/
|
|
31191
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31192
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31193
|
+
* same absence rule. */
|
|
31194
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30978
31195
|
});
|
|
30979
31196
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30980
31197
|
zoneId: string(),
|
|
@@ -33913,12 +34130,24 @@ Object.freeze({
|
|
|
33913
34130
|
addonId: null,
|
|
33914
34131
|
access: "create"
|
|
33915
34132
|
},
|
|
34133
|
+
"nativeObjectDetection.getOptions": {
|
|
34134
|
+
capName: "native-object-detection",
|
|
34135
|
+
capScope: "device",
|
|
34136
|
+
addonId: null,
|
|
34137
|
+
access: "view"
|
|
34138
|
+
},
|
|
33916
34139
|
"nativeObjectDetection.setEnabled": {
|
|
33917
34140
|
capName: "native-object-detection",
|
|
33918
34141
|
capScope: "device",
|
|
33919
34142
|
addonId: null,
|
|
33920
34143
|
access: "create"
|
|
33921
34144
|
},
|
|
34145
|
+
"nativeObjectDetection.setSettings": {
|
|
34146
|
+
capName: "native-object-detection",
|
|
34147
|
+
capScope: "device",
|
|
34148
|
+
addonId: null,
|
|
34149
|
+
access: "create"
|
|
34150
|
+
},
|
|
33922
34151
|
"navigation.getFeatures": {
|
|
33923
34152
|
capName: "navigation",
|
|
33924
34153
|
capScope: "device",
|
|
@@ -34183,6 +34412,12 @@ Object.freeze({
|
|
|
34183
34412
|
addonId: null,
|
|
34184
34413
|
access: "view"
|
|
34185
34414
|
},
|
|
34415
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34416
|
+
capName: "notification-rules",
|
|
34417
|
+
capScope: "system",
|
|
34418
|
+
addonId: null,
|
|
34419
|
+
access: "view"
|
|
34420
|
+
},
|
|
34186
34421
|
"notificationRules.getConditionCatalog": {
|
|
34187
34422
|
capName: "notification-rules",
|
|
34188
34423
|
capScope: "system",
|
|
@@ -34693,6 +34928,12 @@ Object.freeze({
|
|
|
34693
34928
|
addonId: null,
|
|
34694
34929
|
access: "create"
|
|
34695
34930
|
},
|
|
34931
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34932
|
+
capName: "pipeline-analytics",
|
|
34933
|
+
capScope: "device",
|
|
34934
|
+
addonId: null,
|
|
34935
|
+
access: "view"
|
|
34936
|
+
},
|
|
34696
34937
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34697
34938
|
capName: "pipeline-analytics",
|
|
34698
34939
|
capScope: "device",
|
|
@@ -35365,6 +35606,12 @@ Object.freeze({
|
|
|
35365
35606
|
addonId: null,
|
|
35366
35607
|
access: "create"
|
|
35367
35608
|
},
|
|
35609
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35610
|
+
capName: "pipeline-runner",
|
|
35611
|
+
capScope: "system",
|
|
35612
|
+
addonId: null,
|
|
35613
|
+
access: "create"
|
|
35614
|
+
},
|
|
35368
35615
|
"pipelineRunner.runDetailSubtree": {
|
|
35369
35616
|
capName: "pipeline-runner",
|
|
35370
35617
|
capScope: "system",
|
|
@@ -38145,11 +38392,21 @@ Object.freeze({
|
|
|
38145
38392
|
form: "single",
|
|
38146
38393
|
optional: false
|
|
38147
38394
|
}],
|
|
38395
|
+
"nativeObjectDetection.getOptions": [{
|
|
38396
|
+
name: "deviceId",
|
|
38397
|
+
form: "single",
|
|
38398
|
+
optional: false
|
|
38399
|
+
}],
|
|
38148
38400
|
"nativeObjectDetection.setEnabled": [{
|
|
38149
38401
|
name: "deviceId",
|
|
38150
38402
|
form: "single",
|
|
38151
38403
|
optional: false
|
|
38152
38404
|
}],
|
|
38405
|
+
"nativeObjectDetection.setSettings": [{
|
|
38406
|
+
name: "deviceId",
|
|
38407
|
+
form: "single",
|
|
38408
|
+
optional: false
|
|
38409
|
+
}],
|
|
38153
38410
|
"navigation.getFeatures": [{
|
|
38154
38411
|
name: "deviceId",
|
|
38155
38412
|
form: "single",
|
|
@@ -38499,6 +38756,11 @@ Object.freeze({
|
|
|
38499
38756
|
form: "single",
|
|
38500
38757
|
optional: false
|
|
38501
38758
|
}],
|
|
38759
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38760
|
+
name: "deviceId",
|
|
38761
|
+
form: "single",
|
|
38762
|
+
optional: false
|
|
38763
|
+
}],
|
|
38502
38764
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38503
38765
|
name: "deviceId",
|
|
38504
38766
|
form: "single",
|
|
@@ -38689,6 +38951,11 @@ Object.freeze({
|
|
|
38689
38951
|
form: "single",
|
|
38690
38952
|
optional: false
|
|
38691
38953
|
}],
|
|
38954
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38955
|
+
name: "deviceId",
|
|
38956
|
+
form: "single",
|
|
38957
|
+
optional: false
|
|
38958
|
+
}],
|
|
38692
38959
|
"pipelineRunner.runDetailSubtree": [{
|
|
38693
38960
|
name: "deviceId",
|
|
38694
38961
|
form: "single",
|
|
@@ -5434,7 +5434,7 @@ var ZodIssueCode = {
|
|
|
5434
5434
|
var ZodFirstPartyTypeKind;
|
|
5435
5435
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5436
5436
|
//#endregion
|
|
5437
|
-
//#region ../types/dist/sleep-
|
|
5437
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5438
5438
|
/**
|
|
5439
5439
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5440
5440
|
* window to float samples (D455).
|
|
@@ -7315,6 +7315,28 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7315
7315
|
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
7316
7316
|
return DeviceRole;
|
|
7317
7317
|
}({});
|
|
7318
|
+
/**
|
|
7319
|
+
* Identity — preserves literal types for downstream inference.
|
|
7320
|
+
*
|
|
7321
|
+
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
7322
|
+
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
7323
|
+
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
7324
|
+
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
7325
|
+
* whose return type is already a `CustomActionSpec<...>`.
|
|
7326
|
+
*/
|
|
7327
|
+
function defineCustomActions(spec) {
|
|
7328
|
+
return spec;
|
|
7329
|
+
}
|
|
7330
|
+
function customAction(input, output, options) {
|
|
7331
|
+
return {
|
|
7332
|
+
input,
|
|
7333
|
+
output,
|
|
7334
|
+
kind: options?.kind ?? "query",
|
|
7335
|
+
auth: options?.auth ?? "protected",
|
|
7336
|
+
scope: options?.scope ?? { kind: "system" },
|
|
7337
|
+
...options?.caller ? { caller: "required" } : {}
|
|
7338
|
+
};
|
|
7339
|
+
}
|
|
7318
7340
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7319
7341
|
var VersionOutputSchema = object({ version: string() });
|
|
7320
7342
|
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
@@ -12633,28 +12655,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
12633
12655
|
content: string()
|
|
12634
12656
|
})) }), { auth: "admin" });
|
|
12635
12657
|
/**
|
|
12636
|
-
* Identity — preserves literal types for downstream inference.
|
|
12637
|
-
*
|
|
12638
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
12639
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
12640
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
12641
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
12642
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
12643
|
-
*/
|
|
12644
|
-
function defineCustomActions(spec) {
|
|
12645
|
-
return spec;
|
|
12646
|
-
}
|
|
12647
|
-
function customAction(input, output, options) {
|
|
12648
|
-
return {
|
|
12649
|
-
input,
|
|
12650
|
-
output,
|
|
12651
|
-
kind: options?.kind ?? "query",
|
|
12652
|
-
auth: options?.auth ?? "protected",
|
|
12653
|
-
scope: options?.scope ?? { kind: "system" },
|
|
12654
|
-
...options?.caller ? { caller: "required" } : {}
|
|
12655
|
-
};
|
|
12656
|
-
}
|
|
12657
|
-
/**
|
|
12658
12658
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
12659
12659
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
12660
12660
|
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
@@ -18094,6 +18094,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18094
18094
|
settings: NcAlarmSettingsSchema,
|
|
18095
18095
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18096
18096
|
});
|
|
18097
|
+
/**
|
|
18098
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18099
|
+
*
|
|
18100
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18101
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18102
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18103
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18104
|
+
* a different thing from never having been told, and only the envelope
|
|
18105
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18106
|
+
*/
|
|
18107
|
+
var NcClipRetentionAskSchema = object({
|
|
18108
|
+
/**
|
|
18109
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18110
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18111
|
+
* asking everywhere.
|
|
18112
|
+
*/
|
|
18113
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18114
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18115
|
+
* needs nothing produces no ask at all. */
|
|
18116
|
+
seconds: number().min(0).max(60),
|
|
18117
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18118
|
+
* assigned, which is what the cut defaults to. */
|
|
18119
|
+
profile: CamProfileSchema.optional(),
|
|
18120
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18121
|
+
ruleId: string(),
|
|
18122
|
+
ruleName: string(),
|
|
18123
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18124
|
+
reason: _enum(["window", "occupancy"])
|
|
18125
|
+
});
|
|
18126
|
+
/**
|
|
18127
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18128
|
+
*
|
|
18129
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18130
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18131
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18132
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18133
|
+
* footage this mechanism exists to keep.
|
|
18134
|
+
*/
|
|
18135
|
+
var NcClipRetentionPlanSchema = object({
|
|
18136
|
+
rulesLoaded: boolean(),
|
|
18137
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18138
|
+
});
|
|
18097
18139
|
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 }), {
|
|
18098
18140
|
kind: "mutation",
|
|
18099
18141
|
auth: "admin",
|
|
@@ -18114,7 +18156,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18114
18156
|
}), object({ success: literal(true) }), {
|
|
18115
18157
|
kind: "mutation",
|
|
18116
18158
|
auth: "admin"
|
|
18117
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18159
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18118
18160
|
deviceId: number().int(),
|
|
18119
18161
|
muted: boolean()
|
|
18120
18162
|
}), object({ success: literal(true) }), {
|
|
@@ -20664,6 +20706,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20664
20706
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20665
20707
|
framesMatched: number().int()
|
|
20666
20708
|
})).readonly() });
|
|
20709
|
+
/**
|
|
20710
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20711
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20712
|
+
* is an alias of this, not a second list.
|
|
20713
|
+
*/
|
|
20714
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20715
|
+
"motion",
|
|
20716
|
+
"audio-dbfs",
|
|
20717
|
+
"battery",
|
|
20718
|
+
"occupancy"
|
|
20719
|
+
]);
|
|
20720
|
+
/**
|
|
20721
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20722
|
+
*
|
|
20723
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20724
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20725
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20726
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20727
|
+
*/
|
|
20728
|
+
var LtsBucketSchema = object({
|
|
20729
|
+
scope: string(),
|
|
20730
|
+
bucketStart: number().int(),
|
|
20731
|
+
samples: number().int().nonnegative(),
|
|
20732
|
+
sum: number(),
|
|
20733
|
+
min: number(),
|
|
20734
|
+
max: number()
|
|
20735
|
+
});
|
|
20667
20736
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20668
20737
|
deviceId: number(),
|
|
20669
20738
|
trackId: string()
|
|
@@ -20710,6 +20779,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20710
20779
|
kinds: array(string()).optional(),
|
|
20711
20780
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20712
20781
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20782
|
+
deviceId: number(),
|
|
20783
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20784
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20785
|
+
scope: string().optional(),
|
|
20786
|
+
from: number(),
|
|
20787
|
+
to: number(),
|
|
20788
|
+
limit: number().int().positive().optional()
|
|
20789
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20713
20790
|
deviceId: number(),
|
|
20714
20791
|
since: number(),
|
|
20715
20792
|
until: number(),
|
|
@@ -21328,6 +21405,14 @@ var MotionSourceEnum = _enum([
|
|
|
21328
21405
|
*/
|
|
21329
21406
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21330
21407
|
/**
|
|
21408
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21409
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21410
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21411
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21412
|
+
* row.
|
|
21413
|
+
*/
|
|
21414
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21415
|
+
/**
|
|
21331
21416
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21332
21417
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21333
21418
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21478,6 +21563,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21478
21563
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21479
21564
|
*/
|
|
21480
21565
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21566
|
+
/**
|
|
21567
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21568
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21569
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21570
|
+
*
|
|
21571
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21572
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21573
|
+
* here. Its boxes reach post-analysis on the same
|
|
21574
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21575
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21576
|
+
* subtree (face / plate / embedding).
|
|
21577
|
+
*
|
|
21578
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21579
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21580
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21581
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21582
|
+
*
|
|
21583
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21584
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21585
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21586
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21587
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21588
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21589
|
+
*
|
|
21590
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21591
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21592
|
+
* default.
|
|
21593
|
+
*/
|
|
21594
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21481
21595
|
pipelineEnabled: boolean().default(true),
|
|
21482
21596
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21483
21597
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21659,7 +21773,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21659
21773
|
queueDepth: number(),
|
|
21660
21774
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21661
21775
|
});
|
|
21776
|
+
/**
|
|
21777
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21778
|
+
*
|
|
21779
|
+
* One instance per node. Receives camera assignments from
|
|
21780
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21781
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21782
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21783
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21784
|
+
* the bus.
|
|
21785
|
+
*
|
|
21786
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21787
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21788
|
+
* makes assignment decisions itself.
|
|
21789
|
+
*/
|
|
21790
|
+
/**
|
|
21791
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21792
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21793
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21794
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21795
|
+
*/
|
|
21796
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21797
|
+
"not-attached",
|
|
21798
|
+
"battery-asleep",
|
|
21799
|
+
"not-watching",
|
|
21800
|
+
"already-bursting"
|
|
21801
|
+
]);
|
|
21662
21802
|
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({
|
|
21803
|
+
deviceId: number(),
|
|
21804
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21805
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21806
|
+
frames: number().int().positive().optional(),
|
|
21807
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21808
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21809
|
+
reason: string()
|
|
21810
|
+
}), object({
|
|
21811
|
+
started: boolean(),
|
|
21812
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21813
|
+
}), {
|
|
21814
|
+
auth: "admin",
|
|
21815
|
+
kind: "mutation"
|
|
21816
|
+
}), method(object({
|
|
21663
21817
|
handle: FrameHandleSchema,
|
|
21664
21818
|
bbox: NativeCropBboxSchema,
|
|
21665
21819
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27140,7 +27294,7 @@ var NativeDetectionSchema = object({
|
|
|
27140
27294
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27141
27295
|
confidence: number().min(0).max(1).optional()
|
|
27142
27296
|
});
|
|
27143
|
-
object({
|
|
27297
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27144
27298
|
/**
|
|
27145
27299
|
* Last observed instance per class. Missing entries mean the class
|
|
27146
27300
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27157,14 +27311,56 @@ object({
|
|
|
27157
27311
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27158
27312
|
/**
|
|
27159
27313
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27160
|
-
*
|
|
27161
|
-
*
|
|
27314
|
+
*
|
|
27315
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27316
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27317
|
+
* other detection choice is made. `geometry` on
|
|
27318
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27319
|
+
* choice would buy this particular camera.
|
|
27162
27320
|
*/
|
|
27163
27321
|
enabled: boolean()
|
|
27164
|
-
})
|
|
27322
|
+
});
|
|
27323
|
+
/**
|
|
27324
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27325
|
+
*
|
|
27326
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27327
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27328
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27329
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27330
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27331
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27332
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27333
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27334
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27335
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27336
|
+
* tracker as motion and no further.
|
|
27337
|
+
*
|
|
27338
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27339
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27340
|
+
* derived form is only as honest as `getOptions`).
|
|
27341
|
+
*/
|
|
27342
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27343
|
+
"boxed",
|
|
27344
|
+
"while-streaming",
|
|
27345
|
+
"flag-only"
|
|
27346
|
+
]);
|
|
27347
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27348
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27349
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27350
|
+
/** What a detection from this camera carries. */
|
|
27351
|
+
geometry: NativeObjectGeometryEnum
|
|
27352
|
+
});
|
|
27353
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27354
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27165
27355
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27166
27356
|
lastFetchedAt: number() });
|
|
27167
|
-
DeviceType.Camera, method(object({
|
|
27357
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27358
|
+
deviceId: number(),
|
|
27359
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27360
|
+
}), _void(), {
|
|
27361
|
+
kind: "mutation",
|
|
27362
|
+
auth: "admin"
|
|
27363
|
+
}), method(object({
|
|
27168
27364
|
deviceId: number(),
|
|
27169
27365
|
enabled: boolean()
|
|
27170
27366
|
}), _void(), {
|
|
@@ -30970,7 +31166,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30970
31166
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30971
31167
|
totalObjects: number().int().nonnegative(),
|
|
30972
31168
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30973
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31169
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31170
|
+
/**
|
|
31171
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31172
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31173
|
+
*
|
|
31174
|
+
* The operator's question about a scene has two halves and they answer
|
|
31175
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31176
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31177
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31178
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31179
|
+
*
|
|
31180
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31181
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31182
|
+
*
|
|
31183
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31184
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31185
|
+
* parked objects here" about a camera whose lot is full.
|
|
31186
|
+
*/
|
|
31187
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31188
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31189
|
+
* same absence rule. */
|
|
31190
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30974
31191
|
});
|
|
30975
31192
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30976
31193
|
zoneId: string(),
|
|
@@ -33909,12 +34126,24 @@ Object.freeze({
|
|
|
33909
34126
|
addonId: null,
|
|
33910
34127
|
access: "create"
|
|
33911
34128
|
},
|
|
34129
|
+
"nativeObjectDetection.getOptions": {
|
|
34130
|
+
capName: "native-object-detection",
|
|
34131
|
+
capScope: "device",
|
|
34132
|
+
addonId: null,
|
|
34133
|
+
access: "view"
|
|
34134
|
+
},
|
|
33912
34135
|
"nativeObjectDetection.setEnabled": {
|
|
33913
34136
|
capName: "native-object-detection",
|
|
33914
34137
|
capScope: "device",
|
|
33915
34138
|
addonId: null,
|
|
33916
34139
|
access: "create"
|
|
33917
34140
|
},
|
|
34141
|
+
"nativeObjectDetection.setSettings": {
|
|
34142
|
+
capName: "native-object-detection",
|
|
34143
|
+
capScope: "device",
|
|
34144
|
+
addonId: null,
|
|
34145
|
+
access: "create"
|
|
34146
|
+
},
|
|
33918
34147
|
"navigation.getFeatures": {
|
|
33919
34148
|
capName: "navigation",
|
|
33920
34149
|
capScope: "device",
|
|
@@ -34179,6 +34408,12 @@ Object.freeze({
|
|
|
34179
34408
|
addonId: null,
|
|
34180
34409
|
access: "view"
|
|
34181
34410
|
},
|
|
34411
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34412
|
+
capName: "notification-rules",
|
|
34413
|
+
capScope: "system",
|
|
34414
|
+
addonId: null,
|
|
34415
|
+
access: "view"
|
|
34416
|
+
},
|
|
34182
34417
|
"notificationRules.getConditionCatalog": {
|
|
34183
34418
|
capName: "notification-rules",
|
|
34184
34419
|
capScope: "system",
|
|
@@ -34689,6 +34924,12 @@ Object.freeze({
|
|
|
34689
34924
|
addonId: null,
|
|
34690
34925
|
access: "create"
|
|
34691
34926
|
},
|
|
34927
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34928
|
+
capName: "pipeline-analytics",
|
|
34929
|
+
capScope: "device",
|
|
34930
|
+
addonId: null,
|
|
34931
|
+
access: "view"
|
|
34932
|
+
},
|
|
34692
34933
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34693
34934
|
capName: "pipeline-analytics",
|
|
34694
34935
|
capScope: "device",
|
|
@@ -35361,6 +35602,12 @@ Object.freeze({
|
|
|
35361
35602
|
addonId: null,
|
|
35362
35603
|
access: "create"
|
|
35363
35604
|
},
|
|
35605
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35606
|
+
capName: "pipeline-runner",
|
|
35607
|
+
capScope: "system",
|
|
35608
|
+
addonId: null,
|
|
35609
|
+
access: "create"
|
|
35610
|
+
},
|
|
35364
35611
|
"pipelineRunner.runDetailSubtree": {
|
|
35365
35612
|
capName: "pipeline-runner",
|
|
35366
35613
|
capScope: "system",
|
|
@@ -38141,11 +38388,21 @@ Object.freeze({
|
|
|
38141
38388
|
form: "single",
|
|
38142
38389
|
optional: false
|
|
38143
38390
|
}],
|
|
38391
|
+
"nativeObjectDetection.getOptions": [{
|
|
38392
|
+
name: "deviceId",
|
|
38393
|
+
form: "single",
|
|
38394
|
+
optional: false
|
|
38395
|
+
}],
|
|
38144
38396
|
"nativeObjectDetection.setEnabled": [{
|
|
38145
38397
|
name: "deviceId",
|
|
38146
38398
|
form: "single",
|
|
38147
38399
|
optional: false
|
|
38148
38400
|
}],
|
|
38401
|
+
"nativeObjectDetection.setSettings": [{
|
|
38402
|
+
name: "deviceId",
|
|
38403
|
+
form: "single",
|
|
38404
|
+
optional: false
|
|
38405
|
+
}],
|
|
38149
38406
|
"navigation.getFeatures": [{
|
|
38150
38407
|
name: "deviceId",
|
|
38151
38408
|
form: "single",
|
|
@@ -38495,6 +38752,11 @@ Object.freeze({
|
|
|
38495
38752
|
form: "single",
|
|
38496
38753
|
optional: false
|
|
38497
38754
|
}],
|
|
38755
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38756
|
+
name: "deviceId",
|
|
38757
|
+
form: "single",
|
|
38758
|
+
optional: false
|
|
38759
|
+
}],
|
|
38498
38760
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38499
38761
|
name: "deviceId",
|
|
38500
38762
|
form: "single",
|
|
@@ -38685,6 +38947,11 @@ Object.freeze({
|
|
|
38685
38947
|
form: "single",
|
|
38686
38948
|
optional: false
|
|
38687
38949
|
}],
|
|
38950
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38951
|
+
name: "deviceId",
|
|
38952
|
+
form: "single",
|
|
38953
|
+
optional: false
|
|
38954
|
+
}],
|
|
38688
38955
|
"pipelineRunner.runDetailSubtree": [{
|
|
38689
38956
|
name: "deviceId",
|
|
38690
38957
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|