@camstack/addon-provider-reolink 1.2.26 → 1.2.28
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 +2756 -111
- package/dist/addon.mjs +2756 -111
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -26,7 +26,7 @@ let fs_promises = require("fs/promises");
|
|
|
26
26
|
fs_promises = require_chunk.__toESM(fs_promises, 1);
|
|
27
27
|
let node_os = require("node:os");
|
|
28
28
|
node_os = require_chunk.__toESM(node_os);
|
|
29
|
-
//#region ../types/dist/event-category-
|
|
29
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
30
30
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
31
31
|
EventCategory["SystemBoot"] = "system.boot";
|
|
32
32
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -233,6 +233,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
233
233
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
234
234
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
235
235
|
/**
|
|
236
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
237
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
238
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
239
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
240
|
+
* from the placement candidate set for as long as it holds.
|
|
241
|
+
*
|
|
242
|
+
* This exists because the state was previously invisible: little-unraid
|
|
243
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
244
|
+
* and nothing in the system said so.
|
|
245
|
+
*
|
|
246
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
247
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
248
|
+
* serves it exactly as before.
|
|
249
|
+
*/
|
|
250
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
251
|
+
/**
|
|
252
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
253
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
254
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
255
|
+
* per camera.
|
|
256
|
+
*
|
|
257
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
258
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
259
|
+
* camera" produce byte-identical silence.
|
|
260
|
+
*/
|
|
261
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
262
|
+
/**
|
|
236
263
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
237
264
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
238
265
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3024,6 +3051,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3024
3051
|
fallback: left.fallback
|
|
3025
3052
|
}, ctx);
|
|
3026
3053
|
}
|
|
3054
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3055
|
+
$ZodPipe.init(inst, def);
|
|
3056
|
+
});
|
|
3027
3057
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3028
3058
|
$ZodType.init(inst, def);
|
|
3029
3059
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5209,6 +5239,10 @@ function pipe(in_, out) {
|
|
|
5209
5239
|
out
|
|
5210
5240
|
});
|
|
5211
5241
|
}
|
|
5242
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5243
|
+
ZodPipe.init(inst, def);
|
|
5244
|
+
$ZodPreprocess.init(inst, def);
|
|
5245
|
+
});
|
|
5212
5246
|
var ZodReadonly$16 = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5213
5247
|
$ZodReadonly.init(inst, def);
|
|
5214
5248
|
ZodType$16.init(inst, def);
|
|
@@ -5267,6 +5301,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5267
5301
|
};
|
|
5268
5302
|
return inst;
|
|
5269
5303
|
}
|
|
5304
|
+
function preprocess(fn, schema) {
|
|
5305
|
+
return new ZodPreprocess({
|
|
5306
|
+
type: "pipe",
|
|
5307
|
+
in: transform(fn),
|
|
5308
|
+
out: schema
|
|
5309
|
+
});
|
|
5310
|
+
}
|
|
5270
5311
|
//#endregion
|
|
5271
5312
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5272
5313
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -12640,6 +12681,17 @@ var LlmImageSchema = object({
|
|
|
12640
12681
|
bytes: _instanceof(Uint8Array),
|
|
12641
12682
|
mimeType: string()
|
|
12642
12683
|
});
|
|
12684
|
+
/**
|
|
12685
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12686
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12687
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12688
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12689
|
+
*/
|
|
12690
|
+
var LlmRetryPolicySchema = object({
|
|
12691
|
+
enabled: boolean().default(false),
|
|
12692
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12693
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12694
|
+
});
|
|
12643
12695
|
var LlmGenerateBaseInputSchema = object({
|
|
12644
12696
|
/** Collection routing (the notification-output posture). */
|
|
12645
12697
|
addonId: string().optional(),
|
|
@@ -12654,7 +12706,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12654
12706
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12655
12707
|
/** Per-call override of the profile default. */
|
|
12656
12708
|
maxTokens: number().int().positive().optional(),
|
|
12657
|
-
temperature: number().optional()
|
|
12709
|
+
temperature: number().optional(),
|
|
12710
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12711
|
+
topP: number().min(0).max(1).optional(),
|
|
12712
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12713
|
+
topK: number().int().positive().optional(),
|
|
12714
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12715
|
+
timeoutMs: number().int().positive().optional(),
|
|
12716
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12717
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12718
|
+
/**
|
|
12719
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12720
|
+
*
|
|
12721
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12722
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12723
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12724
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12725
|
+
* not generations, and the real load is unbounded.
|
|
12726
|
+
*
|
|
12727
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12728
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12729
|
+
*/
|
|
12730
|
+
requestId: string().optional()
|
|
12658
12731
|
});
|
|
12659
12732
|
/**
|
|
12660
12733
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12667,6 +12740,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12667
12740
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12668
12741
|
* watchdog — operator decision #3).
|
|
12669
12742
|
*/
|
|
12743
|
+
/**
|
|
12744
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12745
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12746
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12747
|
+
* the preview is exactly what the node downloads.
|
|
12748
|
+
*/
|
|
12749
|
+
var ManagedModelExtraFileSchema = object({
|
|
12750
|
+
url: string(),
|
|
12751
|
+
filename: string(),
|
|
12752
|
+
sizeBytes: number(),
|
|
12753
|
+
sha256: string().optional()
|
|
12754
|
+
});
|
|
12670
12755
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12671
12756
|
object({
|
|
12672
12757
|
kind: literal("catalog"),
|
|
@@ -12675,7 +12760,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12675
12760
|
object({
|
|
12676
12761
|
kind: literal("url"),
|
|
12677
12762
|
url: string(),
|
|
12678
|
-
sha256: string().optional()
|
|
12763
|
+
sha256: string().optional(),
|
|
12764
|
+
/** Picker/status label; the file basename when absent. */
|
|
12765
|
+
label: string().optional(),
|
|
12766
|
+
sizeBytes: number().optional(),
|
|
12767
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12679
12768
|
}),
|
|
12680
12769
|
object({
|
|
12681
12770
|
kind: literal("path"),
|
|
@@ -12693,13 +12782,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12693
12782
|
gpuLayers: number().int().default(0),
|
|
12694
12783
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12695
12784
|
threads: number().int().optional(),
|
|
12696
|
-
/** Concurrent slots. */
|
|
12785
|
+
/** Concurrent slots (`--parallel`). */
|
|
12697
12786
|
parallel: number().int().default(1),
|
|
12787
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12788
|
+
batchSize: number().int().positive().optional(),
|
|
12789
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12790
|
+
ubatchSize: number().int().positive().optional(),
|
|
12791
|
+
/**
|
|
12792
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12793
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12794
|
+
*/
|
|
12795
|
+
flashAttention: boolean().default(false),
|
|
12796
|
+
/**
|
|
12797
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12798
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12799
|
+
* what the RAM budget is counting.
|
|
12800
|
+
*/
|
|
12801
|
+
mlock: boolean().default(false),
|
|
12802
|
+
/**
|
|
12803
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12804
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12805
|
+
* store produces on every first token.
|
|
12806
|
+
*/
|
|
12807
|
+
noMmap: boolean().default(false),
|
|
12808
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12809
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12810
|
+
cacheTypeK: _enum([
|
|
12811
|
+
"f32",
|
|
12812
|
+
"f16",
|
|
12813
|
+
"q8_0",
|
|
12814
|
+
"q5_1",
|
|
12815
|
+
"q5_0",
|
|
12816
|
+
"q4_1",
|
|
12817
|
+
"q4_0"
|
|
12818
|
+
]).optional(),
|
|
12819
|
+
cacheTypeV: _enum([
|
|
12820
|
+
"f32",
|
|
12821
|
+
"f16",
|
|
12822
|
+
"q8_0",
|
|
12823
|
+
"q5_1",
|
|
12824
|
+
"q5_0",
|
|
12825
|
+
"q4_1",
|
|
12826
|
+
"q4_0"
|
|
12827
|
+
]).optional(),
|
|
12828
|
+
/**
|
|
12829
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12830
|
+
* (which most vision chat templates need and some language-only models
|
|
12831
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12832
|
+
*
|
|
12833
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12834
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12835
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12836
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12837
|
+
* twice (D62).
|
|
12838
|
+
*/
|
|
12839
|
+
extraArgs: array(string()).default([]),
|
|
12698
12840
|
/** Else lazy: first generate boots it. */
|
|
12699
12841
|
autoStart: boolean().default(false),
|
|
12700
12842
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12701
12843
|
idleStopMinutes: number().int().default(30)
|
|
12702
12844
|
});
|
|
12845
|
+
/**
|
|
12846
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12847
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12848
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12849
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12850
|
+
*/
|
|
12851
|
+
var LlmDownloadProgressSchema = object({
|
|
12852
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12853
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12854
|
+
file: string(),
|
|
12855
|
+
fileIndex: number().int(),
|
|
12856
|
+
fileCount: number().int(),
|
|
12857
|
+
/** Across the WHOLE install, not the current file. */
|
|
12858
|
+
downloadedBytes: number(),
|
|
12859
|
+
totalBytes: number().optional()
|
|
12860
|
+
});
|
|
12703
12861
|
var LlmRuntimeStatusSchema = object({
|
|
12704
12862
|
/** Status is ALWAYS node-qualified. */
|
|
12705
12863
|
nodeId: string(),
|
|
@@ -12716,6 +12874,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12716
12874
|
modelPath: string().optional(),
|
|
12717
12875
|
modelId: string().optional(),
|
|
12718
12876
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12877
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12878
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12719
12879
|
lastError: string().optional(),
|
|
12720
12880
|
crashesInWindow: number(),
|
|
12721
12881
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12726,7 +12886,14 @@ var LlmNodeModelSchema = object({
|
|
|
12726
12886
|
file: string(),
|
|
12727
12887
|
sizeBytes: number(),
|
|
12728
12888
|
catalogId: string().optional(),
|
|
12729
|
-
installedAt: number().optional()
|
|
12889
|
+
installedAt: number().optional(),
|
|
12890
|
+
/**
|
|
12891
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12892
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12893
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12894
|
+
* it the picker could list such a file and do nothing with it.
|
|
12895
|
+
*/
|
|
12896
|
+
path: string().optional()
|
|
12730
12897
|
});
|
|
12731
12898
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12732
12899
|
nodeId: string(),
|
|
@@ -12782,10 +12949,47 @@ var LlmProfileSchema = object({
|
|
|
12782
12949
|
baseUrl: string().optional(),
|
|
12783
12950
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12784
12951
|
apiKey: string().optional(),
|
|
12952
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12953
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12954
|
+
* question about a picture nobody sent. */
|
|
12785
12955
|
supportsVision: boolean(),
|
|
12786
12956
|
temperature: number().min(0).max(2).optional(),
|
|
12957
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12958
|
+
topP: number().min(0).max(1).optional(),
|
|
12959
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12960
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12961
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12962
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12963
|
+
topK: number().int().positive().optional(),
|
|
12787
12964
|
maxTokens: number().int().positive().optional(),
|
|
12965
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12966
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12967
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12968
|
+
contextLength: number().int().positive().optional(),
|
|
12969
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12970
|
+
* two system prompts fighting is worse than either alone). */
|
|
12971
|
+
systemPrompt: string().optional(),
|
|
12972
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12788
12973
|
timeoutMs: number().int().positive().default(6e4),
|
|
12974
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12975
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12976
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12977
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12978
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12979
|
+
* GPU load is exactly what happens before them. */
|
|
12980
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12981
|
+
/** Output started then stopped. */
|
|
12982
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12983
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12984
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12985
|
+
retry: LlmRetryPolicySchema.default({
|
|
12986
|
+
enabled: false,
|
|
12987
|
+
maxAttempts: 1
|
|
12988
|
+
}),
|
|
12989
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12990
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12991
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12992
|
+
toolsEnabled: boolean().default(false),
|
|
12789
12993
|
extraHeaders: record(string(), string()).optional(),
|
|
12790
12994
|
/** kind === 'managed-local' only (spec §4). */
|
|
12791
12995
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12835,6 +13039,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12835
13039
|
/** Vision models: companion projector file. */
|
|
12836
13040
|
mmprojUrl: string().optional()
|
|
12837
13041
|
});
|
|
13042
|
+
/**
|
|
13043
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
13044
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
13045
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
13046
|
+
* exception.
|
|
13047
|
+
*
|
|
13048
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
13049
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
13050
|
+
*/
|
|
13051
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
13052
|
+
ok: literal(true),
|
|
13053
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
13054
|
+
model: ManagedModelRefSchema,
|
|
13055
|
+
label: string(),
|
|
13056
|
+
repo: string(),
|
|
13057
|
+
quantization: string(),
|
|
13058
|
+
purpose: _enum(["text", "vision"]),
|
|
13059
|
+
totalBytes: number(),
|
|
13060
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
13061
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
13062
|
+
extraFilenames: array(string())
|
|
13063
|
+
}), object({
|
|
13064
|
+
ok: literal(false),
|
|
13065
|
+
code: string(),
|
|
13066
|
+
message: string(),
|
|
13067
|
+
candidates: array(string()).optional(),
|
|
13068
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
13069
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
13070
|
+
requiredBytes: number().optional()
|
|
13071
|
+
})]);
|
|
12838
13072
|
var LlmRuntimeNodeSchema = object({
|
|
12839
13073
|
nodeId: string(),
|
|
12840
13074
|
reachable: boolean(),
|
|
@@ -12847,7 +13081,10 @@ var ProfileRefInputSchema = object({
|
|
|
12847
13081
|
addonId: string(),
|
|
12848
13082
|
profileId: string()
|
|
12849
13083
|
});
|
|
12850
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
13084
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
13085
|
+
addonId: string().optional(),
|
|
13086
|
+
requestId: string()
|
|
13087
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12851
13088
|
kind: "mutation",
|
|
12852
13089
|
auth: "admin"
|
|
12853
13090
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12868,6 +13105,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12868
13105
|
consumer: string().optional(),
|
|
12869
13106
|
profileId: string().optional()
|
|
12870
13107
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
13108
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
13109
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
13110
|
+
ref: string(),
|
|
13111
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
13112
|
+
maxBytes: number().positive().optional()
|
|
13113
|
+
}), HfModelResolutionSchema, {
|
|
13114
|
+
kind: "mutation",
|
|
13115
|
+
auth: "admin"
|
|
13116
|
+
}), method(object({
|
|
12871
13117
|
nodeId: string(),
|
|
12872
13118
|
model: ManagedModelRefSchema
|
|
12873
13119
|
}), _void(), {
|
|
@@ -14515,6 +14761,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14515
14761
|
"stream-offline",
|
|
14516
14762
|
"node-online",
|
|
14517
14763
|
"node-offline",
|
|
14764
|
+
"node-inference-unavailable",
|
|
14765
|
+
"detection-blind",
|
|
14518
14766
|
"addon-update-available",
|
|
14519
14767
|
"server-update-available",
|
|
14520
14768
|
"alarm-triggered",
|
|
@@ -14576,7 +14824,16 @@ var NcScheduleSchema = object({
|
|
|
14576
14824
|
});
|
|
14577
14825
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14578
14826
|
var NcPlateMatcherSchema = object({
|
|
14579
|
-
|
|
14827
|
+
/**
|
|
14828
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14829
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14830
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14831
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14832
|
+
*
|
|
14833
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14834
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14835
|
+
*/
|
|
14836
|
+
values: array(string().min(1)),
|
|
14580
14837
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14581
14838
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14582
14839
|
});
|
|
@@ -14610,28 +14867,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14610
14867
|
/**
|
|
14611
14868
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14612
14869
|
*
|
|
14613
|
-
*
|
|
14614
|
-
*
|
|
14615
|
-
*
|
|
14616
|
-
*
|
|
14617
|
-
*
|
|
14618
|
-
*
|
|
14619
|
-
*
|
|
14620
|
-
*
|
|
14621
|
-
*
|
|
14622
|
-
*
|
|
14623
|
-
*
|
|
14624
|
-
*
|
|
14625
|
-
*
|
|
14626
|
-
*
|
|
14627
|
-
*
|
|
14628
|
-
*
|
|
14629
|
-
*
|
|
14630
|
-
*
|
|
14631
|
-
*
|
|
14632
|
-
*
|
|
14633
|
-
*
|
|
14634
|
-
* `
|
|
14870
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14871
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14872
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14873
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14874
|
+
*
|
|
14875
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14876
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14877
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14878
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14879
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14880
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14881
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14882
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14883
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14884
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14885
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14886
|
+
* seconds is 100% of nothing.
|
|
14887
|
+
*
|
|
14888
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14889
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14890
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14891
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14892
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14893
|
+
* the wrong question to ask of a sparse classifier.
|
|
14894
|
+
*
|
|
14895
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14896
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14897
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14898
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14899
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14635
14900
|
*
|
|
14636
14901
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14637
14902
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14639,13 +14904,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14639
14904
|
* an operator who typed `dog` mean the same thing.
|
|
14640
14905
|
*/
|
|
14641
14906
|
var NcAudioConditionSchema = object({
|
|
14642
|
-
/**
|
|
14907
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14643
14908
|
labels: array(string().min(1)).min(1).optional(),
|
|
14644
|
-
/**
|
|
14909
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14645
14910
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14646
|
-
/**
|
|
14911
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14647
14912
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14648
|
-
/**
|
|
14913
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14649
14914
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14650
14915
|
});
|
|
14651
14916
|
/**
|
|
@@ -14783,13 +15048,81 @@ var NcRuleActionsSchema = object({
|
|
|
14783
15048
|
*/
|
|
14784
15049
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14785
15050
|
});
|
|
15051
|
+
/**
|
|
15052
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
15053
|
+
*
|
|
15054
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
15055
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
15056
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
15057
|
+
*
|
|
15058
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
15059
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
15060
|
+
*/
|
|
15061
|
+
var NcDeviceStateConditionSchema = object({
|
|
15062
|
+
deviceId: number().int(),
|
|
15063
|
+
/** Any of these matches. */
|
|
15064
|
+
states: array(string().min(1)).min(1)
|
|
15065
|
+
});
|
|
15066
|
+
/**
|
|
15067
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
15068
|
+
*
|
|
15069
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
15070
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
15071
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
15072
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
15073
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
15074
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
15075
|
+
* kind exist for it — see D159.
|
|
15076
|
+
*
|
|
15077
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
15078
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
15079
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
15080
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
15081
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
15082
|
+
*
|
|
15083
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
15084
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
15085
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
15086
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
15087
|
+
* override one rule against the scene's own default.
|
|
15088
|
+
*
|
|
15089
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
15090
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
15091
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
15092
|
+
* evidence, in either direction.
|
|
15093
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
15094
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
15095
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
15096
|
+
* reason the operator asked for a latch.
|
|
15097
|
+
*
|
|
15098
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
15099
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
15100
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
15101
|
+
* said out loud in the log rather than dropped in silence.
|
|
15102
|
+
*/
|
|
15103
|
+
var NcSceneConditionSchema = object({
|
|
15104
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
15105
|
+
sceneId: string().min(1),
|
|
15106
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
15107
|
+
deviceId: number().int().optional(),
|
|
15108
|
+
/** The state the scene must be in for the rule to fire. */
|
|
15109
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
15110
|
+
/**
|
|
15111
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
15112
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
15113
|
+
*/
|
|
15114
|
+
latched: boolean().optional()
|
|
15115
|
+
});
|
|
14786
15116
|
var NcConditionsSchema = object({
|
|
14787
15117
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14788
|
-
deviceState:
|
|
14789
|
-
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
15118
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
15119
|
+
/**
|
|
15120
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
15121
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
15122
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
15123
|
+
* {@link NcSceneCondition} and D159.
|
|
15124
|
+
*/
|
|
15125
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14793
15126
|
/** Device scope — absent = all devices. */
|
|
14794
15127
|
devices: array(number()).optional(),
|
|
14795
15128
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14815,18 +15148,47 @@ var NcConditionsSchema = object({
|
|
|
14815
15148
|
*/
|
|
14816
15149
|
labelEquals: array(string().min(1)).optional(),
|
|
14817
15150
|
/**
|
|
14818
|
-
*
|
|
14819
|
-
*
|
|
14820
|
-
*
|
|
15151
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
15152
|
+
* is about recognised people at all.
|
|
15153
|
+
*
|
|
15154
|
+
* Three states, and the empty one is the point:
|
|
15155
|
+
*
|
|
15156
|
+
* | value | meaning |
|
|
15157
|
+
* | --- | --- |
|
|
15158
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
15159
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
15160
|
+
* | a list | only these identities |
|
|
15161
|
+
*
|
|
15162
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
15163
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
15164
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
15165
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
15166
|
+
* with the list under it is worse than no switch (D62).
|
|
15167
|
+
*
|
|
15168
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
15169
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
15170
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
15171
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
15172
|
+
* `{{label}}` renders.
|
|
15173
|
+
*
|
|
15174
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
15175
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
15176
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
15177
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
15178
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14821
15179
|
*/
|
|
14822
15180
|
identities: array(string().min(1)).optional(),
|
|
14823
|
-
/**
|
|
15181
|
+
/**
|
|
15182
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
15183
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
15184
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
15185
|
+
*/
|
|
14824
15186
|
plates: NcPlateMatcherSchema.optional(),
|
|
14825
15187
|
/**
|
|
14826
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14827
|
-
*
|
|
14828
|
-
* identity
|
|
14829
|
-
*
|
|
15188
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
15189
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
15190
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
15191
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14830
15192
|
*/
|
|
14831
15193
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14832
15194
|
/**
|
|
@@ -15218,7 +15580,80 @@ var NcRuleInputSchema = object({
|
|
|
15218
15580
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15219
15581
|
* did, and absent is the only way to say that without a migration.
|
|
15220
15582
|
*/
|
|
15221
|
-
confirm: NcConfirmSchema.optional()
|
|
15583
|
+
confirm: NcConfirmSchema.optional(),
|
|
15584
|
+
/**
|
|
15585
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15586
|
+
*
|
|
15587
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15588
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15589
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15590
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15591
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15592
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15593
|
+
*
|
|
15594
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15595
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15596
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15597
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15598
|
+
*
|
|
15599
|
+
* | value | what happens |
|
|
15600
|
+
* | --- | --- |
|
|
15601
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15602
|
+
* | absent / `false` | it fires at once WITHOUT the name, and if recognition lands before the track closes a SECOND, "…is Gianluca" notification follows (one per track, per rule, per target) |
|
|
15603
|
+
*
|
|
15604
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15605
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15606
|
+
* rule authored before this field meant.
|
|
15607
|
+
*
|
|
15608
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15609
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15610
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15611
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15612
|
+
*/
|
|
15613
|
+
waitForEnhancement: boolean().optional(),
|
|
15614
|
+
/**
|
|
15615
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15616
|
+
*
|
|
15617
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15618
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15619
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15620
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15621
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15622
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15623
|
+
*
|
|
15624
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15625
|
+
*
|
|
15626
|
+
* ### Why an idle cutoff and not a window
|
|
15627
|
+
*
|
|
15628
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15629
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15630
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15631
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15632
|
+
*
|
|
15633
|
+
* ### What it replaces
|
|
15634
|
+
*
|
|
15635
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15636
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15637
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15638
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15639
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15640
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15641
|
+
* throttled by the window its own first member spent.
|
|
15642
|
+
*
|
|
15643
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15644
|
+
*
|
|
15645
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15646
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15647
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15648
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15649
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15650
|
+
* path. Neither combination fires twice for one subject.
|
|
15651
|
+
*
|
|
15652
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15653
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15654
|
+
* field existed.
|
|
15655
|
+
*/
|
|
15656
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15222
15657
|
});
|
|
15223
15658
|
/**
|
|
15224
15659
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15325,6 +15760,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15325
15760
|
"occupancy",
|
|
15326
15761
|
"audio",
|
|
15327
15762
|
"deviceState",
|
|
15763
|
+
"scene",
|
|
15328
15764
|
"systemEvent"
|
|
15329
15765
|
]),
|
|
15330
15766
|
operator: _enum([
|
|
@@ -15730,7 +16166,87 @@ var MethodAccessSchema = _enum([
|
|
|
15730
16166
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15731
16167
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15732
16168
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15733
|
-
|
|
16169
|
+
/**
|
|
16170
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
16171
|
+
*
|
|
16172
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
16173
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
16174
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
16175
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
16176
|
+
*
|
|
16177
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
16178
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
16179
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
16180
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
16181
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
16182
|
+
* is NOT covered until the grant is edited.
|
|
16183
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
16184
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
16185
|
+
* re-resolves on the next request.
|
|
16186
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
16187
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
16188
|
+
* null/unset location matches NO `locations` selector.
|
|
16189
|
+
*/
|
|
16190
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
16191
|
+
object({ kind: literal("all") }),
|
|
16192
|
+
object({
|
|
16193
|
+
kind: literal("ids"),
|
|
16194
|
+
ids: array(number().int()).min(1)
|
|
16195
|
+
}),
|
|
16196
|
+
object({
|
|
16197
|
+
kind: literal("types"),
|
|
16198
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16199
|
+
}),
|
|
16200
|
+
object({
|
|
16201
|
+
kind: literal("locations"),
|
|
16202
|
+
locations: array(string().min(1)).min(1)
|
|
16203
|
+
})
|
|
16204
|
+
]);
|
|
16205
|
+
var DeviceTokenScopeSchema = object({
|
|
16206
|
+
type: literal("device"),
|
|
16207
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16208
|
+
selector: DeviceSelectorSchema,
|
|
16209
|
+
access: array(MethodAccessSchema).min(1),
|
|
16210
|
+
/**
|
|
16211
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16212
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16213
|
+
* Direction is parent → children ONLY.
|
|
16214
|
+
*
|
|
16215
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16216
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16217
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16218
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16219
|
+
* explicitly to override that default per grant.
|
|
16220
|
+
*/
|
|
16221
|
+
includeLinked: boolean().optional()
|
|
16222
|
+
});
|
|
16223
|
+
/**
|
|
16224
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16225
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16226
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16227
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16228
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16229
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16230
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16231
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16232
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16233
|
+
*/
|
|
16234
|
+
function migrateLegacyTokenScope(raw) {
|
|
16235
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16236
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16237
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16238
|
+
const targets = Reflect.get(raw, "targets");
|
|
16239
|
+
if (!Array.isArray(targets)) return raw;
|
|
16240
|
+
return {
|
|
16241
|
+
type: "device",
|
|
16242
|
+
selector: {
|
|
16243
|
+
kind: "ids",
|
|
16244
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16245
|
+
},
|
|
16246
|
+
access: Reflect.get(raw, "access")
|
|
16247
|
+
};
|
|
16248
|
+
}
|
|
16249
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15734
16250
|
object({
|
|
15735
16251
|
type: literal("category"),
|
|
15736
16252
|
target: CapScopeSchema,
|
|
@@ -15746,18 +16262,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15746
16262
|
target: string(),
|
|
15747
16263
|
access: array(MethodAccessSchema).min(1)
|
|
15748
16264
|
}),
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
/**
|
|
15752
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15753
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15754
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15755
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15756
|
-
*/
|
|
15757
|
-
targets: array(string()).min(1),
|
|
15758
|
-
access: array(MethodAccessSchema).min(1)
|
|
15759
|
-
})
|
|
15760
|
-
]);
|
|
16265
|
+
DeviceTokenScopeSchema
|
|
16266
|
+
]));
|
|
15761
16267
|
object({
|
|
15762
16268
|
id: string(),
|
|
15763
16269
|
username: string(),
|
|
@@ -16074,7 +16580,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16074
16580
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16075
16581
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16076
16582
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16077
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16583
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16078
16584
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16079
16585
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16080
16586
|
* (`getObjectEvents` et al.).
|
|
@@ -16210,7 +16716,21 @@ union([literal(1), literal(2)]);
|
|
|
16210
16716
|
var LabelAttributionSchema = object({
|
|
16211
16717
|
stepId: string(),
|
|
16212
16718
|
modelId: string().optional(),
|
|
16213
|
-
decidedAt: number()
|
|
16719
|
+
decidedAt: number(),
|
|
16720
|
+
/**
|
|
16721
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16722
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16723
|
+
*
|
|
16724
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16725
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16726
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16727
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16728
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16729
|
+
*
|
|
16730
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16731
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16732
|
+
*/
|
|
16733
|
+
identityId: string().optional()
|
|
16214
16734
|
});
|
|
16215
16735
|
/**
|
|
16216
16736
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16347,6 +16867,28 @@ var TrackSchema = object({
|
|
|
16347
16867
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16348
16868
|
*/
|
|
16349
16869
|
hasFace: boolean().optional(),
|
|
16870
|
+
/**
|
|
16871
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16872
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16873
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16874
|
+
*
|
|
16875
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16876
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16877
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16878
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16879
|
+
* stop. This is the composition note that makes the row true.
|
|
16880
|
+
*
|
|
16881
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16882
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16883
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16884
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16885
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16886
|
+
*
|
|
16887
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16888
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16889
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16890
|
+
*/
|
|
16891
|
+
hasRider: boolean().optional(),
|
|
16350
16892
|
...TrackFlagFields,
|
|
16351
16893
|
...TrackRetrainFields
|
|
16352
16894
|
});
|
|
@@ -17782,6 +18324,17 @@ var maxSessionHoldMsField = {
|
|
|
17782
18324
|
default: 12e4,
|
|
17783
18325
|
step: 5e3
|
|
17784
18326
|
};
|
|
18327
|
+
/**
|
|
18328
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18329
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18330
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18331
|
+
*/
|
|
18332
|
+
var audioMotionWindowMsField = {
|
|
18333
|
+
min: 5e3,
|
|
18334
|
+
max: 6e5,
|
|
18335
|
+
default: 9e4,
|
|
18336
|
+
step: 5e3
|
|
18337
|
+
};
|
|
17785
18338
|
var motionFpsField = {
|
|
17786
18339
|
min: 1,
|
|
17787
18340
|
max: 30,
|
|
@@ -17813,7 +18366,7 @@ var detectionFpsField = {
|
|
|
17813
18366
|
var occupancyRecheckSecField = {
|
|
17814
18367
|
min: 0,
|
|
17815
18368
|
max: 300,
|
|
17816
|
-
default:
|
|
18369
|
+
default: 300,
|
|
17817
18370
|
step: 5
|
|
17818
18371
|
};
|
|
17819
18372
|
var occupancyRecheckFramesField = {
|
|
@@ -17958,6 +18511,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17958
18511
|
* resolved `CameraDetectionConfig`.
|
|
17959
18512
|
*/
|
|
17960
18513
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18514
|
+
/**
|
|
18515
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18516
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18517
|
+
*
|
|
18518
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18519
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18520
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18521
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18522
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18523
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18524
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18525
|
+
*
|
|
18526
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18527
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18528
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18529
|
+
*
|
|
18530
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18531
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18532
|
+
* `maxSessionHoldMs`.
|
|
18533
|
+
*/
|
|
18534
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17961
18535
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17962
18536
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17963
18537
|
motionStreamId: string(),
|
|
@@ -18053,7 +18627,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
18053
18627
|
*/
|
|
18054
18628
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
18055
18629
|
});
|
|
18056
|
-
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
18630
|
+
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
18057
18631
|
/**
|
|
18058
18632
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
18059
18633
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -23179,7 +23753,41 @@ var intercomCapability = {
|
|
|
23179
23753
|
status: {
|
|
23180
23754
|
schema: IntercomStatusSchema,
|
|
23181
23755
|
kind: "command-driven"
|
|
23182
|
-
}
|
|
23756
|
+
},
|
|
23757
|
+
/**
|
|
23758
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
23759
|
+
*
|
|
23760
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
23761
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
23762
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
23763
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
23764
|
+
* have been published and never received a value, which is the defect the
|
|
23765
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
23766
|
+
* `intercom` was excluded rather than exported.
|
|
23767
|
+
*
|
|
23768
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
23769
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
23770
|
+
* come to disagree. Providers write it through
|
|
23771
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
23772
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
23773
|
+
* the first session rather than after it.
|
|
23774
|
+
*
|
|
23775
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
23776
|
+
* session handle, so a session torn down by a transport death that never
|
|
23777
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
23778
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
23779
|
+
* `restored` — a restart must never restore "talking".
|
|
23780
|
+
*/
|
|
23781
|
+
runtimeState: IntercomStatusSchema,
|
|
23782
|
+
/**
|
|
23783
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
23784
|
+
* session, which by definition does not survive the process that held it.
|
|
23785
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
23786
|
+
*
|
|
23787
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23788
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23789
|
+
*/
|
|
23790
|
+
durability: "session"
|
|
23183
23791
|
};
|
|
23184
23792
|
/**
|
|
23185
23793
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
@@ -25964,7 +26572,7 @@ method(object({
|
|
|
25964
26572
|
toMs: number()
|
|
25965
26573
|
}), RecordingAvailabilitySchema, {
|
|
25966
26574
|
kind: "query",
|
|
25967
|
-
auth: "
|
|
26575
|
+
auth: "protected"
|
|
25968
26576
|
}), method(object({
|
|
25969
26577
|
deviceId: number(),
|
|
25970
26578
|
fromMs: number(),
|
|
@@ -25972,14 +26580,14 @@ method(object({
|
|
|
25972
26580
|
tzOffsetMinutes: number()
|
|
25973
26581
|
}), RecordingDaysSchema, {
|
|
25974
26582
|
kind: "query",
|
|
25975
|
-
auth: "
|
|
26583
|
+
auth: "protected"
|
|
25976
26584
|
}), method(object({
|
|
25977
26585
|
deviceId: number(),
|
|
25978
26586
|
fromMs: number(),
|
|
25979
26587
|
toMs: number()
|
|
25980
26588
|
}), RecordingManifestSchema, {
|
|
25981
26589
|
kind: "query",
|
|
25982
|
-
auth: "
|
|
26590
|
+
auth: "protected"
|
|
25983
26591
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
25984
26592
|
kind: "query",
|
|
25985
26593
|
auth: "admin"
|
|
@@ -26269,14 +26877,77 @@ method(object({
|
|
|
26269
26877
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
26270
26878
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
26271
26879
|
*
|
|
26272
|
-
*
|
|
26273
|
-
*
|
|
26274
|
-
*
|
|
26275
|
-
*
|
|
26276
|
-
|
|
26277
|
-
|
|
26278
|
-
*
|
|
26880
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
26881
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
26882
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
26883
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
26884
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
26885
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
26886
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
26887
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
26888
|
+
*
|
|
26889
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
26890
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
26891
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
26892
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
26893
|
+
*
|
|
26894
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
26895
|
+
* availability change; consumers never poll.
|
|
26896
|
+
*/
|
|
26897
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26898
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26899
|
+
* Open by design so more can be added without a wire break.
|
|
26900
|
+
*
|
|
26901
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26902
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26903
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26904
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
26279
26905
|
var SceneConditionSchema = string();
|
|
26906
|
+
/**
|
|
26907
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
26908
|
+
*
|
|
26909
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
26910
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
26911
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
26912
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
26913
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
26914
|
+
* working without it rather than degrading into a permanent complaint.
|
|
26915
|
+
*
|
|
26916
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
26917
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
26918
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
26919
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
26920
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
26921
|
+
* configuration choice instead of a nightly fault.
|
|
26922
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
26923
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
26924
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
26925
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
26926
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
26927
|
+
*
|
|
26928
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
26929
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
26930
|
+
* there would hide a scene the operator never finished setting up.
|
|
26931
|
+
*/
|
|
26932
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
26933
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26934
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26935
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26936
|
+
* and never counts toward hysteresis in either direction. */
|
|
26937
|
+
var SceneVerdictSchema = _enum([
|
|
26938
|
+
"matched",
|
|
26939
|
+
"diverged",
|
|
26940
|
+
"unknown"
|
|
26941
|
+
]);
|
|
26942
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26943
|
+
* silence that reads as "nothing has happened". */
|
|
26944
|
+
var SceneUnavailableSchema = _enum([
|
|
26945
|
+
"no-reference-for-condition",
|
|
26946
|
+
"view-shifted",
|
|
26947
|
+
"no-vision-profile",
|
|
26948
|
+
"encoder-model-changed",
|
|
26949
|
+
"no-snapshot"
|
|
26950
|
+
]);
|
|
26280
26951
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
26281
26952
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
26282
26953
|
var SceneReferenceSchema = object({
|
|
@@ -26284,7 +26955,14 @@ var SceneReferenceSchema = object({
|
|
|
26284
26955
|
modelId: string(),
|
|
26285
26956
|
condition: SceneConditionSchema,
|
|
26286
26957
|
capturedAt: number(),
|
|
26287
|
-
thumbnailMediaId: string().optional()
|
|
26958
|
+
thumbnailMediaId: string().optional(),
|
|
26959
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26960
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26961
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26962
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26963
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26964
|
+
* transition, not per poll. */
|
|
26965
|
+
anchorEmbedding: array(number()).optional()
|
|
26288
26966
|
});
|
|
26289
26967
|
var SceneMonitorStateSchema = object({
|
|
26290
26968
|
id: string(),
|
|
@@ -26306,6 +26984,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
26306
26984
|
profileId: string().optional(),
|
|
26307
26985
|
hysteresisCount: number().int().positive()
|
|
26308
26986
|
})]);
|
|
26987
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26988
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
26989
|
+
* out in silence rather than reporting a fault every night. */
|
|
26990
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
26991
|
+
/**
|
|
26992
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26993
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26994
|
+
*
|
|
26995
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26996
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26997
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26998
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26999
|
+
*/
|
|
27000
|
+
var SceneConfirmSchema = object({
|
|
27001
|
+
enabled: boolean().default(false),
|
|
27002
|
+
prompt: string().min(1).max(1e3),
|
|
27003
|
+
profileId: string().optional(),
|
|
27004
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
27005
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
27006
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
27007
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
27008
|
+
});
|
|
26309
27009
|
var SceneMonitorSchema = object({
|
|
26310
27010
|
id: string(),
|
|
26311
27011
|
label: string(),
|
|
@@ -26324,7 +27024,56 @@ var SceneMonitorSchema = object({
|
|
|
26324
27024
|
lastConfidence: number().nullable(),
|
|
26325
27025
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26326
27026
|
availability: _enum(["ok", "unavailable"]),
|
|
26327
|
-
unavailableReason: string().nullable()
|
|
27027
|
+
unavailableReason: string().nullable(),
|
|
27028
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
27029
|
+
baselineStateId: string().nullable(),
|
|
27030
|
+
/** Which boolean drives notification rules and any export. */
|
|
27031
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
27032
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
27033
|
+
verdict: SceneVerdictSchema,
|
|
27034
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
27035
|
+
latched: boolean(),
|
|
27036
|
+
/** Last reset (or creation). */
|
|
27037
|
+
armedAt: number(),
|
|
27038
|
+
divergedAt: number().nullable(),
|
|
27039
|
+
restoredAt: number().nullable(),
|
|
27040
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
27041
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
27042
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
27043
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
27044
|
+
/** An observation only advances the pending count when it is at least this
|
|
27045
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
27046
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
27047
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
27048
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
27049
|
+
confirm: SceneConfirmSchema.optional(),
|
|
27050
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
27051
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
27052
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
27053
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
27054
|
+
* automation can react to the bin coming back without the operator's own
|
|
27055
|
+
* alarm silently clearing itself. */
|
|
27056
|
+
autoRestore: boolean().default(false),
|
|
27057
|
+
/** What to do when the current light has no reference of its own. See
|
|
27058
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
27059
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
27060
|
+
/**
|
|
27061
|
+
* The light whose checks are currently being SAT OUT under
|
|
27062
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
27063
|
+
*
|
|
27064
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
27065
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
27066
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
27067
|
+
* line, because the alternative is a scene that silently stops answering
|
|
27068
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
27069
|
+
* read as a broken one.
|
|
27070
|
+
*/
|
|
27071
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
27072
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
27073
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
27074
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
27075
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
27076
|
+
coveredConditions: array(SceneConditionSchema)
|
|
26328
27077
|
});
|
|
26329
27078
|
var SceneMonitorStatusSchema = object({
|
|
26330
27079
|
monitors: array(SceneMonitorSchema),
|
|
@@ -26337,12 +27086,6 @@ var sceneMonitorCapability = {
|
|
|
26337
27086
|
kind: "wrapper",
|
|
26338
27087
|
defaultActive: true,
|
|
26339
27088
|
deviceTypes: [DeviceType.Camera],
|
|
26340
|
-
deviceConfig: { ui: {
|
|
26341
|
-
kind: "widget",
|
|
26342
|
-
widgetId: "host/scene-monitor-editor",
|
|
26343
|
-
tab: "scenes",
|
|
26344
|
-
label: "Scenes"
|
|
26345
|
-
} },
|
|
26346
27089
|
methods: {
|
|
26347
27090
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
26348
27091
|
createScene: method(object({
|
|
@@ -26373,7 +27116,15 @@ var sceneMonitorCapability = {
|
|
|
26373
27116
|
"both"
|
|
26374
27117
|
]).optional(),
|
|
26375
27118
|
checkIntervalSec: number().optional(),
|
|
26376
|
-
check: SceneCheckSchema.optional()
|
|
27119
|
+
check: SceneCheckSchema.optional(),
|
|
27120
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
27121
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
27122
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
27123
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
27124
|
+
autoRestore: boolean().optional(),
|
|
27125
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
27126
|
+
/** `null` clears the vision-model adjudicator. */
|
|
27127
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26377
27128
|
})
|
|
26378
27129
|
}), _void(), {
|
|
26379
27130
|
kind: "mutation",
|
|
@@ -26414,6 +27165,26 @@ var sceneMonitorCapability = {
|
|
|
26414
27165
|
}), _void(), {
|
|
26415
27166
|
kind: "mutation",
|
|
26416
27167
|
auth: "admin"
|
|
27168
|
+
}),
|
|
27169
|
+
/**
|
|
27170
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
27171
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
27172
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
27173
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
27174
|
+
* instead of failing silently weeks later.
|
|
27175
|
+
*
|
|
27176
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
27177
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
27178
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
27179
|
+
*/
|
|
27180
|
+
resetScene: method(object({
|
|
27181
|
+
deviceId: number(),
|
|
27182
|
+
monitorId: string(),
|
|
27183
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
27184
|
+
recapture: boolean().optional()
|
|
27185
|
+
}), _void(), {
|
|
27186
|
+
kind: "mutation",
|
|
27187
|
+
auth: "admin"
|
|
26417
27188
|
})
|
|
26418
27189
|
},
|
|
26419
27190
|
status: {
|
|
@@ -27115,12 +27886,64 @@ var NetworkAddressSchema = object({
|
|
|
27115
27886
|
family: string(),
|
|
27116
27887
|
internal: boolean()
|
|
27117
27888
|
});
|
|
27889
|
+
/**
|
|
27890
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
27891
|
+
* numbers.
|
|
27892
|
+
*
|
|
27893
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
27894
|
+
* nothing overwrites it.
|
|
27895
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
27896
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
27897
|
+
* the sun-times consumers otherwise fall back to.
|
|
27898
|
+
*
|
|
27899
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
27900
|
+
* own input will eventually trust the guess.
|
|
27901
|
+
*/
|
|
27902
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
27903
|
+
/**
|
|
27904
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
27905
|
+
*
|
|
27906
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
27907
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
27908
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
27909
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
27910
|
+
* coordinates or presses detect.
|
|
27911
|
+
*/
|
|
27912
|
+
var SiteLocationStatusSchema = object({
|
|
27913
|
+
location: object({
|
|
27914
|
+
/** WGS84 decimal degrees. */
|
|
27915
|
+
latitude: number().min(-90).max(90),
|
|
27916
|
+
longitude: number().min(-180).max(180),
|
|
27917
|
+
source: SiteLocationSourceSchema,
|
|
27918
|
+
/** Epoch ms the value was last written. */
|
|
27919
|
+
updatedAt: number(),
|
|
27920
|
+
/**
|
|
27921
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
27922
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
27923
|
+
*/
|
|
27924
|
+
label: string().optional()
|
|
27925
|
+
}).nullable(),
|
|
27926
|
+
derivationAttemptedAt: number().nullable(),
|
|
27927
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
27928
|
+
derivationError: string().nullable()
|
|
27929
|
+
});
|
|
27930
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
27931
|
+
var SetSiteLocationInputSchema = object({
|
|
27932
|
+
latitude: number().min(-90).max(90),
|
|
27933
|
+
longitude: number().min(-180).max(180)
|
|
27934
|
+
}).nullable();
|
|
27118
27935
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
27119
27936
|
kind: "mutation",
|
|
27120
27937
|
auth: "admin"
|
|
27121
27938
|
}), method(_void(), _void(), {
|
|
27122
27939
|
kind: "mutation",
|
|
27123
27940
|
auth: "admin"
|
|
27941
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
27942
|
+
kind: "mutation",
|
|
27943
|
+
auth: "admin"
|
|
27944
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
27945
|
+
kind: "mutation",
|
|
27946
|
+
auth: "admin"
|
|
27124
27947
|
});
|
|
27125
27948
|
/**
|
|
27126
27949
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -28455,6 +29278,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28455
29278
|
humiditySensor: humiditySensorCapability,
|
|
28456
29279
|
image: imageCapability,
|
|
28457
29280
|
imageSettings: imageSettingsCapability,
|
|
29281
|
+
intercom: intercomCapability,
|
|
28458
29282
|
lawnMowerControl: lawnMowerControlCapability,
|
|
28459
29283
|
lockControl: lockControlCapability,
|
|
28460
29284
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -29126,6 +29950,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29126
29950
|
labels: ["probe not implemented"]
|
|
29127
29951
|
};
|
|
29128
29952
|
}
|
|
29953
|
+
/**
|
|
29954
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
29955
|
+
*
|
|
29956
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
29957
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
29958
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
29959
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
29960
|
+
*/
|
|
29961
|
+
restoreConcurrency = 4;
|
|
29129
29962
|
async restoreDevices(savedDevices) {
|
|
29130
29963
|
await this.onRestoreDevices(savedDevices);
|
|
29131
29964
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -29157,15 +29990,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29157
29990
|
*/
|
|
29158
29991
|
async onRestoreDevices(savedDevices) {
|
|
29159
29992
|
const restored = /* @__PURE__ */ new Set();
|
|
29160
|
-
|
|
29161
|
-
|
|
29993
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
29994
|
+
const restoreOne = async (saved) => {
|
|
29162
29995
|
const Class = this.deviceClasses[saved.type];
|
|
29163
29996
|
if (!Class) {
|
|
29164
29997
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
29165
29998
|
tags: { stableId: saved.stableId },
|
|
29166
29999
|
meta: { type: saved.type }
|
|
29167
30000
|
});
|
|
29168
|
-
|
|
30001
|
+
return;
|
|
29169
30002
|
}
|
|
29170
30003
|
try {
|
|
29171
30004
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -29179,7 +30012,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29179
30012
|
}
|
|
29180
30013
|
});
|
|
29181
30014
|
}
|
|
29182
|
-
}
|
|
30015
|
+
};
|
|
30016
|
+
let nextTopLevel = 0;
|
|
30017
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
30018
|
+
for (;;) {
|
|
30019
|
+
const saved = topLevel[nextTopLevel++];
|
|
30020
|
+
if (saved === void 0) return;
|
|
30021
|
+
await restoreOne(saved);
|
|
30022
|
+
}
|
|
30023
|
+
}));
|
|
29183
30024
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
29184
30025
|
for (const saved of childRows) {
|
|
29185
30026
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -31335,6 +32176,12 @@ Object.freeze({
|
|
|
31335
32176
|
addonId: null,
|
|
31336
32177
|
access: "create"
|
|
31337
32178
|
},
|
|
32179
|
+
"llm.cancel": {
|
|
32180
|
+
capName: "llm",
|
|
32181
|
+
capScope: "system",
|
|
32182
|
+
addonId: null,
|
|
32183
|
+
access: "create"
|
|
32184
|
+
},
|
|
31338
32185
|
"llm.deleteModel": {
|
|
31339
32186
|
capName: "llm",
|
|
31340
32187
|
capScope: "system",
|
|
@@ -31419,6 +32266,12 @@ Object.freeze({
|
|
|
31419
32266
|
addonId: null,
|
|
31420
32267
|
access: "view"
|
|
31421
32268
|
},
|
|
32269
|
+
"llm.resolveModelRef": {
|
|
32270
|
+
capName: "llm",
|
|
32271
|
+
capScope: "system",
|
|
32272
|
+
addonId: null,
|
|
32273
|
+
access: "create"
|
|
32274
|
+
},
|
|
31422
32275
|
"llm.setDefault": {
|
|
31423
32276
|
capName: "llm",
|
|
31424
32277
|
capScope: "system",
|
|
@@ -33585,6 +34438,12 @@ Object.freeze({
|
|
|
33585
34438
|
addonId: null,
|
|
33586
34439
|
access: "create"
|
|
33587
34440
|
},
|
|
34441
|
+
"sceneMonitor.resetScene": {
|
|
34442
|
+
capName: "scene-monitor",
|
|
34443
|
+
capScope: "device",
|
|
34444
|
+
addonId: null,
|
|
34445
|
+
access: "delete"
|
|
34446
|
+
},
|
|
33588
34447
|
"sceneMonitor.updateScene": {
|
|
33589
34448
|
capName: "scene-monitor",
|
|
33590
34449
|
capScope: "device",
|
|
@@ -34263,6 +35122,12 @@ Object.freeze({
|
|
|
34263
35122
|
addonId: null,
|
|
34264
35123
|
access: "create"
|
|
34265
35124
|
},
|
|
35125
|
+
"system.detectSiteLocation": {
|
|
35126
|
+
capName: "system",
|
|
35127
|
+
capScope: "system",
|
|
35128
|
+
addonId: null,
|
|
35129
|
+
access: "create"
|
|
35130
|
+
},
|
|
34266
35131
|
"system.featureFlags": {
|
|
34267
35132
|
capName: "system",
|
|
34268
35133
|
capScope: "system",
|
|
@@ -34281,6 +35146,12 @@ Object.freeze({
|
|
|
34281
35146
|
addonId: null,
|
|
34282
35147
|
access: "view"
|
|
34283
35148
|
},
|
|
35149
|
+
"system.getSiteLocation": {
|
|
35150
|
+
capName: "system",
|
|
35151
|
+
capScope: "system",
|
|
35152
|
+
addonId: null,
|
|
35153
|
+
access: "view"
|
|
35154
|
+
},
|
|
34284
35155
|
"system.health": {
|
|
34285
35156
|
capName: "system",
|
|
34286
35157
|
capScope: "system",
|
|
@@ -34305,6 +35176,12 @@ Object.freeze({
|
|
|
34305
35176
|
addonId: null,
|
|
34306
35177
|
access: "create"
|
|
34307
35178
|
},
|
|
35179
|
+
"system.setSiteLocation": {
|
|
35180
|
+
capName: "system",
|
|
35181
|
+
capScope: "system",
|
|
35182
|
+
addonId: null,
|
|
35183
|
+
access: "create"
|
|
35184
|
+
},
|
|
34308
35185
|
"terminalSession.adoptLegacyMonitor": {
|
|
34309
35186
|
capName: "terminal-session",
|
|
34310
35187
|
capScope: "system",
|
|
@@ -34876,6 +35753,1683 @@ Object.freeze({
|
|
|
34876
35753
|
access: "create"
|
|
34877
35754
|
}
|
|
34878
35755
|
});
|
|
35756
|
+
Object.freeze({
|
|
35757
|
+
"accessories.setChildHidden": [{
|
|
35758
|
+
name: "childDeviceId",
|
|
35759
|
+
form: "single",
|
|
35760
|
+
optional: false
|
|
35761
|
+
}, {
|
|
35762
|
+
name: "deviceId",
|
|
35763
|
+
form: "single",
|
|
35764
|
+
optional: false
|
|
35765
|
+
}],
|
|
35766
|
+
"addonSettings.getDeviceSettings": [{
|
|
35767
|
+
name: "deviceId",
|
|
35768
|
+
form: "single",
|
|
35769
|
+
optional: false
|
|
35770
|
+
}],
|
|
35771
|
+
"addonSettings.updateDeviceSettings": [{
|
|
35772
|
+
name: "deviceId",
|
|
35773
|
+
form: "single",
|
|
35774
|
+
optional: false
|
|
35775
|
+
}],
|
|
35776
|
+
"alarmPanel.arm": [{
|
|
35777
|
+
name: "deviceId",
|
|
35778
|
+
form: "single",
|
|
35779
|
+
optional: false
|
|
35780
|
+
}],
|
|
35781
|
+
"alarmPanel.disarm": [{
|
|
35782
|
+
name: "deviceId",
|
|
35783
|
+
form: "single",
|
|
35784
|
+
optional: false
|
|
35785
|
+
}],
|
|
35786
|
+
"alarmPanel.trigger": [{
|
|
35787
|
+
name: "deviceId",
|
|
35788
|
+
form: "single",
|
|
35789
|
+
optional: false
|
|
35790
|
+
}],
|
|
35791
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
35792
|
+
name: "deviceId",
|
|
35793
|
+
form: "single",
|
|
35794
|
+
optional: false
|
|
35795
|
+
}],
|
|
35796
|
+
"audioAnalyzer.classify": [{
|
|
35797
|
+
name: "deviceId",
|
|
35798
|
+
form: "single",
|
|
35799
|
+
optional: true
|
|
35800
|
+
}],
|
|
35801
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
35802
|
+
name: "deviceId",
|
|
35803
|
+
form: "single",
|
|
35804
|
+
optional: false
|
|
35805
|
+
}],
|
|
35806
|
+
"audioMetrics.getHistory": [{
|
|
35807
|
+
name: "deviceId",
|
|
35808
|
+
form: "single",
|
|
35809
|
+
optional: false
|
|
35810
|
+
}],
|
|
35811
|
+
"automationControl.disable": [{
|
|
35812
|
+
name: "deviceId",
|
|
35813
|
+
form: "single",
|
|
35814
|
+
optional: false
|
|
35815
|
+
}],
|
|
35816
|
+
"automationControl.enable": [{
|
|
35817
|
+
name: "deviceId",
|
|
35818
|
+
form: "single",
|
|
35819
|
+
optional: false
|
|
35820
|
+
}],
|
|
35821
|
+
"automationControl.trigger": [{
|
|
35822
|
+
name: "deviceId",
|
|
35823
|
+
form: "single",
|
|
35824
|
+
optional: false
|
|
35825
|
+
}],
|
|
35826
|
+
"battery.wakeForStream": [{
|
|
35827
|
+
name: "deviceId",
|
|
35828
|
+
form: "single",
|
|
35829
|
+
optional: false
|
|
35830
|
+
}],
|
|
35831
|
+
"brightness.setBrightness": [{
|
|
35832
|
+
name: "deviceId",
|
|
35833
|
+
form: "single",
|
|
35834
|
+
optional: false
|
|
35835
|
+
}],
|
|
35836
|
+
"button.press": [{
|
|
35837
|
+
name: "deviceId",
|
|
35838
|
+
form: "single",
|
|
35839
|
+
optional: false
|
|
35840
|
+
}],
|
|
35841
|
+
"cameraCredentials.getCredentials": [{
|
|
35842
|
+
name: "deviceId",
|
|
35843
|
+
form: "single",
|
|
35844
|
+
optional: false
|
|
35845
|
+
}],
|
|
35846
|
+
"cameraStreams.getBrokerStreams": [{
|
|
35847
|
+
name: "deviceId",
|
|
35848
|
+
form: "single",
|
|
35849
|
+
optional: false
|
|
35850
|
+
}],
|
|
35851
|
+
"cameraStreams.getCameraStreams": [{
|
|
35852
|
+
name: "deviceId",
|
|
35853
|
+
form: "single",
|
|
35854
|
+
optional: false
|
|
35855
|
+
}],
|
|
35856
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
35857
|
+
name: "deviceId",
|
|
35858
|
+
form: "single",
|
|
35859
|
+
optional: false
|
|
35860
|
+
}],
|
|
35861
|
+
"cameraStreams.getRtspEntries": [{
|
|
35862
|
+
name: "deviceId",
|
|
35863
|
+
form: "single",
|
|
35864
|
+
optional: false
|
|
35865
|
+
}],
|
|
35866
|
+
"cameraStreams.pickStream": [{
|
|
35867
|
+
name: "deviceId",
|
|
35868
|
+
form: "single",
|
|
35869
|
+
optional: false
|
|
35870
|
+
}],
|
|
35871
|
+
"climateControl.setFanMode": [{
|
|
35872
|
+
name: "deviceId",
|
|
35873
|
+
form: "single",
|
|
35874
|
+
optional: false
|
|
35875
|
+
}],
|
|
35876
|
+
"climateControl.setMode": [{
|
|
35877
|
+
name: "deviceId",
|
|
35878
|
+
form: "single",
|
|
35879
|
+
optional: false
|
|
35880
|
+
}],
|
|
35881
|
+
"climateControl.setPreset": [{
|
|
35882
|
+
name: "deviceId",
|
|
35883
|
+
form: "single",
|
|
35884
|
+
optional: false
|
|
35885
|
+
}],
|
|
35886
|
+
"climateControl.setSwingHorizontal": [{
|
|
35887
|
+
name: "deviceId",
|
|
35888
|
+
form: "single",
|
|
35889
|
+
optional: false
|
|
35890
|
+
}],
|
|
35891
|
+
"climateControl.setSwingVertical": [{
|
|
35892
|
+
name: "deviceId",
|
|
35893
|
+
form: "single",
|
|
35894
|
+
optional: false
|
|
35895
|
+
}],
|
|
35896
|
+
"climateControl.setTarget": [{
|
|
35897
|
+
name: "deviceId",
|
|
35898
|
+
form: "single",
|
|
35899
|
+
optional: false
|
|
35900
|
+
}],
|
|
35901
|
+
"climateControl.setTargetHumidity": [{
|
|
35902
|
+
name: "deviceId",
|
|
35903
|
+
form: "single",
|
|
35904
|
+
optional: false
|
|
35905
|
+
}],
|
|
35906
|
+
"climateControl.setTargetRange": [{
|
|
35907
|
+
name: "deviceId",
|
|
35908
|
+
form: "single",
|
|
35909
|
+
optional: false
|
|
35910
|
+
}],
|
|
35911
|
+
"color.setColor": [{
|
|
35912
|
+
name: "deviceId",
|
|
35913
|
+
form: "single",
|
|
35914
|
+
optional: false
|
|
35915
|
+
}],
|
|
35916
|
+
"consumables.reset": [{
|
|
35917
|
+
name: "deviceId",
|
|
35918
|
+
form: "single",
|
|
35919
|
+
optional: false
|
|
35920
|
+
}],
|
|
35921
|
+
"control.setValue": [{
|
|
35922
|
+
name: "deviceId",
|
|
35923
|
+
form: "single",
|
|
35924
|
+
optional: false
|
|
35925
|
+
}],
|
|
35926
|
+
"cover.close": [{
|
|
35927
|
+
name: "deviceId",
|
|
35928
|
+
form: "single",
|
|
35929
|
+
optional: false
|
|
35930
|
+
}],
|
|
35931
|
+
"cover.open": [{
|
|
35932
|
+
name: "deviceId",
|
|
35933
|
+
form: "single",
|
|
35934
|
+
optional: false
|
|
35935
|
+
}],
|
|
35936
|
+
"cover.setPosition": [{
|
|
35937
|
+
name: "deviceId",
|
|
35938
|
+
form: "single",
|
|
35939
|
+
optional: false
|
|
35940
|
+
}],
|
|
35941
|
+
"cover.setTiltPosition": [{
|
|
35942
|
+
name: "deviceId",
|
|
35943
|
+
form: "single",
|
|
35944
|
+
optional: false
|
|
35945
|
+
}],
|
|
35946
|
+
"cover.stop": [{
|
|
35947
|
+
name: "deviceId",
|
|
35948
|
+
form: "single",
|
|
35949
|
+
optional: false
|
|
35950
|
+
}],
|
|
35951
|
+
"dayNight.getOptions": [{
|
|
35952
|
+
name: "deviceId",
|
|
35953
|
+
form: "single",
|
|
35954
|
+
optional: false
|
|
35955
|
+
}],
|
|
35956
|
+
"dayNight.setSettings": [{
|
|
35957
|
+
name: "deviceId",
|
|
35958
|
+
form: "single",
|
|
35959
|
+
optional: false
|
|
35960
|
+
}],
|
|
35961
|
+
"decoder.createSession": [{
|
|
35962
|
+
name: "deviceId",
|
|
35963
|
+
form: "single",
|
|
35964
|
+
optional: true
|
|
35965
|
+
}],
|
|
35966
|
+
"deviceAdoption.release": [{
|
|
35967
|
+
name: "camDeviceId",
|
|
35968
|
+
form: "single",
|
|
35969
|
+
optional: false
|
|
35970
|
+
}],
|
|
35971
|
+
"deviceAdoption.resync": [{
|
|
35972
|
+
name: "camDeviceId",
|
|
35973
|
+
form: "single",
|
|
35974
|
+
optional: false
|
|
35975
|
+
}],
|
|
35976
|
+
"deviceDiscovery.adoptDevice": [{
|
|
35977
|
+
name: "deviceId",
|
|
35978
|
+
form: "single",
|
|
35979
|
+
optional: false
|
|
35980
|
+
}],
|
|
35981
|
+
"deviceDiscovery.listDiscovered": [{
|
|
35982
|
+
name: "deviceId",
|
|
35983
|
+
form: "single",
|
|
35984
|
+
optional: false
|
|
35985
|
+
}],
|
|
35986
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
35987
|
+
name: "deviceId",
|
|
35988
|
+
form: "single",
|
|
35989
|
+
optional: false
|
|
35990
|
+
}],
|
|
35991
|
+
"deviceDiscovery.releaseDevice": [{
|
|
35992
|
+
name: "childDeviceId",
|
|
35993
|
+
form: "single",
|
|
35994
|
+
optional: false
|
|
35995
|
+
}, {
|
|
35996
|
+
name: "deviceId",
|
|
35997
|
+
form: "single",
|
|
35998
|
+
optional: false
|
|
35999
|
+
}],
|
|
36000
|
+
"deviceManager.adoptionRelease": [{
|
|
36001
|
+
name: "camDeviceId",
|
|
36002
|
+
form: "single",
|
|
36003
|
+
optional: false
|
|
36004
|
+
}],
|
|
36005
|
+
"deviceManager.adoptionResync": [{
|
|
36006
|
+
name: "camDeviceId",
|
|
36007
|
+
form: "single",
|
|
36008
|
+
optional: false
|
|
36009
|
+
}],
|
|
36010
|
+
"deviceManager.applyInitialMeta": [{
|
|
36011
|
+
name: "deviceId",
|
|
36012
|
+
form: "single",
|
|
36013
|
+
optional: false
|
|
36014
|
+
}, {
|
|
36015
|
+
name: "linkDeviceId",
|
|
36016
|
+
form: "single",
|
|
36017
|
+
optional: true
|
|
36018
|
+
}],
|
|
36019
|
+
"deviceManager.disable": [{
|
|
36020
|
+
name: "deviceId",
|
|
36021
|
+
form: "single",
|
|
36022
|
+
optional: false
|
|
36023
|
+
}],
|
|
36024
|
+
"deviceManager.enable": [{
|
|
36025
|
+
name: "deviceId",
|
|
36026
|
+
form: "single",
|
|
36027
|
+
optional: false
|
|
36028
|
+
}],
|
|
36029
|
+
"deviceManager.getBindings": [{
|
|
36030
|
+
name: "deviceId",
|
|
36031
|
+
form: "single",
|
|
36032
|
+
optional: false
|
|
36033
|
+
}],
|
|
36034
|
+
"deviceManager.getChildren": [{
|
|
36035
|
+
name: "parentDeviceId",
|
|
36036
|
+
form: "single",
|
|
36037
|
+
optional: false
|
|
36038
|
+
}],
|
|
36039
|
+
"deviceManager.getConfigSchema": [{
|
|
36040
|
+
name: "deviceId",
|
|
36041
|
+
form: "single",
|
|
36042
|
+
optional: false
|
|
36043
|
+
}],
|
|
36044
|
+
"deviceManager.getDevice": [{
|
|
36045
|
+
name: "deviceId",
|
|
36046
|
+
form: "single",
|
|
36047
|
+
optional: false
|
|
36048
|
+
}],
|
|
36049
|
+
"deviceManager.getDeviceAggregate": [{
|
|
36050
|
+
name: "deviceId",
|
|
36051
|
+
form: "single",
|
|
36052
|
+
optional: false
|
|
36053
|
+
}],
|
|
36054
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
36055
|
+
name: "deviceId",
|
|
36056
|
+
form: "single",
|
|
36057
|
+
optional: false
|
|
36058
|
+
}],
|
|
36059
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
36060
|
+
name: "deviceId",
|
|
36061
|
+
form: "single",
|
|
36062
|
+
optional: false
|
|
36063
|
+
}],
|
|
36064
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
36065
|
+
name: "deviceId",
|
|
36066
|
+
form: "single",
|
|
36067
|
+
optional: false
|
|
36068
|
+
}],
|
|
36069
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
36070
|
+
name: "deviceIds",
|
|
36071
|
+
form: "array",
|
|
36072
|
+
optional: false
|
|
36073
|
+
}],
|
|
36074
|
+
"deviceManager.getLinkedDevices": [{
|
|
36075
|
+
name: "deviceId",
|
|
36076
|
+
form: "single",
|
|
36077
|
+
optional: false
|
|
36078
|
+
}],
|
|
36079
|
+
"deviceManager.getSettingsSchema": [{
|
|
36080
|
+
name: "deviceId",
|
|
36081
|
+
form: "single",
|
|
36082
|
+
optional: false
|
|
36083
|
+
}],
|
|
36084
|
+
"deviceManager.getStreamProfileMap": [{
|
|
36085
|
+
name: "deviceId",
|
|
36086
|
+
form: "single",
|
|
36087
|
+
optional: false
|
|
36088
|
+
}],
|
|
36089
|
+
"deviceManager.getStreamSources": [{
|
|
36090
|
+
name: "deviceId",
|
|
36091
|
+
form: "single",
|
|
36092
|
+
optional: false
|
|
36093
|
+
}],
|
|
36094
|
+
"deviceManager.getWireableFields": [{
|
|
36095
|
+
name: "deviceId",
|
|
36096
|
+
form: "single",
|
|
36097
|
+
optional: false
|
|
36098
|
+
}],
|
|
36099
|
+
"deviceManager.loadConfig": [{
|
|
36100
|
+
name: "deviceId",
|
|
36101
|
+
form: "single",
|
|
36102
|
+
optional: false
|
|
36103
|
+
}],
|
|
36104
|
+
"deviceManager.loadMeta": [{
|
|
36105
|
+
name: "deviceId",
|
|
36106
|
+
form: "single",
|
|
36107
|
+
optional: false
|
|
36108
|
+
}],
|
|
36109
|
+
"deviceManager.loadRuntimeState": [{
|
|
36110
|
+
name: "deviceId",
|
|
36111
|
+
form: "single",
|
|
36112
|
+
optional: false
|
|
36113
|
+
}],
|
|
36114
|
+
"deviceManager.persistConfig": [{
|
|
36115
|
+
name: "deviceId",
|
|
36116
|
+
form: "single",
|
|
36117
|
+
optional: false
|
|
36118
|
+
}],
|
|
36119
|
+
"deviceManager.probeStreams": [{
|
|
36120
|
+
name: "deviceId",
|
|
36121
|
+
form: "single",
|
|
36122
|
+
optional: false
|
|
36123
|
+
}],
|
|
36124
|
+
"deviceManager.registerDevice": [{
|
|
36125
|
+
name: "parentDeviceId",
|
|
36126
|
+
form: "single",
|
|
36127
|
+
optional: true
|
|
36128
|
+
}],
|
|
36129
|
+
"deviceManager.remove": [{
|
|
36130
|
+
name: "deviceId",
|
|
36131
|
+
form: "single",
|
|
36132
|
+
optional: false
|
|
36133
|
+
}],
|
|
36134
|
+
"deviceManager.removeDevice": [{
|
|
36135
|
+
name: "deviceId",
|
|
36136
|
+
form: "single",
|
|
36137
|
+
optional: false
|
|
36138
|
+
}],
|
|
36139
|
+
"deviceManager.runDeviceAction": [{
|
|
36140
|
+
name: "deviceId",
|
|
36141
|
+
form: "single",
|
|
36142
|
+
optional: false
|
|
36143
|
+
}],
|
|
36144
|
+
"deviceManager.setChildLayout": [{
|
|
36145
|
+
name: "deviceId",
|
|
36146
|
+
form: "single",
|
|
36147
|
+
optional: false
|
|
36148
|
+
}],
|
|
36149
|
+
"deviceManager.setDisabled": [{
|
|
36150
|
+
name: "deviceId",
|
|
36151
|
+
form: "single",
|
|
36152
|
+
optional: false
|
|
36153
|
+
}],
|
|
36154
|
+
"deviceManager.setDisplay": [{
|
|
36155
|
+
name: "deviceId",
|
|
36156
|
+
form: "single",
|
|
36157
|
+
optional: false
|
|
36158
|
+
}],
|
|
36159
|
+
"deviceManager.setIntegrationId": [{
|
|
36160
|
+
name: "deviceId",
|
|
36161
|
+
form: "single",
|
|
36162
|
+
optional: false
|
|
36163
|
+
}],
|
|
36164
|
+
"deviceManager.setLinkDeviceId": [{
|
|
36165
|
+
name: "deviceId",
|
|
36166
|
+
form: "single",
|
|
36167
|
+
optional: false
|
|
36168
|
+
}, {
|
|
36169
|
+
name: "linkDeviceId",
|
|
36170
|
+
form: "single",
|
|
36171
|
+
optional: true
|
|
36172
|
+
}],
|
|
36173
|
+
"deviceManager.setLocation": [{
|
|
36174
|
+
name: "deviceId",
|
|
36175
|
+
form: "single",
|
|
36176
|
+
optional: false
|
|
36177
|
+
}],
|
|
36178
|
+
"deviceManager.setMetadata": [{
|
|
36179
|
+
name: "deviceId",
|
|
36180
|
+
form: "single",
|
|
36181
|
+
optional: false
|
|
36182
|
+
}],
|
|
36183
|
+
"deviceManager.setName": [{
|
|
36184
|
+
name: "deviceId",
|
|
36185
|
+
form: "single",
|
|
36186
|
+
optional: false
|
|
36187
|
+
}],
|
|
36188
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
36189
|
+
name: "deviceId",
|
|
36190
|
+
form: "single",
|
|
36191
|
+
optional: false
|
|
36192
|
+
}],
|
|
36193
|
+
"deviceManager.setRole": [{
|
|
36194
|
+
name: "deviceId",
|
|
36195
|
+
form: "single",
|
|
36196
|
+
optional: false
|
|
36197
|
+
}],
|
|
36198
|
+
"deviceManager.setStreamProfileMap": [{
|
|
36199
|
+
name: "deviceId",
|
|
36200
|
+
form: "single",
|
|
36201
|
+
optional: false
|
|
36202
|
+
}],
|
|
36203
|
+
"deviceManager.setType": [{
|
|
36204
|
+
name: "deviceId",
|
|
36205
|
+
form: "single",
|
|
36206
|
+
optional: false
|
|
36207
|
+
}],
|
|
36208
|
+
"deviceManager.setWrapperActive": [{
|
|
36209
|
+
name: "deviceId",
|
|
36210
|
+
form: "single",
|
|
36211
|
+
optional: false
|
|
36212
|
+
}],
|
|
36213
|
+
"deviceManager.testField": [{
|
|
36214
|
+
name: "deviceId",
|
|
36215
|
+
form: "single",
|
|
36216
|
+
optional: false
|
|
36217
|
+
}],
|
|
36218
|
+
"deviceManager.updateConfig": [{
|
|
36219
|
+
name: "deviceId",
|
|
36220
|
+
form: "single",
|
|
36221
|
+
optional: false
|
|
36222
|
+
}],
|
|
36223
|
+
"deviceManager.updateDeviceField": [{
|
|
36224
|
+
name: "deviceId",
|
|
36225
|
+
form: "single",
|
|
36226
|
+
optional: false
|
|
36227
|
+
}],
|
|
36228
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
36229
|
+
name: "deviceId",
|
|
36230
|
+
form: "single",
|
|
36231
|
+
optional: false
|
|
36232
|
+
}],
|
|
36233
|
+
"deviceOps.getConfigEntries": [{
|
|
36234
|
+
name: "deviceId",
|
|
36235
|
+
form: "single",
|
|
36236
|
+
optional: false
|
|
36237
|
+
}],
|
|
36238
|
+
"deviceOps.getRawState": [{
|
|
36239
|
+
name: "deviceId",
|
|
36240
|
+
form: "single",
|
|
36241
|
+
optional: false
|
|
36242
|
+
}],
|
|
36243
|
+
"deviceOps.getSettingsSchema": [{
|
|
36244
|
+
name: "deviceId",
|
|
36245
|
+
form: "single",
|
|
36246
|
+
optional: false
|
|
36247
|
+
}],
|
|
36248
|
+
"deviceOps.getStreamSources": [{
|
|
36249
|
+
name: "deviceId",
|
|
36250
|
+
form: "single",
|
|
36251
|
+
optional: false
|
|
36252
|
+
}],
|
|
36253
|
+
"deviceOps.removeDevice": [{
|
|
36254
|
+
name: "deviceId",
|
|
36255
|
+
form: "single",
|
|
36256
|
+
optional: false
|
|
36257
|
+
}],
|
|
36258
|
+
"deviceOps.runAction": [{
|
|
36259
|
+
name: "deviceId",
|
|
36260
|
+
form: "single",
|
|
36261
|
+
optional: false
|
|
36262
|
+
}],
|
|
36263
|
+
"deviceOps.setConfig": [{
|
|
36264
|
+
name: "deviceId",
|
|
36265
|
+
form: "single",
|
|
36266
|
+
optional: false
|
|
36267
|
+
}],
|
|
36268
|
+
"deviceState.getCapSlice": [{
|
|
36269
|
+
name: "deviceId",
|
|
36270
|
+
form: "single",
|
|
36271
|
+
optional: false
|
|
36272
|
+
}],
|
|
36273
|
+
"deviceState.getSnapshot": [{
|
|
36274
|
+
name: "deviceId",
|
|
36275
|
+
form: "single",
|
|
36276
|
+
optional: false
|
|
36277
|
+
}],
|
|
36278
|
+
"deviceState.setCapSlice": [{
|
|
36279
|
+
name: "deviceId",
|
|
36280
|
+
form: "single",
|
|
36281
|
+
optional: false
|
|
36282
|
+
}],
|
|
36283
|
+
"events.getEventClipUrl": [{
|
|
36284
|
+
name: "deviceId",
|
|
36285
|
+
form: "single",
|
|
36286
|
+
optional: false
|
|
36287
|
+
}],
|
|
36288
|
+
"events.getEvents": [{
|
|
36289
|
+
name: "deviceId",
|
|
36290
|
+
form: "single",
|
|
36291
|
+
optional: false
|
|
36292
|
+
}],
|
|
36293
|
+
"events.getEventThumbnail": [{
|
|
36294
|
+
name: "deviceId",
|
|
36295
|
+
form: "single",
|
|
36296
|
+
optional: false
|
|
36297
|
+
}],
|
|
36298
|
+
"faceGallery.getFaceByTrack": [{
|
|
36299
|
+
name: "deviceId",
|
|
36300
|
+
form: "single",
|
|
36301
|
+
optional: false
|
|
36302
|
+
}],
|
|
36303
|
+
"faceGallery.listRecentFaces": [{
|
|
36304
|
+
name: "deviceId",
|
|
36305
|
+
form: "single",
|
|
36306
|
+
optional: true
|
|
36307
|
+
}],
|
|
36308
|
+
"fanControl.setDirection": [{
|
|
36309
|
+
name: "deviceId",
|
|
36310
|
+
form: "single",
|
|
36311
|
+
optional: false
|
|
36312
|
+
}],
|
|
36313
|
+
"fanControl.setOscillating": [{
|
|
36314
|
+
name: "deviceId",
|
|
36315
|
+
form: "single",
|
|
36316
|
+
optional: false
|
|
36317
|
+
}],
|
|
36318
|
+
"fanControl.setPercentage": [{
|
|
36319
|
+
name: "deviceId",
|
|
36320
|
+
form: "single",
|
|
36321
|
+
optional: false
|
|
36322
|
+
}],
|
|
36323
|
+
"fanControl.setPreset": [{
|
|
36324
|
+
name: "deviceId",
|
|
36325
|
+
form: "single",
|
|
36326
|
+
optional: false
|
|
36327
|
+
}],
|
|
36328
|
+
"humidifier.setMode": [{
|
|
36329
|
+
name: "deviceId",
|
|
36330
|
+
form: "single",
|
|
36331
|
+
optional: false
|
|
36332
|
+
}],
|
|
36333
|
+
"humidifier.setOn": [{
|
|
36334
|
+
name: "deviceId",
|
|
36335
|
+
form: "single",
|
|
36336
|
+
optional: false
|
|
36337
|
+
}],
|
|
36338
|
+
"humidifier.setTargetHumidity": [{
|
|
36339
|
+
name: "deviceId",
|
|
36340
|
+
form: "single",
|
|
36341
|
+
optional: false
|
|
36342
|
+
}],
|
|
36343
|
+
"imageSettings.getOptions": [{
|
|
36344
|
+
name: "deviceId",
|
|
36345
|
+
form: "single",
|
|
36346
|
+
optional: false
|
|
36347
|
+
}],
|
|
36348
|
+
"imageSettings.setSettings": [{
|
|
36349
|
+
name: "deviceId",
|
|
36350
|
+
form: "single",
|
|
36351
|
+
optional: false
|
|
36352
|
+
}],
|
|
36353
|
+
"intercom.endTalkSession": [{
|
|
36354
|
+
name: "deviceId",
|
|
36355
|
+
form: "single",
|
|
36356
|
+
optional: false
|
|
36357
|
+
}],
|
|
36358
|
+
"intercom.handleAnswer": [{
|
|
36359
|
+
name: "deviceId",
|
|
36360
|
+
form: "single",
|
|
36361
|
+
optional: false
|
|
36362
|
+
}],
|
|
36363
|
+
"intercom.pushTalkAudio": [{
|
|
36364
|
+
name: "deviceId",
|
|
36365
|
+
form: "single",
|
|
36366
|
+
optional: false
|
|
36367
|
+
}],
|
|
36368
|
+
"intercom.startSession": [{
|
|
36369
|
+
name: "deviceId",
|
|
36370
|
+
form: "single",
|
|
36371
|
+
optional: false
|
|
36372
|
+
}],
|
|
36373
|
+
"intercom.startTalkSession": [{
|
|
36374
|
+
name: "deviceId",
|
|
36375
|
+
form: "single",
|
|
36376
|
+
optional: false
|
|
36377
|
+
}],
|
|
36378
|
+
"intercom.stopSession": [{
|
|
36379
|
+
name: "deviceId",
|
|
36380
|
+
form: "single",
|
|
36381
|
+
optional: false
|
|
36382
|
+
}],
|
|
36383
|
+
"lawnMowerControl.dock": [{
|
|
36384
|
+
name: "deviceId",
|
|
36385
|
+
form: "single",
|
|
36386
|
+
optional: false
|
|
36387
|
+
}],
|
|
36388
|
+
"lawnMowerControl.pause": [{
|
|
36389
|
+
name: "deviceId",
|
|
36390
|
+
form: "single",
|
|
36391
|
+
optional: false
|
|
36392
|
+
}],
|
|
36393
|
+
"lawnMowerControl.startMowing": [{
|
|
36394
|
+
name: "deviceId",
|
|
36395
|
+
form: "single",
|
|
36396
|
+
optional: false
|
|
36397
|
+
}],
|
|
36398
|
+
"lockControl.lock": [{
|
|
36399
|
+
name: "deviceId",
|
|
36400
|
+
form: "single",
|
|
36401
|
+
optional: false
|
|
36402
|
+
}],
|
|
36403
|
+
"lockControl.open": [{
|
|
36404
|
+
name: "deviceId",
|
|
36405
|
+
form: "single",
|
|
36406
|
+
optional: false
|
|
36407
|
+
}],
|
|
36408
|
+
"lockControl.unlock": [{
|
|
36409
|
+
name: "deviceId",
|
|
36410
|
+
form: "single",
|
|
36411
|
+
optional: false
|
|
36412
|
+
}],
|
|
36413
|
+
"mediaPlayer.next": [{
|
|
36414
|
+
name: "deviceId",
|
|
36415
|
+
form: "single",
|
|
36416
|
+
optional: false
|
|
36417
|
+
}],
|
|
36418
|
+
"mediaPlayer.pause": [{
|
|
36419
|
+
name: "deviceId",
|
|
36420
|
+
form: "single",
|
|
36421
|
+
optional: false
|
|
36422
|
+
}],
|
|
36423
|
+
"mediaPlayer.play": [{
|
|
36424
|
+
name: "deviceId",
|
|
36425
|
+
form: "single",
|
|
36426
|
+
optional: false
|
|
36427
|
+
}],
|
|
36428
|
+
"mediaPlayer.playMedia": [{
|
|
36429
|
+
name: "deviceId",
|
|
36430
|
+
form: "single",
|
|
36431
|
+
optional: false
|
|
36432
|
+
}],
|
|
36433
|
+
"mediaPlayer.previous": [{
|
|
36434
|
+
name: "deviceId",
|
|
36435
|
+
form: "single",
|
|
36436
|
+
optional: false
|
|
36437
|
+
}],
|
|
36438
|
+
"mediaPlayer.seek": [{
|
|
36439
|
+
name: "deviceId",
|
|
36440
|
+
form: "single",
|
|
36441
|
+
optional: false
|
|
36442
|
+
}],
|
|
36443
|
+
"mediaPlayer.selectSource": [{
|
|
36444
|
+
name: "deviceId",
|
|
36445
|
+
form: "single",
|
|
36446
|
+
optional: false
|
|
36447
|
+
}],
|
|
36448
|
+
"mediaPlayer.setMute": [{
|
|
36449
|
+
name: "deviceId",
|
|
36450
|
+
form: "single",
|
|
36451
|
+
optional: false
|
|
36452
|
+
}],
|
|
36453
|
+
"mediaPlayer.setRepeat": [{
|
|
36454
|
+
name: "deviceId",
|
|
36455
|
+
form: "single",
|
|
36456
|
+
optional: false
|
|
36457
|
+
}],
|
|
36458
|
+
"mediaPlayer.setShuffle": [{
|
|
36459
|
+
name: "deviceId",
|
|
36460
|
+
form: "single",
|
|
36461
|
+
optional: false
|
|
36462
|
+
}],
|
|
36463
|
+
"mediaPlayer.setVolume": [{
|
|
36464
|
+
name: "deviceId",
|
|
36465
|
+
form: "single",
|
|
36466
|
+
optional: false
|
|
36467
|
+
}],
|
|
36468
|
+
"mediaPlayer.stop": [{
|
|
36469
|
+
name: "deviceId",
|
|
36470
|
+
form: "single",
|
|
36471
|
+
optional: false
|
|
36472
|
+
}],
|
|
36473
|
+
"motion.isDetected": [{
|
|
36474
|
+
name: "deviceId",
|
|
36475
|
+
form: "single",
|
|
36476
|
+
optional: false
|
|
36477
|
+
}],
|
|
36478
|
+
"motionDetection.analyze": [{
|
|
36479
|
+
name: "deviceId",
|
|
36480
|
+
form: "single",
|
|
36481
|
+
optional: false
|
|
36482
|
+
}],
|
|
36483
|
+
"motionDetection.removeCamera": [{
|
|
36484
|
+
name: "deviceId",
|
|
36485
|
+
form: "single",
|
|
36486
|
+
optional: false
|
|
36487
|
+
}],
|
|
36488
|
+
"motionTrigger.setMotionTrigger": [{
|
|
36489
|
+
name: "deviceId",
|
|
36490
|
+
form: "single",
|
|
36491
|
+
optional: false
|
|
36492
|
+
}],
|
|
36493
|
+
"motionZones.getOptions": [{
|
|
36494
|
+
name: "deviceId",
|
|
36495
|
+
form: "single",
|
|
36496
|
+
optional: false
|
|
36497
|
+
}],
|
|
36498
|
+
"motionZones.setZone": [{
|
|
36499
|
+
name: "deviceId",
|
|
36500
|
+
form: "single",
|
|
36501
|
+
optional: false
|
|
36502
|
+
}],
|
|
36503
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36504
|
+
name: "deviceId",
|
|
36505
|
+
form: "single",
|
|
36506
|
+
optional: false
|
|
36507
|
+
}],
|
|
36508
|
+
"networkQuality.getDeviceStats": [{
|
|
36509
|
+
name: "deviceId",
|
|
36510
|
+
form: "single",
|
|
36511
|
+
optional: false
|
|
36512
|
+
}],
|
|
36513
|
+
"networkQuality.reportClientStats": [{
|
|
36514
|
+
name: "deviceId",
|
|
36515
|
+
form: "single",
|
|
36516
|
+
optional: false
|
|
36517
|
+
}],
|
|
36518
|
+
"notificationRules.setDeviceMuted": [{
|
|
36519
|
+
name: "deviceId",
|
|
36520
|
+
form: "single",
|
|
36521
|
+
optional: false
|
|
36522
|
+
}],
|
|
36523
|
+
"notifier.cancel": [{
|
|
36524
|
+
name: "deviceId",
|
|
36525
|
+
form: "single",
|
|
36526
|
+
optional: false
|
|
36527
|
+
}],
|
|
36528
|
+
"notifier.send": [{
|
|
36529
|
+
name: "deviceId",
|
|
36530
|
+
form: "single",
|
|
36531
|
+
optional: false
|
|
36532
|
+
}],
|
|
36533
|
+
"osd.setOverlay": [{
|
|
36534
|
+
name: "deviceId",
|
|
36535
|
+
form: "single",
|
|
36536
|
+
optional: false
|
|
36537
|
+
}],
|
|
36538
|
+
"osdManager.clearSlotBinding": [{
|
|
36539
|
+
name: "deviceId",
|
|
36540
|
+
form: "single",
|
|
36541
|
+
optional: false
|
|
36542
|
+
}],
|
|
36543
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36544
|
+
name: "sourceDeviceId",
|
|
36545
|
+
form: "single",
|
|
36546
|
+
optional: false
|
|
36547
|
+
}, {
|
|
36548
|
+
name: "targetDeviceId",
|
|
36549
|
+
form: "single",
|
|
36550
|
+
optional: false
|
|
36551
|
+
}],
|
|
36552
|
+
"osdManager.getDeviceOsd": [{
|
|
36553
|
+
name: "deviceId",
|
|
36554
|
+
form: "single",
|
|
36555
|
+
optional: false
|
|
36556
|
+
}],
|
|
36557
|
+
"osdManager.getSourceCatalog": [{
|
|
36558
|
+
name: "deviceId",
|
|
36559
|
+
form: "single",
|
|
36560
|
+
optional: false
|
|
36561
|
+
}],
|
|
36562
|
+
"osdManager.previewSlot": [{
|
|
36563
|
+
name: "deviceId",
|
|
36564
|
+
form: "single",
|
|
36565
|
+
optional: false
|
|
36566
|
+
}],
|
|
36567
|
+
"osdManager.renderDevice": [{
|
|
36568
|
+
name: "deviceId",
|
|
36569
|
+
form: "single",
|
|
36570
|
+
optional: false
|
|
36571
|
+
}],
|
|
36572
|
+
"osdManager.setSlotBinding": [{
|
|
36573
|
+
name: "deviceId",
|
|
36574
|
+
form: "single",
|
|
36575
|
+
optional: false
|
|
36576
|
+
}],
|
|
36577
|
+
"petFeeder.callPet": [{
|
|
36578
|
+
name: "deviceId",
|
|
36579
|
+
form: "single",
|
|
36580
|
+
optional: false
|
|
36581
|
+
}],
|
|
36582
|
+
"petFeeder.cancelFeed": [{
|
|
36583
|
+
name: "deviceId",
|
|
36584
|
+
form: "single",
|
|
36585
|
+
optional: false
|
|
36586
|
+
}],
|
|
36587
|
+
"petFeeder.feed": [{
|
|
36588
|
+
name: "deviceId",
|
|
36589
|
+
form: "single",
|
|
36590
|
+
optional: false
|
|
36591
|
+
}],
|
|
36592
|
+
"petFeeder.markFoodReplenished": [{
|
|
36593
|
+
name: "deviceId",
|
|
36594
|
+
form: "single",
|
|
36595
|
+
optional: false
|
|
36596
|
+
}],
|
|
36597
|
+
"petFeeder.playSound": [{
|
|
36598
|
+
name: "deviceId",
|
|
36599
|
+
form: "single",
|
|
36600
|
+
optional: false
|
|
36601
|
+
}],
|
|
36602
|
+
"petFeeder.resetDesiccant": [{
|
|
36603
|
+
name: "deviceId",
|
|
36604
|
+
form: "single",
|
|
36605
|
+
optional: false
|
|
36606
|
+
}],
|
|
36607
|
+
"petFeeder.setChildLock": [{
|
|
36608
|
+
name: "deviceId",
|
|
36609
|
+
form: "single",
|
|
36610
|
+
optional: false
|
|
36611
|
+
}],
|
|
36612
|
+
"petFeeder.setFeedSound": [{
|
|
36613
|
+
name: "deviceId",
|
|
36614
|
+
form: "single",
|
|
36615
|
+
optional: false
|
|
36616
|
+
}],
|
|
36617
|
+
"petFeeder.setIndicatorLight": [{
|
|
36618
|
+
name: "deviceId",
|
|
36619
|
+
form: "single",
|
|
36620
|
+
optional: false
|
|
36621
|
+
}],
|
|
36622
|
+
"petFeeder.setVolume": [{
|
|
36623
|
+
name: "deviceId",
|
|
36624
|
+
form: "single",
|
|
36625
|
+
optional: false
|
|
36626
|
+
}],
|
|
36627
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36628
|
+
name: "deviceId",
|
|
36629
|
+
form: "single",
|
|
36630
|
+
optional: false
|
|
36631
|
+
}],
|
|
36632
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36633
|
+
name: "deviceId",
|
|
36634
|
+
form: "single",
|
|
36635
|
+
optional: false
|
|
36636
|
+
}],
|
|
36637
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36638
|
+
name: "deviceId",
|
|
36639
|
+
form: "single",
|
|
36640
|
+
optional: false
|
|
36641
|
+
}],
|
|
36642
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36643
|
+
name: "deviceId",
|
|
36644
|
+
form: "single",
|
|
36645
|
+
optional: false
|
|
36646
|
+
}],
|
|
36647
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36648
|
+
name: "deviceId",
|
|
36649
|
+
form: "single",
|
|
36650
|
+
optional: false
|
|
36651
|
+
}],
|
|
36652
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36653
|
+
name: "deviceId",
|
|
36654
|
+
form: "single",
|
|
36655
|
+
optional: false
|
|
36656
|
+
}],
|
|
36657
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36658
|
+
name: "deviceId",
|
|
36659
|
+
form: "single",
|
|
36660
|
+
optional: false
|
|
36661
|
+
}],
|
|
36662
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36663
|
+
name: "deviceId",
|
|
36664
|
+
form: "single",
|
|
36665
|
+
optional: false
|
|
36666
|
+
}],
|
|
36667
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36668
|
+
name: "deviceId",
|
|
36669
|
+
form: "single",
|
|
36670
|
+
optional: false
|
|
36671
|
+
}],
|
|
36672
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36673
|
+
name: "deviceId",
|
|
36674
|
+
form: "single",
|
|
36675
|
+
optional: false
|
|
36676
|
+
}],
|
|
36677
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36678
|
+
name: "deviceId",
|
|
36679
|
+
form: "single",
|
|
36680
|
+
optional: false
|
|
36681
|
+
}],
|
|
36682
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36683
|
+
name: "deviceIds",
|
|
36684
|
+
form: "array",
|
|
36685
|
+
optional: true
|
|
36686
|
+
}],
|
|
36687
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36688
|
+
name: "deviceId",
|
|
36689
|
+
form: "single",
|
|
36690
|
+
optional: false
|
|
36691
|
+
}],
|
|
36692
|
+
"pipelineAnalytics.getTrack": [{
|
|
36693
|
+
name: "deviceId",
|
|
36694
|
+
form: "single",
|
|
36695
|
+
optional: false
|
|
36696
|
+
}],
|
|
36697
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36698
|
+
name: "deviceIds",
|
|
36699
|
+
form: "array",
|
|
36700
|
+
optional: true
|
|
36701
|
+
}],
|
|
36702
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36703
|
+
name: "deviceIds",
|
|
36704
|
+
form: "array",
|
|
36705
|
+
optional: true
|
|
36706
|
+
}],
|
|
36707
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36708
|
+
name: "deviceId",
|
|
36709
|
+
form: "single",
|
|
36710
|
+
optional: false
|
|
36711
|
+
}],
|
|
36712
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36713
|
+
name: "deviceIds",
|
|
36714
|
+
form: "array",
|
|
36715
|
+
optional: false
|
|
36716
|
+
}],
|
|
36717
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36718
|
+
name: "deviceId",
|
|
36719
|
+
form: "single",
|
|
36720
|
+
optional: true
|
|
36721
|
+
}],
|
|
36722
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36723
|
+
name: "deviceIds",
|
|
36724
|
+
form: "array",
|
|
36725
|
+
optional: false
|
|
36726
|
+
}],
|
|
36727
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36728
|
+
name: "deviceIds",
|
|
36729
|
+
form: "array",
|
|
36730
|
+
optional: true
|
|
36731
|
+
}],
|
|
36732
|
+
"pipelineAnalytics.listTracks": [{
|
|
36733
|
+
name: "deviceId",
|
|
36734
|
+
form: "single",
|
|
36735
|
+
optional: false
|
|
36736
|
+
}],
|
|
36737
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
36738
|
+
name: "deviceId",
|
|
36739
|
+
form: "single",
|
|
36740
|
+
optional: false
|
|
36741
|
+
}],
|
|
36742
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
36743
|
+
name: "deviceId",
|
|
36744
|
+
form: "single",
|
|
36745
|
+
optional: false
|
|
36746
|
+
}],
|
|
36747
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
36748
|
+
name: "deviceId",
|
|
36749
|
+
form: "single",
|
|
36750
|
+
optional: false
|
|
36751
|
+
}],
|
|
36752
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
36753
|
+
name: "deviceId",
|
|
36754
|
+
form: "single",
|
|
36755
|
+
optional: true
|
|
36756
|
+
}],
|
|
36757
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36758
|
+
name: "deviceId",
|
|
36759
|
+
form: "single",
|
|
36760
|
+
optional: false
|
|
36761
|
+
}],
|
|
36762
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
36763
|
+
name: "deviceId",
|
|
36764
|
+
form: "single",
|
|
36765
|
+
optional: false
|
|
36766
|
+
}],
|
|
36767
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
36768
|
+
name: "deviceId",
|
|
36769
|
+
form: "single",
|
|
36770
|
+
optional: true
|
|
36771
|
+
}],
|
|
36772
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
36773
|
+
name: "deviceId",
|
|
36774
|
+
form: "single",
|
|
36775
|
+
optional: false
|
|
36776
|
+
}],
|
|
36777
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
36778
|
+
name: "deviceId",
|
|
36779
|
+
form: "single",
|
|
36780
|
+
optional: false
|
|
36781
|
+
}],
|
|
36782
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
36783
|
+
name: "deviceId",
|
|
36784
|
+
form: "single",
|
|
36785
|
+
optional: false
|
|
36786
|
+
}],
|
|
36787
|
+
"pipelineExecutor.runPipeline": [{
|
|
36788
|
+
name: "deviceId",
|
|
36789
|
+
form: "single",
|
|
36790
|
+
optional: true
|
|
36791
|
+
}],
|
|
36792
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
36793
|
+
name: "deviceId",
|
|
36794
|
+
form: "single",
|
|
36795
|
+
optional: true
|
|
36796
|
+
}],
|
|
36797
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
36798
|
+
name: "deviceId",
|
|
36799
|
+
form: "single",
|
|
36800
|
+
optional: false
|
|
36801
|
+
}],
|
|
36802
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
36803
|
+
name: "deviceId",
|
|
36804
|
+
form: "single",
|
|
36805
|
+
optional: false
|
|
36806
|
+
}],
|
|
36807
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
36808
|
+
name: "deviceId",
|
|
36809
|
+
form: "single",
|
|
36810
|
+
optional: false
|
|
36811
|
+
}],
|
|
36812
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
36813
|
+
name: "deviceId",
|
|
36814
|
+
form: "single",
|
|
36815
|
+
optional: false
|
|
36816
|
+
}],
|
|
36817
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
36818
|
+
name: "deviceId",
|
|
36819
|
+
form: "single",
|
|
36820
|
+
optional: false
|
|
36821
|
+
}],
|
|
36822
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
36823
|
+
name: "deviceId",
|
|
36824
|
+
form: "single",
|
|
36825
|
+
optional: false
|
|
36826
|
+
}],
|
|
36827
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
36828
|
+
name: "deviceIds",
|
|
36829
|
+
form: "array",
|
|
36830
|
+
optional: true
|
|
36831
|
+
}],
|
|
36832
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
36833
|
+
name: "deviceId",
|
|
36834
|
+
form: "single",
|
|
36835
|
+
optional: false
|
|
36836
|
+
}],
|
|
36837
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
36838
|
+
name: "deviceId",
|
|
36839
|
+
form: "single",
|
|
36840
|
+
optional: false
|
|
36841
|
+
}],
|
|
36842
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
36843
|
+
name: "deviceId",
|
|
36844
|
+
form: "single",
|
|
36845
|
+
optional: false
|
|
36846
|
+
}],
|
|
36847
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
36848
|
+
name: "deviceId",
|
|
36849
|
+
form: "single",
|
|
36850
|
+
optional: false
|
|
36851
|
+
}],
|
|
36852
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
36853
|
+
name: "deviceId",
|
|
36854
|
+
form: "single",
|
|
36855
|
+
optional: false
|
|
36856
|
+
}],
|
|
36857
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
36858
|
+
name: "deviceId",
|
|
36859
|
+
form: "single",
|
|
36860
|
+
optional: false
|
|
36861
|
+
}],
|
|
36862
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
36863
|
+
name: "deviceId",
|
|
36864
|
+
form: "single",
|
|
36865
|
+
optional: false
|
|
36866
|
+
}],
|
|
36867
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
36868
|
+
name: "deviceId",
|
|
36869
|
+
form: "single",
|
|
36870
|
+
optional: false
|
|
36871
|
+
}],
|
|
36872
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
36873
|
+
name: "deviceId",
|
|
36874
|
+
form: "single",
|
|
36875
|
+
optional: false
|
|
36876
|
+
}],
|
|
36877
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
36878
|
+
name: "deviceId",
|
|
36879
|
+
form: "single",
|
|
36880
|
+
optional: false
|
|
36881
|
+
}],
|
|
36882
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
36883
|
+
name: "deviceId",
|
|
36884
|
+
form: "single",
|
|
36885
|
+
optional: false
|
|
36886
|
+
}],
|
|
36887
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
36888
|
+
name: "deviceId",
|
|
36889
|
+
form: "single",
|
|
36890
|
+
optional: false
|
|
36891
|
+
}],
|
|
36892
|
+
"pipelineRunner.attachCamera": [{
|
|
36893
|
+
name: "deviceId",
|
|
36894
|
+
form: "single",
|
|
36895
|
+
optional: false
|
|
36896
|
+
}],
|
|
36897
|
+
"pipelineRunner.detachCamera": [{
|
|
36898
|
+
name: "deviceId",
|
|
36899
|
+
form: "single",
|
|
36900
|
+
optional: false
|
|
36901
|
+
}],
|
|
36902
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
36903
|
+
name: "deviceId",
|
|
36904
|
+
form: "single",
|
|
36905
|
+
optional: false
|
|
36906
|
+
}],
|
|
36907
|
+
"pipelineRunner.reportMotion": [{
|
|
36908
|
+
name: "deviceId",
|
|
36909
|
+
form: "single",
|
|
36910
|
+
optional: false
|
|
36911
|
+
}],
|
|
36912
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
36913
|
+
name: "deviceId",
|
|
36914
|
+
form: "single",
|
|
36915
|
+
optional: false
|
|
36916
|
+
}],
|
|
36917
|
+
"pipelineRunner.runStatelessStep": [{
|
|
36918
|
+
name: "sourceDeviceId",
|
|
36919
|
+
form: "single",
|
|
36920
|
+
optional: false
|
|
36921
|
+
}],
|
|
36922
|
+
"plateGallery.getPlateByTrack": [{
|
|
36923
|
+
name: "deviceId",
|
|
36924
|
+
form: "single",
|
|
36925
|
+
optional: false
|
|
36926
|
+
}],
|
|
36927
|
+
"plateGallery.listPlates": [{
|
|
36928
|
+
name: "deviceId",
|
|
36929
|
+
form: "single",
|
|
36930
|
+
optional: true
|
|
36931
|
+
}],
|
|
36932
|
+
"privacyMask.getOptions": [{
|
|
36933
|
+
name: "deviceId",
|
|
36934
|
+
form: "single",
|
|
36935
|
+
optional: false
|
|
36936
|
+
}],
|
|
36937
|
+
"privacyMask.setAudioEnabled": [{
|
|
36938
|
+
name: "deviceId",
|
|
36939
|
+
form: "single",
|
|
36940
|
+
optional: false
|
|
36941
|
+
}],
|
|
36942
|
+
"privacyMask.setMask": [{
|
|
36943
|
+
name: "deviceId",
|
|
36944
|
+
form: "single",
|
|
36945
|
+
optional: false
|
|
36946
|
+
}],
|
|
36947
|
+
"ptz.continuousMove": [{
|
|
36948
|
+
name: "deviceId",
|
|
36949
|
+
form: "single",
|
|
36950
|
+
optional: false
|
|
36951
|
+
}],
|
|
36952
|
+
"ptz.deletePreset": [{
|
|
36953
|
+
name: "deviceId",
|
|
36954
|
+
form: "single",
|
|
36955
|
+
optional: false
|
|
36956
|
+
}],
|
|
36957
|
+
"ptz.getOptions": [{
|
|
36958
|
+
name: "deviceId",
|
|
36959
|
+
form: "single",
|
|
36960
|
+
optional: false
|
|
36961
|
+
}],
|
|
36962
|
+
"ptz.getPosition": [{
|
|
36963
|
+
name: "deviceId",
|
|
36964
|
+
form: "single",
|
|
36965
|
+
optional: false
|
|
36966
|
+
}],
|
|
36967
|
+
"ptz.getPresets": [{
|
|
36968
|
+
name: "deviceId",
|
|
36969
|
+
form: "single",
|
|
36970
|
+
optional: false
|
|
36971
|
+
}],
|
|
36972
|
+
"ptz.goHome": [{
|
|
36973
|
+
name: "deviceId",
|
|
36974
|
+
form: "single",
|
|
36975
|
+
optional: false
|
|
36976
|
+
}],
|
|
36977
|
+
"ptz.goToPreset": [{
|
|
36978
|
+
name: "deviceId",
|
|
36979
|
+
form: "single",
|
|
36980
|
+
optional: false
|
|
36981
|
+
}],
|
|
36982
|
+
"ptz.move": [{
|
|
36983
|
+
name: "deviceId",
|
|
36984
|
+
form: "single",
|
|
36985
|
+
optional: false
|
|
36986
|
+
}],
|
|
36987
|
+
"ptz.savePreset": [{
|
|
36988
|
+
name: "deviceId",
|
|
36989
|
+
form: "single",
|
|
36990
|
+
optional: false
|
|
36991
|
+
}],
|
|
36992
|
+
"ptz.setAutofocus": [{
|
|
36993
|
+
name: "deviceId",
|
|
36994
|
+
form: "single",
|
|
36995
|
+
optional: false
|
|
36996
|
+
}],
|
|
36997
|
+
"ptz.stop": [{
|
|
36998
|
+
name: "deviceId",
|
|
36999
|
+
form: "single",
|
|
37000
|
+
optional: false
|
|
37001
|
+
}],
|
|
37002
|
+
"ptzAutotrack.getSettings": [{
|
|
37003
|
+
name: "deviceId",
|
|
37004
|
+
form: "single",
|
|
37005
|
+
optional: false
|
|
37006
|
+
}],
|
|
37007
|
+
"ptzAutotrack.getStatus": [{
|
|
37008
|
+
name: "deviceId",
|
|
37009
|
+
form: "single",
|
|
37010
|
+
optional: false
|
|
37011
|
+
}],
|
|
37012
|
+
"ptzAutotrack.setEnabled": [{
|
|
37013
|
+
name: "deviceId",
|
|
37014
|
+
form: "single",
|
|
37015
|
+
optional: false
|
|
37016
|
+
}],
|
|
37017
|
+
"ptzAutotrack.setSettings": [{
|
|
37018
|
+
name: "deviceId",
|
|
37019
|
+
form: "single",
|
|
37020
|
+
optional: false
|
|
37021
|
+
}],
|
|
37022
|
+
"reboot.reboot": [{
|
|
37023
|
+
name: "deviceId",
|
|
37024
|
+
form: "single",
|
|
37025
|
+
optional: false
|
|
37026
|
+
}],
|
|
37027
|
+
"recording.deleteFootprint": [{
|
|
37028
|
+
name: "deviceId",
|
|
37029
|
+
form: "single",
|
|
37030
|
+
optional: false
|
|
37031
|
+
}],
|
|
37032
|
+
"recording.getAvailability": [{
|
|
37033
|
+
name: "deviceId",
|
|
37034
|
+
form: "single",
|
|
37035
|
+
optional: false
|
|
37036
|
+
}],
|
|
37037
|
+
"recording.getDaysWithRecordings": [{
|
|
37038
|
+
name: "deviceId",
|
|
37039
|
+
form: "single",
|
|
37040
|
+
optional: false
|
|
37041
|
+
}],
|
|
37042
|
+
"recording.getDeviceConfig": [{
|
|
37043
|
+
name: "deviceId",
|
|
37044
|
+
form: "single",
|
|
37045
|
+
optional: false
|
|
37046
|
+
}],
|
|
37047
|
+
"recording.getPlaybackManifest": [{
|
|
37048
|
+
name: "deviceId",
|
|
37049
|
+
form: "single",
|
|
37050
|
+
optional: false
|
|
37051
|
+
}],
|
|
37052
|
+
"recording.listOpsLog": [{
|
|
37053
|
+
name: "deviceId",
|
|
37054
|
+
form: "single",
|
|
37055
|
+
optional: true
|
|
37056
|
+
}],
|
|
37057
|
+
"recording.locateSegment": [{
|
|
37058
|
+
name: "deviceId",
|
|
37059
|
+
form: "single",
|
|
37060
|
+
optional: false
|
|
37061
|
+
}],
|
|
37062
|
+
"recording.pruneFootage": [{
|
|
37063
|
+
name: "deviceId",
|
|
37064
|
+
form: "single",
|
|
37065
|
+
optional: false
|
|
37066
|
+
}],
|
|
37067
|
+
"recording.readGopBytes": [{
|
|
37068
|
+
name: "deviceId",
|
|
37069
|
+
form: "single",
|
|
37070
|
+
optional: false
|
|
37071
|
+
}],
|
|
37072
|
+
"recording.readSegmentBytes": [{
|
|
37073
|
+
name: "deviceId",
|
|
37074
|
+
form: "single",
|
|
37075
|
+
optional: false
|
|
37076
|
+
}],
|
|
37077
|
+
"recording.relocateFootage": [{
|
|
37078
|
+
name: "deviceId",
|
|
37079
|
+
form: "single",
|
|
37080
|
+
optional: true
|
|
37081
|
+
}],
|
|
37082
|
+
"recording.renderClip": [{
|
|
37083
|
+
name: "deviceId",
|
|
37084
|
+
form: "single",
|
|
37085
|
+
optional: false
|
|
37086
|
+
}],
|
|
37087
|
+
"recording.renderGif": [{
|
|
37088
|
+
name: "deviceId",
|
|
37089
|
+
form: "single",
|
|
37090
|
+
optional: false
|
|
37091
|
+
}],
|
|
37092
|
+
"recording.rescanStorage": [{
|
|
37093
|
+
name: "deviceId",
|
|
37094
|
+
form: "single",
|
|
37095
|
+
optional: false
|
|
37096
|
+
}],
|
|
37097
|
+
"recording.setDeviceConfig": [{
|
|
37098
|
+
name: "deviceId",
|
|
37099
|
+
form: "single",
|
|
37100
|
+
optional: false
|
|
37101
|
+
}],
|
|
37102
|
+
"recording.startStorageMigrationMove": [{
|
|
37103
|
+
name: "deviceId",
|
|
37104
|
+
form: "single",
|
|
37105
|
+
optional: true
|
|
37106
|
+
}],
|
|
37107
|
+
"recordingExport.createExport": [{
|
|
37108
|
+
name: "deviceId",
|
|
37109
|
+
form: "single",
|
|
37110
|
+
optional: false
|
|
37111
|
+
}],
|
|
37112
|
+
"recordingExport.listExports": [{
|
|
37113
|
+
name: "deviceId",
|
|
37114
|
+
form: "single",
|
|
37115
|
+
optional: true
|
|
37116
|
+
}],
|
|
37117
|
+
"sceneMonitor.captureReference": [{
|
|
37118
|
+
name: "deviceId",
|
|
37119
|
+
form: "single",
|
|
37120
|
+
optional: false
|
|
37121
|
+
}],
|
|
37122
|
+
"sceneMonitor.createScene": [{
|
|
37123
|
+
name: "deviceId",
|
|
37124
|
+
form: "single",
|
|
37125
|
+
optional: false
|
|
37126
|
+
}],
|
|
37127
|
+
"sceneMonitor.deleteReference": [{
|
|
37128
|
+
name: "deviceId",
|
|
37129
|
+
form: "single",
|
|
37130
|
+
optional: false
|
|
37131
|
+
}],
|
|
37132
|
+
"sceneMonitor.deleteScene": [{
|
|
37133
|
+
name: "deviceId",
|
|
37134
|
+
form: "single",
|
|
37135
|
+
optional: false
|
|
37136
|
+
}],
|
|
37137
|
+
"sceneMonitor.listScenes": [{
|
|
37138
|
+
name: "deviceId",
|
|
37139
|
+
form: "single",
|
|
37140
|
+
optional: false
|
|
37141
|
+
}],
|
|
37142
|
+
"sceneMonitor.recheckNow": [{
|
|
37143
|
+
name: "deviceId",
|
|
37144
|
+
form: "single",
|
|
37145
|
+
optional: false
|
|
37146
|
+
}],
|
|
37147
|
+
"sceneMonitor.resetScene": [{
|
|
37148
|
+
name: "deviceId",
|
|
37149
|
+
form: "single",
|
|
37150
|
+
optional: false
|
|
37151
|
+
}],
|
|
37152
|
+
"sceneMonitor.updateScene": [{
|
|
37153
|
+
name: "deviceId",
|
|
37154
|
+
form: "single",
|
|
37155
|
+
optional: false
|
|
37156
|
+
}],
|
|
37157
|
+
"scriptRunner.run": [{
|
|
37158
|
+
name: "deviceId",
|
|
37159
|
+
form: "single",
|
|
37160
|
+
optional: false
|
|
37161
|
+
}],
|
|
37162
|
+
"scriptRunner.stop": [{
|
|
37163
|
+
name: "deviceId",
|
|
37164
|
+
form: "single",
|
|
37165
|
+
optional: false
|
|
37166
|
+
}],
|
|
37167
|
+
"snapshot.getSnapshot": [{
|
|
37168
|
+
name: "deviceId",
|
|
37169
|
+
form: "single",
|
|
37170
|
+
optional: false
|
|
37171
|
+
}],
|
|
37172
|
+
"snapshot.getSnapshotOverview": [{
|
|
37173
|
+
name: "deviceIds",
|
|
37174
|
+
form: "array",
|
|
37175
|
+
optional: false
|
|
37176
|
+
}],
|
|
37177
|
+
"snapshot.invalidateCache": [{
|
|
37178
|
+
name: "deviceId",
|
|
37179
|
+
form: "single",
|
|
37180
|
+
optional: false
|
|
37181
|
+
}],
|
|
37182
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
37183
|
+
name: "deviceId",
|
|
37184
|
+
form: "single",
|
|
37185
|
+
optional: false
|
|
37186
|
+
}],
|
|
37187
|
+
"streamBroker.assignProfile": [{
|
|
37188
|
+
name: "deviceId",
|
|
37189
|
+
form: "single",
|
|
37190
|
+
optional: false
|
|
37191
|
+
}],
|
|
37192
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
37193
|
+
name: "deviceId",
|
|
37194
|
+
form: "single",
|
|
37195
|
+
optional: false
|
|
37196
|
+
}],
|
|
37197
|
+
"streamBroker.getStreamWithCodec": [{
|
|
37198
|
+
name: "deviceId",
|
|
37199
|
+
form: "single",
|
|
37200
|
+
optional: false
|
|
37201
|
+
}],
|
|
37202
|
+
"streamBroker.produceEventMedia": [{
|
|
37203
|
+
name: "deviceId",
|
|
37204
|
+
form: "single",
|
|
37205
|
+
optional: false
|
|
37206
|
+
}],
|
|
37207
|
+
"streamBroker.publishCameraStream": [{
|
|
37208
|
+
name: "deviceId",
|
|
37209
|
+
form: "single",
|
|
37210
|
+
optional: false
|
|
37211
|
+
}],
|
|
37212
|
+
"streamBroker.renderPreBufferClip": [{
|
|
37213
|
+
name: "deviceId",
|
|
37214
|
+
form: "single",
|
|
37215
|
+
optional: false
|
|
37216
|
+
}],
|
|
37217
|
+
"streamBroker.restartProfile": [{
|
|
37218
|
+
name: "deviceId",
|
|
37219
|
+
form: "single",
|
|
37220
|
+
optional: false
|
|
37221
|
+
}],
|
|
37222
|
+
"streamBroker.retractCameraStream": [{
|
|
37223
|
+
name: "deviceId",
|
|
37224
|
+
form: "single",
|
|
37225
|
+
optional: false
|
|
37226
|
+
}],
|
|
37227
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
37228
|
+
name: "deviceId",
|
|
37229
|
+
form: "single",
|
|
37230
|
+
optional: false
|
|
37231
|
+
}],
|
|
37232
|
+
"streamBroker.unassignProfile": [{
|
|
37233
|
+
name: "deviceId",
|
|
37234
|
+
form: "single",
|
|
37235
|
+
optional: false
|
|
37236
|
+
}],
|
|
37237
|
+
"streamCatalog.getCatalog": [{
|
|
37238
|
+
name: "deviceId",
|
|
37239
|
+
form: "single",
|
|
37240
|
+
optional: false
|
|
37241
|
+
}],
|
|
37242
|
+
"streamParams.getConfigSchema": [{
|
|
37243
|
+
name: "deviceId",
|
|
37244
|
+
form: "single",
|
|
37245
|
+
optional: false
|
|
37246
|
+
}],
|
|
37247
|
+
"streamParams.getOptions": [{
|
|
37248
|
+
name: "deviceId",
|
|
37249
|
+
form: "single",
|
|
37250
|
+
optional: false
|
|
37251
|
+
}],
|
|
37252
|
+
"streamParams.setProfile": [{
|
|
37253
|
+
name: "deviceId",
|
|
37254
|
+
form: "single",
|
|
37255
|
+
optional: false
|
|
37256
|
+
}],
|
|
37257
|
+
"switch.setState": [{
|
|
37258
|
+
name: "deviceId",
|
|
37259
|
+
form: "single",
|
|
37260
|
+
optional: false
|
|
37261
|
+
}],
|
|
37262
|
+
"vacuumControl.locate": [{
|
|
37263
|
+
name: "deviceId",
|
|
37264
|
+
form: "single",
|
|
37265
|
+
optional: false
|
|
37266
|
+
}],
|
|
37267
|
+
"vacuumControl.pause": [{
|
|
37268
|
+
name: "deviceId",
|
|
37269
|
+
form: "single",
|
|
37270
|
+
optional: false
|
|
37271
|
+
}],
|
|
37272
|
+
"vacuumControl.returnToBase": [{
|
|
37273
|
+
name: "deviceId",
|
|
37274
|
+
form: "single",
|
|
37275
|
+
optional: false
|
|
37276
|
+
}],
|
|
37277
|
+
"vacuumControl.setFanSpeed": [{
|
|
37278
|
+
name: "deviceId",
|
|
37279
|
+
form: "single",
|
|
37280
|
+
optional: false
|
|
37281
|
+
}],
|
|
37282
|
+
"vacuumControl.start": [{
|
|
37283
|
+
name: "deviceId",
|
|
37284
|
+
form: "single",
|
|
37285
|
+
optional: false
|
|
37286
|
+
}],
|
|
37287
|
+
"vacuumControl.stop": [{
|
|
37288
|
+
name: "deviceId",
|
|
37289
|
+
form: "single",
|
|
37290
|
+
optional: false
|
|
37291
|
+
}],
|
|
37292
|
+
"valve.close": [{
|
|
37293
|
+
name: "deviceId",
|
|
37294
|
+
form: "single",
|
|
37295
|
+
optional: false
|
|
37296
|
+
}],
|
|
37297
|
+
"valve.open": [{
|
|
37298
|
+
name: "deviceId",
|
|
37299
|
+
form: "single",
|
|
37300
|
+
optional: false
|
|
37301
|
+
}],
|
|
37302
|
+
"valve.setPosition": [{
|
|
37303
|
+
name: "deviceId",
|
|
37304
|
+
form: "single",
|
|
37305
|
+
optional: false
|
|
37306
|
+
}],
|
|
37307
|
+
"valve.stop": [{
|
|
37308
|
+
name: "deviceId",
|
|
37309
|
+
form: "single",
|
|
37310
|
+
optional: false
|
|
37311
|
+
}],
|
|
37312
|
+
"videoclips.getClipPlayback": [{
|
|
37313
|
+
name: "deviceId",
|
|
37314
|
+
form: "single",
|
|
37315
|
+
optional: false
|
|
37316
|
+
}],
|
|
37317
|
+
"videoclips.listClips": [{
|
|
37318
|
+
name: "deviceId",
|
|
37319
|
+
form: "single",
|
|
37320
|
+
optional: false
|
|
37321
|
+
}],
|
|
37322
|
+
"waterHeater.setAway": [{
|
|
37323
|
+
name: "deviceId",
|
|
37324
|
+
form: "single",
|
|
37325
|
+
optional: false
|
|
37326
|
+
}],
|
|
37327
|
+
"waterHeater.setOperationMode": [{
|
|
37328
|
+
name: "deviceId",
|
|
37329
|
+
form: "single",
|
|
37330
|
+
optional: false
|
|
37331
|
+
}],
|
|
37332
|
+
"waterHeater.setTargetTemp": [{
|
|
37333
|
+
name: "deviceId",
|
|
37334
|
+
form: "single",
|
|
37335
|
+
optional: false
|
|
37336
|
+
}],
|
|
37337
|
+
"webrtcSession.addIceCandidate": [{
|
|
37338
|
+
name: "deviceId",
|
|
37339
|
+
form: "single",
|
|
37340
|
+
optional: false
|
|
37341
|
+
}],
|
|
37342
|
+
"webrtcSession.closeSession": [{
|
|
37343
|
+
name: "deviceId",
|
|
37344
|
+
form: "single",
|
|
37345
|
+
optional: false
|
|
37346
|
+
}],
|
|
37347
|
+
"webrtcSession.createSession": [{
|
|
37348
|
+
name: "deviceId",
|
|
37349
|
+
form: "single",
|
|
37350
|
+
optional: false
|
|
37351
|
+
}],
|
|
37352
|
+
"webrtcSession.getIceCandidates": [{
|
|
37353
|
+
name: "deviceId",
|
|
37354
|
+
form: "single",
|
|
37355
|
+
optional: false
|
|
37356
|
+
}],
|
|
37357
|
+
"webrtcSession.getSessionState": [{
|
|
37358
|
+
name: "deviceId",
|
|
37359
|
+
form: "single",
|
|
37360
|
+
optional: false
|
|
37361
|
+
}],
|
|
37362
|
+
"webrtcSession.handleAnswer": [{
|
|
37363
|
+
name: "deviceId",
|
|
37364
|
+
form: "single",
|
|
37365
|
+
optional: false
|
|
37366
|
+
}],
|
|
37367
|
+
"webrtcSession.handleOffer": [{
|
|
37368
|
+
name: "deviceId",
|
|
37369
|
+
form: "single",
|
|
37370
|
+
optional: false
|
|
37371
|
+
}],
|
|
37372
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
37373
|
+
name: "deviceId",
|
|
37374
|
+
form: "single",
|
|
37375
|
+
optional: false
|
|
37376
|
+
}],
|
|
37377
|
+
"webrtcSession.listStreams": [{
|
|
37378
|
+
name: "deviceId",
|
|
37379
|
+
form: "single",
|
|
37380
|
+
optional: false
|
|
37381
|
+
}],
|
|
37382
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
37383
|
+
name: "deviceId",
|
|
37384
|
+
form: "single",
|
|
37385
|
+
optional: false
|
|
37386
|
+
}],
|
|
37387
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
37388
|
+
name: "deviceId",
|
|
37389
|
+
form: "single",
|
|
37390
|
+
optional: false
|
|
37391
|
+
}],
|
|
37392
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
37393
|
+
name: "deviceId",
|
|
37394
|
+
form: "single",
|
|
37395
|
+
optional: false
|
|
37396
|
+
}],
|
|
37397
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
37398
|
+
name: "deviceId",
|
|
37399
|
+
form: "single",
|
|
37400
|
+
optional: false
|
|
37401
|
+
}],
|
|
37402
|
+
"zoneRules.listRules": [{
|
|
37403
|
+
name: "deviceId",
|
|
37404
|
+
form: "single",
|
|
37405
|
+
optional: false
|
|
37406
|
+
}],
|
|
37407
|
+
"zoneRules.setRules": [{
|
|
37408
|
+
name: "deviceId",
|
|
37409
|
+
form: "single",
|
|
37410
|
+
optional: false
|
|
37411
|
+
}],
|
|
37412
|
+
"zones.addZone": [{
|
|
37413
|
+
name: "deviceId",
|
|
37414
|
+
form: "single",
|
|
37415
|
+
optional: false
|
|
37416
|
+
}],
|
|
37417
|
+
"zones.listZones": [{
|
|
37418
|
+
name: "deviceId",
|
|
37419
|
+
form: "single",
|
|
37420
|
+
optional: false
|
|
37421
|
+
}],
|
|
37422
|
+
"zones.removeZone": [{
|
|
37423
|
+
name: "deviceId",
|
|
37424
|
+
form: "single",
|
|
37425
|
+
optional: false
|
|
37426
|
+
}],
|
|
37427
|
+
"zones.updateZone": [{
|
|
37428
|
+
name: "deviceId",
|
|
37429
|
+
form: "single",
|
|
37430
|
+
optional: false
|
|
37431
|
+
}]
|
|
37432
|
+
});
|
|
34879
37433
|
Object.freeze({
|
|
34880
37434
|
"broker": "broker",
|
|
34881
37435
|
"device-export": "device-export",
|
|
@@ -223675,6 +226229,44 @@ function capDayNightModeToReolink(mode) {
|
|
|
223675
226229
|
}
|
|
223676
226230
|
}
|
|
223677
226231
|
//#endregion
|
|
226232
|
+
//#region src/device-features.ts
|
|
226233
|
+
/**
|
|
226234
|
+
* Derive the device-manager feature set for a Reolink camera.
|
|
226235
|
+
*
|
|
226236
|
+
* `battery-operated` is derived from the probe flag **OR** the driver's own
|
|
226237
|
+
* `isBattery` discriminator — never the probe alone. The probe slice is
|
|
226238
|
+
* written only by a SUCCESSFUL `feature-probe` round-trip, and a battery
|
|
226239
|
+
* camera that is asleep (or flat, or off-LAN) never answers one: device 640
|
|
226240
|
+
* "Baby monitor" held `deviceCache.deviceType === 'battery-cam'`, a
|
|
226241
|
+
* `battery` runtime slice reporting `sleeping: true`, and STILL published
|
|
226242
|
+
* `features = ['native-snapshot','rebootable']` because the `feature-probe`
|
|
226243
|
+
* slice had never been written.
|
|
226244
|
+
*
|
|
226245
|
+
* That miss is not cosmetic. `DeviceFeature.BatteryOperated` is the gate for:
|
|
226246
|
+
* - the viewer's battery badge + sleeping overlay (`use-cameras.ts` FEATURE
|
|
226247
|
+
* map) — without it the camera is drawn as an ordinary awake camera;
|
|
226248
|
+
* - the snapshot wrapper's sleep gate (`snapshot.addon.ts`
|
|
226249
|
+
* `lookupDeviceMeta().isBattery`) — without it every thumbnail refresh
|
|
226250
|
+
* issues a Baichuan login and WAKES the camera (observed hourly on 640
|
|
226251
|
+
* while it sat at 14%);
|
|
226252
|
+
* - the broker's `preBufferSec = 0` battery rule and its relaxed stall
|
|
226253
|
+
* watchdog.
|
|
226254
|
+
*
|
|
226255
|
+
* The probe's own `hasBattery` is already sticky-true (`applyProbe` never
|
|
226256
|
+
* clears it). This makes the DERIVED answer sticky the same way, for the
|
|
226257
|
+
* window before any probe has ever succeeded.
|
|
226258
|
+
*/
|
|
226259
|
+
function deriveReolinkCameraFeatures(inputs) {
|
|
226260
|
+
const { probe, isBattery } = inputs;
|
|
226261
|
+
const out = [DeviceFeature.NativeSnapshot, DeviceFeature.Rebootable];
|
|
226262
|
+
if (probe.hasBattery === true || isBattery) out.push(DeviceFeature.BatteryOperated);
|
|
226263
|
+
if (probe.hasPtz === true) out.push(DeviceFeature.PanTiltZoom);
|
|
226264
|
+
if (probe.hasAutotrack === true) out.push(DeviceFeature.PtzAutotrack);
|
|
226265
|
+
if (probe.hasIntercom === true) out.push(DeviceFeature.TwoWayAudio);
|
|
226266
|
+
if (probe.hasDoorbell === true) out.push(DeviceFeature.DoorbellButton);
|
|
226267
|
+
return out;
|
|
226268
|
+
}
|
|
226269
|
+
//#endregion
|
|
223678
226270
|
//#region src/image-settings-mapping.ts
|
|
223679
226271
|
/**
|
|
223680
226272
|
* Reolink's `InputAdvanceCfg.Exposure.mode` (Baichuan cmdId 25/26, via
|
|
@@ -227194,6 +229786,15 @@ function coerceNumber(value) {
|
|
|
227194
229786
|
return null;
|
|
227195
229787
|
}
|
|
227196
229788
|
/**
|
|
229789
|
+
* Per-device transient diagnostics blob populated from the lib's
|
|
229790
|
+
* `getOnlineUserSessionsForUi` + `getSocketPoolSummary` +
|
|
229791
|
+
* `getSocketPoolCooldownStatus` calls. NOT persisted — recomputed on
|
|
229792
|
+
* demand and shown in the device's "Sessions" tab. The aggregator UI
|
|
229793
|
+
* polls the device aggregate every ~2.5s and a stale snapshot triggers
|
|
229794
|
+
* a background refresh; the operator can also force one via the
|
|
229795
|
+
* tab's Refresh button (`_refreshSessions` patch sentinel).
|
|
229796
|
+
*/
|
|
229797
|
+
/**
|
|
227197
229798
|
* Reolink camera device — connects via Baichuan protocol and pushes
|
|
227198
229799
|
* Annex-B H.264/H.265 directly to the stream broker.
|
|
227199
229800
|
*
|
|
@@ -227284,24 +229885,24 @@ function slicesForPatch(patch) {
|
|
|
227284
229885
|
var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
227285
229886
|
type = DeviceType.Camera;
|
|
227286
229887
|
/**
|
|
227287
|
-
* Features derived from the
|
|
227288
|
-
*
|
|
227289
|
-
* the cluster (stream-broker,
|
|
227290
|
-
* can derive policy from a single
|
|
229888
|
+
* Features derived from the `feature-probe` runtime-state slice AND the
|
|
229889
|
+
* driver's own `isBattery` discriminator. Surfaced via
|
|
229890
|
+
* `device-manager.getDevice` so any service in the cluster (stream-broker,
|
|
229891
|
+
* snapshot orchestrator, pipeline-runner) can derive policy from a single
|
|
229892
|
+
* source.
|
|
229893
|
+
*
|
|
229894
|
+
* The rule itself lives in `deriveReolinkCameraFeatures` — see that
|
|
229895
|
+
* function for why `battery-operated` must NOT wait for a probe.
|
|
227291
229896
|
*
|
|
227292
229897
|
* Returns a fresh array on each read so consumers can't mutate the
|
|
227293
229898
|
* underlying state. The set is small (≤6 entries) so allocation cost
|
|
227294
229899
|
* is negligible vs the staleness of caching.
|
|
227295
229900
|
*/
|
|
227296
229901
|
get features() {
|
|
227297
|
-
|
|
227298
|
-
|
|
227299
|
-
|
|
227300
|
-
|
|
227301
|
-
if (probe.hasAutotrack === true) out.push(DeviceFeature.PtzAutotrack);
|
|
227302
|
-
if (probe.hasIntercom === true) out.push(DeviceFeature.TwoWayAudio);
|
|
227303
|
-
if (probe.hasDoorbell === true) out.push(DeviceFeature.DoorbellButton);
|
|
227304
|
-
return out;
|
|
229902
|
+
return deriveReolinkCameraFeatures({
|
|
229903
|
+
probe: this.getProbeFlags(),
|
|
229904
|
+
isBattery: this.isBattery
|
|
229905
|
+
});
|
|
227305
229906
|
}
|
|
227306
229907
|
/** Lazy-connected Baichuan API. Spans the lifetime of every active stream. */
|
|
227307
229908
|
api = null;
|
|
@@ -228818,6 +231419,29 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
228818
231419
|
* UX without falsely claiming readiness when audio decode isn't
|
|
228819
231420
|
* available.
|
|
228820
231421
|
*/
|
|
231422
|
+
/**
|
|
231423
|
+
* Mirror talk-back into the `intercom` runtime-state slice.
|
|
231424
|
+
*
|
|
231425
|
+
* The cap's `status` is command-driven and nothing reads it: every consumer
|
|
231426
|
+
* outside this process — the admin UI, the Home Assistant export — sees a
|
|
231427
|
+
* capability only through the runtime-state slice, via the
|
|
231428
|
+
* `device.state-changed` event or the `deviceState.getAllSnapshots`
|
|
231429
|
+
* snapshot. Without this write the `intercom` entity Home Assistant
|
|
231430
|
+
* publishes would exist and never receive a value, which is exactly the
|
|
231431
|
+
* defect that kept the capability out of the export.
|
|
231432
|
+
*
|
|
231433
|
+
* Called at the four points that open or close a session — and seeded at
|
|
231434
|
+
* registration, so the slice says `talking: false` from boot rather than
|
|
231435
|
+
* only after the first session.
|
|
231436
|
+
*/
|
|
231437
|
+
publishIntercomState(talking) {
|
|
231438
|
+
const previous = this.getCapSlice(intercomCapability);
|
|
231439
|
+
this.setCapSlice(intercomCapability, {
|
|
231440
|
+
talking,
|
|
231441
|
+
lastSessionAt: talking ? Date.now() : previous?.lastSessionAt ?? null,
|
|
231442
|
+
ability: previous?.ability ?? null
|
|
231443
|
+
});
|
|
231444
|
+
}
|
|
228821
231445
|
registerIntercomIfSupported() {
|
|
228822
231446
|
if (this.intercomRegistered) return;
|
|
228823
231447
|
const probe = this.getProbeFlags();
|
|
@@ -228852,7 +231476,14 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
228852
231476
|
...this.config.get("intercomMaxBacklogMs") !== void 0 ? { maxBacklogMs: this.config.get("intercomMaxBacklogMs") } : {},
|
|
228853
231477
|
...this.config.get("intercomGain") !== void 0 ? { outputGain: this.config.get("intercomGain") } : {}
|
|
228854
231478
|
});
|
|
228855
|
-
|
|
231479
|
+
try {
|
|
231480
|
+
const opened = await this.intercomOrchestrator.start();
|
|
231481
|
+
this.publishIntercomState(true);
|
|
231482
|
+
return opened;
|
|
231483
|
+
} catch (err) {
|
|
231484
|
+
this.publishIntercomState(false);
|
|
231485
|
+
throw err;
|
|
231486
|
+
}
|
|
228856
231487
|
},
|
|
228857
231488
|
handleAnswer: async ({ deviceId, sessionId, sdpAnswer }) => {
|
|
228858
231489
|
if (deviceId !== this.id) return;
|
|
@@ -228863,6 +231494,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
228863
231494
|
if (deviceId !== this.id) return;
|
|
228864
231495
|
if (!this.intercomOrchestrator) return;
|
|
228865
231496
|
await this.intercomOrchestrator.stop(sessionId);
|
|
231497
|
+
this.publishIntercomState(false);
|
|
228866
231498
|
},
|
|
228867
231499
|
startTalkSession: async ({ deviceId }) => {
|
|
228868
231500
|
if (deviceId !== this.id) throw new Error(`ReolinkCamera: intercom deviceId mismatch, expected ${this.id}, got ${deviceId}`);
|
|
@@ -228893,6 +231525,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
228893
231525
|
lastSequenceNumber: -1,
|
|
228894
231526
|
opusDecode: null
|
|
228895
231527
|
};
|
|
231528
|
+
this.publishIntercomState(true);
|
|
228896
231529
|
this.ctx.logger.info("intercom talk session opened", {
|
|
228897
231530
|
tags: { deviceId: this.id },
|
|
228898
231531
|
meta: {
|
|
@@ -229020,6 +231653,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
229020
231653
|
}
|
|
229021
231654
|
});
|
|
229022
231655
|
});
|
|
231656
|
+
this.publishIntercomState(false);
|
|
229023
231657
|
this.ctx.logger.info("intercom talk session closed", {
|
|
229024
231658
|
tags: { deviceId: this.id },
|
|
229025
231659
|
meta: {
|
|
@@ -229029,6 +231663,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
229029
231663
|
});
|
|
229030
231664
|
}
|
|
229031
231665
|
});
|
|
231666
|
+
this.publishIntercomState(false);
|
|
229032
231667
|
this.ctx.logger.info("intercom cap registered (WebRTC + audio-codec wiring active)", { tags: { deviceId: this.id } });
|
|
229033
231668
|
}
|
|
229034
231669
|
/**
|
|
@@ -234768,21 +237403,31 @@ var AutodetectCache = class {
|
|
|
234768
237403
|
//#endregion
|
|
234769
237404
|
//#region src/email-push-shared.ts
|
|
234770
237405
|
/**
|
|
234771
|
-
* Map the lib's email-push classifier output onto
|
|
234772
|
-
*
|
|
234773
|
-
*
|
|
237406
|
+
* Map the lib's email-push classifier output onto the `ReolinkSimpleEvent`
|
|
237407
|
+
* types the camera should be fed. AI subtypes + motion pass through;
|
|
237408
|
+
* anything unrecognised collapses to plain `motion` so a wake is never
|
|
234774
237409
|
* silently dropped.
|
|
234775
|
-
|
|
234776
|
-
|
|
237410
|
+
*
|
|
237411
|
+
* Returns a LIST rather than a single type because of `doorbell`. The
|
|
237412
|
+
* camera's `handleSimpleEvent` emits `MotionOnMotionChanged` for `motion`
|
|
237413
|
+
* and for every AI class, but the `doorbell` branch emits ONLY
|
|
237414
|
+
* `DoorbellOnPressed` and returns. An email is the sole signal a sleeping
|
|
237415
|
+
* battery camera can send, so a doorbell-classified email mapped to
|
|
237416
|
+
* `doorbell` alone rang the bell and left motion, recording and
|
|
237417
|
+
* notification rules blind — the exact "silently dropped wake" this mapping
|
|
237418
|
+
* exists to prevent. Pairing it with `motion` keeps the doorbell semantic
|
|
237419
|
+
* AND the wake.
|
|
237420
|
+
*/
|
|
237421
|
+
function mapInferredTypeToSimpleEvents(inferred) {
|
|
234777
237422
|
switch (inferred) {
|
|
234778
237423
|
case "people":
|
|
234779
237424
|
case "vehicle":
|
|
234780
237425
|
case "animal":
|
|
234781
237426
|
case "face":
|
|
234782
237427
|
case "package":
|
|
234783
|
-
case "
|
|
234784
|
-
case "
|
|
234785
|
-
default: return "motion";
|
|
237428
|
+
case "motion": return [inferred];
|
|
237429
|
+
case "doorbell": return ["doorbell", "motion"];
|
|
237430
|
+
default: return ["motion"];
|
|
234786
237431
|
}
|
|
234787
237432
|
}
|
|
234788
237433
|
/** Default SMTP listen port. Avoid privileged 25; Reolink firmwares are
|
|
@@ -234938,8 +237583,8 @@ var ReolinkEmailPushServer = class {
|
|
|
234938
237583
|
subject: event.subject.slice(0, 80)
|
|
234939
237584
|
}
|
|
234940
237585
|
});
|
|
234941
|
-
cam.handleSimpleEvent({
|
|
234942
|
-
type
|
|
237586
|
+
for (const type of mapInferredTypeToSimpleEvents(event.inferredType)) cam.handleSimpleEvent({
|
|
237587
|
+
type,
|
|
234943
237588
|
channel: cam.emailPushChannel,
|
|
234944
237589
|
timestamp: event.receivedAtMs
|
|
234945
237590
|
});
|