@camstack/addon-provider-dreo 0.2.16 → 0.2.18
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 +2951 -150
- package/dist/addon.mjs +2951 -150
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
37
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../types/dist/event-category-
|
|
39
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
40
40
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
41
41
|
EventCategory["SystemBoot"] = "system.boot";
|
|
42
42
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -243,6 +243,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
243
243
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
244
244
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
245
245
|
/**
|
|
246
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
247
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
248
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
249
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
250
|
+
* from the placement candidate set for as long as it holds.
|
|
251
|
+
*
|
|
252
|
+
* This exists because the state was previously invisible: little-unraid
|
|
253
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
254
|
+
* and nothing in the system said so.
|
|
255
|
+
*
|
|
256
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
257
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
258
|
+
* serves it exactly as before.
|
|
259
|
+
*/
|
|
260
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
261
|
+
/**
|
|
262
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
263
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
264
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
265
|
+
* per camera.
|
|
266
|
+
*
|
|
267
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
268
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
269
|
+
* camera" produce byte-identical silence.
|
|
270
|
+
*/
|
|
271
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
272
|
+
/**
|
|
246
273
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
247
274
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
248
275
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3034,6 +3061,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3034
3061
|
fallback: left.fallback
|
|
3035
3062
|
}, ctx);
|
|
3036
3063
|
}
|
|
3064
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3065
|
+
$ZodPipe.init(inst, def);
|
|
3066
|
+
});
|
|
3037
3067
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3038
3068
|
$ZodType.init(inst, def);
|
|
3039
3069
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5219,6 +5249,10 @@ function pipe(in_, out) {
|
|
|
5219
5249
|
out
|
|
5220
5250
|
});
|
|
5221
5251
|
}
|
|
5252
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5253
|
+
ZodPipe.init(inst, def);
|
|
5254
|
+
$ZodPreprocess.init(inst, def);
|
|
5255
|
+
});
|
|
5222
5256
|
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5223
5257
|
$ZodReadonly.init(inst, def);
|
|
5224
5258
|
ZodType.init(inst, def);
|
|
@@ -5277,6 +5311,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5277
5311
|
};
|
|
5278
5312
|
return inst;
|
|
5279
5313
|
}
|
|
5314
|
+
function preprocess(fn, schema) {
|
|
5315
|
+
return new ZodPreprocess({
|
|
5316
|
+
type: "pipe",
|
|
5317
|
+
in: transform(fn),
|
|
5318
|
+
out: schema
|
|
5319
|
+
});
|
|
5320
|
+
}
|
|
5280
5321
|
//#endregion
|
|
5281
5322
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5282
5323
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -10913,6 +10954,8 @@ var QueryFilterSchema = object({
|
|
|
10913
10954
|
where: record(string(), unknown()).optional(),
|
|
10914
10955
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10915
10956
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10957
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10958
|
+
whereNot: record(string(), unknown()).optional(),
|
|
10916
10959
|
orderBy: object({
|
|
10917
10960
|
field: string(),
|
|
10918
10961
|
direction: _enum(["asc", "desc"])
|
|
@@ -10932,7 +10975,8 @@ var QueryFilterSchema = object({
|
|
|
10932
10975
|
var MutationFilterSchema = object({
|
|
10933
10976
|
where: record(string(), unknown()).optional(),
|
|
10934
10977
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10935
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
10978
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10979
|
+
whereNot: record(string(), unknown()).optional()
|
|
10936
10980
|
});
|
|
10937
10981
|
/** A single stored record: `{ id, data }`. */
|
|
10938
10982
|
var SettingsRecordSchema = object({
|
|
@@ -12468,6 +12512,17 @@ var LlmImageSchema = object({
|
|
|
12468
12512
|
bytes: _instanceof(Uint8Array),
|
|
12469
12513
|
mimeType: string()
|
|
12470
12514
|
});
|
|
12515
|
+
/**
|
|
12516
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12517
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12518
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12519
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12520
|
+
*/
|
|
12521
|
+
var LlmRetryPolicySchema = object({
|
|
12522
|
+
enabled: boolean().default(false),
|
|
12523
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12524
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12525
|
+
});
|
|
12471
12526
|
var LlmGenerateBaseInputSchema = object({
|
|
12472
12527
|
/** Collection routing (the notification-output posture). */
|
|
12473
12528
|
addonId: string().optional(),
|
|
@@ -12482,7 +12537,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12482
12537
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12483
12538
|
/** Per-call override of the profile default. */
|
|
12484
12539
|
maxTokens: number().int().positive().optional(),
|
|
12485
|
-
temperature: number().optional()
|
|
12540
|
+
temperature: number().optional(),
|
|
12541
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12542
|
+
topP: number().min(0).max(1).optional(),
|
|
12543
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12544
|
+
topK: number().int().positive().optional(),
|
|
12545
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12546
|
+
timeoutMs: number().int().positive().optional(),
|
|
12547
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12548
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12549
|
+
/**
|
|
12550
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12551
|
+
*
|
|
12552
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12553
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12554
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12555
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12556
|
+
* not generations, and the real load is unbounded.
|
|
12557
|
+
*
|
|
12558
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12559
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12560
|
+
*/
|
|
12561
|
+
requestId: string().optional()
|
|
12486
12562
|
});
|
|
12487
12563
|
/**
|
|
12488
12564
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12495,6 +12571,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12495
12571
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12496
12572
|
* watchdog — operator decision #3).
|
|
12497
12573
|
*/
|
|
12574
|
+
/**
|
|
12575
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12576
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12577
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12578
|
+
* the preview is exactly what the node downloads.
|
|
12579
|
+
*/
|
|
12580
|
+
var ManagedModelExtraFileSchema = object({
|
|
12581
|
+
url: string(),
|
|
12582
|
+
filename: string(),
|
|
12583
|
+
sizeBytes: number(),
|
|
12584
|
+
sha256: string().optional()
|
|
12585
|
+
});
|
|
12498
12586
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12499
12587
|
object({
|
|
12500
12588
|
kind: literal("catalog"),
|
|
@@ -12503,7 +12591,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12503
12591
|
object({
|
|
12504
12592
|
kind: literal("url"),
|
|
12505
12593
|
url: string(),
|
|
12506
|
-
sha256: string().optional()
|
|
12594
|
+
sha256: string().optional(),
|
|
12595
|
+
/** Picker/status label; the file basename when absent. */
|
|
12596
|
+
label: string().optional(),
|
|
12597
|
+
sizeBytes: number().optional(),
|
|
12598
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12507
12599
|
}),
|
|
12508
12600
|
object({
|
|
12509
12601
|
kind: literal("path"),
|
|
@@ -12521,13 +12613,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12521
12613
|
gpuLayers: number().int().default(0),
|
|
12522
12614
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12523
12615
|
threads: number().int().optional(),
|
|
12524
|
-
/** Concurrent slots. */
|
|
12616
|
+
/** Concurrent slots (`--parallel`). */
|
|
12525
12617
|
parallel: number().int().default(1),
|
|
12618
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12619
|
+
batchSize: number().int().positive().optional(),
|
|
12620
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12621
|
+
ubatchSize: number().int().positive().optional(),
|
|
12622
|
+
/**
|
|
12623
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12624
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12625
|
+
*/
|
|
12626
|
+
flashAttention: boolean().default(false),
|
|
12627
|
+
/**
|
|
12628
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12629
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12630
|
+
* what the RAM budget is counting.
|
|
12631
|
+
*/
|
|
12632
|
+
mlock: boolean().default(false),
|
|
12633
|
+
/**
|
|
12634
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12635
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12636
|
+
* store produces on every first token.
|
|
12637
|
+
*/
|
|
12638
|
+
noMmap: boolean().default(false),
|
|
12639
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12640
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12641
|
+
cacheTypeK: _enum([
|
|
12642
|
+
"f32",
|
|
12643
|
+
"f16",
|
|
12644
|
+
"q8_0",
|
|
12645
|
+
"q5_1",
|
|
12646
|
+
"q5_0",
|
|
12647
|
+
"q4_1",
|
|
12648
|
+
"q4_0"
|
|
12649
|
+
]).optional(),
|
|
12650
|
+
cacheTypeV: _enum([
|
|
12651
|
+
"f32",
|
|
12652
|
+
"f16",
|
|
12653
|
+
"q8_0",
|
|
12654
|
+
"q5_1",
|
|
12655
|
+
"q5_0",
|
|
12656
|
+
"q4_1",
|
|
12657
|
+
"q4_0"
|
|
12658
|
+
]).optional(),
|
|
12659
|
+
/**
|
|
12660
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12661
|
+
* (which most vision chat templates need and some language-only models
|
|
12662
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12663
|
+
*
|
|
12664
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12665
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12666
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12667
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12668
|
+
* twice (D62).
|
|
12669
|
+
*/
|
|
12670
|
+
extraArgs: array(string()).default([]),
|
|
12526
12671
|
/** Else lazy: first generate boots it. */
|
|
12527
12672
|
autoStart: boolean().default(false),
|
|
12528
12673
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12529
12674
|
idleStopMinutes: number().int().default(30)
|
|
12530
12675
|
});
|
|
12676
|
+
/**
|
|
12677
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12678
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12679
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12680
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12681
|
+
*/
|
|
12682
|
+
var LlmDownloadProgressSchema = object({
|
|
12683
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12684
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12685
|
+
file: string(),
|
|
12686
|
+
fileIndex: number().int(),
|
|
12687
|
+
fileCount: number().int(),
|
|
12688
|
+
/** Across the WHOLE install, not the current file. */
|
|
12689
|
+
downloadedBytes: number(),
|
|
12690
|
+
totalBytes: number().optional()
|
|
12691
|
+
});
|
|
12531
12692
|
var LlmRuntimeStatusSchema = object({
|
|
12532
12693
|
/** Status is ALWAYS node-qualified. */
|
|
12533
12694
|
nodeId: string(),
|
|
@@ -12544,6 +12705,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12544
12705
|
modelPath: string().optional(),
|
|
12545
12706
|
modelId: string().optional(),
|
|
12546
12707
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12708
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12709
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12547
12710
|
lastError: string().optional(),
|
|
12548
12711
|
crashesInWindow: number(),
|
|
12549
12712
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12554,7 +12717,14 @@ var LlmNodeModelSchema = object({
|
|
|
12554
12717
|
file: string(),
|
|
12555
12718
|
sizeBytes: number(),
|
|
12556
12719
|
catalogId: string().optional(),
|
|
12557
|
-
installedAt: number().optional()
|
|
12720
|
+
installedAt: number().optional(),
|
|
12721
|
+
/**
|
|
12722
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12723
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12724
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12725
|
+
* it the picker could list such a file and do nothing with it.
|
|
12726
|
+
*/
|
|
12727
|
+
path: string().optional()
|
|
12558
12728
|
});
|
|
12559
12729
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12560
12730
|
nodeId: string(),
|
|
@@ -12610,10 +12780,47 @@ var LlmProfileSchema = object({
|
|
|
12610
12780
|
baseUrl: string().optional(),
|
|
12611
12781
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12612
12782
|
apiKey: string().optional(),
|
|
12783
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12784
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12785
|
+
* question about a picture nobody sent. */
|
|
12613
12786
|
supportsVision: boolean(),
|
|
12614
12787
|
temperature: number().min(0).max(2).optional(),
|
|
12788
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12789
|
+
topP: number().min(0).max(1).optional(),
|
|
12790
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12791
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12792
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12793
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12794
|
+
topK: number().int().positive().optional(),
|
|
12615
12795
|
maxTokens: number().int().positive().optional(),
|
|
12796
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12797
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12798
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12799
|
+
contextLength: number().int().positive().optional(),
|
|
12800
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12801
|
+
* two system prompts fighting is worse than either alone). */
|
|
12802
|
+
systemPrompt: string().optional(),
|
|
12803
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12616
12804
|
timeoutMs: number().int().positive().default(6e4),
|
|
12805
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12806
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12807
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12808
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12809
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12810
|
+
* GPU load is exactly what happens before them. */
|
|
12811
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12812
|
+
/** Output started then stopped. */
|
|
12813
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12814
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12815
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12816
|
+
retry: LlmRetryPolicySchema.default({
|
|
12817
|
+
enabled: false,
|
|
12818
|
+
maxAttempts: 1
|
|
12819
|
+
}),
|
|
12820
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12821
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12822
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12823
|
+
toolsEnabled: boolean().default(false),
|
|
12617
12824
|
extraHeaders: record(string(), string()).optional(),
|
|
12618
12825
|
/** kind === 'managed-local' only (spec §4). */
|
|
12619
12826
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12663,6 +12870,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12663
12870
|
/** Vision models: companion projector file. */
|
|
12664
12871
|
mmprojUrl: string().optional()
|
|
12665
12872
|
});
|
|
12873
|
+
/**
|
|
12874
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12875
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12876
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12877
|
+
* exception.
|
|
12878
|
+
*
|
|
12879
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12880
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12881
|
+
*/
|
|
12882
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12883
|
+
ok: literal(true),
|
|
12884
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12885
|
+
model: ManagedModelRefSchema,
|
|
12886
|
+
label: string(),
|
|
12887
|
+
repo: string(),
|
|
12888
|
+
quantization: string(),
|
|
12889
|
+
purpose: _enum(["text", "vision"]),
|
|
12890
|
+
totalBytes: number(),
|
|
12891
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12892
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12893
|
+
extraFilenames: array(string())
|
|
12894
|
+
}), object({
|
|
12895
|
+
ok: literal(false),
|
|
12896
|
+
code: string(),
|
|
12897
|
+
message: string(),
|
|
12898
|
+
candidates: array(string()).optional(),
|
|
12899
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12900
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12901
|
+
requiredBytes: number().optional()
|
|
12902
|
+
})]);
|
|
12666
12903
|
var LlmRuntimeNodeSchema = object({
|
|
12667
12904
|
nodeId: string(),
|
|
12668
12905
|
reachable: boolean(),
|
|
@@ -12675,7 +12912,10 @@ var ProfileRefInputSchema = object({
|
|
|
12675
12912
|
addonId: string(),
|
|
12676
12913
|
profileId: string()
|
|
12677
12914
|
});
|
|
12678
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12915
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12916
|
+
addonId: string().optional(),
|
|
12917
|
+
requestId: string()
|
|
12918
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12679
12919
|
kind: "mutation",
|
|
12680
12920
|
auth: "admin"
|
|
12681
12921
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12696,6 +12936,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12696
12936
|
consumer: string().optional(),
|
|
12697
12937
|
profileId: string().optional()
|
|
12698
12938
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
12939
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12940
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12941
|
+
ref: string(),
|
|
12942
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12943
|
+
maxBytes: number().positive().optional()
|
|
12944
|
+
}), HfModelResolutionSchema, {
|
|
12945
|
+
kind: "mutation",
|
|
12946
|
+
auth: "admin"
|
|
12947
|
+
}), method(object({
|
|
12699
12948
|
nodeId: string(),
|
|
12700
12949
|
model: ManagedModelRefSchema
|
|
12701
12950
|
}), _void(), {
|
|
@@ -13255,11 +13504,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13255
13504
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13256
13505
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13257
13506
|
* differently.
|
|
13507
|
+
*
|
|
13508
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13509
|
+
*
|
|
13510
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13511
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13512
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13513
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13514
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13515
|
+
* honestly.
|
|
13516
|
+
*
|
|
13517
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13518
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13519
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13520
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13521
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13522
|
+
*
|
|
13523
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13524
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13525
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13526
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13527
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13258
13528
|
*/
|
|
13259
13529
|
var NotificationActionIconSchema = _enum([
|
|
13260
13530
|
"acknowledge",
|
|
13261
13531
|
"dismiss",
|
|
13262
13532
|
"silence",
|
|
13533
|
+
"snooze",
|
|
13263
13534
|
"view",
|
|
13264
13535
|
"play",
|
|
13265
13536
|
"open",
|
|
@@ -13267,9 +13538,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13267
13538
|
"lock",
|
|
13268
13539
|
"unlock",
|
|
13269
13540
|
"arm",
|
|
13541
|
+
"arm-home",
|
|
13542
|
+
"arm-away",
|
|
13543
|
+
"arm-night",
|
|
13270
13544
|
"disarm",
|
|
13271
13545
|
"light",
|
|
13272
|
-
"alert"
|
|
13546
|
+
"alert",
|
|
13547
|
+
"camera"
|
|
13273
13548
|
]);
|
|
13274
13549
|
/** A single tap-through action button. */
|
|
13275
13550
|
var NotificationActionSchema = object({
|
|
@@ -13469,6 +13744,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13469
13744
|
targetId: string(),
|
|
13470
13745
|
enabled: boolean()
|
|
13471
13746
|
}), _void(), { kind: "mutation" });
|
|
13747
|
+
new Set([
|
|
13748
|
+
{
|
|
13749
|
+
id: "person",
|
|
13750
|
+
name: "Person"
|
|
13751
|
+
},
|
|
13752
|
+
{
|
|
13753
|
+
id: "vehicle",
|
|
13754
|
+
name: "Vehicle"
|
|
13755
|
+
},
|
|
13756
|
+
{
|
|
13757
|
+
id: "animal",
|
|
13758
|
+
name: "Animal"
|
|
13759
|
+
},
|
|
13760
|
+
{
|
|
13761
|
+
id: "package",
|
|
13762
|
+
name: "Package"
|
|
13763
|
+
}
|
|
13764
|
+
].map((l) => l.id));
|
|
13472
13765
|
var COCO_TO_MACRO = {
|
|
13473
13766
|
mapping: {
|
|
13474
13767
|
person: "person",
|
|
@@ -14299,11 +14592,15 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14299
14592
|
"stream-offline",
|
|
14300
14593
|
"node-online",
|
|
14301
14594
|
"node-offline",
|
|
14595
|
+
"node-inference-unavailable",
|
|
14596
|
+
"detection-blind",
|
|
14302
14597
|
"addon-update-available",
|
|
14303
14598
|
"server-update-available",
|
|
14304
14599
|
"alarm-triggered",
|
|
14305
14600
|
"alarm-armed",
|
|
14306
14601
|
"alarm-disarmed",
|
|
14602
|
+
"alarm-arming",
|
|
14603
|
+
"alarm-arm-refused",
|
|
14307
14604
|
"camera-online",
|
|
14308
14605
|
"camera-offline",
|
|
14309
14606
|
"camera-disabled",
|
|
@@ -14358,7 +14655,16 @@ var NcScheduleSchema = object({
|
|
|
14358
14655
|
});
|
|
14359
14656
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14360
14657
|
var NcPlateMatcherSchema = object({
|
|
14361
|
-
|
|
14658
|
+
/**
|
|
14659
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14660
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14661
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14662
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14663
|
+
*
|
|
14664
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14665
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14666
|
+
*/
|
|
14667
|
+
values: array(string().min(1)),
|
|
14362
14668
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14363
14669
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14364
14670
|
});
|
|
@@ -14392,28 +14698,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14392
14698
|
/**
|
|
14393
14699
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14394
14700
|
*
|
|
14395
|
-
*
|
|
14396
|
-
*
|
|
14397
|
-
*
|
|
14398
|
-
*
|
|
14399
|
-
*
|
|
14400
|
-
*
|
|
14401
|
-
*
|
|
14402
|
-
*
|
|
14403
|
-
*
|
|
14404
|
-
*
|
|
14405
|
-
*
|
|
14406
|
-
*
|
|
14407
|
-
*
|
|
14408
|
-
*
|
|
14409
|
-
*
|
|
14410
|
-
*
|
|
14411
|
-
*
|
|
14412
|
-
*
|
|
14413
|
-
*
|
|
14414
|
-
*
|
|
14415
|
-
*
|
|
14416
|
-
* `
|
|
14701
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14702
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14703
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14704
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14705
|
+
*
|
|
14706
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14707
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14708
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14709
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14710
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14711
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14712
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14713
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14714
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14715
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14716
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14717
|
+
* seconds is 100% of nothing.
|
|
14718
|
+
*
|
|
14719
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14720
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14721
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14722
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14723
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14724
|
+
* the wrong question to ask of a sparse classifier.
|
|
14725
|
+
*
|
|
14726
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14727
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14728
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14729
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14730
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14417
14731
|
*
|
|
14418
14732
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14419
14733
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14421,13 +14735,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14421
14735
|
* an operator who typed `dog` mean the same thing.
|
|
14422
14736
|
*/
|
|
14423
14737
|
var NcAudioConditionSchema = object({
|
|
14424
|
-
/**
|
|
14738
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14425
14739
|
labels: array(string().min(1)).min(1).optional(),
|
|
14426
|
-
/**
|
|
14740
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14427
14741
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14428
|
-
/**
|
|
14742
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14429
14743
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14430
|
-
/**
|
|
14744
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14431
14745
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14432
14746
|
});
|
|
14433
14747
|
/**
|
|
@@ -14565,13 +14879,81 @@ var NcRuleActionsSchema = object({
|
|
|
14565
14879
|
*/
|
|
14566
14880
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14567
14881
|
});
|
|
14882
|
+
/**
|
|
14883
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14884
|
+
*
|
|
14885
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14886
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14887
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14888
|
+
*
|
|
14889
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14890
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14891
|
+
*/
|
|
14892
|
+
var NcDeviceStateConditionSchema = object({
|
|
14893
|
+
deviceId: number().int(),
|
|
14894
|
+
/** Any of these matches. */
|
|
14895
|
+
states: array(string().min(1)).min(1)
|
|
14896
|
+
});
|
|
14897
|
+
/**
|
|
14898
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14899
|
+
*
|
|
14900
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14901
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14902
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14903
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14904
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14905
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14906
|
+
* kind exist for it — see D159.
|
|
14907
|
+
*
|
|
14908
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14909
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14910
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14911
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14912
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14913
|
+
*
|
|
14914
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14915
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14916
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14917
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14918
|
+
* override one rule against the scene's own default.
|
|
14919
|
+
*
|
|
14920
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14921
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14922
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14923
|
+
* evidence, in either direction.
|
|
14924
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14925
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14926
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14927
|
+
* reason the operator asked for a latch.
|
|
14928
|
+
*
|
|
14929
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14930
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14931
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14932
|
+
* said out loud in the log rather than dropped in silence.
|
|
14933
|
+
*/
|
|
14934
|
+
var NcSceneConditionSchema = object({
|
|
14935
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14936
|
+
sceneId: string().min(1),
|
|
14937
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14938
|
+
deviceId: number().int().optional(),
|
|
14939
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14940
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14941
|
+
/**
|
|
14942
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14943
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14944
|
+
*/
|
|
14945
|
+
latched: boolean().optional()
|
|
14946
|
+
});
|
|
14568
14947
|
var NcConditionsSchema = object({
|
|
14569
14948
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14570
|
-
deviceState:
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14949
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14950
|
+
/**
|
|
14951
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14952
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14953
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14954
|
+
* {@link NcSceneCondition} and D159.
|
|
14955
|
+
*/
|
|
14956
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14575
14957
|
/** Device scope — absent = all devices. */
|
|
14576
14958
|
devices: array(number()).optional(),
|
|
14577
14959
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14597,18 +14979,47 @@ var NcConditionsSchema = object({
|
|
|
14597
14979
|
*/
|
|
14598
14980
|
labelEquals: array(string().min(1)).optional(),
|
|
14599
14981
|
/**
|
|
14600
|
-
*
|
|
14601
|
-
*
|
|
14602
|
-
*
|
|
14982
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
14983
|
+
* is about recognised people at all.
|
|
14984
|
+
*
|
|
14985
|
+
* Three states, and the empty one is the point:
|
|
14986
|
+
*
|
|
14987
|
+
* | value | meaning |
|
|
14988
|
+
* | --- | --- |
|
|
14989
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
14990
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
14991
|
+
* | a list | only these identities |
|
|
14992
|
+
*
|
|
14993
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
14994
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
14995
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
14996
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
14997
|
+
* with the list under it is worse than no switch (D62).
|
|
14998
|
+
*
|
|
14999
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
15000
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
15001
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
15002
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
15003
|
+
* `{{label}}` renders.
|
|
15004
|
+
*
|
|
15005
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
15006
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
15007
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
15008
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
15009
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14603
15010
|
*/
|
|
14604
15011
|
identities: array(string().min(1)).optional(),
|
|
14605
|
-
/**
|
|
15012
|
+
/**
|
|
15013
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
15014
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
15015
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
15016
|
+
*/
|
|
14606
15017
|
plates: NcPlateMatcherSchema.optional(),
|
|
14607
15018
|
/**
|
|
14608
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14609
|
-
*
|
|
14610
|
-
* identity
|
|
14611
|
-
*
|
|
15019
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
15020
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
15021
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
15022
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14612
15023
|
*/
|
|
14613
15024
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14614
15025
|
/**
|
|
@@ -15000,7 +15411,80 @@ var NcRuleInputSchema = object({
|
|
|
15000
15411
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15001
15412
|
* did, and absent is the only way to say that without a migration.
|
|
15002
15413
|
*/
|
|
15003
|
-
confirm: NcConfirmSchema.optional()
|
|
15414
|
+
confirm: NcConfirmSchema.optional(),
|
|
15415
|
+
/**
|
|
15416
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15417
|
+
*
|
|
15418
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15419
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15420
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15421
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15422
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15423
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15424
|
+
*
|
|
15425
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15426
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15427
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15428
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15429
|
+
*
|
|
15430
|
+
* | value | what happens |
|
|
15431
|
+
* | --- | --- |
|
|
15432
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15433
|
+
* | 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) |
|
|
15434
|
+
*
|
|
15435
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15436
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15437
|
+
* rule authored before this field meant.
|
|
15438
|
+
*
|
|
15439
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15440
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15441
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15442
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15443
|
+
*/
|
|
15444
|
+
waitForEnhancement: boolean().optional(),
|
|
15445
|
+
/**
|
|
15446
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15447
|
+
*
|
|
15448
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15449
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15450
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15451
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15452
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15453
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15454
|
+
*
|
|
15455
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15456
|
+
*
|
|
15457
|
+
* ### Why an idle cutoff and not a window
|
|
15458
|
+
*
|
|
15459
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15460
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15461
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15462
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15463
|
+
*
|
|
15464
|
+
* ### What it replaces
|
|
15465
|
+
*
|
|
15466
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15467
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15468
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15469
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15470
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15471
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15472
|
+
* throttled by the window its own first member spent.
|
|
15473
|
+
*
|
|
15474
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15475
|
+
*
|
|
15476
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15477
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15478
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15479
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15480
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15481
|
+
* path. Neither combination fires twice for one subject.
|
|
15482
|
+
*
|
|
15483
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15484
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15485
|
+
* field existed.
|
|
15486
|
+
*/
|
|
15487
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15004
15488
|
});
|
|
15005
15489
|
/**
|
|
15006
15490
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15107,6 +15591,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15107
15591
|
"occupancy",
|
|
15108
15592
|
"audio",
|
|
15109
15593
|
"deviceState",
|
|
15594
|
+
"scene",
|
|
15110
15595
|
"systemEvent"
|
|
15111
15596
|
]),
|
|
15112
15597
|
operator: _enum([
|
|
@@ -15512,7 +15997,87 @@ var MethodAccessSchema = _enum([
|
|
|
15512
15997
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15513
15998
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15514
15999
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15515
|
-
|
|
16000
|
+
/**
|
|
16001
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
16002
|
+
*
|
|
16003
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
16004
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
16005
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
16006
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
16007
|
+
*
|
|
16008
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
16009
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
16010
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
16011
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
16012
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
16013
|
+
* is NOT covered until the grant is edited.
|
|
16014
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
16015
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
16016
|
+
* re-resolves on the next request.
|
|
16017
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
16018
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
16019
|
+
* null/unset location matches NO `locations` selector.
|
|
16020
|
+
*/
|
|
16021
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
16022
|
+
object({ kind: literal("all") }),
|
|
16023
|
+
object({
|
|
16024
|
+
kind: literal("ids"),
|
|
16025
|
+
ids: array(number().int()).min(1)
|
|
16026
|
+
}),
|
|
16027
|
+
object({
|
|
16028
|
+
kind: literal("types"),
|
|
16029
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16030
|
+
}),
|
|
16031
|
+
object({
|
|
16032
|
+
kind: literal("locations"),
|
|
16033
|
+
locations: array(string().min(1)).min(1)
|
|
16034
|
+
})
|
|
16035
|
+
]);
|
|
16036
|
+
var DeviceTokenScopeSchema = object({
|
|
16037
|
+
type: literal("device"),
|
|
16038
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16039
|
+
selector: DeviceSelectorSchema,
|
|
16040
|
+
access: array(MethodAccessSchema).min(1),
|
|
16041
|
+
/**
|
|
16042
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16043
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16044
|
+
* Direction is parent → children ONLY.
|
|
16045
|
+
*
|
|
16046
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16047
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16048
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16049
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16050
|
+
* explicitly to override that default per grant.
|
|
16051
|
+
*/
|
|
16052
|
+
includeLinked: boolean().optional()
|
|
16053
|
+
});
|
|
16054
|
+
/**
|
|
16055
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16056
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16057
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16058
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16059
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16060
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16061
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16062
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16063
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16064
|
+
*/
|
|
16065
|
+
function migrateLegacyTokenScope(raw) {
|
|
16066
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16067
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16068
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16069
|
+
const targets = Reflect.get(raw, "targets");
|
|
16070
|
+
if (!Array.isArray(targets)) return raw;
|
|
16071
|
+
return {
|
|
16072
|
+
type: "device",
|
|
16073
|
+
selector: {
|
|
16074
|
+
kind: "ids",
|
|
16075
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16076
|
+
},
|
|
16077
|
+
access: Reflect.get(raw, "access")
|
|
16078
|
+
};
|
|
16079
|
+
}
|
|
16080
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15516
16081
|
object({
|
|
15517
16082
|
type: literal("category"),
|
|
15518
16083
|
target: CapScopeSchema,
|
|
@@ -15528,18 +16093,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15528
16093
|
target: string(),
|
|
15529
16094
|
access: array(MethodAccessSchema).min(1)
|
|
15530
16095
|
}),
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
/**
|
|
15534
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15535
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15536
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15537
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15538
|
-
*/
|
|
15539
|
-
targets: array(string()).min(1),
|
|
15540
|
-
access: array(MethodAccessSchema).min(1)
|
|
15541
|
-
})
|
|
15542
|
-
]);
|
|
16096
|
+
DeviceTokenScopeSchema
|
|
16097
|
+
]));
|
|
15543
16098
|
object({
|
|
15544
16099
|
id: string(),
|
|
15545
16100
|
username: string(),
|
|
@@ -15856,7 +16411,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15856
16411
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15857
16412
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15858
16413
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15859
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16414
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15860
16415
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15861
16416
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15862
16417
|
* (`getObjectEvents` et al.).
|
|
@@ -15992,7 +16547,21 @@ union([literal(1), literal(2)]);
|
|
|
15992
16547
|
var LabelAttributionSchema = object({
|
|
15993
16548
|
stepId: string(),
|
|
15994
16549
|
modelId: string().optional(),
|
|
15995
|
-
decidedAt: number()
|
|
16550
|
+
decidedAt: number(),
|
|
16551
|
+
/**
|
|
16552
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16553
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16554
|
+
*
|
|
16555
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16556
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16557
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16558
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16559
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16560
|
+
*
|
|
16561
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16562
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16563
|
+
*/
|
|
16564
|
+
identityId: string().optional()
|
|
15996
16565
|
});
|
|
15997
16566
|
/**
|
|
15998
16567
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16129,6 +16698,28 @@ var TrackSchema = object({
|
|
|
16129
16698
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16130
16699
|
*/
|
|
16131
16700
|
hasFace: boolean().optional(),
|
|
16701
|
+
/**
|
|
16702
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16703
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16704
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16705
|
+
*
|
|
16706
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16707
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16708
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16709
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16710
|
+
* stop. This is the composition note that makes the row true.
|
|
16711
|
+
*
|
|
16712
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16713
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16714
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16715
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16716
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16717
|
+
*
|
|
16718
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16719
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16720
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16721
|
+
*/
|
|
16722
|
+
hasRider: boolean().optional(),
|
|
16132
16723
|
...TrackFlagFields,
|
|
16133
16724
|
...TrackRetrainFields
|
|
16134
16725
|
});
|
|
@@ -16478,7 +17069,10 @@ var RecentTracksQueryInput = object({
|
|
|
16478
17069
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16479
17070
|
cursor: string().optional(),
|
|
16480
17071
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16481
|
-
projection: TrackProjectionSchema.optional()
|
|
17072
|
+
projection: TrackProjectionSchema.optional(),
|
|
17073
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
17074
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
17075
|
+
includeStationary: boolean().optional()
|
|
16482
17076
|
});
|
|
16483
17077
|
var RecentTracksPageSchema = object({
|
|
16484
17078
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16696,7 +17290,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16696
17290
|
zone: TrackZoneFilterSchema.optional(),
|
|
16697
17291
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16698
17292
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16699
|
-
projection: TrackProjectionSchema.optional()
|
|
17293
|
+
projection: TrackProjectionSchema.optional(),
|
|
17294
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
17295
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
17296
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
17297
|
+
includeStationary: boolean().optional()
|
|
16700
17298
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16701
17299
|
kind: "mutation",
|
|
16702
17300
|
auth: "admin"
|
|
@@ -16860,11 +17458,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16860
17458
|
auth: "admin"
|
|
16861
17459
|
}), method(object({
|
|
16862
17460
|
eventId: string(),
|
|
16863
|
-
kind: MediaFileKindEnum.optional()
|
|
17461
|
+
kind: MediaFileKindEnum.optional(),
|
|
17462
|
+
deviceId: number()
|
|
17463
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17464
|
+
trackId: string(),
|
|
17465
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17466
|
+
deviceId: number()
|
|
16864
17467
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16865
17468
|
trackId: string(),
|
|
16866
|
-
|
|
16867
|
-
}), array(
|
|
17469
|
+
deviceId: number()
|
|
17470
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16868
17471
|
kind: "mutation",
|
|
16869
17472
|
auth: "admin"
|
|
16870
17473
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17564,6 +18167,17 @@ var maxSessionHoldMsField = {
|
|
|
17564
18167
|
default: 12e4,
|
|
17565
18168
|
step: 5e3
|
|
17566
18169
|
};
|
|
18170
|
+
/**
|
|
18171
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18172
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18173
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18174
|
+
*/
|
|
18175
|
+
var audioMotionWindowMsField = {
|
|
18176
|
+
min: 5e3,
|
|
18177
|
+
max: 6e5,
|
|
18178
|
+
default: 9e4,
|
|
18179
|
+
step: 5e3
|
|
18180
|
+
};
|
|
17567
18181
|
var motionFpsField = {
|
|
17568
18182
|
min: 1,
|
|
17569
18183
|
max: 30,
|
|
@@ -17576,10 +18190,26 @@ var detectionFpsField = {
|
|
|
17576
18190
|
default: 10,
|
|
17577
18191
|
step: 1
|
|
17578
18192
|
};
|
|
18193
|
+
/**
|
|
18194
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18195
|
+
*
|
|
18196
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18197
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18198
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18199
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18200
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18201
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18202
|
+
*
|
|
18203
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18204
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18205
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18206
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18207
|
+
* that ships with an addon deploy.
|
|
18208
|
+
*/
|
|
17579
18209
|
var occupancyRecheckSecField = {
|
|
17580
18210
|
min: 0,
|
|
17581
18211
|
max: 300,
|
|
17582
|
-
default:
|
|
18212
|
+
default: 300,
|
|
17583
18213
|
step: 5
|
|
17584
18214
|
};
|
|
17585
18215
|
var occupancyRecheckFramesField = {
|
|
@@ -17724,6 +18354,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17724
18354
|
* resolved `CameraDetectionConfig`.
|
|
17725
18355
|
*/
|
|
17726
18356
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18357
|
+
/**
|
|
18358
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18359
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18360
|
+
*
|
|
18361
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18362
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18363
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18364
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18365
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18366
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18367
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18368
|
+
*
|
|
18369
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18370
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18371
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18372
|
+
*
|
|
18373
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18374
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18375
|
+
* `maxSessionHoldMs`.
|
|
18376
|
+
*/
|
|
18377
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17727
18378
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17728
18379
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17729
18380
|
motionStreamId: string(),
|
|
@@ -17777,15 +18428,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17777
18428
|
*/
|
|
17778
18429
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17779
18430
|
/**
|
|
17780
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17781
|
-
*
|
|
17782
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17783
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17784
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18431
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18432
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17785
18433
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17786
18434
|
* (and only render) when this is enabled.
|
|
18435
|
+
*
|
|
18436
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18437
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18438
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18439
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18440
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18441
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18442
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18443
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17787
18444
|
*/
|
|
17788
|
-
occupancyRecheckEnabled: boolean().default(
|
|
18445
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17789
18446
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17790
18447
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17791
18448
|
/**
|
|
@@ -17813,7 +18470,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17813
18470
|
*/
|
|
17814
18471
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17815
18472
|
});
|
|
17816
|
-
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;
|
|
18473
|
+
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;
|
|
17817
18474
|
/**
|
|
17818
18475
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17819
18476
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18829,7 +19486,16 @@ targets: array(object({
|
|
|
18829
19486
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18830
19487
|
* NOT refresh in the background. A surface should say so rather than
|
|
18831
19488
|
* present it as current. */
|
|
18832
|
-
sleeping: boolean()
|
|
19489
|
+
sleeping: boolean(),
|
|
19490
|
+
/** Current device state rendered over the cached frame. State images
|
|
19491
|
+
* remain authoritative even when their photographic background is
|
|
19492
|
+
* old; null means the link must carry a current camera frame. */
|
|
19493
|
+
stateReason: _enum([
|
|
19494
|
+
"disabled",
|
|
19495
|
+
"sleeping",
|
|
19496
|
+
"unreachable",
|
|
19497
|
+
"waking"
|
|
19498
|
+
]).nullable()
|
|
18833
19499
|
})));
|
|
18834
19500
|
/**
|
|
18835
19501
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -20483,6 +21149,25 @@ var BatteryStatusSchema = object({
|
|
|
20483
21149
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20484
21150
|
lastUpdated: number(),
|
|
20485
21151
|
/**
|
|
21152
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
21153
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
21154
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
21155
|
+
*
|
|
21156
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
21157
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
21158
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
21159
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
21160
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
21161
|
+
*
|
|
21162
|
+
* It is deliberately NOT a clock in the
|
|
21163
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
21164
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
21165
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
21166
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
21167
|
+
* SQLite commit per round-trip.
|
|
21168
|
+
*/
|
|
21169
|
+
lastContactAt: number().optional(),
|
|
21170
|
+
/**
|
|
20486
21171
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20487
21172
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20488
21173
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -22755,54 +23440,139 @@ var TalkAudioCodecSchema = _enum([
|
|
|
22755
23440
|
"g711ulaw",
|
|
22756
23441
|
"g711alaw"
|
|
22757
23442
|
]);
|
|
22758
|
-
|
|
22759
|
-
|
|
22760
|
-
|
|
22761
|
-
|
|
22762
|
-
|
|
22763
|
-
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22770
|
-
|
|
22771
|
-
}),
|
|
22772
|
-
|
|
22773
|
-
|
|
22774
|
-
}),
|
|
22775
|
-
|
|
22776
|
-
|
|
22777
|
-
}),
|
|
22778
|
-
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22783
|
-
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22792
|
-
|
|
22793
|
-
|
|
22794
|
-
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
23443
|
+
var intercomCapability = {
|
|
23444
|
+
name: "intercom",
|
|
23445
|
+
scope: "device",
|
|
23446
|
+
deviceNative: true,
|
|
23447
|
+
mode: "singleton",
|
|
23448
|
+
deviceTypes: [DeviceType.Camera],
|
|
23449
|
+
methods: {
|
|
23450
|
+
/**
|
|
23451
|
+
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
23452
|
+
* offer with a single sendonly audio m-line the client answers
|
|
23453
|
+
* (client → server direction). The server wakes battery cams
|
|
23454
|
+
* transparently before opening the upstream talk channel.
|
|
23455
|
+
*/
|
|
23456
|
+
startSession: method(object({ deviceId: number() }), object({
|
|
23457
|
+
sessionId: string(),
|
|
23458
|
+
sdpOffer: string()
|
|
23459
|
+
}), {
|
|
23460
|
+
kind: "mutation",
|
|
23461
|
+
auth: "admin"
|
|
23462
|
+
}),
|
|
23463
|
+
handleAnswer: method(object({
|
|
23464
|
+
deviceId: number(),
|
|
23465
|
+
sessionId: string(),
|
|
23466
|
+
sdpAnswer: string()
|
|
23467
|
+
}), _void(), {
|
|
23468
|
+
kind: "mutation",
|
|
23469
|
+
auth: "admin"
|
|
23470
|
+
}),
|
|
23471
|
+
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
23472
|
+
stopSession: method(object({
|
|
23473
|
+
deviceId: number(),
|
|
23474
|
+
sessionId: string()
|
|
23475
|
+
}), _void(), {
|
|
23476
|
+
kind: "mutation",
|
|
23477
|
+
auth: "admin"
|
|
23478
|
+
}),
|
|
23479
|
+
/**
|
|
23480
|
+
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
23481
|
+
* non-WebRTC consumers (HomeKit export, Alexa raw audio, test
|
|
23482
|
+
* harnesses) that already have decoded PCM frames and just need a
|
|
23483
|
+
* direct path onto the camera's talk channel. Mutually exclusive
|
|
23484
|
+
* with `startSession` (an active WebRTC session must be stopped
|
|
23485
|
+
* before a raw-PCM session can be opened on the same device, and
|
|
23486
|
+
* vice versa).
|
|
23487
|
+
*/
|
|
23488
|
+
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
23489
|
+
kind: "mutation",
|
|
23490
|
+
auth: "admin"
|
|
23491
|
+
}),
|
|
23492
|
+
/**
|
|
23493
|
+
* Push one chunk of talk-back audio onto the active talk session.
|
|
23494
|
+
* The cap is codec-agnostic: the caller declares (or omits) the
|
|
23495
|
+
* wire format via `codec`; the provider decides between passthrough
|
|
23496
|
+
* (when the wire codec matches the camera's native talk channel),
|
|
23497
|
+
* transcoding via the `audio-codec` cap, or rejecting the call.
|
|
23498
|
+
*
|
|
23499
|
+
* Callers do NOT need to know the camera's wire format or sample
|
|
23500
|
+
* rate — that information lives entirely inside the provider.
|
|
23501
|
+
*
|
|
23502
|
+
* Sequence numbers MUST be monotonic per talk session; older frames
|
|
23503
|
+
* arriving after newer ones are dropped to avoid smearing the
|
|
23504
|
+
* downstream encoder state (G.711 is stateless but IMA ADPCM's
|
|
23505
|
+
* predictor would corrupt with re-ordering).
|
|
23506
|
+
*/
|
|
23507
|
+
pushTalkAudio: method(object({
|
|
23508
|
+
deviceId: number(),
|
|
23509
|
+
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
23510
|
+
* survives tRPC JSON serialization. */
|
|
23511
|
+
audioBase64: string(),
|
|
23512
|
+
/** Wire codec of the payload. Omit to let the provider default
|
|
23513
|
+
* to its native expected format (s16le @ provider-native rate,
|
|
23514
|
+
* mono). See {@link TalkAudioCodecSchema} for the supported set. */
|
|
23515
|
+
codec: TalkAudioCodecSchema.optional(),
|
|
23516
|
+
/** Sample rate (Hz). REQUIRED for `s16le`; advisory for
|
|
23517
|
+
* `opus` (encoder clock); ignored for `g711*` (implied 8000). */
|
|
23518
|
+
sampleRate: number().int().positive().optional(),
|
|
23519
|
+
/** Channel count. Default 1. */
|
|
23520
|
+
channels: number().int().positive().optional(),
|
|
23521
|
+
/** Sequence number for ordering / dropping out-of-order frames. */
|
|
23522
|
+
sequenceNumber: number().int()
|
|
23523
|
+
}), object({ accepted: boolean() }), {
|
|
23524
|
+
kind: "mutation",
|
|
23525
|
+
auth: "admin"
|
|
23526
|
+
}),
|
|
23527
|
+
/** Close the raw-PCM talk session. Idempotent. */
|
|
23528
|
+
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
23529
|
+
kind: "mutation",
|
|
23530
|
+
auth: "admin"
|
|
23531
|
+
})
|
|
23532
|
+
},
|
|
23533
|
+
events: { onStatusChanged: { data: object({
|
|
23534
|
+
deviceId: number(),
|
|
23535
|
+
status: IntercomStatusSchema
|
|
23536
|
+
}) } },
|
|
23537
|
+
status: {
|
|
23538
|
+
schema: IntercomStatusSchema,
|
|
23539
|
+
kind: "command-driven"
|
|
23540
|
+
},
|
|
23541
|
+
/**
|
|
23542
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
23543
|
+
*
|
|
23544
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
23545
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
23546
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
23547
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
23548
|
+
* have been published and never received a value, which is the defect the
|
|
23549
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
23550
|
+
* `intercom` was excluded rather than exported.
|
|
23551
|
+
*
|
|
23552
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
23553
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
23554
|
+
* come to disagree. Providers write it through
|
|
23555
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
23556
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
23557
|
+
* the first session rather than after it.
|
|
23558
|
+
*
|
|
23559
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
23560
|
+
* session handle, so a session torn down by a transport death that never
|
|
23561
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
23562
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
23563
|
+
* `restored` — a restart must never restore "talking".
|
|
23564
|
+
*/
|
|
23565
|
+
runtimeState: IntercomStatusSchema,
|
|
23566
|
+
/**
|
|
23567
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
23568
|
+
* session, which by definition does not survive the process that held it.
|
|
23569
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
23570
|
+
*
|
|
23571
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23572
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23573
|
+
*/
|
|
23574
|
+
durability: "session"
|
|
23575
|
+
};
|
|
22806
23576
|
/**
|
|
22807
23577
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
22808
23578
|
* with a mowing lifecycle plus a dock action.
|
|
@@ -25499,7 +26269,7 @@ method(object({
|
|
|
25499
26269
|
toMs: number()
|
|
25500
26270
|
}), RecordingAvailabilitySchema, {
|
|
25501
26271
|
kind: "query",
|
|
25502
|
-
auth: "
|
|
26272
|
+
auth: "protected"
|
|
25503
26273
|
}), method(object({
|
|
25504
26274
|
deviceId: number(),
|
|
25505
26275
|
fromMs: number(),
|
|
@@ -25507,14 +26277,14 @@ method(object({
|
|
|
25507
26277
|
tzOffsetMinutes: number()
|
|
25508
26278
|
}), RecordingDaysSchema, {
|
|
25509
26279
|
kind: "query",
|
|
25510
|
-
auth: "
|
|
26280
|
+
auth: "protected"
|
|
25511
26281
|
}), method(object({
|
|
25512
26282
|
deviceId: number(),
|
|
25513
26283
|
fromMs: number(),
|
|
25514
26284
|
toMs: number()
|
|
25515
26285
|
}), RecordingManifestSchema, {
|
|
25516
26286
|
kind: "query",
|
|
25517
|
-
auth: "
|
|
26287
|
+
auth: "protected"
|
|
25518
26288
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
25519
26289
|
kind: "query",
|
|
25520
26290
|
auth: "admin"
|
|
@@ -25804,14 +26574,77 @@ method(object({
|
|
|
25804
26574
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
25805
26575
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
25806
26576
|
*
|
|
25807
|
-
*
|
|
25808
|
-
*
|
|
25809
|
-
*
|
|
25810
|
-
*
|
|
25811
|
-
|
|
25812
|
-
|
|
25813
|
-
*
|
|
26577
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
26578
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
26579
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
26580
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
26581
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
26582
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
26583
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
26584
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
26585
|
+
*
|
|
26586
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
26587
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
26588
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
26589
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
26590
|
+
*
|
|
26591
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
26592
|
+
* availability change; consumers never poll.
|
|
26593
|
+
*/
|
|
26594
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26595
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26596
|
+
* Open by design so more can be added without a wire break.
|
|
26597
|
+
*
|
|
26598
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26599
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26600
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26601
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
25814
26602
|
var SceneConditionSchema = string();
|
|
26603
|
+
/**
|
|
26604
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
26605
|
+
*
|
|
26606
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
26607
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
26608
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
26609
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
26610
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
26611
|
+
* working without it rather than degrading into a permanent complaint.
|
|
26612
|
+
*
|
|
26613
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
26614
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
26615
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
26616
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
26617
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
26618
|
+
* configuration choice instead of a nightly fault.
|
|
26619
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
26620
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
26621
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
26622
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
26623
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
26624
|
+
*
|
|
26625
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
26626
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
26627
|
+
* there would hide a scene the operator never finished setting up.
|
|
26628
|
+
*/
|
|
26629
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
26630
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26631
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26632
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26633
|
+
* and never counts toward hysteresis in either direction. */
|
|
26634
|
+
var SceneVerdictSchema = _enum([
|
|
26635
|
+
"matched",
|
|
26636
|
+
"diverged",
|
|
26637
|
+
"unknown"
|
|
26638
|
+
]);
|
|
26639
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26640
|
+
* silence that reads as "nothing has happened". */
|
|
26641
|
+
var SceneUnavailableSchema = _enum([
|
|
26642
|
+
"no-reference-for-condition",
|
|
26643
|
+
"view-shifted",
|
|
26644
|
+
"no-vision-profile",
|
|
26645
|
+
"encoder-model-changed",
|
|
26646
|
+
"no-snapshot"
|
|
26647
|
+
]);
|
|
25815
26648
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
25816
26649
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
25817
26650
|
var SceneReferenceSchema = object({
|
|
@@ -25819,7 +26652,14 @@ var SceneReferenceSchema = object({
|
|
|
25819
26652
|
modelId: string(),
|
|
25820
26653
|
condition: SceneConditionSchema,
|
|
25821
26654
|
capturedAt: number(),
|
|
25822
|
-
thumbnailMediaId: string().optional()
|
|
26655
|
+
thumbnailMediaId: string().optional(),
|
|
26656
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26657
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26658
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26659
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26660
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26661
|
+
* transition, not per poll. */
|
|
26662
|
+
anchorEmbedding: array(number()).optional()
|
|
25823
26663
|
});
|
|
25824
26664
|
var SceneMonitorStateSchema = object({
|
|
25825
26665
|
id: string(),
|
|
@@ -25841,6 +26681,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
25841
26681
|
profileId: string().optional(),
|
|
25842
26682
|
hysteresisCount: number().int().positive()
|
|
25843
26683
|
})]);
|
|
26684
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26685
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
26686
|
+
* out in silence rather than reporting a fault every night. */
|
|
26687
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
26688
|
+
/**
|
|
26689
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26690
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26691
|
+
*
|
|
26692
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26693
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26694
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26695
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26696
|
+
*/
|
|
26697
|
+
var SceneConfirmSchema = object({
|
|
26698
|
+
enabled: boolean().default(false),
|
|
26699
|
+
prompt: string().min(1).max(1e3),
|
|
26700
|
+
profileId: string().optional(),
|
|
26701
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
26702
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
26703
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
26704
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
26705
|
+
});
|
|
25844
26706
|
var SceneMonitorSchema = object({
|
|
25845
26707
|
id: string(),
|
|
25846
26708
|
label: string(),
|
|
@@ -25859,7 +26721,56 @@ var SceneMonitorSchema = object({
|
|
|
25859
26721
|
lastConfidence: number().nullable(),
|
|
25860
26722
|
currentCondition: SceneConditionSchema.nullable(),
|
|
25861
26723
|
availability: _enum(["ok", "unavailable"]),
|
|
25862
|
-
unavailableReason: string().nullable()
|
|
26724
|
+
unavailableReason: string().nullable(),
|
|
26725
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
26726
|
+
baselineStateId: string().nullable(),
|
|
26727
|
+
/** Which boolean drives notification rules and any export. */
|
|
26728
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
26729
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
26730
|
+
verdict: SceneVerdictSchema,
|
|
26731
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
26732
|
+
latched: boolean(),
|
|
26733
|
+
/** Last reset (or creation). */
|
|
26734
|
+
armedAt: number(),
|
|
26735
|
+
divergedAt: number().nullable(),
|
|
26736
|
+
restoredAt: number().nullable(),
|
|
26737
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
26738
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
26739
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
26740
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
26741
|
+
/** An observation only advances the pending count when it is at least this
|
|
26742
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
26743
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
26744
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
26745
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
26746
|
+
confirm: SceneConfirmSchema.optional(),
|
|
26747
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
26748
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
26749
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
26750
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
26751
|
+
* automation can react to the bin coming back without the operator's own
|
|
26752
|
+
* alarm silently clearing itself. */
|
|
26753
|
+
autoRestore: boolean().default(false),
|
|
26754
|
+
/** What to do when the current light has no reference of its own. See
|
|
26755
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
26756
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
26757
|
+
/**
|
|
26758
|
+
* The light whose checks are currently being SAT OUT under
|
|
26759
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
26760
|
+
*
|
|
26761
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
26762
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
26763
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
26764
|
+
* line, because the alternative is a scene that silently stops answering
|
|
26765
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
26766
|
+
* read as a broken one.
|
|
26767
|
+
*/
|
|
26768
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
26769
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
26770
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
26771
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
26772
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
26773
|
+
coveredConditions: array(SceneConditionSchema)
|
|
25863
26774
|
});
|
|
25864
26775
|
var SceneMonitorStatusSchema = object({
|
|
25865
26776
|
monitors: array(SceneMonitorSchema),
|
|
@@ -25872,12 +26783,6 @@ var sceneMonitorCapability = {
|
|
|
25872
26783
|
kind: "wrapper",
|
|
25873
26784
|
defaultActive: true,
|
|
25874
26785
|
deviceTypes: [DeviceType.Camera],
|
|
25875
|
-
deviceConfig: { ui: {
|
|
25876
|
-
kind: "widget",
|
|
25877
|
-
widgetId: "host/scene-monitor-editor",
|
|
25878
|
-
tab: "scenes",
|
|
25879
|
-
label: "Scenes"
|
|
25880
|
-
} },
|
|
25881
26786
|
methods: {
|
|
25882
26787
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
25883
26788
|
createScene: method(object({
|
|
@@ -25908,7 +26813,15 @@ var sceneMonitorCapability = {
|
|
|
25908
26813
|
"both"
|
|
25909
26814
|
]).optional(),
|
|
25910
26815
|
checkIntervalSec: number().optional(),
|
|
25911
|
-
check: SceneCheckSchema.optional()
|
|
26816
|
+
check: SceneCheckSchema.optional(),
|
|
26817
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
26818
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
26819
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
26820
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
26821
|
+
autoRestore: boolean().optional(),
|
|
26822
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
26823
|
+
/** `null` clears the vision-model adjudicator. */
|
|
26824
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
25912
26825
|
})
|
|
25913
26826
|
}), _void(), {
|
|
25914
26827
|
kind: "mutation",
|
|
@@ -25949,6 +26862,26 @@ var sceneMonitorCapability = {
|
|
|
25949
26862
|
}), _void(), {
|
|
25950
26863
|
kind: "mutation",
|
|
25951
26864
|
auth: "admin"
|
|
26865
|
+
}),
|
|
26866
|
+
/**
|
|
26867
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
26868
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
26869
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
26870
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
26871
|
+
* instead of failing silently weeks later.
|
|
26872
|
+
*
|
|
26873
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
26874
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
26875
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
26876
|
+
*/
|
|
26877
|
+
resetScene: method(object({
|
|
26878
|
+
deviceId: number(),
|
|
26879
|
+
monitorId: string(),
|
|
26880
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
26881
|
+
recapture: boolean().optional()
|
|
26882
|
+
}), _void(), {
|
|
26883
|
+
kind: "mutation",
|
|
26884
|
+
auth: "admin"
|
|
25952
26885
|
})
|
|
25953
26886
|
},
|
|
25954
26887
|
status: {
|
|
@@ -26185,7 +27118,70 @@ var CamStreamDescriptorSchema = object({
|
|
|
26185
27118
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
26186
27119
|
metadata: record(string(), unknown()).optional()
|
|
26187
27120
|
});
|
|
26188
|
-
|
|
27121
|
+
/**
|
|
27122
|
+
* `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
|
|
27123
|
+
* of the removed `publishCameraStream` push: a camera provider returns the full
|
|
27124
|
+
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
27125
|
+
* broker can reconcile its registry against the authoritative provider state.
|
|
27126
|
+
*/
|
|
27127
|
+
/**
|
|
27128
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
27129
|
+
*
|
|
27130
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
27131
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
27132
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
27133
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
27134
|
+
* every later pull from a cache.
|
|
27135
|
+
*
|
|
27136
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
27137
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
27138
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
27139
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
27140
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
27141
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
27142
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
27143
|
+
*
|
|
27144
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
27145
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
27146
|
+
* the same reason: the last known value is the only value there is while the
|
|
27147
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
27148
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
27149
|
+
*/
|
|
27150
|
+
var StreamCatalogStateSchema = object({
|
|
27151
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
27152
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
27153
|
+
* one the camera itself once produced. */
|
|
27154
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
27155
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
27156
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
27157
|
+
* re-read. */
|
|
27158
|
+
lastFetchedAt: number()
|
|
27159
|
+
});
|
|
27160
|
+
var streamCatalogCapability = {
|
|
27161
|
+
name: "stream-catalog",
|
|
27162
|
+
scope: "device",
|
|
27163
|
+
deviceNative: true,
|
|
27164
|
+
mode: "singleton",
|
|
27165
|
+
deviceTypes: [DeviceType.Camera],
|
|
27166
|
+
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
|
|
27167
|
+
runtimeState: StreamCatalogStateSchema,
|
|
27168
|
+
/**
|
|
27169
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
27170
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
27171
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
27172
|
+
*
|
|
27173
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
27174
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
27175
|
+
* a day old and the camera is awake anyway).
|
|
27176
|
+
*
|
|
27177
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27178
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27179
|
+
*/
|
|
27180
|
+
durability: "restored",
|
|
27181
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
27182
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
27183
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27184
|
+
};
|
|
26189
27185
|
/** One of the camera's stream profiles. */
|
|
26190
27186
|
var StreamProfileSchema = _enum([
|
|
26191
27187
|
"main",
|
|
@@ -26439,12 +27435,64 @@ var NetworkAddressSchema = object({
|
|
|
26439
27435
|
family: string(),
|
|
26440
27436
|
internal: boolean()
|
|
26441
27437
|
});
|
|
27438
|
+
/**
|
|
27439
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
27440
|
+
* numbers.
|
|
27441
|
+
*
|
|
27442
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
27443
|
+
* nothing overwrites it.
|
|
27444
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
27445
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
27446
|
+
* the sun-times consumers otherwise fall back to.
|
|
27447
|
+
*
|
|
27448
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
27449
|
+
* own input will eventually trust the guess.
|
|
27450
|
+
*/
|
|
27451
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
27452
|
+
/**
|
|
27453
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
27454
|
+
*
|
|
27455
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
27456
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
27457
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
27458
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
27459
|
+
* coordinates or presses detect.
|
|
27460
|
+
*/
|
|
27461
|
+
var SiteLocationStatusSchema = object({
|
|
27462
|
+
location: object({
|
|
27463
|
+
/** WGS84 decimal degrees. */
|
|
27464
|
+
latitude: number().min(-90).max(90),
|
|
27465
|
+
longitude: number().min(-180).max(180),
|
|
27466
|
+
source: SiteLocationSourceSchema,
|
|
27467
|
+
/** Epoch ms the value was last written. */
|
|
27468
|
+
updatedAt: number(),
|
|
27469
|
+
/**
|
|
27470
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
27471
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
27472
|
+
*/
|
|
27473
|
+
label: string().optional()
|
|
27474
|
+
}).nullable(),
|
|
27475
|
+
derivationAttemptedAt: number().nullable(),
|
|
27476
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
27477
|
+
derivationError: string().nullable()
|
|
27478
|
+
});
|
|
27479
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
27480
|
+
var SetSiteLocationInputSchema = object({
|
|
27481
|
+
latitude: number().min(-90).max(90),
|
|
27482
|
+
longitude: number().min(-180).max(180)
|
|
27483
|
+
}).nullable();
|
|
26442
27484
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
26443
27485
|
kind: "mutation",
|
|
26444
27486
|
auth: "admin"
|
|
26445
27487
|
}), method(_void(), _void(), {
|
|
26446
27488
|
kind: "mutation",
|
|
26447
27489
|
auth: "admin"
|
|
27490
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
27491
|
+
kind: "mutation",
|
|
27492
|
+
auth: "admin"
|
|
27493
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
27494
|
+
kind: "mutation",
|
|
27495
|
+
auth: "admin"
|
|
26448
27496
|
});
|
|
26449
27497
|
/**
|
|
26450
27498
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -27764,6 +28812,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27764
28812
|
humiditySensor: humiditySensorCapability,
|
|
27765
28813
|
image: imageCapability,
|
|
27766
28814
|
imageSettings: imageSettingsCapability,
|
|
28815
|
+
intercom: intercomCapability,
|
|
27767
28816
|
lawnMowerControl: lawnMowerControlCapability,
|
|
27768
28817
|
lockControl: lockControlCapability,
|
|
27769
28818
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -27782,6 +28831,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27782
28831
|
sceneMonitor: sceneMonitorCapability,
|
|
27783
28832
|
scriptRunner: scriptRunnerCapability,
|
|
27784
28833
|
smoke: smokeCapability,
|
|
28834
|
+
streamCatalog: streamCatalogCapability,
|
|
27785
28835
|
streamParams: streamParamsCapability,
|
|
27786
28836
|
switch: switchCapability,
|
|
27787
28837
|
tamper: tamperCapability,
|
|
@@ -28435,6 +29485,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28435
29485
|
labels: ["probe not implemented"]
|
|
28436
29486
|
};
|
|
28437
29487
|
}
|
|
29488
|
+
/**
|
|
29489
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
29490
|
+
*
|
|
29491
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
29492
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
29493
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
29494
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
29495
|
+
*/
|
|
29496
|
+
restoreConcurrency = 4;
|
|
28438
29497
|
async restoreDevices(savedDevices) {
|
|
28439
29498
|
await this.onRestoreDevices(savedDevices);
|
|
28440
29499
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -28466,15 +29525,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28466
29525
|
*/
|
|
28467
29526
|
async onRestoreDevices(savedDevices) {
|
|
28468
29527
|
const restored = /* @__PURE__ */ new Set();
|
|
28469
|
-
|
|
28470
|
-
|
|
29528
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
29529
|
+
const restoreOne = async (saved) => {
|
|
28471
29530
|
const Class = this.deviceClasses[saved.type];
|
|
28472
29531
|
if (!Class) {
|
|
28473
29532
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
28474
29533
|
tags: { stableId: saved.stableId },
|
|
28475
29534
|
meta: { type: saved.type }
|
|
28476
29535
|
});
|
|
28477
|
-
|
|
29536
|
+
return;
|
|
28478
29537
|
}
|
|
28479
29538
|
try {
|
|
28480
29539
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -28488,7 +29547,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28488
29547
|
}
|
|
28489
29548
|
});
|
|
28490
29549
|
}
|
|
28491
|
-
}
|
|
29550
|
+
};
|
|
29551
|
+
let nextTopLevel = 0;
|
|
29552
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
29553
|
+
for (;;) {
|
|
29554
|
+
const saved = topLevel[nextTopLevel++];
|
|
29555
|
+
if (saved === void 0) return;
|
|
29556
|
+
await restoreOne(saved);
|
|
29557
|
+
}
|
|
29558
|
+
}));
|
|
28492
29559
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
28493
29560
|
for (const saved of childRows) {
|
|
28494
29561
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -30579,6 +31646,12 @@ Object.freeze({
|
|
|
30579
31646
|
addonId: null,
|
|
30580
31647
|
access: "create"
|
|
30581
31648
|
},
|
|
31649
|
+
"llm.cancel": {
|
|
31650
|
+
capName: "llm",
|
|
31651
|
+
capScope: "system",
|
|
31652
|
+
addonId: null,
|
|
31653
|
+
access: "create"
|
|
31654
|
+
},
|
|
30582
31655
|
"llm.deleteModel": {
|
|
30583
31656
|
capName: "llm",
|
|
30584
31657
|
capScope: "system",
|
|
@@ -30663,6 +31736,12 @@ Object.freeze({
|
|
|
30663
31736
|
addonId: null,
|
|
30664
31737
|
access: "view"
|
|
30665
31738
|
},
|
|
31739
|
+
"llm.resolveModelRef": {
|
|
31740
|
+
capName: "llm",
|
|
31741
|
+
capScope: "system",
|
|
31742
|
+
addonId: null,
|
|
31743
|
+
access: "create"
|
|
31744
|
+
},
|
|
30666
31745
|
"llm.setDefault": {
|
|
30667
31746
|
capName: "llm",
|
|
30668
31747
|
capScope: "system",
|
|
@@ -32829,6 +33908,12 @@ Object.freeze({
|
|
|
32829
33908
|
addonId: null,
|
|
32830
33909
|
access: "create"
|
|
32831
33910
|
},
|
|
33911
|
+
"sceneMonitor.resetScene": {
|
|
33912
|
+
capName: "scene-monitor",
|
|
33913
|
+
capScope: "device",
|
|
33914
|
+
addonId: null,
|
|
33915
|
+
access: "delete"
|
|
33916
|
+
},
|
|
32832
33917
|
"sceneMonitor.updateScene": {
|
|
32833
33918
|
capName: "scene-monitor",
|
|
32834
33919
|
capScope: "device",
|
|
@@ -33507,6 +34592,12 @@ Object.freeze({
|
|
|
33507
34592
|
addonId: null,
|
|
33508
34593
|
access: "create"
|
|
33509
34594
|
},
|
|
34595
|
+
"system.detectSiteLocation": {
|
|
34596
|
+
capName: "system",
|
|
34597
|
+
capScope: "system",
|
|
34598
|
+
addonId: null,
|
|
34599
|
+
access: "create"
|
|
34600
|
+
},
|
|
33510
34601
|
"system.featureFlags": {
|
|
33511
34602
|
capName: "system",
|
|
33512
34603
|
capScope: "system",
|
|
@@ -33525,6 +34616,12 @@ Object.freeze({
|
|
|
33525
34616
|
addonId: null,
|
|
33526
34617
|
access: "view"
|
|
33527
34618
|
},
|
|
34619
|
+
"system.getSiteLocation": {
|
|
34620
|
+
capName: "system",
|
|
34621
|
+
capScope: "system",
|
|
34622
|
+
addonId: null,
|
|
34623
|
+
access: "view"
|
|
34624
|
+
},
|
|
33528
34625
|
"system.health": {
|
|
33529
34626
|
capName: "system",
|
|
33530
34627
|
capScope: "system",
|
|
@@ -33549,6 +34646,12 @@ Object.freeze({
|
|
|
33549
34646
|
addonId: null,
|
|
33550
34647
|
access: "create"
|
|
33551
34648
|
},
|
|
34649
|
+
"system.setSiteLocation": {
|
|
34650
|
+
capName: "system",
|
|
34651
|
+
capScope: "system",
|
|
34652
|
+
addonId: null,
|
|
34653
|
+
access: "create"
|
|
34654
|
+
},
|
|
33552
34655
|
"terminalSession.adoptLegacyMonitor": {
|
|
33553
34656
|
capName: "terminal-session",
|
|
33554
34657
|
capScope: "system",
|
|
@@ -34120,6 +35223,1704 @@ Object.freeze({
|
|
|
34120
35223
|
access: "create"
|
|
34121
35224
|
}
|
|
34122
35225
|
});
|
|
35226
|
+
Object.freeze({
|
|
35227
|
+
"accessories.setChildHidden": [{
|
|
35228
|
+
name: "childDeviceId",
|
|
35229
|
+
form: "single",
|
|
35230
|
+
optional: false
|
|
35231
|
+
}, {
|
|
35232
|
+
name: "deviceId",
|
|
35233
|
+
form: "single",
|
|
35234
|
+
optional: false
|
|
35235
|
+
}],
|
|
35236
|
+
"addonSettings.getDeviceSettings": [{
|
|
35237
|
+
name: "deviceId",
|
|
35238
|
+
form: "single",
|
|
35239
|
+
optional: false
|
|
35240
|
+
}],
|
|
35241
|
+
"addonSettings.updateDeviceSettings": [{
|
|
35242
|
+
name: "deviceId",
|
|
35243
|
+
form: "single",
|
|
35244
|
+
optional: false
|
|
35245
|
+
}],
|
|
35246
|
+
"alarmPanel.arm": [{
|
|
35247
|
+
name: "deviceId",
|
|
35248
|
+
form: "single",
|
|
35249
|
+
optional: false
|
|
35250
|
+
}],
|
|
35251
|
+
"alarmPanel.disarm": [{
|
|
35252
|
+
name: "deviceId",
|
|
35253
|
+
form: "single",
|
|
35254
|
+
optional: false
|
|
35255
|
+
}],
|
|
35256
|
+
"alarmPanel.trigger": [{
|
|
35257
|
+
name: "deviceId",
|
|
35258
|
+
form: "single",
|
|
35259
|
+
optional: false
|
|
35260
|
+
}],
|
|
35261
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
35262
|
+
name: "deviceId",
|
|
35263
|
+
form: "single",
|
|
35264
|
+
optional: false
|
|
35265
|
+
}],
|
|
35266
|
+
"audioAnalyzer.classify": [{
|
|
35267
|
+
name: "deviceId",
|
|
35268
|
+
form: "single",
|
|
35269
|
+
optional: true
|
|
35270
|
+
}],
|
|
35271
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
35272
|
+
name: "deviceId",
|
|
35273
|
+
form: "single",
|
|
35274
|
+
optional: false
|
|
35275
|
+
}],
|
|
35276
|
+
"audioMetrics.getHistory": [{
|
|
35277
|
+
name: "deviceId",
|
|
35278
|
+
form: "single",
|
|
35279
|
+
optional: false
|
|
35280
|
+
}],
|
|
35281
|
+
"automationControl.disable": [{
|
|
35282
|
+
name: "deviceId",
|
|
35283
|
+
form: "single",
|
|
35284
|
+
optional: false
|
|
35285
|
+
}],
|
|
35286
|
+
"automationControl.enable": [{
|
|
35287
|
+
name: "deviceId",
|
|
35288
|
+
form: "single",
|
|
35289
|
+
optional: false
|
|
35290
|
+
}],
|
|
35291
|
+
"automationControl.trigger": [{
|
|
35292
|
+
name: "deviceId",
|
|
35293
|
+
form: "single",
|
|
35294
|
+
optional: false
|
|
35295
|
+
}],
|
|
35296
|
+
"battery.wakeForStream": [{
|
|
35297
|
+
name: "deviceId",
|
|
35298
|
+
form: "single",
|
|
35299
|
+
optional: false
|
|
35300
|
+
}],
|
|
35301
|
+
"brightness.setBrightness": [{
|
|
35302
|
+
name: "deviceId",
|
|
35303
|
+
form: "single",
|
|
35304
|
+
optional: false
|
|
35305
|
+
}],
|
|
35306
|
+
"button.press": [{
|
|
35307
|
+
name: "deviceId",
|
|
35308
|
+
form: "single",
|
|
35309
|
+
optional: false
|
|
35310
|
+
}],
|
|
35311
|
+
"cameraCredentials.getCredentials": [{
|
|
35312
|
+
name: "deviceId",
|
|
35313
|
+
form: "single",
|
|
35314
|
+
optional: false
|
|
35315
|
+
}],
|
|
35316
|
+
"cameraStreams.getBrokerStreams": [{
|
|
35317
|
+
name: "deviceId",
|
|
35318
|
+
form: "single",
|
|
35319
|
+
optional: false
|
|
35320
|
+
}],
|
|
35321
|
+
"cameraStreams.getCameraStreams": [{
|
|
35322
|
+
name: "deviceId",
|
|
35323
|
+
form: "single",
|
|
35324
|
+
optional: false
|
|
35325
|
+
}],
|
|
35326
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
35327
|
+
name: "deviceId",
|
|
35328
|
+
form: "single",
|
|
35329
|
+
optional: false
|
|
35330
|
+
}],
|
|
35331
|
+
"cameraStreams.getRtspEntries": [{
|
|
35332
|
+
name: "deviceId",
|
|
35333
|
+
form: "single",
|
|
35334
|
+
optional: false
|
|
35335
|
+
}],
|
|
35336
|
+
"cameraStreams.pickStream": [{
|
|
35337
|
+
name: "deviceId",
|
|
35338
|
+
form: "single",
|
|
35339
|
+
optional: false
|
|
35340
|
+
}],
|
|
35341
|
+
"climateControl.setFanMode": [{
|
|
35342
|
+
name: "deviceId",
|
|
35343
|
+
form: "single",
|
|
35344
|
+
optional: false
|
|
35345
|
+
}],
|
|
35346
|
+
"climateControl.setMode": [{
|
|
35347
|
+
name: "deviceId",
|
|
35348
|
+
form: "single",
|
|
35349
|
+
optional: false
|
|
35350
|
+
}],
|
|
35351
|
+
"climateControl.setPreset": [{
|
|
35352
|
+
name: "deviceId",
|
|
35353
|
+
form: "single",
|
|
35354
|
+
optional: false
|
|
35355
|
+
}],
|
|
35356
|
+
"climateControl.setSwingHorizontal": [{
|
|
35357
|
+
name: "deviceId",
|
|
35358
|
+
form: "single",
|
|
35359
|
+
optional: false
|
|
35360
|
+
}],
|
|
35361
|
+
"climateControl.setSwingVertical": [{
|
|
35362
|
+
name: "deviceId",
|
|
35363
|
+
form: "single",
|
|
35364
|
+
optional: false
|
|
35365
|
+
}],
|
|
35366
|
+
"climateControl.setTarget": [{
|
|
35367
|
+
name: "deviceId",
|
|
35368
|
+
form: "single",
|
|
35369
|
+
optional: false
|
|
35370
|
+
}],
|
|
35371
|
+
"climateControl.setTargetHumidity": [{
|
|
35372
|
+
name: "deviceId",
|
|
35373
|
+
form: "single",
|
|
35374
|
+
optional: false
|
|
35375
|
+
}],
|
|
35376
|
+
"climateControl.setTargetRange": [{
|
|
35377
|
+
name: "deviceId",
|
|
35378
|
+
form: "single",
|
|
35379
|
+
optional: false
|
|
35380
|
+
}],
|
|
35381
|
+
"color.setColor": [{
|
|
35382
|
+
name: "deviceId",
|
|
35383
|
+
form: "single",
|
|
35384
|
+
optional: false
|
|
35385
|
+
}],
|
|
35386
|
+
"consumables.reset": [{
|
|
35387
|
+
name: "deviceId",
|
|
35388
|
+
form: "single",
|
|
35389
|
+
optional: false
|
|
35390
|
+
}],
|
|
35391
|
+
"control.setValue": [{
|
|
35392
|
+
name: "deviceId",
|
|
35393
|
+
form: "single",
|
|
35394
|
+
optional: false
|
|
35395
|
+
}],
|
|
35396
|
+
"cover.close": [{
|
|
35397
|
+
name: "deviceId",
|
|
35398
|
+
form: "single",
|
|
35399
|
+
optional: false
|
|
35400
|
+
}],
|
|
35401
|
+
"cover.open": [{
|
|
35402
|
+
name: "deviceId",
|
|
35403
|
+
form: "single",
|
|
35404
|
+
optional: false
|
|
35405
|
+
}],
|
|
35406
|
+
"cover.setPosition": [{
|
|
35407
|
+
name: "deviceId",
|
|
35408
|
+
form: "single",
|
|
35409
|
+
optional: false
|
|
35410
|
+
}],
|
|
35411
|
+
"cover.setTiltPosition": [{
|
|
35412
|
+
name: "deviceId",
|
|
35413
|
+
form: "single",
|
|
35414
|
+
optional: false
|
|
35415
|
+
}],
|
|
35416
|
+
"cover.stop": [{
|
|
35417
|
+
name: "deviceId",
|
|
35418
|
+
form: "single",
|
|
35419
|
+
optional: false
|
|
35420
|
+
}],
|
|
35421
|
+
"dayNight.getOptions": [{
|
|
35422
|
+
name: "deviceId",
|
|
35423
|
+
form: "single",
|
|
35424
|
+
optional: false
|
|
35425
|
+
}],
|
|
35426
|
+
"dayNight.setSettings": [{
|
|
35427
|
+
name: "deviceId",
|
|
35428
|
+
form: "single",
|
|
35429
|
+
optional: false
|
|
35430
|
+
}],
|
|
35431
|
+
"decoder.createSession": [{
|
|
35432
|
+
name: "deviceId",
|
|
35433
|
+
form: "single",
|
|
35434
|
+
optional: true
|
|
35435
|
+
}],
|
|
35436
|
+
"deviceAdoption.release": [{
|
|
35437
|
+
name: "camDeviceId",
|
|
35438
|
+
form: "single",
|
|
35439
|
+
optional: false
|
|
35440
|
+
}],
|
|
35441
|
+
"deviceAdoption.resync": [{
|
|
35442
|
+
name: "camDeviceId",
|
|
35443
|
+
form: "single",
|
|
35444
|
+
optional: false
|
|
35445
|
+
}],
|
|
35446
|
+
"deviceDiscovery.adoptDevice": [{
|
|
35447
|
+
name: "deviceId",
|
|
35448
|
+
form: "single",
|
|
35449
|
+
optional: false
|
|
35450
|
+
}],
|
|
35451
|
+
"deviceDiscovery.listDiscovered": [{
|
|
35452
|
+
name: "deviceId",
|
|
35453
|
+
form: "single",
|
|
35454
|
+
optional: false
|
|
35455
|
+
}],
|
|
35456
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
35457
|
+
name: "deviceId",
|
|
35458
|
+
form: "single",
|
|
35459
|
+
optional: false
|
|
35460
|
+
}],
|
|
35461
|
+
"deviceDiscovery.releaseDevice": [{
|
|
35462
|
+
name: "childDeviceId",
|
|
35463
|
+
form: "single",
|
|
35464
|
+
optional: false
|
|
35465
|
+
}, {
|
|
35466
|
+
name: "deviceId",
|
|
35467
|
+
form: "single",
|
|
35468
|
+
optional: false
|
|
35469
|
+
}],
|
|
35470
|
+
"deviceManager.adoptionRelease": [{
|
|
35471
|
+
name: "camDeviceId",
|
|
35472
|
+
form: "single",
|
|
35473
|
+
optional: false
|
|
35474
|
+
}],
|
|
35475
|
+
"deviceManager.adoptionResync": [{
|
|
35476
|
+
name: "camDeviceId",
|
|
35477
|
+
form: "single",
|
|
35478
|
+
optional: false
|
|
35479
|
+
}],
|
|
35480
|
+
"deviceManager.applyInitialMeta": [{
|
|
35481
|
+
name: "deviceId",
|
|
35482
|
+
form: "single",
|
|
35483
|
+
optional: false
|
|
35484
|
+
}, {
|
|
35485
|
+
name: "linkDeviceId",
|
|
35486
|
+
form: "single",
|
|
35487
|
+
optional: true
|
|
35488
|
+
}],
|
|
35489
|
+
"deviceManager.disable": [{
|
|
35490
|
+
name: "deviceId",
|
|
35491
|
+
form: "single",
|
|
35492
|
+
optional: false
|
|
35493
|
+
}],
|
|
35494
|
+
"deviceManager.enable": [{
|
|
35495
|
+
name: "deviceId",
|
|
35496
|
+
form: "single",
|
|
35497
|
+
optional: false
|
|
35498
|
+
}],
|
|
35499
|
+
"deviceManager.getBindings": [{
|
|
35500
|
+
name: "deviceId",
|
|
35501
|
+
form: "single",
|
|
35502
|
+
optional: false
|
|
35503
|
+
}],
|
|
35504
|
+
"deviceManager.getChildren": [{
|
|
35505
|
+
name: "parentDeviceId",
|
|
35506
|
+
form: "single",
|
|
35507
|
+
optional: false
|
|
35508
|
+
}],
|
|
35509
|
+
"deviceManager.getConfigSchema": [{
|
|
35510
|
+
name: "deviceId",
|
|
35511
|
+
form: "single",
|
|
35512
|
+
optional: false
|
|
35513
|
+
}],
|
|
35514
|
+
"deviceManager.getDevice": [{
|
|
35515
|
+
name: "deviceId",
|
|
35516
|
+
form: "single",
|
|
35517
|
+
optional: false
|
|
35518
|
+
}],
|
|
35519
|
+
"deviceManager.getDeviceAggregate": [{
|
|
35520
|
+
name: "deviceId",
|
|
35521
|
+
form: "single",
|
|
35522
|
+
optional: false
|
|
35523
|
+
}],
|
|
35524
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
35525
|
+
name: "deviceId",
|
|
35526
|
+
form: "single",
|
|
35527
|
+
optional: false
|
|
35528
|
+
}],
|
|
35529
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
35530
|
+
name: "deviceId",
|
|
35531
|
+
form: "single",
|
|
35532
|
+
optional: false
|
|
35533
|
+
}],
|
|
35534
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
35535
|
+
name: "deviceId",
|
|
35536
|
+
form: "single",
|
|
35537
|
+
optional: false
|
|
35538
|
+
}],
|
|
35539
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
35540
|
+
name: "deviceIds",
|
|
35541
|
+
form: "array",
|
|
35542
|
+
optional: false
|
|
35543
|
+
}],
|
|
35544
|
+
"deviceManager.getLinkedDevices": [{
|
|
35545
|
+
name: "deviceId",
|
|
35546
|
+
form: "single",
|
|
35547
|
+
optional: false
|
|
35548
|
+
}],
|
|
35549
|
+
"deviceManager.getSettingsSchema": [{
|
|
35550
|
+
name: "deviceId",
|
|
35551
|
+
form: "single",
|
|
35552
|
+
optional: false
|
|
35553
|
+
}],
|
|
35554
|
+
"deviceManager.getStreamProfileMap": [{
|
|
35555
|
+
name: "deviceId",
|
|
35556
|
+
form: "single",
|
|
35557
|
+
optional: false
|
|
35558
|
+
}],
|
|
35559
|
+
"deviceManager.getStreamSources": [{
|
|
35560
|
+
name: "deviceId",
|
|
35561
|
+
form: "single",
|
|
35562
|
+
optional: false
|
|
35563
|
+
}],
|
|
35564
|
+
"deviceManager.getWireableFields": [{
|
|
35565
|
+
name: "deviceId",
|
|
35566
|
+
form: "single",
|
|
35567
|
+
optional: false
|
|
35568
|
+
}],
|
|
35569
|
+
"deviceManager.loadConfig": [{
|
|
35570
|
+
name: "deviceId",
|
|
35571
|
+
form: "single",
|
|
35572
|
+
optional: false
|
|
35573
|
+
}],
|
|
35574
|
+
"deviceManager.loadMeta": [{
|
|
35575
|
+
name: "deviceId",
|
|
35576
|
+
form: "single",
|
|
35577
|
+
optional: false
|
|
35578
|
+
}],
|
|
35579
|
+
"deviceManager.loadRuntimeState": [{
|
|
35580
|
+
name: "deviceId",
|
|
35581
|
+
form: "single",
|
|
35582
|
+
optional: false
|
|
35583
|
+
}],
|
|
35584
|
+
"deviceManager.persistConfig": [{
|
|
35585
|
+
name: "deviceId",
|
|
35586
|
+
form: "single",
|
|
35587
|
+
optional: false
|
|
35588
|
+
}],
|
|
35589
|
+
"deviceManager.probeStreams": [{
|
|
35590
|
+
name: "deviceId",
|
|
35591
|
+
form: "single",
|
|
35592
|
+
optional: false
|
|
35593
|
+
}],
|
|
35594
|
+
"deviceManager.registerDevice": [{
|
|
35595
|
+
name: "parentDeviceId",
|
|
35596
|
+
form: "single",
|
|
35597
|
+
optional: true
|
|
35598
|
+
}],
|
|
35599
|
+
"deviceManager.remove": [{
|
|
35600
|
+
name: "deviceId",
|
|
35601
|
+
form: "single",
|
|
35602
|
+
optional: false
|
|
35603
|
+
}],
|
|
35604
|
+
"deviceManager.removeDevice": [{
|
|
35605
|
+
name: "deviceId",
|
|
35606
|
+
form: "single",
|
|
35607
|
+
optional: false
|
|
35608
|
+
}],
|
|
35609
|
+
"deviceManager.runDeviceAction": [{
|
|
35610
|
+
name: "deviceId",
|
|
35611
|
+
form: "single",
|
|
35612
|
+
optional: false
|
|
35613
|
+
}],
|
|
35614
|
+
"deviceManager.setChildLayout": [{
|
|
35615
|
+
name: "deviceId",
|
|
35616
|
+
form: "single",
|
|
35617
|
+
optional: false
|
|
35618
|
+
}],
|
|
35619
|
+
"deviceManager.setDisabled": [{
|
|
35620
|
+
name: "deviceId",
|
|
35621
|
+
form: "single",
|
|
35622
|
+
optional: false
|
|
35623
|
+
}],
|
|
35624
|
+
"deviceManager.setDisplay": [{
|
|
35625
|
+
name: "deviceId",
|
|
35626
|
+
form: "single",
|
|
35627
|
+
optional: false
|
|
35628
|
+
}],
|
|
35629
|
+
"deviceManager.setIntegrationId": [{
|
|
35630
|
+
name: "deviceId",
|
|
35631
|
+
form: "single",
|
|
35632
|
+
optional: false
|
|
35633
|
+
}],
|
|
35634
|
+
"deviceManager.setLinkDeviceId": [{
|
|
35635
|
+
name: "deviceId",
|
|
35636
|
+
form: "single",
|
|
35637
|
+
optional: false
|
|
35638
|
+
}, {
|
|
35639
|
+
name: "linkDeviceId",
|
|
35640
|
+
form: "single",
|
|
35641
|
+
optional: true
|
|
35642
|
+
}],
|
|
35643
|
+
"deviceManager.setLocation": [{
|
|
35644
|
+
name: "deviceId",
|
|
35645
|
+
form: "single",
|
|
35646
|
+
optional: false
|
|
35647
|
+
}],
|
|
35648
|
+
"deviceManager.setMetadata": [{
|
|
35649
|
+
name: "deviceId",
|
|
35650
|
+
form: "single",
|
|
35651
|
+
optional: false
|
|
35652
|
+
}],
|
|
35653
|
+
"deviceManager.setName": [{
|
|
35654
|
+
name: "deviceId",
|
|
35655
|
+
form: "single",
|
|
35656
|
+
optional: false
|
|
35657
|
+
}],
|
|
35658
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
35659
|
+
name: "deviceId",
|
|
35660
|
+
form: "single",
|
|
35661
|
+
optional: false
|
|
35662
|
+
}],
|
|
35663
|
+
"deviceManager.setRole": [{
|
|
35664
|
+
name: "deviceId",
|
|
35665
|
+
form: "single",
|
|
35666
|
+
optional: false
|
|
35667
|
+
}],
|
|
35668
|
+
"deviceManager.setStreamProfileMap": [{
|
|
35669
|
+
name: "deviceId",
|
|
35670
|
+
form: "single",
|
|
35671
|
+
optional: false
|
|
35672
|
+
}],
|
|
35673
|
+
"deviceManager.setType": [{
|
|
35674
|
+
name: "deviceId",
|
|
35675
|
+
form: "single",
|
|
35676
|
+
optional: false
|
|
35677
|
+
}],
|
|
35678
|
+
"deviceManager.setWrapperActive": [{
|
|
35679
|
+
name: "deviceId",
|
|
35680
|
+
form: "single",
|
|
35681
|
+
optional: false
|
|
35682
|
+
}],
|
|
35683
|
+
"deviceManager.testField": [{
|
|
35684
|
+
name: "deviceId",
|
|
35685
|
+
form: "single",
|
|
35686
|
+
optional: false
|
|
35687
|
+
}],
|
|
35688
|
+
"deviceManager.updateConfig": [{
|
|
35689
|
+
name: "deviceId",
|
|
35690
|
+
form: "single",
|
|
35691
|
+
optional: false
|
|
35692
|
+
}],
|
|
35693
|
+
"deviceManager.updateDeviceField": [{
|
|
35694
|
+
name: "deviceId",
|
|
35695
|
+
form: "single",
|
|
35696
|
+
optional: false
|
|
35697
|
+
}],
|
|
35698
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
35699
|
+
name: "deviceId",
|
|
35700
|
+
form: "single",
|
|
35701
|
+
optional: false
|
|
35702
|
+
}],
|
|
35703
|
+
"deviceOps.getConfigEntries": [{
|
|
35704
|
+
name: "deviceId",
|
|
35705
|
+
form: "single",
|
|
35706
|
+
optional: false
|
|
35707
|
+
}],
|
|
35708
|
+
"deviceOps.getRawState": [{
|
|
35709
|
+
name: "deviceId",
|
|
35710
|
+
form: "single",
|
|
35711
|
+
optional: false
|
|
35712
|
+
}],
|
|
35713
|
+
"deviceOps.getSettingsSchema": [{
|
|
35714
|
+
name: "deviceId",
|
|
35715
|
+
form: "single",
|
|
35716
|
+
optional: false
|
|
35717
|
+
}],
|
|
35718
|
+
"deviceOps.getStreamSources": [{
|
|
35719
|
+
name: "deviceId",
|
|
35720
|
+
form: "single",
|
|
35721
|
+
optional: false
|
|
35722
|
+
}],
|
|
35723
|
+
"deviceOps.removeDevice": [{
|
|
35724
|
+
name: "deviceId",
|
|
35725
|
+
form: "single",
|
|
35726
|
+
optional: false
|
|
35727
|
+
}],
|
|
35728
|
+
"deviceOps.runAction": [{
|
|
35729
|
+
name: "deviceId",
|
|
35730
|
+
form: "single",
|
|
35731
|
+
optional: false
|
|
35732
|
+
}],
|
|
35733
|
+
"deviceOps.setConfig": [{
|
|
35734
|
+
name: "deviceId",
|
|
35735
|
+
form: "single",
|
|
35736
|
+
optional: false
|
|
35737
|
+
}],
|
|
35738
|
+
"deviceState.getCapSlice": [{
|
|
35739
|
+
name: "deviceId",
|
|
35740
|
+
form: "single",
|
|
35741
|
+
optional: false
|
|
35742
|
+
}],
|
|
35743
|
+
"deviceState.getSnapshot": [{
|
|
35744
|
+
name: "deviceId",
|
|
35745
|
+
form: "single",
|
|
35746
|
+
optional: false
|
|
35747
|
+
}],
|
|
35748
|
+
"deviceState.setCapSlice": [{
|
|
35749
|
+
name: "deviceId",
|
|
35750
|
+
form: "single",
|
|
35751
|
+
optional: false
|
|
35752
|
+
}],
|
|
35753
|
+
"events.getEventClipUrl": [{
|
|
35754
|
+
name: "deviceId",
|
|
35755
|
+
form: "single",
|
|
35756
|
+
optional: false
|
|
35757
|
+
}],
|
|
35758
|
+
"events.getEvents": [{
|
|
35759
|
+
name: "deviceId",
|
|
35760
|
+
form: "single",
|
|
35761
|
+
optional: false
|
|
35762
|
+
}],
|
|
35763
|
+
"events.getEventThumbnail": [{
|
|
35764
|
+
name: "deviceId",
|
|
35765
|
+
form: "single",
|
|
35766
|
+
optional: false
|
|
35767
|
+
}],
|
|
35768
|
+
"faceGallery.getFaceByTrack": [{
|
|
35769
|
+
name: "deviceId",
|
|
35770
|
+
form: "single",
|
|
35771
|
+
optional: false
|
|
35772
|
+
}],
|
|
35773
|
+
"faceGallery.listRecentFaces": [{
|
|
35774
|
+
name: "deviceId",
|
|
35775
|
+
form: "single",
|
|
35776
|
+
optional: true
|
|
35777
|
+
}],
|
|
35778
|
+
"fanControl.setDirection": [{
|
|
35779
|
+
name: "deviceId",
|
|
35780
|
+
form: "single",
|
|
35781
|
+
optional: false
|
|
35782
|
+
}],
|
|
35783
|
+
"fanControl.setOscillating": [{
|
|
35784
|
+
name: "deviceId",
|
|
35785
|
+
form: "single",
|
|
35786
|
+
optional: false
|
|
35787
|
+
}],
|
|
35788
|
+
"fanControl.setPercentage": [{
|
|
35789
|
+
name: "deviceId",
|
|
35790
|
+
form: "single",
|
|
35791
|
+
optional: false
|
|
35792
|
+
}],
|
|
35793
|
+
"fanControl.setPreset": [{
|
|
35794
|
+
name: "deviceId",
|
|
35795
|
+
form: "single",
|
|
35796
|
+
optional: false
|
|
35797
|
+
}],
|
|
35798
|
+
"humidifier.setMode": [{
|
|
35799
|
+
name: "deviceId",
|
|
35800
|
+
form: "single",
|
|
35801
|
+
optional: false
|
|
35802
|
+
}],
|
|
35803
|
+
"humidifier.setOn": [{
|
|
35804
|
+
name: "deviceId",
|
|
35805
|
+
form: "single",
|
|
35806
|
+
optional: false
|
|
35807
|
+
}],
|
|
35808
|
+
"humidifier.setTargetHumidity": [{
|
|
35809
|
+
name: "deviceId",
|
|
35810
|
+
form: "single",
|
|
35811
|
+
optional: false
|
|
35812
|
+
}],
|
|
35813
|
+
"imageSettings.getOptions": [{
|
|
35814
|
+
name: "deviceId",
|
|
35815
|
+
form: "single",
|
|
35816
|
+
optional: false
|
|
35817
|
+
}],
|
|
35818
|
+
"imageSettings.setSettings": [{
|
|
35819
|
+
name: "deviceId",
|
|
35820
|
+
form: "single",
|
|
35821
|
+
optional: false
|
|
35822
|
+
}],
|
|
35823
|
+
"intercom.endTalkSession": [{
|
|
35824
|
+
name: "deviceId",
|
|
35825
|
+
form: "single",
|
|
35826
|
+
optional: false
|
|
35827
|
+
}],
|
|
35828
|
+
"intercom.handleAnswer": [{
|
|
35829
|
+
name: "deviceId",
|
|
35830
|
+
form: "single",
|
|
35831
|
+
optional: false
|
|
35832
|
+
}],
|
|
35833
|
+
"intercom.pushTalkAudio": [{
|
|
35834
|
+
name: "deviceId",
|
|
35835
|
+
form: "single",
|
|
35836
|
+
optional: false
|
|
35837
|
+
}],
|
|
35838
|
+
"intercom.startSession": [{
|
|
35839
|
+
name: "deviceId",
|
|
35840
|
+
form: "single",
|
|
35841
|
+
optional: false
|
|
35842
|
+
}],
|
|
35843
|
+
"intercom.startTalkSession": [{
|
|
35844
|
+
name: "deviceId",
|
|
35845
|
+
form: "single",
|
|
35846
|
+
optional: false
|
|
35847
|
+
}],
|
|
35848
|
+
"intercom.stopSession": [{
|
|
35849
|
+
name: "deviceId",
|
|
35850
|
+
form: "single",
|
|
35851
|
+
optional: false
|
|
35852
|
+
}],
|
|
35853
|
+
"lawnMowerControl.dock": [{
|
|
35854
|
+
name: "deviceId",
|
|
35855
|
+
form: "single",
|
|
35856
|
+
optional: false
|
|
35857
|
+
}],
|
|
35858
|
+
"lawnMowerControl.pause": [{
|
|
35859
|
+
name: "deviceId",
|
|
35860
|
+
form: "single",
|
|
35861
|
+
optional: false
|
|
35862
|
+
}],
|
|
35863
|
+
"lawnMowerControl.startMowing": [{
|
|
35864
|
+
name: "deviceId",
|
|
35865
|
+
form: "single",
|
|
35866
|
+
optional: false
|
|
35867
|
+
}],
|
|
35868
|
+
"lockControl.lock": [{
|
|
35869
|
+
name: "deviceId",
|
|
35870
|
+
form: "single",
|
|
35871
|
+
optional: false
|
|
35872
|
+
}],
|
|
35873
|
+
"lockControl.open": [{
|
|
35874
|
+
name: "deviceId",
|
|
35875
|
+
form: "single",
|
|
35876
|
+
optional: false
|
|
35877
|
+
}],
|
|
35878
|
+
"lockControl.unlock": [{
|
|
35879
|
+
name: "deviceId",
|
|
35880
|
+
form: "single",
|
|
35881
|
+
optional: false
|
|
35882
|
+
}],
|
|
35883
|
+
"mediaPlayer.next": [{
|
|
35884
|
+
name: "deviceId",
|
|
35885
|
+
form: "single",
|
|
35886
|
+
optional: false
|
|
35887
|
+
}],
|
|
35888
|
+
"mediaPlayer.pause": [{
|
|
35889
|
+
name: "deviceId",
|
|
35890
|
+
form: "single",
|
|
35891
|
+
optional: false
|
|
35892
|
+
}],
|
|
35893
|
+
"mediaPlayer.play": [{
|
|
35894
|
+
name: "deviceId",
|
|
35895
|
+
form: "single",
|
|
35896
|
+
optional: false
|
|
35897
|
+
}],
|
|
35898
|
+
"mediaPlayer.playMedia": [{
|
|
35899
|
+
name: "deviceId",
|
|
35900
|
+
form: "single",
|
|
35901
|
+
optional: false
|
|
35902
|
+
}],
|
|
35903
|
+
"mediaPlayer.previous": [{
|
|
35904
|
+
name: "deviceId",
|
|
35905
|
+
form: "single",
|
|
35906
|
+
optional: false
|
|
35907
|
+
}],
|
|
35908
|
+
"mediaPlayer.seek": [{
|
|
35909
|
+
name: "deviceId",
|
|
35910
|
+
form: "single",
|
|
35911
|
+
optional: false
|
|
35912
|
+
}],
|
|
35913
|
+
"mediaPlayer.selectSource": [{
|
|
35914
|
+
name: "deviceId",
|
|
35915
|
+
form: "single",
|
|
35916
|
+
optional: false
|
|
35917
|
+
}],
|
|
35918
|
+
"mediaPlayer.setMute": [{
|
|
35919
|
+
name: "deviceId",
|
|
35920
|
+
form: "single",
|
|
35921
|
+
optional: false
|
|
35922
|
+
}],
|
|
35923
|
+
"mediaPlayer.setRepeat": [{
|
|
35924
|
+
name: "deviceId",
|
|
35925
|
+
form: "single",
|
|
35926
|
+
optional: false
|
|
35927
|
+
}],
|
|
35928
|
+
"mediaPlayer.setShuffle": [{
|
|
35929
|
+
name: "deviceId",
|
|
35930
|
+
form: "single",
|
|
35931
|
+
optional: false
|
|
35932
|
+
}],
|
|
35933
|
+
"mediaPlayer.setVolume": [{
|
|
35934
|
+
name: "deviceId",
|
|
35935
|
+
form: "single",
|
|
35936
|
+
optional: false
|
|
35937
|
+
}],
|
|
35938
|
+
"mediaPlayer.stop": [{
|
|
35939
|
+
name: "deviceId",
|
|
35940
|
+
form: "single",
|
|
35941
|
+
optional: false
|
|
35942
|
+
}],
|
|
35943
|
+
"motion.isDetected": [{
|
|
35944
|
+
name: "deviceId",
|
|
35945
|
+
form: "single",
|
|
35946
|
+
optional: false
|
|
35947
|
+
}],
|
|
35948
|
+
"motionDetection.analyze": [{
|
|
35949
|
+
name: "deviceId",
|
|
35950
|
+
form: "single",
|
|
35951
|
+
optional: false
|
|
35952
|
+
}],
|
|
35953
|
+
"motionDetection.removeCamera": [{
|
|
35954
|
+
name: "deviceId",
|
|
35955
|
+
form: "single",
|
|
35956
|
+
optional: false
|
|
35957
|
+
}],
|
|
35958
|
+
"motionTrigger.setMotionTrigger": [{
|
|
35959
|
+
name: "deviceId",
|
|
35960
|
+
form: "single",
|
|
35961
|
+
optional: false
|
|
35962
|
+
}],
|
|
35963
|
+
"motionZones.getOptions": [{
|
|
35964
|
+
name: "deviceId",
|
|
35965
|
+
form: "single",
|
|
35966
|
+
optional: false
|
|
35967
|
+
}],
|
|
35968
|
+
"motionZones.setZone": [{
|
|
35969
|
+
name: "deviceId",
|
|
35970
|
+
form: "single",
|
|
35971
|
+
optional: false
|
|
35972
|
+
}],
|
|
35973
|
+
"nativeObjectDetection.setEnabled": [{
|
|
35974
|
+
name: "deviceId",
|
|
35975
|
+
form: "single",
|
|
35976
|
+
optional: false
|
|
35977
|
+
}],
|
|
35978
|
+
"networkQuality.getDeviceStats": [{
|
|
35979
|
+
name: "deviceId",
|
|
35980
|
+
form: "single",
|
|
35981
|
+
optional: false
|
|
35982
|
+
}],
|
|
35983
|
+
"networkQuality.reportClientStats": [{
|
|
35984
|
+
name: "deviceId",
|
|
35985
|
+
form: "single",
|
|
35986
|
+
optional: false
|
|
35987
|
+
}],
|
|
35988
|
+
"notificationRules.setDeviceMuted": [{
|
|
35989
|
+
name: "deviceId",
|
|
35990
|
+
form: "single",
|
|
35991
|
+
optional: false
|
|
35992
|
+
}],
|
|
35993
|
+
"notifier.cancel": [{
|
|
35994
|
+
name: "deviceId",
|
|
35995
|
+
form: "single",
|
|
35996
|
+
optional: false
|
|
35997
|
+
}],
|
|
35998
|
+
"notifier.send": [{
|
|
35999
|
+
name: "deviceId",
|
|
36000
|
+
form: "single",
|
|
36001
|
+
optional: false
|
|
36002
|
+
}],
|
|
36003
|
+
"osd.setOverlay": [{
|
|
36004
|
+
name: "deviceId",
|
|
36005
|
+
form: "single",
|
|
36006
|
+
optional: false
|
|
36007
|
+
}],
|
|
36008
|
+
"osdManager.clearSlotBinding": [{
|
|
36009
|
+
name: "deviceId",
|
|
36010
|
+
form: "single",
|
|
36011
|
+
optional: false
|
|
36012
|
+
}],
|
|
36013
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36014
|
+
name: "sourceDeviceId",
|
|
36015
|
+
form: "single",
|
|
36016
|
+
optional: false
|
|
36017
|
+
}, {
|
|
36018
|
+
name: "targetDeviceId",
|
|
36019
|
+
form: "single",
|
|
36020
|
+
optional: false
|
|
36021
|
+
}],
|
|
36022
|
+
"osdManager.getDeviceOsd": [{
|
|
36023
|
+
name: "deviceId",
|
|
36024
|
+
form: "single",
|
|
36025
|
+
optional: false
|
|
36026
|
+
}],
|
|
36027
|
+
"osdManager.getSourceCatalog": [{
|
|
36028
|
+
name: "deviceId",
|
|
36029
|
+
form: "single",
|
|
36030
|
+
optional: false
|
|
36031
|
+
}],
|
|
36032
|
+
"osdManager.previewSlot": [{
|
|
36033
|
+
name: "deviceId",
|
|
36034
|
+
form: "single",
|
|
36035
|
+
optional: false
|
|
36036
|
+
}],
|
|
36037
|
+
"osdManager.renderDevice": [{
|
|
36038
|
+
name: "deviceId",
|
|
36039
|
+
form: "single",
|
|
36040
|
+
optional: false
|
|
36041
|
+
}],
|
|
36042
|
+
"osdManager.setSlotBinding": [{
|
|
36043
|
+
name: "deviceId",
|
|
36044
|
+
form: "single",
|
|
36045
|
+
optional: false
|
|
36046
|
+
}],
|
|
36047
|
+
"petFeeder.callPet": [{
|
|
36048
|
+
name: "deviceId",
|
|
36049
|
+
form: "single",
|
|
36050
|
+
optional: false
|
|
36051
|
+
}],
|
|
36052
|
+
"petFeeder.cancelFeed": [{
|
|
36053
|
+
name: "deviceId",
|
|
36054
|
+
form: "single",
|
|
36055
|
+
optional: false
|
|
36056
|
+
}],
|
|
36057
|
+
"petFeeder.feed": [{
|
|
36058
|
+
name: "deviceId",
|
|
36059
|
+
form: "single",
|
|
36060
|
+
optional: false
|
|
36061
|
+
}],
|
|
36062
|
+
"petFeeder.markFoodReplenished": [{
|
|
36063
|
+
name: "deviceId",
|
|
36064
|
+
form: "single",
|
|
36065
|
+
optional: false
|
|
36066
|
+
}],
|
|
36067
|
+
"petFeeder.playSound": [{
|
|
36068
|
+
name: "deviceId",
|
|
36069
|
+
form: "single",
|
|
36070
|
+
optional: false
|
|
36071
|
+
}],
|
|
36072
|
+
"petFeeder.resetDesiccant": [{
|
|
36073
|
+
name: "deviceId",
|
|
36074
|
+
form: "single",
|
|
36075
|
+
optional: false
|
|
36076
|
+
}],
|
|
36077
|
+
"petFeeder.setChildLock": [{
|
|
36078
|
+
name: "deviceId",
|
|
36079
|
+
form: "single",
|
|
36080
|
+
optional: false
|
|
36081
|
+
}],
|
|
36082
|
+
"petFeeder.setFeedSound": [{
|
|
36083
|
+
name: "deviceId",
|
|
36084
|
+
form: "single",
|
|
36085
|
+
optional: false
|
|
36086
|
+
}],
|
|
36087
|
+
"petFeeder.setIndicatorLight": [{
|
|
36088
|
+
name: "deviceId",
|
|
36089
|
+
form: "single",
|
|
36090
|
+
optional: false
|
|
36091
|
+
}],
|
|
36092
|
+
"petFeeder.setVolume": [{
|
|
36093
|
+
name: "deviceId",
|
|
36094
|
+
form: "single",
|
|
36095
|
+
optional: false
|
|
36096
|
+
}],
|
|
36097
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36098
|
+
name: "deviceId",
|
|
36099
|
+
form: "single",
|
|
36100
|
+
optional: false
|
|
36101
|
+
}],
|
|
36102
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36103
|
+
name: "deviceId",
|
|
36104
|
+
form: "single",
|
|
36105
|
+
optional: false
|
|
36106
|
+
}],
|
|
36107
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36108
|
+
name: "deviceId",
|
|
36109
|
+
form: "single",
|
|
36110
|
+
optional: false
|
|
36111
|
+
}],
|
|
36112
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36113
|
+
name: "deviceId",
|
|
36114
|
+
form: "single",
|
|
36115
|
+
optional: false
|
|
36116
|
+
}],
|
|
36117
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36118
|
+
name: "deviceId",
|
|
36119
|
+
form: "single",
|
|
36120
|
+
optional: false
|
|
36121
|
+
}],
|
|
36122
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36123
|
+
name: "deviceId",
|
|
36124
|
+
form: "single",
|
|
36125
|
+
optional: false
|
|
36126
|
+
}],
|
|
36127
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36128
|
+
name: "deviceId",
|
|
36129
|
+
form: "single",
|
|
36130
|
+
optional: false
|
|
36131
|
+
}],
|
|
36132
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36133
|
+
name: "deviceId",
|
|
36134
|
+
form: "single",
|
|
36135
|
+
optional: false
|
|
36136
|
+
}],
|
|
36137
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
36138
|
+
name: "deviceId",
|
|
36139
|
+
form: "single",
|
|
36140
|
+
optional: false
|
|
36141
|
+
}],
|
|
36142
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36143
|
+
name: "deviceId",
|
|
36144
|
+
form: "single",
|
|
36145
|
+
optional: false
|
|
36146
|
+
}],
|
|
36147
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36148
|
+
name: "deviceId",
|
|
36149
|
+
form: "single",
|
|
36150
|
+
optional: false
|
|
36151
|
+
}],
|
|
36152
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36153
|
+
name: "deviceId",
|
|
36154
|
+
form: "single",
|
|
36155
|
+
optional: false
|
|
36156
|
+
}],
|
|
36157
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36158
|
+
name: "deviceIds",
|
|
36159
|
+
form: "array",
|
|
36160
|
+
optional: true
|
|
36161
|
+
}],
|
|
36162
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36163
|
+
name: "deviceId",
|
|
36164
|
+
form: "single",
|
|
36165
|
+
optional: false
|
|
36166
|
+
}],
|
|
36167
|
+
"pipelineAnalytics.getTrack": [{
|
|
36168
|
+
name: "deviceId",
|
|
36169
|
+
form: "single",
|
|
36170
|
+
optional: false
|
|
36171
|
+
}],
|
|
36172
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
36173
|
+
name: "deviceId",
|
|
36174
|
+
form: "single",
|
|
36175
|
+
optional: false
|
|
36176
|
+
}],
|
|
36177
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36178
|
+
name: "deviceIds",
|
|
36179
|
+
form: "array",
|
|
36180
|
+
optional: true
|
|
36181
|
+
}],
|
|
36182
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36183
|
+
name: "deviceIds",
|
|
36184
|
+
form: "array",
|
|
36185
|
+
optional: true
|
|
36186
|
+
}],
|
|
36187
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36188
|
+
name: "deviceId",
|
|
36189
|
+
form: "single",
|
|
36190
|
+
optional: false
|
|
36191
|
+
}],
|
|
36192
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36193
|
+
name: "deviceIds",
|
|
36194
|
+
form: "array",
|
|
36195
|
+
optional: false
|
|
36196
|
+
}],
|
|
36197
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36198
|
+
name: "deviceId",
|
|
36199
|
+
form: "single",
|
|
36200
|
+
optional: true
|
|
36201
|
+
}],
|
|
36202
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36203
|
+
name: "deviceIds",
|
|
36204
|
+
form: "array",
|
|
36205
|
+
optional: false
|
|
36206
|
+
}],
|
|
36207
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36208
|
+
name: "deviceIds",
|
|
36209
|
+
form: "array",
|
|
36210
|
+
optional: true
|
|
36211
|
+
}],
|
|
36212
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
36213
|
+
name: "deviceId",
|
|
36214
|
+
form: "single",
|
|
36215
|
+
optional: false
|
|
36216
|
+
}],
|
|
36217
|
+
"pipelineAnalytics.listTracks": [{
|
|
36218
|
+
name: "deviceId",
|
|
36219
|
+
form: "single",
|
|
36220
|
+
optional: false
|
|
36221
|
+
}],
|
|
36222
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
36223
|
+
name: "deviceId",
|
|
36224
|
+
form: "single",
|
|
36225
|
+
optional: false
|
|
36226
|
+
}],
|
|
36227
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
36228
|
+
name: "deviceId",
|
|
36229
|
+
form: "single",
|
|
36230
|
+
optional: false
|
|
36231
|
+
}],
|
|
36232
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
36233
|
+
name: "deviceId",
|
|
36234
|
+
form: "single",
|
|
36235
|
+
optional: false
|
|
36236
|
+
}],
|
|
36237
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
36238
|
+
name: "deviceId",
|
|
36239
|
+
form: "single",
|
|
36240
|
+
optional: true
|
|
36241
|
+
}],
|
|
36242
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36243
|
+
name: "deviceId",
|
|
36244
|
+
form: "single",
|
|
36245
|
+
optional: false
|
|
36246
|
+
}],
|
|
36247
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
36248
|
+
name: "deviceId",
|
|
36249
|
+
form: "single",
|
|
36250
|
+
optional: false
|
|
36251
|
+
}],
|
|
36252
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
36253
|
+
name: "deviceId",
|
|
36254
|
+
form: "single",
|
|
36255
|
+
optional: true
|
|
36256
|
+
}],
|
|
36257
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
36258
|
+
name: "deviceId",
|
|
36259
|
+
form: "single",
|
|
36260
|
+
optional: false
|
|
36261
|
+
}],
|
|
36262
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
36263
|
+
name: "deviceId",
|
|
36264
|
+
form: "single",
|
|
36265
|
+
optional: false
|
|
36266
|
+
}],
|
|
36267
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
36268
|
+
name: "deviceId",
|
|
36269
|
+
form: "single",
|
|
36270
|
+
optional: false
|
|
36271
|
+
}],
|
|
36272
|
+
"pipelineExecutor.runPipeline": [{
|
|
36273
|
+
name: "deviceId",
|
|
36274
|
+
form: "single",
|
|
36275
|
+
optional: true
|
|
36276
|
+
}],
|
|
36277
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
36278
|
+
name: "deviceId",
|
|
36279
|
+
form: "single",
|
|
36280
|
+
optional: true
|
|
36281
|
+
}],
|
|
36282
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
36283
|
+
name: "deviceId",
|
|
36284
|
+
form: "single",
|
|
36285
|
+
optional: false
|
|
36286
|
+
}],
|
|
36287
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
36288
|
+
name: "deviceId",
|
|
36289
|
+
form: "single",
|
|
36290
|
+
optional: false
|
|
36291
|
+
}],
|
|
36292
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
36293
|
+
name: "deviceId",
|
|
36294
|
+
form: "single",
|
|
36295
|
+
optional: false
|
|
36296
|
+
}],
|
|
36297
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
36298
|
+
name: "deviceId",
|
|
36299
|
+
form: "single",
|
|
36300
|
+
optional: false
|
|
36301
|
+
}],
|
|
36302
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
36303
|
+
name: "deviceId",
|
|
36304
|
+
form: "single",
|
|
36305
|
+
optional: false
|
|
36306
|
+
}],
|
|
36307
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
36308
|
+
name: "deviceId",
|
|
36309
|
+
form: "single",
|
|
36310
|
+
optional: false
|
|
36311
|
+
}],
|
|
36312
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
36313
|
+
name: "deviceIds",
|
|
36314
|
+
form: "array",
|
|
36315
|
+
optional: true
|
|
36316
|
+
}],
|
|
36317
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
36318
|
+
name: "deviceId",
|
|
36319
|
+
form: "single",
|
|
36320
|
+
optional: false
|
|
36321
|
+
}],
|
|
36322
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
36323
|
+
name: "deviceId",
|
|
36324
|
+
form: "single",
|
|
36325
|
+
optional: false
|
|
36326
|
+
}],
|
|
36327
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
36328
|
+
name: "deviceId",
|
|
36329
|
+
form: "single",
|
|
36330
|
+
optional: false
|
|
36331
|
+
}],
|
|
36332
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
36333
|
+
name: "deviceId",
|
|
36334
|
+
form: "single",
|
|
36335
|
+
optional: false
|
|
36336
|
+
}],
|
|
36337
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
36338
|
+
name: "deviceId",
|
|
36339
|
+
form: "single",
|
|
36340
|
+
optional: false
|
|
36341
|
+
}],
|
|
36342
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
36343
|
+
name: "deviceId",
|
|
36344
|
+
form: "single",
|
|
36345
|
+
optional: false
|
|
36346
|
+
}],
|
|
36347
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
36348
|
+
name: "deviceId",
|
|
36349
|
+
form: "single",
|
|
36350
|
+
optional: false
|
|
36351
|
+
}],
|
|
36352
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
36353
|
+
name: "deviceId",
|
|
36354
|
+
form: "single",
|
|
36355
|
+
optional: false
|
|
36356
|
+
}],
|
|
36357
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
36358
|
+
name: "deviceId",
|
|
36359
|
+
form: "single",
|
|
36360
|
+
optional: false
|
|
36361
|
+
}],
|
|
36362
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
36363
|
+
name: "deviceId",
|
|
36364
|
+
form: "single",
|
|
36365
|
+
optional: false
|
|
36366
|
+
}],
|
|
36367
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
36368
|
+
name: "deviceId",
|
|
36369
|
+
form: "single",
|
|
36370
|
+
optional: false
|
|
36371
|
+
}],
|
|
36372
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
36373
|
+
name: "deviceId",
|
|
36374
|
+
form: "single",
|
|
36375
|
+
optional: false
|
|
36376
|
+
}],
|
|
36377
|
+
"pipelineRunner.attachCamera": [{
|
|
36378
|
+
name: "deviceId",
|
|
36379
|
+
form: "single",
|
|
36380
|
+
optional: false
|
|
36381
|
+
}],
|
|
36382
|
+
"pipelineRunner.detachCamera": [{
|
|
36383
|
+
name: "deviceId",
|
|
36384
|
+
form: "single",
|
|
36385
|
+
optional: false
|
|
36386
|
+
}],
|
|
36387
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
36388
|
+
name: "deviceId",
|
|
36389
|
+
form: "single",
|
|
36390
|
+
optional: false
|
|
36391
|
+
}],
|
|
36392
|
+
"pipelineRunner.reportMotion": [{
|
|
36393
|
+
name: "deviceId",
|
|
36394
|
+
form: "single",
|
|
36395
|
+
optional: false
|
|
36396
|
+
}],
|
|
36397
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
36398
|
+
name: "deviceId",
|
|
36399
|
+
form: "single",
|
|
36400
|
+
optional: false
|
|
36401
|
+
}],
|
|
36402
|
+
"pipelineRunner.runStatelessStep": [{
|
|
36403
|
+
name: "sourceDeviceId",
|
|
36404
|
+
form: "single",
|
|
36405
|
+
optional: false
|
|
36406
|
+
}],
|
|
36407
|
+
"plateGallery.getPlateByTrack": [{
|
|
36408
|
+
name: "deviceId",
|
|
36409
|
+
form: "single",
|
|
36410
|
+
optional: false
|
|
36411
|
+
}],
|
|
36412
|
+
"plateGallery.listPlates": [{
|
|
36413
|
+
name: "deviceId",
|
|
36414
|
+
form: "single",
|
|
36415
|
+
optional: true
|
|
36416
|
+
}],
|
|
36417
|
+
"privacyMask.getOptions": [{
|
|
36418
|
+
name: "deviceId",
|
|
36419
|
+
form: "single",
|
|
36420
|
+
optional: false
|
|
36421
|
+
}],
|
|
36422
|
+
"privacyMask.setAudioEnabled": [{
|
|
36423
|
+
name: "deviceId",
|
|
36424
|
+
form: "single",
|
|
36425
|
+
optional: false
|
|
36426
|
+
}],
|
|
36427
|
+
"privacyMask.setMask": [{
|
|
36428
|
+
name: "deviceId",
|
|
36429
|
+
form: "single",
|
|
36430
|
+
optional: false
|
|
36431
|
+
}],
|
|
36432
|
+
"ptz.continuousMove": [{
|
|
36433
|
+
name: "deviceId",
|
|
36434
|
+
form: "single",
|
|
36435
|
+
optional: false
|
|
36436
|
+
}],
|
|
36437
|
+
"ptz.deletePreset": [{
|
|
36438
|
+
name: "deviceId",
|
|
36439
|
+
form: "single",
|
|
36440
|
+
optional: false
|
|
36441
|
+
}],
|
|
36442
|
+
"ptz.getOptions": [{
|
|
36443
|
+
name: "deviceId",
|
|
36444
|
+
form: "single",
|
|
36445
|
+
optional: false
|
|
36446
|
+
}],
|
|
36447
|
+
"ptz.getPosition": [{
|
|
36448
|
+
name: "deviceId",
|
|
36449
|
+
form: "single",
|
|
36450
|
+
optional: false
|
|
36451
|
+
}],
|
|
36452
|
+
"ptz.getPresets": [{
|
|
36453
|
+
name: "deviceId",
|
|
36454
|
+
form: "single",
|
|
36455
|
+
optional: false
|
|
36456
|
+
}],
|
|
36457
|
+
"ptz.goHome": [{
|
|
36458
|
+
name: "deviceId",
|
|
36459
|
+
form: "single",
|
|
36460
|
+
optional: false
|
|
36461
|
+
}],
|
|
36462
|
+
"ptz.goToPreset": [{
|
|
36463
|
+
name: "deviceId",
|
|
36464
|
+
form: "single",
|
|
36465
|
+
optional: false
|
|
36466
|
+
}],
|
|
36467
|
+
"ptz.move": [{
|
|
36468
|
+
name: "deviceId",
|
|
36469
|
+
form: "single",
|
|
36470
|
+
optional: false
|
|
36471
|
+
}],
|
|
36472
|
+
"ptz.savePreset": [{
|
|
36473
|
+
name: "deviceId",
|
|
36474
|
+
form: "single",
|
|
36475
|
+
optional: false
|
|
36476
|
+
}],
|
|
36477
|
+
"ptz.setAutofocus": [{
|
|
36478
|
+
name: "deviceId",
|
|
36479
|
+
form: "single",
|
|
36480
|
+
optional: false
|
|
36481
|
+
}],
|
|
36482
|
+
"ptz.stop": [{
|
|
36483
|
+
name: "deviceId",
|
|
36484
|
+
form: "single",
|
|
36485
|
+
optional: false
|
|
36486
|
+
}],
|
|
36487
|
+
"ptzAutotrack.getSettings": [{
|
|
36488
|
+
name: "deviceId",
|
|
36489
|
+
form: "single",
|
|
36490
|
+
optional: false
|
|
36491
|
+
}],
|
|
36492
|
+
"ptzAutotrack.getStatus": [{
|
|
36493
|
+
name: "deviceId",
|
|
36494
|
+
form: "single",
|
|
36495
|
+
optional: false
|
|
36496
|
+
}],
|
|
36497
|
+
"ptzAutotrack.setEnabled": [{
|
|
36498
|
+
name: "deviceId",
|
|
36499
|
+
form: "single",
|
|
36500
|
+
optional: false
|
|
36501
|
+
}],
|
|
36502
|
+
"ptzAutotrack.setSettings": [{
|
|
36503
|
+
name: "deviceId",
|
|
36504
|
+
form: "single",
|
|
36505
|
+
optional: false
|
|
36506
|
+
}],
|
|
36507
|
+
"reboot.reboot": [{
|
|
36508
|
+
name: "deviceId",
|
|
36509
|
+
form: "single",
|
|
36510
|
+
optional: false
|
|
36511
|
+
}],
|
|
36512
|
+
"recording.deleteFootprint": [{
|
|
36513
|
+
name: "deviceId",
|
|
36514
|
+
form: "single",
|
|
36515
|
+
optional: false
|
|
36516
|
+
}],
|
|
36517
|
+
"recording.getAvailability": [{
|
|
36518
|
+
name: "deviceId",
|
|
36519
|
+
form: "single",
|
|
36520
|
+
optional: false
|
|
36521
|
+
}],
|
|
36522
|
+
"recording.getDaysWithRecordings": [{
|
|
36523
|
+
name: "deviceId",
|
|
36524
|
+
form: "single",
|
|
36525
|
+
optional: false
|
|
36526
|
+
}],
|
|
36527
|
+
"recording.getDeviceConfig": [{
|
|
36528
|
+
name: "deviceId",
|
|
36529
|
+
form: "single",
|
|
36530
|
+
optional: false
|
|
36531
|
+
}],
|
|
36532
|
+
"recording.getPlaybackManifest": [{
|
|
36533
|
+
name: "deviceId",
|
|
36534
|
+
form: "single",
|
|
36535
|
+
optional: false
|
|
36536
|
+
}],
|
|
36537
|
+
"recording.listOpsLog": [{
|
|
36538
|
+
name: "deviceId",
|
|
36539
|
+
form: "single",
|
|
36540
|
+
optional: true
|
|
36541
|
+
}],
|
|
36542
|
+
"recording.locateSegment": [{
|
|
36543
|
+
name: "deviceId",
|
|
36544
|
+
form: "single",
|
|
36545
|
+
optional: false
|
|
36546
|
+
}],
|
|
36547
|
+
"recording.pruneFootage": [{
|
|
36548
|
+
name: "deviceId",
|
|
36549
|
+
form: "single",
|
|
36550
|
+
optional: false
|
|
36551
|
+
}],
|
|
36552
|
+
"recording.readGopBytes": [{
|
|
36553
|
+
name: "deviceId",
|
|
36554
|
+
form: "single",
|
|
36555
|
+
optional: false
|
|
36556
|
+
}],
|
|
36557
|
+
"recording.readSegmentBytes": [{
|
|
36558
|
+
name: "deviceId",
|
|
36559
|
+
form: "single",
|
|
36560
|
+
optional: false
|
|
36561
|
+
}],
|
|
36562
|
+
"recording.relocateFootage": [{
|
|
36563
|
+
name: "deviceId",
|
|
36564
|
+
form: "single",
|
|
36565
|
+
optional: true
|
|
36566
|
+
}],
|
|
36567
|
+
"recording.renderClip": [{
|
|
36568
|
+
name: "deviceId",
|
|
36569
|
+
form: "single",
|
|
36570
|
+
optional: false
|
|
36571
|
+
}],
|
|
36572
|
+
"recording.renderGif": [{
|
|
36573
|
+
name: "deviceId",
|
|
36574
|
+
form: "single",
|
|
36575
|
+
optional: false
|
|
36576
|
+
}],
|
|
36577
|
+
"recording.rescanStorage": [{
|
|
36578
|
+
name: "deviceId",
|
|
36579
|
+
form: "single",
|
|
36580
|
+
optional: false
|
|
36581
|
+
}],
|
|
36582
|
+
"recording.setDeviceConfig": [{
|
|
36583
|
+
name: "deviceId",
|
|
36584
|
+
form: "single",
|
|
36585
|
+
optional: false
|
|
36586
|
+
}],
|
|
36587
|
+
"recording.startStorageMigrationMove": [{
|
|
36588
|
+
name: "deviceId",
|
|
36589
|
+
form: "single",
|
|
36590
|
+
optional: true
|
|
36591
|
+
}],
|
|
36592
|
+
"recordingExport.createExport": [{
|
|
36593
|
+
name: "deviceId",
|
|
36594
|
+
form: "single",
|
|
36595
|
+
optional: false
|
|
36596
|
+
}],
|
|
36597
|
+
"recordingExport.listExports": [{
|
|
36598
|
+
name: "deviceId",
|
|
36599
|
+
form: "single",
|
|
36600
|
+
optional: true
|
|
36601
|
+
}],
|
|
36602
|
+
"sceneMonitor.captureReference": [{
|
|
36603
|
+
name: "deviceId",
|
|
36604
|
+
form: "single",
|
|
36605
|
+
optional: false
|
|
36606
|
+
}],
|
|
36607
|
+
"sceneMonitor.createScene": [{
|
|
36608
|
+
name: "deviceId",
|
|
36609
|
+
form: "single",
|
|
36610
|
+
optional: false
|
|
36611
|
+
}],
|
|
36612
|
+
"sceneMonitor.deleteReference": [{
|
|
36613
|
+
name: "deviceId",
|
|
36614
|
+
form: "single",
|
|
36615
|
+
optional: false
|
|
36616
|
+
}],
|
|
36617
|
+
"sceneMonitor.deleteScene": [{
|
|
36618
|
+
name: "deviceId",
|
|
36619
|
+
form: "single",
|
|
36620
|
+
optional: false
|
|
36621
|
+
}],
|
|
36622
|
+
"sceneMonitor.listScenes": [{
|
|
36623
|
+
name: "deviceId",
|
|
36624
|
+
form: "single",
|
|
36625
|
+
optional: false
|
|
36626
|
+
}],
|
|
36627
|
+
"sceneMonitor.recheckNow": [{
|
|
36628
|
+
name: "deviceId",
|
|
36629
|
+
form: "single",
|
|
36630
|
+
optional: false
|
|
36631
|
+
}],
|
|
36632
|
+
"sceneMonitor.resetScene": [{
|
|
36633
|
+
name: "deviceId",
|
|
36634
|
+
form: "single",
|
|
36635
|
+
optional: false
|
|
36636
|
+
}],
|
|
36637
|
+
"sceneMonitor.updateScene": [{
|
|
36638
|
+
name: "deviceId",
|
|
36639
|
+
form: "single",
|
|
36640
|
+
optional: false
|
|
36641
|
+
}],
|
|
36642
|
+
"scriptRunner.run": [{
|
|
36643
|
+
name: "deviceId",
|
|
36644
|
+
form: "single",
|
|
36645
|
+
optional: false
|
|
36646
|
+
}],
|
|
36647
|
+
"scriptRunner.stop": [{
|
|
36648
|
+
name: "deviceId",
|
|
36649
|
+
form: "single",
|
|
36650
|
+
optional: false
|
|
36651
|
+
}],
|
|
36652
|
+
"snapshot.getSnapshot": [{
|
|
36653
|
+
name: "deviceId",
|
|
36654
|
+
form: "single",
|
|
36655
|
+
optional: false
|
|
36656
|
+
}],
|
|
36657
|
+
"snapshot.getSnapshotLinks": [{
|
|
36658
|
+
name: "targets",
|
|
36659
|
+
form: "object-array",
|
|
36660
|
+
optional: false,
|
|
36661
|
+
itemField: "deviceId"
|
|
36662
|
+
}],
|
|
36663
|
+
"snapshot.getSnapshotOverview": [{
|
|
36664
|
+
name: "deviceIds",
|
|
36665
|
+
form: "array",
|
|
36666
|
+
optional: false
|
|
36667
|
+
}],
|
|
36668
|
+
"snapshot.invalidateCache": [{
|
|
36669
|
+
name: "deviceId",
|
|
36670
|
+
form: "single",
|
|
36671
|
+
optional: false
|
|
36672
|
+
}],
|
|
36673
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
36674
|
+
name: "deviceId",
|
|
36675
|
+
form: "single",
|
|
36676
|
+
optional: false
|
|
36677
|
+
}],
|
|
36678
|
+
"streamBroker.assignProfile": [{
|
|
36679
|
+
name: "deviceId",
|
|
36680
|
+
form: "single",
|
|
36681
|
+
optional: false
|
|
36682
|
+
}],
|
|
36683
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
36684
|
+
name: "deviceId",
|
|
36685
|
+
form: "single",
|
|
36686
|
+
optional: false
|
|
36687
|
+
}],
|
|
36688
|
+
"streamBroker.getStreamWithCodec": [{
|
|
36689
|
+
name: "deviceId",
|
|
36690
|
+
form: "single",
|
|
36691
|
+
optional: false
|
|
36692
|
+
}],
|
|
36693
|
+
"streamBroker.produceEventMedia": [{
|
|
36694
|
+
name: "deviceId",
|
|
36695
|
+
form: "single",
|
|
36696
|
+
optional: false
|
|
36697
|
+
}],
|
|
36698
|
+
"streamBroker.publishCameraStream": [{
|
|
36699
|
+
name: "deviceId",
|
|
36700
|
+
form: "single",
|
|
36701
|
+
optional: false
|
|
36702
|
+
}],
|
|
36703
|
+
"streamBroker.renderPreBufferClip": [{
|
|
36704
|
+
name: "deviceId",
|
|
36705
|
+
form: "single",
|
|
36706
|
+
optional: false
|
|
36707
|
+
}],
|
|
36708
|
+
"streamBroker.restartProfile": [{
|
|
36709
|
+
name: "deviceId",
|
|
36710
|
+
form: "single",
|
|
36711
|
+
optional: false
|
|
36712
|
+
}],
|
|
36713
|
+
"streamBroker.retractCameraStream": [{
|
|
36714
|
+
name: "deviceId",
|
|
36715
|
+
form: "single",
|
|
36716
|
+
optional: false
|
|
36717
|
+
}],
|
|
36718
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
36719
|
+
name: "deviceId",
|
|
36720
|
+
form: "single",
|
|
36721
|
+
optional: false
|
|
36722
|
+
}],
|
|
36723
|
+
"streamBroker.unassignProfile": [{
|
|
36724
|
+
name: "deviceId",
|
|
36725
|
+
form: "single",
|
|
36726
|
+
optional: false
|
|
36727
|
+
}],
|
|
36728
|
+
"streamCatalog.getCatalog": [{
|
|
36729
|
+
name: "deviceId",
|
|
36730
|
+
form: "single",
|
|
36731
|
+
optional: false
|
|
36732
|
+
}],
|
|
36733
|
+
"streamParams.getConfigSchema": [{
|
|
36734
|
+
name: "deviceId",
|
|
36735
|
+
form: "single",
|
|
36736
|
+
optional: false
|
|
36737
|
+
}],
|
|
36738
|
+
"streamParams.getOptions": [{
|
|
36739
|
+
name: "deviceId",
|
|
36740
|
+
form: "single",
|
|
36741
|
+
optional: false
|
|
36742
|
+
}],
|
|
36743
|
+
"streamParams.setProfile": [{
|
|
36744
|
+
name: "deviceId",
|
|
36745
|
+
form: "single",
|
|
36746
|
+
optional: false
|
|
36747
|
+
}],
|
|
36748
|
+
"switch.setState": [{
|
|
36749
|
+
name: "deviceId",
|
|
36750
|
+
form: "single",
|
|
36751
|
+
optional: false
|
|
36752
|
+
}],
|
|
36753
|
+
"vacuumControl.locate": [{
|
|
36754
|
+
name: "deviceId",
|
|
36755
|
+
form: "single",
|
|
36756
|
+
optional: false
|
|
36757
|
+
}],
|
|
36758
|
+
"vacuumControl.pause": [{
|
|
36759
|
+
name: "deviceId",
|
|
36760
|
+
form: "single",
|
|
36761
|
+
optional: false
|
|
36762
|
+
}],
|
|
36763
|
+
"vacuumControl.returnToBase": [{
|
|
36764
|
+
name: "deviceId",
|
|
36765
|
+
form: "single",
|
|
36766
|
+
optional: false
|
|
36767
|
+
}],
|
|
36768
|
+
"vacuumControl.setFanSpeed": [{
|
|
36769
|
+
name: "deviceId",
|
|
36770
|
+
form: "single",
|
|
36771
|
+
optional: false
|
|
36772
|
+
}],
|
|
36773
|
+
"vacuumControl.start": [{
|
|
36774
|
+
name: "deviceId",
|
|
36775
|
+
form: "single",
|
|
36776
|
+
optional: false
|
|
36777
|
+
}],
|
|
36778
|
+
"vacuumControl.stop": [{
|
|
36779
|
+
name: "deviceId",
|
|
36780
|
+
form: "single",
|
|
36781
|
+
optional: false
|
|
36782
|
+
}],
|
|
36783
|
+
"valve.close": [{
|
|
36784
|
+
name: "deviceId",
|
|
36785
|
+
form: "single",
|
|
36786
|
+
optional: false
|
|
36787
|
+
}],
|
|
36788
|
+
"valve.open": [{
|
|
36789
|
+
name: "deviceId",
|
|
36790
|
+
form: "single",
|
|
36791
|
+
optional: false
|
|
36792
|
+
}],
|
|
36793
|
+
"valve.setPosition": [{
|
|
36794
|
+
name: "deviceId",
|
|
36795
|
+
form: "single",
|
|
36796
|
+
optional: false
|
|
36797
|
+
}],
|
|
36798
|
+
"valve.stop": [{
|
|
36799
|
+
name: "deviceId",
|
|
36800
|
+
form: "single",
|
|
36801
|
+
optional: false
|
|
36802
|
+
}],
|
|
36803
|
+
"videoclips.getClipPlayback": [{
|
|
36804
|
+
name: "deviceId",
|
|
36805
|
+
form: "single",
|
|
36806
|
+
optional: false
|
|
36807
|
+
}],
|
|
36808
|
+
"videoclips.listClips": [{
|
|
36809
|
+
name: "deviceId",
|
|
36810
|
+
form: "single",
|
|
36811
|
+
optional: false
|
|
36812
|
+
}],
|
|
36813
|
+
"waterHeater.setAway": [{
|
|
36814
|
+
name: "deviceId",
|
|
36815
|
+
form: "single",
|
|
36816
|
+
optional: false
|
|
36817
|
+
}],
|
|
36818
|
+
"waterHeater.setOperationMode": [{
|
|
36819
|
+
name: "deviceId",
|
|
36820
|
+
form: "single",
|
|
36821
|
+
optional: false
|
|
36822
|
+
}],
|
|
36823
|
+
"waterHeater.setTargetTemp": [{
|
|
36824
|
+
name: "deviceId",
|
|
36825
|
+
form: "single",
|
|
36826
|
+
optional: false
|
|
36827
|
+
}],
|
|
36828
|
+
"webrtcSession.addIceCandidate": [{
|
|
36829
|
+
name: "deviceId",
|
|
36830
|
+
form: "single",
|
|
36831
|
+
optional: false
|
|
36832
|
+
}],
|
|
36833
|
+
"webrtcSession.closeSession": [{
|
|
36834
|
+
name: "deviceId",
|
|
36835
|
+
form: "single",
|
|
36836
|
+
optional: false
|
|
36837
|
+
}],
|
|
36838
|
+
"webrtcSession.createSession": [{
|
|
36839
|
+
name: "deviceId",
|
|
36840
|
+
form: "single",
|
|
36841
|
+
optional: false
|
|
36842
|
+
}],
|
|
36843
|
+
"webrtcSession.getIceCandidates": [{
|
|
36844
|
+
name: "deviceId",
|
|
36845
|
+
form: "single",
|
|
36846
|
+
optional: false
|
|
36847
|
+
}],
|
|
36848
|
+
"webrtcSession.getSessionState": [{
|
|
36849
|
+
name: "deviceId",
|
|
36850
|
+
form: "single",
|
|
36851
|
+
optional: false
|
|
36852
|
+
}],
|
|
36853
|
+
"webrtcSession.handleAnswer": [{
|
|
36854
|
+
name: "deviceId",
|
|
36855
|
+
form: "single",
|
|
36856
|
+
optional: false
|
|
36857
|
+
}],
|
|
36858
|
+
"webrtcSession.handleOffer": [{
|
|
36859
|
+
name: "deviceId",
|
|
36860
|
+
form: "single",
|
|
36861
|
+
optional: false
|
|
36862
|
+
}],
|
|
36863
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
36864
|
+
name: "deviceId",
|
|
36865
|
+
form: "single",
|
|
36866
|
+
optional: false
|
|
36867
|
+
}],
|
|
36868
|
+
"webrtcSession.listStreams": [{
|
|
36869
|
+
name: "deviceId",
|
|
36870
|
+
form: "single",
|
|
36871
|
+
optional: false
|
|
36872
|
+
}],
|
|
36873
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
36874
|
+
name: "deviceId",
|
|
36875
|
+
form: "single",
|
|
36876
|
+
optional: false
|
|
36877
|
+
}],
|
|
36878
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
36879
|
+
name: "deviceId",
|
|
36880
|
+
form: "single",
|
|
36881
|
+
optional: false
|
|
36882
|
+
}],
|
|
36883
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
36884
|
+
name: "deviceId",
|
|
36885
|
+
form: "single",
|
|
36886
|
+
optional: false
|
|
36887
|
+
}],
|
|
36888
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
36889
|
+
name: "deviceId",
|
|
36890
|
+
form: "single",
|
|
36891
|
+
optional: false
|
|
36892
|
+
}],
|
|
36893
|
+
"zoneRules.listRules": [{
|
|
36894
|
+
name: "deviceId",
|
|
36895
|
+
form: "single",
|
|
36896
|
+
optional: false
|
|
36897
|
+
}],
|
|
36898
|
+
"zoneRules.setRules": [{
|
|
36899
|
+
name: "deviceId",
|
|
36900
|
+
form: "single",
|
|
36901
|
+
optional: false
|
|
36902
|
+
}],
|
|
36903
|
+
"zones.addZone": [{
|
|
36904
|
+
name: "deviceId",
|
|
36905
|
+
form: "single",
|
|
36906
|
+
optional: false
|
|
36907
|
+
}],
|
|
36908
|
+
"zones.listZones": [{
|
|
36909
|
+
name: "deviceId",
|
|
36910
|
+
form: "single",
|
|
36911
|
+
optional: false
|
|
36912
|
+
}],
|
|
36913
|
+
"zones.removeZone": [{
|
|
36914
|
+
name: "deviceId",
|
|
36915
|
+
form: "single",
|
|
36916
|
+
optional: false
|
|
36917
|
+
}],
|
|
36918
|
+
"zones.updateZone": [{
|
|
36919
|
+
name: "deviceId",
|
|
36920
|
+
form: "single",
|
|
36921
|
+
optional: false
|
|
36922
|
+
}]
|
|
36923
|
+
});
|
|
34123
36924
|
Object.freeze({
|
|
34124
36925
|
"broker": "broker",
|
|
34125
36926
|
"device-export": "device-export",
|