@camstack/addon-provider-rademacher 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +2938 -151
- package/dist/addon.mjs +2938 -151
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -983,7 +983,7 @@ var Rademacher = class {
|
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
//#endregion
|
|
986
|
-
//#region ../types/dist/event-category-
|
|
986
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
987
987
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
988
988
|
EventCategory["SystemBoot"] = "system.boot";
|
|
989
989
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1190,6 +1190,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1190
1190
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
1191
1191
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
1192
1192
|
/**
|
|
1193
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
1194
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
1195
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
1196
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
1197
|
+
* from the placement candidate set for as long as it holds.
|
|
1198
|
+
*
|
|
1199
|
+
* This exists because the state was previously invisible: little-unraid
|
|
1200
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
1201
|
+
* and nothing in the system said so.
|
|
1202
|
+
*
|
|
1203
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
1204
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
1205
|
+
* serves it exactly as before.
|
|
1206
|
+
*/
|
|
1207
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
1208
|
+
/**
|
|
1209
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
1210
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
1211
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
1212
|
+
* per camera.
|
|
1213
|
+
*
|
|
1214
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
1215
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
1216
|
+
* camera" produce byte-identical silence.
|
|
1217
|
+
*/
|
|
1218
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
1219
|
+
/**
|
|
1193
1220
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
1194
1221
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
1195
1222
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -11874,6 +11901,8 @@ var QueryFilterSchema = object({
|
|
|
11874
11901
|
where: record(string(), unknown()).optional(),
|
|
11875
11902
|
whereIn: record(string(), array(unknown())).optional(),
|
|
11876
11903
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
11904
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
11905
|
+
whereNot: record(string(), unknown()).optional(),
|
|
11877
11906
|
orderBy: object({
|
|
11878
11907
|
field: string(),
|
|
11879
11908
|
direction: _enum(["asc", "desc"])
|
|
@@ -11893,7 +11922,8 @@ var QueryFilterSchema = object({
|
|
|
11893
11922
|
var MutationFilterSchema = object({
|
|
11894
11923
|
where: record(string(), unknown()).optional(),
|
|
11895
11924
|
whereIn: record(string(), array(unknown())).optional(),
|
|
11896
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
11925
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
11926
|
+
whereNot: record(string(), unknown()).optional()
|
|
11897
11927
|
});
|
|
11898
11928
|
/** A single stored record: `{ id, data }`. */
|
|
11899
11929
|
var SettingsRecordSchema = object({
|
|
@@ -13412,6 +13442,17 @@ var LlmImageSchema = object({
|
|
|
13412
13442
|
bytes: _instanceof(Uint8Array),
|
|
13413
13443
|
mimeType: string()
|
|
13414
13444
|
});
|
|
13445
|
+
/**
|
|
13446
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
13447
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
13448
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
13449
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
13450
|
+
*/
|
|
13451
|
+
var LlmRetryPolicySchema = object({
|
|
13452
|
+
enabled: boolean().default(false),
|
|
13453
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
13454
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
13455
|
+
});
|
|
13415
13456
|
var LlmGenerateBaseInputSchema = object({
|
|
13416
13457
|
/** Collection routing (the notification-output posture). */
|
|
13417
13458
|
addonId: string().optional(),
|
|
@@ -13426,7 +13467,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
13426
13467
|
jsonSchema: record(string(), unknown()).optional(),
|
|
13427
13468
|
/** Per-call override of the profile default. */
|
|
13428
13469
|
maxTokens: number().int().positive().optional(),
|
|
13429
|
-
temperature: number().optional()
|
|
13470
|
+
temperature: number().optional(),
|
|
13471
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
13472
|
+
topP: number().min(0).max(1).optional(),
|
|
13473
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
13474
|
+
topK: number().int().positive().optional(),
|
|
13475
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
13476
|
+
timeoutMs: number().int().positive().optional(),
|
|
13477
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
13478
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
13479
|
+
/**
|
|
13480
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
13481
|
+
*
|
|
13482
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
13483
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
13484
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
13485
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
13486
|
+
* not generations, and the real load is unbounded.
|
|
13487
|
+
*
|
|
13488
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
13489
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
13490
|
+
*/
|
|
13491
|
+
requestId: string().optional()
|
|
13430
13492
|
});
|
|
13431
13493
|
/**
|
|
13432
13494
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -13439,6 +13501,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
13439
13501
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
13440
13502
|
* watchdog — operator decision #3).
|
|
13441
13503
|
*/
|
|
13504
|
+
/**
|
|
13505
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
13506
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
13507
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
13508
|
+
* the preview is exactly what the node downloads.
|
|
13509
|
+
*/
|
|
13510
|
+
var ManagedModelExtraFileSchema = object({
|
|
13511
|
+
url: string(),
|
|
13512
|
+
filename: string(),
|
|
13513
|
+
sizeBytes: number(),
|
|
13514
|
+
sha256: string().optional()
|
|
13515
|
+
});
|
|
13442
13516
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
13443
13517
|
object({
|
|
13444
13518
|
kind: literal("catalog"),
|
|
@@ -13447,7 +13521,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
13447
13521
|
object({
|
|
13448
13522
|
kind: literal("url"),
|
|
13449
13523
|
url: string(),
|
|
13450
|
-
sha256: string().optional()
|
|
13524
|
+
sha256: string().optional(),
|
|
13525
|
+
/** Picker/status label; the file basename when absent. */
|
|
13526
|
+
label: string().optional(),
|
|
13527
|
+
sizeBytes: number().optional(),
|
|
13528
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
13451
13529
|
}),
|
|
13452
13530
|
object({
|
|
13453
13531
|
kind: literal("path"),
|
|
@@ -13465,13 +13543,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
13465
13543
|
gpuLayers: number().int().default(0),
|
|
13466
13544
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
13467
13545
|
threads: number().int().optional(),
|
|
13468
|
-
/** Concurrent slots. */
|
|
13546
|
+
/** Concurrent slots (`--parallel`). */
|
|
13469
13547
|
parallel: number().int().default(1),
|
|
13548
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
13549
|
+
batchSize: number().int().positive().optional(),
|
|
13550
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
13551
|
+
ubatchSize: number().int().positive().optional(),
|
|
13552
|
+
/**
|
|
13553
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
13554
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
13555
|
+
*/
|
|
13556
|
+
flashAttention: boolean().default(false),
|
|
13557
|
+
/**
|
|
13558
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
13559
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
13560
|
+
* what the RAM budget is counting.
|
|
13561
|
+
*/
|
|
13562
|
+
mlock: boolean().default(false),
|
|
13563
|
+
/**
|
|
13564
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
13565
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
13566
|
+
* store produces on every first token.
|
|
13567
|
+
*/
|
|
13568
|
+
noMmap: boolean().default(false),
|
|
13569
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
13570
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
13571
|
+
cacheTypeK: _enum([
|
|
13572
|
+
"f32",
|
|
13573
|
+
"f16",
|
|
13574
|
+
"q8_0",
|
|
13575
|
+
"q5_1",
|
|
13576
|
+
"q5_0",
|
|
13577
|
+
"q4_1",
|
|
13578
|
+
"q4_0"
|
|
13579
|
+
]).optional(),
|
|
13580
|
+
cacheTypeV: _enum([
|
|
13581
|
+
"f32",
|
|
13582
|
+
"f16",
|
|
13583
|
+
"q8_0",
|
|
13584
|
+
"q5_1",
|
|
13585
|
+
"q5_0",
|
|
13586
|
+
"q4_1",
|
|
13587
|
+
"q4_0"
|
|
13588
|
+
]).optional(),
|
|
13589
|
+
/**
|
|
13590
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
13591
|
+
* (which most vision chat templates need and some language-only models
|
|
13592
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
13593
|
+
*
|
|
13594
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
13595
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
13596
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
13597
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
13598
|
+
* twice (D62).
|
|
13599
|
+
*/
|
|
13600
|
+
extraArgs: array(string()).default([]),
|
|
13470
13601
|
/** Else lazy: first generate boots it. */
|
|
13471
13602
|
autoStart: boolean().default(false),
|
|
13472
13603
|
/** 0 = never; frees RAM after quiet periods. */
|
|
13473
13604
|
idleStopMinutes: number().int().default(30)
|
|
13474
13605
|
});
|
|
13606
|
+
/**
|
|
13607
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
13608
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
13609
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
13610
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
13611
|
+
*/
|
|
13612
|
+
var LlmDownloadProgressSchema = object({
|
|
13613
|
+
phase: _enum(["downloading", "verifying"]),
|
|
13614
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
13615
|
+
file: string(),
|
|
13616
|
+
fileIndex: number().int(),
|
|
13617
|
+
fileCount: number().int(),
|
|
13618
|
+
/** Across the WHOLE install, not the current file. */
|
|
13619
|
+
downloadedBytes: number(),
|
|
13620
|
+
totalBytes: number().optional()
|
|
13621
|
+
});
|
|
13475
13622
|
var LlmRuntimeStatusSchema = object({
|
|
13476
13623
|
/** Status is ALWAYS node-qualified. */
|
|
13477
13624
|
nodeId: string(),
|
|
@@ -13488,6 +13635,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
13488
13635
|
modelPath: string().optional(),
|
|
13489
13636
|
modelId: string().optional(),
|
|
13490
13637
|
downloadProgress: number().min(0).max(1).optional(),
|
|
13638
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
13639
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
13491
13640
|
lastError: string().optional(),
|
|
13492
13641
|
crashesInWindow: number(),
|
|
13493
13642
|
/** Child RSS (sampled best-effort). */
|
|
@@ -13498,7 +13647,14 @@ var LlmNodeModelSchema = object({
|
|
|
13498
13647
|
file: string(),
|
|
13499
13648
|
sizeBytes: number(),
|
|
13500
13649
|
catalogId: string().optional(),
|
|
13501
|
-
installedAt: number().optional()
|
|
13650
|
+
installedAt: number().optional(),
|
|
13651
|
+
/**
|
|
13652
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
13653
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
13654
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
13655
|
+
* it the picker could list such a file and do nothing with it.
|
|
13656
|
+
*/
|
|
13657
|
+
path: string().optional()
|
|
13502
13658
|
});
|
|
13503
13659
|
var LlmRuntimeDiskUsageSchema = object({
|
|
13504
13660
|
nodeId: string(),
|
|
@@ -13554,10 +13710,47 @@ var LlmProfileSchema = object({
|
|
|
13554
13710
|
baseUrl: string().optional(),
|
|
13555
13711
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
13556
13712
|
apiKey: string().optional(),
|
|
13713
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
13714
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
13715
|
+
* question about a picture nobody sent. */
|
|
13557
13716
|
supportsVision: boolean(),
|
|
13558
13717
|
temperature: number().min(0).max(2).optional(),
|
|
13718
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
13719
|
+
topP: number().min(0).max(1).optional(),
|
|
13720
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
13721
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
13722
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
13723
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
13724
|
+
topK: number().int().positive().optional(),
|
|
13559
13725
|
maxTokens: number().int().positive().optional(),
|
|
13726
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
13727
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
13728
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
13729
|
+
contextLength: number().int().positive().optional(),
|
|
13730
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
13731
|
+
* two system prompts fighting is worse than either alone). */
|
|
13732
|
+
systemPrompt: string().optional(),
|
|
13733
|
+
/** Total generation bound — the only one a unary call has. */
|
|
13560
13734
|
timeoutMs: number().int().positive().default(6e4),
|
|
13735
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
13736
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
13737
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
13738
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
13739
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
13740
|
+
* GPU load is exactly what happens before them. */
|
|
13741
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
13742
|
+
/** Output started then stopped. */
|
|
13743
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
13744
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
13745
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
13746
|
+
retry: LlmRetryPolicySchema.default({
|
|
13747
|
+
enabled: false,
|
|
13748
|
+
maxAttempts: 1
|
|
13749
|
+
}),
|
|
13750
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
13751
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
13752
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
13753
|
+
toolsEnabled: boolean().default(false),
|
|
13561
13754
|
extraHeaders: record(string(), string()).optional(),
|
|
13562
13755
|
/** kind === 'managed-local' only (spec §4). */
|
|
13563
13756
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -13607,6 +13800,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
13607
13800
|
/** Vision models: companion projector file. */
|
|
13608
13801
|
mmprojUrl: string().optional()
|
|
13609
13802
|
});
|
|
13803
|
+
/**
|
|
13804
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
13805
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
13806
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
13807
|
+
* exception.
|
|
13808
|
+
*
|
|
13809
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
13810
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
13811
|
+
*/
|
|
13812
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
13813
|
+
ok: literal(true),
|
|
13814
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
13815
|
+
model: ManagedModelRefSchema,
|
|
13816
|
+
label: string(),
|
|
13817
|
+
repo: string(),
|
|
13818
|
+
quantization: string(),
|
|
13819
|
+
purpose: _enum(["text", "vision"]),
|
|
13820
|
+
totalBytes: number(),
|
|
13821
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
13822
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
13823
|
+
extraFilenames: array(string())
|
|
13824
|
+
}), object({
|
|
13825
|
+
ok: literal(false),
|
|
13826
|
+
code: string(),
|
|
13827
|
+
message: string(),
|
|
13828
|
+
candidates: array(string()).optional(),
|
|
13829
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
13830
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
13831
|
+
requiredBytes: number().optional()
|
|
13832
|
+
})]);
|
|
13610
13833
|
var LlmRuntimeNodeSchema = object({
|
|
13611
13834
|
nodeId: string(),
|
|
13612
13835
|
reachable: boolean(),
|
|
@@ -13619,7 +13842,10 @@ var ProfileRefInputSchema = object({
|
|
|
13619
13842
|
addonId: string(),
|
|
13620
13843
|
profileId: string()
|
|
13621
13844
|
});
|
|
13622
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
13845
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
13846
|
+
addonId: string().optional(),
|
|
13847
|
+
requestId: string()
|
|
13848
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
13623
13849
|
kind: "mutation",
|
|
13624
13850
|
auth: "admin"
|
|
13625
13851
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -13640,6 +13866,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13640
13866
|
consumer: string().optional(),
|
|
13641
13867
|
profileId: string().optional()
|
|
13642
13868
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
13869
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
13870
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
13871
|
+
ref: string(),
|
|
13872
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
13873
|
+
maxBytes: number().positive().optional()
|
|
13874
|
+
}), HfModelResolutionSchema, {
|
|
13875
|
+
kind: "mutation",
|
|
13876
|
+
auth: "admin"
|
|
13877
|
+
}), method(object({
|
|
13643
13878
|
nodeId: string(),
|
|
13644
13879
|
model: ManagedModelRefSchema
|
|
13645
13880
|
}), _void(), {
|
|
@@ -14199,11 +14434,33 @@ var NotificationFormatSchema = _enum([
|
|
|
14199
14434
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
14200
14435
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
14201
14436
|
* differently.
|
|
14437
|
+
*
|
|
14438
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
14439
|
+
*
|
|
14440
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
14441
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
14442
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
14443
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
14444
|
+
* decides its glyph, which is the only place that decision can be made
|
|
14445
|
+
* honestly.
|
|
14446
|
+
*
|
|
14447
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
14448
|
+
* `disarm` straight through; iOS feeds that string to
|
|
14449
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
14450
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
14451
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
14452
|
+
*
|
|
14453
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
14454
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
14455
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
14456
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
14457
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
14202
14458
|
*/
|
|
14203
14459
|
var NotificationActionIconSchema = _enum([
|
|
14204
14460
|
"acknowledge",
|
|
14205
14461
|
"dismiss",
|
|
14206
14462
|
"silence",
|
|
14463
|
+
"snooze",
|
|
14207
14464
|
"view",
|
|
14208
14465
|
"play",
|
|
14209
14466
|
"open",
|
|
@@ -14211,9 +14468,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
14211
14468
|
"lock",
|
|
14212
14469
|
"unlock",
|
|
14213
14470
|
"arm",
|
|
14471
|
+
"arm-home",
|
|
14472
|
+
"arm-away",
|
|
14473
|
+
"arm-night",
|
|
14214
14474
|
"disarm",
|
|
14215
14475
|
"light",
|
|
14216
|
-
"alert"
|
|
14476
|
+
"alert",
|
|
14477
|
+
"camera"
|
|
14217
14478
|
]);
|
|
14218
14479
|
/** A single tap-through action button. */
|
|
14219
14480
|
var NotificationActionSchema = object({
|
|
@@ -14413,6 +14674,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14413
14674
|
targetId: string(),
|
|
14414
14675
|
enabled: boolean()
|
|
14415
14676
|
}), _void(), { kind: "mutation" });
|
|
14677
|
+
new Set([
|
|
14678
|
+
{
|
|
14679
|
+
id: "person",
|
|
14680
|
+
name: "Person"
|
|
14681
|
+
},
|
|
14682
|
+
{
|
|
14683
|
+
id: "vehicle",
|
|
14684
|
+
name: "Vehicle"
|
|
14685
|
+
},
|
|
14686
|
+
{
|
|
14687
|
+
id: "animal",
|
|
14688
|
+
name: "Animal"
|
|
14689
|
+
},
|
|
14690
|
+
{
|
|
14691
|
+
id: "package",
|
|
14692
|
+
name: "Package"
|
|
14693
|
+
}
|
|
14694
|
+
].map((l) => l.id));
|
|
14416
14695
|
var COCO_TO_MACRO = {
|
|
14417
14696
|
mapping: {
|
|
14418
14697
|
person: "person",
|
|
@@ -15243,11 +15522,15 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15243
15522
|
"stream-offline",
|
|
15244
15523
|
"node-online",
|
|
15245
15524
|
"node-offline",
|
|
15525
|
+
"node-inference-unavailable",
|
|
15526
|
+
"detection-blind",
|
|
15246
15527
|
"addon-update-available",
|
|
15247
15528
|
"server-update-available",
|
|
15248
15529
|
"alarm-triggered",
|
|
15249
15530
|
"alarm-armed",
|
|
15250
15531
|
"alarm-disarmed",
|
|
15532
|
+
"alarm-arming",
|
|
15533
|
+
"alarm-arm-refused",
|
|
15251
15534
|
"camera-online",
|
|
15252
15535
|
"camera-offline",
|
|
15253
15536
|
"camera-disabled",
|
|
@@ -15302,7 +15585,16 @@ var NcScheduleSchema = object({
|
|
|
15302
15585
|
});
|
|
15303
15586
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
15304
15587
|
var NcPlateMatcherSchema = object({
|
|
15305
|
-
|
|
15588
|
+
/**
|
|
15589
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
15590
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
15591
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
15592
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
15593
|
+
*
|
|
15594
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
15595
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
15596
|
+
*/
|
|
15597
|
+
values: array(string().min(1)),
|
|
15306
15598
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
15307
15599
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
15308
15600
|
});
|
|
@@ -15336,28 +15628,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
15336
15628
|
/**
|
|
15337
15629
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
15338
15630
|
*
|
|
15339
|
-
*
|
|
15340
|
-
*
|
|
15341
|
-
*
|
|
15342
|
-
*
|
|
15343
|
-
*
|
|
15344
|
-
*
|
|
15345
|
-
*
|
|
15346
|
-
*
|
|
15347
|
-
*
|
|
15348
|
-
*
|
|
15349
|
-
*
|
|
15350
|
-
*
|
|
15351
|
-
*
|
|
15352
|
-
*
|
|
15353
|
-
*
|
|
15354
|
-
*
|
|
15355
|
-
*
|
|
15356
|
-
*
|
|
15357
|
-
*
|
|
15358
|
-
*
|
|
15359
|
-
*
|
|
15360
|
-
* `
|
|
15631
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
15632
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
15633
|
+
* there is no second switch that can disagree with the first and every rule
|
|
15634
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
15635
|
+
*
|
|
15636
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
15637
|
+
* classifier labels with one of them. No window, no percentage:
|
|
15638
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
15639
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
15640
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
15641
|
+
* reaches this condition if the classifier was already confident enough.
|
|
15642
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
15643
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
15644
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
15645
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
15646
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
15647
|
+
* seconds is 100% of nothing.
|
|
15648
|
+
*
|
|
15649
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
15650
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
15651
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
15652
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
15653
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
15654
|
+
* the wrong question to ask of a sparse classifier.
|
|
15655
|
+
*
|
|
15656
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
15657
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
15658
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
15659
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
15660
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
15361
15661
|
*
|
|
15362
15662
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
15363
15663
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -15365,13 +15665,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
15365
15665
|
* an operator who typed `dog` mean the same thing.
|
|
15366
15666
|
*/
|
|
15367
15667
|
var NcAudioConditionSchema = object({
|
|
15368
|
-
/**
|
|
15668
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
15369
15669
|
labels: array(string().min(1)).min(1).optional(),
|
|
15370
|
-
/**
|
|
15670
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
15371
15671
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
15372
|
-
/**
|
|
15672
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
15373
15673
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
15374
|
-
/**
|
|
15674
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
15375
15675
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15376
15676
|
});
|
|
15377
15677
|
/**
|
|
@@ -15509,13 +15809,81 @@ var NcRuleActionsSchema = object({
|
|
|
15509
15809
|
*/
|
|
15510
15810
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
15511
15811
|
});
|
|
15812
|
+
/**
|
|
15813
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
15814
|
+
*
|
|
15815
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
15816
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
15817
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
15818
|
+
*
|
|
15819
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
15820
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
15821
|
+
*/
|
|
15822
|
+
var NcDeviceStateConditionSchema = object({
|
|
15823
|
+
deviceId: number().int(),
|
|
15824
|
+
/** Any of these matches. */
|
|
15825
|
+
states: array(string().min(1)).min(1)
|
|
15826
|
+
});
|
|
15827
|
+
/**
|
|
15828
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
15829
|
+
*
|
|
15830
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
15831
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
15832
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
15833
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
15834
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
15835
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
15836
|
+
* kind exist for it — see D159.
|
|
15837
|
+
*
|
|
15838
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
15839
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
15840
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
15841
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
15842
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
15843
|
+
*
|
|
15844
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
15845
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
15846
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
15847
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
15848
|
+
* override one rule against the scene's own default.
|
|
15849
|
+
*
|
|
15850
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
15851
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
15852
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
15853
|
+
* evidence, in either direction.
|
|
15854
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
15855
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
15856
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
15857
|
+
* reason the operator asked for a latch.
|
|
15858
|
+
*
|
|
15859
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
15860
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
15861
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
15862
|
+
* said out loud in the log rather than dropped in silence.
|
|
15863
|
+
*/
|
|
15864
|
+
var NcSceneConditionSchema = object({
|
|
15865
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
15866
|
+
sceneId: string().min(1),
|
|
15867
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
15868
|
+
deviceId: number().int().optional(),
|
|
15869
|
+
/** The state the scene must be in for the rule to fire. */
|
|
15870
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
15871
|
+
/**
|
|
15872
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
15873
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
15874
|
+
*/
|
|
15875
|
+
latched: boolean().optional()
|
|
15876
|
+
});
|
|
15512
15877
|
var NcConditionsSchema = object({
|
|
15513
15878
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
15514
|
-
deviceState:
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15518
|
-
|
|
15879
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
15880
|
+
/**
|
|
15881
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
15882
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
15883
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
15884
|
+
* {@link NcSceneCondition} and D159.
|
|
15885
|
+
*/
|
|
15886
|
+
scene: NcSceneConditionSchema.optional(),
|
|
15519
15887
|
/** Device scope — absent = all devices. */
|
|
15520
15888
|
devices: array(number()).optional(),
|
|
15521
15889
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -15541,18 +15909,47 @@ var NcConditionsSchema = object({
|
|
|
15541
15909
|
*/
|
|
15542
15910
|
labelEquals: array(string().min(1)).optional(),
|
|
15543
15911
|
/**
|
|
15544
|
-
*
|
|
15545
|
-
*
|
|
15546
|
-
*
|
|
15912
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
15913
|
+
* is about recognised people at all.
|
|
15914
|
+
*
|
|
15915
|
+
* Three states, and the empty one is the point:
|
|
15916
|
+
*
|
|
15917
|
+
* | value | meaning |
|
|
15918
|
+
* | --- | --- |
|
|
15919
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
15920
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
15921
|
+
* | a list | only these identities |
|
|
15922
|
+
*
|
|
15923
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
15924
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
15925
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
15926
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
15927
|
+
* with the list under it is worse than no switch (D62).
|
|
15928
|
+
*
|
|
15929
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
15930
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
15931
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
15932
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
15933
|
+
* `{{label}}` renders.
|
|
15934
|
+
*
|
|
15935
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
15936
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
15937
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
15938
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
15939
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
15547
15940
|
*/
|
|
15548
15941
|
identities: array(string().min(1)).optional(),
|
|
15549
|
-
/**
|
|
15942
|
+
/**
|
|
15943
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
15944
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
15945
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
15946
|
+
*/
|
|
15550
15947
|
plates: NcPlateMatcherSchema.optional(),
|
|
15551
15948
|
/**
|
|
15552
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
15553
|
-
*
|
|
15554
|
-
* identity
|
|
15555
|
-
*
|
|
15949
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
15950
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
15951
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
15952
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
15556
15953
|
*/
|
|
15557
15954
|
identitiesExclude: array(string().min(1)).optional(),
|
|
15558
15955
|
/**
|
|
@@ -15944,7 +16341,80 @@ var NcRuleInputSchema = object({
|
|
|
15944
16341
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15945
16342
|
* did, and absent is the only way to say that without a migration.
|
|
15946
16343
|
*/
|
|
15947
|
-
confirm: NcConfirmSchema.optional()
|
|
16344
|
+
confirm: NcConfirmSchema.optional(),
|
|
16345
|
+
/**
|
|
16346
|
+
* WAIT for face/plate recognition before saying anything.
|
|
16347
|
+
*
|
|
16348
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
16349
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
16350
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
16351
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
16352
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
16353
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
16354
|
+
*
|
|
16355
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
16356
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
16357
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
16358
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
16359
|
+
*
|
|
16360
|
+
* | value | what happens |
|
|
16361
|
+
* | --- | --- |
|
|
16362
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
16363
|
+
* | 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) |
|
|
16364
|
+
*
|
|
16365
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
16366
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
16367
|
+
* rule authored before this field meant.
|
|
16368
|
+
*
|
|
16369
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
16370
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
16371
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
16372
|
+
* be satisfied, because a closed track carries no crossing.
|
|
16373
|
+
*/
|
|
16374
|
+
waitForEnhancement: boolean().optional(),
|
|
16375
|
+
/**
|
|
16376
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
16377
|
+
*
|
|
16378
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
16379
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
16380
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
16381
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
16382
|
+
* notification with an updated one naming everybody. The push carries the
|
|
16383
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
16384
|
+
*
|
|
16385
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
16386
|
+
*
|
|
16387
|
+
* ### Why an idle cutoff and not a window
|
|
16388
|
+
*
|
|
16389
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
16390
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
16391
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
16392
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
16393
|
+
*
|
|
16394
|
+
* ### What it replaces
|
|
16395
|
+
*
|
|
16396
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
16397
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
16398
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
16399
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
16400
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
16401
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
16402
|
+
* throttled by the window its own first member spent.
|
|
16403
|
+
*
|
|
16404
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
16405
|
+
*
|
|
16406
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
16407
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
16408
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
16409
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
16410
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
16411
|
+
* path. Neither combination fires twice for one subject.
|
|
16412
|
+
*
|
|
16413
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
16414
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
16415
|
+
* field existed.
|
|
16416
|
+
*/
|
|
16417
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15948
16418
|
});
|
|
15949
16419
|
/**
|
|
15950
16420
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -16051,6 +16521,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
16051
16521
|
"occupancy",
|
|
16052
16522
|
"audio",
|
|
16053
16523
|
"deviceState",
|
|
16524
|
+
"scene",
|
|
16054
16525
|
"systemEvent"
|
|
16055
16526
|
]),
|
|
16056
16527
|
operator: _enum([
|
|
@@ -16456,7 +16927,87 @@ var MethodAccessSchema = _enum([
|
|
|
16456
16927
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
16457
16928
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
16458
16929
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
16459
|
-
|
|
16930
|
+
/**
|
|
16931
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
16932
|
+
*
|
|
16933
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
16934
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
16935
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
16936
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
16937
|
+
*
|
|
16938
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
16939
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
16940
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
16941
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
16942
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
16943
|
+
* is NOT covered until the grant is edited.
|
|
16944
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
16945
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
16946
|
+
* re-resolves on the next request.
|
|
16947
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
16948
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
16949
|
+
* null/unset location matches NO `locations` selector.
|
|
16950
|
+
*/
|
|
16951
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
16952
|
+
object({ kind: literal("all") }),
|
|
16953
|
+
object({
|
|
16954
|
+
kind: literal("ids"),
|
|
16955
|
+
ids: array(number().int()).min(1)
|
|
16956
|
+
}),
|
|
16957
|
+
object({
|
|
16958
|
+
kind: literal("types"),
|
|
16959
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16960
|
+
}),
|
|
16961
|
+
object({
|
|
16962
|
+
kind: literal("locations"),
|
|
16963
|
+
locations: array(string().min(1)).min(1)
|
|
16964
|
+
})
|
|
16965
|
+
]);
|
|
16966
|
+
var DeviceTokenScopeSchema = object({
|
|
16967
|
+
type: literal("device"),
|
|
16968
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16969
|
+
selector: DeviceSelectorSchema,
|
|
16970
|
+
access: array(MethodAccessSchema).min(1),
|
|
16971
|
+
/**
|
|
16972
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16973
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16974
|
+
* Direction is parent → children ONLY.
|
|
16975
|
+
*
|
|
16976
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16977
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16978
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16979
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16980
|
+
* explicitly to override that default per grant.
|
|
16981
|
+
*/
|
|
16982
|
+
includeLinked: boolean().optional()
|
|
16983
|
+
});
|
|
16984
|
+
/**
|
|
16985
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16986
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16987
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16988
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16989
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16990
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16991
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16992
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16993
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16994
|
+
*/
|
|
16995
|
+
function migrateLegacyTokenScope(raw) {
|
|
16996
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16997
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16998
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16999
|
+
const targets = Reflect.get(raw, "targets");
|
|
17000
|
+
if (!Array.isArray(targets)) return raw;
|
|
17001
|
+
return {
|
|
17002
|
+
type: "device",
|
|
17003
|
+
selector: {
|
|
17004
|
+
kind: "ids",
|
|
17005
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
17006
|
+
},
|
|
17007
|
+
access: Reflect.get(raw, "access")
|
|
17008
|
+
};
|
|
17009
|
+
}
|
|
17010
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
16460
17011
|
object({
|
|
16461
17012
|
type: literal("category"),
|
|
16462
17013
|
target: CapScopeSchema,
|
|
@@ -16472,18 +17023,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
16472
17023
|
target: string(),
|
|
16473
17024
|
access: array(MethodAccessSchema).min(1)
|
|
16474
17025
|
}),
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
/**
|
|
16478
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
16479
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
16480
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
16481
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
16482
|
-
*/
|
|
16483
|
-
targets: array(string()).min(1),
|
|
16484
|
-
access: array(MethodAccessSchema).min(1)
|
|
16485
|
-
})
|
|
16486
|
-
]);
|
|
17026
|
+
DeviceTokenScopeSchema
|
|
17027
|
+
]));
|
|
16487
17028
|
object({
|
|
16488
17029
|
id: string(),
|
|
16489
17030
|
username: string(),
|
|
@@ -16800,7 +17341,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16800
17341
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16801
17342
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16802
17343
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16803
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
17344
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16804
17345
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16805
17346
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16806
17347
|
* (`getObjectEvents` et al.).
|
|
@@ -16936,7 +17477,21 @@ union([literal(1), literal(2)]);
|
|
|
16936
17477
|
var LabelAttributionSchema = object({
|
|
16937
17478
|
stepId: string(),
|
|
16938
17479
|
modelId: string().optional(),
|
|
16939
|
-
decidedAt: number()
|
|
17480
|
+
decidedAt: number(),
|
|
17481
|
+
/**
|
|
17482
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
17483
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
17484
|
+
*
|
|
17485
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
17486
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
17487
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
17488
|
+
* the thing that does not move, so it is what a rule matches on
|
|
17489
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
17490
|
+
*
|
|
17491
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
17492
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
17493
|
+
*/
|
|
17494
|
+
identityId: string().optional()
|
|
16940
17495
|
});
|
|
16941
17496
|
/**
|
|
16942
17497
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -17073,6 +17628,28 @@ var TrackSchema = object({
|
|
|
17073
17628
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
17074
17629
|
*/
|
|
17075
17630
|
hasFace: boolean().optional(),
|
|
17631
|
+
/**
|
|
17632
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
17633
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
17634
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
17635
|
+
*
|
|
17636
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
17637
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
17638
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
17639
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
17640
|
+
* stop. This is the composition note that makes the row true.
|
|
17641
|
+
*
|
|
17642
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
17643
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
17644
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
17645
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
17646
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
17647
|
+
*
|
|
17648
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
17649
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
17650
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
17651
|
+
*/
|
|
17652
|
+
hasRider: boolean().optional(),
|
|
17076
17653
|
...TrackFlagFields,
|
|
17077
17654
|
...TrackRetrainFields
|
|
17078
17655
|
});
|
|
@@ -17422,7 +17999,10 @@ var RecentTracksQueryInput = object({
|
|
|
17422
17999
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
17423
18000
|
cursor: string().optional(),
|
|
17424
18001
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
17425
|
-
projection: TrackProjectionSchema.optional()
|
|
18002
|
+
projection: TrackProjectionSchema.optional(),
|
|
18003
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
18004
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
18005
|
+
includeStationary: boolean().optional()
|
|
17426
18006
|
});
|
|
17427
18007
|
var RecentTracksPageSchema = object({
|
|
17428
18008
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -17640,7 +18220,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17640
18220
|
zone: TrackZoneFilterSchema.optional(),
|
|
17641
18221
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
17642
18222
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
17643
|
-
projection: TrackProjectionSchema.optional()
|
|
18223
|
+
projection: TrackProjectionSchema.optional(),
|
|
18224
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
18225
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
18226
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
18227
|
+
includeStationary: boolean().optional()
|
|
17644
18228
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
17645
18229
|
kind: "mutation",
|
|
17646
18230
|
auth: "admin"
|
|
@@ -17804,11 +18388,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17804
18388
|
auth: "admin"
|
|
17805
18389
|
}), method(object({
|
|
17806
18390
|
eventId: string(),
|
|
17807
|
-
kind: MediaFileKindEnum.optional()
|
|
18391
|
+
kind: MediaFileKindEnum.optional(),
|
|
18392
|
+
deviceId: number()
|
|
17808
18393
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
17809
18394
|
trackId: string(),
|
|
17810
|
-
kinds: array(MediaFileKindEnum).optional()
|
|
17811
|
-
|
|
18395
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
18396
|
+
deviceId: number()
|
|
18397
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
18398
|
+
trackId: string(),
|
|
18399
|
+
deviceId: number()
|
|
18400
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
17812
18401
|
kind: "mutation",
|
|
17813
18402
|
auth: "admin"
|
|
17814
18403
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -18508,6 +19097,17 @@ var maxSessionHoldMsField = {
|
|
|
18508
19097
|
default: 12e4,
|
|
18509
19098
|
step: 5e3
|
|
18510
19099
|
};
|
|
19100
|
+
/**
|
|
19101
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
19102
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
19103
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
19104
|
+
*/
|
|
19105
|
+
var audioMotionWindowMsField = {
|
|
19106
|
+
min: 5e3,
|
|
19107
|
+
max: 6e5,
|
|
19108
|
+
default: 9e4,
|
|
19109
|
+
step: 5e3
|
|
19110
|
+
};
|
|
18511
19111
|
var motionFpsField = {
|
|
18512
19112
|
min: 1,
|
|
18513
19113
|
max: 30,
|
|
@@ -18520,10 +19120,26 @@ var detectionFpsField = {
|
|
|
18520
19120
|
default: 10,
|
|
18521
19121
|
step: 1
|
|
18522
19122
|
};
|
|
19123
|
+
/**
|
|
19124
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
19125
|
+
*
|
|
19126
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
19127
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
19128
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
19129
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
19130
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
19131
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
19132
|
+
*
|
|
19133
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
19134
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
19135
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
19136
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
19137
|
+
* that ships with an addon deploy.
|
|
19138
|
+
*/
|
|
18523
19139
|
var occupancyRecheckSecField = {
|
|
18524
19140
|
min: 0,
|
|
18525
19141
|
max: 300,
|
|
18526
|
-
default:
|
|
19142
|
+
default: 300,
|
|
18527
19143
|
step: 5
|
|
18528
19144
|
};
|
|
18529
19145
|
var occupancyRecheckFramesField = {
|
|
@@ -18668,6 +19284,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
18668
19284
|
* resolved `CameraDetectionConfig`.
|
|
18669
19285
|
*/
|
|
18670
19286
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
19287
|
+
/**
|
|
19288
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
19289
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
19290
|
+
*
|
|
19291
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
19292
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
19293
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
19294
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
19295
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
19296
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
19297
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
19298
|
+
*
|
|
19299
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
19300
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
19301
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
19302
|
+
*
|
|
19303
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
19304
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
19305
|
+
* `maxSessionHoldMs`.
|
|
19306
|
+
*/
|
|
19307
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
18671
19308
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
18672
19309
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
18673
19310
|
motionStreamId: string(),
|
|
@@ -18721,15 +19358,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
18721
19358
|
*/
|
|
18722
19359
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
18723
19360
|
/**
|
|
18724
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
18725
|
-
*
|
|
18726
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
18727
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
18728
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
19361
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
19362
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
18729
19363
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
18730
19364
|
* (and only render) when this is enabled.
|
|
18731
|
-
|
|
18732
|
-
|
|
19365
|
+
*
|
|
19366
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
19367
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
19368
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
19369
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
19370
|
+
* object is counted only while the stationary registry holds it, and the
|
|
19371
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
19372
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
19373
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
19374
|
+
*/
|
|
19375
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
18733
19376
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
18734
19377
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
18735
19378
|
/**
|
|
@@ -18757,7 +19400,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
18757
19400
|
*/
|
|
18758
19401
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
18759
19402
|
});
|
|
18760
|
-
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;
|
|
19403
|
+
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;
|
|
18761
19404
|
/**
|
|
18762
19405
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
18763
19406
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -19773,7 +20416,16 @@ targets: array(object({
|
|
|
19773
20416
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
19774
20417
|
* NOT refresh in the background. A surface should say so rather than
|
|
19775
20418
|
* present it as current. */
|
|
19776
|
-
sleeping: boolean()
|
|
20419
|
+
sleeping: boolean(),
|
|
20420
|
+
/** Current device state rendered over the cached frame. State images
|
|
20421
|
+
* remain authoritative even when their photographic background is
|
|
20422
|
+
* old; null means the link must carry a current camera frame. */
|
|
20423
|
+
stateReason: _enum([
|
|
20424
|
+
"disabled",
|
|
20425
|
+
"sleeping",
|
|
20426
|
+
"unreachable",
|
|
20427
|
+
"waking"
|
|
20428
|
+
]).nullable()
|
|
19777
20429
|
})));
|
|
19778
20430
|
/**
|
|
19779
20431
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -21427,6 +22079,25 @@ var BatteryStatusSchema = object({
|
|
|
21427
22079
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
21428
22080
|
lastUpdated: number(),
|
|
21429
22081
|
/**
|
|
22082
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
22083
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
22084
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
22085
|
+
*
|
|
22086
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
22087
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
22088
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
22089
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
22090
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
22091
|
+
*
|
|
22092
|
+
* It is deliberately NOT a clock in the
|
|
22093
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
22094
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
22095
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
22096
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
22097
|
+
* SQLite commit per round-trip.
|
|
22098
|
+
*/
|
|
22099
|
+
lastContactAt: number().optional(),
|
|
22100
|
+
/**
|
|
21430
22101
|
* True when the source is a BINARY low-battery indicator (HA
|
|
21431
22102
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
21432
22103
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -23691,54 +24362,139 @@ var TalkAudioCodecSchema = _enum([
|
|
|
23691
24362
|
"g711ulaw",
|
|
23692
24363
|
"g711alaw"
|
|
23693
24364
|
]);
|
|
23694
|
-
|
|
23695
|
-
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
}),
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
}),
|
|
23711
|
-
|
|
23712
|
-
|
|
23713
|
-
}),
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
|
|
23720
|
-
|
|
23721
|
-
|
|
23722
|
-
|
|
23723
|
-
|
|
23724
|
-
|
|
23725
|
-
|
|
23726
|
-
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23731
|
-
|
|
23732
|
-
|
|
23733
|
-
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
|
|
23737
|
-
|
|
23738
|
-
|
|
23739
|
-
|
|
23740
|
-
|
|
23741
|
-
|
|
24365
|
+
var intercomCapability = {
|
|
24366
|
+
name: "intercom",
|
|
24367
|
+
scope: "device",
|
|
24368
|
+
deviceNative: true,
|
|
24369
|
+
mode: "singleton",
|
|
24370
|
+
deviceTypes: [DeviceType.Camera],
|
|
24371
|
+
methods: {
|
|
24372
|
+
/**
|
|
24373
|
+
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
24374
|
+
* offer with a single sendonly audio m-line the client answers
|
|
24375
|
+
* (client → server direction). The server wakes battery cams
|
|
24376
|
+
* transparently before opening the upstream talk channel.
|
|
24377
|
+
*/
|
|
24378
|
+
startSession: method(object({ deviceId: number() }), object({
|
|
24379
|
+
sessionId: string(),
|
|
24380
|
+
sdpOffer: string()
|
|
24381
|
+
}), {
|
|
24382
|
+
kind: "mutation",
|
|
24383
|
+
auth: "admin"
|
|
24384
|
+
}),
|
|
24385
|
+
handleAnswer: method(object({
|
|
24386
|
+
deviceId: number(),
|
|
24387
|
+
sessionId: string(),
|
|
24388
|
+
sdpAnswer: string()
|
|
24389
|
+
}), _void(), {
|
|
24390
|
+
kind: "mutation",
|
|
24391
|
+
auth: "admin"
|
|
24392
|
+
}),
|
|
24393
|
+
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
24394
|
+
stopSession: method(object({
|
|
24395
|
+
deviceId: number(),
|
|
24396
|
+
sessionId: string()
|
|
24397
|
+
}), _void(), {
|
|
24398
|
+
kind: "mutation",
|
|
24399
|
+
auth: "admin"
|
|
24400
|
+
}),
|
|
24401
|
+
/**
|
|
24402
|
+
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
24403
|
+
* non-WebRTC consumers (HomeKit export, Alexa raw audio, test
|
|
24404
|
+
* harnesses) that already have decoded PCM frames and just need a
|
|
24405
|
+
* direct path onto the camera's talk channel. Mutually exclusive
|
|
24406
|
+
* with `startSession` (an active WebRTC session must be stopped
|
|
24407
|
+
* before a raw-PCM session can be opened on the same device, and
|
|
24408
|
+
* vice versa).
|
|
24409
|
+
*/
|
|
24410
|
+
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
24411
|
+
kind: "mutation",
|
|
24412
|
+
auth: "admin"
|
|
24413
|
+
}),
|
|
24414
|
+
/**
|
|
24415
|
+
* Push one chunk of talk-back audio onto the active talk session.
|
|
24416
|
+
* The cap is codec-agnostic: the caller declares (or omits) the
|
|
24417
|
+
* wire format via `codec`; the provider decides between passthrough
|
|
24418
|
+
* (when the wire codec matches the camera's native talk channel),
|
|
24419
|
+
* transcoding via the `audio-codec` cap, or rejecting the call.
|
|
24420
|
+
*
|
|
24421
|
+
* Callers do NOT need to know the camera's wire format or sample
|
|
24422
|
+
* rate — that information lives entirely inside the provider.
|
|
24423
|
+
*
|
|
24424
|
+
* Sequence numbers MUST be monotonic per talk session; older frames
|
|
24425
|
+
* arriving after newer ones are dropped to avoid smearing the
|
|
24426
|
+
* downstream encoder state (G.711 is stateless but IMA ADPCM's
|
|
24427
|
+
* predictor would corrupt with re-ordering).
|
|
24428
|
+
*/
|
|
24429
|
+
pushTalkAudio: method(object({
|
|
24430
|
+
deviceId: number(),
|
|
24431
|
+
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
24432
|
+
* survives tRPC JSON serialization. */
|
|
24433
|
+
audioBase64: string(),
|
|
24434
|
+
/** Wire codec of the payload. Omit to let the provider default
|
|
24435
|
+
* to its native expected format (s16le @ provider-native rate,
|
|
24436
|
+
* mono). See {@link TalkAudioCodecSchema} for the supported set. */
|
|
24437
|
+
codec: TalkAudioCodecSchema.optional(),
|
|
24438
|
+
/** Sample rate (Hz). REQUIRED for `s16le`; advisory for
|
|
24439
|
+
* `opus` (encoder clock); ignored for `g711*` (implied 8000). */
|
|
24440
|
+
sampleRate: number().int().positive().optional(),
|
|
24441
|
+
/** Channel count. Default 1. */
|
|
24442
|
+
channels: number().int().positive().optional(),
|
|
24443
|
+
/** Sequence number for ordering / dropping out-of-order frames. */
|
|
24444
|
+
sequenceNumber: number().int()
|
|
24445
|
+
}), object({ accepted: boolean() }), {
|
|
24446
|
+
kind: "mutation",
|
|
24447
|
+
auth: "admin"
|
|
24448
|
+
}),
|
|
24449
|
+
/** Close the raw-PCM talk session. Idempotent. */
|
|
24450
|
+
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
24451
|
+
kind: "mutation",
|
|
24452
|
+
auth: "admin"
|
|
24453
|
+
})
|
|
24454
|
+
},
|
|
24455
|
+
events: { onStatusChanged: { data: object({
|
|
24456
|
+
deviceId: number(),
|
|
24457
|
+
status: IntercomStatusSchema
|
|
24458
|
+
}) } },
|
|
24459
|
+
status: {
|
|
24460
|
+
schema: IntercomStatusSchema,
|
|
24461
|
+
kind: "command-driven"
|
|
24462
|
+
},
|
|
24463
|
+
/**
|
|
24464
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
24465
|
+
*
|
|
24466
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
24467
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
24468
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
24469
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
24470
|
+
* have been published and never received a value, which is the defect the
|
|
24471
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
24472
|
+
* `intercom` was excluded rather than exported.
|
|
24473
|
+
*
|
|
24474
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
24475
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
24476
|
+
* come to disagree. Providers write it through
|
|
24477
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
24478
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
24479
|
+
* the first session rather than after it.
|
|
24480
|
+
*
|
|
24481
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
24482
|
+
* session handle, so a session torn down by a transport death that never
|
|
24483
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
24484
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
24485
|
+
* `restored` — a restart must never restore "talking".
|
|
24486
|
+
*/
|
|
24487
|
+
runtimeState: IntercomStatusSchema,
|
|
24488
|
+
/**
|
|
24489
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
24490
|
+
* session, which by definition does not survive the process that held it.
|
|
24491
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
24492
|
+
*
|
|
24493
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24494
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24495
|
+
*/
|
|
24496
|
+
durability: "session"
|
|
24497
|
+
};
|
|
23742
24498
|
/**
|
|
23743
24499
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
23744
24500
|
* with a mowing lifecycle plus a dock action.
|
|
@@ -26435,7 +27191,7 @@ method(object({
|
|
|
26435
27191
|
toMs: number()
|
|
26436
27192
|
}), RecordingAvailabilitySchema, {
|
|
26437
27193
|
kind: "query",
|
|
26438
|
-
auth: "
|
|
27194
|
+
auth: "protected"
|
|
26439
27195
|
}), method(object({
|
|
26440
27196
|
deviceId: number(),
|
|
26441
27197
|
fromMs: number(),
|
|
@@ -26443,14 +27199,14 @@ method(object({
|
|
|
26443
27199
|
tzOffsetMinutes: number()
|
|
26444
27200
|
}), RecordingDaysSchema, {
|
|
26445
27201
|
kind: "query",
|
|
26446
|
-
auth: "
|
|
27202
|
+
auth: "protected"
|
|
26447
27203
|
}), method(object({
|
|
26448
27204
|
deviceId: number(),
|
|
26449
27205
|
fromMs: number(),
|
|
26450
27206
|
toMs: number()
|
|
26451
27207
|
}), RecordingManifestSchema, {
|
|
26452
27208
|
kind: "query",
|
|
26453
|
-
auth: "
|
|
27209
|
+
auth: "protected"
|
|
26454
27210
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
26455
27211
|
kind: "query",
|
|
26456
27212
|
auth: "admin"
|
|
@@ -26740,14 +27496,77 @@ method(object({
|
|
|
26740
27496
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
26741
27497
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
26742
27498
|
*
|
|
26743
|
-
*
|
|
26744
|
-
*
|
|
26745
|
-
*
|
|
26746
|
-
*
|
|
26747
|
-
|
|
26748
|
-
|
|
26749
|
-
*
|
|
27499
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
27500
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
27501
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
27502
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
27503
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
27504
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
27505
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
27506
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
27507
|
+
*
|
|
27508
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
27509
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
27510
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
27511
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
27512
|
+
*
|
|
27513
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
27514
|
+
* availability change; consumers never poll.
|
|
27515
|
+
*/
|
|
27516
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
27517
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
27518
|
+
* Open by design so more can be added without a wire break.
|
|
27519
|
+
*
|
|
27520
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
27521
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
27522
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
27523
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
26750
27524
|
var SceneConditionSchema = string();
|
|
27525
|
+
/**
|
|
27526
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
27527
|
+
*
|
|
27528
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
27529
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
27530
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
27531
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
27532
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
27533
|
+
* working without it rather than degrading into a permanent complaint.
|
|
27534
|
+
*
|
|
27535
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
27536
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
27537
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
27538
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
27539
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
27540
|
+
* configuration choice instead of a nightly fault.
|
|
27541
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
27542
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
27543
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
27544
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
27545
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
27546
|
+
*
|
|
27547
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
27548
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
27549
|
+
* there would hide a scene the operator never finished setting up.
|
|
27550
|
+
*/
|
|
27551
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
27552
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
27553
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
27554
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
27555
|
+
* and never counts toward hysteresis in either direction. */
|
|
27556
|
+
var SceneVerdictSchema = _enum([
|
|
27557
|
+
"matched",
|
|
27558
|
+
"diverged",
|
|
27559
|
+
"unknown"
|
|
27560
|
+
]);
|
|
27561
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
27562
|
+
* silence that reads as "nothing has happened". */
|
|
27563
|
+
var SceneUnavailableSchema = _enum([
|
|
27564
|
+
"no-reference-for-condition",
|
|
27565
|
+
"view-shifted",
|
|
27566
|
+
"no-vision-profile",
|
|
27567
|
+
"encoder-model-changed",
|
|
27568
|
+
"no-snapshot"
|
|
27569
|
+
]);
|
|
26751
27570
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
26752
27571
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
26753
27572
|
var SceneReferenceSchema = object({
|
|
@@ -26755,7 +27574,14 @@ var SceneReferenceSchema = object({
|
|
|
26755
27574
|
modelId: string(),
|
|
26756
27575
|
condition: SceneConditionSchema,
|
|
26757
27576
|
capturedAt: number(),
|
|
26758
|
-
thumbnailMediaId: string().optional()
|
|
27577
|
+
thumbnailMediaId: string().optional(),
|
|
27578
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
27579
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
27580
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
27581
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
27582
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
27583
|
+
* transition, not per poll. */
|
|
27584
|
+
anchorEmbedding: array(number()).optional()
|
|
26759
27585
|
});
|
|
26760
27586
|
var SceneMonitorStateSchema = object({
|
|
26761
27587
|
id: string(),
|
|
@@ -26777,6 +27603,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
26777
27603
|
profileId: string().optional(),
|
|
26778
27604
|
hysteresisCount: number().int().positive()
|
|
26779
27605
|
})]);
|
|
27606
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
27607
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
27608
|
+
* out in silence rather than reporting a fault every night. */
|
|
27609
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
27610
|
+
/**
|
|
27611
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
27612
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
27613
|
+
*
|
|
27614
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
27615
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
27616
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
27617
|
+
* stateful claim that costs the operator a trip to reset.
|
|
27618
|
+
*/
|
|
27619
|
+
var SceneConfirmSchema = object({
|
|
27620
|
+
enabled: boolean().default(false),
|
|
27621
|
+
prompt: string().min(1).max(1e3),
|
|
27622
|
+
profileId: string().optional(),
|
|
27623
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
27624
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
27625
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
27626
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
27627
|
+
});
|
|
26780
27628
|
var SceneMonitorSchema = object({
|
|
26781
27629
|
id: string(),
|
|
26782
27630
|
label: string(),
|
|
@@ -26795,7 +27643,56 @@ var SceneMonitorSchema = object({
|
|
|
26795
27643
|
lastConfidence: number().nullable(),
|
|
26796
27644
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26797
27645
|
availability: _enum(["ok", "unavailable"]),
|
|
26798
|
-
unavailableReason: string().nullable()
|
|
27646
|
+
unavailableReason: string().nullable(),
|
|
27647
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
27648
|
+
baselineStateId: string().nullable(),
|
|
27649
|
+
/** Which boolean drives notification rules and any export. */
|
|
27650
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
27651
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
27652
|
+
verdict: SceneVerdictSchema,
|
|
27653
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
27654
|
+
latched: boolean(),
|
|
27655
|
+
/** Last reset (or creation). */
|
|
27656
|
+
armedAt: number(),
|
|
27657
|
+
divergedAt: number().nullable(),
|
|
27658
|
+
restoredAt: number().nullable(),
|
|
27659
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
27660
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
27661
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
27662
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
27663
|
+
/** An observation only advances the pending count when it is at least this
|
|
27664
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
27665
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
27666
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
27667
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
27668
|
+
confirm: SceneConfirmSchema.optional(),
|
|
27669
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
27670
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
27671
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
27672
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
27673
|
+
* automation can react to the bin coming back without the operator's own
|
|
27674
|
+
* alarm silently clearing itself. */
|
|
27675
|
+
autoRestore: boolean().default(false),
|
|
27676
|
+
/** What to do when the current light has no reference of its own. See
|
|
27677
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
27678
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
27679
|
+
/**
|
|
27680
|
+
* The light whose checks are currently being SAT OUT under
|
|
27681
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
27682
|
+
*
|
|
27683
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
27684
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
27685
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
27686
|
+
* line, because the alternative is a scene that silently stops answering
|
|
27687
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
27688
|
+
* read as a broken one.
|
|
27689
|
+
*/
|
|
27690
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
27691
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
27692
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
27693
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
27694
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
27695
|
+
coveredConditions: array(SceneConditionSchema)
|
|
26799
27696
|
});
|
|
26800
27697
|
var SceneMonitorStatusSchema = object({
|
|
26801
27698
|
monitors: array(SceneMonitorSchema),
|
|
@@ -26808,12 +27705,6 @@ var sceneMonitorCapability = {
|
|
|
26808
27705
|
kind: "wrapper",
|
|
26809
27706
|
defaultActive: true,
|
|
26810
27707
|
deviceTypes: [DeviceType.Camera],
|
|
26811
|
-
deviceConfig: { ui: {
|
|
26812
|
-
kind: "widget",
|
|
26813
|
-
widgetId: "host/scene-monitor-editor",
|
|
26814
|
-
tab: "scenes",
|
|
26815
|
-
label: "Scenes"
|
|
26816
|
-
} },
|
|
26817
27708
|
methods: {
|
|
26818
27709
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
26819
27710
|
createScene: method(object({
|
|
@@ -26844,7 +27735,15 @@ var sceneMonitorCapability = {
|
|
|
26844
27735
|
"both"
|
|
26845
27736
|
]).optional(),
|
|
26846
27737
|
checkIntervalSec: number().optional(),
|
|
26847
|
-
check: SceneCheckSchema.optional()
|
|
27738
|
+
check: SceneCheckSchema.optional(),
|
|
27739
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
27740
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
27741
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
27742
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
27743
|
+
autoRestore: boolean().optional(),
|
|
27744
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
27745
|
+
/** `null` clears the vision-model adjudicator. */
|
|
27746
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26848
27747
|
})
|
|
26849
27748
|
}), _void(), {
|
|
26850
27749
|
kind: "mutation",
|
|
@@ -26885,6 +27784,26 @@ var sceneMonitorCapability = {
|
|
|
26885
27784
|
}), _void(), {
|
|
26886
27785
|
kind: "mutation",
|
|
26887
27786
|
auth: "admin"
|
|
27787
|
+
}),
|
|
27788
|
+
/**
|
|
27789
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
27790
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
27791
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
27792
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
27793
|
+
* instead of failing silently weeks later.
|
|
27794
|
+
*
|
|
27795
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
27796
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
27797
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
27798
|
+
*/
|
|
27799
|
+
resetScene: method(object({
|
|
27800
|
+
deviceId: number(),
|
|
27801
|
+
monitorId: string(),
|
|
27802
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
27803
|
+
recapture: boolean().optional()
|
|
27804
|
+
}), _void(), {
|
|
27805
|
+
kind: "mutation",
|
|
27806
|
+
auth: "admin"
|
|
26888
27807
|
})
|
|
26889
27808
|
},
|
|
26890
27809
|
status: {
|
|
@@ -27121,7 +28040,70 @@ var CamStreamDescriptorSchema = object({
|
|
|
27121
28040
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
27122
28041
|
metadata: record(string(), unknown()).optional()
|
|
27123
28042
|
});
|
|
27124
|
-
|
|
28043
|
+
/**
|
|
28044
|
+
* `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
|
|
28045
|
+
* of the removed `publishCameraStream` push: a camera provider returns the full
|
|
28046
|
+
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
28047
|
+
* broker can reconcile its registry against the authoritative provider state.
|
|
28048
|
+
*/
|
|
28049
|
+
/**
|
|
28050
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
28051
|
+
*
|
|
28052
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
28053
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
28054
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
28055
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
28056
|
+
* every later pull from a cache.
|
|
28057
|
+
*
|
|
28058
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
28059
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
28060
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
28061
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
28062
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
28063
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
28064
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
28065
|
+
*
|
|
28066
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
28067
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
28068
|
+
* the same reason: the last known value is the only value there is while the
|
|
28069
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
28070
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
28071
|
+
*/
|
|
28072
|
+
var StreamCatalogStateSchema = object({
|
|
28073
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
28074
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
28075
|
+
* one the camera itself once produced. */
|
|
28076
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
28077
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
28078
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
28079
|
+
* re-read. */
|
|
28080
|
+
lastFetchedAt: number()
|
|
28081
|
+
});
|
|
28082
|
+
var streamCatalogCapability = {
|
|
28083
|
+
name: "stream-catalog",
|
|
28084
|
+
scope: "device",
|
|
28085
|
+
deviceNative: true,
|
|
28086
|
+
mode: "singleton",
|
|
28087
|
+
deviceTypes: [DeviceType.Camera],
|
|
28088
|
+
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
|
|
28089
|
+
runtimeState: StreamCatalogStateSchema,
|
|
28090
|
+
/**
|
|
28091
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
28092
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
28093
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
28094
|
+
*
|
|
28095
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
28096
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
28097
|
+
* a day old and the camera is awake anyway).
|
|
28098
|
+
*
|
|
28099
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28100
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28101
|
+
*/
|
|
28102
|
+
durability: "restored",
|
|
28103
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
28104
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
28105
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
28106
|
+
};
|
|
27125
28107
|
/** One of the camera's stream profiles. */
|
|
27126
28108
|
var StreamProfileSchema = _enum([
|
|
27127
28109
|
"main",
|
|
@@ -27375,12 +28357,64 @@ var NetworkAddressSchema = object({
|
|
|
27375
28357
|
family: string(),
|
|
27376
28358
|
internal: boolean()
|
|
27377
28359
|
});
|
|
28360
|
+
/**
|
|
28361
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
28362
|
+
* numbers.
|
|
28363
|
+
*
|
|
28364
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
28365
|
+
* nothing overwrites it.
|
|
28366
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
28367
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
28368
|
+
* the sun-times consumers otherwise fall back to.
|
|
28369
|
+
*
|
|
28370
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
28371
|
+
* own input will eventually trust the guess.
|
|
28372
|
+
*/
|
|
28373
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
28374
|
+
/**
|
|
28375
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
28376
|
+
*
|
|
28377
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
28378
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
28379
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
28380
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
28381
|
+
* coordinates or presses detect.
|
|
28382
|
+
*/
|
|
28383
|
+
var SiteLocationStatusSchema = object({
|
|
28384
|
+
location: object({
|
|
28385
|
+
/** WGS84 decimal degrees. */
|
|
28386
|
+
latitude: number().min(-90).max(90),
|
|
28387
|
+
longitude: number().min(-180).max(180),
|
|
28388
|
+
source: SiteLocationSourceSchema,
|
|
28389
|
+
/** Epoch ms the value was last written. */
|
|
28390
|
+
updatedAt: number(),
|
|
28391
|
+
/**
|
|
28392
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
28393
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
28394
|
+
*/
|
|
28395
|
+
label: string().optional()
|
|
28396
|
+
}).nullable(),
|
|
28397
|
+
derivationAttemptedAt: number().nullable(),
|
|
28398
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
28399
|
+
derivationError: string().nullable()
|
|
28400
|
+
});
|
|
28401
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
28402
|
+
var SetSiteLocationInputSchema = object({
|
|
28403
|
+
latitude: number().min(-90).max(90),
|
|
28404
|
+
longitude: number().min(-180).max(180)
|
|
28405
|
+
}).nullable();
|
|
27378
28406
|
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(), {
|
|
27379
28407
|
kind: "mutation",
|
|
27380
28408
|
auth: "admin"
|
|
27381
28409
|
}), method(_void(), _void(), {
|
|
27382
28410
|
kind: "mutation",
|
|
27383
28411
|
auth: "admin"
|
|
28412
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
28413
|
+
kind: "mutation",
|
|
28414
|
+
auth: "admin"
|
|
28415
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
28416
|
+
kind: "mutation",
|
|
28417
|
+
auth: "admin"
|
|
27384
28418
|
});
|
|
27385
28419
|
/**
|
|
27386
28420
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -28700,6 +29734,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28700
29734
|
humiditySensor: humiditySensorCapability,
|
|
28701
29735
|
image: imageCapability,
|
|
28702
29736
|
imageSettings: imageSettingsCapability,
|
|
29737
|
+
intercom: intercomCapability,
|
|
28703
29738
|
lawnMowerControl: lawnMowerControlCapability,
|
|
28704
29739
|
lockControl: lockControlCapability,
|
|
28705
29740
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -28718,6 +29753,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28718
29753
|
sceneMonitor: sceneMonitorCapability,
|
|
28719
29754
|
scriptRunner: scriptRunnerCapability,
|
|
28720
29755
|
smoke: smokeCapability,
|
|
29756
|
+
streamCatalog: streamCatalogCapability,
|
|
28721
29757
|
streamParams: streamParamsCapability,
|
|
28722
29758
|
switch: switchCapability,
|
|
28723
29759
|
tamper: tamperCapability,
|
|
@@ -29371,6 +30407,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29371
30407
|
labels: ["probe not implemented"]
|
|
29372
30408
|
};
|
|
29373
30409
|
}
|
|
30410
|
+
/**
|
|
30411
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
30412
|
+
*
|
|
30413
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
30414
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
30415
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
30416
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
30417
|
+
*/
|
|
30418
|
+
restoreConcurrency = 4;
|
|
29374
30419
|
async restoreDevices(savedDevices) {
|
|
29375
30420
|
await this.onRestoreDevices(savedDevices);
|
|
29376
30421
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -29402,15 +30447,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29402
30447
|
*/
|
|
29403
30448
|
async onRestoreDevices(savedDevices) {
|
|
29404
30449
|
const restored = /* @__PURE__ */ new Set();
|
|
29405
|
-
|
|
29406
|
-
|
|
30450
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
30451
|
+
const restoreOne = async (saved) => {
|
|
29407
30452
|
const Class = this.deviceClasses[saved.type];
|
|
29408
30453
|
if (!Class) {
|
|
29409
30454
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
29410
30455
|
tags: { stableId: saved.stableId },
|
|
29411
30456
|
meta: { type: saved.type }
|
|
29412
30457
|
});
|
|
29413
|
-
|
|
30458
|
+
return;
|
|
29414
30459
|
}
|
|
29415
30460
|
try {
|
|
29416
30461
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -29424,7 +30469,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29424
30469
|
}
|
|
29425
30470
|
});
|
|
29426
30471
|
}
|
|
29427
|
-
}
|
|
30472
|
+
};
|
|
30473
|
+
let nextTopLevel = 0;
|
|
30474
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
30475
|
+
for (;;) {
|
|
30476
|
+
const saved = topLevel[nextTopLevel++];
|
|
30477
|
+
if (saved === void 0) return;
|
|
30478
|
+
await restoreOne(saved);
|
|
30479
|
+
}
|
|
30480
|
+
}));
|
|
29428
30481
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
29429
30482
|
for (const saved of childRows) {
|
|
29430
30483
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -31515,6 +32568,12 @@ Object.freeze({
|
|
|
31515
32568
|
addonId: null,
|
|
31516
32569
|
access: "create"
|
|
31517
32570
|
},
|
|
32571
|
+
"llm.cancel": {
|
|
32572
|
+
capName: "llm",
|
|
32573
|
+
capScope: "system",
|
|
32574
|
+
addonId: null,
|
|
32575
|
+
access: "create"
|
|
32576
|
+
},
|
|
31518
32577
|
"llm.deleteModel": {
|
|
31519
32578
|
capName: "llm",
|
|
31520
32579
|
capScope: "system",
|
|
@@ -31599,6 +32658,12 @@ Object.freeze({
|
|
|
31599
32658
|
addonId: null,
|
|
31600
32659
|
access: "view"
|
|
31601
32660
|
},
|
|
32661
|
+
"llm.resolveModelRef": {
|
|
32662
|
+
capName: "llm",
|
|
32663
|
+
capScope: "system",
|
|
32664
|
+
addonId: null,
|
|
32665
|
+
access: "create"
|
|
32666
|
+
},
|
|
31602
32667
|
"llm.setDefault": {
|
|
31603
32668
|
capName: "llm",
|
|
31604
32669
|
capScope: "system",
|
|
@@ -33765,6 +34830,12 @@ Object.freeze({
|
|
|
33765
34830
|
addonId: null,
|
|
33766
34831
|
access: "create"
|
|
33767
34832
|
},
|
|
34833
|
+
"sceneMonitor.resetScene": {
|
|
34834
|
+
capName: "scene-monitor",
|
|
34835
|
+
capScope: "device",
|
|
34836
|
+
addonId: null,
|
|
34837
|
+
access: "delete"
|
|
34838
|
+
},
|
|
33768
34839
|
"sceneMonitor.updateScene": {
|
|
33769
34840
|
capName: "scene-monitor",
|
|
33770
34841
|
capScope: "device",
|
|
@@ -34443,6 +35514,12 @@ Object.freeze({
|
|
|
34443
35514
|
addonId: null,
|
|
34444
35515
|
access: "create"
|
|
34445
35516
|
},
|
|
35517
|
+
"system.detectSiteLocation": {
|
|
35518
|
+
capName: "system",
|
|
35519
|
+
capScope: "system",
|
|
35520
|
+
addonId: null,
|
|
35521
|
+
access: "create"
|
|
35522
|
+
},
|
|
34446
35523
|
"system.featureFlags": {
|
|
34447
35524
|
capName: "system",
|
|
34448
35525
|
capScope: "system",
|
|
@@ -34461,6 +35538,12 @@ Object.freeze({
|
|
|
34461
35538
|
addonId: null,
|
|
34462
35539
|
access: "view"
|
|
34463
35540
|
},
|
|
35541
|
+
"system.getSiteLocation": {
|
|
35542
|
+
capName: "system",
|
|
35543
|
+
capScope: "system",
|
|
35544
|
+
addonId: null,
|
|
35545
|
+
access: "view"
|
|
35546
|
+
},
|
|
34464
35547
|
"system.health": {
|
|
34465
35548
|
capName: "system",
|
|
34466
35549
|
capScope: "system",
|
|
@@ -34485,6 +35568,12 @@ Object.freeze({
|
|
|
34485
35568
|
addonId: null,
|
|
34486
35569
|
access: "create"
|
|
34487
35570
|
},
|
|
35571
|
+
"system.setSiteLocation": {
|
|
35572
|
+
capName: "system",
|
|
35573
|
+
capScope: "system",
|
|
35574
|
+
addonId: null,
|
|
35575
|
+
access: "create"
|
|
35576
|
+
},
|
|
34488
35577
|
"terminalSession.adoptLegacyMonitor": {
|
|
34489
35578
|
capName: "terminal-session",
|
|
34490
35579
|
capScope: "system",
|
|
@@ -35056,6 +36145,1704 @@ Object.freeze({
|
|
|
35056
36145
|
access: "create"
|
|
35057
36146
|
}
|
|
35058
36147
|
});
|
|
36148
|
+
Object.freeze({
|
|
36149
|
+
"accessories.setChildHidden": [{
|
|
36150
|
+
name: "childDeviceId",
|
|
36151
|
+
form: "single",
|
|
36152
|
+
optional: false
|
|
36153
|
+
}, {
|
|
36154
|
+
name: "deviceId",
|
|
36155
|
+
form: "single",
|
|
36156
|
+
optional: false
|
|
36157
|
+
}],
|
|
36158
|
+
"addonSettings.getDeviceSettings": [{
|
|
36159
|
+
name: "deviceId",
|
|
36160
|
+
form: "single",
|
|
36161
|
+
optional: false
|
|
36162
|
+
}],
|
|
36163
|
+
"addonSettings.updateDeviceSettings": [{
|
|
36164
|
+
name: "deviceId",
|
|
36165
|
+
form: "single",
|
|
36166
|
+
optional: false
|
|
36167
|
+
}],
|
|
36168
|
+
"alarmPanel.arm": [{
|
|
36169
|
+
name: "deviceId",
|
|
36170
|
+
form: "single",
|
|
36171
|
+
optional: false
|
|
36172
|
+
}],
|
|
36173
|
+
"alarmPanel.disarm": [{
|
|
36174
|
+
name: "deviceId",
|
|
36175
|
+
form: "single",
|
|
36176
|
+
optional: false
|
|
36177
|
+
}],
|
|
36178
|
+
"alarmPanel.trigger": [{
|
|
36179
|
+
name: "deviceId",
|
|
36180
|
+
form: "single",
|
|
36181
|
+
optional: false
|
|
36182
|
+
}],
|
|
36183
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
36184
|
+
name: "deviceId",
|
|
36185
|
+
form: "single",
|
|
36186
|
+
optional: false
|
|
36187
|
+
}],
|
|
36188
|
+
"audioAnalyzer.classify": [{
|
|
36189
|
+
name: "deviceId",
|
|
36190
|
+
form: "single",
|
|
36191
|
+
optional: true
|
|
36192
|
+
}],
|
|
36193
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
36194
|
+
name: "deviceId",
|
|
36195
|
+
form: "single",
|
|
36196
|
+
optional: false
|
|
36197
|
+
}],
|
|
36198
|
+
"audioMetrics.getHistory": [{
|
|
36199
|
+
name: "deviceId",
|
|
36200
|
+
form: "single",
|
|
36201
|
+
optional: false
|
|
36202
|
+
}],
|
|
36203
|
+
"automationControl.disable": [{
|
|
36204
|
+
name: "deviceId",
|
|
36205
|
+
form: "single",
|
|
36206
|
+
optional: false
|
|
36207
|
+
}],
|
|
36208
|
+
"automationControl.enable": [{
|
|
36209
|
+
name: "deviceId",
|
|
36210
|
+
form: "single",
|
|
36211
|
+
optional: false
|
|
36212
|
+
}],
|
|
36213
|
+
"automationControl.trigger": [{
|
|
36214
|
+
name: "deviceId",
|
|
36215
|
+
form: "single",
|
|
36216
|
+
optional: false
|
|
36217
|
+
}],
|
|
36218
|
+
"battery.wakeForStream": [{
|
|
36219
|
+
name: "deviceId",
|
|
36220
|
+
form: "single",
|
|
36221
|
+
optional: false
|
|
36222
|
+
}],
|
|
36223
|
+
"brightness.setBrightness": [{
|
|
36224
|
+
name: "deviceId",
|
|
36225
|
+
form: "single",
|
|
36226
|
+
optional: false
|
|
36227
|
+
}],
|
|
36228
|
+
"button.press": [{
|
|
36229
|
+
name: "deviceId",
|
|
36230
|
+
form: "single",
|
|
36231
|
+
optional: false
|
|
36232
|
+
}],
|
|
36233
|
+
"cameraCredentials.getCredentials": [{
|
|
36234
|
+
name: "deviceId",
|
|
36235
|
+
form: "single",
|
|
36236
|
+
optional: false
|
|
36237
|
+
}],
|
|
36238
|
+
"cameraStreams.getBrokerStreams": [{
|
|
36239
|
+
name: "deviceId",
|
|
36240
|
+
form: "single",
|
|
36241
|
+
optional: false
|
|
36242
|
+
}],
|
|
36243
|
+
"cameraStreams.getCameraStreams": [{
|
|
36244
|
+
name: "deviceId",
|
|
36245
|
+
form: "single",
|
|
36246
|
+
optional: false
|
|
36247
|
+
}],
|
|
36248
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
36249
|
+
name: "deviceId",
|
|
36250
|
+
form: "single",
|
|
36251
|
+
optional: false
|
|
36252
|
+
}],
|
|
36253
|
+
"cameraStreams.getRtspEntries": [{
|
|
36254
|
+
name: "deviceId",
|
|
36255
|
+
form: "single",
|
|
36256
|
+
optional: false
|
|
36257
|
+
}],
|
|
36258
|
+
"cameraStreams.pickStream": [{
|
|
36259
|
+
name: "deviceId",
|
|
36260
|
+
form: "single",
|
|
36261
|
+
optional: false
|
|
36262
|
+
}],
|
|
36263
|
+
"climateControl.setFanMode": [{
|
|
36264
|
+
name: "deviceId",
|
|
36265
|
+
form: "single",
|
|
36266
|
+
optional: false
|
|
36267
|
+
}],
|
|
36268
|
+
"climateControl.setMode": [{
|
|
36269
|
+
name: "deviceId",
|
|
36270
|
+
form: "single",
|
|
36271
|
+
optional: false
|
|
36272
|
+
}],
|
|
36273
|
+
"climateControl.setPreset": [{
|
|
36274
|
+
name: "deviceId",
|
|
36275
|
+
form: "single",
|
|
36276
|
+
optional: false
|
|
36277
|
+
}],
|
|
36278
|
+
"climateControl.setSwingHorizontal": [{
|
|
36279
|
+
name: "deviceId",
|
|
36280
|
+
form: "single",
|
|
36281
|
+
optional: false
|
|
36282
|
+
}],
|
|
36283
|
+
"climateControl.setSwingVertical": [{
|
|
36284
|
+
name: "deviceId",
|
|
36285
|
+
form: "single",
|
|
36286
|
+
optional: false
|
|
36287
|
+
}],
|
|
36288
|
+
"climateControl.setTarget": [{
|
|
36289
|
+
name: "deviceId",
|
|
36290
|
+
form: "single",
|
|
36291
|
+
optional: false
|
|
36292
|
+
}],
|
|
36293
|
+
"climateControl.setTargetHumidity": [{
|
|
36294
|
+
name: "deviceId",
|
|
36295
|
+
form: "single",
|
|
36296
|
+
optional: false
|
|
36297
|
+
}],
|
|
36298
|
+
"climateControl.setTargetRange": [{
|
|
36299
|
+
name: "deviceId",
|
|
36300
|
+
form: "single",
|
|
36301
|
+
optional: false
|
|
36302
|
+
}],
|
|
36303
|
+
"color.setColor": [{
|
|
36304
|
+
name: "deviceId",
|
|
36305
|
+
form: "single",
|
|
36306
|
+
optional: false
|
|
36307
|
+
}],
|
|
36308
|
+
"consumables.reset": [{
|
|
36309
|
+
name: "deviceId",
|
|
36310
|
+
form: "single",
|
|
36311
|
+
optional: false
|
|
36312
|
+
}],
|
|
36313
|
+
"control.setValue": [{
|
|
36314
|
+
name: "deviceId",
|
|
36315
|
+
form: "single",
|
|
36316
|
+
optional: false
|
|
36317
|
+
}],
|
|
36318
|
+
"cover.close": [{
|
|
36319
|
+
name: "deviceId",
|
|
36320
|
+
form: "single",
|
|
36321
|
+
optional: false
|
|
36322
|
+
}],
|
|
36323
|
+
"cover.open": [{
|
|
36324
|
+
name: "deviceId",
|
|
36325
|
+
form: "single",
|
|
36326
|
+
optional: false
|
|
36327
|
+
}],
|
|
36328
|
+
"cover.setPosition": [{
|
|
36329
|
+
name: "deviceId",
|
|
36330
|
+
form: "single",
|
|
36331
|
+
optional: false
|
|
36332
|
+
}],
|
|
36333
|
+
"cover.setTiltPosition": [{
|
|
36334
|
+
name: "deviceId",
|
|
36335
|
+
form: "single",
|
|
36336
|
+
optional: false
|
|
36337
|
+
}],
|
|
36338
|
+
"cover.stop": [{
|
|
36339
|
+
name: "deviceId",
|
|
36340
|
+
form: "single",
|
|
36341
|
+
optional: false
|
|
36342
|
+
}],
|
|
36343
|
+
"dayNight.getOptions": [{
|
|
36344
|
+
name: "deviceId",
|
|
36345
|
+
form: "single",
|
|
36346
|
+
optional: false
|
|
36347
|
+
}],
|
|
36348
|
+
"dayNight.setSettings": [{
|
|
36349
|
+
name: "deviceId",
|
|
36350
|
+
form: "single",
|
|
36351
|
+
optional: false
|
|
36352
|
+
}],
|
|
36353
|
+
"decoder.createSession": [{
|
|
36354
|
+
name: "deviceId",
|
|
36355
|
+
form: "single",
|
|
36356
|
+
optional: true
|
|
36357
|
+
}],
|
|
36358
|
+
"deviceAdoption.release": [{
|
|
36359
|
+
name: "camDeviceId",
|
|
36360
|
+
form: "single",
|
|
36361
|
+
optional: false
|
|
36362
|
+
}],
|
|
36363
|
+
"deviceAdoption.resync": [{
|
|
36364
|
+
name: "camDeviceId",
|
|
36365
|
+
form: "single",
|
|
36366
|
+
optional: false
|
|
36367
|
+
}],
|
|
36368
|
+
"deviceDiscovery.adoptDevice": [{
|
|
36369
|
+
name: "deviceId",
|
|
36370
|
+
form: "single",
|
|
36371
|
+
optional: false
|
|
36372
|
+
}],
|
|
36373
|
+
"deviceDiscovery.listDiscovered": [{
|
|
36374
|
+
name: "deviceId",
|
|
36375
|
+
form: "single",
|
|
36376
|
+
optional: false
|
|
36377
|
+
}],
|
|
36378
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
36379
|
+
name: "deviceId",
|
|
36380
|
+
form: "single",
|
|
36381
|
+
optional: false
|
|
36382
|
+
}],
|
|
36383
|
+
"deviceDiscovery.releaseDevice": [{
|
|
36384
|
+
name: "childDeviceId",
|
|
36385
|
+
form: "single",
|
|
36386
|
+
optional: false
|
|
36387
|
+
}, {
|
|
36388
|
+
name: "deviceId",
|
|
36389
|
+
form: "single",
|
|
36390
|
+
optional: false
|
|
36391
|
+
}],
|
|
36392
|
+
"deviceManager.adoptionRelease": [{
|
|
36393
|
+
name: "camDeviceId",
|
|
36394
|
+
form: "single",
|
|
36395
|
+
optional: false
|
|
36396
|
+
}],
|
|
36397
|
+
"deviceManager.adoptionResync": [{
|
|
36398
|
+
name: "camDeviceId",
|
|
36399
|
+
form: "single",
|
|
36400
|
+
optional: false
|
|
36401
|
+
}],
|
|
36402
|
+
"deviceManager.applyInitialMeta": [{
|
|
36403
|
+
name: "deviceId",
|
|
36404
|
+
form: "single",
|
|
36405
|
+
optional: false
|
|
36406
|
+
}, {
|
|
36407
|
+
name: "linkDeviceId",
|
|
36408
|
+
form: "single",
|
|
36409
|
+
optional: true
|
|
36410
|
+
}],
|
|
36411
|
+
"deviceManager.disable": [{
|
|
36412
|
+
name: "deviceId",
|
|
36413
|
+
form: "single",
|
|
36414
|
+
optional: false
|
|
36415
|
+
}],
|
|
36416
|
+
"deviceManager.enable": [{
|
|
36417
|
+
name: "deviceId",
|
|
36418
|
+
form: "single",
|
|
36419
|
+
optional: false
|
|
36420
|
+
}],
|
|
36421
|
+
"deviceManager.getBindings": [{
|
|
36422
|
+
name: "deviceId",
|
|
36423
|
+
form: "single",
|
|
36424
|
+
optional: false
|
|
36425
|
+
}],
|
|
36426
|
+
"deviceManager.getChildren": [{
|
|
36427
|
+
name: "parentDeviceId",
|
|
36428
|
+
form: "single",
|
|
36429
|
+
optional: false
|
|
36430
|
+
}],
|
|
36431
|
+
"deviceManager.getConfigSchema": [{
|
|
36432
|
+
name: "deviceId",
|
|
36433
|
+
form: "single",
|
|
36434
|
+
optional: false
|
|
36435
|
+
}],
|
|
36436
|
+
"deviceManager.getDevice": [{
|
|
36437
|
+
name: "deviceId",
|
|
36438
|
+
form: "single",
|
|
36439
|
+
optional: false
|
|
36440
|
+
}],
|
|
36441
|
+
"deviceManager.getDeviceAggregate": [{
|
|
36442
|
+
name: "deviceId",
|
|
36443
|
+
form: "single",
|
|
36444
|
+
optional: false
|
|
36445
|
+
}],
|
|
36446
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
36447
|
+
name: "deviceId",
|
|
36448
|
+
form: "single",
|
|
36449
|
+
optional: false
|
|
36450
|
+
}],
|
|
36451
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
36452
|
+
name: "deviceId",
|
|
36453
|
+
form: "single",
|
|
36454
|
+
optional: false
|
|
36455
|
+
}],
|
|
36456
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
36457
|
+
name: "deviceId",
|
|
36458
|
+
form: "single",
|
|
36459
|
+
optional: false
|
|
36460
|
+
}],
|
|
36461
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
36462
|
+
name: "deviceIds",
|
|
36463
|
+
form: "array",
|
|
36464
|
+
optional: false
|
|
36465
|
+
}],
|
|
36466
|
+
"deviceManager.getLinkedDevices": [{
|
|
36467
|
+
name: "deviceId",
|
|
36468
|
+
form: "single",
|
|
36469
|
+
optional: false
|
|
36470
|
+
}],
|
|
36471
|
+
"deviceManager.getSettingsSchema": [{
|
|
36472
|
+
name: "deviceId",
|
|
36473
|
+
form: "single",
|
|
36474
|
+
optional: false
|
|
36475
|
+
}],
|
|
36476
|
+
"deviceManager.getStreamProfileMap": [{
|
|
36477
|
+
name: "deviceId",
|
|
36478
|
+
form: "single",
|
|
36479
|
+
optional: false
|
|
36480
|
+
}],
|
|
36481
|
+
"deviceManager.getStreamSources": [{
|
|
36482
|
+
name: "deviceId",
|
|
36483
|
+
form: "single",
|
|
36484
|
+
optional: false
|
|
36485
|
+
}],
|
|
36486
|
+
"deviceManager.getWireableFields": [{
|
|
36487
|
+
name: "deviceId",
|
|
36488
|
+
form: "single",
|
|
36489
|
+
optional: false
|
|
36490
|
+
}],
|
|
36491
|
+
"deviceManager.loadConfig": [{
|
|
36492
|
+
name: "deviceId",
|
|
36493
|
+
form: "single",
|
|
36494
|
+
optional: false
|
|
36495
|
+
}],
|
|
36496
|
+
"deviceManager.loadMeta": [{
|
|
36497
|
+
name: "deviceId",
|
|
36498
|
+
form: "single",
|
|
36499
|
+
optional: false
|
|
36500
|
+
}],
|
|
36501
|
+
"deviceManager.loadRuntimeState": [{
|
|
36502
|
+
name: "deviceId",
|
|
36503
|
+
form: "single",
|
|
36504
|
+
optional: false
|
|
36505
|
+
}],
|
|
36506
|
+
"deviceManager.persistConfig": [{
|
|
36507
|
+
name: "deviceId",
|
|
36508
|
+
form: "single",
|
|
36509
|
+
optional: false
|
|
36510
|
+
}],
|
|
36511
|
+
"deviceManager.probeStreams": [{
|
|
36512
|
+
name: "deviceId",
|
|
36513
|
+
form: "single",
|
|
36514
|
+
optional: false
|
|
36515
|
+
}],
|
|
36516
|
+
"deviceManager.registerDevice": [{
|
|
36517
|
+
name: "parentDeviceId",
|
|
36518
|
+
form: "single",
|
|
36519
|
+
optional: true
|
|
36520
|
+
}],
|
|
36521
|
+
"deviceManager.remove": [{
|
|
36522
|
+
name: "deviceId",
|
|
36523
|
+
form: "single",
|
|
36524
|
+
optional: false
|
|
36525
|
+
}],
|
|
36526
|
+
"deviceManager.removeDevice": [{
|
|
36527
|
+
name: "deviceId",
|
|
36528
|
+
form: "single",
|
|
36529
|
+
optional: false
|
|
36530
|
+
}],
|
|
36531
|
+
"deviceManager.runDeviceAction": [{
|
|
36532
|
+
name: "deviceId",
|
|
36533
|
+
form: "single",
|
|
36534
|
+
optional: false
|
|
36535
|
+
}],
|
|
36536
|
+
"deviceManager.setChildLayout": [{
|
|
36537
|
+
name: "deviceId",
|
|
36538
|
+
form: "single",
|
|
36539
|
+
optional: false
|
|
36540
|
+
}],
|
|
36541
|
+
"deviceManager.setDisabled": [{
|
|
36542
|
+
name: "deviceId",
|
|
36543
|
+
form: "single",
|
|
36544
|
+
optional: false
|
|
36545
|
+
}],
|
|
36546
|
+
"deviceManager.setDisplay": [{
|
|
36547
|
+
name: "deviceId",
|
|
36548
|
+
form: "single",
|
|
36549
|
+
optional: false
|
|
36550
|
+
}],
|
|
36551
|
+
"deviceManager.setIntegrationId": [{
|
|
36552
|
+
name: "deviceId",
|
|
36553
|
+
form: "single",
|
|
36554
|
+
optional: false
|
|
36555
|
+
}],
|
|
36556
|
+
"deviceManager.setLinkDeviceId": [{
|
|
36557
|
+
name: "deviceId",
|
|
36558
|
+
form: "single",
|
|
36559
|
+
optional: false
|
|
36560
|
+
}, {
|
|
36561
|
+
name: "linkDeviceId",
|
|
36562
|
+
form: "single",
|
|
36563
|
+
optional: true
|
|
36564
|
+
}],
|
|
36565
|
+
"deviceManager.setLocation": [{
|
|
36566
|
+
name: "deviceId",
|
|
36567
|
+
form: "single",
|
|
36568
|
+
optional: false
|
|
36569
|
+
}],
|
|
36570
|
+
"deviceManager.setMetadata": [{
|
|
36571
|
+
name: "deviceId",
|
|
36572
|
+
form: "single",
|
|
36573
|
+
optional: false
|
|
36574
|
+
}],
|
|
36575
|
+
"deviceManager.setName": [{
|
|
36576
|
+
name: "deviceId",
|
|
36577
|
+
form: "single",
|
|
36578
|
+
optional: false
|
|
36579
|
+
}],
|
|
36580
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
36581
|
+
name: "deviceId",
|
|
36582
|
+
form: "single",
|
|
36583
|
+
optional: false
|
|
36584
|
+
}],
|
|
36585
|
+
"deviceManager.setRole": [{
|
|
36586
|
+
name: "deviceId",
|
|
36587
|
+
form: "single",
|
|
36588
|
+
optional: false
|
|
36589
|
+
}],
|
|
36590
|
+
"deviceManager.setStreamProfileMap": [{
|
|
36591
|
+
name: "deviceId",
|
|
36592
|
+
form: "single",
|
|
36593
|
+
optional: false
|
|
36594
|
+
}],
|
|
36595
|
+
"deviceManager.setType": [{
|
|
36596
|
+
name: "deviceId",
|
|
36597
|
+
form: "single",
|
|
36598
|
+
optional: false
|
|
36599
|
+
}],
|
|
36600
|
+
"deviceManager.setWrapperActive": [{
|
|
36601
|
+
name: "deviceId",
|
|
36602
|
+
form: "single",
|
|
36603
|
+
optional: false
|
|
36604
|
+
}],
|
|
36605
|
+
"deviceManager.testField": [{
|
|
36606
|
+
name: "deviceId",
|
|
36607
|
+
form: "single",
|
|
36608
|
+
optional: false
|
|
36609
|
+
}],
|
|
36610
|
+
"deviceManager.updateConfig": [{
|
|
36611
|
+
name: "deviceId",
|
|
36612
|
+
form: "single",
|
|
36613
|
+
optional: false
|
|
36614
|
+
}],
|
|
36615
|
+
"deviceManager.updateDeviceField": [{
|
|
36616
|
+
name: "deviceId",
|
|
36617
|
+
form: "single",
|
|
36618
|
+
optional: false
|
|
36619
|
+
}],
|
|
36620
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
36621
|
+
name: "deviceId",
|
|
36622
|
+
form: "single",
|
|
36623
|
+
optional: false
|
|
36624
|
+
}],
|
|
36625
|
+
"deviceOps.getConfigEntries": [{
|
|
36626
|
+
name: "deviceId",
|
|
36627
|
+
form: "single",
|
|
36628
|
+
optional: false
|
|
36629
|
+
}],
|
|
36630
|
+
"deviceOps.getRawState": [{
|
|
36631
|
+
name: "deviceId",
|
|
36632
|
+
form: "single",
|
|
36633
|
+
optional: false
|
|
36634
|
+
}],
|
|
36635
|
+
"deviceOps.getSettingsSchema": [{
|
|
36636
|
+
name: "deviceId",
|
|
36637
|
+
form: "single",
|
|
36638
|
+
optional: false
|
|
36639
|
+
}],
|
|
36640
|
+
"deviceOps.getStreamSources": [{
|
|
36641
|
+
name: "deviceId",
|
|
36642
|
+
form: "single",
|
|
36643
|
+
optional: false
|
|
36644
|
+
}],
|
|
36645
|
+
"deviceOps.removeDevice": [{
|
|
36646
|
+
name: "deviceId",
|
|
36647
|
+
form: "single",
|
|
36648
|
+
optional: false
|
|
36649
|
+
}],
|
|
36650
|
+
"deviceOps.runAction": [{
|
|
36651
|
+
name: "deviceId",
|
|
36652
|
+
form: "single",
|
|
36653
|
+
optional: false
|
|
36654
|
+
}],
|
|
36655
|
+
"deviceOps.setConfig": [{
|
|
36656
|
+
name: "deviceId",
|
|
36657
|
+
form: "single",
|
|
36658
|
+
optional: false
|
|
36659
|
+
}],
|
|
36660
|
+
"deviceState.getCapSlice": [{
|
|
36661
|
+
name: "deviceId",
|
|
36662
|
+
form: "single",
|
|
36663
|
+
optional: false
|
|
36664
|
+
}],
|
|
36665
|
+
"deviceState.getSnapshot": [{
|
|
36666
|
+
name: "deviceId",
|
|
36667
|
+
form: "single",
|
|
36668
|
+
optional: false
|
|
36669
|
+
}],
|
|
36670
|
+
"deviceState.setCapSlice": [{
|
|
36671
|
+
name: "deviceId",
|
|
36672
|
+
form: "single",
|
|
36673
|
+
optional: false
|
|
36674
|
+
}],
|
|
36675
|
+
"events.getEventClipUrl": [{
|
|
36676
|
+
name: "deviceId",
|
|
36677
|
+
form: "single",
|
|
36678
|
+
optional: false
|
|
36679
|
+
}],
|
|
36680
|
+
"events.getEvents": [{
|
|
36681
|
+
name: "deviceId",
|
|
36682
|
+
form: "single",
|
|
36683
|
+
optional: false
|
|
36684
|
+
}],
|
|
36685
|
+
"events.getEventThumbnail": [{
|
|
36686
|
+
name: "deviceId",
|
|
36687
|
+
form: "single",
|
|
36688
|
+
optional: false
|
|
36689
|
+
}],
|
|
36690
|
+
"faceGallery.getFaceByTrack": [{
|
|
36691
|
+
name: "deviceId",
|
|
36692
|
+
form: "single",
|
|
36693
|
+
optional: false
|
|
36694
|
+
}],
|
|
36695
|
+
"faceGallery.listRecentFaces": [{
|
|
36696
|
+
name: "deviceId",
|
|
36697
|
+
form: "single",
|
|
36698
|
+
optional: true
|
|
36699
|
+
}],
|
|
36700
|
+
"fanControl.setDirection": [{
|
|
36701
|
+
name: "deviceId",
|
|
36702
|
+
form: "single",
|
|
36703
|
+
optional: false
|
|
36704
|
+
}],
|
|
36705
|
+
"fanControl.setOscillating": [{
|
|
36706
|
+
name: "deviceId",
|
|
36707
|
+
form: "single",
|
|
36708
|
+
optional: false
|
|
36709
|
+
}],
|
|
36710
|
+
"fanControl.setPercentage": [{
|
|
36711
|
+
name: "deviceId",
|
|
36712
|
+
form: "single",
|
|
36713
|
+
optional: false
|
|
36714
|
+
}],
|
|
36715
|
+
"fanControl.setPreset": [{
|
|
36716
|
+
name: "deviceId",
|
|
36717
|
+
form: "single",
|
|
36718
|
+
optional: false
|
|
36719
|
+
}],
|
|
36720
|
+
"humidifier.setMode": [{
|
|
36721
|
+
name: "deviceId",
|
|
36722
|
+
form: "single",
|
|
36723
|
+
optional: false
|
|
36724
|
+
}],
|
|
36725
|
+
"humidifier.setOn": [{
|
|
36726
|
+
name: "deviceId",
|
|
36727
|
+
form: "single",
|
|
36728
|
+
optional: false
|
|
36729
|
+
}],
|
|
36730
|
+
"humidifier.setTargetHumidity": [{
|
|
36731
|
+
name: "deviceId",
|
|
36732
|
+
form: "single",
|
|
36733
|
+
optional: false
|
|
36734
|
+
}],
|
|
36735
|
+
"imageSettings.getOptions": [{
|
|
36736
|
+
name: "deviceId",
|
|
36737
|
+
form: "single",
|
|
36738
|
+
optional: false
|
|
36739
|
+
}],
|
|
36740
|
+
"imageSettings.setSettings": [{
|
|
36741
|
+
name: "deviceId",
|
|
36742
|
+
form: "single",
|
|
36743
|
+
optional: false
|
|
36744
|
+
}],
|
|
36745
|
+
"intercom.endTalkSession": [{
|
|
36746
|
+
name: "deviceId",
|
|
36747
|
+
form: "single",
|
|
36748
|
+
optional: false
|
|
36749
|
+
}],
|
|
36750
|
+
"intercom.handleAnswer": [{
|
|
36751
|
+
name: "deviceId",
|
|
36752
|
+
form: "single",
|
|
36753
|
+
optional: false
|
|
36754
|
+
}],
|
|
36755
|
+
"intercom.pushTalkAudio": [{
|
|
36756
|
+
name: "deviceId",
|
|
36757
|
+
form: "single",
|
|
36758
|
+
optional: false
|
|
36759
|
+
}],
|
|
36760
|
+
"intercom.startSession": [{
|
|
36761
|
+
name: "deviceId",
|
|
36762
|
+
form: "single",
|
|
36763
|
+
optional: false
|
|
36764
|
+
}],
|
|
36765
|
+
"intercom.startTalkSession": [{
|
|
36766
|
+
name: "deviceId",
|
|
36767
|
+
form: "single",
|
|
36768
|
+
optional: false
|
|
36769
|
+
}],
|
|
36770
|
+
"intercom.stopSession": [{
|
|
36771
|
+
name: "deviceId",
|
|
36772
|
+
form: "single",
|
|
36773
|
+
optional: false
|
|
36774
|
+
}],
|
|
36775
|
+
"lawnMowerControl.dock": [{
|
|
36776
|
+
name: "deviceId",
|
|
36777
|
+
form: "single",
|
|
36778
|
+
optional: false
|
|
36779
|
+
}],
|
|
36780
|
+
"lawnMowerControl.pause": [{
|
|
36781
|
+
name: "deviceId",
|
|
36782
|
+
form: "single",
|
|
36783
|
+
optional: false
|
|
36784
|
+
}],
|
|
36785
|
+
"lawnMowerControl.startMowing": [{
|
|
36786
|
+
name: "deviceId",
|
|
36787
|
+
form: "single",
|
|
36788
|
+
optional: false
|
|
36789
|
+
}],
|
|
36790
|
+
"lockControl.lock": [{
|
|
36791
|
+
name: "deviceId",
|
|
36792
|
+
form: "single",
|
|
36793
|
+
optional: false
|
|
36794
|
+
}],
|
|
36795
|
+
"lockControl.open": [{
|
|
36796
|
+
name: "deviceId",
|
|
36797
|
+
form: "single",
|
|
36798
|
+
optional: false
|
|
36799
|
+
}],
|
|
36800
|
+
"lockControl.unlock": [{
|
|
36801
|
+
name: "deviceId",
|
|
36802
|
+
form: "single",
|
|
36803
|
+
optional: false
|
|
36804
|
+
}],
|
|
36805
|
+
"mediaPlayer.next": [{
|
|
36806
|
+
name: "deviceId",
|
|
36807
|
+
form: "single",
|
|
36808
|
+
optional: false
|
|
36809
|
+
}],
|
|
36810
|
+
"mediaPlayer.pause": [{
|
|
36811
|
+
name: "deviceId",
|
|
36812
|
+
form: "single",
|
|
36813
|
+
optional: false
|
|
36814
|
+
}],
|
|
36815
|
+
"mediaPlayer.play": [{
|
|
36816
|
+
name: "deviceId",
|
|
36817
|
+
form: "single",
|
|
36818
|
+
optional: false
|
|
36819
|
+
}],
|
|
36820
|
+
"mediaPlayer.playMedia": [{
|
|
36821
|
+
name: "deviceId",
|
|
36822
|
+
form: "single",
|
|
36823
|
+
optional: false
|
|
36824
|
+
}],
|
|
36825
|
+
"mediaPlayer.previous": [{
|
|
36826
|
+
name: "deviceId",
|
|
36827
|
+
form: "single",
|
|
36828
|
+
optional: false
|
|
36829
|
+
}],
|
|
36830
|
+
"mediaPlayer.seek": [{
|
|
36831
|
+
name: "deviceId",
|
|
36832
|
+
form: "single",
|
|
36833
|
+
optional: false
|
|
36834
|
+
}],
|
|
36835
|
+
"mediaPlayer.selectSource": [{
|
|
36836
|
+
name: "deviceId",
|
|
36837
|
+
form: "single",
|
|
36838
|
+
optional: false
|
|
36839
|
+
}],
|
|
36840
|
+
"mediaPlayer.setMute": [{
|
|
36841
|
+
name: "deviceId",
|
|
36842
|
+
form: "single",
|
|
36843
|
+
optional: false
|
|
36844
|
+
}],
|
|
36845
|
+
"mediaPlayer.setRepeat": [{
|
|
36846
|
+
name: "deviceId",
|
|
36847
|
+
form: "single",
|
|
36848
|
+
optional: false
|
|
36849
|
+
}],
|
|
36850
|
+
"mediaPlayer.setShuffle": [{
|
|
36851
|
+
name: "deviceId",
|
|
36852
|
+
form: "single",
|
|
36853
|
+
optional: false
|
|
36854
|
+
}],
|
|
36855
|
+
"mediaPlayer.setVolume": [{
|
|
36856
|
+
name: "deviceId",
|
|
36857
|
+
form: "single",
|
|
36858
|
+
optional: false
|
|
36859
|
+
}],
|
|
36860
|
+
"mediaPlayer.stop": [{
|
|
36861
|
+
name: "deviceId",
|
|
36862
|
+
form: "single",
|
|
36863
|
+
optional: false
|
|
36864
|
+
}],
|
|
36865
|
+
"motion.isDetected": [{
|
|
36866
|
+
name: "deviceId",
|
|
36867
|
+
form: "single",
|
|
36868
|
+
optional: false
|
|
36869
|
+
}],
|
|
36870
|
+
"motionDetection.analyze": [{
|
|
36871
|
+
name: "deviceId",
|
|
36872
|
+
form: "single",
|
|
36873
|
+
optional: false
|
|
36874
|
+
}],
|
|
36875
|
+
"motionDetection.removeCamera": [{
|
|
36876
|
+
name: "deviceId",
|
|
36877
|
+
form: "single",
|
|
36878
|
+
optional: false
|
|
36879
|
+
}],
|
|
36880
|
+
"motionTrigger.setMotionTrigger": [{
|
|
36881
|
+
name: "deviceId",
|
|
36882
|
+
form: "single",
|
|
36883
|
+
optional: false
|
|
36884
|
+
}],
|
|
36885
|
+
"motionZones.getOptions": [{
|
|
36886
|
+
name: "deviceId",
|
|
36887
|
+
form: "single",
|
|
36888
|
+
optional: false
|
|
36889
|
+
}],
|
|
36890
|
+
"motionZones.setZone": [{
|
|
36891
|
+
name: "deviceId",
|
|
36892
|
+
form: "single",
|
|
36893
|
+
optional: false
|
|
36894
|
+
}],
|
|
36895
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36896
|
+
name: "deviceId",
|
|
36897
|
+
form: "single",
|
|
36898
|
+
optional: false
|
|
36899
|
+
}],
|
|
36900
|
+
"networkQuality.getDeviceStats": [{
|
|
36901
|
+
name: "deviceId",
|
|
36902
|
+
form: "single",
|
|
36903
|
+
optional: false
|
|
36904
|
+
}],
|
|
36905
|
+
"networkQuality.reportClientStats": [{
|
|
36906
|
+
name: "deviceId",
|
|
36907
|
+
form: "single",
|
|
36908
|
+
optional: false
|
|
36909
|
+
}],
|
|
36910
|
+
"notificationRules.setDeviceMuted": [{
|
|
36911
|
+
name: "deviceId",
|
|
36912
|
+
form: "single",
|
|
36913
|
+
optional: false
|
|
36914
|
+
}],
|
|
36915
|
+
"notifier.cancel": [{
|
|
36916
|
+
name: "deviceId",
|
|
36917
|
+
form: "single",
|
|
36918
|
+
optional: false
|
|
36919
|
+
}],
|
|
36920
|
+
"notifier.send": [{
|
|
36921
|
+
name: "deviceId",
|
|
36922
|
+
form: "single",
|
|
36923
|
+
optional: false
|
|
36924
|
+
}],
|
|
36925
|
+
"osd.setOverlay": [{
|
|
36926
|
+
name: "deviceId",
|
|
36927
|
+
form: "single",
|
|
36928
|
+
optional: false
|
|
36929
|
+
}],
|
|
36930
|
+
"osdManager.clearSlotBinding": [{
|
|
36931
|
+
name: "deviceId",
|
|
36932
|
+
form: "single",
|
|
36933
|
+
optional: false
|
|
36934
|
+
}],
|
|
36935
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36936
|
+
name: "sourceDeviceId",
|
|
36937
|
+
form: "single",
|
|
36938
|
+
optional: false
|
|
36939
|
+
}, {
|
|
36940
|
+
name: "targetDeviceId",
|
|
36941
|
+
form: "single",
|
|
36942
|
+
optional: false
|
|
36943
|
+
}],
|
|
36944
|
+
"osdManager.getDeviceOsd": [{
|
|
36945
|
+
name: "deviceId",
|
|
36946
|
+
form: "single",
|
|
36947
|
+
optional: false
|
|
36948
|
+
}],
|
|
36949
|
+
"osdManager.getSourceCatalog": [{
|
|
36950
|
+
name: "deviceId",
|
|
36951
|
+
form: "single",
|
|
36952
|
+
optional: false
|
|
36953
|
+
}],
|
|
36954
|
+
"osdManager.previewSlot": [{
|
|
36955
|
+
name: "deviceId",
|
|
36956
|
+
form: "single",
|
|
36957
|
+
optional: false
|
|
36958
|
+
}],
|
|
36959
|
+
"osdManager.renderDevice": [{
|
|
36960
|
+
name: "deviceId",
|
|
36961
|
+
form: "single",
|
|
36962
|
+
optional: false
|
|
36963
|
+
}],
|
|
36964
|
+
"osdManager.setSlotBinding": [{
|
|
36965
|
+
name: "deviceId",
|
|
36966
|
+
form: "single",
|
|
36967
|
+
optional: false
|
|
36968
|
+
}],
|
|
36969
|
+
"petFeeder.callPet": [{
|
|
36970
|
+
name: "deviceId",
|
|
36971
|
+
form: "single",
|
|
36972
|
+
optional: false
|
|
36973
|
+
}],
|
|
36974
|
+
"petFeeder.cancelFeed": [{
|
|
36975
|
+
name: "deviceId",
|
|
36976
|
+
form: "single",
|
|
36977
|
+
optional: false
|
|
36978
|
+
}],
|
|
36979
|
+
"petFeeder.feed": [{
|
|
36980
|
+
name: "deviceId",
|
|
36981
|
+
form: "single",
|
|
36982
|
+
optional: false
|
|
36983
|
+
}],
|
|
36984
|
+
"petFeeder.markFoodReplenished": [{
|
|
36985
|
+
name: "deviceId",
|
|
36986
|
+
form: "single",
|
|
36987
|
+
optional: false
|
|
36988
|
+
}],
|
|
36989
|
+
"petFeeder.playSound": [{
|
|
36990
|
+
name: "deviceId",
|
|
36991
|
+
form: "single",
|
|
36992
|
+
optional: false
|
|
36993
|
+
}],
|
|
36994
|
+
"petFeeder.resetDesiccant": [{
|
|
36995
|
+
name: "deviceId",
|
|
36996
|
+
form: "single",
|
|
36997
|
+
optional: false
|
|
36998
|
+
}],
|
|
36999
|
+
"petFeeder.setChildLock": [{
|
|
37000
|
+
name: "deviceId",
|
|
37001
|
+
form: "single",
|
|
37002
|
+
optional: false
|
|
37003
|
+
}],
|
|
37004
|
+
"petFeeder.setFeedSound": [{
|
|
37005
|
+
name: "deviceId",
|
|
37006
|
+
form: "single",
|
|
37007
|
+
optional: false
|
|
37008
|
+
}],
|
|
37009
|
+
"petFeeder.setIndicatorLight": [{
|
|
37010
|
+
name: "deviceId",
|
|
37011
|
+
form: "single",
|
|
37012
|
+
optional: false
|
|
37013
|
+
}],
|
|
37014
|
+
"petFeeder.setVolume": [{
|
|
37015
|
+
name: "deviceId",
|
|
37016
|
+
form: "single",
|
|
37017
|
+
optional: false
|
|
37018
|
+
}],
|
|
37019
|
+
"pipelineAnalytics.clearTracks": [{
|
|
37020
|
+
name: "deviceId",
|
|
37021
|
+
form: "single",
|
|
37022
|
+
optional: false
|
|
37023
|
+
}],
|
|
37024
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
37025
|
+
name: "deviceId",
|
|
37026
|
+
form: "single",
|
|
37027
|
+
optional: false
|
|
37028
|
+
}],
|
|
37029
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
37030
|
+
name: "deviceId",
|
|
37031
|
+
form: "single",
|
|
37032
|
+
optional: false
|
|
37033
|
+
}],
|
|
37034
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
37035
|
+
name: "deviceId",
|
|
37036
|
+
form: "single",
|
|
37037
|
+
optional: false
|
|
37038
|
+
}],
|
|
37039
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
37040
|
+
name: "deviceId",
|
|
37041
|
+
form: "single",
|
|
37042
|
+
optional: false
|
|
37043
|
+
}],
|
|
37044
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
37045
|
+
name: "deviceId",
|
|
37046
|
+
form: "single",
|
|
37047
|
+
optional: false
|
|
37048
|
+
}],
|
|
37049
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
37050
|
+
name: "deviceId",
|
|
37051
|
+
form: "single",
|
|
37052
|
+
optional: false
|
|
37053
|
+
}],
|
|
37054
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
37055
|
+
name: "deviceId",
|
|
37056
|
+
form: "single",
|
|
37057
|
+
optional: false
|
|
37058
|
+
}],
|
|
37059
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
37060
|
+
name: "deviceId",
|
|
37061
|
+
form: "single",
|
|
37062
|
+
optional: false
|
|
37063
|
+
}],
|
|
37064
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
37065
|
+
name: "deviceId",
|
|
37066
|
+
form: "single",
|
|
37067
|
+
optional: false
|
|
37068
|
+
}],
|
|
37069
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
37070
|
+
name: "deviceId",
|
|
37071
|
+
form: "single",
|
|
37072
|
+
optional: false
|
|
37073
|
+
}],
|
|
37074
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
37075
|
+
name: "deviceId",
|
|
37076
|
+
form: "single",
|
|
37077
|
+
optional: false
|
|
37078
|
+
}],
|
|
37079
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
37080
|
+
name: "deviceIds",
|
|
37081
|
+
form: "array",
|
|
37082
|
+
optional: true
|
|
37083
|
+
}],
|
|
37084
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
37085
|
+
name: "deviceId",
|
|
37086
|
+
form: "single",
|
|
37087
|
+
optional: false
|
|
37088
|
+
}],
|
|
37089
|
+
"pipelineAnalytics.getTrack": [{
|
|
37090
|
+
name: "deviceId",
|
|
37091
|
+
form: "single",
|
|
37092
|
+
optional: false
|
|
37093
|
+
}],
|
|
37094
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
37095
|
+
name: "deviceId",
|
|
37096
|
+
form: "single",
|
|
37097
|
+
optional: false
|
|
37098
|
+
}],
|
|
37099
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
37100
|
+
name: "deviceIds",
|
|
37101
|
+
form: "array",
|
|
37102
|
+
optional: true
|
|
37103
|
+
}],
|
|
37104
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
37105
|
+
name: "deviceIds",
|
|
37106
|
+
form: "array",
|
|
37107
|
+
optional: true
|
|
37108
|
+
}],
|
|
37109
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
37110
|
+
name: "deviceId",
|
|
37111
|
+
form: "single",
|
|
37112
|
+
optional: false
|
|
37113
|
+
}],
|
|
37114
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
37115
|
+
name: "deviceIds",
|
|
37116
|
+
form: "array",
|
|
37117
|
+
optional: false
|
|
37118
|
+
}],
|
|
37119
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
37120
|
+
name: "deviceId",
|
|
37121
|
+
form: "single",
|
|
37122
|
+
optional: true
|
|
37123
|
+
}],
|
|
37124
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
37125
|
+
name: "deviceIds",
|
|
37126
|
+
form: "array",
|
|
37127
|
+
optional: false
|
|
37128
|
+
}],
|
|
37129
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
37130
|
+
name: "deviceIds",
|
|
37131
|
+
form: "array",
|
|
37132
|
+
optional: true
|
|
37133
|
+
}],
|
|
37134
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
37135
|
+
name: "deviceId",
|
|
37136
|
+
form: "single",
|
|
37137
|
+
optional: false
|
|
37138
|
+
}],
|
|
37139
|
+
"pipelineAnalytics.listTracks": [{
|
|
37140
|
+
name: "deviceId",
|
|
37141
|
+
form: "single",
|
|
37142
|
+
optional: false
|
|
37143
|
+
}],
|
|
37144
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
37145
|
+
name: "deviceId",
|
|
37146
|
+
form: "single",
|
|
37147
|
+
optional: false
|
|
37148
|
+
}],
|
|
37149
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
37150
|
+
name: "deviceId",
|
|
37151
|
+
form: "single",
|
|
37152
|
+
optional: false
|
|
37153
|
+
}],
|
|
37154
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
37155
|
+
name: "deviceId",
|
|
37156
|
+
form: "single",
|
|
37157
|
+
optional: false
|
|
37158
|
+
}],
|
|
37159
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
37160
|
+
name: "deviceId",
|
|
37161
|
+
form: "single",
|
|
37162
|
+
optional: true
|
|
37163
|
+
}],
|
|
37164
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
37165
|
+
name: "deviceId",
|
|
37166
|
+
form: "single",
|
|
37167
|
+
optional: false
|
|
37168
|
+
}],
|
|
37169
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
37170
|
+
name: "deviceId",
|
|
37171
|
+
form: "single",
|
|
37172
|
+
optional: false
|
|
37173
|
+
}],
|
|
37174
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
37175
|
+
name: "deviceId",
|
|
37176
|
+
form: "single",
|
|
37177
|
+
optional: true
|
|
37178
|
+
}],
|
|
37179
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
37180
|
+
name: "deviceId",
|
|
37181
|
+
form: "single",
|
|
37182
|
+
optional: false
|
|
37183
|
+
}],
|
|
37184
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
37185
|
+
name: "deviceId",
|
|
37186
|
+
form: "single",
|
|
37187
|
+
optional: false
|
|
37188
|
+
}],
|
|
37189
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
37190
|
+
name: "deviceId",
|
|
37191
|
+
form: "single",
|
|
37192
|
+
optional: false
|
|
37193
|
+
}],
|
|
37194
|
+
"pipelineExecutor.runPipeline": [{
|
|
37195
|
+
name: "deviceId",
|
|
37196
|
+
form: "single",
|
|
37197
|
+
optional: true
|
|
37198
|
+
}],
|
|
37199
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
37200
|
+
name: "deviceId",
|
|
37201
|
+
form: "single",
|
|
37202
|
+
optional: true
|
|
37203
|
+
}],
|
|
37204
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
37205
|
+
name: "deviceId",
|
|
37206
|
+
form: "single",
|
|
37207
|
+
optional: false
|
|
37208
|
+
}],
|
|
37209
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
37210
|
+
name: "deviceId",
|
|
37211
|
+
form: "single",
|
|
37212
|
+
optional: false
|
|
37213
|
+
}],
|
|
37214
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
37215
|
+
name: "deviceId",
|
|
37216
|
+
form: "single",
|
|
37217
|
+
optional: false
|
|
37218
|
+
}],
|
|
37219
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
37220
|
+
name: "deviceId",
|
|
37221
|
+
form: "single",
|
|
37222
|
+
optional: false
|
|
37223
|
+
}],
|
|
37224
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
37225
|
+
name: "deviceId",
|
|
37226
|
+
form: "single",
|
|
37227
|
+
optional: false
|
|
37228
|
+
}],
|
|
37229
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
37230
|
+
name: "deviceId",
|
|
37231
|
+
form: "single",
|
|
37232
|
+
optional: false
|
|
37233
|
+
}],
|
|
37234
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
37235
|
+
name: "deviceIds",
|
|
37236
|
+
form: "array",
|
|
37237
|
+
optional: true
|
|
37238
|
+
}],
|
|
37239
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
37240
|
+
name: "deviceId",
|
|
37241
|
+
form: "single",
|
|
37242
|
+
optional: false
|
|
37243
|
+
}],
|
|
37244
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
37245
|
+
name: "deviceId",
|
|
37246
|
+
form: "single",
|
|
37247
|
+
optional: false
|
|
37248
|
+
}],
|
|
37249
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
37250
|
+
name: "deviceId",
|
|
37251
|
+
form: "single",
|
|
37252
|
+
optional: false
|
|
37253
|
+
}],
|
|
37254
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
37255
|
+
name: "deviceId",
|
|
37256
|
+
form: "single",
|
|
37257
|
+
optional: false
|
|
37258
|
+
}],
|
|
37259
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
37260
|
+
name: "deviceId",
|
|
37261
|
+
form: "single",
|
|
37262
|
+
optional: false
|
|
37263
|
+
}],
|
|
37264
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
37265
|
+
name: "deviceId",
|
|
37266
|
+
form: "single",
|
|
37267
|
+
optional: false
|
|
37268
|
+
}],
|
|
37269
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
37270
|
+
name: "deviceId",
|
|
37271
|
+
form: "single",
|
|
37272
|
+
optional: false
|
|
37273
|
+
}],
|
|
37274
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
37275
|
+
name: "deviceId",
|
|
37276
|
+
form: "single",
|
|
37277
|
+
optional: false
|
|
37278
|
+
}],
|
|
37279
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
37280
|
+
name: "deviceId",
|
|
37281
|
+
form: "single",
|
|
37282
|
+
optional: false
|
|
37283
|
+
}],
|
|
37284
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
37285
|
+
name: "deviceId",
|
|
37286
|
+
form: "single",
|
|
37287
|
+
optional: false
|
|
37288
|
+
}],
|
|
37289
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
37290
|
+
name: "deviceId",
|
|
37291
|
+
form: "single",
|
|
37292
|
+
optional: false
|
|
37293
|
+
}],
|
|
37294
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
37295
|
+
name: "deviceId",
|
|
37296
|
+
form: "single",
|
|
37297
|
+
optional: false
|
|
37298
|
+
}],
|
|
37299
|
+
"pipelineRunner.attachCamera": [{
|
|
37300
|
+
name: "deviceId",
|
|
37301
|
+
form: "single",
|
|
37302
|
+
optional: false
|
|
37303
|
+
}],
|
|
37304
|
+
"pipelineRunner.detachCamera": [{
|
|
37305
|
+
name: "deviceId",
|
|
37306
|
+
form: "single",
|
|
37307
|
+
optional: false
|
|
37308
|
+
}],
|
|
37309
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
37310
|
+
name: "deviceId",
|
|
37311
|
+
form: "single",
|
|
37312
|
+
optional: false
|
|
37313
|
+
}],
|
|
37314
|
+
"pipelineRunner.reportMotion": [{
|
|
37315
|
+
name: "deviceId",
|
|
37316
|
+
form: "single",
|
|
37317
|
+
optional: false
|
|
37318
|
+
}],
|
|
37319
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
37320
|
+
name: "deviceId",
|
|
37321
|
+
form: "single",
|
|
37322
|
+
optional: false
|
|
37323
|
+
}],
|
|
37324
|
+
"pipelineRunner.runStatelessStep": [{
|
|
37325
|
+
name: "sourceDeviceId",
|
|
37326
|
+
form: "single",
|
|
37327
|
+
optional: false
|
|
37328
|
+
}],
|
|
37329
|
+
"plateGallery.getPlateByTrack": [{
|
|
37330
|
+
name: "deviceId",
|
|
37331
|
+
form: "single",
|
|
37332
|
+
optional: false
|
|
37333
|
+
}],
|
|
37334
|
+
"plateGallery.listPlates": [{
|
|
37335
|
+
name: "deviceId",
|
|
37336
|
+
form: "single",
|
|
37337
|
+
optional: true
|
|
37338
|
+
}],
|
|
37339
|
+
"privacyMask.getOptions": [{
|
|
37340
|
+
name: "deviceId",
|
|
37341
|
+
form: "single",
|
|
37342
|
+
optional: false
|
|
37343
|
+
}],
|
|
37344
|
+
"privacyMask.setAudioEnabled": [{
|
|
37345
|
+
name: "deviceId",
|
|
37346
|
+
form: "single",
|
|
37347
|
+
optional: false
|
|
37348
|
+
}],
|
|
37349
|
+
"privacyMask.setMask": [{
|
|
37350
|
+
name: "deviceId",
|
|
37351
|
+
form: "single",
|
|
37352
|
+
optional: false
|
|
37353
|
+
}],
|
|
37354
|
+
"ptz.continuousMove": [{
|
|
37355
|
+
name: "deviceId",
|
|
37356
|
+
form: "single",
|
|
37357
|
+
optional: false
|
|
37358
|
+
}],
|
|
37359
|
+
"ptz.deletePreset": [{
|
|
37360
|
+
name: "deviceId",
|
|
37361
|
+
form: "single",
|
|
37362
|
+
optional: false
|
|
37363
|
+
}],
|
|
37364
|
+
"ptz.getOptions": [{
|
|
37365
|
+
name: "deviceId",
|
|
37366
|
+
form: "single",
|
|
37367
|
+
optional: false
|
|
37368
|
+
}],
|
|
37369
|
+
"ptz.getPosition": [{
|
|
37370
|
+
name: "deviceId",
|
|
37371
|
+
form: "single",
|
|
37372
|
+
optional: false
|
|
37373
|
+
}],
|
|
37374
|
+
"ptz.getPresets": [{
|
|
37375
|
+
name: "deviceId",
|
|
37376
|
+
form: "single",
|
|
37377
|
+
optional: false
|
|
37378
|
+
}],
|
|
37379
|
+
"ptz.goHome": [{
|
|
37380
|
+
name: "deviceId",
|
|
37381
|
+
form: "single",
|
|
37382
|
+
optional: false
|
|
37383
|
+
}],
|
|
37384
|
+
"ptz.goToPreset": [{
|
|
37385
|
+
name: "deviceId",
|
|
37386
|
+
form: "single",
|
|
37387
|
+
optional: false
|
|
37388
|
+
}],
|
|
37389
|
+
"ptz.move": [{
|
|
37390
|
+
name: "deviceId",
|
|
37391
|
+
form: "single",
|
|
37392
|
+
optional: false
|
|
37393
|
+
}],
|
|
37394
|
+
"ptz.savePreset": [{
|
|
37395
|
+
name: "deviceId",
|
|
37396
|
+
form: "single",
|
|
37397
|
+
optional: false
|
|
37398
|
+
}],
|
|
37399
|
+
"ptz.setAutofocus": [{
|
|
37400
|
+
name: "deviceId",
|
|
37401
|
+
form: "single",
|
|
37402
|
+
optional: false
|
|
37403
|
+
}],
|
|
37404
|
+
"ptz.stop": [{
|
|
37405
|
+
name: "deviceId",
|
|
37406
|
+
form: "single",
|
|
37407
|
+
optional: false
|
|
37408
|
+
}],
|
|
37409
|
+
"ptzAutotrack.getSettings": [{
|
|
37410
|
+
name: "deviceId",
|
|
37411
|
+
form: "single",
|
|
37412
|
+
optional: false
|
|
37413
|
+
}],
|
|
37414
|
+
"ptzAutotrack.getStatus": [{
|
|
37415
|
+
name: "deviceId",
|
|
37416
|
+
form: "single",
|
|
37417
|
+
optional: false
|
|
37418
|
+
}],
|
|
37419
|
+
"ptzAutotrack.setEnabled": [{
|
|
37420
|
+
name: "deviceId",
|
|
37421
|
+
form: "single",
|
|
37422
|
+
optional: false
|
|
37423
|
+
}],
|
|
37424
|
+
"ptzAutotrack.setSettings": [{
|
|
37425
|
+
name: "deviceId",
|
|
37426
|
+
form: "single",
|
|
37427
|
+
optional: false
|
|
37428
|
+
}],
|
|
37429
|
+
"reboot.reboot": [{
|
|
37430
|
+
name: "deviceId",
|
|
37431
|
+
form: "single",
|
|
37432
|
+
optional: false
|
|
37433
|
+
}],
|
|
37434
|
+
"recording.deleteFootprint": [{
|
|
37435
|
+
name: "deviceId",
|
|
37436
|
+
form: "single",
|
|
37437
|
+
optional: false
|
|
37438
|
+
}],
|
|
37439
|
+
"recording.getAvailability": [{
|
|
37440
|
+
name: "deviceId",
|
|
37441
|
+
form: "single",
|
|
37442
|
+
optional: false
|
|
37443
|
+
}],
|
|
37444
|
+
"recording.getDaysWithRecordings": [{
|
|
37445
|
+
name: "deviceId",
|
|
37446
|
+
form: "single",
|
|
37447
|
+
optional: false
|
|
37448
|
+
}],
|
|
37449
|
+
"recording.getDeviceConfig": [{
|
|
37450
|
+
name: "deviceId",
|
|
37451
|
+
form: "single",
|
|
37452
|
+
optional: false
|
|
37453
|
+
}],
|
|
37454
|
+
"recording.getPlaybackManifest": [{
|
|
37455
|
+
name: "deviceId",
|
|
37456
|
+
form: "single",
|
|
37457
|
+
optional: false
|
|
37458
|
+
}],
|
|
37459
|
+
"recording.listOpsLog": [{
|
|
37460
|
+
name: "deviceId",
|
|
37461
|
+
form: "single",
|
|
37462
|
+
optional: true
|
|
37463
|
+
}],
|
|
37464
|
+
"recording.locateSegment": [{
|
|
37465
|
+
name: "deviceId",
|
|
37466
|
+
form: "single",
|
|
37467
|
+
optional: false
|
|
37468
|
+
}],
|
|
37469
|
+
"recording.pruneFootage": [{
|
|
37470
|
+
name: "deviceId",
|
|
37471
|
+
form: "single",
|
|
37472
|
+
optional: false
|
|
37473
|
+
}],
|
|
37474
|
+
"recording.readGopBytes": [{
|
|
37475
|
+
name: "deviceId",
|
|
37476
|
+
form: "single",
|
|
37477
|
+
optional: false
|
|
37478
|
+
}],
|
|
37479
|
+
"recording.readSegmentBytes": [{
|
|
37480
|
+
name: "deviceId",
|
|
37481
|
+
form: "single",
|
|
37482
|
+
optional: false
|
|
37483
|
+
}],
|
|
37484
|
+
"recording.relocateFootage": [{
|
|
37485
|
+
name: "deviceId",
|
|
37486
|
+
form: "single",
|
|
37487
|
+
optional: true
|
|
37488
|
+
}],
|
|
37489
|
+
"recording.renderClip": [{
|
|
37490
|
+
name: "deviceId",
|
|
37491
|
+
form: "single",
|
|
37492
|
+
optional: false
|
|
37493
|
+
}],
|
|
37494
|
+
"recording.renderGif": [{
|
|
37495
|
+
name: "deviceId",
|
|
37496
|
+
form: "single",
|
|
37497
|
+
optional: false
|
|
37498
|
+
}],
|
|
37499
|
+
"recording.rescanStorage": [{
|
|
37500
|
+
name: "deviceId",
|
|
37501
|
+
form: "single",
|
|
37502
|
+
optional: false
|
|
37503
|
+
}],
|
|
37504
|
+
"recording.setDeviceConfig": [{
|
|
37505
|
+
name: "deviceId",
|
|
37506
|
+
form: "single",
|
|
37507
|
+
optional: false
|
|
37508
|
+
}],
|
|
37509
|
+
"recording.startStorageMigrationMove": [{
|
|
37510
|
+
name: "deviceId",
|
|
37511
|
+
form: "single",
|
|
37512
|
+
optional: true
|
|
37513
|
+
}],
|
|
37514
|
+
"recordingExport.createExport": [{
|
|
37515
|
+
name: "deviceId",
|
|
37516
|
+
form: "single",
|
|
37517
|
+
optional: false
|
|
37518
|
+
}],
|
|
37519
|
+
"recordingExport.listExports": [{
|
|
37520
|
+
name: "deviceId",
|
|
37521
|
+
form: "single",
|
|
37522
|
+
optional: true
|
|
37523
|
+
}],
|
|
37524
|
+
"sceneMonitor.captureReference": [{
|
|
37525
|
+
name: "deviceId",
|
|
37526
|
+
form: "single",
|
|
37527
|
+
optional: false
|
|
37528
|
+
}],
|
|
37529
|
+
"sceneMonitor.createScene": [{
|
|
37530
|
+
name: "deviceId",
|
|
37531
|
+
form: "single",
|
|
37532
|
+
optional: false
|
|
37533
|
+
}],
|
|
37534
|
+
"sceneMonitor.deleteReference": [{
|
|
37535
|
+
name: "deviceId",
|
|
37536
|
+
form: "single",
|
|
37537
|
+
optional: false
|
|
37538
|
+
}],
|
|
37539
|
+
"sceneMonitor.deleteScene": [{
|
|
37540
|
+
name: "deviceId",
|
|
37541
|
+
form: "single",
|
|
37542
|
+
optional: false
|
|
37543
|
+
}],
|
|
37544
|
+
"sceneMonitor.listScenes": [{
|
|
37545
|
+
name: "deviceId",
|
|
37546
|
+
form: "single",
|
|
37547
|
+
optional: false
|
|
37548
|
+
}],
|
|
37549
|
+
"sceneMonitor.recheckNow": [{
|
|
37550
|
+
name: "deviceId",
|
|
37551
|
+
form: "single",
|
|
37552
|
+
optional: false
|
|
37553
|
+
}],
|
|
37554
|
+
"sceneMonitor.resetScene": [{
|
|
37555
|
+
name: "deviceId",
|
|
37556
|
+
form: "single",
|
|
37557
|
+
optional: false
|
|
37558
|
+
}],
|
|
37559
|
+
"sceneMonitor.updateScene": [{
|
|
37560
|
+
name: "deviceId",
|
|
37561
|
+
form: "single",
|
|
37562
|
+
optional: false
|
|
37563
|
+
}],
|
|
37564
|
+
"scriptRunner.run": [{
|
|
37565
|
+
name: "deviceId",
|
|
37566
|
+
form: "single",
|
|
37567
|
+
optional: false
|
|
37568
|
+
}],
|
|
37569
|
+
"scriptRunner.stop": [{
|
|
37570
|
+
name: "deviceId",
|
|
37571
|
+
form: "single",
|
|
37572
|
+
optional: false
|
|
37573
|
+
}],
|
|
37574
|
+
"snapshot.getSnapshot": [{
|
|
37575
|
+
name: "deviceId",
|
|
37576
|
+
form: "single",
|
|
37577
|
+
optional: false
|
|
37578
|
+
}],
|
|
37579
|
+
"snapshot.getSnapshotLinks": [{
|
|
37580
|
+
name: "targets",
|
|
37581
|
+
form: "object-array",
|
|
37582
|
+
optional: false,
|
|
37583
|
+
itemField: "deviceId"
|
|
37584
|
+
}],
|
|
37585
|
+
"snapshot.getSnapshotOverview": [{
|
|
37586
|
+
name: "deviceIds",
|
|
37587
|
+
form: "array",
|
|
37588
|
+
optional: false
|
|
37589
|
+
}],
|
|
37590
|
+
"snapshot.invalidateCache": [{
|
|
37591
|
+
name: "deviceId",
|
|
37592
|
+
form: "single",
|
|
37593
|
+
optional: false
|
|
37594
|
+
}],
|
|
37595
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
37596
|
+
name: "deviceId",
|
|
37597
|
+
form: "single",
|
|
37598
|
+
optional: false
|
|
37599
|
+
}],
|
|
37600
|
+
"streamBroker.assignProfile": [{
|
|
37601
|
+
name: "deviceId",
|
|
37602
|
+
form: "single",
|
|
37603
|
+
optional: false
|
|
37604
|
+
}],
|
|
37605
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
37606
|
+
name: "deviceId",
|
|
37607
|
+
form: "single",
|
|
37608
|
+
optional: false
|
|
37609
|
+
}],
|
|
37610
|
+
"streamBroker.getStreamWithCodec": [{
|
|
37611
|
+
name: "deviceId",
|
|
37612
|
+
form: "single",
|
|
37613
|
+
optional: false
|
|
37614
|
+
}],
|
|
37615
|
+
"streamBroker.produceEventMedia": [{
|
|
37616
|
+
name: "deviceId",
|
|
37617
|
+
form: "single",
|
|
37618
|
+
optional: false
|
|
37619
|
+
}],
|
|
37620
|
+
"streamBroker.publishCameraStream": [{
|
|
37621
|
+
name: "deviceId",
|
|
37622
|
+
form: "single",
|
|
37623
|
+
optional: false
|
|
37624
|
+
}],
|
|
37625
|
+
"streamBroker.renderPreBufferClip": [{
|
|
37626
|
+
name: "deviceId",
|
|
37627
|
+
form: "single",
|
|
37628
|
+
optional: false
|
|
37629
|
+
}],
|
|
37630
|
+
"streamBroker.restartProfile": [{
|
|
37631
|
+
name: "deviceId",
|
|
37632
|
+
form: "single",
|
|
37633
|
+
optional: false
|
|
37634
|
+
}],
|
|
37635
|
+
"streamBroker.retractCameraStream": [{
|
|
37636
|
+
name: "deviceId",
|
|
37637
|
+
form: "single",
|
|
37638
|
+
optional: false
|
|
37639
|
+
}],
|
|
37640
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
37641
|
+
name: "deviceId",
|
|
37642
|
+
form: "single",
|
|
37643
|
+
optional: false
|
|
37644
|
+
}],
|
|
37645
|
+
"streamBroker.unassignProfile": [{
|
|
37646
|
+
name: "deviceId",
|
|
37647
|
+
form: "single",
|
|
37648
|
+
optional: false
|
|
37649
|
+
}],
|
|
37650
|
+
"streamCatalog.getCatalog": [{
|
|
37651
|
+
name: "deviceId",
|
|
37652
|
+
form: "single",
|
|
37653
|
+
optional: false
|
|
37654
|
+
}],
|
|
37655
|
+
"streamParams.getConfigSchema": [{
|
|
37656
|
+
name: "deviceId",
|
|
37657
|
+
form: "single",
|
|
37658
|
+
optional: false
|
|
37659
|
+
}],
|
|
37660
|
+
"streamParams.getOptions": [{
|
|
37661
|
+
name: "deviceId",
|
|
37662
|
+
form: "single",
|
|
37663
|
+
optional: false
|
|
37664
|
+
}],
|
|
37665
|
+
"streamParams.setProfile": [{
|
|
37666
|
+
name: "deviceId",
|
|
37667
|
+
form: "single",
|
|
37668
|
+
optional: false
|
|
37669
|
+
}],
|
|
37670
|
+
"switch.setState": [{
|
|
37671
|
+
name: "deviceId",
|
|
37672
|
+
form: "single",
|
|
37673
|
+
optional: false
|
|
37674
|
+
}],
|
|
37675
|
+
"vacuumControl.locate": [{
|
|
37676
|
+
name: "deviceId",
|
|
37677
|
+
form: "single",
|
|
37678
|
+
optional: false
|
|
37679
|
+
}],
|
|
37680
|
+
"vacuumControl.pause": [{
|
|
37681
|
+
name: "deviceId",
|
|
37682
|
+
form: "single",
|
|
37683
|
+
optional: false
|
|
37684
|
+
}],
|
|
37685
|
+
"vacuumControl.returnToBase": [{
|
|
37686
|
+
name: "deviceId",
|
|
37687
|
+
form: "single",
|
|
37688
|
+
optional: false
|
|
37689
|
+
}],
|
|
37690
|
+
"vacuumControl.setFanSpeed": [{
|
|
37691
|
+
name: "deviceId",
|
|
37692
|
+
form: "single",
|
|
37693
|
+
optional: false
|
|
37694
|
+
}],
|
|
37695
|
+
"vacuumControl.start": [{
|
|
37696
|
+
name: "deviceId",
|
|
37697
|
+
form: "single",
|
|
37698
|
+
optional: false
|
|
37699
|
+
}],
|
|
37700
|
+
"vacuumControl.stop": [{
|
|
37701
|
+
name: "deviceId",
|
|
37702
|
+
form: "single",
|
|
37703
|
+
optional: false
|
|
37704
|
+
}],
|
|
37705
|
+
"valve.close": [{
|
|
37706
|
+
name: "deviceId",
|
|
37707
|
+
form: "single",
|
|
37708
|
+
optional: false
|
|
37709
|
+
}],
|
|
37710
|
+
"valve.open": [{
|
|
37711
|
+
name: "deviceId",
|
|
37712
|
+
form: "single",
|
|
37713
|
+
optional: false
|
|
37714
|
+
}],
|
|
37715
|
+
"valve.setPosition": [{
|
|
37716
|
+
name: "deviceId",
|
|
37717
|
+
form: "single",
|
|
37718
|
+
optional: false
|
|
37719
|
+
}],
|
|
37720
|
+
"valve.stop": [{
|
|
37721
|
+
name: "deviceId",
|
|
37722
|
+
form: "single",
|
|
37723
|
+
optional: false
|
|
37724
|
+
}],
|
|
37725
|
+
"videoclips.getClipPlayback": [{
|
|
37726
|
+
name: "deviceId",
|
|
37727
|
+
form: "single",
|
|
37728
|
+
optional: false
|
|
37729
|
+
}],
|
|
37730
|
+
"videoclips.listClips": [{
|
|
37731
|
+
name: "deviceId",
|
|
37732
|
+
form: "single",
|
|
37733
|
+
optional: false
|
|
37734
|
+
}],
|
|
37735
|
+
"waterHeater.setAway": [{
|
|
37736
|
+
name: "deviceId",
|
|
37737
|
+
form: "single",
|
|
37738
|
+
optional: false
|
|
37739
|
+
}],
|
|
37740
|
+
"waterHeater.setOperationMode": [{
|
|
37741
|
+
name: "deviceId",
|
|
37742
|
+
form: "single",
|
|
37743
|
+
optional: false
|
|
37744
|
+
}],
|
|
37745
|
+
"waterHeater.setTargetTemp": [{
|
|
37746
|
+
name: "deviceId",
|
|
37747
|
+
form: "single",
|
|
37748
|
+
optional: false
|
|
37749
|
+
}],
|
|
37750
|
+
"webrtcSession.addIceCandidate": [{
|
|
37751
|
+
name: "deviceId",
|
|
37752
|
+
form: "single",
|
|
37753
|
+
optional: false
|
|
37754
|
+
}],
|
|
37755
|
+
"webrtcSession.closeSession": [{
|
|
37756
|
+
name: "deviceId",
|
|
37757
|
+
form: "single",
|
|
37758
|
+
optional: false
|
|
37759
|
+
}],
|
|
37760
|
+
"webrtcSession.createSession": [{
|
|
37761
|
+
name: "deviceId",
|
|
37762
|
+
form: "single",
|
|
37763
|
+
optional: false
|
|
37764
|
+
}],
|
|
37765
|
+
"webrtcSession.getIceCandidates": [{
|
|
37766
|
+
name: "deviceId",
|
|
37767
|
+
form: "single",
|
|
37768
|
+
optional: false
|
|
37769
|
+
}],
|
|
37770
|
+
"webrtcSession.getSessionState": [{
|
|
37771
|
+
name: "deviceId",
|
|
37772
|
+
form: "single",
|
|
37773
|
+
optional: false
|
|
37774
|
+
}],
|
|
37775
|
+
"webrtcSession.handleAnswer": [{
|
|
37776
|
+
name: "deviceId",
|
|
37777
|
+
form: "single",
|
|
37778
|
+
optional: false
|
|
37779
|
+
}],
|
|
37780
|
+
"webrtcSession.handleOffer": [{
|
|
37781
|
+
name: "deviceId",
|
|
37782
|
+
form: "single",
|
|
37783
|
+
optional: false
|
|
37784
|
+
}],
|
|
37785
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
37786
|
+
name: "deviceId",
|
|
37787
|
+
form: "single",
|
|
37788
|
+
optional: false
|
|
37789
|
+
}],
|
|
37790
|
+
"webrtcSession.listStreams": [{
|
|
37791
|
+
name: "deviceId",
|
|
37792
|
+
form: "single",
|
|
37793
|
+
optional: false
|
|
37794
|
+
}],
|
|
37795
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
37796
|
+
name: "deviceId",
|
|
37797
|
+
form: "single",
|
|
37798
|
+
optional: false
|
|
37799
|
+
}],
|
|
37800
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
37801
|
+
name: "deviceId",
|
|
37802
|
+
form: "single",
|
|
37803
|
+
optional: false
|
|
37804
|
+
}],
|
|
37805
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
37806
|
+
name: "deviceId",
|
|
37807
|
+
form: "single",
|
|
37808
|
+
optional: false
|
|
37809
|
+
}],
|
|
37810
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
37811
|
+
name: "deviceId",
|
|
37812
|
+
form: "single",
|
|
37813
|
+
optional: false
|
|
37814
|
+
}],
|
|
37815
|
+
"zoneRules.listRules": [{
|
|
37816
|
+
name: "deviceId",
|
|
37817
|
+
form: "single",
|
|
37818
|
+
optional: false
|
|
37819
|
+
}],
|
|
37820
|
+
"zoneRules.setRules": [{
|
|
37821
|
+
name: "deviceId",
|
|
37822
|
+
form: "single",
|
|
37823
|
+
optional: false
|
|
37824
|
+
}],
|
|
37825
|
+
"zones.addZone": [{
|
|
37826
|
+
name: "deviceId",
|
|
37827
|
+
form: "single",
|
|
37828
|
+
optional: false
|
|
37829
|
+
}],
|
|
37830
|
+
"zones.listZones": [{
|
|
37831
|
+
name: "deviceId",
|
|
37832
|
+
form: "single",
|
|
37833
|
+
optional: false
|
|
37834
|
+
}],
|
|
37835
|
+
"zones.removeZone": [{
|
|
37836
|
+
name: "deviceId",
|
|
37837
|
+
form: "single",
|
|
37838
|
+
optional: false
|
|
37839
|
+
}],
|
|
37840
|
+
"zones.updateZone": [{
|
|
37841
|
+
name: "deviceId",
|
|
37842
|
+
form: "single",
|
|
37843
|
+
optional: false
|
|
37844
|
+
}]
|
|
37845
|
+
});
|
|
35059
37846
|
Object.freeze({
|
|
35060
37847
|
"broker": "broker",
|
|
35061
37848
|
"device-export": "device-export",
|