@camstack/addon-provider-wyze 0.2.16 → 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 +2765 -96
- package/dist/addon.mjs +2765 -96
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { spawn } from "node:child_process";
|
|
|
9
9
|
//#region \0rolldown/runtime.js
|
|
10
10
|
var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../types/dist/event-category-
|
|
12
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
13
13
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
14
14
|
EventCategory["SystemBoot"] = "system.boot";
|
|
15
15
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -216,6 +216,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
216
216
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
217
217
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
218
218
|
/**
|
|
219
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
220
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
221
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
222
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
223
|
+
* from the placement candidate set for as long as it holds.
|
|
224
|
+
*
|
|
225
|
+
* This exists because the state was previously invisible: little-unraid
|
|
226
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
227
|
+
* and nothing in the system said so.
|
|
228
|
+
*
|
|
229
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
230
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
231
|
+
* serves it exactly as before.
|
|
232
|
+
*/
|
|
233
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
234
|
+
/**
|
|
235
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
236
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
237
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
238
|
+
* per camera.
|
|
239
|
+
*
|
|
240
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
241
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
242
|
+
* camera" produce byte-identical silence.
|
|
243
|
+
*/
|
|
244
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
245
|
+
/**
|
|
219
246
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
220
247
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
221
248
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3007,6 +3034,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3007
3034
|
fallback: left.fallback
|
|
3008
3035
|
}, ctx);
|
|
3009
3036
|
}
|
|
3037
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3038
|
+
$ZodPipe.init(inst, def);
|
|
3039
|
+
});
|
|
3010
3040
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3011
3041
|
$ZodType.init(inst, def);
|
|
3012
3042
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5192,6 +5222,10 @@ function pipe(in_, out) {
|
|
|
5192
5222
|
out
|
|
5193
5223
|
});
|
|
5194
5224
|
}
|
|
5225
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5226
|
+
ZodPipe.init(inst, def);
|
|
5227
|
+
$ZodPreprocess.init(inst, def);
|
|
5228
|
+
});
|
|
5195
5229
|
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5196
5230
|
$ZodReadonly.init(inst, def);
|
|
5197
5231
|
ZodType.init(inst, def);
|
|
@@ -5250,6 +5284,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5250
5284
|
};
|
|
5251
5285
|
return inst;
|
|
5252
5286
|
}
|
|
5287
|
+
function preprocess(fn, schema) {
|
|
5288
|
+
return new ZodPreprocess({
|
|
5289
|
+
type: "pipe",
|
|
5290
|
+
in: transform(fn),
|
|
5291
|
+
out: schema
|
|
5292
|
+
});
|
|
5293
|
+
}
|
|
5253
5294
|
//#endregion
|
|
5254
5295
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5255
5296
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -10886,6 +10927,8 @@ var QueryFilterSchema = object({
|
|
|
10886
10927
|
where: record(string(), unknown()).optional(),
|
|
10887
10928
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10888
10929
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10930
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10931
|
+
whereNot: record(string(), unknown()).optional(),
|
|
10889
10932
|
orderBy: object({
|
|
10890
10933
|
field: string(),
|
|
10891
10934
|
direction: _enum(["asc", "desc"])
|
|
@@ -10905,7 +10948,8 @@ var QueryFilterSchema = object({
|
|
|
10905
10948
|
var MutationFilterSchema = object({
|
|
10906
10949
|
where: record(string(), unknown()).optional(),
|
|
10907
10950
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10908
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
10951
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10952
|
+
whereNot: record(string(), unknown()).optional()
|
|
10909
10953
|
});
|
|
10910
10954
|
/** A single stored record: `{ id, data }`. */
|
|
10911
10955
|
var SettingsRecordSchema = object({
|
|
@@ -12441,6 +12485,17 @@ var LlmImageSchema = object({
|
|
|
12441
12485
|
bytes: _instanceof(Uint8Array),
|
|
12442
12486
|
mimeType: string()
|
|
12443
12487
|
});
|
|
12488
|
+
/**
|
|
12489
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12490
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12491
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12492
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12493
|
+
*/
|
|
12494
|
+
var LlmRetryPolicySchema = object({
|
|
12495
|
+
enabled: boolean().default(false),
|
|
12496
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12497
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12498
|
+
});
|
|
12444
12499
|
var LlmGenerateBaseInputSchema = object({
|
|
12445
12500
|
/** Collection routing (the notification-output posture). */
|
|
12446
12501
|
addonId: string().optional(),
|
|
@@ -12455,7 +12510,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12455
12510
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12456
12511
|
/** Per-call override of the profile default. */
|
|
12457
12512
|
maxTokens: number().int().positive().optional(),
|
|
12458
|
-
temperature: number().optional()
|
|
12513
|
+
temperature: number().optional(),
|
|
12514
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12515
|
+
topP: number().min(0).max(1).optional(),
|
|
12516
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12517
|
+
topK: number().int().positive().optional(),
|
|
12518
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12519
|
+
timeoutMs: number().int().positive().optional(),
|
|
12520
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12521
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12522
|
+
/**
|
|
12523
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12524
|
+
*
|
|
12525
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12526
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12527
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12528
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12529
|
+
* not generations, and the real load is unbounded.
|
|
12530
|
+
*
|
|
12531
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12532
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12533
|
+
*/
|
|
12534
|
+
requestId: string().optional()
|
|
12459
12535
|
});
|
|
12460
12536
|
/**
|
|
12461
12537
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12468,6 +12544,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12468
12544
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12469
12545
|
* watchdog — operator decision #3).
|
|
12470
12546
|
*/
|
|
12547
|
+
/**
|
|
12548
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12549
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12550
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12551
|
+
* the preview is exactly what the node downloads.
|
|
12552
|
+
*/
|
|
12553
|
+
var ManagedModelExtraFileSchema = object({
|
|
12554
|
+
url: string(),
|
|
12555
|
+
filename: string(),
|
|
12556
|
+
sizeBytes: number(),
|
|
12557
|
+
sha256: string().optional()
|
|
12558
|
+
});
|
|
12471
12559
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12472
12560
|
object({
|
|
12473
12561
|
kind: literal("catalog"),
|
|
@@ -12476,7 +12564,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12476
12564
|
object({
|
|
12477
12565
|
kind: literal("url"),
|
|
12478
12566
|
url: string(),
|
|
12479
|
-
sha256: string().optional()
|
|
12567
|
+
sha256: string().optional(),
|
|
12568
|
+
/** Picker/status label; the file basename when absent. */
|
|
12569
|
+
label: string().optional(),
|
|
12570
|
+
sizeBytes: number().optional(),
|
|
12571
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12480
12572
|
}),
|
|
12481
12573
|
object({
|
|
12482
12574
|
kind: literal("path"),
|
|
@@ -12494,13 +12586,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12494
12586
|
gpuLayers: number().int().default(0),
|
|
12495
12587
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12496
12588
|
threads: number().int().optional(),
|
|
12497
|
-
/** Concurrent slots. */
|
|
12589
|
+
/** Concurrent slots (`--parallel`). */
|
|
12498
12590
|
parallel: number().int().default(1),
|
|
12591
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12592
|
+
batchSize: number().int().positive().optional(),
|
|
12593
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12594
|
+
ubatchSize: number().int().positive().optional(),
|
|
12595
|
+
/**
|
|
12596
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12597
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12598
|
+
*/
|
|
12599
|
+
flashAttention: boolean().default(false),
|
|
12600
|
+
/**
|
|
12601
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12602
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12603
|
+
* what the RAM budget is counting.
|
|
12604
|
+
*/
|
|
12605
|
+
mlock: boolean().default(false),
|
|
12606
|
+
/**
|
|
12607
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12608
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12609
|
+
* store produces on every first token.
|
|
12610
|
+
*/
|
|
12611
|
+
noMmap: boolean().default(false),
|
|
12612
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12613
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12614
|
+
cacheTypeK: _enum([
|
|
12615
|
+
"f32",
|
|
12616
|
+
"f16",
|
|
12617
|
+
"q8_0",
|
|
12618
|
+
"q5_1",
|
|
12619
|
+
"q5_0",
|
|
12620
|
+
"q4_1",
|
|
12621
|
+
"q4_0"
|
|
12622
|
+
]).optional(),
|
|
12623
|
+
cacheTypeV: _enum([
|
|
12624
|
+
"f32",
|
|
12625
|
+
"f16",
|
|
12626
|
+
"q8_0",
|
|
12627
|
+
"q5_1",
|
|
12628
|
+
"q5_0",
|
|
12629
|
+
"q4_1",
|
|
12630
|
+
"q4_0"
|
|
12631
|
+
]).optional(),
|
|
12632
|
+
/**
|
|
12633
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12634
|
+
* (which most vision chat templates need and some language-only models
|
|
12635
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12636
|
+
*
|
|
12637
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12638
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12639
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12640
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12641
|
+
* twice (D62).
|
|
12642
|
+
*/
|
|
12643
|
+
extraArgs: array(string()).default([]),
|
|
12499
12644
|
/** Else lazy: first generate boots it. */
|
|
12500
12645
|
autoStart: boolean().default(false),
|
|
12501
12646
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12502
12647
|
idleStopMinutes: number().int().default(30)
|
|
12503
12648
|
});
|
|
12649
|
+
/**
|
|
12650
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12651
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12652
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12653
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12654
|
+
*/
|
|
12655
|
+
var LlmDownloadProgressSchema = object({
|
|
12656
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12657
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12658
|
+
file: string(),
|
|
12659
|
+
fileIndex: number().int(),
|
|
12660
|
+
fileCount: number().int(),
|
|
12661
|
+
/** Across the WHOLE install, not the current file. */
|
|
12662
|
+
downloadedBytes: number(),
|
|
12663
|
+
totalBytes: number().optional()
|
|
12664
|
+
});
|
|
12504
12665
|
var LlmRuntimeStatusSchema = object({
|
|
12505
12666
|
/** Status is ALWAYS node-qualified. */
|
|
12506
12667
|
nodeId: string(),
|
|
@@ -12517,6 +12678,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12517
12678
|
modelPath: string().optional(),
|
|
12518
12679
|
modelId: string().optional(),
|
|
12519
12680
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12681
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12682
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12520
12683
|
lastError: string().optional(),
|
|
12521
12684
|
crashesInWindow: number(),
|
|
12522
12685
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12527,7 +12690,14 @@ var LlmNodeModelSchema = object({
|
|
|
12527
12690
|
file: string(),
|
|
12528
12691
|
sizeBytes: number(),
|
|
12529
12692
|
catalogId: string().optional(),
|
|
12530
|
-
installedAt: number().optional()
|
|
12693
|
+
installedAt: number().optional(),
|
|
12694
|
+
/**
|
|
12695
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12696
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12697
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12698
|
+
* it the picker could list such a file and do nothing with it.
|
|
12699
|
+
*/
|
|
12700
|
+
path: string().optional()
|
|
12531
12701
|
});
|
|
12532
12702
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12533
12703
|
nodeId: string(),
|
|
@@ -12583,10 +12753,47 @@ var LlmProfileSchema = object({
|
|
|
12583
12753
|
baseUrl: string().optional(),
|
|
12584
12754
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12585
12755
|
apiKey: string().optional(),
|
|
12756
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12757
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12758
|
+
* question about a picture nobody sent. */
|
|
12586
12759
|
supportsVision: boolean(),
|
|
12587
12760
|
temperature: number().min(0).max(2).optional(),
|
|
12761
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12762
|
+
topP: number().min(0).max(1).optional(),
|
|
12763
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12764
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12765
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12766
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12767
|
+
topK: number().int().positive().optional(),
|
|
12588
12768
|
maxTokens: number().int().positive().optional(),
|
|
12769
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12770
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12771
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12772
|
+
contextLength: number().int().positive().optional(),
|
|
12773
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12774
|
+
* two system prompts fighting is worse than either alone). */
|
|
12775
|
+
systemPrompt: string().optional(),
|
|
12776
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12589
12777
|
timeoutMs: number().int().positive().default(6e4),
|
|
12778
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12779
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12780
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12781
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12782
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12783
|
+
* GPU load is exactly what happens before them. */
|
|
12784
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12785
|
+
/** Output started then stopped. */
|
|
12786
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12787
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12788
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12789
|
+
retry: LlmRetryPolicySchema.default({
|
|
12790
|
+
enabled: false,
|
|
12791
|
+
maxAttempts: 1
|
|
12792
|
+
}),
|
|
12793
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12794
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12795
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12796
|
+
toolsEnabled: boolean().default(false),
|
|
12590
12797
|
extraHeaders: record(string(), string()).optional(),
|
|
12591
12798
|
/** kind === 'managed-local' only (spec §4). */
|
|
12592
12799
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12636,6 +12843,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12636
12843
|
/** Vision models: companion projector file. */
|
|
12637
12844
|
mmprojUrl: string().optional()
|
|
12638
12845
|
});
|
|
12846
|
+
/**
|
|
12847
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12848
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12849
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12850
|
+
* exception.
|
|
12851
|
+
*
|
|
12852
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12853
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12854
|
+
*/
|
|
12855
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12856
|
+
ok: literal(true),
|
|
12857
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12858
|
+
model: ManagedModelRefSchema,
|
|
12859
|
+
label: string(),
|
|
12860
|
+
repo: string(),
|
|
12861
|
+
quantization: string(),
|
|
12862
|
+
purpose: _enum(["text", "vision"]),
|
|
12863
|
+
totalBytes: number(),
|
|
12864
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12865
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12866
|
+
extraFilenames: array(string())
|
|
12867
|
+
}), object({
|
|
12868
|
+
ok: literal(false),
|
|
12869
|
+
code: string(),
|
|
12870
|
+
message: string(),
|
|
12871
|
+
candidates: array(string()).optional(),
|
|
12872
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12873
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12874
|
+
requiredBytes: number().optional()
|
|
12875
|
+
})]);
|
|
12639
12876
|
var LlmRuntimeNodeSchema = object({
|
|
12640
12877
|
nodeId: string(),
|
|
12641
12878
|
reachable: boolean(),
|
|
@@ -12648,7 +12885,10 @@ var ProfileRefInputSchema = object({
|
|
|
12648
12885
|
addonId: string(),
|
|
12649
12886
|
profileId: string()
|
|
12650
12887
|
});
|
|
12651
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12888
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12889
|
+
addonId: string().optional(),
|
|
12890
|
+
requestId: string()
|
|
12891
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12652
12892
|
kind: "mutation",
|
|
12653
12893
|
auth: "admin"
|
|
12654
12894
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12669,6 +12909,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12669
12909
|
consumer: string().optional(),
|
|
12670
12910
|
profileId: string().optional()
|
|
12671
12911
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
12912
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12913
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12914
|
+
ref: string(),
|
|
12915
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12916
|
+
maxBytes: number().positive().optional()
|
|
12917
|
+
}), HfModelResolutionSchema, {
|
|
12918
|
+
kind: "mutation",
|
|
12919
|
+
auth: "admin"
|
|
12920
|
+
}), method(object({
|
|
12672
12921
|
nodeId: string(),
|
|
12673
12922
|
model: ManagedModelRefSchema
|
|
12674
12923
|
}), _void(), {
|
|
@@ -14316,6 +14565,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14316
14565
|
"stream-offline",
|
|
14317
14566
|
"node-online",
|
|
14318
14567
|
"node-offline",
|
|
14568
|
+
"node-inference-unavailable",
|
|
14569
|
+
"detection-blind",
|
|
14319
14570
|
"addon-update-available",
|
|
14320
14571
|
"server-update-available",
|
|
14321
14572
|
"alarm-triggered",
|
|
@@ -14377,7 +14628,16 @@ var NcScheduleSchema = object({
|
|
|
14377
14628
|
});
|
|
14378
14629
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14379
14630
|
var NcPlateMatcherSchema = object({
|
|
14380
|
-
|
|
14631
|
+
/**
|
|
14632
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14633
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14634
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14635
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14636
|
+
*
|
|
14637
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14638
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14639
|
+
*/
|
|
14640
|
+
values: array(string().min(1)),
|
|
14381
14641
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14382
14642
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14383
14643
|
});
|
|
@@ -14411,28 +14671,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14411
14671
|
/**
|
|
14412
14672
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14413
14673
|
*
|
|
14414
|
-
*
|
|
14415
|
-
*
|
|
14416
|
-
*
|
|
14417
|
-
*
|
|
14418
|
-
*
|
|
14419
|
-
*
|
|
14420
|
-
*
|
|
14421
|
-
*
|
|
14422
|
-
*
|
|
14423
|
-
*
|
|
14424
|
-
*
|
|
14425
|
-
*
|
|
14426
|
-
*
|
|
14427
|
-
*
|
|
14428
|
-
*
|
|
14429
|
-
*
|
|
14430
|
-
*
|
|
14431
|
-
*
|
|
14432
|
-
*
|
|
14433
|
-
*
|
|
14434
|
-
*
|
|
14435
|
-
* `
|
|
14674
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14675
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14676
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14677
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14678
|
+
*
|
|
14679
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14680
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14681
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14682
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14683
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14684
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14685
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14686
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14687
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14688
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14689
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14690
|
+
* seconds is 100% of nothing.
|
|
14691
|
+
*
|
|
14692
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14693
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14694
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14695
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14696
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14697
|
+
* the wrong question to ask of a sparse classifier.
|
|
14698
|
+
*
|
|
14699
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14700
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14701
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14702
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14703
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14436
14704
|
*
|
|
14437
14705
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14438
14706
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14440,13 +14708,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14440
14708
|
* an operator who typed `dog` mean the same thing.
|
|
14441
14709
|
*/
|
|
14442
14710
|
var NcAudioConditionSchema = object({
|
|
14443
|
-
/**
|
|
14711
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14444
14712
|
labels: array(string().min(1)).min(1).optional(),
|
|
14445
|
-
/**
|
|
14713
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14446
14714
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14447
|
-
/**
|
|
14715
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14448
14716
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14449
|
-
/**
|
|
14717
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14450
14718
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14451
14719
|
});
|
|
14452
14720
|
/**
|
|
@@ -14584,13 +14852,81 @@ var NcRuleActionsSchema = object({
|
|
|
14584
14852
|
*/
|
|
14585
14853
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14586
14854
|
});
|
|
14855
|
+
/**
|
|
14856
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14857
|
+
*
|
|
14858
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14859
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14860
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14861
|
+
*
|
|
14862
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14863
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14864
|
+
*/
|
|
14865
|
+
var NcDeviceStateConditionSchema = object({
|
|
14866
|
+
deviceId: number().int(),
|
|
14867
|
+
/** Any of these matches. */
|
|
14868
|
+
states: array(string().min(1)).min(1)
|
|
14869
|
+
});
|
|
14870
|
+
/**
|
|
14871
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14872
|
+
*
|
|
14873
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14874
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14875
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14876
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14877
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14878
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14879
|
+
* kind exist for it — see D159.
|
|
14880
|
+
*
|
|
14881
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14882
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14883
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14884
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14885
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14886
|
+
*
|
|
14887
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14888
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14889
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14890
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14891
|
+
* override one rule against the scene's own default.
|
|
14892
|
+
*
|
|
14893
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14894
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14895
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14896
|
+
* evidence, in either direction.
|
|
14897
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14898
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14899
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14900
|
+
* reason the operator asked for a latch.
|
|
14901
|
+
*
|
|
14902
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14903
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14904
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14905
|
+
* said out loud in the log rather than dropped in silence.
|
|
14906
|
+
*/
|
|
14907
|
+
var NcSceneConditionSchema = object({
|
|
14908
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14909
|
+
sceneId: string().min(1),
|
|
14910
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14911
|
+
deviceId: number().int().optional(),
|
|
14912
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14913
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14914
|
+
/**
|
|
14915
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14916
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14917
|
+
*/
|
|
14918
|
+
latched: boolean().optional()
|
|
14919
|
+
});
|
|
14587
14920
|
var NcConditionsSchema = object({
|
|
14588
14921
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14589
|
-
deviceState:
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14922
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14923
|
+
/**
|
|
14924
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14925
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14926
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14927
|
+
* {@link NcSceneCondition} and D159.
|
|
14928
|
+
*/
|
|
14929
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14594
14930
|
/** Device scope — absent = all devices. */
|
|
14595
14931
|
devices: array(number()).optional(),
|
|
14596
14932
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14616,18 +14952,47 @@ var NcConditionsSchema = object({
|
|
|
14616
14952
|
*/
|
|
14617
14953
|
labelEquals: array(string().min(1)).optional(),
|
|
14618
14954
|
/**
|
|
14619
|
-
*
|
|
14620
|
-
*
|
|
14621
|
-
*
|
|
14955
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
14956
|
+
* is about recognised people at all.
|
|
14957
|
+
*
|
|
14958
|
+
* Three states, and the empty one is the point:
|
|
14959
|
+
*
|
|
14960
|
+
* | value | meaning |
|
|
14961
|
+
* | --- | --- |
|
|
14962
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
14963
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
14964
|
+
* | a list | only these identities |
|
|
14965
|
+
*
|
|
14966
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
14967
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
14968
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
14969
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
14970
|
+
* with the list under it is worse than no switch (D62).
|
|
14971
|
+
*
|
|
14972
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
14973
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
14974
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
14975
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
14976
|
+
* `{{label}}` renders.
|
|
14977
|
+
*
|
|
14978
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
14979
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
14980
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
14981
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
14982
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14622
14983
|
*/
|
|
14623
14984
|
identities: array(string().min(1)).optional(),
|
|
14624
|
-
/**
|
|
14985
|
+
/**
|
|
14986
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
14987
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
14988
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
14989
|
+
*/
|
|
14625
14990
|
plates: NcPlateMatcherSchema.optional(),
|
|
14626
14991
|
/**
|
|
14627
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14628
|
-
*
|
|
14629
|
-
* identity
|
|
14630
|
-
*
|
|
14992
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
14993
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
14994
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
14995
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14631
14996
|
*/
|
|
14632
14997
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14633
14998
|
/**
|
|
@@ -15019,7 +15384,80 @@ var NcRuleInputSchema = object({
|
|
|
15019
15384
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15020
15385
|
* did, and absent is the only way to say that without a migration.
|
|
15021
15386
|
*/
|
|
15022
|
-
confirm: NcConfirmSchema.optional()
|
|
15387
|
+
confirm: NcConfirmSchema.optional(),
|
|
15388
|
+
/**
|
|
15389
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15390
|
+
*
|
|
15391
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15392
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15393
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15394
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15395
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15396
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15397
|
+
*
|
|
15398
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15399
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15400
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15401
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15402
|
+
*
|
|
15403
|
+
* | value | what happens |
|
|
15404
|
+
* | --- | --- |
|
|
15405
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15406
|
+
* | 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) |
|
|
15407
|
+
*
|
|
15408
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15409
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15410
|
+
* rule authored before this field meant.
|
|
15411
|
+
*
|
|
15412
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15413
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15414
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15415
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15416
|
+
*/
|
|
15417
|
+
waitForEnhancement: boolean().optional(),
|
|
15418
|
+
/**
|
|
15419
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15420
|
+
*
|
|
15421
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15422
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15423
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15424
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15425
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15426
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15427
|
+
*
|
|
15428
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15429
|
+
*
|
|
15430
|
+
* ### Why an idle cutoff and not a window
|
|
15431
|
+
*
|
|
15432
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15433
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15434
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15435
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15436
|
+
*
|
|
15437
|
+
* ### What it replaces
|
|
15438
|
+
*
|
|
15439
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15440
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15441
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15442
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15443
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15444
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15445
|
+
* throttled by the window its own first member spent.
|
|
15446
|
+
*
|
|
15447
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15448
|
+
*
|
|
15449
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15450
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15451
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15452
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15453
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15454
|
+
* path. Neither combination fires twice for one subject.
|
|
15455
|
+
*
|
|
15456
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15457
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15458
|
+
* field existed.
|
|
15459
|
+
*/
|
|
15460
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15023
15461
|
});
|
|
15024
15462
|
/**
|
|
15025
15463
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15126,6 +15564,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15126
15564
|
"occupancy",
|
|
15127
15565
|
"audio",
|
|
15128
15566
|
"deviceState",
|
|
15567
|
+
"scene",
|
|
15129
15568
|
"systemEvent"
|
|
15130
15569
|
]),
|
|
15131
15570
|
operator: _enum([
|
|
@@ -15531,7 +15970,87 @@ var MethodAccessSchema = _enum([
|
|
|
15531
15970
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15532
15971
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15533
15972
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15534
|
-
|
|
15973
|
+
/**
|
|
15974
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
15975
|
+
*
|
|
15976
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
15977
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
15978
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
15979
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
15980
|
+
*
|
|
15981
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
15982
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
15983
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
15984
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
15985
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
15986
|
+
* is NOT covered until the grant is edited.
|
|
15987
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
15988
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
15989
|
+
* re-resolves on the next request.
|
|
15990
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
15991
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
15992
|
+
* null/unset location matches NO `locations` selector.
|
|
15993
|
+
*/
|
|
15994
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
15995
|
+
object({ kind: literal("all") }),
|
|
15996
|
+
object({
|
|
15997
|
+
kind: literal("ids"),
|
|
15998
|
+
ids: array(number().int()).min(1)
|
|
15999
|
+
}),
|
|
16000
|
+
object({
|
|
16001
|
+
kind: literal("types"),
|
|
16002
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16003
|
+
}),
|
|
16004
|
+
object({
|
|
16005
|
+
kind: literal("locations"),
|
|
16006
|
+
locations: array(string().min(1)).min(1)
|
|
16007
|
+
})
|
|
16008
|
+
]);
|
|
16009
|
+
var DeviceTokenScopeSchema = object({
|
|
16010
|
+
type: literal("device"),
|
|
16011
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16012
|
+
selector: DeviceSelectorSchema,
|
|
16013
|
+
access: array(MethodAccessSchema).min(1),
|
|
16014
|
+
/**
|
|
16015
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16016
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16017
|
+
* Direction is parent → children ONLY.
|
|
16018
|
+
*
|
|
16019
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16020
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16021
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16022
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16023
|
+
* explicitly to override that default per grant.
|
|
16024
|
+
*/
|
|
16025
|
+
includeLinked: boolean().optional()
|
|
16026
|
+
});
|
|
16027
|
+
/**
|
|
16028
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16029
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16030
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16031
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16032
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16033
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16034
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16035
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16036
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16037
|
+
*/
|
|
16038
|
+
function migrateLegacyTokenScope(raw) {
|
|
16039
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16040
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16041
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16042
|
+
const targets = Reflect.get(raw, "targets");
|
|
16043
|
+
if (!Array.isArray(targets)) return raw;
|
|
16044
|
+
return {
|
|
16045
|
+
type: "device",
|
|
16046
|
+
selector: {
|
|
16047
|
+
kind: "ids",
|
|
16048
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16049
|
+
},
|
|
16050
|
+
access: Reflect.get(raw, "access")
|
|
16051
|
+
};
|
|
16052
|
+
}
|
|
16053
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15535
16054
|
object({
|
|
15536
16055
|
type: literal("category"),
|
|
15537
16056
|
target: CapScopeSchema,
|
|
@@ -15547,18 +16066,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15547
16066
|
target: string(),
|
|
15548
16067
|
access: array(MethodAccessSchema).min(1)
|
|
15549
16068
|
}),
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
/**
|
|
15553
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15554
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15555
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15556
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15557
|
-
*/
|
|
15558
|
-
targets: array(string()).min(1),
|
|
15559
|
-
access: array(MethodAccessSchema).min(1)
|
|
15560
|
-
})
|
|
15561
|
-
]);
|
|
16069
|
+
DeviceTokenScopeSchema
|
|
16070
|
+
]));
|
|
15562
16071
|
object({
|
|
15563
16072
|
id: string(),
|
|
15564
16073
|
username: string(),
|
|
@@ -15875,7 +16384,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15875
16384
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15876
16385
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15877
16386
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15878
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16387
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15879
16388
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15880
16389
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15881
16390
|
* (`getObjectEvents` et al.).
|
|
@@ -16011,7 +16520,21 @@ union([literal(1), literal(2)]);
|
|
|
16011
16520
|
var LabelAttributionSchema = object({
|
|
16012
16521
|
stepId: string(),
|
|
16013
16522
|
modelId: string().optional(),
|
|
16014
|
-
decidedAt: number()
|
|
16523
|
+
decidedAt: number(),
|
|
16524
|
+
/**
|
|
16525
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16526
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16527
|
+
*
|
|
16528
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16529
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16530
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16531
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16532
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16533
|
+
*
|
|
16534
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16535
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16536
|
+
*/
|
|
16537
|
+
identityId: string().optional()
|
|
16015
16538
|
});
|
|
16016
16539
|
/**
|
|
16017
16540
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16148,6 +16671,28 @@ var TrackSchema = object({
|
|
|
16148
16671
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16149
16672
|
*/
|
|
16150
16673
|
hasFace: boolean().optional(),
|
|
16674
|
+
/**
|
|
16675
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16676
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16677
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16678
|
+
*
|
|
16679
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16680
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16681
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16682
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16683
|
+
* stop. This is the composition note that makes the row true.
|
|
16684
|
+
*
|
|
16685
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16686
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16687
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16688
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16689
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16690
|
+
*
|
|
16691
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16692
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16693
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16694
|
+
*/
|
|
16695
|
+
hasRider: boolean().optional(),
|
|
16151
16696
|
...TrackFlagFields,
|
|
16152
16697
|
...TrackRetrainFields
|
|
16153
16698
|
});
|
|
@@ -16497,7 +17042,10 @@ var RecentTracksQueryInput = object({
|
|
|
16497
17042
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16498
17043
|
cursor: string().optional(),
|
|
16499
17044
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16500
|
-
projection: TrackProjectionSchema.optional()
|
|
17045
|
+
projection: TrackProjectionSchema.optional(),
|
|
17046
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
17047
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
17048
|
+
includeStationary: boolean().optional()
|
|
16501
17049
|
});
|
|
16502
17050
|
var RecentTracksPageSchema = object({
|
|
16503
17051
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16715,7 +17263,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16715
17263
|
zone: TrackZoneFilterSchema.optional(),
|
|
16716
17264
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16717
17265
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16718
|
-
projection: TrackProjectionSchema.optional()
|
|
17266
|
+
projection: TrackProjectionSchema.optional(),
|
|
17267
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
17268
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
17269
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
17270
|
+
includeStationary: boolean().optional()
|
|
16719
17271
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16720
17272
|
kind: "mutation",
|
|
16721
17273
|
auth: "admin"
|
|
@@ -16879,11 +17431,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16879
17431
|
auth: "admin"
|
|
16880
17432
|
}), method(object({
|
|
16881
17433
|
eventId: string(),
|
|
16882
|
-
kind: MediaFileKindEnum.optional()
|
|
17434
|
+
kind: MediaFileKindEnum.optional(),
|
|
17435
|
+
deviceId: number()
|
|
17436
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17437
|
+
trackId: string(),
|
|
17438
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17439
|
+
deviceId: number()
|
|
16883
17440
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16884
17441
|
trackId: string(),
|
|
16885
|
-
|
|
16886
|
-
}), array(
|
|
17442
|
+
deviceId: number()
|
|
17443
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16887
17444
|
kind: "mutation",
|
|
16888
17445
|
auth: "admin"
|
|
16889
17446
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17583,6 +18140,17 @@ var maxSessionHoldMsField = {
|
|
|
17583
18140
|
default: 12e4,
|
|
17584
18141
|
step: 5e3
|
|
17585
18142
|
};
|
|
18143
|
+
/**
|
|
18144
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18145
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18146
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18147
|
+
*/
|
|
18148
|
+
var audioMotionWindowMsField = {
|
|
18149
|
+
min: 5e3,
|
|
18150
|
+
max: 6e5,
|
|
18151
|
+
default: 9e4,
|
|
18152
|
+
step: 5e3
|
|
18153
|
+
};
|
|
17586
18154
|
var motionFpsField = {
|
|
17587
18155
|
min: 1,
|
|
17588
18156
|
max: 30,
|
|
@@ -17614,7 +18182,7 @@ var detectionFpsField = {
|
|
|
17614
18182
|
var occupancyRecheckSecField = {
|
|
17615
18183
|
min: 0,
|
|
17616
18184
|
max: 300,
|
|
17617
|
-
default:
|
|
18185
|
+
default: 300,
|
|
17618
18186
|
step: 5
|
|
17619
18187
|
};
|
|
17620
18188
|
var occupancyRecheckFramesField = {
|
|
@@ -17759,6 +18327,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17759
18327
|
* resolved `CameraDetectionConfig`.
|
|
17760
18328
|
*/
|
|
17761
18329
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18330
|
+
/**
|
|
18331
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18332
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18333
|
+
*
|
|
18334
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18335
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18336
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18337
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18338
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18339
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18340
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18341
|
+
*
|
|
18342
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18343
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18344
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18345
|
+
*
|
|
18346
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18347
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18348
|
+
* `maxSessionHoldMs`.
|
|
18349
|
+
*/
|
|
18350
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17762
18351
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17763
18352
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17764
18353
|
motionStreamId: string(),
|
|
@@ -17854,7 +18443,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17854
18443
|
*/
|
|
17855
18444
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17856
18445
|
});
|
|
17857
|
-
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;
|
|
18446
|
+
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;
|
|
17858
18447
|
/**
|
|
17859
18448
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17860
18449
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18959,7 +19548,16 @@ targets: array(object({
|
|
|
18959
19548
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18960
19549
|
* NOT refresh in the background. A surface should say so rather than
|
|
18961
19550
|
* present it as current. */
|
|
18962
|
-
sleeping: boolean()
|
|
19551
|
+
sleeping: boolean(),
|
|
19552
|
+
/** Current device state rendered over the cached frame. State images
|
|
19553
|
+
* remain authoritative even when their photographic background is
|
|
19554
|
+
* old; null means the link must carry a current camera frame. */
|
|
19555
|
+
stateReason: _enum([
|
|
19556
|
+
"disabled",
|
|
19557
|
+
"sleeping",
|
|
19558
|
+
"unreachable",
|
|
19559
|
+
"waking"
|
|
19560
|
+
]).nullable()
|
|
18963
19561
|
})))
|
|
18964
19562
|
},
|
|
18965
19563
|
status: {
|
|
@@ -20619,6 +21217,25 @@ var BatteryStatusSchema = object({
|
|
|
20619
21217
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20620
21218
|
lastUpdated: number(),
|
|
20621
21219
|
/**
|
|
21220
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
21221
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
21222
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
21223
|
+
*
|
|
21224
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
21225
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
21226
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
21227
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
21228
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
21229
|
+
*
|
|
21230
|
+
* It is deliberately NOT a clock in the
|
|
21231
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
21232
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
21233
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
21234
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
21235
|
+
* SQLite commit per round-trip.
|
|
21236
|
+
*/
|
|
21237
|
+
lastContactAt: number().optional(),
|
|
21238
|
+
/**
|
|
20622
21239
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20623
21240
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20624
21241
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -22980,7 +23597,41 @@ var intercomCapability = {
|
|
|
22980
23597
|
status: {
|
|
22981
23598
|
schema: IntercomStatusSchema,
|
|
22982
23599
|
kind: "command-driven"
|
|
22983
|
-
}
|
|
23600
|
+
},
|
|
23601
|
+
/**
|
|
23602
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
23603
|
+
*
|
|
23604
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
23605
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
23606
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
23607
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
23608
|
+
* have been published and never received a value, which is the defect the
|
|
23609
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
23610
|
+
* `intercom` was excluded rather than exported.
|
|
23611
|
+
*
|
|
23612
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
23613
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
23614
|
+
* come to disagree. Providers write it through
|
|
23615
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
23616
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
23617
|
+
* the first session rather than after it.
|
|
23618
|
+
*
|
|
23619
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
23620
|
+
* session handle, so a session torn down by a transport death that never
|
|
23621
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
23622
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
23623
|
+
* `restored` — a restart must never restore "talking".
|
|
23624
|
+
*/
|
|
23625
|
+
runtimeState: IntercomStatusSchema,
|
|
23626
|
+
/**
|
|
23627
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
23628
|
+
* session, which by definition does not survive the process that held it.
|
|
23629
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
23630
|
+
*
|
|
23631
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23632
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23633
|
+
*/
|
|
23634
|
+
durability: "session"
|
|
22984
23635
|
};
|
|
22985
23636
|
/**
|
|
22986
23637
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
@@ -25678,7 +26329,7 @@ method(object({
|
|
|
25678
26329
|
toMs: number()
|
|
25679
26330
|
}), RecordingAvailabilitySchema, {
|
|
25680
26331
|
kind: "query",
|
|
25681
|
-
auth: "
|
|
26332
|
+
auth: "protected"
|
|
25682
26333
|
}), method(object({
|
|
25683
26334
|
deviceId: number(),
|
|
25684
26335
|
fromMs: number(),
|
|
@@ -25686,14 +26337,14 @@ method(object({
|
|
|
25686
26337
|
tzOffsetMinutes: number()
|
|
25687
26338
|
}), RecordingDaysSchema, {
|
|
25688
26339
|
kind: "query",
|
|
25689
|
-
auth: "
|
|
26340
|
+
auth: "protected"
|
|
25690
26341
|
}), method(object({
|
|
25691
26342
|
deviceId: number(),
|
|
25692
26343
|
fromMs: number(),
|
|
25693
26344
|
toMs: number()
|
|
25694
26345
|
}), RecordingManifestSchema, {
|
|
25695
26346
|
kind: "query",
|
|
25696
|
-
auth: "
|
|
26347
|
+
auth: "protected"
|
|
25697
26348
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
25698
26349
|
kind: "query",
|
|
25699
26350
|
auth: "admin"
|
|
@@ -25983,14 +26634,77 @@ method(object({
|
|
|
25983
26634
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
25984
26635
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
25985
26636
|
*
|
|
25986
|
-
*
|
|
25987
|
-
*
|
|
25988
|
-
*
|
|
25989
|
-
*
|
|
25990
|
-
|
|
25991
|
-
|
|
25992
|
-
*
|
|
26637
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
26638
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
26639
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
26640
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
26641
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
26642
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
26643
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
26644
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
26645
|
+
*
|
|
26646
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
26647
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
26648
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
26649
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
26650
|
+
*
|
|
26651
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
26652
|
+
* availability change; consumers never poll.
|
|
26653
|
+
*/
|
|
26654
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26655
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26656
|
+
* Open by design so more can be added without a wire break.
|
|
26657
|
+
*
|
|
26658
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26659
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26660
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26661
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
25993
26662
|
var SceneConditionSchema = string();
|
|
26663
|
+
/**
|
|
26664
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
26665
|
+
*
|
|
26666
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
26667
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
26668
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
26669
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
26670
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
26671
|
+
* working without it rather than degrading into a permanent complaint.
|
|
26672
|
+
*
|
|
26673
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
26674
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
26675
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
26676
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
26677
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
26678
|
+
* configuration choice instead of a nightly fault.
|
|
26679
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
26680
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
26681
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
26682
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
26683
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
26684
|
+
*
|
|
26685
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
26686
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
26687
|
+
* there would hide a scene the operator never finished setting up.
|
|
26688
|
+
*/
|
|
26689
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
26690
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26691
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26692
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26693
|
+
* and never counts toward hysteresis in either direction. */
|
|
26694
|
+
var SceneVerdictSchema = _enum([
|
|
26695
|
+
"matched",
|
|
26696
|
+
"diverged",
|
|
26697
|
+
"unknown"
|
|
26698
|
+
]);
|
|
26699
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26700
|
+
* silence that reads as "nothing has happened". */
|
|
26701
|
+
var SceneUnavailableSchema = _enum([
|
|
26702
|
+
"no-reference-for-condition",
|
|
26703
|
+
"view-shifted",
|
|
26704
|
+
"no-vision-profile",
|
|
26705
|
+
"encoder-model-changed",
|
|
26706
|
+
"no-snapshot"
|
|
26707
|
+
]);
|
|
25994
26708
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
25995
26709
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
25996
26710
|
var SceneReferenceSchema = object({
|
|
@@ -25998,7 +26712,14 @@ var SceneReferenceSchema = object({
|
|
|
25998
26712
|
modelId: string(),
|
|
25999
26713
|
condition: SceneConditionSchema,
|
|
26000
26714
|
capturedAt: number(),
|
|
26001
|
-
thumbnailMediaId: string().optional()
|
|
26715
|
+
thumbnailMediaId: string().optional(),
|
|
26716
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26717
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26718
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26719
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26720
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26721
|
+
* transition, not per poll. */
|
|
26722
|
+
anchorEmbedding: array(number()).optional()
|
|
26002
26723
|
});
|
|
26003
26724
|
var SceneMonitorStateSchema = object({
|
|
26004
26725
|
id: string(),
|
|
@@ -26020,6 +26741,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
26020
26741
|
profileId: string().optional(),
|
|
26021
26742
|
hysteresisCount: number().int().positive()
|
|
26022
26743
|
})]);
|
|
26744
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26745
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
26746
|
+
* out in silence rather than reporting a fault every night. */
|
|
26747
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
26748
|
+
/**
|
|
26749
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26750
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26751
|
+
*
|
|
26752
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26753
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26754
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26755
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26756
|
+
*/
|
|
26757
|
+
var SceneConfirmSchema = object({
|
|
26758
|
+
enabled: boolean().default(false),
|
|
26759
|
+
prompt: string().min(1).max(1e3),
|
|
26760
|
+
profileId: string().optional(),
|
|
26761
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
26762
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
26763
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
26764
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
26765
|
+
});
|
|
26023
26766
|
var SceneMonitorSchema = object({
|
|
26024
26767
|
id: string(),
|
|
26025
26768
|
label: string(),
|
|
@@ -26038,7 +26781,56 @@ var SceneMonitorSchema = object({
|
|
|
26038
26781
|
lastConfidence: number().nullable(),
|
|
26039
26782
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26040
26783
|
availability: _enum(["ok", "unavailable"]),
|
|
26041
|
-
unavailableReason: string().nullable()
|
|
26784
|
+
unavailableReason: string().nullable(),
|
|
26785
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
26786
|
+
baselineStateId: string().nullable(),
|
|
26787
|
+
/** Which boolean drives notification rules and any export. */
|
|
26788
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
26789
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
26790
|
+
verdict: SceneVerdictSchema,
|
|
26791
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
26792
|
+
latched: boolean(),
|
|
26793
|
+
/** Last reset (or creation). */
|
|
26794
|
+
armedAt: number(),
|
|
26795
|
+
divergedAt: number().nullable(),
|
|
26796
|
+
restoredAt: number().nullable(),
|
|
26797
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
26798
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
26799
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
26800
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
26801
|
+
/** An observation only advances the pending count when it is at least this
|
|
26802
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
26803
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
26804
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
26805
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
26806
|
+
confirm: SceneConfirmSchema.optional(),
|
|
26807
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
26808
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
26809
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
26810
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
26811
|
+
* automation can react to the bin coming back without the operator's own
|
|
26812
|
+
* alarm silently clearing itself. */
|
|
26813
|
+
autoRestore: boolean().default(false),
|
|
26814
|
+
/** What to do when the current light has no reference of its own. See
|
|
26815
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
26816
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
26817
|
+
/**
|
|
26818
|
+
* The light whose checks are currently being SAT OUT under
|
|
26819
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
26820
|
+
*
|
|
26821
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
26822
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
26823
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
26824
|
+
* line, because the alternative is a scene that silently stops answering
|
|
26825
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
26826
|
+
* read as a broken one.
|
|
26827
|
+
*/
|
|
26828
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
26829
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
26830
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
26831
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
26832
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
26833
|
+
coveredConditions: array(SceneConditionSchema)
|
|
26042
26834
|
});
|
|
26043
26835
|
var SceneMonitorStatusSchema = object({
|
|
26044
26836
|
monitors: array(SceneMonitorSchema),
|
|
@@ -26051,12 +26843,6 @@ var sceneMonitorCapability = {
|
|
|
26051
26843
|
kind: "wrapper",
|
|
26052
26844
|
defaultActive: true,
|
|
26053
26845
|
deviceTypes: [DeviceType.Camera],
|
|
26054
|
-
deviceConfig: { ui: {
|
|
26055
|
-
kind: "widget",
|
|
26056
|
-
widgetId: "host/scene-monitor-editor",
|
|
26057
|
-
tab: "scenes",
|
|
26058
|
-
label: "Scenes"
|
|
26059
|
-
} },
|
|
26060
26846
|
methods: {
|
|
26061
26847
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
26062
26848
|
createScene: method(object({
|
|
@@ -26087,7 +26873,15 @@ var sceneMonitorCapability = {
|
|
|
26087
26873
|
"both"
|
|
26088
26874
|
]).optional(),
|
|
26089
26875
|
checkIntervalSec: number().optional(),
|
|
26090
|
-
check: SceneCheckSchema.optional()
|
|
26876
|
+
check: SceneCheckSchema.optional(),
|
|
26877
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
26878
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
26879
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
26880
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
26881
|
+
autoRestore: boolean().optional(),
|
|
26882
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
26883
|
+
/** `null` clears the vision-model adjudicator. */
|
|
26884
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26091
26885
|
})
|
|
26092
26886
|
}), _void(), {
|
|
26093
26887
|
kind: "mutation",
|
|
@@ -26128,6 +26922,26 @@ var sceneMonitorCapability = {
|
|
|
26128
26922
|
}), _void(), {
|
|
26129
26923
|
kind: "mutation",
|
|
26130
26924
|
auth: "admin"
|
|
26925
|
+
}),
|
|
26926
|
+
/**
|
|
26927
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
26928
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
26929
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
26930
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
26931
|
+
* instead of failing silently weeks later.
|
|
26932
|
+
*
|
|
26933
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
26934
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
26935
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
26936
|
+
*/
|
|
26937
|
+
resetScene: method(object({
|
|
26938
|
+
deviceId: number(),
|
|
26939
|
+
monitorId: string(),
|
|
26940
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
26941
|
+
recapture: boolean().optional()
|
|
26942
|
+
}), _void(), {
|
|
26943
|
+
kind: "mutation",
|
|
26944
|
+
auth: "admin"
|
|
26131
26945
|
})
|
|
26132
26946
|
},
|
|
26133
26947
|
status: {
|
|
@@ -26370,13 +27184,63 @@ var CamStreamDescriptorSchema = object({
|
|
|
26370
27184
|
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
26371
27185
|
* broker can reconcile its registry against the authoritative provider state.
|
|
26372
27186
|
*/
|
|
27187
|
+
/**
|
|
27188
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
27189
|
+
*
|
|
27190
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
27191
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
27192
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
27193
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
27194
|
+
* every later pull from a cache.
|
|
27195
|
+
*
|
|
27196
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
27197
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
27198
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
27199
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
27200
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
27201
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
27202
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
27203
|
+
*
|
|
27204
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
27205
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
27206
|
+
* the same reason: the last known value is the only value there is while the
|
|
27207
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
27208
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
27209
|
+
*/
|
|
27210
|
+
var StreamCatalogStateSchema = object({
|
|
27211
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
27212
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
27213
|
+
* one the camera itself once produced. */
|
|
27214
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
27215
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
27216
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
27217
|
+
* re-read. */
|
|
27218
|
+
lastFetchedAt: number()
|
|
27219
|
+
});
|
|
26373
27220
|
var streamCatalogCapability = {
|
|
26374
27221
|
name: "stream-catalog",
|
|
26375
27222
|
scope: "device",
|
|
26376
27223
|
deviceNative: true,
|
|
26377
27224
|
mode: "singleton",
|
|
26378
27225
|
deviceTypes: [DeviceType.Camera],
|
|
26379
|
-
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
|
|
27226
|
+
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
|
|
27227
|
+
runtimeState: StreamCatalogStateSchema,
|
|
27228
|
+
/**
|
|
27229
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
27230
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
27231
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
27232
|
+
*
|
|
27233
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
27234
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
27235
|
+
* a day old and the camera is awake anyway).
|
|
27236
|
+
*
|
|
27237
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27238
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27239
|
+
*/
|
|
27240
|
+
durability: "restored",
|
|
27241
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
27242
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
27243
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26380
27244
|
};
|
|
26381
27245
|
/** One of the camera's stream profiles. */
|
|
26382
27246
|
var StreamProfileSchema = _enum([
|
|
@@ -26631,12 +27495,64 @@ var NetworkAddressSchema = object({
|
|
|
26631
27495
|
family: string(),
|
|
26632
27496
|
internal: boolean()
|
|
26633
27497
|
});
|
|
27498
|
+
/**
|
|
27499
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
27500
|
+
* numbers.
|
|
27501
|
+
*
|
|
27502
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
27503
|
+
* nothing overwrites it.
|
|
27504
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
27505
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
27506
|
+
* the sun-times consumers otherwise fall back to.
|
|
27507
|
+
*
|
|
27508
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
27509
|
+
* own input will eventually trust the guess.
|
|
27510
|
+
*/
|
|
27511
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
27512
|
+
/**
|
|
27513
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
27514
|
+
*
|
|
27515
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
27516
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
27517
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
27518
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
27519
|
+
* coordinates or presses detect.
|
|
27520
|
+
*/
|
|
27521
|
+
var SiteLocationStatusSchema = object({
|
|
27522
|
+
location: object({
|
|
27523
|
+
/** WGS84 decimal degrees. */
|
|
27524
|
+
latitude: number().min(-90).max(90),
|
|
27525
|
+
longitude: number().min(-180).max(180),
|
|
27526
|
+
source: SiteLocationSourceSchema,
|
|
27527
|
+
/** Epoch ms the value was last written. */
|
|
27528
|
+
updatedAt: number(),
|
|
27529
|
+
/**
|
|
27530
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
27531
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
27532
|
+
*/
|
|
27533
|
+
label: string().optional()
|
|
27534
|
+
}).nullable(),
|
|
27535
|
+
derivationAttemptedAt: number().nullable(),
|
|
27536
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
27537
|
+
derivationError: string().nullable()
|
|
27538
|
+
});
|
|
27539
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
27540
|
+
var SetSiteLocationInputSchema = object({
|
|
27541
|
+
latitude: number().min(-90).max(90),
|
|
27542
|
+
longitude: number().min(-180).max(180)
|
|
27543
|
+
}).nullable();
|
|
26634
27544
|
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(), {
|
|
26635
27545
|
kind: "mutation",
|
|
26636
27546
|
auth: "admin"
|
|
26637
27547
|
}), method(_void(), _void(), {
|
|
26638
27548
|
kind: "mutation",
|
|
26639
27549
|
auth: "admin"
|
|
27550
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
27551
|
+
kind: "mutation",
|
|
27552
|
+
auth: "admin"
|
|
27553
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
27554
|
+
kind: "mutation",
|
|
27555
|
+
auth: "admin"
|
|
26640
27556
|
});
|
|
26641
27557
|
/**
|
|
26642
27558
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -27956,6 +28872,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27956
28872
|
humiditySensor: humiditySensorCapability,
|
|
27957
28873
|
image: imageCapability,
|
|
27958
28874
|
imageSettings: imageSettingsCapability,
|
|
28875
|
+
intercom: intercomCapability,
|
|
27959
28876
|
lawnMowerControl: lawnMowerControlCapability,
|
|
27960
28877
|
lockControl: lockControlCapability,
|
|
27961
28878
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -27974,6 +28891,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27974
28891
|
sceneMonitor: sceneMonitorCapability,
|
|
27975
28892
|
scriptRunner: scriptRunnerCapability,
|
|
27976
28893
|
smoke: smokeCapability,
|
|
28894
|
+
streamCatalog: streamCatalogCapability,
|
|
27977
28895
|
streamParams: streamParamsCapability,
|
|
27978
28896
|
switch: switchCapability,
|
|
27979
28897
|
tamper: tamperCapability,
|
|
@@ -28627,6 +29545,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28627
29545
|
labels: ["probe not implemented"]
|
|
28628
29546
|
};
|
|
28629
29547
|
}
|
|
29548
|
+
/**
|
|
29549
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
29550
|
+
*
|
|
29551
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
29552
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
29553
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
29554
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
29555
|
+
*/
|
|
29556
|
+
restoreConcurrency = 4;
|
|
28630
29557
|
async restoreDevices(savedDevices) {
|
|
28631
29558
|
await this.onRestoreDevices(savedDevices);
|
|
28632
29559
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -28658,15 +29585,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28658
29585
|
*/
|
|
28659
29586
|
async onRestoreDevices(savedDevices) {
|
|
28660
29587
|
const restored = /* @__PURE__ */ new Set();
|
|
28661
|
-
|
|
28662
|
-
|
|
29588
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
29589
|
+
const restoreOne = async (saved) => {
|
|
28663
29590
|
const Class = this.deviceClasses[saved.type];
|
|
28664
29591
|
if (!Class) {
|
|
28665
29592
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
28666
29593
|
tags: { stableId: saved.stableId },
|
|
28667
29594
|
meta: { type: saved.type }
|
|
28668
29595
|
});
|
|
28669
|
-
|
|
29596
|
+
return;
|
|
28670
29597
|
}
|
|
28671
29598
|
try {
|
|
28672
29599
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -28680,7 +29607,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28680
29607
|
}
|
|
28681
29608
|
});
|
|
28682
29609
|
}
|
|
28683
|
-
}
|
|
29610
|
+
};
|
|
29611
|
+
let nextTopLevel = 0;
|
|
29612
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
29613
|
+
for (;;) {
|
|
29614
|
+
const saved = topLevel[nextTopLevel++];
|
|
29615
|
+
if (saved === void 0) return;
|
|
29616
|
+
await restoreOne(saved);
|
|
29617
|
+
}
|
|
29618
|
+
}));
|
|
28684
29619
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
28685
29620
|
for (const saved of childRows) {
|
|
28686
29621
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -30771,6 +31706,12 @@ Object.freeze({
|
|
|
30771
31706
|
addonId: null,
|
|
30772
31707
|
access: "create"
|
|
30773
31708
|
},
|
|
31709
|
+
"llm.cancel": {
|
|
31710
|
+
capName: "llm",
|
|
31711
|
+
capScope: "system",
|
|
31712
|
+
addonId: null,
|
|
31713
|
+
access: "create"
|
|
31714
|
+
},
|
|
30774
31715
|
"llm.deleteModel": {
|
|
30775
31716
|
capName: "llm",
|
|
30776
31717
|
capScope: "system",
|
|
@@ -30855,6 +31796,12 @@ Object.freeze({
|
|
|
30855
31796
|
addonId: null,
|
|
30856
31797
|
access: "view"
|
|
30857
31798
|
},
|
|
31799
|
+
"llm.resolveModelRef": {
|
|
31800
|
+
capName: "llm",
|
|
31801
|
+
capScope: "system",
|
|
31802
|
+
addonId: null,
|
|
31803
|
+
access: "create"
|
|
31804
|
+
},
|
|
30858
31805
|
"llm.setDefault": {
|
|
30859
31806
|
capName: "llm",
|
|
30860
31807
|
capScope: "system",
|
|
@@ -33021,6 +33968,12 @@ Object.freeze({
|
|
|
33021
33968
|
addonId: null,
|
|
33022
33969
|
access: "create"
|
|
33023
33970
|
},
|
|
33971
|
+
"sceneMonitor.resetScene": {
|
|
33972
|
+
capName: "scene-monitor",
|
|
33973
|
+
capScope: "device",
|
|
33974
|
+
addonId: null,
|
|
33975
|
+
access: "delete"
|
|
33976
|
+
},
|
|
33024
33977
|
"sceneMonitor.updateScene": {
|
|
33025
33978
|
capName: "scene-monitor",
|
|
33026
33979
|
capScope: "device",
|
|
@@ -33699,6 +34652,12 @@ Object.freeze({
|
|
|
33699
34652
|
addonId: null,
|
|
33700
34653
|
access: "create"
|
|
33701
34654
|
},
|
|
34655
|
+
"system.detectSiteLocation": {
|
|
34656
|
+
capName: "system",
|
|
34657
|
+
capScope: "system",
|
|
34658
|
+
addonId: null,
|
|
34659
|
+
access: "create"
|
|
34660
|
+
},
|
|
33702
34661
|
"system.featureFlags": {
|
|
33703
34662
|
capName: "system",
|
|
33704
34663
|
capScope: "system",
|
|
@@ -33717,6 +34676,12 @@ Object.freeze({
|
|
|
33717
34676
|
addonId: null,
|
|
33718
34677
|
access: "view"
|
|
33719
34678
|
},
|
|
34679
|
+
"system.getSiteLocation": {
|
|
34680
|
+
capName: "system",
|
|
34681
|
+
capScope: "system",
|
|
34682
|
+
addonId: null,
|
|
34683
|
+
access: "view"
|
|
34684
|
+
},
|
|
33720
34685
|
"system.health": {
|
|
33721
34686
|
capName: "system",
|
|
33722
34687
|
capScope: "system",
|
|
@@ -33741,6 +34706,12 @@ Object.freeze({
|
|
|
33741
34706
|
addonId: null,
|
|
33742
34707
|
access: "create"
|
|
33743
34708
|
},
|
|
34709
|
+
"system.setSiteLocation": {
|
|
34710
|
+
capName: "system",
|
|
34711
|
+
capScope: "system",
|
|
34712
|
+
addonId: null,
|
|
34713
|
+
access: "create"
|
|
34714
|
+
},
|
|
33744
34715
|
"terminalSession.adoptLegacyMonitor": {
|
|
33745
34716
|
capName: "terminal-session",
|
|
33746
34717
|
capScope: "system",
|
|
@@ -34312,6 +35283,1704 @@ Object.freeze({
|
|
|
34312
35283
|
access: "create"
|
|
34313
35284
|
}
|
|
34314
35285
|
});
|
|
35286
|
+
Object.freeze({
|
|
35287
|
+
"accessories.setChildHidden": [{
|
|
35288
|
+
name: "childDeviceId",
|
|
35289
|
+
form: "single",
|
|
35290
|
+
optional: false
|
|
35291
|
+
}, {
|
|
35292
|
+
name: "deviceId",
|
|
35293
|
+
form: "single",
|
|
35294
|
+
optional: false
|
|
35295
|
+
}],
|
|
35296
|
+
"addonSettings.getDeviceSettings": [{
|
|
35297
|
+
name: "deviceId",
|
|
35298
|
+
form: "single",
|
|
35299
|
+
optional: false
|
|
35300
|
+
}],
|
|
35301
|
+
"addonSettings.updateDeviceSettings": [{
|
|
35302
|
+
name: "deviceId",
|
|
35303
|
+
form: "single",
|
|
35304
|
+
optional: false
|
|
35305
|
+
}],
|
|
35306
|
+
"alarmPanel.arm": [{
|
|
35307
|
+
name: "deviceId",
|
|
35308
|
+
form: "single",
|
|
35309
|
+
optional: false
|
|
35310
|
+
}],
|
|
35311
|
+
"alarmPanel.disarm": [{
|
|
35312
|
+
name: "deviceId",
|
|
35313
|
+
form: "single",
|
|
35314
|
+
optional: false
|
|
35315
|
+
}],
|
|
35316
|
+
"alarmPanel.trigger": [{
|
|
35317
|
+
name: "deviceId",
|
|
35318
|
+
form: "single",
|
|
35319
|
+
optional: false
|
|
35320
|
+
}],
|
|
35321
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
35322
|
+
name: "deviceId",
|
|
35323
|
+
form: "single",
|
|
35324
|
+
optional: false
|
|
35325
|
+
}],
|
|
35326
|
+
"audioAnalyzer.classify": [{
|
|
35327
|
+
name: "deviceId",
|
|
35328
|
+
form: "single",
|
|
35329
|
+
optional: true
|
|
35330
|
+
}],
|
|
35331
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
35332
|
+
name: "deviceId",
|
|
35333
|
+
form: "single",
|
|
35334
|
+
optional: false
|
|
35335
|
+
}],
|
|
35336
|
+
"audioMetrics.getHistory": [{
|
|
35337
|
+
name: "deviceId",
|
|
35338
|
+
form: "single",
|
|
35339
|
+
optional: false
|
|
35340
|
+
}],
|
|
35341
|
+
"automationControl.disable": [{
|
|
35342
|
+
name: "deviceId",
|
|
35343
|
+
form: "single",
|
|
35344
|
+
optional: false
|
|
35345
|
+
}],
|
|
35346
|
+
"automationControl.enable": [{
|
|
35347
|
+
name: "deviceId",
|
|
35348
|
+
form: "single",
|
|
35349
|
+
optional: false
|
|
35350
|
+
}],
|
|
35351
|
+
"automationControl.trigger": [{
|
|
35352
|
+
name: "deviceId",
|
|
35353
|
+
form: "single",
|
|
35354
|
+
optional: false
|
|
35355
|
+
}],
|
|
35356
|
+
"battery.wakeForStream": [{
|
|
35357
|
+
name: "deviceId",
|
|
35358
|
+
form: "single",
|
|
35359
|
+
optional: false
|
|
35360
|
+
}],
|
|
35361
|
+
"brightness.setBrightness": [{
|
|
35362
|
+
name: "deviceId",
|
|
35363
|
+
form: "single",
|
|
35364
|
+
optional: false
|
|
35365
|
+
}],
|
|
35366
|
+
"button.press": [{
|
|
35367
|
+
name: "deviceId",
|
|
35368
|
+
form: "single",
|
|
35369
|
+
optional: false
|
|
35370
|
+
}],
|
|
35371
|
+
"cameraCredentials.getCredentials": [{
|
|
35372
|
+
name: "deviceId",
|
|
35373
|
+
form: "single",
|
|
35374
|
+
optional: false
|
|
35375
|
+
}],
|
|
35376
|
+
"cameraStreams.getBrokerStreams": [{
|
|
35377
|
+
name: "deviceId",
|
|
35378
|
+
form: "single",
|
|
35379
|
+
optional: false
|
|
35380
|
+
}],
|
|
35381
|
+
"cameraStreams.getCameraStreams": [{
|
|
35382
|
+
name: "deviceId",
|
|
35383
|
+
form: "single",
|
|
35384
|
+
optional: false
|
|
35385
|
+
}],
|
|
35386
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
35387
|
+
name: "deviceId",
|
|
35388
|
+
form: "single",
|
|
35389
|
+
optional: false
|
|
35390
|
+
}],
|
|
35391
|
+
"cameraStreams.getRtspEntries": [{
|
|
35392
|
+
name: "deviceId",
|
|
35393
|
+
form: "single",
|
|
35394
|
+
optional: false
|
|
35395
|
+
}],
|
|
35396
|
+
"cameraStreams.pickStream": [{
|
|
35397
|
+
name: "deviceId",
|
|
35398
|
+
form: "single",
|
|
35399
|
+
optional: false
|
|
35400
|
+
}],
|
|
35401
|
+
"climateControl.setFanMode": [{
|
|
35402
|
+
name: "deviceId",
|
|
35403
|
+
form: "single",
|
|
35404
|
+
optional: false
|
|
35405
|
+
}],
|
|
35406
|
+
"climateControl.setMode": [{
|
|
35407
|
+
name: "deviceId",
|
|
35408
|
+
form: "single",
|
|
35409
|
+
optional: false
|
|
35410
|
+
}],
|
|
35411
|
+
"climateControl.setPreset": [{
|
|
35412
|
+
name: "deviceId",
|
|
35413
|
+
form: "single",
|
|
35414
|
+
optional: false
|
|
35415
|
+
}],
|
|
35416
|
+
"climateControl.setSwingHorizontal": [{
|
|
35417
|
+
name: "deviceId",
|
|
35418
|
+
form: "single",
|
|
35419
|
+
optional: false
|
|
35420
|
+
}],
|
|
35421
|
+
"climateControl.setSwingVertical": [{
|
|
35422
|
+
name: "deviceId",
|
|
35423
|
+
form: "single",
|
|
35424
|
+
optional: false
|
|
35425
|
+
}],
|
|
35426
|
+
"climateControl.setTarget": [{
|
|
35427
|
+
name: "deviceId",
|
|
35428
|
+
form: "single",
|
|
35429
|
+
optional: false
|
|
35430
|
+
}],
|
|
35431
|
+
"climateControl.setTargetHumidity": [{
|
|
35432
|
+
name: "deviceId",
|
|
35433
|
+
form: "single",
|
|
35434
|
+
optional: false
|
|
35435
|
+
}],
|
|
35436
|
+
"climateControl.setTargetRange": [{
|
|
35437
|
+
name: "deviceId",
|
|
35438
|
+
form: "single",
|
|
35439
|
+
optional: false
|
|
35440
|
+
}],
|
|
35441
|
+
"color.setColor": [{
|
|
35442
|
+
name: "deviceId",
|
|
35443
|
+
form: "single",
|
|
35444
|
+
optional: false
|
|
35445
|
+
}],
|
|
35446
|
+
"consumables.reset": [{
|
|
35447
|
+
name: "deviceId",
|
|
35448
|
+
form: "single",
|
|
35449
|
+
optional: false
|
|
35450
|
+
}],
|
|
35451
|
+
"control.setValue": [{
|
|
35452
|
+
name: "deviceId",
|
|
35453
|
+
form: "single",
|
|
35454
|
+
optional: false
|
|
35455
|
+
}],
|
|
35456
|
+
"cover.close": [{
|
|
35457
|
+
name: "deviceId",
|
|
35458
|
+
form: "single",
|
|
35459
|
+
optional: false
|
|
35460
|
+
}],
|
|
35461
|
+
"cover.open": [{
|
|
35462
|
+
name: "deviceId",
|
|
35463
|
+
form: "single",
|
|
35464
|
+
optional: false
|
|
35465
|
+
}],
|
|
35466
|
+
"cover.setPosition": [{
|
|
35467
|
+
name: "deviceId",
|
|
35468
|
+
form: "single",
|
|
35469
|
+
optional: false
|
|
35470
|
+
}],
|
|
35471
|
+
"cover.setTiltPosition": [{
|
|
35472
|
+
name: "deviceId",
|
|
35473
|
+
form: "single",
|
|
35474
|
+
optional: false
|
|
35475
|
+
}],
|
|
35476
|
+
"cover.stop": [{
|
|
35477
|
+
name: "deviceId",
|
|
35478
|
+
form: "single",
|
|
35479
|
+
optional: false
|
|
35480
|
+
}],
|
|
35481
|
+
"dayNight.getOptions": [{
|
|
35482
|
+
name: "deviceId",
|
|
35483
|
+
form: "single",
|
|
35484
|
+
optional: false
|
|
35485
|
+
}],
|
|
35486
|
+
"dayNight.setSettings": [{
|
|
35487
|
+
name: "deviceId",
|
|
35488
|
+
form: "single",
|
|
35489
|
+
optional: false
|
|
35490
|
+
}],
|
|
35491
|
+
"decoder.createSession": [{
|
|
35492
|
+
name: "deviceId",
|
|
35493
|
+
form: "single",
|
|
35494
|
+
optional: true
|
|
35495
|
+
}],
|
|
35496
|
+
"deviceAdoption.release": [{
|
|
35497
|
+
name: "camDeviceId",
|
|
35498
|
+
form: "single",
|
|
35499
|
+
optional: false
|
|
35500
|
+
}],
|
|
35501
|
+
"deviceAdoption.resync": [{
|
|
35502
|
+
name: "camDeviceId",
|
|
35503
|
+
form: "single",
|
|
35504
|
+
optional: false
|
|
35505
|
+
}],
|
|
35506
|
+
"deviceDiscovery.adoptDevice": [{
|
|
35507
|
+
name: "deviceId",
|
|
35508
|
+
form: "single",
|
|
35509
|
+
optional: false
|
|
35510
|
+
}],
|
|
35511
|
+
"deviceDiscovery.listDiscovered": [{
|
|
35512
|
+
name: "deviceId",
|
|
35513
|
+
form: "single",
|
|
35514
|
+
optional: false
|
|
35515
|
+
}],
|
|
35516
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
35517
|
+
name: "deviceId",
|
|
35518
|
+
form: "single",
|
|
35519
|
+
optional: false
|
|
35520
|
+
}],
|
|
35521
|
+
"deviceDiscovery.releaseDevice": [{
|
|
35522
|
+
name: "childDeviceId",
|
|
35523
|
+
form: "single",
|
|
35524
|
+
optional: false
|
|
35525
|
+
}, {
|
|
35526
|
+
name: "deviceId",
|
|
35527
|
+
form: "single",
|
|
35528
|
+
optional: false
|
|
35529
|
+
}],
|
|
35530
|
+
"deviceManager.adoptionRelease": [{
|
|
35531
|
+
name: "camDeviceId",
|
|
35532
|
+
form: "single",
|
|
35533
|
+
optional: false
|
|
35534
|
+
}],
|
|
35535
|
+
"deviceManager.adoptionResync": [{
|
|
35536
|
+
name: "camDeviceId",
|
|
35537
|
+
form: "single",
|
|
35538
|
+
optional: false
|
|
35539
|
+
}],
|
|
35540
|
+
"deviceManager.applyInitialMeta": [{
|
|
35541
|
+
name: "deviceId",
|
|
35542
|
+
form: "single",
|
|
35543
|
+
optional: false
|
|
35544
|
+
}, {
|
|
35545
|
+
name: "linkDeviceId",
|
|
35546
|
+
form: "single",
|
|
35547
|
+
optional: true
|
|
35548
|
+
}],
|
|
35549
|
+
"deviceManager.disable": [{
|
|
35550
|
+
name: "deviceId",
|
|
35551
|
+
form: "single",
|
|
35552
|
+
optional: false
|
|
35553
|
+
}],
|
|
35554
|
+
"deviceManager.enable": [{
|
|
35555
|
+
name: "deviceId",
|
|
35556
|
+
form: "single",
|
|
35557
|
+
optional: false
|
|
35558
|
+
}],
|
|
35559
|
+
"deviceManager.getBindings": [{
|
|
35560
|
+
name: "deviceId",
|
|
35561
|
+
form: "single",
|
|
35562
|
+
optional: false
|
|
35563
|
+
}],
|
|
35564
|
+
"deviceManager.getChildren": [{
|
|
35565
|
+
name: "parentDeviceId",
|
|
35566
|
+
form: "single",
|
|
35567
|
+
optional: false
|
|
35568
|
+
}],
|
|
35569
|
+
"deviceManager.getConfigSchema": [{
|
|
35570
|
+
name: "deviceId",
|
|
35571
|
+
form: "single",
|
|
35572
|
+
optional: false
|
|
35573
|
+
}],
|
|
35574
|
+
"deviceManager.getDevice": [{
|
|
35575
|
+
name: "deviceId",
|
|
35576
|
+
form: "single",
|
|
35577
|
+
optional: false
|
|
35578
|
+
}],
|
|
35579
|
+
"deviceManager.getDeviceAggregate": [{
|
|
35580
|
+
name: "deviceId",
|
|
35581
|
+
form: "single",
|
|
35582
|
+
optional: false
|
|
35583
|
+
}],
|
|
35584
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
35585
|
+
name: "deviceId",
|
|
35586
|
+
form: "single",
|
|
35587
|
+
optional: false
|
|
35588
|
+
}],
|
|
35589
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
35590
|
+
name: "deviceId",
|
|
35591
|
+
form: "single",
|
|
35592
|
+
optional: false
|
|
35593
|
+
}],
|
|
35594
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
35595
|
+
name: "deviceId",
|
|
35596
|
+
form: "single",
|
|
35597
|
+
optional: false
|
|
35598
|
+
}],
|
|
35599
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
35600
|
+
name: "deviceIds",
|
|
35601
|
+
form: "array",
|
|
35602
|
+
optional: false
|
|
35603
|
+
}],
|
|
35604
|
+
"deviceManager.getLinkedDevices": [{
|
|
35605
|
+
name: "deviceId",
|
|
35606
|
+
form: "single",
|
|
35607
|
+
optional: false
|
|
35608
|
+
}],
|
|
35609
|
+
"deviceManager.getSettingsSchema": [{
|
|
35610
|
+
name: "deviceId",
|
|
35611
|
+
form: "single",
|
|
35612
|
+
optional: false
|
|
35613
|
+
}],
|
|
35614
|
+
"deviceManager.getStreamProfileMap": [{
|
|
35615
|
+
name: "deviceId",
|
|
35616
|
+
form: "single",
|
|
35617
|
+
optional: false
|
|
35618
|
+
}],
|
|
35619
|
+
"deviceManager.getStreamSources": [{
|
|
35620
|
+
name: "deviceId",
|
|
35621
|
+
form: "single",
|
|
35622
|
+
optional: false
|
|
35623
|
+
}],
|
|
35624
|
+
"deviceManager.getWireableFields": [{
|
|
35625
|
+
name: "deviceId",
|
|
35626
|
+
form: "single",
|
|
35627
|
+
optional: false
|
|
35628
|
+
}],
|
|
35629
|
+
"deviceManager.loadConfig": [{
|
|
35630
|
+
name: "deviceId",
|
|
35631
|
+
form: "single",
|
|
35632
|
+
optional: false
|
|
35633
|
+
}],
|
|
35634
|
+
"deviceManager.loadMeta": [{
|
|
35635
|
+
name: "deviceId",
|
|
35636
|
+
form: "single",
|
|
35637
|
+
optional: false
|
|
35638
|
+
}],
|
|
35639
|
+
"deviceManager.loadRuntimeState": [{
|
|
35640
|
+
name: "deviceId",
|
|
35641
|
+
form: "single",
|
|
35642
|
+
optional: false
|
|
35643
|
+
}],
|
|
35644
|
+
"deviceManager.persistConfig": [{
|
|
35645
|
+
name: "deviceId",
|
|
35646
|
+
form: "single",
|
|
35647
|
+
optional: false
|
|
35648
|
+
}],
|
|
35649
|
+
"deviceManager.probeStreams": [{
|
|
35650
|
+
name: "deviceId",
|
|
35651
|
+
form: "single",
|
|
35652
|
+
optional: false
|
|
35653
|
+
}],
|
|
35654
|
+
"deviceManager.registerDevice": [{
|
|
35655
|
+
name: "parentDeviceId",
|
|
35656
|
+
form: "single",
|
|
35657
|
+
optional: true
|
|
35658
|
+
}],
|
|
35659
|
+
"deviceManager.remove": [{
|
|
35660
|
+
name: "deviceId",
|
|
35661
|
+
form: "single",
|
|
35662
|
+
optional: false
|
|
35663
|
+
}],
|
|
35664
|
+
"deviceManager.removeDevice": [{
|
|
35665
|
+
name: "deviceId",
|
|
35666
|
+
form: "single",
|
|
35667
|
+
optional: false
|
|
35668
|
+
}],
|
|
35669
|
+
"deviceManager.runDeviceAction": [{
|
|
35670
|
+
name: "deviceId",
|
|
35671
|
+
form: "single",
|
|
35672
|
+
optional: false
|
|
35673
|
+
}],
|
|
35674
|
+
"deviceManager.setChildLayout": [{
|
|
35675
|
+
name: "deviceId",
|
|
35676
|
+
form: "single",
|
|
35677
|
+
optional: false
|
|
35678
|
+
}],
|
|
35679
|
+
"deviceManager.setDisabled": [{
|
|
35680
|
+
name: "deviceId",
|
|
35681
|
+
form: "single",
|
|
35682
|
+
optional: false
|
|
35683
|
+
}],
|
|
35684
|
+
"deviceManager.setDisplay": [{
|
|
35685
|
+
name: "deviceId",
|
|
35686
|
+
form: "single",
|
|
35687
|
+
optional: false
|
|
35688
|
+
}],
|
|
35689
|
+
"deviceManager.setIntegrationId": [{
|
|
35690
|
+
name: "deviceId",
|
|
35691
|
+
form: "single",
|
|
35692
|
+
optional: false
|
|
35693
|
+
}],
|
|
35694
|
+
"deviceManager.setLinkDeviceId": [{
|
|
35695
|
+
name: "deviceId",
|
|
35696
|
+
form: "single",
|
|
35697
|
+
optional: false
|
|
35698
|
+
}, {
|
|
35699
|
+
name: "linkDeviceId",
|
|
35700
|
+
form: "single",
|
|
35701
|
+
optional: true
|
|
35702
|
+
}],
|
|
35703
|
+
"deviceManager.setLocation": [{
|
|
35704
|
+
name: "deviceId",
|
|
35705
|
+
form: "single",
|
|
35706
|
+
optional: false
|
|
35707
|
+
}],
|
|
35708
|
+
"deviceManager.setMetadata": [{
|
|
35709
|
+
name: "deviceId",
|
|
35710
|
+
form: "single",
|
|
35711
|
+
optional: false
|
|
35712
|
+
}],
|
|
35713
|
+
"deviceManager.setName": [{
|
|
35714
|
+
name: "deviceId",
|
|
35715
|
+
form: "single",
|
|
35716
|
+
optional: false
|
|
35717
|
+
}],
|
|
35718
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
35719
|
+
name: "deviceId",
|
|
35720
|
+
form: "single",
|
|
35721
|
+
optional: false
|
|
35722
|
+
}],
|
|
35723
|
+
"deviceManager.setRole": [{
|
|
35724
|
+
name: "deviceId",
|
|
35725
|
+
form: "single",
|
|
35726
|
+
optional: false
|
|
35727
|
+
}],
|
|
35728
|
+
"deviceManager.setStreamProfileMap": [{
|
|
35729
|
+
name: "deviceId",
|
|
35730
|
+
form: "single",
|
|
35731
|
+
optional: false
|
|
35732
|
+
}],
|
|
35733
|
+
"deviceManager.setType": [{
|
|
35734
|
+
name: "deviceId",
|
|
35735
|
+
form: "single",
|
|
35736
|
+
optional: false
|
|
35737
|
+
}],
|
|
35738
|
+
"deviceManager.setWrapperActive": [{
|
|
35739
|
+
name: "deviceId",
|
|
35740
|
+
form: "single",
|
|
35741
|
+
optional: false
|
|
35742
|
+
}],
|
|
35743
|
+
"deviceManager.testField": [{
|
|
35744
|
+
name: "deviceId",
|
|
35745
|
+
form: "single",
|
|
35746
|
+
optional: false
|
|
35747
|
+
}],
|
|
35748
|
+
"deviceManager.updateConfig": [{
|
|
35749
|
+
name: "deviceId",
|
|
35750
|
+
form: "single",
|
|
35751
|
+
optional: false
|
|
35752
|
+
}],
|
|
35753
|
+
"deviceManager.updateDeviceField": [{
|
|
35754
|
+
name: "deviceId",
|
|
35755
|
+
form: "single",
|
|
35756
|
+
optional: false
|
|
35757
|
+
}],
|
|
35758
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
35759
|
+
name: "deviceId",
|
|
35760
|
+
form: "single",
|
|
35761
|
+
optional: false
|
|
35762
|
+
}],
|
|
35763
|
+
"deviceOps.getConfigEntries": [{
|
|
35764
|
+
name: "deviceId",
|
|
35765
|
+
form: "single",
|
|
35766
|
+
optional: false
|
|
35767
|
+
}],
|
|
35768
|
+
"deviceOps.getRawState": [{
|
|
35769
|
+
name: "deviceId",
|
|
35770
|
+
form: "single",
|
|
35771
|
+
optional: false
|
|
35772
|
+
}],
|
|
35773
|
+
"deviceOps.getSettingsSchema": [{
|
|
35774
|
+
name: "deviceId",
|
|
35775
|
+
form: "single",
|
|
35776
|
+
optional: false
|
|
35777
|
+
}],
|
|
35778
|
+
"deviceOps.getStreamSources": [{
|
|
35779
|
+
name: "deviceId",
|
|
35780
|
+
form: "single",
|
|
35781
|
+
optional: false
|
|
35782
|
+
}],
|
|
35783
|
+
"deviceOps.removeDevice": [{
|
|
35784
|
+
name: "deviceId",
|
|
35785
|
+
form: "single",
|
|
35786
|
+
optional: false
|
|
35787
|
+
}],
|
|
35788
|
+
"deviceOps.runAction": [{
|
|
35789
|
+
name: "deviceId",
|
|
35790
|
+
form: "single",
|
|
35791
|
+
optional: false
|
|
35792
|
+
}],
|
|
35793
|
+
"deviceOps.setConfig": [{
|
|
35794
|
+
name: "deviceId",
|
|
35795
|
+
form: "single",
|
|
35796
|
+
optional: false
|
|
35797
|
+
}],
|
|
35798
|
+
"deviceState.getCapSlice": [{
|
|
35799
|
+
name: "deviceId",
|
|
35800
|
+
form: "single",
|
|
35801
|
+
optional: false
|
|
35802
|
+
}],
|
|
35803
|
+
"deviceState.getSnapshot": [{
|
|
35804
|
+
name: "deviceId",
|
|
35805
|
+
form: "single",
|
|
35806
|
+
optional: false
|
|
35807
|
+
}],
|
|
35808
|
+
"deviceState.setCapSlice": [{
|
|
35809
|
+
name: "deviceId",
|
|
35810
|
+
form: "single",
|
|
35811
|
+
optional: false
|
|
35812
|
+
}],
|
|
35813
|
+
"events.getEventClipUrl": [{
|
|
35814
|
+
name: "deviceId",
|
|
35815
|
+
form: "single",
|
|
35816
|
+
optional: false
|
|
35817
|
+
}],
|
|
35818
|
+
"events.getEvents": [{
|
|
35819
|
+
name: "deviceId",
|
|
35820
|
+
form: "single",
|
|
35821
|
+
optional: false
|
|
35822
|
+
}],
|
|
35823
|
+
"events.getEventThumbnail": [{
|
|
35824
|
+
name: "deviceId",
|
|
35825
|
+
form: "single",
|
|
35826
|
+
optional: false
|
|
35827
|
+
}],
|
|
35828
|
+
"faceGallery.getFaceByTrack": [{
|
|
35829
|
+
name: "deviceId",
|
|
35830
|
+
form: "single",
|
|
35831
|
+
optional: false
|
|
35832
|
+
}],
|
|
35833
|
+
"faceGallery.listRecentFaces": [{
|
|
35834
|
+
name: "deviceId",
|
|
35835
|
+
form: "single",
|
|
35836
|
+
optional: true
|
|
35837
|
+
}],
|
|
35838
|
+
"fanControl.setDirection": [{
|
|
35839
|
+
name: "deviceId",
|
|
35840
|
+
form: "single",
|
|
35841
|
+
optional: false
|
|
35842
|
+
}],
|
|
35843
|
+
"fanControl.setOscillating": [{
|
|
35844
|
+
name: "deviceId",
|
|
35845
|
+
form: "single",
|
|
35846
|
+
optional: false
|
|
35847
|
+
}],
|
|
35848
|
+
"fanControl.setPercentage": [{
|
|
35849
|
+
name: "deviceId",
|
|
35850
|
+
form: "single",
|
|
35851
|
+
optional: false
|
|
35852
|
+
}],
|
|
35853
|
+
"fanControl.setPreset": [{
|
|
35854
|
+
name: "deviceId",
|
|
35855
|
+
form: "single",
|
|
35856
|
+
optional: false
|
|
35857
|
+
}],
|
|
35858
|
+
"humidifier.setMode": [{
|
|
35859
|
+
name: "deviceId",
|
|
35860
|
+
form: "single",
|
|
35861
|
+
optional: false
|
|
35862
|
+
}],
|
|
35863
|
+
"humidifier.setOn": [{
|
|
35864
|
+
name: "deviceId",
|
|
35865
|
+
form: "single",
|
|
35866
|
+
optional: false
|
|
35867
|
+
}],
|
|
35868
|
+
"humidifier.setTargetHumidity": [{
|
|
35869
|
+
name: "deviceId",
|
|
35870
|
+
form: "single",
|
|
35871
|
+
optional: false
|
|
35872
|
+
}],
|
|
35873
|
+
"imageSettings.getOptions": [{
|
|
35874
|
+
name: "deviceId",
|
|
35875
|
+
form: "single",
|
|
35876
|
+
optional: false
|
|
35877
|
+
}],
|
|
35878
|
+
"imageSettings.setSettings": [{
|
|
35879
|
+
name: "deviceId",
|
|
35880
|
+
form: "single",
|
|
35881
|
+
optional: false
|
|
35882
|
+
}],
|
|
35883
|
+
"intercom.endTalkSession": [{
|
|
35884
|
+
name: "deviceId",
|
|
35885
|
+
form: "single",
|
|
35886
|
+
optional: false
|
|
35887
|
+
}],
|
|
35888
|
+
"intercom.handleAnswer": [{
|
|
35889
|
+
name: "deviceId",
|
|
35890
|
+
form: "single",
|
|
35891
|
+
optional: false
|
|
35892
|
+
}],
|
|
35893
|
+
"intercom.pushTalkAudio": [{
|
|
35894
|
+
name: "deviceId",
|
|
35895
|
+
form: "single",
|
|
35896
|
+
optional: false
|
|
35897
|
+
}],
|
|
35898
|
+
"intercom.startSession": [{
|
|
35899
|
+
name: "deviceId",
|
|
35900
|
+
form: "single",
|
|
35901
|
+
optional: false
|
|
35902
|
+
}],
|
|
35903
|
+
"intercom.startTalkSession": [{
|
|
35904
|
+
name: "deviceId",
|
|
35905
|
+
form: "single",
|
|
35906
|
+
optional: false
|
|
35907
|
+
}],
|
|
35908
|
+
"intercom.stopSession": [{
|
|
35909
|
+
name: "deviceId",
|
|
35910
|
+
form: "single",
|
|
35911
|
+
optional: false
|
|
35912
|
+
}],
|
|
35913
|
+
"lawnMowerControl.dock": [{
|
|
35914
|
+
name: "deviceId",
|
|
35915
|
+
form: "single",
|
|
35916
|
+
optional: false
|
|
35917
|
+
}],
|
|
35918
|
+
"lawnMowerControl.pause": [{
|
|
35919
|
+
name: "deviceId",
|
|
35920
|
+
form: "single",
|
|
35921
|
+
optional: false
|
|
35922
|
+
}],
|
|
35923
|
+
"lawnMowerControl.startMowing": [{
|
|
35924
|
+
name: "deviceId",
|
|
35925
|
+
form: "single",
|
|
35926
|
+
optional: false
|
|
35927
|
+
}],
|
|
35928
|
+
"lockControl.lock": [{
|
|
35929
|
+
name: "deviceId",
|
|
35930
|
+
form: "single",
|
|
35931
|
+
optional: false
|
|
35932
|
+
}],
|
|
35933
|
+
"lockControl.open": [{
|
|
35934
|
+
name: "deviceId",
|
|
35935
|
+
form: "single",
|
|
35936
|
+
optional: false
|
|
35937
|
+
}],
|
|
35938
|
+
"lockControl.unlock": [{
|
|
35939
|
+
name: "deviceId",
|
|
35940
|
+
form: "single",
|
|
35941
|
+
optional: false
|
|
35942
|
+
}],
|
|
35943
|
+
"mediaPlayer.next": [{
|
|
35944
|
+
name: "deviceId",
|
|
35945
|
+
form: "single",
|
|
35946
|
+
optional: false
|
|
35947
|
+
}],
|
|
35948
|
+
"mediaPlayer.pause": [{
|
|
35949
|
+
name: "deviceId",
|
|
35950
|
+
form: "single",
|
|
35951
|
+
optional: false
|
|
35952
|
+
}],
|
|
35953
|
+
"mediaPlayer.play": [{
|
|
35954
|
+
name: "deviceId",
|
|
35955
|
+
form: "single",
|
|
35956
|
+
optional: false
|
|
35957
|
+
}],
|
|
35958
|
+
"mediaPlayer.playMedia": [{
|
|
35959
|
+
name: "deviceId",
|
|
35960
|
+
form: "single",
|
|
35961
|
+
optional: false
|
|
35962
|
+
}],
|
|
35963
|
+
"mediaPlayer.previous": [{
|
|
35964
|
+
name: "deviceId",
|
|
35965
|
+
form: "single",
|
|
35966
|
+
optional: false
|
|
35967
|
+
}],
|
|
35968
|
+
"mediaPlayer.seek": [{
|
|
35969
|
+
name: "deviceId",
|
|
35970
|
+
form: "single",
|
|
35971
|
+
optional: false
|
|
35972
|
+
}],
|
|
35973
|
+
"mediaPlayer.selectSource": [{
|
|
35974
|
+
name: "deviceId",
|
|
35975
|
+
form: "single",
|
|
35976
|
+
optional: false
|
|
35977
|
+
}],
|
|
35978
|
+
"mediaPlayer.setMute": [{
|
|
35979
|
+
name: "deviceId",
|
|
35980
|
+
form: "single",
|
|
35981
|
+
optional: false
|
|
35982
|
+
}],
|
|
35983
|
+
"mediaPlayer.setRepeat": [{
|
|
35984
|
+
name: "deviceId",
|
|
35985
|
+
form: "single",
|
|
35986
|
+
optional: false
|
|
35987
|
+
}],
|
|
35988
|
+
"mediaPlayer.setShuffle": [{
|
|
35989
|
+
name: "deviceId",
|
|
35990
|
+
form: "single",
|
|
35991
|
+
optional: false
|
|
35992
|
+
}],
|
|
35993
|
+
"mediaPlayer.setVolume": [{
|
|
35994
|
+
name: "deviceId",
|
|
35995
|
+
form: "single",
|
|
35996
|
+
optional: false
|
|
35997
|
+
}],
|
|
35998
|
+
"mediaPlayer.stop": [{
|
|
35999
|
+
name: "deviceId",
|
|
36000
|
+
form: "single",
|
|
36001
|
+
optional: false
|
|
36002
|
+
}],
|
|
36003
|
+
"motion.isDetected": [{
|
|
36004
|
+
name: "deviceId",
|
|
36005
|
+
form: "single",
|
|
36006
|
+
optional: false
|
|
36007
|
+
}],
|
|
36008
|
+
"motionDetection.analyze": [{
|
|
36009
|
+
name: "deviceId",
|
|
36010
|
+
form: "single",
|
|
36011
|
+
optional: false
|
|
36012
|
+
}],
|
|
36013
|
+
"motionDetection.removeCamera": [{
|
|
36014
|
+
name: "deviceId",
|
|
36015
|
+
form: "single",
|
|
36016
|
+
optional: false
|
|
36017
|
+
}],
|
|
36018
|
+
"motionTrigger.setMotionTrigger": [{
|
|
36019
|
+
name: "deviceId",
|
|
36020
|
+
form: "single",
|
|
36021
|
+
optional: false
|
|
36022
|
+
}],
|
|
36023
|
+
"motionZones.getOptions": [{
|
|
36024
|
+
name: "deviceId",
|
|
36025
|
+
form: "single",
|
|
36026
|
+
optional: false
|
|
36027
|
+
}],
|
|
36028
|
+
"motionZones.setZone": [{
|
|
36029
|
+
name: "deviceId",
|
|
36030
|
+
form: "single",
|
|
36031
|
+
optional: false
|
|
36032
|
+
}],
|
|
36033
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36034
|
+
name: "deviceId",
|
|
36035
|
+
form: "single",
|
|
36036
|
+
optional: false
|
|
36037
|
+
}],
|
|
36038
|
+
"networkQuality.getDeviceStats": [{
|
|
36039
|
+
name: "deviceId",
|
|
36040
|
+
form: "single",
|
|
36041
|
+
optional: false
|
|
36042
|
+
}],
|
|
36043
|
+
"networkQuality.reportClientStats": [{
|
|
36044
|
+
name: "deviceId",
|
|
36045
|
+
form: "single",
|
|
36046
|
+
optional: false
|
|
36047
|
+
}],
|
|
36048
|
+
"notificationRules.setDeviceMuted": [{
|
|
36049
|
+
name: "deviceId",
|
|
36050
|
+
form: "single",
|
|
36051
|
+
optional: false
|
|
36052
|
+
}],
|
|
36053
|
+
"notifier.cancel": [{
|
|
36054
|
+
name: "deviceId",
|
|
36055
|
+
form: "single",
|
|
36056
|
+
optional: false
|
|
36057
|
+
}],
|
|
36058
|
+
"notifier.send": [{
|
|
36059
|
+
name: "deviceId",
|
|
36060
|
+
form: "single",
|
|
36061
|
+
optional: false
|
|
36062
|
+
}],
|
|
36063
|
+
"osd.setOverlay": [{
|
|
36064
|
+
name: "deviceId",
|
|
36065
|
+
form: "single",
|
|
36066
|
+
optional: false
|
|
36067
|
+
}],
|
|
36068
|
+
"osdManager.clearSlotBinding": [{
|
|
36069
|
+
name: "deviceId",
|
|
36070
|
+
form: "single",
|
|
36071
|
+
optional: false
|
|
36072
|
+
}],
|
|
36073
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36074
|
+
name: "sourceDeviceId",
|
|
36075
|
+
form: "single",
|
|
36076
|
+
optional: false
|
|
36077
|
+
}, {
|
|
36078
|
+
name: "targetDeviceId",
|
|
36079
|
+
form: "single",
|
|
36080
|
+
optional: false
|
|
36081
|
+
}],
|
|
36082
|
+
"osdManager.getDeviceOsd": [{
|
|
36083
|
+
name: "deviceId",
|
|
36084
|
+
form: "single",
|
|
36085
|
+
optional: false
|
|
36086
|
+
}],
|
|
36087
|
+
"osdManager.getSourceCatalog": [{
|
|
36088
|
+
name: "deviceId",
|
|
36089
|
+
form: "single",
|
|
36090
|
+
optional: false
|
|
36091
|
+
}],
|
|
36092
|
+
"osdManager.previewSlot": [{
|
|
36093
|
+
name: "deviceId",
|
|
36094
|
+
form: "single",
|
|
36095
|
+
optional: false
|
|
36096
|
+
}],
|
|
36097
|
+
"osdManager.renderDevice": [{
|
|
36098
|
+
name: "deviceId",
|
|
36099
|
+
form: "single",
|
|
36100
|
+
optional: false
|
|
36101
|
+
}],
|
|
36102
|
+
"osdManager.setSlotBinding": [{
|
|
36103
|
+
name: "deviceId",
|
|
36104
|
+
form: "single",
|
|
36105
|
+
optional: false
|
|
36106
|
+
}],
|
|
36107
|
+
"petFeeder.callPet": [{
|
|
36108
|
+
name: "deviceId",
|
|
36109
|
+
form: "single",
|
|
36110
|
+
optional: false
|
|
36111
|
+
}],
|
|
36112
|
+
"petFeeder.cancelFeed": [{
|
|
36113
|
+
name: "deviceId",
|
|
36114
|
+
form: "single",
|
|
36115
|
+
optional: false
|
|
36116
|
+
}],
|
|
36117
|
+
"petFeeder.feed": [{
|
|
36118
|
+
name: "deviceId",
|
|
36119
|
+
form: "single",
|
|
36120
|
+
optional: false
|
|
36121
|
+
}],
|
|
36122
|
+
"petFeeder.markFoodReplenished": [{
|
|
36123
|
+
name: "deviceId",
|
|
36124
|
+
form: "single",
|
|
36125
|
+
optional: false
|
|
36126
|
+
}],
|
|
36127
|
+
"petFeeder.playSound": [{
|
|
36128
|
+
name: "deviceId",
|
|
36129
|
+
form: "single",
|
|
36130
|
+
optional: false
|
|
36131
|
+
}],
|
|
36132
|
+
"petFeeder.resetDesiccant": [{
|
|
36133
|
+
name: "deviceId",
|
|
36134
|
+
form: "single",
|
|
36135
|
+
optional: false
|
|
36136
|
+
}],
|
|
36137
|
+
"petFeeder.setChildLock": [{
|
|
36138
|
+
name: "deviceId",
|
|
36139
|
+
form: "single",
|
|
36140
|
+
optional: false
|
|
36141
|
+
}],
|
|
36142
|
+
"petFeeder.setFeedSound": [{
|
|
36143
|
+
name: "deviceId",
|
|
36144
|
+
form: "single",
|
|
36145
|
+
optional: false
|
|
36146
|
+
}],
|
|
36147
|
+
"petFeeder.setIndicatorLight": [{
|
|
36148
|
+
name: "deviceId",
|
|
36149
|
+
form: "single",
|
|
36150
|
+
optional: false
|
|
36151
|
+
}],
|
|
36152
|
+
"petFeeder.setVolume": [{
|
|
36153
|
+
name: "deviceId",
|
|
36154
|
+
form: "single",
|
|
36155
|
+
optional: false
|
|
36156
|
+
}],
|
|
36157
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36158
|
+
name: "deviceId",
|
|
36159
|
+
form: "single",
|
|
36160
|
+
optional: false
|
|
36161
|
+
}],
|
|
36162
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36163
|
+
name: "deviceId",
|
|
36164
|
+
form: "single",
|
|
36165
|
+
optional: false
|
|
36166
|
+
}],
|
|
36167
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36168
|
+
name: "deviceId",
|
|
36169
|
+
form: "single",
|
|
36170
|
+
optional: false
|
|
36171
|
+
}],
|
|
36172
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36173
|
+
name: "deviceId",
|
|
36174
|
+
form: "single",
|
|
36175
|
+
optional: false
|
|
36176
|
+
}],
|
|
36177
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36178
|
+
name: "deviceId",
|
|
36179
|
+
form: "single",
|
|
36180
|
+
optional: false
|
|
36181
|
+
}],
|
|
36182
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36183
|
+
name: "deviceId",
|
|
36184
|
+
form: "single",
|
|
36185
|
+
optional: false
|
|
36186
|
+
}],
|
|
36187
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36188
|
+
name: "deviceId",
|
|
36189
|
+
form: "single",
|
|
36190
|
+
optional: false
|
|
36191
|
+
}],
|
|
36192
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36193
|
+
name: "deviceId",
|
|
36194
|
+
form: "single",
|
|
36195
|
+
optional: false
|
|
36196
|
+
}],
|
|
36197
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
36198
|
+
name: "deviceId",
|
|
36199
|
+
form: "single",
|
|
36200
|
+
optional: false
|
|
36201
|
+
}],
|
|
36202
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36203
|
+
name: "deviceId",
|
|
36204
|
+
form: "single",
|
|
36205
|
+
optional: false
|
|
36206
|
+
}],
|
|
36207
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36208
|
+
name: "deviceId",
|
|
36209
|
+
form: "single",
|
|
36210
|
+
optional: false
|
|
36211
|
+
}],
|
|
36212
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36213
|
+
name: "deviceId",
|
|
36214
|
+
form: "single",
|
|
36215
|
+
optional: false
|
|
36216
|
+
}],
|
|
36217
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36218
|
+
name: "deviceIds",
|
|
36219
|
+
form: "array",
|
|
36220
|
+
optional: true
|
|
36221
|
+
}],
|
|
36222
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36223
|
+
name: "deviceId",
|
|
36224
|
+
form: "single",
|
|
36225
|
+
optional: false
|
|
36226
|
+
}],
|
|
36227
|
+
"pipelineAnalytics.getTrack": [{
|
|
36228
|
+
name: "deviceId",
|
|
36229
|
+
form: "single",
|
|
36230
|
+
optional: false
|
|
36231
|
+
}],
|
|
36232
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
36233
|
+
name: "deviceId",
|
|
36234
|
+
form: "single",
|
|
36235
|
+
optional: false
|
|
36236
|
+
}],
|
|
36237
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36238
|
+
name: "deviceIds",
|
|
36239
|
+
form: "array",
|
|
36240
|
+
optional: true
|
|
36241
|
+
}],
|
|
36242
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36243
|
+
name: "deviceIds",
|
|
36244
|
+
form: "array",
|
|
36245
|
+
optional: true
|
|
36246
|
+
}],
|
|
36247
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36248
|
+
name: "deviceId",
|
|
36249
|
+
form: "single",
|
|
36250
|
+
optional: false
|
|
36251
|
+
}],
|
|
36252
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36253
|
+
name: "deviceIds",
|
|
36254
|
+
form: "array",
|
|
36255
|
+
optional: false
|
|
36256
|
+
}],
|
|
36257
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36258
|
+
name: "deviceId",
|
|
36259
|
+
form: "single",
|
|
36260
|
+
optional: true
|
|
36261
|
+
}],
|
|
36262
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36263
|
+
name: "deviceIds",
|
|
36264
|
+
form: "array",
|
|
36265
|
+
optional: false
|
|
36266
|
+
}],
|
|
36267
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36268
|
+
name: "deviceIds",
|
|
36269
|
+
form: "array",
|
|
36270
|
+
optional: true
|
|
36271
|
+
}],
|
|
36272
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
36273
|
+
name: "deviceId",
|
|
36274
|
+
form: "single",
|
|
36275
|
+
optional: false
|
|
36276
|
+
}],
|
|
36277
|
+
"pipelineAnalytics.listTracks": [{
|
|
36278
|
+
name: "deviceId",
|
|
36279
|
+
form: "single",
|
|
36280
|
+
optional: false
|
|
36281
|
+
}],
|
|
36282
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
36283
|
+
name: "deviceId",
|
|
36284
|
+
form: "single",
|
|
36285
|
+
optional: false
|
|
36286
|
+
}],
|
|
36287
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
36288
|
+
name: "deviceId",
|
|
36289
|
+
form: "single",
|
|
36290
|
+
optional: false
|
|
36291
|
+
}],
|
|
36292
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
36293
|
+
name: "deviceId",
|
|
36294
|
+
form: "single",
|
|
36295
|
+
optional: false
|
|
36296
|
+
}],
|
|
36297
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
36298
|
+
name: "deviceId",
|
|
36299
|
+
form: "single",
|
|
36300
|
+
optional: true
|
|
36301
|
+
}],
|
|
36302
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36303
|
+
name: "deviceId",
|
|
36304
|
+
form: "single",
|
|
36305
|
+
optional: false
|
|
36306
|
+
}],
|
|
36307
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
36308
|
+
name: "deviceId",
|
|
36309
|
+
form: "single",
|
|
36310
|
+
optional: false
|
|
36311
|
+
}],
|
|
36312
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
36313
|
+
name: "deviceId",
|
|
36314
|
+
form: "single",
|
|
36315
|
+
optional: true
|
|
36316
|
+
}],
|
|
36317
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
36318
|
+
name: "deviceId",
|
|
36319
|
+
form: "single",
|
|
36320
|
+
optional: false
|
|
36321
|
+
}],
|
|
36322
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
36323
|
+
name: "deviceId",
|
|
36324
|
+
form: "single",
|
|
36325
|
+
optional: false
|
|
36326
|
+
}],
|
|
36327
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
36328
|
+
name: "deviceId",
|
|
36329
|
+
form: "single",
|
|
36330
|
+
optional: false
|
|
36331
|
+
}],
|
|
36332
|
+
"pipelineExecutor.runPipeline": [{
|
|
36333
|
+
name: "deviceId",
|
|
36334
|
+
form: "single",
|
|
36335
|
+
optional: true
|
|
36336
|
+
}],
|
|
36337
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
36338
|
+
name: "deviceId",
|
|
36339
|
+
form: "single",
|
|
36340
|
+
optional: true
|
|
36341
|
+
}],
|
|
36342
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
36343
|
+
name: "deviceId",
|
|
36344
|
+
form: "single",
|
|
36345
|
+
optional: false
|
|
36346
|
+
}],
|
|
36347
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
36348
|
+
name: "deviceId",
|
|
36349
|
+
form: "single",
|
|
36350
|
+
optional: false
|
|
36351
|
+
}],
|
|
36352
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
36353
|
+
name: "deviceId",
|
|
36354
|
+
form: "single",
|
|
36355
|
+
optional: false
|
|
36356
|
+
}],
|
|
36357
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
36358
|
+
name: "deviceId",
|
|
36359
|
+
form: "single",
|
|
36360
|
+
optional: false
|
|
36361
|
+
}],
|
|
36362
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
36363
|
+
name: "deviceId",
|
|
36364
|
+
form: "single",
|
|
36365
|
+
optional: false
|
|
36366
|
+
}],
|
|
36367
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
36368
|
+
name: "deviceId",
|
|
36369
|
+
form: "single",
|
|
36370
|
+
optional: false
|
|
36371
|
+
}],
|
|
36372
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
36373
|
+
name: "deviceIds",
|
|
36374
|
+
form: "array",
|
|
36375
|
+
optional: true
|
|
36376
|
+
}],
|
|
36377
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
36378
|
+
name: "deviceId",
|
|
36379
|
+
form: "single",
|
|
36380
|
+
optional: false
|
|
36381
|
+
}],
|
|
36382
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
36383
|
+
name: "deviceId",
|
|
36384
|
+
form: "single",
|
|
36385
|
+
optional: false
|
|
36386
|
+
}],
|
|
36387
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
36388
|
+
name: "deviceId",
|
|
36389
|
+
form: "single",
|
|
36390
|
+
optional: false
|
|
36391
|
+
}],
|
|
36392
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
36393
|
+
name: "deviceId",
|
|
36394
|
+
form: "single",
|
|
36395
|
+
optional: false
|
|
36396
|
+
}],
|
|
36397
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
36398
|
+
name: "deviceId",
|
|
36399
|
+
form: "single",
|
|
36400
|
+
optional: false
|
|
36401
|
+
}],
|
|
36402
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
36403
|
+
name: "deviceId",
|
|
36404
|
+
form: "single",
|
|
36405
|
+
optional: false
|
|
36406
|
+
}],
|
|
36407
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
36408
|
+
name: "deviceId",
|
|
36409
|
+
form: "single",
|
|
36410
|
+
optional: false
|
|
36411
|
+
}],
|
|
36412
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
36413
|
+
name: "deviceId",
|
|
36414
|
+
form: "single",
|
|
36415
|
+
optional: false
|
|
36416
|
+
}],
|
|
36417
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
36418
|
+
name: "deviceId",
|
|
36419
|
+
form: "single",
|
|
36420
|
+
optional: false
|
|
36421
|
+
}],
|
|
36422
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
36423
|
+
name: "deviceId",
|
|
36424
|
+
form: "single",
|
|
36425
|
+
optional: false
|
|
36426
|
+
}],
|
|
36427
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
36428
|
+
name: "deviceId",
|
|
36429
|
+
form: "single",
|
|
36430
|
+
optional: false
|
|
36431
|
+
}],
|
|
36432
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
36433
|
+
name: "deviceId",
|
|
36434
|
+
form: "single",
|
|
36435
|
+
optional: false
|
|
36436
|
+
}],
|
|
36437
|
+
"pipelineRunner.attachCamera": [{
|
|
36438
|
+
name: "deviceId",
|
|
36439
|
+
form: "single",
|
|
36440
|
+
optional: false
|
|
36441
|
+
}],
|
|
36442
|
+
"pipelineRunner.detachCamera": [{
|
|
36443
|
+
name: "deviceId",
|
|
36444
|
+
form: "single",
|
|
36445
|
+
optional: false
|
|
36446
|
+
}],
|
|
36447
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
36448
|
+
name: "deviceId",
|
|
36449
|
+
form: "single",
|
|
36450
|
+
optional: false
|
|
36451
|
+
}],
|
|
36452
|
+
"pipelineRunner.reportMotion": [{
|
|
36453
|
+
name: "deviceId",
|
|
36454
|
+
form: "single",
|
|
36455
|
+
optional: false
|
|
36456
|
+
}],
|
|
36457
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
36458
|
+
name: "deviceId",
|
|
36459
|
+
form: "single",
|
|
36460
|
+
optional: false
|
|
36461
|
+
}],
|
|
36462
|
+
"pipelineRunner.runStatelessStep": [{
|
|
36463
|
+
name: "sourceDeviceId",
|
|
36464
|
+
form: "single",
|
|
36465
|
+
optional: false
|
|
36466
|
+
}],
|
|
36467
|
+
"plateGallery.getPlateByTrack": [{
|
|
36468
|
+
name: "deviceId",
|
|
36469
|
+
form: "single",
|
|
36470
|
+
optional: false
|
|
36471
|
+
}],
|
|
36472
|
+
"plateGallery.listPlates": [{
|
|
36473
|
+
name: "deviceId",
|
|
36474
|
+
form: "single",
|
|
36475
|
+
optional: true
|
|
36476
|
+
}],
|
|
36477
|
+
"privacyMask.getOptions": [{
|
|
36478
|
+
name: "deviceId",
|
|
36479
|
+
form: "single",
|
|
36480
|
+
optional: false
|
|
36481
|
+
}],
|
|
36482
|
+
"privacyMask.setAudioEnabled": [{
|
|
36483
|
+
name: "deviceId",
|
|
36484
|
+
form: "single",
|
|
36485
|
+
optional: false
|
|
36486
|
+
}],
|
|
36487
|
+
"privacyMask.setMask": [{
|
|
36488
|
+
name: "deviceId",
|
|
36489
|
+
form: "single",
|
|
36490
|
+
optional: false
|
|
36491
|
+
}],
|
|
36492
|
+
"ptz.continuousMove": [{
|
|
36493
|
+
name: "deviceId",
|
|
36494
|
+
form: "single",
|
|
36495
|
+
optional: false
|
|
36496
|
+
}],
|
|
36497
|
+
"ptz.deletePreset": [{
|
|
36498
|
+
name: "deviceId",
|
|
36499
|
+
form: "single",
|
|
36500
|
+
optional: false
|
|
36501
|
+
}],
|
|
36502
|
+
"ptz.getOptions": [{
|
|
36503
|
+
name: "deviceId",
|
|
36504
|
+
form: "single",
|
|
36505
|
+
optional: false
|
|
36506
|
+
}],
|
|
36507
|
+
"ptz.getPosition": [{
|
|
36508
|
+
name: "deviceId",
|
|
36509
|
+
form: "single",
|
|
36510
|
+
optional: false
|
|
36511
|
+
}],
|
|
36512
|
+
"ptz.getPresets": [{
|
|
36513
|
+
name: "deviceId",
|
|
36514
|
+
form: "single",
|
|
36515
|
+
optional: false
|
|
36516
|
+
}],
|
|
36517
|
+
"ptz.goHome": [{
|
|
36518
|
+
name: "deviceId",
|
|
36519
|
+
form: "single",
|
|
36520
|
+
optional: false
|
|
36521
|
+
}],
|
|
36522
|
+
"ptz.goToPreset": [{
|
|
36523
|
+
name: "deviceId",
|
|
36524
|
+
form: "single",
|
|
36525
|
+
optional: false
|
|
36526
|
+
}],
|
|
36527
|
+
"ptz.move": [{
|
|
36528
|
+
name: "deviceId",
|
|
36529
|
+
form: "single",
|
|
36530
|
+
optional: false
|
|
36531
|
+
}],
|
|
36532
|
+
"ptz.savePreset": [{
|
|
36533
|
+
name: "deviceId",
|
|
36534
|
+
form: "single",
|
|
36535
|
+
optional: false
|
|
36536
|
+
}],
|
|
36537
|
+
"ptz.setAutofocus": [{
|
|
36538
|
+
name: "deviceId",
|
|
36539
|
+
form: "single",
|
|
36540
|
+
optional: false
|
|
36541
|
+
}],
|
|
36542
|
+
"ptz.stop": [{
|
|
36543
|
+
name: "deviceId",
|
|
36544
|
+
form: "single",
|
|
36545
|
+
optional: false
|
|
36546
|
+
}],
|
|
36547
|
+
"ptzAutotrack.getSettings": [{
|
|
36548
|
+
name: "deviceId",
|
|
36549
|
+
form: "single",
|
|
36550
|
+
optional: false
|
|
36551
|
+
}],
|
|
36552
|
+
"ptzAutotrack.getStatus": [{
|
|
36553
|
+
name: "deviceId",
|
|
36554
|
+
form: "single",
|
|
36555
|
+
optional: false
|
|
36556
|
+
}],
|
|
36557
|
+
"ptzAutotrack.setEnabled": [{
|
|
36558
|
+
name: "deviceId",
|
|
36559
|
+
form: "single",
|
|
36560
|
+
optional: false
|
|
36561
|
+
}],
|
|
36562
|
+
"ptzAutotrack.setSettings": [{
|
|
36563
|
+
name: "deviceId",
|
|
36564
|
+
form: "single",
|
|
36565
|
+
optional: false
|
|
36566
|
+
}],
|
|
36567
|
+
"reboot.reboot": [{
|
|
36568
|
+
name: "deviceId",
|
|
36569
|
+
form: "single",
|
|
36570
|
+
optional: false
|
|
36571
|
+
}],
|
|
36572
|
+
"recording.deleteFootprint": [{
|
|
36573
|
+
name: "deviceId",
|
|
36574
|
+
form: "single",
|
|
36575
|
+
optional: false
|
|
36576
|
+
}],
|
|
36577
|
+
"recording.getAvailability": [{
|
|
36578
|
+
name: "deviceId",
|
|
36579
|
+
form: "single",
|
|
36580
|
+
optional: false
|
|
36581
|
+
}],
|
|
36582
|
+
"recording.getDaysWithRecordings": [{
|
|
36583
|
+
name: "deviceId",
|
|
36584
|
+
form: "single",
|
|
36585
|
+
optional: false
|
|
36586
|
+
}],
|
|
36587
|
+
"recording.getDeviceConfig": [{
|
|
36588
|
+
name: "deviceId",
|
|
36589
|
+
form: "single",
|
|
36590
|
+
optional: false
|
|
36591
|
+
}],
|
|
36592
|
+
"recording.getPlaybackManifest": [{
|
|
36593
|
+
name: "deviceId",
|
|
36594
|
+
form: "single",
|
|
36595
|
+
optional: false
|
|
36596
|
+
}],
|
|
36597
|
+
"recording.listOpsLog": [{
|
|
36598
|
+
name: "deviceId",
|
|
36599
|
+
form: "single",
|
|
36600
|
+
optional: true
|
|
36601
|
+
}],
|
|
36602
|
+
"recording.locateSegment": [{
|
|
36603
|
+
name: "deviceId",
|
|
36604
|
+
form: "single",
|
|
36605
|
+
optional: false
|
|
36606
|
+
}],
|
|
36607
|
+
"recording.pruneFootage": [{
|
|
36608
|
+
name: "deviceId",
|
|
36609
|
+
form: "single",
|
|
36610
|
+
optional: false
|
|
36611
|
+
}],
|
|
36612
|
+
"recording.readGopBytes": [{
|
|
36613
|
+
name: "deviceId",
|
|
36614
|
+
form: "single",
|
|
36615
|
+
optional: false
|
|
36616
|
+
}],
|
|
36617
|
+
"recording.readSegmentBytes": [{
|
|
36618
|
+
name: "deviceId",
|
|
36619
|
+
form: "single",
|
|
36620
|
+
optional: false
|
|
36621
|
+
}],
|
|
36622
|
+
"recording.relocateFootage": [{
|
|
36623
|
+
name: "deviceId",
|
|
36624
|
+
form: "single",
|
|
36625
|
+
optional: true
|
|
36626
|
+
}],
|
|
36627
|
+
"recording.renderClip": [{
|
|
36628
|
+
name: "deviceId",
|
|
36629
|
+
form: "single",
|
|
36630
|
+
optional: false
|
|
36631
|
+
}],
|
|
36632
|
+
"recording.renderGif": [{
|
|
36633
|
+
name: "deviceId",
|
|
36634
|
+
form: "single",
|
|
36635
|
+
optional: false
|
|
36636
|
+
}],
|
|
36637
|
+
"recording.rescanStorage": [{
|
|
36638
|
+
name: "deviceId",
|
|
36639
|
+
form: "single",
|
|
36640
|
+
optional: false
|
|
36641
|
+
}],
|
|
36642
|
+
"recording.setDeviceConfig": [{
|
|
36643
|
+
name: "deviceId",
|
|
36644
|
+
form: "single",
|
|
36645
|
+
optional: false
|
|
36646
|
+
}],
|
|
36647
|
+
"recording.startStorageMigrationMove": [{
|
|
36648
|
+
name: "deviceId",
|
|
36649
|
+
form: "single",
|
|
36650
|
+
optional: true
|
|
36651
|
+
}],
|
|
36652
|
+
"recordingExport.createExport": [{
|
|
36653
|
+
name: "deviceId",
|
|
36654
|
+
form: "single",
|
|
36655
|
+
optional: false
|
|
36656
|
+
}],
|
|
36657
|
+
"recordingExport.listExports": [{
|
|
36658
|
+
name: "deviceId",
|
|
36659
|
+
form: "single",
|
|
36660
|
+
optional: true
|
|
36661
|
+
}],
|
|
36662
|
+
"sceneMonitor.captureReference": [{
|
|
36663
|
+
name: "deviceId",
|
|
36664
|
+
form: "single",
|
|
36665
|
+
optional: false
|
|
36666
|
+
}],
|
|
36667
|
+
"sceneMonitor.createScene": [{
|
|
36668
|
+
name: "deviceId",
|
|
36669
|
+
form: "single",
|
|
36670
|
+
optional: false
|
|
36671
|
+
}],
|
|
36672
|
+
"sceneMonitor.deleteReference": [{
|
|
36673
|
+
name: "deviceId",
|
|
36674
|
+
form: "single",
|
|
36675
|
+
optional: false
|
|
36676
|
+
}],
|
|
36677
|
+
"sceneMonitor.deleteScene": [{
|
|
36678
|
+
name: "deviceId",
|
|
36679
|
+
form: "single",
|
|
36680
|
+
optional: false
|
|
36681
|
+
}],
|
|
36682
|
+
"sceneMonitor.listScenes": [{
|
|
36683
|
+
name: "deviceId",
|
|
36684
|
+
form: "single",
|
|
36685
|
+
optional: false
|
|
36686
|
+
}],
|
|
36687
|
+
"sceneMonitor.recheckNow": [{
|
|
36688
|
+
name: "deviceId",
|
|
36689
|
+
form: "single",
|
|
36690
|
+
optional: false
|
|
36691
|
+
}],
|
|
36692
|
+
"sceneMonitor.resetScene": [{
|
|
36693
|
+
name: "deviceId",
|
|
36694
|
+
form: "single",
|
|
36695
|
+
optional: false
|
|
36696
|
+
}],
|
|
36697
|
+
"sceneMonitor.updateScene": [{
|
|
36698
|
+
name: "deviceId",
|
|
36699
|
+
form: "single",
|
|
36700
|
+
optional: false
|
|
36701
|
+
}],
|
|
36702
|
+
"scriptRunner.run": [{
|
|
36703
|
+
name: "deviceId",
|
|
36704
|
+
form: "single",
|
|
36705
|
+
optional: false
|
|
36706
|
+
}],
|
|
36707
|
+
"scriptRunner.stop": [{
|
|
36708
|
+
name: "deviceId",
|
|
36709
|
+
form: "single",
|
|
36710
|
+
optional: false
|
|
36711
|
+
}],
|
|
36712
|
+
"snapshot.getSnapshot": [{
|
|
36713
|
+
name: "deviceId",
|
|
36714
|
+
form: "single",
|
|
36715
|
+
optional: false
|
|
36716
|
+
}],
|
|
36717
|
+
"snapshot.getSnapshotLinks": [{
|
|
36718
|
+
name: "targets",
|
|
36719
|
+
form: "object-array",
|
|
36720
|
+
optional: false,
|
|
36721
|
+
itemField: "deviceId"
|
|
36722
|
+
}],
|
|
36723
|
+
"snapshot.getSnapshotOverview": [{
|
|
36724
|
+
name: "deviceIds",
|
|
36725
|
+
form: "array",
|
|
36726
|
+
optional: false
|
|
36727
|
+
}],
|
|
36728
|
+
"snapshot.invalidateCache": [{
|
|
36729
|
+
name: "deviceId",
|
|
36730
|
+
form: "single",
|
|
36731
|
+
optional: false
|
|
36732
|
+
}],
|
|
36733
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
36734
|
+
name: "deviceId",
|
|
36735
|
+
form: "single",
|
|
36736
|
+
optional: false
|
|
36737
|
+
}],
|
|
36738
|
+
"streamBroker.assignProfile": [{
|
|
36739
|
+
name: "deviceId",
|
|
36740
|
+
form: "single",
|
|
36741
|
+
optional: false
|
|
36742
|
+
}],
|
|
36743
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
36744
|
+
name: "deviceId",
|
|
36745
|
+
form: "single",
|
|
36746
|
+
optional: false
|
|
36747
|
+
}],
|
|
36748
|
+
"streamBroker.getStreamWithCodec": [{
|
|
36749
|
+
name: "deviceId",
|
|
36750
|
+
form: "single",
|
|
36751
|
+
optional: false
|
|
36752
|
+
}],
|
|
36753
|
+
"streamBroker.produceEventMedia": [{
|
|
36754
|
+
name: "deviceId",
|
|
36755
|
+
form: "single",
|
|
36756
|
+
optional: false
|
|
36757
|
+
}],
|
|
36758
|
+
"streamBroker.publishCameraStream": [{
|
|
36759
|
+
name: "deviceId",
|
|
36760
|
+
form: "single",
|
|
36761
|
+
optional: false
|
|
36762
|
+
}],
|
|
36763
|
+
"streamBroker.renderPreBufferClip": [{
|
|
36764
|
+
name: "deviceId",
|
|
36765
|
+
form: "single",
|
|
36766
|
+
optional: false
|
|
36767
|
+
}],
|
|
36768
|
+
"streamBroker.restartProfile": [{
|
|
36769
|
+
name: "deviceId",
|
|
36770
|
+
form: "single",
|
|
36771
|
+
optional: false
|
|
36772
|
+
}],
|
|
36773
|
+
"streamBroker.retractCameraStream": [{
|
|
36774
|
+
name: "deviceId",
|
|
36775
|
+
form: "single",
|
|
36776
|
+
optional: false
|
|
36777
|
+
}],
|
|
36778
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
36779
|
+
name: "deviceId",
|
|
36780
|
+
form: "single",
|
|
36781
|
+
optional: false
|
|
36782
|
+
}],
|
|
36783
|
+
"streamBroker.unassignProfile": [{
|
|
36784
|
+
name: "deviceId",
|
|
36785
|
+
form: "single",
|
|
36786
|
+
optional: false
|
|
36787
|
+
}],
|
|
36788
|
+
"streamCatalog.getCatalog": [{
|
|
36789
|
+
name: "deviceId",
|
|
36790
|
+
form: "single",
|
|
36791
|
+
optional: false
|
|
36792
|
+
}],
|
|
36793
|
+
"streamParams.getConfigSchema": [{
|
|
36794
|
+
name: "deviceId",
|
|
36795
|
+
form: "single",
|
|
36796
|
+
optional: false
|
|
36797
|
+
}],
|
|
36798
|
+
"streamParams.getOptions": [{
|
|
36799
|
+
name: "deviceId",
|
|
36800
|
+
form: "single",
|
|
36801
|
+
optional: false
|
|
36802
|
+
}],
|
|
36803
|
+
"streamParams.setProfile": [{
|
|
36804
|
+
name: "deviceId",
|
|
36805
|
+
form: "single",
|
|
36806
|
+
optional: false
|
|
36807
|
+
}],
|
|
36808
|
+
"switch.setState": [{
|
|
36809
|
+
name: "deviceId",
|
|
36810
|
+
form: "single",
|
|
36811
|
+
optional: false
|
|
36812
|
+
}],
|
|
36813
|
+
"vacuumControl.locate": [{
|
|
36814
|
+
name: "deviceId",
|
|
36815
|
+
form: "single",
|
|
36816
|
+
optional: false
|
|
36817
|
+
}],
|
|
36818
|
+
"vacuumControl.pause": [{
|
|
36819
|
+
name: "deviceId",
|
|
36820
|
+
form: "single",
|
|
36821
|
+
optional: false
|
|
36822
|
+
}],
|
|
36823
|
+
"vacuumControl.returnToBase": [{
|
|
36824
|
+
name: "deviceId",
|
|
36825
|
+
form: "single",
|
|
36826
|
+
optional: false
|
|
36827
|
+
}],
|
|
36828
|
+
"vacuumControl.setFanSpeed": [{
|
|
36829
|
+
name: "deviceId",
|
|
36830
|
+
form: "single",
|
|
36831
|
+
optional: false
|
|
36832
|
+
}],
|
|
36833
|
+
"vacuumControl.start": [{
|
|
36834
|
+
name: "deviceId",
|
|
36835
|
+
form: "single",
|
|
36836
|
+
optional: false
|
|
36837
|
+
}],
|
|
36838
|
+
"vacuumControl.stop": [{
|
|
36839
|
+
name: "deviceId",
|
|
36840
|
+
form: "single",
|
|
36841
|
+
optional: false
|
|
36842
|
+
}],
|
|
36843
|
+
"valve.close": [{
|
|
36844
|
+
name: "deviceId",
|
|
36845
|
+
form: "single",
|
|
36846
|
+
optional: false
|
|
36847
|
+
}],
|
|
36848
|
+
"valve.open": [{
|
|
36849
|
+
name: "deviceId",
|
|
36850
|
+
form: "single",
|
|
36851
|
+
optional: false
|
|
36852
|
+
}],
|
|
36853
|
+
"valve.setPosition": [{
|
|
36854
|
+
name: "deviceId",
|
|
36855
|
+
form: "single",
|
|
36856
|
+
optional: false
|
|
36857
|
+
}],
|
|
36858
|
+
"valve.stop": [{
|
|
36859
|
+
name: "deviceId",
|
|
36860
|
+
form: "single",
|
|
36861
|
+
optional: false
|
|
36862
|
+
}],
|
|
36863
|
+
"videoclips.getClipPlayback": [{
|
|
36864
|
+
name: "deviceId",
|
|
36865
|
+
form: "single",
|
|
36866
|
+
optional: false
|
|
36867
|
+
}],
|
|
36868
|
+
"videoclips.listClips": [{
|
|
36869
|
+
name: "deviceId",
|
|
36870
|
+
form: "single",
|
|
36871
|
+
optional: false
|
|
36872
|
+
}],
|
|
36873
|
+
"waterHeater.setAway": [{
|
|
36874
|
+
name: "deviceId",
|
|
36875
|
+
form: "single",
|
|
36876
|
+
optional: false
|
|
36877
|
+
}],
|
|
36878
|
+
"waterHeater.setOperationMode": [{
|
|
36879
|
+
name: "deviceId",
|
|
36880
|
+
form: "single",
|
|
36881
|
+
optional: false
|
|
36882
|
+
}],
|
|
36883
|
+
"waterHeater.setTargetTemp": [{
|
|
36884
|
+
name: "deviceId",
|
|
36885
|
+
form: "single",
|
|
36886
|
+
optional: false
|
|
36887
|
+
}],
|
|
36888
|
+
"webrtcSession.addIceCandidate": [{
|
|
36889
|
+
name: "deviceId",
|
|
36890
|
+
form: "single",
|
|
36891
|
+
optional: false
|
|
36892
|
+
}],
|
|
36893
|
+
"webrtcSession.closeSession": [{
|
|
36894
|
+
name: "deviceId",
|
|
36895
|
+
form: "single",
|
|
36896
|
+
optional: false
|
|
36897
|
+
}],
|
|
36898
|
+
"webrtcSession.createSession": [{
|
|
36899
|
+
name: "deviceId",
|
|
36900
|
+
form: "single",
|
|
36901
|
+
optional: false
|
|
36902
|
+
}],
|
|
36903
|
+
"webrtcSession.getIceCandidates": [{
|
|
36904
|
+
name: "deviceId",
|
|
36905
|
+
form: "single",
|
|
36906
|
+
optional: false
|
|
36907
|
+
}],
|
|
36908
|
+
"webrtcSession.getSessionState": [{
|
|
36909
|
+
name: "deviceId",
|
|
36910
|
+
form: "single",
|
|
36911
|
+
optional: false
|
|
36912
|
+
}],
|
|
36913
|
+
"webrtcSession.handleAnswer": [{
|
|
36914
|
+
name: "deviceId",
|
|
36915
|
+
form: "single",
|
|
36916
|
+
optional: false
|
|
36917
|
+
}],
|
|
36918
|
+
"webrtcSession.handleOffer": [{
|
|
36919
|
+
name: "deviceId",
|
|
36920
|
+
form: "single",
|
|
36921
|
+
optional: false
|
|
36922
|
+
}],
|
|
36923
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
36924
|
+
name: "deviceId",
|
|
36925
|
+
form: "single",
|
|
36926
|
+
optional: false
|
|
36927
|
+
}],
|
|
36928
|
+
"webrtcSession.listStreams": [{
|
|
36929
|
+
name: "deviceId",
|
|
36930
|
+
form: "single",
|
|
36931
|
+
optional: false
|
|
36932
|
+
}],
|
|
36933
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
36934
|
+
name: "deviceId",
|
|
36935
|
+
form: "single",
|
|
36936
|
+
optional: false
|
|
36937
|
+
}],
|
|
36938
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
36939
|
+
name: "deviceId",
|
|
36940
|
+
form: "single",
|
|
36941
|
+
optional: false
|
|
36942
|
+
}],
|
|
36943
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
36944
|
+
name: "deviceId",
|
|
36945
|
+
form: "single",
|
|
36946
|
+
optional: false
|
|
36947
|
+
}],
|
|
36948
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
36949
|
+
name: "deviceId",
|
|
36950
|
+
form: "single",
|
|
36951
|
+
optional: false
|
|
36952
|
+
}],
|
|
36953
|
+
"zoneRules.listRules": [{
|
|
36954
|
+
name: "deviceId",
|
|
36955
|
+
form: "single",
|
|
36956
|
+
optional: false
|
|
36957
|
+
}],
|
|
36958
|
+
"zoneRules.setRules": [{
|
|
36959
|
+
name: "deviceId",
|
|
36960
|
+
form: "single",
|
|
36961
|
+
optional: false
|
|
36962
|
+
}],
|
|
36963
|
+
"zones.addZone": [{
|
|
36964
|
+
name: "deviceId",
|
|
36965
|
+
form: "single",
|
|
36966
|
+
optional: false
|
|
36967
|
+
}],
|
|
36968
|
+
"zones.listZones": [{
|
|
36969
|
+
name: "deviceId",
|
|
36970
|
+
form: "single",
|
|
36971
|
+
optional: false
|
|
36972
|
+
}],
|
|
36973
|
+
"zones.removeZone": [{
|
|
36974
|
+
name: "deviceId",
|
|
36975
|
+
form: "single",
|
|
36976
|
+
optional: false
|
|
36977
|
+
}],
|
|
36978
|
+
"zones.updateZone": [{
|
|
36979
|
+
name: "deviceId",
|
|
36980
|
+
form: "single",
|
|
36981
|
+
optional: false
|
|
36982
|
+
}]
|
|
36983
|
+
});
|
|
34315
36984
|
Object.freeze({
|
|
34316
36985
|
"broker": "broker",
|
|
34317
36986
|
"device-export": "device-export",
|