@camstack/addon-matter-broker 0.2.15 → 0.2.17
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 +2933 -146
- package/dist/addon.mjs +2933 -146
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { networkInterfaces, tmpdir, uptime } from "node:os";
|
|
|
11
11
|
import { finished } from "node:stream/promises";
|
|
12
12
|
import { createConnection, createServer as createServer$2 } from "node:net";
|
|
13
13
|
import * as dgram from "node:dgram";
|
|
14
|
-
//#region ../types/dist/event-category-
|
|
14
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
15
15
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
16
16
|
EventCategory["SystemBoot"] = "system.boot";
|
|
17
17
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -218,6 +218,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
218
218
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
219
219
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
220
220
|
/**
|
|
221
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
222
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
223
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
224
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
225
|
+
* from the placement candidate set for as long as it holds.
|
|
226
|
+
*
|
|
227
|
+
* This exists because the state was previously invisible: little-unraid
|
|
228
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
229
|
+
* and nothing in the system said so.
|
|
230
|
+
*
|
|
231
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
232
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
233
|
+
* serves it exactly as before.
|
|
234
|
+
*/
|
|
235
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
236
|
+
/**
|
|
237
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
238
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
239
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
240
|
+
* per camera.
|
|
241
|
+
*
|
|
242
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
243
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
244
|
+
* camera" produce byte-identical silence.
|
|
245
|
+
*/
|
|
246
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
247
|
+
/**
|
|
221
248
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
222
249
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
223
250
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -10951,6 +10978,8 @@ var QueryFilterSchema = object({
|
|
|
10951
10978
|
where: record(string$2(), unknown()).optional(),
|
|
10952
10979
|
whereIn: record(string$2(), array(unknown())).optional(),
|
|
10953
10980
|
whereBetween: record(string$2(), tuple([unknown(), unknown()])).optional(),
|
|
10981
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10982
|
+
whereNot: record(string$2(), unknown()).optional(),
|
|
10954
10983
|
orderBy: object({
|
|
10955
10984
|
field: string$2(),
|
|
10956
10985
|
direction: _enum(["asc", "desc"])
|
|
@@ -10970,7 +10999,8 @@ var QueryFilterSchema = object({
|
|
|
10970
10999
|
var MutationFilterSchema = object({
|
|
10971
11000
|
where: record(string$2(), unknown()).optional(),
|
|
10972
11001
|
whereIn: record(string$2(), array(unknown())).optional(),
|
|
10973
|
-
whereBetween: record(string$2(), tuple([unknown(), unknown()])).optional()
|
|
11002
|
+
whereBetween: record(string$2(), tuple([unknown(), unknown()])).optional(),
|
|
11003
|
+
whereNot: record(string$2(), unknown()).optional()
|
|
10974
11004
|
});
|
|
10975
11005
|
/** A single stored record: `{ id, data }`. */
|
|
10976
11006
|
var SettingsRecordSchema = object({
|
|
@@ -12506,6 +12536,17 @@ var LlmImageSchema = object({
|
|
|
12506
12536
|
bytes: _instanceof(Uint8Array),
|
|
12507
12537
|
mimeType: string$2()
|
|
12508
12538
|
});
|
|
12539
|
+
/**
|
|
12540
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12541
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12542
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12543
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12544
|
+
*/
|
|
12545
|
+
var LlmRetryPolicySchema = object({
|
|
12546
|
+
enabled: boolean().default(false),
|
|
12547
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12548
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12549
|
+
});
|
|
12509
12550
|
var LlmGenerateBaseInputSchema = object({
|
|
12510
12551
|
/** Collection routing (the notification-output posture). */
|
|
12511
12552
|
addonId: string$2().optional(),
|
|
@@ -12520,7 +12561,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12520
12561
|
jsonSchema: record(string$2(), unknown()).optional(),
|
|
12521
12562
|
/** Per-call override of the profile default. */
|
|
12522
12563
|
maxTokens: number().int().positive().optional(),
|
|
12523
|
-
temperature: number().optional()
|
|
12564
|
+
temperature: number().optional(),
|
|
12565
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12566
|
+
topP: number().min(0).max(1).optional(),
|
|
12567
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12568
|
+
topK: number().int().positive().optional(),
|
|
12569
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12570
|
+
timeoutMs: number().int().positive().optional(),
|
|
12571
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12572
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12573
|
+
/**
|
|
12574
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12575
|
+
*
|
|
12576
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12577
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12578
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12579
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12580
|
+
* not generations, and the real load is unbounded.
|
|
12581
|
+
*
|
|
12582
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12583
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12584
|
+
*/
|
|
12585
|
+
requestId: string$2().optional()
|
|
12524
12586
|
});
|
|
12525
12587
|
/**
|
|
12526
12588
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12533,6 +12595,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12533
12595
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12534
12596
|
* watchdog — operator decision #3).
|
|
12535
12597
|
*/
|
|
12598
|
+
/**
|
|
12599
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12600
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12601
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12602
|
+
* the preview is exactly what the node downloads.
|
|
12603
|
+
*/
|
|
12604
|
+
var ManagedModelExtraFileSchema = object({
|
|
12605
|
+
url: string$2(),
|
|
12606
|
+
filename: string$2(),
|
|
12607
|
+
sizeBytes: number(),
|
|
12608
|
+
sha256: string$2().optional()
|
|
12609
|
+
});
|
|
12536
12610
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12537
12611
|
object({
|
|
12538
12612
|
kind: literal("catalog"),
|
|
@@ -12541,7 +12615,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12541
12615
|
object({
|
|
12542
12616
|
kind: literal("url"),
|
|
12543
12617
|
url: string$2(),
|
|
12544
|
-
sha256: string$2().optional()
|
|
12618
|
+
sha256: string$2().optional(),
|
|
12619
|
+
/** Picker/status label; the file basename when absent. */
|
|
12620
|
+
label: string$2().optional(),
|
|
12621
|
+
sizeBytes: number().optional(),
|
|
12622
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12545
12623
|
}),
|
|
12546
12624
|
object({
|
|
12547
12625
|
kind: literal("path"),
|
|
@@ -12559,13 +12637,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12559
12637
|
gpuLayers: number().int().default(0),
|
|
12560
12638
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12561
12639
|
threads: number().int().optional(),
|
|
12562
|
-
/** Concurrent slots. */
|
|
12640
|
+
/** Concurrent slots (`--parallel`). */
|
|
12563
12641
|
parallel: number().int().default(1),
|
|
12642
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12643
|
+
batchSize: number().int().positive().optional(),
|
|
12644
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12645
|
+
ubatchSize: number().int().positive().optional(),
|
|
12646
|
+
/**
|
|
12647
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12648
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12649
|
+
*/
|
|
12650
|
+
flashAttention: boolean().default(false),
|
|
12651
|
+
/**
|
|
12652
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12653
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12654
|
+
* what the RAM budget is counting.
|
|
12655
|
+
*/
|
|
12656
|
+
mlock: boolean().default(false),
|
|
12657
|
+
/**
|
|
12658
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12659
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12660
|
+
* store produces on every first token.
|
|
12661
|
+
*/
|
|
12662
|
+
noMmap: boolean().default(false),
|
|
12663
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12664
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12665
|
+
cacheTypeK: _enum([
|
|
12666
|
+
"f32",
|
|
12667
|
+
"f16",
|
|
12668
|
+
"q8_0",
|
|
12669
|
+
"q5_1",
|
|
12670
|
+
"q5_0",
|
|
12671
|
+
"q4_1",
|
|
12672
|
+
"q4_0"
|
|
12673
|
+
]).optional(),
|
|
12674
|
+
cacheTypeV: _enum([
|
|
12675
|
+
"f32",
|
|
12676
|
+
"f16",
|
|
12677
|
+
"q8_0",
|
|
12678
|
+
"q5_1",
|
|
12679
|
+
"q5_0",
|
|
12680
|
+
"q4_1",
|
|
12681
|
+
"q4_0"
|
|
12682
|
+
]).optional(),
|
|
12683
|
+
/**
|
|
12684
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12685
|
+
* (which most vision chat templates need and some language-only models
|
|
12686
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12687
|
+
*
|
|
12688
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12689
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12690
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12691
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12692
|
+
* twice (D62).
|
|
12693
|
+
*/
|
|
12694
|
+
extraArgs: array(string$2()).default([]),
|
|
12564
12695
|
/** Else lazy: first generate boots it. */
|
|
12565
12696
|
autoStart: boolean().default(false),
|
|
12566
12697
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12567
12698
|
idleStopMinutes: number().int().default(30)
|
|
12568
12699
|
});
|
|
12700
|
+
/**
|
|
12701
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12702
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12703
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12704
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12705
|
+
*/
|
|
12706
|
+
var LlmDownloadProgressSchema = object({
|
|
12707
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12708
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12709
|
+
file: string$2(),
|
|
12710
|
+
fileIndex: number().int(),
|
|
12711
|
+
fileCount: number().int(),
|
|
12712
|
+
/** Across the WHOLE install, not the current file. */
|
|
12713
|
+
downloadedBytes: number(),
|
|
12714
|
+
totalBytes: number().optional()
|
|
12715
|
+
});
|
|
12569
12716
|
var LlmRuntimeStatusSchema = object({
|
|
12570
12717
|
/** Status is ALWAYS node-qualified. */
|
|
12571
12718
|
nodeId: string$2(),
|
|
@@ -12582,6 +12729,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12582
12729
|
modelPath: string$2().optional(),
|
|
12583
12730
|
modelId: string$2().optional(),
|
|
12584
12731
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12732
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12733
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12585
12734
|
lastError: string$2().optional(),
|
|
12586
12735
|
crashesInWindow: number(),
|
|
12587
12736
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12592,7 +12741,14 @@ var LlmNodeModelSchema = object({
|
|
|
12592
12741
|
file: string$2(),
|
|
12593
12742
|
sizeBytes: number(),
|
|
12594
12743
|
catalogId: string$2().optional(),
|
|
12595
|
-
installedAt: number().optional()
|
|
12744
|
+
installedAt: number().optional(),
|
|
12745
|
+
/**
|
|
12746
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12747
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12748
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12749
|
+
* it the picker could list such a file and do nothing with it.
|
|
12750
|
+
*/
|
|
12751
|
+
path: string$2().optional()
|
|
12596
12752
|
});
|
|
12597
12753
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12598
12754
|
nodeId: string$2(),
|
|
@@ -12648,10 +12804,47 @@ var LlmProfileSchema = object({
|
|
|
12648
12804
|
baseUrl: string$2().optional(),
|
|
12649
12805
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12650
12806
|
apiKey: string$2().optional(),
|
|
12807
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12808
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12809
|
+
* question about a picture nobody sent. */
|
|
12651
12810
|
supportsVision: boolean(),
|
|
12652
12811
|
temperature: number().min(0).max(2).optional(),
|
|
12812
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12813
|
+
topP: number().min(0).max(1).optional(),
|
|
12814
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12815
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12816
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12817
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12818
|
+
topK: number().int().positive().optional(),
|
|
12653
12819
|
maxTokens: number().int().positive().optional(),
|
|
12820
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12821
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12822
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12823
|
+
contextLength: number().int().positive().optional(),
|
|
12824
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12825
|
+
* two system prompts fighting is worse than either alone). */
|
|
12826
|
+
systemPrompt: string$2().optional(),
|
|
12827
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12654
12828
|
timeoutMs: number().int().positive().default(6e4),
|
|
12829
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12830
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12831
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12832
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12833
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12834
|
+
* GPU load is exactly what happens before them. */
|
|
12835
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12836
|
+
/** Output started then stopped. */
|
|
12837
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12838
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12839
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12840
|
+
retry: LlmRetryPolicySchema.default({
|
|
12841
|
+
enabled: false,
|
|
12842
|
+
maxAttempts: 1
|
|
12843
|
+
}),
|
|
12844
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12845
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12846
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12847
|
+
toolsEnabled: boolean().default(false),
|
|
12655
12848
|
extraHeaders: record(string$2(), string$2()).optional(),
|
|
12656
12849
|
/** kind === 'managed-local' only (spec §4). */
|
|
12657
12850
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12701,6 +12894,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12701
12894
|
/** Vision models: companion projector file. */
|
|
12702
12895
|
mmprojUrl: string$2().optional()
|
|
12703
12896
|
});
|
|
12897
|
+
/**
|
|
12898
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12899
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12900
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12901
|
+
* exception.
|
|
12902
|
+
*
|
|
12903
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12904
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12905
|
+
*/
|
|
12906
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12907
|
+
ok: literal(true),
|
|
12908
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12909
|
+
model: ManagedModelRefSchema,
|
|
12910
|
+
label: string$2(),
|
|
12911
|
+
repo: string$2(),
|
|
12912
|
+
quantization: string$2(),
|
|
12913
|
+
purpose: _enum(["text", "vision"]),
|
|
12914
|
+
totalBytes: number(),
|
|
12915
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12916
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12917
|
+
extraFilenames: array(string$2())
|
|
12918
|
+
}), object({
|
|
12919
|
+
ok: literal(false),
|
|
12920
|
+
code: string$2(),
|
|
12921
|
+
message: string$2(),
|
|
12922
|
+
candidates: array(string$2()).optional(),
|
|
12923
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12924
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12925
|
+
requiredBytes: number().optional()
|
|
12926
|
+
})]);
|
|
12704
12927
|
var LlmRuntimeNodeSchema = object({
|
|
12705
12928
|
nodeId: string$2(),
|
|
12706
12929
|
reachable: boolean(),
|
|
@@ -12713,7 +12936,10 @@ var ProfileRefInputSchema = object({
|
|
|
12713
12936
|
addonId: string$2(),
|
|
12714
12937
|
profileId: string$2()
|
|
12715
12938
|
});
|
|
12716
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12939
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12940
|
+
addonId: string$2().optional(),
|
|
12941
|
+
requestId: string$2()
|
|
12942
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12717
12943
|
kind: "mutation",
|
|
12718
12944
|
auth: "admin"
|
|
12719
12945
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12734,6 +12960,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12734
12960
|
consumer: string$2().optional(),
|
|
12735
12961
|
profileId: string$2().optional()
|
|
12736
12962
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string$2() }), array(LlmNodeModelSchema)), method(object({
|
|
12963
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12964
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12965
|
+
ref: string$2(),
|
|
12966
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12967
|
+
maxBytes: number().positive().optional()
|
|
12968
|
+
}), HfModelResolutionSchema, {
|
|
12969
|
+
kind: "mutation",
|
|
12970
|
+
auth: "admin"
|
|
12971
|
+
}), method(object({
|
|
12737
12972
|
nodeId: string$2(),
|
|
12738
12973
|
model: ManagedModelRefSchema
|
|
12739
12974
|
}), _void(), {
|
|
@@ -13293,11 +13528,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13293
13528
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13294
13529
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13295
13530
|
* differently.
|
|
13531
|
+
*
|
|
13532
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13533
|
+
*
|
|
13534
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13535
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13536
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13537
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13538
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13539
|
+
* honestly.
|
|
13540
|
+
*
|
|
13541
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13542
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13543
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13544
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13545
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13546
|
+
*
|
|
13547
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13548
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13549
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13550
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13551
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13296
13552
|
*/
|
|
13297
13553
|
var NotificationActionIconSchema = _enum([
|
|
13298
13554
|
"acknowledge",
|
|
13299
13555
|
"dismiss",
|
|
13300
13556
|
"silence",
|
|
13557
|
+
"snooze",
|
|
13301
13558
|
"view",
|
|
13302
13559
|
"play",
|
|
13303
13560
|
"open",
|
|
@@ -13305,9 +13562,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13305
13562
|
"lock",
|
|
13306
13563
|
"unlock",
|
|
13307
13564
|
"arm",
|
|
13565
|
+
"arm-home",
|
|
13566
|
+
"arm-away",
|
|
13567
|
+
"arm-night",
|
|
13308
13568
|
"disarm",
|
|
13309
13569
|
"light",
|
|
13310
|
-
"alert"
|
|
13570
|
+
"alert",
|
|
13571
|
+
"camera"
|
|
13311
13572
|
]);
|
|
13312
13573
|
/** A single tap-through action button. */
|
|
13313
13574
|
var NotificationActionSchema = object({
|
|
@@ -13507,6 +13768,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13507
13768
|
targetId: string$2(),
|
|
13508
13769
|
enabled: boolean()
|
|
13509
13770
|
}), _void(), { kind: "mutation" });
|
|
13771
|
+
new Set([
|
|
13772
|
+
{
|
|
13773
|
+
id: "person",
|
|
13774
|
+
name: "Person"
|
|
13775
|
+
},
|
|
13776
|
+
{
|
|
13777
|
+
id: "vehicle",
|
|
13778
|
+
name: "Vehicle"
|
|
13779
|
+
},
|
|
13780
|
+
{
|
|
13781
|
+
id: "animal",
|
|
13782
|
+
name: "Animal"
|
|
13783
|
+
},
|
|
13784
|
+
{
|
|
13785
|
+
id: "package",
|
|
13786
|
+
name: "Package"
|
|
13787
|
+
}
|
|
13788
|
+
].map((l) => l.id));
|
|
13510
13789
|
var COCO_TO_MACRO = {
|
|
13511
13790
|
mapping: {
|
|
13512
13791
|
person: "person",
|
|
@@ -14337,11 +14616,15 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14337
14616
|
"stream-offline",
|
|
14338
14617
|
"node-online",
|
|
14339
14618
|
"node-offline",
|
|
14619
|
+
"node-inference-unavailable",
|
|
14620
|
+
"detection-blind",
|
|
14340
14621
|
"addon-update-available",
|
|
14341
14622
|
"server-update-available",
|
|
14342
14623
|
"alarm-triggered",
|
|
14343
14624
|
"alarm-armed",
|
|
14344
14625
|
"alarm-disarmed",
|
|
14626
|
+
"alarm-arming",
|
|
14627
|
+
"alarm-arm-refused",
|
|
14345
14628
|
"camera-online",
|
|
14346
14629
|
"camera-offline",
|
|
14347
14630
|
"camera-disabled",
|
|
@@ -14396,7 +14679,16 @@ var NcScheduleSchema = object({
|
|
|
14396
14679
|
});
|
|
14397
14680
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14398
14681
|
var NcPlateMatcherSchema = object({
|
|
14399
|
-
|
|
14682
|
+
/**
|
|
14683
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14684
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14685
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14686
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14687
|
+
*
|
|
14688
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14689
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14690
|
+
*/
|
|
14691
|
+
values: array(string$2().min(1)),
|
|
14400
14692
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14401
14693
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14402
14694
|
});
|
|
@@ -14430,28 +14722,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14430
14722
|
/**
|
|
14431
14723
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14432
14724
|
*
|
|
14433
|
-
*
|
|
14434
|
-
*
|
|
14435
|
-
*
|
|
14436
|
-
*
|
|
14437
|
-
* window are HITS. A sample is a hit when it satisfies BOTH present filters:
|
|
14725
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14726
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14727
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14728
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14438
14729
|
*
|
|
14439
|
-
* -
|
|
14440
|
-
*
|
|
14441
|
-
*
|
|
14730
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14731
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14732
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14733
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14734
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14735
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14736
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14737
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14738
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14739
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14740
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14741
|
+
* seconds is 100% of nothing.
|
|
14442
14742
|
*
|
|
14443
|
-
*
|
|
14444
|
-
*
|
|
14445
|
-
*
|
|
14446
|
-
*
|
|
14447
|
-
*
|
|
14448
|
-
*
|
|
14449
|
-
* ZodEffects the cap path would have to special-case).
|
|
14743
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14744
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14745
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14746
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14747
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14748
|
+
* the wrong question to ask of a sparse classifier.
|
|
14450
14749
|
*
|
|
14451
|
-
*
|
|
14452
|
-
*
|
|
14453
|
-
*
|
|
14454
|
-
* `
|
|
14750
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14751
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14752
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14753
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14754
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14455
14755
|
*
|
|
14456
14756
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14457
14757
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14459,13 +14759,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14459
14759
|
* an operator who typed `dog` mean the same thing.
|
|
14460
14760
|
*/
|
|
14461
14761
|
var NcAudioConditionSchema = object({
|
|
14462
|
-
/**
|
|
14762
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14463
14763
|
labels: array(string$2().min(1)).min(1).optional(),
|
|
14464
|
-
/**
|
|
14764
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14465
14765
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14466
|
-
/**
|
|
14766
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14467
14767
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14468
|
-
/**
|
|
14768
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14469
14769
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14470
14770
|
});
|
|
14471
14771
|
/**
|
|
@@ -14603,13 +14903,81 @@ var NcRuleActionsSchema = object({
|
|
|
14603
14903
|
*/
|
|
14604
14904
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14605
14905
|
});
|
|
14906
|
+
/**
|
|
14907
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14908
|
+
*
|
|
14909
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14910
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14911
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14912
|
+
*
|
|
14913
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14914
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14915
|
+
*/
|
|
14916
|
+
var NcDeviceStateConditionSchema = object({
|
|
14917
|
+
deviceId: number().int(),
|
|
14918
|
+
/** Any of these matches. */
|
|
14919
|
+
states: array(string$2().min(1)).min(1)
|
|
14920
|
+
});
|
|
14921
|
+
/**
|
|
14922
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14923
|
+
*
|
|
14924
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14925
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14926
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14927
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14928
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14929
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14930
|
+
* kind exist for it — see D159.
|
|
14931
|
+
*
|
|
14932
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14933
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14934
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14935
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14936
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14937
|
+
*
|
|
14938
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14939
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14940
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14941
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14942
|
+
* override one rule against the scene's own default.
|
|
14943
|
+
*
|
|
14944
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14945
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14946
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14947
|
+
* evidence, in either direction.
|
|
14948
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14949
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14950
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14951
|
+
* reason the operator asked for a latch.
|
|
14952
|
+
*
|
|
14953
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14954
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14955
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14956
|
+
* said out loud in the log rather than dropped in silence.
|
|
14957
|
+
*/
|
|
14958
|
+
var NcSceneConditionSchema = object({
|
|
14959
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14960
|
+
sceneId: string$2().min(1),
|
|
14961
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14962
|
+
deviceId: number().int().optional(),
|
|
14963
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14964
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14965
|
+
/**
|
|
14966
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14967
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14968
|
+
*/
|
|
14969
|
+
latched: boolean().optional()
|
|
14970
|
+
});
|
|
14606
14971
|
var NcConditionsSchema = object({
|
|
14607
14972
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14608
|
-
deviceState:
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14973
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14974
|
+
/**
|
|
14975
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14976
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14977
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14978
|
+
* {@link NcSceneCondition} and D159.
|
|
14979
|
+
*/
|
|
14980
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14613
14981
|
/** Device scope — absent = all devices. */
|
|
14614
14982
|
devices: array(number()).optional(),
|
|
14615
14983
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14635,18 +15003,47 @@ var NcConditionsSchema = object({
|
|
|
14635
15003
|
*/
|
|
14636
15004
|
labelEquals: array(string$2().min(1)).optional(),
|
|
14637
15005
|
/**
|
|
14638
|
-
*
|
|
14639
|
-
*
|
|
14640
|
-
*
|
|
15006
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
15007
|
+
* is about recognised people at all.
|
|
15008
|
+
*
|
|
15009
|
+
* Three states, and the empty one is the point:
|
|
15010
|
+
*
|
|
15011
|
+
* | value | meaning |
|
|
15012
|
+
* | --- | --- |
|
|
15013
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
15014
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
15015
|
+
* | a list | only these identities |
|
|
15016
|
+
*
|
|
15017
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
15018
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
15019
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
15020
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
15021
|
+
* with the list under it is worse than no switch (D62).
|
|
15022
|
+
*
|
|
15023
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
15024
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
15025
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
15026
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
15027
|
+
* `{{label}}` renders.
|
|
15028
|
+
*
|
|
15029
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
15030
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
15031
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
15032
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
15033
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14641
15034
|
*/
|
|
14642
15035
|
identities: array(string$2().min(1)).optional(),
|
|
14643
|
-
/**
|
|
15036
|
+
/**
|
|
15037
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
15038
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
15039
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
15040
|
+
*/
|
|
14644
15041
|
plates: NcPlateMatcherSchema.optional(),
|
|
14645
15042
|
/**
|
|
14646
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14647
|
-
*
|
|
14648
|
-
* identity
|
|
14649
|
-
*
|
|
15043
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
15044
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
15045
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
15046
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14650
15047
|
*/
|
|
14651
15048
|
identitiesExclude: array(string$2().min(1)).optional(),
|
|
14652
15049
|
/**
|
|
@@ -15038,7 +15435,80 @@ var NcRuleInputSchema = object({
|
|
|
15038
15435
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15039
15436
|
* did, and absent is the only way to say that without a migration.
|
|
15040
15437
|
*/
|
|
15041
|
-
confirm: NcConfirmSchema.optional()
|
|
15438
|
+
confirm: NcConfirmSchema.optional(),
|
|
15439
|
+
/**
|
|
15440
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15441
|
+
*
|
|
15442
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15443
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15444
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15445
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15446
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15447
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15448
|
+
*
|
|
15449
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15450
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15451
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15452
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15453
|
+
*
|
|
15454
|
+
* | value | what happens |
|
|
15455
|
+
* | --- | --- |
|
|
15456
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15457
|
+
* | 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) |
|
|
15458
|
+
*
|
|
15459
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15460
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15461
|
+
* rule authored before this field meant.
|
|
15462
|
+
*
|
|
15463
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15464
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15465
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15466
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15467
|
+
*/
|
|
15468
|
+
waitForEnhancement: boolean().optional(),
|
|
15469
|
+
/**
|
|
15470
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15471
|
+
*
|
|
15472
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15473
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15474
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15475
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15476
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15477
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15478
|
+
*
|
|
15479
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15480
|
+
*
|
|
15481
|
+
* ### Why an idle cutoff and not a window
|
|
15482
|
+
*
|
|
15483
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15484
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15485
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15486
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15487
|
+
*
|
|
15488
|
+
* ### What it replaces
|
|
15489
|
+
*
|
|
15490
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15491
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15492
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15493
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15494
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15495
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15496
|
+
* throttled by the window its own first member spent.
|
|
15497
|
+
*
|
|
15498
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15499
|
+
*
|
|
15500
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15501
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15502
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15503
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15504
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15505
|
+
* path. Neither combination fires twice for one subject.
|
|
15506
|
+
*
|
|
15507
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15508
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15509
|
+
* field existed.
|
|
15510
|
+
*/
|
|
15511
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15042
15512
|
});
|
|
15043
15513
|
/**
|
|
15044
15514
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15145,6 +15615,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15145
15615
|
"occupancy",
|
|
15146
15616
|
"audio",
|
|
15147
15617
|
"deviceState",
|
|
15618
|
+
"scene",
|
|
15148
15619
|
"systemEvent"
|
|
15149
15620
|
]),
|
|
15150
15621
|
operator: _enum([
|
|
@@ -15550,7 +16021,87 @@ var MethodAccessSchema = _enum([
|
|
|
15550
16021
|
var AllowedProviderSchema = union([literal("*"), array(string$2())]);
|
|
15551
16022
|
var AllowedDevicesSchema = record(string$2(), union([literal("*"), array(string$2())]));
|
|
15552
16023
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15553
|
-
|
|
16024
|
+
/**
|
|
16025
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
16026
|
+
*
|
|
16027
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
16028
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
16029
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
16030
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
16031
|
+
*
|
|
16032
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
16033
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
16034
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
16035
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
16036
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
16037
|
+
* is NOT covered until the grant is edited.
|
|
16038
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
16039
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
16040
|
+
* re-resolves on the next request.
|
|
16041
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
16042
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
16043
|
+
* null/unset location matches NO `locations` selector.
|
|
16044
|
+
*/
|
|
16045
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
16046
|
+
object({ kind: literal("all") }),
|
|
16047
|
+
object({
|
|
16048
|
+
kind: literal("ids"),
|
|
16049
|
+
ids: array(number().int()).min(1)
|
|
16050
|
+
}),
|
|
16051
|
+
object({
|
|
16052
|
+
kind: literal("types"),
|
|
16053
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16054
|
+
}),
|
|
16055
|
+
object({
|
|
16056
|
+
kind: literal("locations"),
|
|
16057
|
+
locations: array(string$2().min(1)).min(1)
|
|
16058
|
+
})
|
|
16059
|
+
]);
|
|
16060
|
+
var DeviceTokenScopeSchema = object({
|
|
16061
|
+
type: literal("device"),
|
|
16062
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16063
|
+
selector: DeviceSelectorSchema,
|
|
16064
|
+
access: array(MethodAccessSchema).min(1),
|
|
16065
|
+
/**
|
|
16066
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16067
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16068
|
+
* Direction is parent → children ONLY.
|
|
16069
|
+
*
|
|
16070
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16071
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16072
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16073
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16074
|
+
* explicitly to override that default per grant.
|
|
16075
|
+
*/
|
|
16076
|
+
includeLinked: boolean().optional()
|
|
16077
|
+
});
|
|
16078
|
+
/**
|
|
16079
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16080
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16081
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16082
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16083
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16084
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16085
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16086
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16087
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16088
|
+
*/
|
|
16089
|
+
function migrateLegacyTokenScope(raw) {
|
|
16090
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16091
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16092
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16093
|
+
const targets = Reflect.get(raw, "targets");
|
|
16094
|
+
if (!Array.isArray(targets)) return raw;
|
|
16095
|
+
return {
|
|
16096
|
+
type: "device",
|
|
16097
|
+
selector: {
|
|
16098
|
+
kind: "ids",
|
|
16099
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16100
|
+
},
|
|
16101
|
+
access: Reflect.get(raw, "access")
|
|
16102
|
+
};
|
|
16103
|
+
}
|
|
16104
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15554
16105
|
object({
|
|
15555
16106
|
type: literal("category"),
|
|
15556
16107
|
target: CapScopeSchema,
|
|
@@ -15566,18 +16117,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15566
16117
|
target: string$2(),
|
|
15567
16118
|
access: array(MethodAccessSchema).min(1)
|
|
15568
16119
|
}),
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
/**
|
|
15572
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15573
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15574
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15575
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15576
|
-
*/
|
|
15577
|
-
targets: array(string$2()).min(1),
|
|
15578
|
-
access: array(MethodAccessSchema).min(1)
|
|
15579
|
-
})
|
|
15580
|
-
]);
|
|
16120
|
+
DeviceTokenScopeSchema
|
|
16121
|
+
]));
|
|
15581
16122
|
object({
|
|
15582
16123
|
id: string$2(),
|
|
15583
16124
|
username: string$2(),
|
|
@@ -15894,7 +16435,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15894
16435
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15895
16436
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15896
16437
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15897
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16438
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15898
16439
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15899
16440
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15900
16441
|
* (`getObjectEvents` et al.).
|
|
@@ -16030,7 +16571,21 @@ union([literal(1), literal(2)]);
|
|
|
16030
16571
|
var LabelAttributionSchema = object({
|
|
16031
16572
|
stepId: string$2(),
|
|
16032
16573
|
modelId: string$2().optional(),
|
|
16033
|
-
decidedAt: number()
|
|
16574
|
+
decidedAt: number(),
|
|
16575
|
+
/**
|
|
16576
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16577
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16578
|
+
*
|
|
16579
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16580
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16581
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16582
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16583
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16584
|
+
*
|
|
16585
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16586
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16587
|
+
*/
|
|
16588
|
+
identityId: string$2().optional()
|
|
16034
16589
|
});
|
|
16035
16590
|
/**
|
|
16036
16591
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16167,6 +16722,28 @@ var TrackSchema = object({
|
|
|
16167
16722
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16168
16723
|
*/
|
|
16169
16724
|
hasFace: boolean().optional(),
|
|
16725
|
+
/**
|
|
16726
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16727
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16728
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16729
|
+
*
|
|
16730
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16731
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16732
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16733
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16734
|
+
* stop. This is the composition note that makes the row true.
|
|
16735
|
+
*
|
|
16736
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16737
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16738
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16739
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16740
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16741
|
+
*
|
|
16742
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16743
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16744
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16745
|
+
*/
|
|
16746
|
+
hasRider: boolean().optional(),
|
|
16170
16747
|
...TrackFlagFields,
|
|
16171
16748
|
...TrackRetrainFields
|
|
16172
16749
|
});
|
|
@@ -16516,7 +17093,10 @@ var RecentTracksQueryInput = object({
|
|
|
16516
17093
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16517
17094
|
cursor: string$2().optional(),
|
|
16518
17095
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16519
|
-
projection: TrackProjectionSchema.optional()
|
|
17096
|
+
projection: TrackProjectionSchema.optional(),
|
|
17097
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
17098
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
17099
|
+
includeStationary: boolean().optional()
|
|
16520
17100
|
});
|
|
16521
17101
|
var RecentTracksPageSchema = object({
|
|
16522
17102
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16734,7 +17314,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16734
17314
|
zone: TrackZoneFilterSchema.optional(),
|
|
16735
17315
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16736
17316
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16737
|
-
projection: TrackProjectionSchema.optional()
|
|
17317
|
+
projection: TrackProjectionSchema.optional(),
|
|
17318
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
17319
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
17320
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
17321
|
+
includeStationary: boolean().optional()
|
|
16738
17322
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16739
17323
|
kind: "mutation",
|
|
16740
17324
|
auth: "admin"
|
|
@@ -16898,11 +17482,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16898
17482
|
auth: "admin"
|
|
16899
17483
|
}), method(object({
|
|
16900
17484
|
eventId: string$2(),
|
|
16901
|
-
kind: MediaFileKindEnum.optional()
|
|
17485
|
+
kind: MediaFileKindEnum.optional(),
|
|
17486
|
+
deviceId: number()
|
|
17487
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17488
|
+
trackId: string$2(),
|
|
17489
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17490
|
+
deviceId: number()
|
|
16902
17491
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16903
17492
|
trackId: string$2(),
|
|
16904
|
-
|
|
16905
|
-
}), array(
|
|
17493
|
+
deviceId: number()
|
|
17494
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16906
17495
|
kind: "mutation",
|
|
16907
17496
|
auth: "admin"
|
|
16908
17497
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17602,6 +18191,17 @@ var maxSessionHoldMsField = {
|
|
|
17602
18191
|
default: 12e4,
|
|
17603
18192
|
step: 5e3
|
|
17604
18193
|
};
|
|
18194
|
+
/**
|
|
18195
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18196
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18197
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18198
|
+
*/
|
|
18199
|
+
var audioMotionWindowMsField = {
|
|
18200
|
+
min: 5e3,
|
|
18201
|
+
max: 6e5,
|
|
18202
|
+
default: 9e4,
|
|
18203
|
+
step: 5e3
|
|
18204
|
+
};
|
|
17605
18205
|
var motionFpsField = {
|
|
17606
18206
|
min: 1,
|
|
17607
18207
|
max: 30,
|
|
@@ -17614,10 +18214,26 @@ var detectionFpsField = {
|
|
|
17614
18214
|
default: 10,
|
|
17615
18215
|
step: 1
|
|
17616
18216
|
};
|
|
18217
|
+
/**
|
|
18218
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18219
|
+
*
|
|
18220
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18221
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18222
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18223
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18224
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18225
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18226
|
+
*
|
|
18227
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18228
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18229
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18230
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18231
|
+
* that ships with an addon deploy.
|
|
18232
|
+
*/
|
|
17617
18233
|
var occupancyRecheckSecField = {
|
|
17618
18234
|
min: 0,
|
|
17619
18235
|
max: 300,
|
|
17620
|
-
default:
|
|
18236
|
+
default: 300,
|
|
17621
18237
|
step: 5
|
|
17622
18238
|
};
|
|
17623
18239
|
var occupancyRecheckFramesField = {
|
|
@@ -17762,6 +18378,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17762
18378
|
* resolved `CameraDetectionConfig`.
|
|
17763
18379
|
*/
|
|
17764
18380
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18381
|
+
/**
|
|
18382
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18383
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18384
|
+
*
|
|
18385
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18386
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18387
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18388
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18389
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18390
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18391
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18392
|
+
*
|
|
18393
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18394
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18395
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18396
|
+
*
|
|
18397
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18398
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18399
|
+
* `maxSessionHoldMs`.
|
|
18400
|
+
*/
|
|
18401
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17765
18402
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17766
18403
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17767
18404
|
motionStreamId: string$2(),
|
|
@@ -17815,15 +18452,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17815
18452
|
*/
|
|
17816
18453
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17817
18454
|
/**
|
|
17818
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17819
|
-
*
|
|
17820
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17821
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17822
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18455
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18456
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17823
18457
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17824
18458
|
* (and only render) when this is enabled.
|
|
18459
|
+
*
|
|
18460
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18461
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18462
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18463
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18464
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18465
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18466
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18467
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17825
18468
|
*/
|
|
17826
|
-
occupancyRecheckEnabled: boolean().default(
|
|
18469
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17827
18470
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17828
18471
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17829
18472
|
/**
|
|
@@ -17851,7 +18494,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17851
18494
|
*/
|
|
17852
18495
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17853
18496
|
});
|
|
17854
|
-
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;
|
|
18497
|
+
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;
|
|
17855
18498
|
/**
|
|
17856
18499
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17857
18500
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18867,7 +19510,16 @@ targets: array(object({
|
|
|
18867
19510
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18868
19511
|
* NOT refresh in the background. A surface should say so rather than
|
|
18869
19512
|
* present it as current. */
|
|
18870
|
-
sleeping: boolean()
|
|
19513
|
+
sleeping: boolean(),
|
|
19514
|
+
/** Current device state rendered over the cached frame. State images
|
|
19515
|
+
* remain authoritative even when their photographic background is
|
|
19516
|
+
* old; null means the link must carry a current camera frame. */
|
|
19517
|
+
stateReason: _enum([
|
|
19518
|
+
"disabled",
|
|
19519
|
+
"sleeping",
|
|
19520
|
+
"unreachable",
|
|
19521
|
+
"waking"
|
|
19522
|
+
]).nullable()
|
|
18871
19523
|
})));
|
|
18872
19524
|
/**
|
|
18873
19525
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -20521,6 +21173,25 @@ var BatteryStatusSchema = object({
|
|
|
20521
21173
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20522
21174
|
lastUpdated: number(),
|
|
20523
21175
|
/**
|
|
21176
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
21177
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
21178
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
21179
|
+
*
|
|
21180
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
21181
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
21182
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
21183
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
21184
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
21185
|
+
*
|
|
21186
|
+
* It is deliberately NOT a clock in the
|
|
21187
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
21188
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
21189
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
21190
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
21191
|
+
* SQLite commit per round-trip.
|
|
21192
|
+
*/
|
|
21193
|
+
lastContactAt: number().optional(),
|
|
21194
|
+
/**
|
|
20524
21195
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20525
21196
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20526
21197
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -22802,54 +23473,139 @@ var TalkAudioCodecSchema = _enum([
|
|
|
22802
23473
|
"g711ulaw",
|
|
22803
23474
|
"g711alaw"
|
|
22804
23475
|
]);
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
}),
|
|
22819
|
-
|
|
22820
|
-
|
|
22821
|
-
}),
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
}),
|
|
22825
|
-
|
|
22826
|
-
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
|
-
|
|
22836
|
-
|
|
22837
|
-
|
|
22838
|
-
|
|
22839
|
-
|
|
22840
|
-
|
|
22841
|
-
|
|
22842
|
-
|
|
22843
|
-
|
|
22844
|
-
|
|
22845
|
-
|
|
22846
|
-
|
|
22847
|
-
|
|
22848
|
-
|
|
22849
|
-
|
|
22850
|
-
|
|
22851
|
-
|
|
22852
|
-
|
|
23476
|
+
var intercomCapability = {
|
|
23477
|
+
name: "intercom",
|
|
23478
|
+
scope: "device",
|
|
23479
|
+
deviceNative: true,
|
|
23480
|
+
mode: "singleton",
|
|
23481
|
+
deviceTypes: [DeviceType.Camera],
|
|
23482
|
+
methods: {
|
|
23483
|
+
/**
|
|
23484
|
+
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
23485
|
+
* offer with a single sendonly audio m-line the client answers
|
|
23486
|
+
* (client → server direction). The server wakes battery cams
|
|
23487
|
+
* transparently before opening the upstream talk channel.
|
|
23488
|
+
*/
|
|
23489
|
+
startSession: method(object({ deviceId: number() }), object({
|
|
23490
|
+
sessionId: string$2(),
|
|
23491
|
+
sdpOffer: string$2()
|
|
23492
|
+
}), {
|
|
23493
|
+
kind: "mutation",
|
|
23494
|
+
auth: "admin"
|
|
23495
|
+
}),
|
|
23496
|
+
handleAnswer: method(object({
|
|
23497
|
+
deviceId: number(),
|
|
23498
|
+
sessionId: string$2(),
|
|
23499
|
+
sdpAnswer: string$2()
|
|
23500
|
+
}), _void(), {
|
|
23501
|
+
kind: "mutation",
|
|
23502
|
+
auth: "admin"
|
|
23503
|
+
}),
|
|
23504
|
+
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
23505
|
+
stopSession: method(object({
|
|
23506
|
+
deviceId: number(),
|
|
23507
|
+
sessionId: string$2()
|
|
23508
|
+
}), _void(), {
|
|
23509
|
+
kind: "mutation",
|
|
23510
|
+
auth: "admin"
|
|
23511
|
+
}),
|
|
23512
|
+
/**
|
|
23513
|
+
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
23514
|
+
* non-WebRTC consumers (HomeKit export, Alexa raw audio, test
|
|
23515
|
+
* harnesses) that already have decoded PCM frames and just need a
|
|
23516
|
+
* direct path onto the camera's talk channel. Mutually exclusive
|
|
23517
|
+
* with `startSession` (an active WebRTC session must be stopped
|
|
23518
|
+
* before a raw-PCM session can be opened on the same device, and
|
|
23519
|
+
* vice versa).
|
|
23520
|
+
*/
|
|
23521
|
+
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string$2() }), {
|
|
23522
|
+
kind: "mutation",
|
|
23523
|
+
auth: "admin"
|
|
23524
|
+
}),
|
|
23525
|
+
/**
|
|
23526
|
+
* Push one chunk of talk-back audio onto the active talk session.
|
|
23527
|
+
* The cap is codec-agnostic: the caller declares (or omits) the
|
|
23528
|
+
* wire format via `codec`; the provider decides between passthrough
|
|
23529
|
+
* (when the wire codec matches the camera's native talk channel),
|
|
23530
|
+
* transcoding via the `audio-codec` cap, or rejecting the call.
|
|
23531
|
+
*
|
|
23532
|
+
* Callers do NOT need to know the camera's wire format or sample
|
|
23533
|
+
* rate — that information lives entirely inside the provider.
|
|
23534
|
+
*
|
|
23535
|
+
* Sequence numbers MUST be monotonic per talk session; older frames
|
|
23536
|
+
* arriving after newer ones are dropped to avoid smearing the
|
|
23537
|
+
* downstream encoder state (G.711 is stateless but IMA ADPCM's
|
|
23538
|
+
* predictor would corrupt with re-ordering).
|
|
23539
|
+
*/
|
|
23540
|
+
pushTalkAudio: method(object({
|
|
23541
|
+
deviceId: number(),
|
|
23542
|
+
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
23543
|
+
* survives tRPC JSON serialization. */
|
|
23544
|
+
audioBase64: string$2(),
|
|
23545
|
+
/** Wire codec of the payload. Omit to let the provider default
|
|
23546
|
+
* to its native expected format (s16le @ provider-native rate,
|
|
23547
|
+
* mono). See {@link TalkAudioCodecSchema} for the supported set. */
|
|
23548
|
+
codec: TalkAudioCodecSchema.optional(),
|
|
23549
|
+
/** Sample rate (Hz). REQUIRED for `s16le`; advisory for
|
|
23550
|
+
* `opus` (encoder clock); ignored for `g711*` (implied 8000). */
|
|
23551
|
+
sampleRate: number().int().positive().optional(),
|
|
23552
|
+
/** Channel count. Default 1. */
|
|
23553
|
+
channels: number().int().positive().optional(),
|
|
23554
|
+
/** Sequence number for ordering / dropping out-of-order frames. */
|
|
23555
|
+
sequenceNumber: number().int()
|
|
23556
|
+
}), object({ accepted: boolean() }), {
|
|
23557
|
+
kind: "mutation",
|
|
23558
|
+
auth: "admin"
|
|
23559
|
+
}),
|
|
23560
|
+
/** Close the raw-PCM talk session. Idempotent. */
|
|
23561
|
+
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
23562
|
+
kind: "mutation",
|
|
23563
|
+
auth: "admin"
|
|
23564
|
+
})
|
|
23565
|
+
},
|
|
23566
|
+
events: { onStatusChanged: { data: object({
|
|
23567
|
+
deviceId: number(),
|
|
23568
|
+
status: IntercomStatusSchema
|
|
23569
|
+
}) } },
|
|
23570
|
+
status: {
|
|
23571
|
+
schema: IntercomStatusSchema,
|
|
23572
|
+
kind: "command-driven"
|
|
23573
|
+
},
|
|
23574
|
+
/**
|
|
23575
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
23576
|
+
*
|
|
23577
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
23578
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
23579
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
23580
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
23581
|
+
* have been published and never received a value, which is the defect the
|
|
23582
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
23583
|
+
* `intercom` was excluded rather than exported.
|
|
23584
|
+
*
|
|
23585
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
23586
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
23587
|
+
* come to disagree. Providers write it through
|
|
23588
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
23589
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
23590
|
+
* the first session rather than after it.
|
|
23591
|
+
*
|
|
23592
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
23593
|
+
* session handle, so a session torn down by a transport death that never
|
|
23594
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
23595
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
23596
|
+
* `restored` — a restart must never restore "talking".
|
|
23597
|
+
*/
|
|
23598
|
+
runtimeState: IntercomStatusSchema,
|
|
23599
|
+
/**
|
|
23600
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
23601
|
+
* session, which by definition does not survive the process that held it.
|
|
23602
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
23603
|
+
*
|
|
23604
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23605
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23606
|
+
*/
|
|
23607
|
+
durability: "session"
|
|
23608
|
+
};
|
|
22853
23609
|
/**
|
|
22854
23610
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
22855
23611
|
* with a mowing lifecycle plus a dock action.
|
|
@@ -25546,7 +26302,7 @@ method(object({
|
|
|
25546
26302
|
toMs: number()
|
|
25547
26303
|
}), RecordingAvailabilitySchema, {
|
|
25548
26304
|
kind: "query",
|
|
25549
|
-
auth: "
|
|
26305
|
+
auth: "protected"
|
|
25550
26306
|
}), method(object({
|
|
25551
26307
|
deviceId: number(),
|
|
25552
26308
|
fromMs: number(),
|
|
@@ -25554,14 +26310,14 @@ method(object({
|
|
|
25554
26310
|
tzOffsetMinutes: number()
|
|
25555
26311
|
}), RecordingDaysSchema, {
|
|
25556
26312
|
kind: "query",
|
|
25557
|
-
auth: "
|
|
26313
|
+
auth: "protected"
|
|
25558
26314
|
}), method(object({
|
|
25559
26315
|
deviceId: number(),
|
|
25560
26316
|
fromMs: number(),
|
|
25561
26317
|
toMs: number()
|
|
25562
26318
|
}), RecordingManifestSchema, {
|
|
25563
26319
|
kind: "query",
|
|
25564
|
-
auth: "
|
|
26320
|
+
auth: "protected"
|
|
25565
26321
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
25566
26322
|
kind: "query",
|
|
25567
26323
|
auth: "admin"
|
|
@@ -25851,14 +26607,77 @@ method(object({
|
|
|
25851
26607
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
25852
26608
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
25853
26609
|
*
|
|
25854
|
-
*
|
|
25855
|
-
*
|
|
25856
|
-
*
|
|
25857
|
-
*
|
|
26610
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
26611
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
26612
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
26613
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
26614
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
26615
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
26616
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
26617
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
26618
|
+
*
|
|
26619
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
26620
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
26621
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
26622
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
26623
|
+
*
|
|
26624
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
26625
|
+
* availability change; consumers never poll.
|
|
25858
26626
|
*/
|
|
25859
|
-
/** Extensible condition tag. Seeded 'day' | '
|
|
25860
|
-
*
|
|
26627
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26628
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26629
|
+
* Open by design so more can be added without a wire break.
|
|
26630
|
+
*
|
|
26631
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26632
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26633
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26634
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
25861
26635
|
var SceneConditionSchema = string$2();
|
|
26636
|
+
/**
|
|
26637
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
26638
|
+
*
|
|
26639
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
26640
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
26641
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
26642
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
26643
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
26644
|
+
* working without it rather than degrading into a permanent complaint.
|
|
26645
|
+
*
|
|
26646
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
26647
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
26648
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
26649
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
26650
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
26651
|
+
* configuration choice instead of a nightly fault.
|
|
26652
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
26653
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
26654
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
26655
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
26656
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
26657
|
+
*
|
|
26658
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
26659
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
26660
|
+
* there would hide a scene the operator never finished setting up.
|
|
26661
|
+
*/
|
|
26662
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
26663
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26664
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26665
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26666
|
+
* and never counts toward hysteresis in either direction. */
|
|
26667
|
+
var SceneVerdictSchema = _enum([
|
|
26668
|
+
"matched",
|
|
26669
|
+
"diverged",
|
|
26670
|
+
"unknown"
|
|
26671
|
+
]);
|
|
26672
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26673
|
+
* silence that reads as "nothing has happened". */
|
|
26674
|
+
var SceneUnavailableSchema = _enum([
|
|
26675
|
+
"no-reference-for-condition",
|
|
26676
|
+
"view-shifted",
|
|
26677
|
+
"no-vision-profile",
|
|
26678
|
+
"encoder-model-changed",
|
|
26679
|
+
"no-snapshot"
|
|
26680
|
+
]);
|
|
25862
26681
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
25863
26682
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
25864
26683
|
var SceneReferenceSchema = object({
|
|
@@ -25866,7 +26685,14 @@ var SceneReferenceSchema = object({
|
|
|
25866
26685
|
modelId: string$2(),
|
|
25867
26686
|
condition: SceneConditionSchema,
|
|
25868
26687
|
capturedAt: number(),
|
|
25869
|
-
thumbnailMediaId: string$2().optional()
|
|
26688
|
+
thumbnailMediaId: string$2().optional(),
|
|
26689
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26690
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26691
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26692
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26693
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26694
|
+
* transition, not per poll. */
|
|
26695
|
+
anchorEmbedding: array(number()).optional()
|
|
25870
26696
|
});
|
|
25871
26697
|
var SceneMonitorStateSchema = object({
|
|
25872
26698
|
id: string$2(),
|
|
@@ -25888,6 +26714,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
25888
26714
|
profileId: string$2().optional(),
|
|
25889
26715
|
hysteresisCount: number().int().positive()
|
|
25890
26716
|
})]);
|
|
26717
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26718
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
26719
|
+
* out in silence rather than reporting a fault every night. */
|
|
26720
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
26721
|
+
/**
|
|
26722
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26723
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26724
|
+
*
|
|
26725
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26726
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26727
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26728
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26729
|
+
*/
|
|
26730
|
+
var SceneConfirmSchema = object({
|
|
26731
|
+
enabled: boolean().default(false),
|
|
26732
|
+
prompt: string$2().min(1).max(1e3),
|
|
26733
|
+
profileId: string$2().optional(),
|
|
26734
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
26735
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
26736
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
26737
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
26738
|
+
});
|
|
25891
26739
|
var SceneMonitorSchema = object({
|
|
25892
26740
|
id: string$2(),
|
|
25893
26741
|
label: string$2(),
|
|
@@ -25906,7 +26754,56 @@ var SceneMonitorSchema = object({
|
|
|
25906
26754
|
lastConfidence: number().nullable(),
|
|
25907
26755
|
currentCondition: SceneConditionSchema.nullable(),
|
|
25908
26756
|
availability: _enum(["ok", "unavailable"]),
|
|
25909
|
-
unavailableReason: string$2().nullable()
|
|
26757
|
+
unavailableReason: string$2().nullable(),
|
|
26758
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
26759
|
+
baselineStateId: string$2().nullable(),
|
|
26760
|
+
/** Which boolean drives notification rules and any export. */
|
|
26761
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
26762
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
26763
|
+
verdict: SceneVerdictSchema,
|
|
26764
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
26765
|
+
latched: boolean(),
|
|
26766
|
+
/** Last reset (or creation). */
|
|
26767
|
+
armedAt: number(),
|
|
26768
|
+
divergedAt: number().nullable(),
|
|
26769
|
+
restoredAt: number().nullable(),
|
|
26770
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
26771
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
26772
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
26773
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
26774
|
+
/** An observation only advances the pending count when it is at least this
|
|
26775
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
26776
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
26777
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
26778
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
26779
|
+
confirm: SceneConfirmSchema.optional(),
|
|
26780
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
26781
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
26782
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
26783
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
26784
|
+
* automation can react to the bin coming back without the operator's own
|
|
26785
|
+
* alarm silently clearing itself. */
|
|
26786
|
+
autoRestore: boolean().default(false),
|
|
26787
|
+
/** What to do when the current light has no reference of its own. See
|
|
26788
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
26789
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
26790
|
+
/**
|
|
26791
|
+
* The light whose checks are currently being SAT OUT under
|
|
26792
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
26793
|
+
*
|
|
26794
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
26795
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
26796
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
26797
|
+
* line, because the alternative is a scene that silently stops answering
|
|
26798
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
26799
|
+
* read as a broken one.
|
|
26800
|
+
*/
|
|
26801
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
26802
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
26803
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
26804
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
26805
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
26806
|
+
coveredConditions: array(SceneConditionSchema)
|
|
25910
26807
|
});
|
|
25911
26808
|
var SceneMonitorStatusSchema = object({
|
|
25912
26809
|
monitors: array(SceneMonitorSchema),
|
|
@@ -25919,12 +26816,6 @@ var sceneMonitorCapability = {
|
|
|
25919
26816
|
kind: "wrapper",
|
|
25920
26817
|
defaultActive: true,
|
|
25921
26818
|
deviceTypes: [DeviceType.Camera],
|
|
25922
|
-
deviceConfig: { ui: {
|
|
25923
|
-
kind: "widget",
|
|
25924
|
-
widgetId: "host/scene-monitor-editor",
|
|
25925
|
-
tab: "scenes",
|
|
25926
|
-
label: "Scenes"
|
|
25927
|
-
} },
|
|
25928
26819
|
methods: {
|
|
25929
26820
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
25930
26821
|
createScene: method(object({
|
|
@@ -25955,7 +26846,15 @@ var sceneMonitorCapability = {
|
|
|
25955
26846
|
"both"
|
|
25956
26847
|
]).optional(),
|
|
25957
26848
|
checkIntervalSec: number().optional(),
|
|
25958
|
-
check: SceneCheckSchema.optional()
|
|
26849
|
+
check: SceneCheckSchema.optional(),
|
|
26850
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
26851
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
26852
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
26853
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
26854
|
+
autoRestore: boolean().optional(),
|
|
26855
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
26856
|
+
/** `null` clears the vision-model adjudicator. */
|
|
26857
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
25959
26858
|
})
|
|
25960
26859
|
}), _void(), {
|
|
25961
26860
|
kind: "mutation",
|
|
@@ -25996,6 +26895,26 @@ var sceneMonitorCapability = {
|
|
|
25996
26895
|
}), _void(), {
|
|
25997
26896
|
kind: "mutation",
|
|
25998
26897
|
auth: "admin"
|
|
26898
|
+
}),
|
|
26899
|
+
/**
|
|
26900
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
26901
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
26902
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
26903
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
26904
|
+
* instead of failing silently weeks later.
|
|
26905
|
+
*
|
|
26906
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
26907
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
26908
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
26909
|
+
*/
|
|
26910
|
+
resetScene: method(object({
|
|
26911
|
+
deviceId: number(),
|
|
26912
|
+
monitorId: string$2(),
|
|
26913
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
26914
|
+
recapture: boolean().optional()
|
|
26915
|
+
}), _void(), {
|
|
26916
|
+
kind: "mutation",
|
|
26917
|
+
auth: "admin"
|
|
25999
26918
|
})
|
|
26000
26919
|
},
|
|
26001
26920
|
status: {
|
|
@@ -26232,7 +27151,70 @@ var CamStreamDescriptorSchema = object({
|
|
|
26232
27151
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
26233
27152
|
metadata: record(string$2(), unknown()).optional()
|
|
26234
27153
|
});
|
|
26235
|
-
|
|
27154
|
+
/**
|
|
27155
|
+
* `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
|
|
27156
|
+
* of the removed `publishCameraStream` push: a camera provider returns the full
|
|
27157
|
+
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
27158
|
+
* broker can reconcile its registry against the authoritative provider state.
|
|
27159
|
+
*/
|
|
27160
|
+
/**
|
|
27161
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
27162
|
+
*
|
|
27163
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
27164
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
27165
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
27166
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
27167
|
+
* every later pull from a cache.
|
|
27168
|
+
*
|
|
27169
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
27170
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
27171
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
27172
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
27173
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
27174
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
27175
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
27176
|
+
*
|
|
27177
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
27178
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
27179
|
+
* the same reason: the last known value is the only value there is while the
|
|
27180
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
27181
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
27182
|
+
*/
|
|
27183
|
+
var StreamCatalogStateSchema = object({
|
|
27184
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
27185
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
27186
|
+
* one the camera itself once produced. */
|
|
27187
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
27188
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
27189
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
27190
|
+
* re-read. */
|
|
27191
|
+
lastFetchedAt: number()
|
|
27192
|
+
});
|
|
27193
|
+
var streamCatalogCapability = {
|
|
27194
|
+
name: "stream-catalog",
|
|
27195
|
+
scope: "device",
|
|
27196
|
+
deviceNative: true,
|
|
27197
|
+
mode: "singleton",
|
|
27198
|
+
deviceTypes: [DeviceType.Camera],
|
|
27199
|
+
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
|
|
27200
|
+
runtimeState: StreamCatalogStateSchema,
|
|
27201
|
+
/**
|
|
27202
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
27203
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
27204
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
27205
|
+
*
|
|
27206
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
27207
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
27208
|
+
* a day old and the camera is awake anyway).
|
|
27209
|
+
*
|
|
27210
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27211
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27212
|
+
*/
|
|
27213
|
+
durability: "restored",
|
|
27214
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
27215
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
27216
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27217
|
+
};
|
|
26236
27218
|
/** One of the camera's stream profiles. */
|
|
26237
27219
|
var StreamProfileSchema = _enum([
|
|
26238
27220
|
"main",
|
|
@@ -26486,12 +27468,64 @@ var NetworkAddressSchema = object({
|
|
|
26486
27468
|
family: string$2(),
|
|
26487
27469
|
internal: boolean()
|
|
26488
27470
|
});
|
|
27471
|
+
/**
|
|
27472
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
27473
|
+
* numbers.
|
|
27474
|
+
*
|
|
27475
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
27476
|
+
* nothing overwrites it.
|
|
27477
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
27478
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
27479
|
+
* the sun-times consumers otherwise fall back to.
|
|
27480
|
+
*
|
|
27481
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
27482
|
+
* own input will eventually trust the guess.
|
|
27483
|
+
*/
|
|
27484
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
27485
|
+
/**
|
|
27486
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
27487
|
+
*
|
|
27488
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
27489
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
27490
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
27491
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
27492
|
+
* coordinates or presses detect.
|
|
27493
|
+
*/
|
|
27494
|
+
var SiteLocationStatusSchema = object({
|
|
27495
|
+
location: object({
|
|
27496
|
+
/** WGS84 decimal degrees. */
|
|
27497
|
+
latitude: number().min(-90).max(90),
|
|
27498
|
+
longitude: number().min(-180).max(180),
|
|
27499
|
+
source: SiteLocationSourceSchema,
|
|
27500
|
+
/** Epoch ms the value was last written. */
|
|
27501
|
+
updatedAt: number(),
|
|
27502
|
+
/**
|
|
27503
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
27504
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
27505
|
+
*/
|
|
27506
|
+
label: string$2().optional()
|
|
27507
|
+
}).nullable(),
|
|
27508
|
+
derivationAttemptedAt: number().nullable(),
|
|
27509
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
27510
|
+
derivationError: string$2().nullable()
|
|
27511
|
+
});
|
|
27512
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
27513
|
+
var SetSiteLocationInputSchema = object({
|
|
27514
|
+
latitude: number().min(-90).max(90),
|
|
27515
|
+
longitude: number().min(-180).max(180)
|
|
27516
|
+
}).nullable();
|
|
26489
27517
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string$2(), unknown()), _null(), {
|
|
26490
27518
|
kind: "mutation",
|
|
26491
27519
|
auth: "admin"
|
|
26492
27520
|
}), method(_void(), _void(), {
|
|
26493
27521
|
kind: "mutation",
|
|
26494
27522
|
auth: "admin"
|
|
27523
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
27524
|
+
kind: "mutation",
|
|
27525
|
+
auth: "admin"
|
|
27526
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
27527
|
+
kind: "mutation",
|
|
27528
|
+
auth: "admin"
|
|
26495
27529
|
});
|
|
26496
27530
|
/**
|
|
26497
27531
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -27811,6 +28845,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27811
28845
|
humiditySensor: humiditySensorCapability,
|
|
27812
28846
|
image: imageCapability,
|
|
27813
28847
|
imageSettings: imageSettingsCapability,
|
|
28848
|
+
intercom: intercomCapability,
|
|
27814
28849
|
lawnMowerControl: lawnMowerControlCapability,
|
|
27815
28850
|
lockControl: lockControlCapability,
|
|
27816
28851
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -27829,6 +28864,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27829
28864
|
sceneMonitor: sceneMonitorCapability,
|
|
27830
28865
|
scriptRunner: scriptRunnerCapability,
|
|
27831
28866
|
smoke: smokeCapability,
|
|
28867
|
+
streamCatalog: streamCatalogCapability,
|
|
27832
28868
|
streamParams: streamParamsCapability,
|
|
27833
28869
|
switch: switchCapability,
|
|
27834
28870
|
tamper: tamperCapability,
|
|
@@ -28482,6 +29518,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28482
29518
|
labels: ["probe not implemented"]
|
|
28483
29519
|
};
|
|
28484
29520
|
}
|
|
29521
|
+
/**
|
|
29522
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
29523
|
+
*
|
|
29524
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
29525
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
29526
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
29527
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
29528
|
+
*/
|
|
29529
|
+
restoreConcurrency = 4;
|
|
28485
29530
|
async restoreDevices(savedDevices) {
|
|
28486
29531
|
await this.onRestoreDevices(savedDevices);
|
|
28487
29532
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -28513,15 +29558,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28513
29558
|
*/
|
|
28514
29559
|
async onRestoreDevices(savedDevices) {
|
|
28515
29560
|
const restored = /* @__PURE__ */ new Set();
|
|
28516
|
-
|
|
28517
|
-
|
|
29561
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
29562
|
+
const restoreOne = async (saved) => {
|
|
28518
29563
|
const Class = this.deviceClasses[saved.type];
|
|
28519
29564
|
if (!Class) {
|
|
28520
29565
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
28521
29566
|
tags: { stableId: saved.stableId },
|
|
28522
29567
|
meta: { type: saved.type }
|
|
28523
29568
|
});
|
|
28524
|
-
|
|
29569
|
+
return;
|
|
28525
29570
|
}
|
|
28526
29571
|
try {
|
|
28527
29572
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -28535,7 +29580,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28535
29580
|
}
|
|
28536
29581
|
});
|
|
28537
29582
|
}
|
|
28538
|
-
}
|
|
29583
|
+
};
|
|
29584
|
+
let nextTopLevel = 0;
|
|
29585
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
29586
|
+
for (;;) {
|
|
29587
|
+
const saved = topLevel[nextTopLevel++];
|
|
29588
|
+
if (saved === void 0) return;
|
|
29589
|
+
await restoreOne(saved);
|
|
29590
|
+
}
|
|
29591
|
+
}));
|
|
28539
29592
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
28540
29593
|
for (const saved of childRows) {
|
|
28541
29594
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -30626,6 +31679,12 @@ Object.freeze({
|
|
|
30626
31679
|
addonId: null,
|
|
30627
31680
|
access: "create"
|
|
30628
31681
|
},
|
|
31682
|
+
"llm.cancel": {
|
|
31683
|
+
capName: "llm",
|
|
31684
|
+
capScope: "system",
|
|
31685
|
+
addonId: null,
|
|
31686
|
+
access: "create"
|
|
31687
|
+
},
|
|
30629
31688
|
"llm.deleteModel": {
|
|
30630
31689
|
capName: "llm",
|
|
30631
31690
|
capScope: "system",
|
|
@@ -30710,6 +31769,12 @@ Object.freeze({
|
|
|
30710
31769
|
addonId: null,
|
|
30711
31770
|
access: "view"
|
|
30712
31771
|
},
|
|
31772
|
+
"llm.resolveModelRef": {
|
|
31773
|
+
capName: "llm",
|
|
31774
|
+
capScope: "system",
|
|
31775
|
+
addonId: null,
|
|
31776
|
+
access: "create"
|
|
31777
|
+
},
|
|
30713
31778
|
"llm.setDefault": {
|
|
30714
31779
|
capName: "llm",
|
|
30715
31780
|
capScope: "system",
|
|
@@ -32876,6 +33941,12 @@ Object.freeze({
|
|
|
32876
33941
|
addonId: null,
|
|
32877
33942
|
access: "create"
|
|
32878
33943
|
},
|
|
33944
|
+
"sceneMonitor.resetScene": {
|
|
33945
|
+
capName: "scene-monitor",
|
|
33946
|
+
capScope: "device",
|
|
33947
|
+
addonId: null,
|
|
33948
|
+
access: "delete"
|
|
33949
|
+
},
|
|
32879
33950
|
"sceneMonitor.updateScene": {
|
|
32880
33951
|
capName: "scene-monitor",
|
|
32881
33952
|
capScope: "device",
|
|
@@ -33554,6 +34625,12 @@ Object.freeze({
|
|
|
33554
34625
|
addonId: null,
|
|
33555
34626
|
access: "create"
|
|
33556
34627
|
},
|
|
34628
|
+
"system.detectSiteLocation": {
|
|
34629
|
+
capName: "system",
|
|
34630
|
+
capScope: "system",
|
|
34631
|
+
addonId: null,
|
|
34632
|
+
access: "create"
|
|
34633
|
+
},
|
|
33557
34634
|
"system.featureFlags": {
|
|
33558
34635
|
capName: "system",
|
|
33559
34636
|
capScope: "system",
|
|
@@ -33572,6 +34649,12 @@ Object.freeze({
|
|
|
33572
34649
|
addonId: null,
|
|
33573
34650
|
access: "view"
|
|
33574
34651
|
},
|
|
34652
|
+
"system.getSiteLocation": {
|
|
34653
|
+
capName: "system",
|
|
34654
|
+
capScope: "system",
|
|
34655
|
+
addonId: null,
|
|
34656
|
+
access: "view"
|
|
34657
|
+
},
|
|
33575
34658
|
"system.health": {
|
|
33576
34659
|
capName: "system",
|
|
33577
34660
|
capScope: "system",
|
|
@@ -33596,6 +34679,12 @@ Object.freeze({
|
|
|
33596
34679
|
addonId: null,
|
|
33597
34680
|
access: "create"
|
|
33598
34681
|
},
|
|
34682
|
+
"system.setSiteLocation": {
|
|
34683
|
+
capName: "system",
|
|
34684
|
+
capScope: "system",
|
|
34685
|
+
addonId: null,
|
|
34686
|
+
access: "create"
|
|
34687
|
+
},
|
|
33599
34688
|
"terminalSession.adoptLegacyMonitor": {
|
|
33600
34689
|
capName: "terminal-session",
|
|
33601
34690
|
capScope: "system",
|
|
@@ -34167,6 +35256,1704 @@ Object.freeze({
|
|
|
34167
35256
|
access: "create"
|
|
34168
35257
|
}
|
|
34169
35258
|
});
|
|
35259
|
+
Object.freeze({
|
|
35260
|
+
"accessories.setChildHidden": [{
|
|
35261
|
+
name: "childDeviceId",
|
|
35262
|
+
form: "single",
|
|
35263
|
+
optional: false
|
|
35264
|
+
}, {
|
|
35265
|
+
name: "deviceId",
|
|
35266
|
+
form: "single",
|
|
35267
|
+
optional: false
|
|
35268
|
+
}],
|
|
35269
|
+
"addonSettings.getDeviceSettings": [{
|
|
35270
|
+
name: "deviceId",
|
|
35271
|
+
form: "single",
|
|
35272
|
+
optional: false
|
|
35273
|
+
}],
|
|
35274
|
+
"addonSettings.updateDeviceSettings": [{
|
|
35275
|
+
name: "deviceId",
|
|
35276
|
+
form: "single",
|
|
35277
|
+
optional: false
|
|
35278
|
+
}],
|
|
35279
|
+
"alarmPanel.arm": [{
|
|
35280
|
+
name: "deviceId",
|
|
35281
|
+
form: "single",
|
|
35282
|
+
optional: false
|
|
35283
|
+
}],
|
|
35284
|
+
"alarmPanel.disarm": [{
|
|
35285
|
+
name: "deviceId",
|
|
35286
|
+
form: "single",
|
|
35287
|
+
optional: false
|
|
35288
|
+
}],
|
|
35289
|
+
"alarmPanel.trigger": [{
|
|
35290
|
+
name: "deviceId",
|
|
35291
|
+
form: "single",
|
|
35292
|
+
optional: false
|
|
35293
|
+
}],
|
|
35294
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
35295
|
+
name: "deviceId",
|
|
35296
|
+
form: "single",
|
|
35297
|
+
optional: false
|
|
35298
|
+
}],
|
|
35299
|
+
"audioAnalyzer.classify": [{
|
|
35300
|
+
name: "deviceId",
|
|
35301
|
+
form: "single",
|
|
35302
|
+
optional: true
|
|
35303
|
+
}],
|
|
35304
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
35305
|
+
name: "deviceId",
|
|
35306
|
+
form: "single",
|
|
35307
|
+
optional: false
|
|
35308
|
+
}],
|
|
35309
|
+
"audioMetrics.getHistory": [{
|
|
35310
|
+
name: "deviceId",
|
|
35311
|
+
form: "single",
|
|
35312
|
+
optional: false
|
|
35313
|
+
}],
|
|
35314
|
+
"automationControl.disable": [{
|
|
35315
|
+
name: "deviceId",
|
|
35316
|
+
form: "single",
|
|
35317
|
+
optional: false
|
|
35318
|
+
}],
|
|
35319
|
+
"automationControl.enable": [{
|
|
35320
|
+
name: "deviceId",
|
|
35321
|
+
form: "single",
|
|
35322
|
+
optional: false
|
|
35323
|
+
}],
|
|
35324
|
+
"automationControl.trigger": [{
|
|
35325
|
+
name: "deviceId",
|
|
35326
|
+
form: "single",
|
|
35327
|
+
optional: false
|
|
35328
|
+
}],
|
|
35329
|
+
"battery.wakeForStream": [{
|
|
35330
|
+
name: "deviceId",
|
|
35331
|
+
form: "single",
|
|
35332
|
+
optional: false
|
|
35333
|
+
}],
|
|
35334
|
+
"brightness.setBrightness": [{
|
|
35335
|
+
name: "deviceId",
|
|
35336
|
+
form: "single",
|
|
35337
|
+
optional: false
|
|
35338
|
+
}],
|
|
35339
|
+
"button.press": [{
|
|
35340
|
+
name: "deviceId",
|
|
35341
|
+
form: "single",
|
|
35342
|
+
optional: false
|
|
35343
|
+
}],
|
|
35344
|
+
"cameraCredentials.getCredentials": [{
|
|
35345
|
+
name: "deviceId",
|
|
35346
|
+
form: "single",
|
|
35347
|
+
optional: false
|
|
35348
|
+
}],
|
|
35349
|
+
"cameraStreams.getBrokerStreams": [{
|
|
35350
|
+
name: "deviceId",
|
|
35351
|
+
form: "single",
|
|
35352
|
+
optional: false
|
|
35353
|
+
}],
|
|
35354
|
+
"cameraStreams.getCameraStreams": [{
|
|
35355
|
+
name: "deviceId",
|
|
35356
|
+
form: "single",
|
|
35357
|
+
optional: false
|
|
35358
|
+
}],
|
|
35359
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
35360
|
+
name: "deviceId",
|
|
35361
|
+
form: "single",
|
|
35362
|
+
optional: false
|
|
35363
|
+
}],
|
|
35364
|
+
"cameraStreams.getRtspEntries": [{
|
|
35365
|
+
name: "deviceId",
|
|
35366
|
+
form: "single",
|
|
35367
|
+
optional: false
|
|
35368
|
+
}],
|
|
35369
|
+
"cameraStreams.pickStream": [{
|
|
35370
|
+
name: "deviceId",
|
|
35371
|
+
form: "single",
|
|
35372
|
+
optional: false
|
|
35373
|
+
}],
|
|
35374
|
+
"climateControl.setFanMode": [{
|
|
35375
|
+
name: "deviceId",
|
|
35376
|
+
form: "single",
|
|
35377
|
+
optional: false
|
|
35378
|
+
}],
|
|
35379
|
+
"climateControl.setMode": [{
|
|
35380
|
+
name: "deviceId",
|
|
35381
|
+
form: "single",
|
|
35382
|
+
optional: false
|
|
35383
|
+
}],
|
|
35384
|
+
"climateControl.setPreset": [{
|
|
35385
|
+
name: "deviceId",
|
|
35386
|
+
form: "single",
|
|
35387
|
+
optional: false
|
|
35388
|
+
}],
|
|
35389
|
+
"climateControl.setSwingHorizontal": [{
|
|
35390
|
+
name: "deviceId",
|
|
35391
|
+
form: "single",
|
|
35392
|
+
optional: false
|
|
35393
|
+
}],
|
|
35394
|
+
"climateControl.setSwingVertical": [{
|
|
35395
|
+
name: "deviceId",
|
|
35396
|
+
form: "single",
|
|
35397
|
+
optional: false
|
|
35398
|
+
}],
|
|
35399
|
+
"climateControl.setTarget": [{
|
|
35400
|
+
name: "deviceId",
|
|
35401
|
+
form: "single",
|
|
35402
|
+
optional: false
|
|
35403
|
+
}],
|
|
35404
|
+
"climateControl.setTargetHumidity": [{
|
|
35405
|
+
name: "deviceId",
|
|
35406
|
+
form: "single",
|
|
35407
|
+
optional: false
|
|
35408
|
+
}],
|
|
35409
|
+
"climateControl.setTargetRange": [{
|
|
35410
|
+
name: "deviceId",
|
|
35411
|
+
form: "single",
|
|
35412
|
+
optional: false
|
|
35413
|
+
}],
|
|
35414
|
+
"color.setColor": [{
|
|
35415
|
+
name: "deviceId",
|
|
35416
|
+
form: "single",
|
|
35417
|
+
optional: false
|
|
35418
|
+
}],
|
|
35419
|
+
"consumables.reset": [{
|
|
35420
|
+
name: "deviceId",
|
|
35421
|
+
form: "single",
|
|
35422
|
+
optional: false
|
|
35423
|
+
}],
|
|
35424
|
+
"control.setValue": [{
|
|
35425
|
+
name: "deviceId",
|
|
35426
|
+
form: "single",
|
|
35427
|
+
optional: false
|
|
35428
|
+
}],
|
|
35429
|
+
"cover.close": [{
|
|
35430
|
+
name: "deviceId",
|
|
35431
|
+
form: "single",
|
|
35432
|
+
optional: false
|
|
35433
|
+
}],
|
|
35434
|
+
"cover.open": [{
|
|
35435
|
+
name: "deviceId",
|
|
35436
|
+
form: "single",
|
|
35437
|
+
optional: false
|
|
35438
|
+
}],
|
|
35439
|
+
"cover.setPosition": [{
|
|
35440
|
+
name: "deviceId",
|
|
35441
|
+
form: "single",
|
|
35442
|
+
optional: false
|
|
35443
|
+
}],
|
|
35444
|
+
"cover.setTiltPosition": [{
|
|
35445
|
+
name: "deviceId",
|
|
35446
|
+
form: "single",
|
|
35447
|
+
optional: false
|
|
35448
|
+
}],
|
|
35449
|
+
"cover.stop": [{
|
|
35450
|
+
name: "deviceId",
|
|
35451
|
+
form: "single",
|
|
35452
|
+
optional: false
|
|
35453
|
+
}],
|
|
35454
|
+
"dayNight.getOptions": [{
|
|
35455
|
+
name: "deviceId",
|
|
35456
|
+
form: "single",
|
|
35457
|
+
optional: false
|
|
35458
|
+
}],
|
|
35459
|
+
"dayNight.setSettings": [{
|
|
35460
|
+
name: "deviceId",
|
|
35461
|
+
form: "single",
|
|
35462
|
+
optional: false
|
|
35463
|
+
}],
|
|
35464
|
+
"decoder.createSession": [{
|
|
35465
|
+
name: "deviceId",
|
|
35466
|
+
form: "single",
|
|
35467
|
+
optional: true
|
|
35468
|
+
}],
|
|
35469
|
+
"deviceAdoption.release": [{
|
|
35470
|
+
name: "camDeviceId",
|
|
35471
|
+
form: "single",
|
|
35472
|
+
optional: false
|
|
35473
|
+
}],
|
|
35474
|
+
"deviceAdoption.resync": [{
|
|
35475
|
+
name: "camDeviceId",
|
|
35476
|
+
form: "single",
|
|
35477
|
+
optional: false
|
|
35478
|
+
}],
|
|
35479
|
+
"deviceDiscovery.adoptDevice": [{
|
|
35480
|
+
name: "deviceId",
|
|
35481
|
+
form: "single",
|
|
35482
|
+
optional: false
|
|
35483
|
+
}],
|
|
35484
|
+
"deviceDiscovery.listDiscovered": [{
|
|
35485
|
+
name: "deviceId",
|
|
35486
|
+
form: "single",
|
|
35487
|
+
optional: false
|
|
35488
|
+
}],
|
|
35489
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
35490
|
+
name: "deviceId",
|
|
35491
|
+
form: "single",
|
|
35492
|
+
optional: false
|
|
35493
|
+
}],
|
|
35494
|
+
"deviceDiscovery.releaseDevice": [{
|
|
35495
|
+
name: "childDeviceId",
|
|
35496
|
+
form: "single",
|
|
35497
|
+
optional: false
|
|
35498
|
+
}, {
|
|
35499
|
+
name: "deviceId",
|
|
35500
|
+
form: "single",
|
|
35501
|
+
optional: false
|
|
35502
|
+
}],
|
|
35503
|
+
"deviceManager.adoptionRelease": [{
|
|
35504
|
+
name: "camDeviceId",
|
|
35505
|
+
form: "single",
|
|
35506
|
+
optional: false
|
|
35507
|
+
}],
|
|
35508
|
+
"deviceManager.adoptionResync": [{
|
|
35509
|
+
name: "camDeviceId",
|
|
35510
|
+
form: "single",
|
|
35511
|
+
optional: false
|
|
35512
|
+
}],
|
|
35513
|
+
"deviceManager.applyInitialMeta": [{
|
|
35514
|
+
name: "deviceId",
|
|
35515
|
+
form: "single",
|
|
35516
|
+
optional: false
|
|
35517
|
+
}, {
|
|
35518
|
+
name: "linkDeviceId",
|
|
35519
|
+
form: "single",
|
|
35520
|
+
optional: true
|
|
35521
|
+
}],
|
|
35522
|
+
"deviceManager.disable": [{
|
|
35523
|
+
name: "deviceId",
|
|
35524
|
+
form: "single",
|
|
35525
|
+
optional: false
|
|
35526
|
+
}],
|
|
35527
|
+
"deviceManager.enable": [{
|
|
35528
|
+
name: "deviceId",
|
|
35529
|
+
form: "single",
|
|
35530
|
+
optional: false
|
|
35531
|
+
}],
|
|
35532
|
+
"deviceManager.getBindings": [{
|
|
35533
|
+
name: "deviceId",
|
|
35534
|
+
form: "single",
|
|
35535
|
+
optional: false
|
|
35536
|
+
}],
|
|
35537
|
+
"deviceManager.getChildren": [{
|
|
35538
|
+
name: "parentDeviceId",
|
|
35539
|
+
form: "single",
|
|
35540
|
+
optional: false
|
|
35541
|
+
}],
|
|
35542
|
+
"deviceManager.getConfigSchema": [{
|
|
35543
|
+
name: "deviceId",
|
|
35544
|
+
form: "single",
|
|
35545
|
+
optional: false
|
|
35546
|
+
}],
|
|
35547
|
+
"deviceManager.getDevice": [{
|
|
35548
|
+
name: "deviceId",
|
|
35549
|
+
form: "single",
|
|
35550
|
+
optional: false
|
|
35551
|
+
}],
|
|
35552
|
+
"deviceManager.getDeviceAggregate": [{
|
|
35553
|
+
name: "deviceId",
|
|
35554
|
+
form: "single",
|
|
35555
|
+
optional: false
|
|
35556
|
+
}],
|
|
35557
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
35558
|
+
name: "deviceId",
|
|
35559
|
+
form: "single",
|
|
35560
|
+
optional: false
|
|
35561
|
+
}],
|
|
35562
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
35563
|
+
name: "deviceId",
|
|
35564
|
+
form: "single",
|
|
35565
|
+
optional: false
|
|
35566
|
+
}],
|
|
35567
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
35568
|
+
name: "deviceId",
|
|
35569
|
+
form: "single",
|
|
35570
|
+
optional: false
|
|
35571
|
+
}],
|
|
35572
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
35573
|
+
name: "deviceIds",
|
|
35574
|
+
form: "array",
|
|
35575
|
+
optional: false
|
|
35576
|
+
}],
|
|
35577
|
+
"deviceManager.getLinkedDevices": [{
|
|
35578
|
+
name: "deviceId",
|
|
35579
|
+
form: "single",
|
|
35580
|
+
optional: false
|
|
35581
|
+
}],
|
|
35582
|
+
"deviceManager.getSettingsSchema": [{
|
|
35583
|
+
name: "deviceId",
|
|
35584
|
+
form: "single",
|
|
35585
|
+
optional: false
|
|
35586
|
+
}],
|
|
35587
|
+
"deviceManager.getStreamProfileMap": [{
|
|
35588
|
+
name: "deviceId",
|
|
35589
|
+
form: "single",
|
|
35590
|
+
optional: false
|
|
35591
|
+
}],
|
|
35592
|
+
"deviceManager.getStreamSources": [{
|
|
35593
|
+
name: "deviceId",
|
|
35594
|
+
form: "single",
|
|
35595
|
+
optional: false
|
|
35596
|
+
}],
|
|
35597
|
+
"deviceManager.getWireableFields": [{
|
|
35598
|
+
name: "deviceId",
|
|
35599
|
+
form: "single",
|
|
35600
|
+
optional: false
|
|
35601
|
+
}],
|
|
35602
|
+
"deviceManager.loadConfig": [{
|
|
35603
|
+
name: "deviceId",
|
|
35604
|
+
form: "single",
|
|
35605
|
+
optional: false
|
|
35606
|
+
}],
|
|
35607
|
+
"deviceManager.loadMeta": [{
|
|
35608
|
+
name: "deviceId",
|
|
35609
|
+
form: "single",
|
|
35610
|
+
optional: false
|
|
35611
|
+
}],
|
|
35612
|
+
"deviceManager.loadRuntimeState": [{
|
|
35613
|
+
name: "deviceId",
|
|
35614
|
+
form: "single",
|
|
35615
|
+
optional: false
|
|
35616
|
+
}],
|
|
35617
|
+
"deviceManager.persistConfig": [{
|
|
35618
|
+
name: "deviceId",
|
|
35619
|
+
form: "single",
|
|
35620
|
+
optional: false
|
|
35621
|
+
}],
|
|
35622
|
+
"deviceManager.probeStreams": [{
|
|
35623
|
+
name: "deviceId",
|
|
35624
|
+
form: "single",
|
|
35625
|
+
optional: false
|
|
35626
|
+
}],
|
|
35627
|
+
"deviceManager.registerDevice": [{
|
|
35628
|
+
name: "parentDeviceId",
|
|
35629
|
+
form: "single",
|
|
35630
|
+
optional: true
|
|
35631
|
+
}],
|
|
35632
|
+
"deviceManager.remove": [{
|
|
35633
|
+
name: "deviceId",
|
|
35634
|
+
form: "single",
|
|
35635
|
+
optional: false
|
|
35636
|
+
}],
|
|
35637
|
+
"deviceManager.removeDevice": [{
|
|
35638
|
+
name: "deviceId",
|
|
35639
|
+
form: "single",
|
|
35640
|
+
optional: false
|
|
35641
|
+
}],
|
|
35642
|
+
"deviceManager.runDeviceAction": [{
|
|
35643
|
+
name: "deviceId",
|
|
35644
|
+
form: "single",
|
|
35645
|
+
optional: false
|
|
35646
|
+
}],
|
|
35647
|
+
"deviceManager.setChildLayout": [{
|
|
35648
|
+
name: "deviceId",
|
|
35649
|
+
form: "single",
|
|
35650
|
+
optional: false
|
|
35651
|
+
}],
|
|
35652
|
+
"deviceManager.setDisabled": [{
|
|
35653
|
+
name: "deviceId",
|
|
35654
|
+
form: "single",
|
|
35655
|
+
optional: false
|
|
35656
|
+
}],
|
|
35657
|
+
"deviceManager.setDisplay": [{
|
|
35658
|
+
name: "deviceId",
|
|
35659
|
+
form: "single",
|
|
35660
|
+
optional: false
|
|
35661
|
+
}],
|
|
35662
|
+
"deviceManager.setIntegrationId": [{
|
|
35663
|
+
name: "deviceId",
|
|
35664
|
+
form: "single",
|
|
35665
|
+
optional: false
|
|
35666
|
+
}],
|
|
35667
|
+
"deviceManager.setLinkDeviceId": [{
|
|
35668
|
+
name: "deviceId",
|
|
35669
|
+
form: "single",
|
|
35670
|
+
optional: false
|
|
35671
|
+
}, {
|
|
35672
|
+
name: "linkDeviceId",
|
|
35673
|
+
form: "single",
|
|
35674
|
+
optional: true
|
|
35675
|
+
}],
|
|
35676
|
+
"deviceManager.setLocation": [{
|
|
35677
|
+
name: "deviceId",
|
|
35678
|
+
form: "single",
|
|
35679
|
+
optional: false
|
|
35680
|
+
}],
|
|
35681
|
+
"deviceManager.setMetadata": [{
|
|
35682
|
+
name: "deviceId",
|
|
35683
|
+
form: "single",
|
|
35684
|
+
optional: false
|
|
35685
|
+
}],
|
|
35686
|
+
"deviceManager.setName": [{
|
|
35687
|
+
name: "deviceId",
|
|
35688
|
+
form: "single",
|
|
35689
|
+
optional: false
|
|
35690
|
+
}],
|
|
35691
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
35692
|
+
name: "deviceId",
|
|
35693
|
+
form: "single",
|
|
35694
|
+
optional: false
|
|
35695
|
+
}],
|
|
35696
|
+
"deviceManager.setRole": [{
|
|
35697
|
+
name: "deviceId",
|
|
35698
|
+
form: "single",
|
|
35699
|
+
optional: false
|
|
35700
|
+
}],
|
|
35701
|
+
"deviceManager.setStreamProfileMap": [{
|
|
35702
|
+
name: "deviceId",
|
|
35703
|
+
form: "single",
|
|
35704
|
+
optional: false
|
|
35705
|
+
}],
|
|
35706
|
+
"deviceManager.setType": [{
|
|
35707
|
+
name: "deviceId",
|
|
35708
|
+
form: "single",
|
|
35709
|
+
optional: false
|
|
35710
|
+
}],
|
|
35711
|
+
"deviceManager.setWrapperActive": [{
|
|
35712
|
+
name: "deviceId",
|
|
35713
|
+
form: "single",
|
|
35714
|
+
optional: false
|
|
35715
|
+
}],
|
|
35716
|
+
"deviceManager.testField": [{
|
|
35717
|
+
name: "deviceId",
|
|
35718
|
+
form: "single",
|
|
35719
|
+
optional: false
|
|
35720
|
+
}],
|
|
35721
|
+
"deviceManager.updateConfig": [{
|
|
35722
|
+
name: "deviceId",
|
|
35723
|
+
form: "single",
|
|
35724
|
+
optional: false
|
|
35725
|
+
}],
|
|
35726
|
+
"deviceManager.updateDeviceField": [{
|
|
35727
|
+
name: "deviceId",
|
|
35728
|
+
form: "single",
|
|
35729
|
+
optional: false
|
|
35730
|
+
}],
|
|
35731
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
35732
|
+
name: "deviceId",
|
|
35733
|
+
form: "single",
|
|
35734
|
+
optional: false
|
|
35735
|
+
}],
|
|
35736
|
+
"deviceOps.getConfigEntries": [{
|
|
35737
|
+
name: "deviceId",
|
|
35738
|
+
form: "single",
|
|
35739
|
+
optional: false
|
|
35740
|
+
}],
|
|
35741
|
+
"deviceOps.getRawState": [{
|
|
35742
|
+
name: "deviceId",
|
|
35743
|
+
form: "single",
|
|
35744
|
+
optional: false
|
|
35745
|
+
}],
|
|
35746
|
+
"deviceOps.getSettingsSchema": [{
|
|
35747
|
+
name: "deviceId",
|
|
35748
|
+
form: "single",
|
|
35749
|
+
optional: false
|
|
35750
|
+
}],
|
|
35751
|
+
"deviceOps.getStreamSources": [{
|
|
35752
|
+
name: "deviceId",
|
|
35753
|
+
form: "single",
|
|
35754
|
+
optional: false
|
|
35755
|
+
}],
|
|
35756
|
+
"deviceOps.removeDevice": [{
|
|
35757
|
+
name: "deviceId",
|
|
35758
|
+
form: "single",
|
|
35759
|
+
optional: false
|
|
35760
|
+
}],
|
|
35761
|
+
"deviceOps.runAction": [{
|
|
35762
|
+
name: "deviceId",
|
|
35763
|
+
form: "single",
|
|
35764
|
+
optional: false
|
|
35765
|
+
}],
|
|
35766
|
+
"deviceOps.setConfig": [{
|
|
35767
|
+
name: "deviceId",
|
|
35768
|
+
form: "single",
|
|
35769
|
+
optional: false
|
|
35770
|
+
}],
|
|
35771
|
+
"deviceState.getCapSlice": [{
|
|
35772
|
+
name: "deviceId",
|
|
35773
|
+
form: "single",
|
|
35774
|
+
optional: false
|
|
35775
|
+
}],
|
|
35776
|
+
"deviceState.getSnapshot": [{
|
|
35777
|
+
name: "deviceId",
|
|
35778
|
+
form: "single",
|
|
35779
|
+
optional: false
|
|
35780
|
+
}],
|
|
35781
|
+
"deviceState.setCapSlice": [{
|
|
35782
|
+
name: "deviceId",
|
|
35783
|
+
form: "single",
|
|
35784
|
+
optional: false
|
|
35785
|
+
}],
|
|
35786
|
+
"events.getEventClipUrl": [{
|
|
35787
|
+
name: "deviceId",
|
|
35788
|
+
form: "single",
|
|
35789
|
+
optional: false
|
|
35790
|
+
}],
|
|
35791
|
+
"events.getEvents": [{
|
|
35792
|
+
name: "deviceId",
|
|
35793
|
+
form: "single",
|
|
35794
|
+
optional: false
|
|
35795
|
+
}],
|
|
35796
|
+
"events.getEventThumbnail": [{
|
|
35797
|
+
name: "deviceId",
|
|
35798
|
+
form: "single",
|
|
35799
|
+
optional: false
|
|
35800
|
+
}],
|
|
35801
|
+
"faceGallery.getFaceByTrack": [{
|
|
35802
|
+
name: "deviceId",
|
|
35803
|
+
form: "single",
|
|
35804
|
+
optional: false
|
|
35805
|
+
}],
|
|
35806
|
+
"faceGallery.listRecentFaces": [{
|
|
35807
|
+
name: "deviceId",
|
|
35808
|
+
form: "single",
|
|
35809
|
+
optional: true
|
|
35810
|
+
}],
|
|
35811
|
+
"fanControl.setDirection": [{
|
|
35812
|
+
name: "deviceId",
|
|
35813
|
+
form: "single",
|
|
35814
|
+
optional: false
|
|
35815
|
+
}],
|
|
35816
|
+
"fanControl.setOscillating": [{
|
|
35817
|
+
name: "deviceId",
|
|
35818
|
+
form: "single",
|
|
35819
|
+
optional: false
|
|
35820
|
+
}],
|
|
35821
|
+
"fanControl.setPercentage": [{
|
|
35822
|
+
name: "deviceId",
|
|
35823
|
+
form: "single",
|
|
35824
|
+
optional: false
|
|
35825
|
+
}],
|
|
35826
|
+
"fanControl.setPreset": [{
|
|
35827
|
+
name: "deviceId",
|
|
35828
|
+
form: "single",
|
|
35829
|
+
optional: false
|
|
35830
|
+
}],
|
|
35831
|
+
"humidifier.setMode": [{
|
|
35832
|
+
name: "deviceId",
|
|
35833
|
+
form: "single",
|
|
35834
|
+
optional: false
|
|
35835
|
+
}],
|
|
35836
|
+
"humidifier.setOn": [{
|
|
35837
|
+
name: "deviceId",
|
|
35838
|
+
form: "single",
|
|
35839
|
+
optional: false
|
|
35840
|
+
}],
|
|
35841
|
+
"humidifier.setTargetHumidity": [{
|
|
35842
|
+
name: "deviceId",
|
|
35843
|
+
form: "single",
|
|
35844
|
+
optional: false
|
|
35845
|
+
}],
|
|
35846
|
+
"imageSettings.getOptions": [{
|
|
35847
|
+
name: "deviceId",
|
|
35848
|
+
form: "single",
|
|
35849
|
+
optional: false
|
|
35850
|
+
}],
|
|
35851
|
+
"imageSettings.setSettings": [{
|
|
35852
|
+
name: "deviceId",
|
|
35853
|
+
form: "single",
|
|
35854
|
+
optional: false
|
|
35855
|
+
}],
|
|
35856
|
+
"intercom.endTalkSession": [{
|
|
35857
|
+
name: "deviceId",
|
|
35858
|
+
form: "single",
|
|
35859
|
+
optional: false
|
|
35860
|
+
}],
|
|
35861
|
+
"intercom.handleAnswer": [{
|
|
35862
|
+
name: "deviceId",
|
|
35863
|
+
form: "single",
|
|
35864
|
+
optional: false
|
|
35865
|
+
}],
|
|
35866
|
+
"intercom.pushTalkAudio": [{
|
|
35867
|
+
name: "deviceId",
|
|
35868
|
+
form: "single",
|
|
35869
|
+
optional: false
|
|
35870
|
+
}],
|
|
35871
|
+
"intercom.startSession": [{
|
|
35872
|
+
name: "deviceId",
|
|
35873
|
+
form: "single",
|
|
35874
|
+
optional: false
|
|
35875
|
+
}],
|
|
35876
|
+
"intercom.startTalkSession": [{
|
|
35877
|
+
name: "deviceId",
|
|
35878
|
+
form: "single",
|
|
35879
|
+
optional: false
|
|
35880
|
+
}],
|
|
35881
|
+
"intercom.stopSession": [{
|
|
35882
|
+
name: "deviceId",
|
|
35883
|
+
form: "single",
|
|
35884
|
+
optional: false
|
|
35885
|
+
}],
|
|
35886
|
+
"lawnMowerControl.dock": [{
|
|
35887
|
+
name: "deviceId",
|
|
35888
|
+
form: "single",
|
|
35889
|
+
optional: false
|
|
35890
|
+
}],
|
|
35891
|
+
"lawnMowerControl.pause": [{
|
|
35892
|
+
name: "deviceId",
|
|
35893
|
+
form: "single",
|
|
35894
|
+
optional: false
|
|
35895
|
+
}],
|
|
35896
|
+
"lawnMowerControl.startMowing": [{
|
|
35897
|
+
name: "deviceId",
|
|
35898
|
+
form: "single",
|
|
35899
|
+
optional: false
|
|
35900
|
+
}],
|
|
35901
|
+
"lockControl.lock": [{
|
|
35902
|
+
name: "deviceId",
|
|
35903
|
+
form: "single",
|
|
35904
|
+
optional: false
|
|
35905
|
+
}],
|
|
35906
|
+
"lockControl.open": [{
|
|
35907
|
+
name: "deviceId",
|
|
35908
|
+
form: "single",
|
|
35909
|
+
optional: false
|
|
35910
|
+
}],
|
|
35911
|
+
"lockControl.unlock": [{
|
|
35912
|
+
name: "deviceId",
|
|
35913
|
+
form: "single",
|
|
35914
|
+
optional: false
|
|
35915
|
+
}],
|
|
35916
|
+
"mediaPlayer.next": [{
|
|
35917
|
+
name: "deviceId",
|
|
35918
|
+
form: "single",
|
|
35919
|
+
optional: false
|
|
35920
|
+
}],
|
|
35921
|
+
"mediaPlayer.pause": [{
|
|
35922
|
+
name: "deviceId",
|
|
35923
|
+
form: "single",
|
|
35924
|
+
optional: false
|
|
35925
|
+
}],
|
|
35926
|
+
"mediaPlayer.play": [{
|
|
35927
|
+
name: "deviceId",
|
|
35928
|
+
form: "single",
|
|
35929
|
+
optional: false
|
|
35930
|
+
}],
|
|
35931
|
+
"mediaPlayer.playMedia": [{
|
|
35932
|
+
name: "deviceId",
|
|
35933
|
+
form: "single",
|
|
35934
|
+
optional: false
|
|
35935
|
+
}],
|
|
35936
|
+
"mediaPlayer.previous": [{
|
|
35937
|
+
name: "deviceId",
|
|
35938
|
+
form: "single",
|
|
35939
|
+
optional: false
|
|
35940
|
+
}],
|
|
35941
|
+
"mediaPlayer.seek": [{
|
|
35942
|
+
name: "deviceId",
|
|
35943
|
+
form: "single",
|
|
35944
|
+
optional: false
|
|
35945
|
+
}],
|
|
35946
|
+
"mediaPlayer.selectSource": [{
|
|
35947
|
+
name: "deviceId",
|
|
35948
|
+
form: "single",
|
|
35949
|
+
optional: false
|
|
35950
|
+
}],
|
|
35951
|
+
"mediaPlayer.setMute": [{
|
|
35952
|
+
name: "deviceId",
|
|
35953
|
+
form: "single",
|
|
35954
|
+
optional: false
|
|
35955
|
+
}],
|
|
35956
|
+
"mediaPlayer.setRepeat": [{
|
|
35957
|
+
name: "deviceId",
|
|
35958
|
+
form: "single",
|
|
35959
|
+
optional: false
|
|
35960
|
+
}],
|
|
35961
|
+
"mediaPlayer.setShuffle": [{
|
|
35962
|
+
name: "deviceId",
|
|
35963
|
+
form: "single",
|
|
35964
|
+
optional: false
|
|
35965
|
+
}],
|
|
35966
|
+
"mediaPlayer.setVolume": [{
|
|
35967
|
+
name: "deviceId",
|
|
35968
|
+
form: "single",
|
|
35969
|
+
optional: false
|
|
35970
|
+
}],
|
|
35971
|
+
"mediaPlayer.stop": [{
|
|
35972
|
+
name: "deviceId",
|
|
35973
|
+
form: "single",
|
|
35974
|
+
optional: false
|
|
35975
|
+
}],
|
|
35976
|
+
"motion.isDetected": [{
|
|
35977
|
+
name: "deviceId",
|
|
35978
|
+
form: "single",
|
|
35979
|
+
optional: false
|
|
35980
|
+
}],
|
|
35981
|
+
"motionDetection.analyze": [{
|
|
35982
|
+
name: "deviceId",
|
|
35983
|
+
form: "single",
|
|
35984
|
+
optional: false
|
|
35985
|
+
}],
|
|
35986
|
+
"motionDetection.removeCamera": [{
|
|
35987
|
+
name: "deviceId",
|
|
35988
|
+
form: "single",
|
|
35989
|
+
optional: false
|
|
35990
|
+
}],
|
|
35991
|
+
"motionTrigger.setMotionTrigger": [{
|
|
35992
|
+
name: "deviceId",
|
|
35993
|
+
form: "single",
|
|
35994
|
+
optional: false
|
|
35995
|
+
}],
|
|
35996
|
+
"motionZones.getOptions": [{
|
|
35997
|
+
name: "deviceId",
|
|
35998
|
+
form: "single",
|
|
35999
|
+
optional: false
|
|
36000
|
+
}],
|
|
36001
|
+
"motionZones.setZone": [{
|
|
36002
|
+
name: "deviceId",
|
|
36003
|
+
form: "single",
|
|
36004
|
+
optional: false
|
|
36005
|
+
}],
|
|
36006
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36007
|
+
name: "deviceId",
|
|
36008
|
+
form: "single",
|
|
36009
|
+
optional: false
|
|
36010
|
+
}],
|
|
36011
|
+
"networkQuality.getDeviceStats": [{
|
|
36012
|
+
name: "deviceId",
|
|
36013
|
+
form: "single",
|
|
36014
|
+
optional: false
|
|
36015
|
+
}],
|
|
36016
|
+
"networkQuality.reportClientStats": [{
|
|
36017
|
+
name: "deviceId",
|
|
36018
|
+
form: "single",
|
|
36019
|
+
optional: false
|
|
36020
|
+
}],
|
|
36021
|
+
"notificationRules.setDeviceMuted": [{
|
|
36022
|
+
name: "deviceId",
|
|
36023
|
+
form: "single",
|
|
36024
|
+
optional: false
|
|
36025
|
+
}],
|
|
36026
|
+
"notifier.cancel": [{
|
|
36027
|
+
name: "deviceId",
|
|
36028
|
+
form: "single",
|
|
36029
|
+
optional: false
|
|
36030
|
+
}],
|
|
36031
|
+
"notifier.send": [{
|
|
36032
|
+
name: "deviceId",
|
|
36033
|
+
form: "single",
|
|
36034
|
+
optional: false
|
|
36035
|
+
}],
|
|
36036
|
+
"osd.setOverlay": [{
|
|
36037
|
+
name: "deviceId",
|
|
36038
|
+
form: "single",
|
|
36039
|
+
optional: false
|
|
36040
|
+
}],
|
|
36041
|
+
"osdManager.clearSlotBinding": [{
|
|
36042
|
+
name: "deviceId",
|
|
36043
|
+
form: "single",
|
|
36044
|
+
optional: false
|
|
36045
|
+
}],
|
|
36046
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36047
|
+
name: "sourceDeviceId",
|
|
36048
|
+
form: "single",
|
|
36049
|
+
optional: false
|
|
36050
|
+
}, {
|
|
36051
|
+
name: "targetDeviceId",
|
|
36052
|
+
form: "single",
|
|
36053
|
+
optional: false
|
|
36054
|
+
}],
|
|
36055
|
+
"osdManager.getDeviceOsd": [{
|
|
36056
|
+
name: "deviceId",
|
|
36057
|
+
form: "single",
|
|
36058
|
+
optional: false
|
|
36059
|
+
}],
|
|
36060
|
+
"osdManager.getSourceCatalog": [{
|
|
36061
|
+
name: "deviceId",
|
|
36062
|
+
form: "single",
|
|
36063
|
+
optional: false
|
|
36064
|
+
}],
|
|
36065
|
+
"osdManager.previewSlot": [{
|
|
36066
|
+
name: "deviceId",
|
|
36067
|
+
form: "single",
|
|
36068
|
+
optional: false
|
|
36069
|
+
}],
|
|
36070
|
+
"osdManager.renderDevice": [{
|
|
36071
|
+
name: "deviceId",
|
|
36072
|
+
form: "single",
|
|
36073
|
+
optional: false
|
|
36074
|
+
}],
|
|
36075
|
+
"osdManager.setSlotBinding": [{
|
|
36076
|
+
name: "deviceId",
|
|
36077
|
+
form: "single",
|
|
36078
|
+
optional: false
|
|
36079
|
+
}],
|
|
36080
|
+
"petFeeder.callPet": [{
|
|
36081
|
+
name: "deviceId",
|
|
36082
|
+
form: "single",
|
|
36083
|
+
optional: false
|
|
36084
|
+
}],
|
|
36085
|
+
"petFeeder.cancelFeed": [{
|
|
36086
|
+
name: "deviceId",
|
|
36087
|
+
form: "single",
|
|
36088
|
+
optional: false
|
|
36089
|
+
}],
|
|
36090
|
+
"petFeeder.feed": [{
|
|
36091
|
+
name: "deviceId",
|
|
36092
|
+
form: "single",
|
|
36093
|
+
optional: false
|
|
36094
|
+
}],
|
|
36095
|
+
"petFeeder.markFoodReplenished": [{
|
|
36096
|
+
name: "deviceId",
|
|
36097
|
+
form: "single",
|
|
36098
|
+
optional: false
|
|
36099
|
+
}],
|
|
36100
|
+
"petFeeder.playSound": [{
|
|
36101
|
+
name: "deviceId",
|
|
36102
|
+
form: "single",
|
|
36103
|
+
optional: false
|
|
36104
|
+
}],
|
|
36105
|
+
"petFeeder.resetDesiccant": [{
|
|
36106
|
+
name: "deviceId",
|
|
36107
|
+
form: "single",
|
|
36108
|
+
optional: false
|
|
36109
|
+
}],
|
|
36110
|
+
"petFeeder.setChildLock": [{
|
|
36111
|
+
name: "deviceId",
|
|
36112
|
+
form: "single",
|
|
36113
|
+
optional: false
|
|
36114
|
+
}],
|
|
36115
|
+
"petFeeder.setFeedSound": [{
|
|
36116
|
+
name: "deviceId",
|
|
36117
|
+
form: "single",
|
|
36118
|
+
optional: false
|
|
36119
|
+
}],
|
|
36120
|
+
"petFeeder.setIndicatorLight": [{
|
|
36121
|
+
name: "deviceId",
|
|
36122
|
+
form: "single",
|
|
36123
|
+
optional: false
|
|
36124
|
+
}],
|
|
36125
|
+
"petFeeder.setVolume": [{
|
|
36126
|
+
name: "deviceId",
|
|
36127
|
+
form: "single",
|
|
36128
|
+
optional: false
|
|
36129
|
+
}],
|
|
36130
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36131
|
+
name: "deviceId",
|
|
36132
|
+
form: "single",
|
|
36133
|
+
optional: false
|
|
36134
|
+
}],
|
|
36135
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36136
|
+
name: "deviceId",
|
|
36137
|
+
form: "single",
|
|
36138
|
+
optional: false
|
|
36139
|
+
}],
|
|
36140
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36141
|
+
name: "deviceId",
|
|
36142
|
+
form: "single",
|
|
36143
|
+
optional: false
|
|
36144
|
+
}],
|
|
36145
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36146
|
+
name: "deviceId",
|
|
36147
|
+
form: "single",
|
|
36148
|
+
optional: false
|
|
36149
|
+
}],
|
|
36150
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36151
|
+
name: "deviceId",
|
|
36152
|
+
form: "single",
|
|
36153
|
+
optional: false
|
|
36154
|
+
}],
|
|
36155
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36156
|
+
name: "deviceId",
|
|
36157
|
+
form: "single",
|
|
36158
|
+
optional: false
|
|
36159
|
+
}],
|
|
36160
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36161
|
+
name: "deviceId",
|
|
36162
|
+
form: "single",
|
|
36163
|
+
optional: false
|
|
36164
|
+
}],
|
|
36165
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36166
|
+
name: "deviceId",
|
|
36167
|
+
form: "single",
|
|
36168
|
+
optional: false
|
|
36169
|
+
}],
|
|
36170
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
36171
|
+
name: "deviceId",
|
|
36172
|
+
form: "single",
|
|
36173
|
+
optional: false
|
|
36174
|
+
}],
|
|
36175
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36176
|
+
name: "deviceId",
|
|
36177
|
+
form: "single",
|
|
36178
|
+
optional: false
|
|
36179
|
+
}],
|
|
36180
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36181
|
+
name: "deviceId",
|
|
36182
|
+
form: "single",
|
|
36183
|
+
optional: false
|
|
36184
|
+
}],
|
|
36185
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36186
|
+
name: "deviceId",
|
|
36187
|
+
form: "single",
|
|
36188
|
+
optional: false
|
|
36189
|
+
}],
|
|
36190
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36191
|
+
name: "deviceIds",
|
|
36192
|
+
form: "array",
|
|
36193
|
+
optional: true
|
|
36194
|
+
}],
|
|
36195
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36196
|
+
name: "deviceId",
|
|
36197
|
+
form: "single",
|
|
36198
|
+
optional: false
|
|
36199
|
+
}],
|
|
36200
|
+
"pipelineAnalytics.getTrack": [{
|
|
36201
|
+
name: "deviceId",
|
|
36202
|
+
form: "single",
|
|
36203
|
+
optional: false
|
|
36204
|
+
}],
|
|
36205
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
36206
|
+
name: "deviceId",
|
|
36207
|
+
form: "single",
|
|
36208
|
+
optional: false
|
|
36209
|
+
}],
|
|
36210
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36211
|
+
name: "deviceIds",
|
|
36212
|
+
form: "array",
|
|
36213
|
+
optional: true
|
|
36214
|
+
}],
|
|
36215
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36216
|
+
name: "deviceIds",
|
|
36217
|
+
form: "array",
|
|
36218
|
+
optional: true
|
|
36219
|
+
}],
|
|
36220
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36221
|
+
name: "deviceId",
|
|
36222
|
+
form: "single",
|
|
36223
|
+
optional: false
|
|
36224
|
+
}],
|
|
36225
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36226
|
+
name: "deviceIds",
|
|
36227
|
+
form: "array",
|
|
36228
|
+
optional: false
|
|
36229
|
+
}],
|
|
36230
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36231
|
+
name: "deviceId",
|
|
36232
|
+
form: "single",
|
|
36233
|
+
optional: true
|
|
36234
|
+
}],
|
|
36235
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36236
|
+
name: "deviceIds",
|
|
36237
|
+
form: "array",
|
|
36238
|
+
optional: false
|
|
36239
|
+
}],
|
|
36240
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36241
|
+
name: "deviceIds",
|
|
36242
|
+
form: "array",
|
|
36243
|
+
optional: true
|
|
36244
|
+
}],
|
|
36245
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
36246
|
+
name: "deviceId",
|
|
36247
|
+
form: "single",
|
|
36248
|
+
optional: false
|
|
36249
|
+
}],
|
|
36250
|
+
"pipelineAnalytics.listTracks": [{
|
|
36251
|
+
name: "deviceId",
|
|
36252
|
+
form: "single",
|
|
36253
|
+
optional: false
|
|
36254
|
+
}],
|
|
36255
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
36256
|
+
name: "deviceId",
|
|
36257
|
+
form: "single",
|
|
36258
|
+
optional: false
|
|
36259
|
+
}],
|
|
36260
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
36261
|
+
name: "deviceId",
|
|
36262
|
+
form: "single",
|
|
36263
|
+
optional: false
|
|
36264
|
+
}],
|
|
36265
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
36266
|
+
name: "deviceId",
|
|
36267
|
+
form: "single",
|
|
36268
|
+
optional: false
|
|
36269
|
+
}],
|
|
36270
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
36271
|
+
name: "deviceId",
|
|
36272
|
+
form: "single",
|
|
36273
|
+
optional: true
|
|
36274
|
+
}],
|
|
36275
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36276
|
+
name: "deviceId",
|
|
36277
|
+
form: "single",
|
|
36278
|
+
optional: false
|
|
36279
|
+
}],
|
|
36280
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
36281
|
+
name: "deviceId",
|
|
36282
|
+
form: "single",
|
|
36283
|
+
optional: false
|
|
36284
|
+
}],
|
|
36285
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
36286
|
+
name: "deviceId",
|
|
36287
|
+
form: "single",
|
|
36288
|
+
optional: true
|
|
36289
|
+
}],
|
|
36290
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
36291
|
+
name: "deviceId",
|
|
36292
|
+
form: "single",
|
|
36293
|
+
optional: false
|
|
36294
|
+
}],
|
|
36295
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
36296
|
+
name: "deviceId",
|
|
36297
|
+
form: "single",
|
|
36298
|
+
optional: false
|
|
36299
|
+
}],
|
|
36300
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
36301
|
+
name: "deviceId",
|
|
36302
|
+
form: "single",
|
|
36303
|
+
optional: false
|
|
36304
|
+
}],
|
|
36305
|
+
"pipelineExecutor.runPipeline": [{
|
|
36306
|
+
name: "deviceId",
|
|
36307
|
+
form: "single",
|
|
36308
|
+
optional: true
|
|
36309
|
+
}],
|
|
36310
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
36311
|
+
name: "deviceId",
|
|
36312
|
+
form: "single",
|
|
36313
|
+
optional: true
|
|
36314
|
+
}],
|
|
36315
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
36316
|
+
name: "deviceId",
|
|
36317
|
+
form: "single",
|
|
36318
|
+
optional: false
|
|
36319
|
+
}],
|
|
36320
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
36321
|
+
name: "deviceId",
|
|
36322
|
+
form: "single",
|
|
36323
|
+
optional: false
|
|
36324
|
+
}],
|
|
36325
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
36326
|
+
name: "deviceId",
|
|
36327
|
+
form: "single",
|
|
36328
|
+
optional: false
|
|
36329
|
+
}],
|
|
36330
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
36331
|
+
name: "deviceId",
|
|
36332
|
+
form: "single",
|
|
36333
|
+
optional: false
|
|
36334
|
+
}],
|
|
36335
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
36336
|
+
name: "deviceId",
|
|
36337
|
+
form: "single",
|
|
36338
|
+
optional: false
|
|
36339
|
+
}],
|
|
36340
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
36341
|
+
name: "deviceId",
|
|
36342
|
+
form: "single",
|
|
36343
|
+
optional: false
|
|
36344
|
+
}],
|
|
36345
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
36346
|
+
name: "deviceIds",
|
|
36347
|
+
form: "array",
|
|
36348
|
+
optional: true
|
|
36349
|
+
}],
|
|
36350
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
36351
|
+
name: "deviceId",
|
|
36352
|
+
form: "single",
|
|
36353
|
+
optional: false
|
|
36354
|
+
}],
|
|
36355
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
36356
|
+
name: "deviceId",
|
|
36357
|
+
form: "single",
|
|
36358
|
+
optional: false
|
|
36359
|
+
}],
|
|
36360
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
36361
|
+
name: "deviceId",
|
|
36362
|
+
form: "single",
|
|
36363
|
+
optional: false
|
|
36364
|
+
}],
|
|
36365
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
36366
|
+
name: "deviceId",
|
|
36367
|
+
form: "single",
|
|
36368
|
+
optional: false
|
|
36369
|
+
}],
|
|
36370
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
36371
|
+
name: "deviceId",
|
|
36372
|
+
form: "single",
|
|
36373
|
+
optional: false
|
|
36374
|
+
}],
|
|
36375
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
36376
|
+
name: "deviceId",
|
|
36377
|
+
form: "single",
|
|
36378
|
+
optional: false
|
|
36379
|
+
}],
|
|
36380
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
36381
|
+
name: "deviceId",
|
|
36382
|
+
form: "single",
|
|
36383
|
+
optional: false
|
|
36384
|
+
}],
|
|
36385
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
36386
|
+
name: "deviceId",
|
|
36387
|
+
form: "single",
|
|
36388
|
+
optional: false
|
|
36389
|
+
}],
|
|
36390
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
36391
|
+
name: "deviceId",
|
|
36392
|
+
form: "single",
|
|
36393
|
+
optional: false
|
|
36394
|
+
}],
|
|
36395
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
36396
|
+
name: "deviceId",
|
|
36397
|
+
form: "single",
|
|
36398
|
+
optional: false
|
|
36399
|
+
}],
|
|
36400
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
36401
|
+
name: "deviceId",
|
|
36402
|
+
form: "single",
|
|
36403
|
+
optional: false
|
|
36404
|
+
}],
|
|
36405
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
36406
|
+
name: "deviceId",
|
|
36407
|
+
form: "single",
|
|
36408
|
+
optional: false
|
|
36409
|
+
}],
|
|
36410
|
+
"pipelineRunner.attachCamera": [{
|
|
36411
|
+
name: "deviceId",
|
|
36412
|
+
form: "single",
|
|
36413
|
+
optional: false
|
|
36414
|
+
}],
|
|
36415
|
+
"pipelineRunner.detachCamera": [{
|
|
36416
|
+
name: "deviceId",
|
|
36417
|
+
form: "single",
|
|
36418
|
+
optional: false
|
|
36419
|
+
}],
|
|
36420
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
36421
|
+
name: "deviceId",
|
|
36422
|
+
form: "single",
|
|
36423
|
+
optional: false
|
|
36424
|
+
}],
|
|
36425
|
+
"pipelineRunner.reportMotion": [{
|
|
36426
|
+
name: "deviceId",
|
|
36427
|
+
form: "single",
|
|
36428
|
+
optional: false
|
|
36429
|
+
}],
|
|
36430
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
36431
|
+
name: "deviceId",
|
|
36432
|
+
form: "single",
|
|
36433
|
+
optional: false
|
|
36434
|
+
}],
|
|
36435
|
+
"pipelineRunner.runStatelessStep": [{
|
|
36436
|
+
name: "sourceDeviceId",
|
|
36437
|
+
form: "single",
|
|
36438
|
+
optional: false
|
|
36439
|
+
}],
|
|
36440
|
+
"plateGallery.getPlateByTrack": [{
|
|
36441
|
+
name: "deviceId",
|
|
36442
|
+
form: "single",
|
|
36443
|
+
optional: false
|
|
36444
|
+
}],
|
|
36445
|
+
"plateGallery.listPlates": [{
|
|
36446
|
+
name: "deviceId",
|
|
36447
|
+
form: "single",
|
|
36448
|
+
optional: true
|
|
36449
|
+
}],
|
|
36450
|
+
"privacyMask.getOptions": [{
|
|
36451
|
+
name: "deviceId",
|
|
36452
|
+
form: "single",
|
|
36453
|
+
optional: false
|
|
36454
|
+
}],
|
|
36455
|
+
"privacyMask.setAudioEnabled": [{
|
|
36456
|
+
name: "deviceId",
|
|
36457
|
+
form: "single",
|
|
36458
|
+
optional: false
|
|
36459
|
+
}],
|
|
36460
|
+
"privacyMask.setMask": [{
|
|
36461
|
+
name: "deviceId",
|
|
36462
|
+
form: "single",
|
|
36463
|
+
optional: false
|
|
36464
|
+
}],
|
|
36465
|
+
"ptz.continuousMove": [{
|
|
36466
|
+
name: "deviceId",
|
|
36467
|
+
form: "single",
|
|
36468
|
+
optional: false
|
|
36469
|
+
}],
|
|
36470
|
+
"ptz.deletePreset": [{
|
|
36471
|
+
name: "deviceId",
|
|
36472
|
+
form: "single",
|
|
36473
|
+
optional: false
|
|
36474
|
+
}],
|
|
36475
|
+
"ptz.getOptions": [{
|
|
36476
|
+
name: "deviceId",
|
|
36477
|
+
form: "single",
|
|
36478
|
+
optional: false
|
|
36479
|
+
}],
|
|
36480
|
+
"ptz.getPosition": [{
|
|
36481
|
+
name: "deviceId",
|
|
36482
|
+
form: "single",
|
|
36483
|
+
optional: false
|
|
36484
|
+
}],
|
|
36485
|
+
"ptz.getPresets": [{
|
|
36486
|
+
name: "deviceId",
|
|
36487
|
+
form: "single",
|
|
36488
|
+
optional: false
|
|
36489
|
+
}],
|
|
36490
|
+
"ptz.goHome": [{
|
|
36491
|
+
name: "deviceId",
|
|
36492
|
+
form: "single",
|
|
36493
|
+
optional: false
|
|
36494
|
+
}],
|
|
36495
|
+
"ptz.goToPreset": [{
|
|
36496
|
+
name: "deviceId",
|
|
36497
|
+
form: "single",
|
|
36498
|
+
optional: false
|
|
36499
|
+
}],
|
|
36500
|
+
"ptz.move": [{
|
|
36501
|
+
name: "deviceId",
|
|
36502
|
+
form: "single",
|
|
36503
|
+
optional: false
|
|
36504
|
+
}],
|
|
36505
|
+
"ptz.savePreset": [{
|
|
36506
|
+
name: "deviceId",
|
|
36507
|
+
form: "single",
|
|
36508
|
+
optional: false
|
|
36509
|
+
}],
|
|
36510
|
+
"ptz.setAutofocus": [{
|
|
36511
|
+
name: "deviceId",
|
|
36512
|
+
form: "single",
|
|
36513
|
+
optional: false
|
|
36514
|
+
}],
|
|
36515
|
+
"ptz.stop": [{
|
|
36516
|
+
name: "deviceId",
|
|
36517
|
+
form: "single",
|
|
36518
|
+
optional: false
|
|
36519
|
+
}],
|
|
36520
|
+
"ptzAutotrack.getSettings": [{
|
|
36521
|
+
name: "deviceId",
|
|
36522
|
+
form: "single",
|
|
36523
|
+
optional: false
|
|
36524
|
+
}],
|
|
36525
|
+
"ptzAutotrack.getStatus": [{
|
|
36526
|
+
name: "deviceId",
|
|
36527
|
+
form: "single",
|
|
36528
|
+
optional: false
|
|
36529
|
+
}],
|
|
36530
|
+
"ptzAutotrack.setEnabled": [{
|
|
36531
|
+
name: "deviceId",
|
|
36532
|
+
form: "single",
|
|
36533
|
+
optional: false
|
|
36534
|
+
}],
|
|
36535
|
+
"ptzAutotrack.setSettings": [{
|
|
36536
|
+
name: "deviceId",
|
|
36537
|
+
form: "single",
|
|
36538
|
+
optional: false
|
|
36539
|
+
}],
|
|
36540
|
+
"reboot.reboot": [{
|
|
36541
|
+
name: "deviceId",
|
|
36542
|
+
form: "single",
|
|
36543
|
+
optional: false
|
|
36544
|
+
}],
|
|
36545
|
+
"recording.deleteFootprint": [{
|
|
36546
|
+
name: "deviceId",
|
|
36547
|
+
form: "single",
|
|
36548
|
+
optional: false
|
|
36549
|
+
}],
|
|
36550
|
+
"recording.getAvailability": [{
|
|
36551
|
+
name: "deviceId",
|
|
36552
|
+
form: "single",
|
|
36553
|
+
optional: false
|
|
36554
|
+
}],
|
|
36555
|
+
"recording.getDaysWithRecordings": [{
|
|
36556
|
+
name: "deviceId",
|
|
36557
|
+
form: "single",
|
|
36558
|
+
optional: false
|
|
36559
|
+
}],
|
|
36560
|
+
"recording.getDeviceConfig": [{
|
|
36561
|
+
name: "deviceId",
|
|
36562
|
+
form: "single",
|
|
36563
|
+
optional: false
|
|
36564
|
+
}],
|
|
36565
|
+
"recording.getPlaybackManifest": [{
|
|
36566
|
+
name: "deviceId",
|
|
36567
|
+
form: "single",
|
|
36568
|
+
optional: false
|
|
36569
|
+
}],
|
|
36570
|
+
"recording.listOpsLog": [{
|
|
36571
|
+
name: "deviceId",
|
|
36572
|
+
form: "single",
|
|
36573
|
+
optional: true
|
|
36574
|
+
}],
|
|
36575
|
+
"recording.locateSegment": [{
|
|
36576
|
+
name: "deviceId",
|
|
36577
|
+
form: "single",
|
|
36578
|
+
optional: false
|
|
36579
|
+
}],
|
|
36580
|
+
"recording.pruneFootage": [{
|
|
36581
|
+
name: "deviceId",
|
|
36582
|
+
form: "single",
|
|
36583
|
+
optional: false
|
|
36584
|
+
}],
|
|
36585
|
+
"recording.readGopBytes": [{
|
|
36586
|
+
name: "deviceId",
|
|
36587
|
+
form: "single",
|
|
36588
|
+
optional: false
|
|
36589
|
+
}],
|
|
36590
|
+
"recording.readSegmentBytes": [{
|
|
36591
|
+
name: "deviceId",
|
|
36592
|
+
form: "single",
|
|
36593
|
+
optional: false
|
|
36594
|
+
}],
|
|
36595
|
+
"recording.relocateFootage": [{
|
|
36596
|
+
name: "deviceId",
|
|
36597
|
+
form: "single",
|
|
36598
|
+
optional: true
|
|
36599
|
+
}],
|
|
36600
|
+
"recording.renderClip": [{
|
|
36601
|
+
name: "deviceId",
|
|
36602
|
+
form: "single",
|
|
36603
|
+
optional: false
|
|
36604
|
+
}],
|
|
36605
|
+
"recording.renderGif": [{
|
|
36606
|
+
name: "deviceId",
|
|
36607
|
+
form: "single",
|
|
36608
|
+
optional: false
|
|
36609
|
+
}],
|
|
36610
|
+
"recording.rescanStorage": [{
|
|
36611
|
+
name: "deviceId",
|
|
36612
|
+
form: "single",
|
|
36613
|
+
optional: false
|
|
36614
|
+
}],
|
|
36615
|
+
"recording.setDeviceConfig": [{
|
|
36616
|
+
name: "deviceId",
|
|
36617
|
+
form: "single",
|
|
36618
|
+
optional: false
|
|
36619
|
+
}],
|
|
36620
|
+
"recording.startStorageMigrationMove": [{
|
|
36621
|
+
name: "deviceId",
|
|
36622
|
+
form: "single",
|
|
36623
|
+
optional: true
|
|
36624
|
+
}],
|
|
36625
|
+
"recordingExport.createExport": [{
|
|
36626
|
+
name: "deviceId",
|
|
36627
|
+
form: "single",
|
|
36628
|
+
optional: false
|
|
36629
|
+
}],
|
|
36630
|
+
"recordingExport.listExports": [{
|
|
36631
|
+
name: "deviceId",
|
|
36632
|
+
form: "single",
|
|
36633
|
+
optional: true
|
|
36634
|
+
}],
|
|
36635
|
+
"sceneMonitor.captureReference": [{
|
|
36636
|
+
name: "deviceId",
|
|
36637
|
+
form: "single",
|
|
36638
|
+
optional: false
|
|
36639
|
+
}],
|
|
36640
|
+
"sceneMonitor.createScene": [{
|
|
36641
|
+
name: "deviceId",
|
|
36642
|
+
form: "single",
|
|
36643
|
+
optional: false
|
|
36644
|
+
}],
|
|
36645
|
+
"sceneMonitor.deleteReference": [{
|
|
36646
|
+
name: "deviceId",
|
|
36647
|
+
form: "single",
|
|
36648
|
+
optional: false
|
|
36649
|
+
}],
|
|
36650
|
+
"sceneMonitor.deleteScene": [{
|
|
36651
|
+
name: "deviceId",
|
|
36652
|
+
form: "single",
|
|
36653
|
+
optional: false
|
|
36654
|
+
}],
|
|
36655
|
+
"sceneMonitor.listScenes": [{
|
|
36656
|
+
name: "deviceId",
|
|
36657
|
+
form: "single",
|
|
36658
|
+
optional: false
|
|
36659
|
+
}],
|
|
36660
|
+
"sceneMonitor.recheckNow": [{
|
|
36661
|
+
name: "deviceId",
|
|
36662
|
+
form: "single",
|
|
36663
|
+
optional: false
|
|
36664
|
+
}],
|
|
36665
|
+
"sceneMonitor.resetScene": [{
|
|
36666
|
+
name: "deviceId",
|
|
36667
|
+
form: "single",
|
|
36668
|
+
optional: false
|
|
36669
|
+
}],
|
|
36670
|
+
"sceneMonitor.updateScene": [{
|
|
36671
|
+
name: "deviceId",
|
|
36672
|
+
form: "single",
|
|
36673
|
+
optional: false
|
|
36674
|
+
}],
|
|
36675
|
+
"scriptRunner.run": [{
|
|
36676
|
+
name: "deviceId",
|
|
36677
|
+
form: "single",
|
|
36678
|
+
optional: false
|
|
36679
|
+
}],
|
|
36680
|
+
"scriptRunner.stop": [{
|
|
36681
|
+
name: "deviceId",
|
|
36682
|
+
form: "single",
|
|
36683
|
+
optional: false
|
|
36684
|
+
}],
|
|
36685
|
+
"snapshot.getSnapshot": [{
|
|
36686
|
+
name: "deviceId",
|
|
36687
|
+
form: "single",
|
|
36688
|
+
optional: false
|
|
36689
|
+
}],
|
|
36690
|
+
"snapshot.getSnapshotLinks": [{
|
|
36691
|
+
name: "targets",
|
|
36692
|
+
form: "object-array",
|
|
36693
|
+
optional: false,
|
|
36694
|
+
itemField: "deviceId"
|
|
36695
|
+
}],
|
|
36696
|
+
"snapshot.getSnapshotOverview": [{
|
|
36697
|
+
name: "deviceIds",
|
|
36698
|
+
form: "array",
|
|
36699
|
+
optional: false
|
|
36700
|
+
}],
|
|
36701
|
+
"snapshot.invalidateCache": [{
|
|
36702
|
+
name: "deviceId",
|
|
36703
|
+
form: "single",
|
|
36704
|
+
optional: false
|
|
36705
|
+
}],
|
|
36706
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
36707
|
+
name: "deviceId",
|
|
36708
|
+
form: "single",
|
|
36709
|
+
optional: false
|
|
36710
|
+
}],
|
|
36711
|
+
"streamBroker.assignProfile": [{
|
|
36712
|
+
name: "deviceId",
|
|
36713
|
+
form: "single",
|
|
36714
|
+
optional: false
|
|
36715
|
+
}],
|
|
36716
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
36717
|
+
name: "deviceId",
|
|
36718
|
+
form: "single",
|
|
36719
|
+
optional: false
|
|
36720
|
+
}],
|
|
36721
|
+
"streamBroker.getStreamWithCodec": [{
|
|
36722
|
+
name: "deviceId",
|
|
36723
|
+
form: "single",
|
|
36724
|
+
optional: false
|
|
36725
|
+
}],
|
|
36726
|
+
"streamBroker.produceEventMedia": [{
|
|
36727
|
+
name: "deviceId",
|
|
36728
|
+
form: "single",
|
|
36729
|
+
optional: false
|
|
36730
|
+
}],
|
|
36731
|
+
"streamBroker.publishCameraStream": [{
|
|
36732
|
+
name: "deviceId",
|
|
36733
|
+
form: "single",
|
|
36734
|
+
optional: false
|
|
36735
|
+
}],
|
|
36736
|
+
"streamBroker.renderPreBufferClip": [{
|
|
36737
|
+
name: "deviceId",
|
|
36738
|
+
form: "single",
|
|
36739
|
+
optional: false
|
|
36740
|
+
}],
|
|
36741
|
+
"streamBroker.restartProfile": [{
|
|
36742
|
+
name: "deviceId",
|
|
36743
|
+
form: "single",
|
|
36744
|
+
optional: false
|
|
36745
|
+
}],
|
|
36746
|
+
"streamBroker.retractCameraStream": [{
|
|
36747
|
+
name: "deviceId",
|
|
36748
|
+
form: "single",
|
|
36749
|
+
optional: false
|
|
36750
|
+
}],
|
|
36751
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
36752
|
+
name: "deviceId",
|
|
36753
|
+
form: "single",
|
|
36754
|
+
optional: false
|
|
36755
|
+
}],
|
|
36756
|
+
"streamBroker.unassignProfile": [{
|
|
36757
|
+
name: "deviceId",
|
|
36758
|
+
form: "single",
|
|
36759
|
+
optional: false
|
|
36760
|
+
}],
|
|
36761
|
+
"streamCatalog.getCatalog": [{
|
|
36762
|
+
name: "deviceId",
|
|
36763
|
+
form: "single",
|
|
36764
|
+
optional: false
|
|
36765
|
+
}],
|
|
36766
|
+
"streamParams.getConfigSchema": [{
|
|
36767
|
+
name: "deviceId",
|
|
36768
|
+
form: "single",
|
|
36769
|
+
optional: false
|
|
36770
|
+
}],
|
|
36771
|
+
"streamParams.getOptions": [{
|
|
36772
|
+
name: "deviceId",
|
|
36773
|
+
form: "single",
|
|
36774
|
+
optional: false
|
|
36775
|
+
}],
|
|
36776
|
+
"streamParams.setProfile": [{
|
|
36777
|
+
name: "deviceId",
|
|
36778
|
+
form: "single",
|
|
36779
|
+
optional: false
|
|
36780
|
+
}],
|
|
36781
|
+
"switch.setState": [{
|
|
36782
|
+
name: "deviceId",
|
|
36783
|
+
form: "single",
|
|
36784
|
+
optional: false
|
|
36785
|
+
}],
|
|
36786
|
+
"vacuumControl.locate": [{
|
|
36787
|
+
name: "deviceId",
|
|
36788
|
+
form: "single",
|
|
36789
|
+
optional: false
|
|
36790
|
+
}],
|
|
36791
|
+
"vacuumControl.pause": [{
|
|
36792
|
+
name: "deviceId",
|
|
36793
|
+
form: "single",
|
|
36794
|
+
optional: false
|
|
36795
|
+
}],
|
|
36796
|
+
"vacuumControl.returnToBase": [{
|
|
36797
|
+
name: "deviceId",
|
|
36798
|
+
form: "single",
|
|
36799
|
+
optional: false
|
|
36800
|
+
}],
|
|
36801
|
+
"vacuumControl.setFanSpeed": [{
|
|
36802
|
+
name: "deviceId",
|
|
36803
|
+
form: "single",
|
|
36804
|
+
optional: false
|
|
36805
|
+
}],
|
|
36806
|
+
"vacuumControl.start": [{
|
|
36807
|
+
name: "deviceId",
|
|
36808
|
+
form: "single",
|
|
36809
|
+
optional: false
|
|
36810
|
+
}],
|
|
36811
|
+
"vacuumControl.stop": [{
|
|
36812
|
+
name: "deviceId",
|
|
36813
|
+
form: "single",
|
|
36814
|
+
optional: false
|
|
36815
|
+
}],
|
|
36816
|
+
"valve.close": [{
|
|
36817
|
+
name: "deviceId",
|
|
36818
|
+
form: "single",
|
|
36819
|
+
optional: false
|
|
36820
|
+
}],
|
|
36821
|
+
"valve.open": [{
|
|
36822
|
+
name: "deviceId",
|
|
36823
|
+
form: "single",
|
|
36824
|
+
optional: false
|
|
36825
|
+
}],
|
|
36826
|
+
"valve.setPosition": [{
|
|
36827
|
+
name: "deviceId",
|
|
36828
|
+
form: "single",
|
|
36829
|
+
optional: false
|
|
36830
|
+
}],
|
|
36831
|
+
"valve.stop": [{
|
|
36832
|
+
name: "deviceId",
|
|
36833
|
+
form: "single",
|
|
36834
|
+
optional: false
|
|
36835
|
+
}],
|
|
36836
|
+
"videoclips.getClipPlayback": [{
|
|
36837
|
+
name: "deviceId",
|
|
36838
|
+
form: "single",
|
|
36839
|
+
optional: false
|
|
36840
|
+
}],
|
|
36841
|
+
"videoclips.listClips": [{
|
|
36842
|
+
name: "deviceId",
|
|
36843
|
+
form: "single",
|
|
36844
|
+
optional: false
|
|
36845
|
+
}],
|
|
36846
|
+
"waterHeater.setAway": [{
|
|
36847
|
+
name: "deviceId",
|
|
36848
|
+
form: "single",
|
|
36849
|
+
optional: false
|
|
36850
|
+
}],
|
|
36851
|
+
"waterHeater.setOperationMode": [{
|
|
36852
|
+
name: "deviceId",
|
|
36853
|
+
form: "single",
|
|
36854
|
+
optional: false
|
|
36855
|
+
}],
|
|
36856
|
+
"waterHeater.setTargetTemp": [{
|
|
36857
|
+
name: "deviceId",
|
|
36858
|
+
form: "single",
|
|
36859
|
+
optional: false
|
|
36860
|
+
}],
|
|
36861
|
+
"webrtcSession.addIceCandidate": [{
|
|
36862
|
+
name: "deviceId",
|
|
36863
|
+
form: "single",
|
|
36864
|
+
optional: false
|
|
36865
|
+
}],
|
|
36866
|
+
"webrtcSession.closeSession": [{
|
|
36867
|
+
name: "deviceId",
|
|
36868
|
+
form: "single",
|
|
36869
|
+
optional: false
|
|
36870
|
+
}],
|
|
36871
|
+
"webrtcSession.createSession": [{
|
|
36872
|
+
name: "deviceId",
|
|
36873
|
+
form: "single",
|
|
36874
|
+
optional: false
|
|
36875
|
+
}],
|
|
36876
|
+
"webrtcSession.getIceCandidates": [{
|
|
36877
|
+
name: "deviceId",
|
|
36878
|
+
form: "single",
|
|
36879
|
+
optional: false
|
|
36880
|
+
}],
|
|
36881
|
+
"webrtcSession.getSessionState": [{
|
|
36882
|
+
name: "deviceId",
|
|
36883
|
+
form: "single",
|
|
36884
|
+
optional: false
|
|
36885
|
+
}],
|
|
36886
|
+
"webrtcSession.handleAnswer": [{
|
|
36887
|
+
name: "deviceId",
|
|
36888
|
+
form: "single",
|
|
36889
|
+
optional: false
|
|
36890
|
+
}],
|
|
36891
|
+
"webrtcSession.handleOffer": [{
|
|
36892
|
+
name: "deviceId",
|
|
36893
|
+
form: "single",
|
|
36894
|
+
optional: false
|
|
36895
|
+
}],
|
|
36896
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
36897
|
+
name: "deviceId",
|
|
36898
|
+
form: "single",
|
|
36899
|
+
optional: false
|
|
36900
|
+
}],
|
|
36901
|
+
"webrtcSession.listStreams": [{
|
|
36902
|
+
name: "deviceId",
|
|
36903
|
+
form: "single",
|
|
36904
|
+
optional: false
|
|
36905
|
+
}],
|
|
36906
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
36907
|
+
name: "deviceId",
|
|
36908
|
+
form: "single",
|
|
36909
|
+
optional: false
|
|
36910
|
+
}],
|
|
36911
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
36912
|
+
name: "deviceId",
|
|
36913
|
+
form: "single",
|
|
36914
|
+
optional: false
|
|
36915
|
+
}],
|
|
36916
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
36917
|
+
name: "deviceId",
|
|
36918
|
+
form: "single",
|
|
36919
|
+
optional: false
|
|
36920
|
+
}],
|
|
36921
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
36922
|
+
name: "deviceId",
|
|
36923
|
+
form: "single",
|
|
36924
|
+
optional: false
|
|
36925
|
+
}],
|
|
36926
|
+
"zoneRules.listRules": [{
|
|
36927
|
+
name: "deviceId",
|
|
36928
|
+
form: "single",
|
|
36929
|
+
optional: false
|
|
36930
|
+
}],
|
|
36931
|
+
"zoneRules.setRules": [{
|
|
36932
|
+
name: "deviceId",
|
|
36933
|
+
form: "single",
|
|
36934
|
+
optional: false
|
|
36935
|
+
}],
|
|
36936
|
+
"zones.addZone": [{
|
|
36937
|
+
name: "deviceId",
|
|
36938
|
+
form: "single",
|
|
36939
|
+
optional: false
|
|
36940
|
+
}],
|
|
36941
|
+
"zones.listZones": [{
|
|
36942
|
+
name: "deviceId",
|
|
36943
|
+
form: "single",
|
|
36944
|
+
optional: false
|
|
36945
|
+
}],
|
|
36946
|
+
"zones.removeZone": [{
|
|
36947
|
+
name: "deviceId",
|
|
36948
|
+
form: "single",
|
|
36949
|
+
optional: false
|
|
36950
|
+
}],
|
|
36951
|
+
"zones.updateZone": [{
|
|
36952
|
+
name: "deviceId",
|
|
36953
|
+
form: "single",
|
|
36954
|
+
optional: false
|
|
36955
|
+
}]
|
|
36956
|
+
});
|
|
34170
36957
|
Object.freeze({
|
|
34171
36958
|
"broker": "broker",
|
|
34172
36959
|
"device-export": "device-export",
|