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