@camstack/addon-provider-wyze 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +2809 -96
- package/dist/addon.mjs +2809 -96
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -30,7 +30,7 @@ let events = require("events");
|
|
|
30
30
|
let net = require("net");
|
|
31
31
|
net = __toESM(net, 1);
|
|
32
32
|
let node_child_process = require("node:child_process");
|
|
33
|
-
//#region ../types/dist/event-category-
|
|
33
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
34
34
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
35
35
|
EventCategory["SystemBoot"] = "system.boot";
|
|
36
36
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -237,6 +237,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
237
237
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
238
238
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
239
239
|
/**
|
|
240
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
241
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
242
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
243
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
244
|
+
* from the placement candidate set for as long as it holds.
|
|
245
|
+
*
|
|
246
|
+
* This exists because the state was previously invisible: little-unraid
|
|
247
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
248
|
+
* and nothing in the system said so.
|
|
249
|
+
*
|
|
250
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
251
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
252
|
+
* serves it exactly as before.
|
|
253
|
+
*/
|
|
254
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
255
|
+
/**
|
|
256
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
257
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
258
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
259
|
+
* per camera.
|
|
260
|
+
*
|
|
261
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
262
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
263
|
+
* camera" produce byte-identical silence.
|
|
264
|
+
*/
|
|
265
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
266
|
+
/**
|
|
240
267
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
241
268
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
242
269
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3028,6 +3055,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3028
3055
|
fallback: left.fallback
|
|
3029
3056
|
}, ctx);
|
|
3030
3057
|
}
|
|
3058
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3059
|
+
$ZodPipe.init(inst, def);
|
|
3060
|
+
});
|
|
3031
3061
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3032
3062
|
$ZodType.init(inst, def);
|
|
3033
3063
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5213,6 +5243,10 @@ function pipe(in_, out) {
|
|
|
5213
5243
|
out
|
|
5214
5244
|
});
|
|
5215
5245
|
}
|
|
5246
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5247
|
+
ZodPipe.init(inst, def);
|
|
5248
|
+
$ZodPreprocess.init(inst, def);
|
|
5249
|
+
});
|
|
5216
5250
|
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5217
5251
|
$ZodReadonly.init(inst, def);
|
|
5218
5252
|
ZodType.init(inst, def);
|
|
@@ -5271,6 +5305,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5271
5305
|
};
|
|
5272
5306
|
return inst;
|
|
5273
5307
|
}
|
|
5308
|
+
function preprocess(fn, schema) {
|
|
5309
|
+
return new ZodPreprocess({
|
|
5310
|
+
type: "pipe",
|
|
5311
|
+
in: transform(fn),
|
|
5312
|
+
out: schema
|
|
5313
|
+
});
|
|
5314
|
+
}
|
|
5274
5315
|
//#endregion
|
|
5275
5316
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5276
5317
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -10907,6 +10948,8 @@ var QueryFilterSchema = object({
|
|
|
10907
10948
|
where: record(string(), unknown()).optional(),
|
|
10908
10949
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10909
10950
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10951
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10952
|
+
whereNot: record(string(), unknown()).optional(),
|
|
10910
10953
|
orderBy: object({
|
|
10911
10954
|
field: string(),
|
|
10912
10955
|
direction: _enum(["asc", "desc"])
|
|
@@ -10926,7 +10969,8 @@ var QueryFilterSchema = object({
|
|
|
10926
10969
|
var MutationFilterSchema = object({
|
|
10927
10970
|
where: record(string(), unknown()).optional(),
|
|
10928
10971
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10929
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
10972
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10973
|
+
whereNot: record(string(), unknown()).optional()
|
|
10930
10974
|
});
|
|
10931
10975
|
/** A single stored record: `{ id, data }`. */
|
|
10932
10976
|
var SettingsRecordSchema = object({
|
|
@@ -12462,6 +12506,17 @@ var LlmImageSchema = object({
|
|
|
12462
12506
|
bytes: _instanceof(Uint8Array),
|
|
12463
12507
|
mimeType: string()
|
|
12464
12508
|
});
|
|
12509
|
+
/**
|
|
12510
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12511
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12512
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12513
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12514
|
+
*/
|
|
12515
|
+
var LlmRetryPolicySchema = object({
|
|
12516
|
+
enabled: boolean().default(false),
|
|
12517
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12518
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12519
|
+
});
|
|
12465
12520
|
var LlmGenerateBaseInputSchema = object({
|
|
12466
12521
|
/** Collection routing (the notification-output posture). */
|
|
12467
12522
|
addonId: string().optional(),
|
|
@@ -12476,7 +12531,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12476
12531
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12477
12532
|
/** Per-call override of the profile default. */
|
|
12478
12533
|
maxTokens: number().int().positive().optional(),
|
|
12479
|
-
temperature: number().optional()
|
|
12534
|
+
temperature: number().optional(),
|
|
12535
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12536
|
+
topP: number().min(0).max(1).optional(),
|
|
12537
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12538
|
+
topK: number().int().positive().optional(),
|
|
12539
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12540
|
+
timeoutMs: number().int().positive().optional(),
|
|
12541
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12542
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12543
|
+
/**
|
|
12544
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12545
|
+
*
|
|
12546
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12547
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12548
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12549
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12550
|
+
* not generations, and the real load is unbounded.
|
|
12551
|
+
*
|
|
12552
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12553
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12554
|
+
*/
|
|
12555
|
+
requestId: string().optional()
|
|
12480
12556
|
});
|
|
12481
12557
|
/**
|
|
12482
12558
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12489,6 +12565,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12489
12565
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12490
12566
|
* watchdog — operator decision #3).
|
|
12491
12567
|
*/
|
|
12568
|
+
/**
|
|
12569
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12570
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12571
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12572
|
+
* the preview is exactly what the node downloads.
|
|
12573
|
+
*/
|
|
12574
|
+
var ManagedModelExtraFileSchema = object({
|
|
12575
|
+
url: string(),
|
|
12576
|
+
filename: string(),
|
|
12577
|
+
sizeBytes: number(),
|
|
12578
|
+
sha256: string().optional()
|
|
12579
|
+
});
|
|
12492
12580
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12493
12581
|
object({
|
|
12494
12582
|
kind: literal("catalog"),
|
|
@@ -12497,7 +12585,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12497
12585
|
object({
|
|
12498
12586
|
kind: literal("url"),
|
|
12499
12587
|
url: string(),
|
|
12500
|
-
sha256: string().optional()
|
|
12588
|
+
sha256: string().optional(),
|
|
12589
|
+
/** Picker/status label; the file basename when absent. */
|
|
12590
|
+
label: string().optional(),
|
|
12591
|
+
sizeBytes: number().optional(),
|
|
12592
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12501
12593
|
}),
|
|
12502
12594
|
object({
|
|
12503
12595
|
kind: literal("path"),
|
|
@@ -12515,13 +12607,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12515
12607
|
gpuLayers: number().int().default(0),
|
|
12516
12608
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12517
12609
|
threads: number().int().optional(),
|
|
12518
|
-
/** Concurrent slots. */
|
|
12610
|
+
/** Concurrent slots (`--parallel`). */
|
|
12519
12611
|
parallel: number().int().default(1),
|
|
12612
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12613
|
+
batchSize: number().int().positive().optional(),
|
|
12614
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12615
|
+
ubatchSize: number().int().positive().optional(),
|
|
12616
|
+
/**
|
|
12617
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12618
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12619
|
+
*/
|
|
12620
|
+
flashAttention: boolean().default(false),
|
|
12621
|
+
/**
|
|
12622
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12623
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12624
|
+
* what the RAM budget is counting.
|
|
12625
|
+
*/
|
|
12626
|
+
mlock: boolean().default(false),
|
|
12627
|
+
/**
|
|
12628
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12629
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12630
|
+
* store produces on every first token.
|
|
12631
|
+
*/
|
|
12632
|
+
noMmap: boolean().default(false),
|
|
12633
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12634
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12635
|
+
cacheTypeK: _enum([
|
|
12636
|
+
"f32",
|
|
12637
|
+
"f16",
|
|
12638
|
+
"q8_0",
|
|
12639
|
+
"q5_1",
|
|
12640
|
+
"q5_0",
|
|
12641
|
+
"q4_1",
|
|
12642
|
+
"q4_0"
|
|
12643
|
+
]).optional(),
|
|
12644
|
+
cacheTypeV: _enum([
|
|
12645
|
+
"f32",
|
|
12646
|
+
"f16",
|
|
12647
|
+
"q8_0",
|
|
12648
|
+
"q5_1",
|
|
12649
|
+
"q5_0",
|
|
12650
|
+
"q4_1",
|
|
12651
|
+
"q4_0"
|
|
12652
|
+
]).optional(),
|
|
12653
|
+
/**
|
|
12654
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12655
|
+
* (which most vision chat templates need and some language-only models
|
|
12656
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12657
|
+
*
|
|
12658
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12659
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12660
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12661
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12662
|
+
* twice (D62).
|
|
12663
|
+
*/
|
|
12664
|
+
extraArgs: array(string()).default([]),
|
|
12520
12665
|
/** Else lazy: first generate boots it. */
|
|
12521
12666
|
autoStart: boolean().default(false),
|
|
12522
12667
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12523
12668
|
idleStopMinutes: number().int().default(30)
|
|
12524
12669
|
});
|
|
12670
|
+
/**
|
|
12671
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12672
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12673
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12674
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12675
|
+
*/
|
|
12676
|
+
var LlmDownloadProgressSchema = object({
|
|
12677
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12678
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12679
|
+
file: string(),
|
|
12680
|
+
fileIndex: number().int(),
|
|
12681
|
+
fileCount: number().int(),
|
|
12682
|
+
/** Across the WHOLE install, not the current file. */
|
|
12683
|
+
downloadedBytes: number(),
|
|
12684
|
+
totalBytes: number().optional()
|
|
12685
|
+
});
|
|
12525
12686
|
var LlmRuntimeStatusSchema = object({
|
|
12526
12687
|
/** Status is ALWAYS node-qualified. */
|
|
12527
12688
|
nodeId: string(),
|
|
@@ -12538,6 +12699,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12538
12699
|
modelPath: string().optional(),
|
|
12539
12700
|
modelId: string().optional(),
|
|
12540
12701
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12702
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12703
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12541
12704
|
lastError: string().optional(),
|
|
12542
12705
|
crashesInWindow: number(),
|
|
12543
12706
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12548,7 +12711,14 @@ var LlmNodeModelSchema = object({
|
|
|
12548
12711
|
file: string(),
|
|
12549
12712
|
sizeBytes: number(),
|
|
12550
12713
|
catalogId: string().optional(),
|
|
12551
|
-
installedAt: number().optional()
|
|
12714
|
+
installedAt: number().optional(),
|
|
12715
|
+
/**
|
|
12716
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12717
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12718
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12719
|
+
* it the picker could list such a file and do nothing with it.
|
|
12720
|
+
*/
|
|
12721
|
+
path: string().optional()
|
|
12552
12722
|
});
|
|
12553
12723
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12554
12724
|
nodeId: string(),
|
|
@@ -12604,10 +12774,47 @@ var LlmProfileSchema = object({
|
|
|
12604
12774
|
baseUrl: string().optional(),
|
|
12605
12775
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12606
12776
|
apiKey: string().optional(),
|
|
12777
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12778
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12779
|
+
* question about a picture nobody sent. */
|
|
12607
12780
|
supportsVision: boolean(),
|
|
12608
12781
|
temperature: number().min(0).max(2).optional(),
|
|
12782
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12783
|
+
topP: number().min(0).max(1).optional(),
|
|
12784
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12785
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12786
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12787
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12788
|
+
topK: number().int().positive().optional(),
|
|
12609
12789
|
maxTokens: number().int().positive().optional(),
|
|
12790
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12791
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12792
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12793
|
+
contextLength: number().int().positive().optional(),
|
|
12794
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12795
|
+
* two system prompts fighting is worse than either alone). */
|
|
12796
|
+
systemPrompt: string().optional(),
|
|
12797
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12610
12798
|
timeoutMs: number().int().positive().default(6e4),
|
|
12799
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12800
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12801
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12802
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12803
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12804
|
+
* GPU load is exactly what happens before them. */
|
|
12805
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12806
|
+
/** Output started then stopped. */
|
|
12807
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12808
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12809
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12810
|
+
retry: LlmRetryPolicySchema.default({
|
|
12811
|
+
enabled: false,
|
|
12812
|
+
maxAttempts: 1
|
|
12813
|
+
}),
|
|
12814
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12815
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12816
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12817
|
+
toolsEnabled: boolean().default(false),
|
|
12611
12818
|
extraHeaders: record(string(), string()).optional(),
|
|
12612
12819
|
/** kind === 'managed-local' only (spec §4). */
|
|
12613
12820
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12657,6 +12864,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12657
12864
|
/** Vision models: companion projector file. */
|
|
12658
12865
|
mmprojUrl: string().optional()
|
|
12659
12866
|
});
|
|
12867
|
+
/**
|
|
12868
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12869
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12870
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12871
|
+
* exception.
|
|
12872
|
+
*
|
|
12873
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12874
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12875
|
+
*/
|
|
12876
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12877
|
+
ok: literal(true),
|
|
12878
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12879
|
+
model: ManagedModelRefSchema,
|
|
12880
|
+
label: string(),
|
|
12881
|
+
repo: string(),
|
|
12882
|
+
quantization: string(),
|
|
12883
|
+
purpose: _enum(["text", "vision"]),
|
|
12884
|
+
totalBytes: number(),
|
|
12885
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12886
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12887
|
+
extraFilenames: array(string())
|
|
12888
|
+
}), object({
|
|
12889
|
+
ok: literal(false),
|
|
12890
|
+
code: string(),
|
|
12891
|
+
message: string(),
|
|
12892
|
+
candidates: array(string()).optional(),
|
|
12893
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12894
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12895
|
+
requiredBytes: number().optional()
|
|
12896
|
+
})]);
|
|
12660
12897
|
var LlmRuntimeNodeSchema = object({
|
|
12661
12898
|
nodeId: string(),
|
|
12662
12899
|
reachable: boolean(),
|
|
@@ -12669,7 +12906,10 @@ var ProfileRefInputSchema = object({
|
|
|
12669
12906
|
addonId: string(),
|
|
12670
12907
|
profileId: string()
|
|
12671
12908
|
});
|
|
12672
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12909
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12910
|
+
addonId: string().optional(),
|
|
12911
|
+
requestId: string()
|
|
12912
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12673
12913
|
kind: "mutation",
|
|
12674
12914
|
auth: "admin"
|
|
12675
12915
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12690,6 +12930,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12690
12930
|
consumer: string().optional(),
|
|
12691
12931
|
profileId: string().optional()
|
|
12692
12932
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
12933
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12934
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12935
|
+
ref: string(),
|
|
12936
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12937
|
+
maxBytes: number().positive().optional()
|
|
12938
|
+
}), HfModelResolutionSchema, {
|
|
12939
|
+
kind: "mutation",
|
|
12940
|
+
auth: "admin"
|
|
12941
|
+
}), method(object({
|
|
12693
12942
|
nodeId: string(),
|
|
12694
12943
|
model: ManagedModelRefSchema
|
|
12695
12944
|
}), _void(), {
|
|
@@ -14337,6 +14586,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14337
14586
|
"stream-offline",
|
|
14338
14587
|
"node-online",
|
|
14339
14588
|
"node-offline",
|
|
14589
|
+
"node-inference-unavailable",
|
|
14590
|
+
"detection-blind",
|
|
14340
14591
|
"addon-update-available",
|
|
14341
14592
|
"server-update-available",
|
|
14342
14593
|
"alarm-triggered",
|
|
@@ -14398,7 +14649,16 @@ var NcScheduleSchema = object({
|
|
|
14398
14649
|
});
|
|
14399
14650
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14400
14651
|
var NcPlateMatcherSchema = object({
|
|
14401
|
-
|
|
14652
|
+
/**
|
|
14653
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14654
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14655
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14656
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14657
|
+
*
|
|
14658
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14659
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14660
|
+
*/
|
|
14661
|
+
values: array(string().min(1)),
|
|
14402
14662
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14403
14663
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14404
14664
|
});
|
|
@@ -14432,28 +14692,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14432
14692
|
/**
|
|
14433
14693
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14434
14694
|
*
|
|
14435
|
-
*
|
|
14436
|
-
*
|
|
14437
|
-
*
|
|
14438
|
-
*
|
|
14439
|
-
*
|
|
14440
|
-
*
|
|
14441
|
-
*
|
|
14442
|
-
*
|
|
14443
|
-
*
|
|
14444
|
-
*
|
|
14445
|
-
*
|
|
14446
|
-
*
|
|
14447
|
-
*
|
|
14448
|
-
*
|
|
14449
|
-
*
|
|
14450
|
-
*
|
|
14451
|
-
*
|
|
14452
|
-
*
|
|
14453
|
-
*
|
|
14454
|
-
*
|
|
14455
|
-
*
|
|
14456
|
-
* `
|
|
14695
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14696
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14697
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14698
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14699
|
+
*
|
|
14700
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14701
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14702
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14703
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14704
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14705
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14706
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14707
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14708
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14709
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14710
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14711
|
+
* seconds is 100% of nothing.
|
|
14712
|
+
*
|
|
14713
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14714
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14715
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14716
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14717
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14718
|
+
* the wrong question to ask of a sparse classifier.
|
|
14719
|
+
*
|
|
14720
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14721
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14722
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14723
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14724
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14457
14725
|
*
|
|
14458
14726
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14459
14727
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14461,13 +14729,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14461
14729
|
* an operator who typed `dog` mean the same thing.
|
|
14462
14730
|
*/
|
|
14463
14731
|
var NcAudioConditionSchema = object({
|
|
14464
|
-
/**
|
|
14732
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14465
14733
|
labels: array(string().min(1)).min(1).optional(),
|
|
14466
|
-
/**
|
|
14734
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14467
14735
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14468
|
-
/**
|
|
14736
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14469
14737
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14470
|
-
/**
|
|
14738
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14471
14739
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14472
14740
|
});
|
|
14473
14741
|
/**
|
|
@@ -14605,13 +14873,81 @@ var NcRuleActionsSchema = object({
|
|
|
14605
14873
|
*/
|
|
14606
14874
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14607
14875
|
});
|
|
14876
|
+
/**
|
|
14877
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14878
|
+
*
|
|
14879
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14880
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14881
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14882
|
+
*
|
|
14883
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14884
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14885
|
+
*/
|
|
14886
|
+
var NcDeviceStateConditionSchema = object({
|
|
14887
|
+
deviceId: number().int(),
|
|
14888
|
+
/** Any of these matches. */
|
|
14889
|
+
states: array(string().min(1)).min(1)
|
|
14890
|
+
});
|
|
14891
|
+
/**
|
|
14892
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14893
|
+
*
|
|
14894
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14895
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14896
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14897
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14898
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14899
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14900
|
+
* kind exist for it — see D159.
|
|
14901
|
+
*
|
|
14902
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14903
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14904
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14905
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14906
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14907
|
+
*
|
|
14908
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14909
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14910
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14911
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14912
|
+
* override one rule against the scene's own default.
|
|
14913
|
+
*
|
|
14914
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14915
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14916
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14917
|
+
* evidence, in either direction.
|
|
14918
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14919
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14920
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14921
|
+
* reason the operator asked for a latch.
|
|
14922
|
+
*
|
|
14923
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14924
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14925
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14926
|
+
* said out loud in the log rather than dropped in silence.
|
|
14927
|
+
*/
|
|
14928
|
+
var NcSceneConditionSchema = object({
|
|
14929
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14930
|
+
sceneId: string().min(1),
|
|
14931
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14932
|
+
deviceId: number().int().optional(),
|
|
14933
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14934
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14935
|
+
/**
|
|
14936
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14937
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14938
|
+
*/
|
|
14939
|
+
latched: boolean().optional()
|
|
14940
|
+
});
|
|
14608
14941
|
var NcConditionsSchema = object({
|
|
14609
14942
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14610
|
-
deviceState:
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14943
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14944
|
+
/**
|
|
14945
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14946
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14947
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14948
|
+
* {@link NcSceneCondition} and D159.
|
|
14949
|
+
*/
|
|
14950
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14615
14951
|
/** Device scope — absent = all devices. */
|
|
14616
14952
|
devices: array(number()).optional(),
|
|
14617
14953
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14637,18 +14973,47 @@ var NcConditionsSchema = object({
|
|
|
14637
14973
|
*/
|
|
14638
14974
|
labelEquals: array(string().min(1)).optional(),
|
|
14639
14975
|
/**
|
|
14640
|
-
*
|
|
14641
|
-
*
|
|
14642
|
-
*
|
|
14976
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
14977
|
+
* is about recognised people at all.
|
|
14978
|
+
*
|
|
14979
|
+
* Three states, and the empty one is the point:
|
|
14980
|
+
*
|
|
14981
|
+
* | value | meaning |
|
|
14982
|
+
* | --- | --- |
|
|
14983
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
14984
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
14985
|
+
* | a list | only these identities |
|
|
14986
|
+
*
|
|
14987
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
14988
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
14989
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
14990
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
14991
|
+
* with the list under it is worse than no switch (D62).
|
|
14992
|
+
*
|
|
14993
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
14994
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
14995
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
14996
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
14997
|
+
* `{{label}}` renders.
|
|
14998
|
+
*
|
|
14999
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
15000
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
15001
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
15002
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
15003
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14643
15004
|
*/
|
|
14644
15005
|
identities: array(string().min(1)).optional(),
|
|
14645
|
-
/**
|
|
15006
|
+
/**
|
|
15007
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
15008
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
15009
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
15010
|
+
*/
|
|
14646
15011
|
plates: NcPlateMatcherSchema.optional(),
|
|
14647
15012
|
/**
|
|
14648
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14649
|
-
*
|
|
14650
|
-
* identity
|
|
14651
|
-
*
|
|
15013
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
15014
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
15015
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
15016
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14652
15017
|
*/
|
|
14653
15018
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14654
15019
|
/**
|
|
@@ -15040,7 +15405,80 @@ var NcRuleInputSchema = object({
|
|
|
15040
15405
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15041
15406
|
* did, and absent is the only way to say that without a migration.
|
|
15042
15407
|
*/
|
|
15043
|
-
confirm: NcConfirmSchema.optional()
|
|
15408
|
+
confirm: NcConfirmSchema.optional(),
|
|
15409
|
+
/**
|
|
15410
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15411
|
+
*
|
|
15412
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15413
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15414
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15415
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15416
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15417
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15418
|
+
*
|
|
15419
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15420
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15421
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15422
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15423
|
+
*
|
|
15424
|
+
* | value | what happens |
|
|
15425
|
+
* | --- | --- |
|
|
15426
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15427
|
+
* | 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) |
|
|
15428
|
+
*
|
|
15429
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15430
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15431
|
+
* rule authored before this field meant.
|
|
15432
|
+
*
|
|
15433
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15434
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15435
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15436
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15437
|
+
*/
|
|
15438
|
+
waitForEnhancement: boolean().optional(),
|
|
15439
|
+
/**
|
|
15440
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15441
|
+
*
|
|
15442
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15443
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15444
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15445
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15446
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15447
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15448
|
+
*
|
|
15449
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15450
|
+
*
|
|
15451
|
+
* ### Why an idle cutoff and not a window
|
|
15452
|
+
*
|
|
15453
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15454
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15455
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15456
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15457
|
+
*
|
|
15458
|
+
* ### What it replaces
|
|
15459
|
+
*
|
|
15460
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15461
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15462
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15463
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15464
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15465
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15466
|
+
* throttled by the window its own first member spent.
|
|
15467
|
+
*
|
|
15468
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15469
|
+
*
|
|
15470
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15471
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15472
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15473
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15474
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15475
|
+
* path. Neither combination fires twice for one subject.
|
|
15476
|
+
*
|
|
15477
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15478
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15479
|
+
* field existed.
|
|
15480
|
+
*/
|
|
15481
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15044
15482
|
});
|
|
15045
15483
|
/**
|
|
15046
15484
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15147,6 +15585,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15147
15585
|
"occupancy",
|
|
15148
15586
|
"audio",
|
|
15149
15587
|
"deviceState",
|
|
15588
|
+
"scene",
|
|
15150
15589
|
"systemEvent"
|
|
15151
15590
|
]),
|
|
15152
15591
|
operator: _enum([
|
|
@@ -15552,7 +15991,87 @@ var MethodAccessSchema = _enum([
|
|
|
15552
15991
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15553
15992
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15554
15993
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15555
|
-
|
|
15994
|
+
/**
|
|
15995
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
15996
|
+
*
|
|
15997
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
15998
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
15999
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
16000
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
16001
|
+
*
|
|
16002
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
16003
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
16004
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
16005
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
16006
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
16007
|
+
* is NOT covered until the grant is edited.
|
|
16008
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
16009
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
16010
|
+
* re-resolves on the next request.
|
|
16011
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
16012
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
16013
|
+
* null/unset location matches NO `locations` selector.
|
|
16014
|
+
*/
|
|
16015
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
16016
|
+
object({ kind: literal("all") }),
|
|
16017
|
+
object({
|
|
16018
|
+
kind: literal("ids"),
|
|
16019
|
+
ids: array(number().int()).min(1)
|
|
16020
|
+
}),
|
|
16021
|
+
object({
|
|
16022
|
+
kind: literal("types"),
|
|
16023
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16024
|
+
}),
|
|
16025
|
+
object({
|
|
16026
|
+
kind: literal("locations"),
|
|
16027
|
+
locations: array(string().min(1)).min(1)
|
|
16028
|
+
})
|
|
16029
|
+
]);
|
|
16030
|
+
var DeviceTokenScopeSchema = object({
|
|
16031
|
+
type: literal("device"),
|
|
16032
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16033
|
+
selector: DeviceSelectorSchema,
|
|
16034
|
+
access: array(MethodAccessSchema).min(1),
|
|
16035
|
+
/**
|
|
16036
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16037
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16038
|
+
* Direction is parent → children ONLY.
|
|
16039
|
+
*
|
|
16040
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16041
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16042
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16043
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16044
|
+
* explicitly to override that default per grant.
|
|
16045
|
+
*/
|
|
16046
|
+
includeLinked: boolean().optional()
|
|
16047
|
+
});
|
|
16048
|
+
/**
|
|
16049
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16050
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16051
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16052
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16053
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16054
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16055
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16056
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16057
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16058
|
+
*/
|
|
16059
|
+
function migrateLegacyTokenScope(raw) {
|
|
16060
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16061
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16062
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16063
|
+
const targets = Reflect.get(raw, "targets");
|
|
16064
|
+
if (!Array.isArray(targets)) return raw;
|
|
16065
|
+
return {
|
|
16066
|
+
type: "device",
|
|
16067
|
+
selector: {
|
|
16068
|
+
kind: "ids",
|
|
16069
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16070
|
+
},
|
|
16071
|
+
access: Reflect.get(raw, "access")
|
|
16072
|
+
};
|
|
16073
|
+
}
|
|
16074
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15556
16075
|
object({
|
|
15557
16076
|
type: literal("category"),
|
|
15558
16077
|
target: CapScopeSchema,
|
|
@@ -15568,18 +16087,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15568
16087
|
target: string(),
|
|
15569
16088
|
access: array(MethodAccessSchema).min(1)
|
|
15570
16089
|
}),
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
/**
|
|
15574
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15575
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15576
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15577
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15578
|
-
*/
|
|
15579
|
-
targets: array(string()).min(1),
|
|
15580
|
-
access: array(MethodAccessSchema).min(1)
|
|
15581
|
-
})
|
|
15582
|
-
]);
|
|
16090
|
+
DeviceTokenScopeSchema
|
|
16091
|
+
]));
|
|
15583
16092
|
object({
|
|
15584
16093
|
id: string(),
|
|
15585
16094
|
username: string(),
|
|
@@ -15896,7 +16405,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15896
16405
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15897
16406
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15898
16407
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15899
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16408
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15900
16409
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15901
16410
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15902
16411
|
* (`getObjectEvents` et al.).
|
|
@@ -16032,7 +16541,21 @@ union([literal(1), literal(2)]);
|
|
|
16032
16541
|
var LabelAttributionSchema = object({
|
|
16033
16542
|
stepId: string(),
|
|
16034
16543
|
modelId: string().optional(),
|
|
16035
|
-
decidedAt: number()
|
|
16544
|
+
decidedAt: number(),
|
|
16545
|
+
/**
|
|
16546
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16547
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16548
|
+
*
|
|
16549
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16550
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16551
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16552
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16553
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16554
|
+
*
|
|
16555
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16556
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16557
|
+
*/
|
|
16558
|
+
identityId: string().optional()
|
|
16036
16559
|
});
|
|
16037
16560
|
/**
|
|
16038
16561
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16169,6 +16692,28 @@ var TrackSchema = object({
|
|
|
16169
16692
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16170
16693
|
*/
|
|
16171
16694
|
hasFace: boolean().optional(),
|
|
16695
|
+
/**
|
|
16696
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16697
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16698
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16699
|
+
*
|
|
16700
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16701
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16702
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16703
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16704
|
+
* stop. This is the composition note that makes the row true.
|
|
16705
|
+
*
|
|
16706
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16707
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16708
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16709
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16710
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16711
|
+
*
|
|
16712
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16713
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16714
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16715
|
+
*/
|
|
16716
|
+
hasRider: boolean().optional(),
|
|
16172
16717
|
...TrackFlagFields,
|
|
16173
16718
|
...TrackRetrainFields
|
|
16174
16719
|
});
|
|
@@ -16518,7 +17063,10 @@ var RecentTracksQueryInput = object({
|
|
|
16518
17063
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16519
17064
|
cursor: string().optional(),
|
|
16520
17065
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16521
|
-
projection: TrackProjectionSchema.optional()
|
|
17066
|
+
projection: TrackProjectionSchema.optional(),
|
|
17067
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
17068
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
17069
|
+
includeStationary: boolean().optional()
|
|
16522
17070
|
});
|
|
16523
17071
|
var RecentTracksPageSchema = object({
|
|
16524
17072
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16736,7 +17284,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16736
17284
|
zone: TrackZoneFilterSchema.optional(),
|
|
16737
17285
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16738
17286
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16739
|
-
projection: TrackProjectionSchema.optional()
|
|
17287
|
+
projection: TrackProjectionSchema.optional(),
|
|
17288
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
17289
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
17290
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
17291
|
+
includeStationary: boolean().optional()
|
|
16740
17292
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16741
17293
|
kind: "mutation",
|
|
16742
17294
|
auth: "admin"
|
|
@@ -16900,11 +17452,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16900
17452
|
auth: "admin"
|
|
16901
17453
|
}), method(object({
|
|
16902
17454
|
eventId: string(),
|
|
16903
|
-
kind: MediaFileKindEnum.optional()
|
|
17455
|
+
kind: MediaFileKindEnum.optional(),
|
|
17456
|
+
deviceId: number()
|
|
17457
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17458
|
+
trackId: string(),
|
|
17459
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17460
|
+
deviceId: number()
|
|
16904
17461
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16905
17462
|
trackId: string(),
|
|
16906
|
-
|
|
16907
|
-
}), array(
|
|
17463
|
+
deviceId: number()
|
|
17464
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16908
17465
|
kind: "mutation",
|
|
16909
17466
|
auth: "admin"
|
|
16910
17467
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17604,6 +18161,17 @@ var maxSessionHoldMsField = {
|
|
|
17604
18161
|
default: 12e4,
|
|
17605
18162
|
step: 5e3
|
|
17606
18163
|
};
|
|
18164
|
+
/**
|
|
18165
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18166
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18167
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18168
|
+
*/
|
|
18169
|
+
var audioMotionWindowMsField = {
|
|
18170
|
+
min: 5e3,
|
|
18171
|
+
max: 6e5,
|
|
18172
|
+
default: 9e4,
|
|
18173
|
+
step: 5e3
|
|
18174
|
+
};
|
|
17607
18175
|
var motionFpsField = {
|
|
17608
18176
|
min: 1,
|
|
17609
18177
|
max: 30,
|
|
@@ -17635,7 +18203,7 @@ var detectionFpsField = {
|
|
|
17635
18203
|
var occupancyRecheckSecField = {
|
|
17636
18204
|
min: 0,
|
|
17637
18205
|
max: 300,
|
|
17638
|
-
default:
|
|
18206
|
+
default: 300,
|
|
17639
18207
|
step: 5
|
|
17640
18208
|
};
|
|
17641
18209
|
var occupancyRecheckFramesField = {
|
|
@@ -17780,6 +18348,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17780
18348
|
* resolved `CameraDetectionConfig`.
|
|
17781
18349
|
*/
|
|
17782
18350
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18351
|
+
/**
|
|
18352
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18353
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18354
|
+
*
|
|
18355
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18356
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18357
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18358
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18359
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18360
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18361
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18362
|
+
*
|
|
18363
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18364
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18365
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18366
|
+
*
|
|
18367
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18368
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18369
|
+
* `maxSessionHoldMs`.
|
|
18370
|
+
*/
|
|
18371
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17783
18372
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17784
18373
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17785
18374
|
motionStreamId: string(),
|
|
@@ -17875,7 +18464,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17875
18464
|
*/
|
|
17876
18465
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17877
18466
|
});
|
|
17878
|
-
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;
|
|
18467
|
+
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;
|
|
17879
18468
|
/**
|
|
17880
18469
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17881
18470
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18908,6 +19497,39 @@ var snapshotCapability = {
|
|
|
18908
19497
|
etag: string().nullable()
|
|
18909
19498
|
}))),
|
|
18910
19499
|
/**
|
|
19500
|
+
* The full decision chain for ONE device, for the viewer's debug readout —
|
|
19501
|
+
* the answer to "why does this tile show what it shows" in a single poll:
|
|
19502
|
+
* the battery slice the state was derived from, the resolved state + its
|
|
19503
|
+
* reason, the cached frame's identity/age, whether a wake window is open,
|
|
19504
|
+
* and whether a fresh capture is in flight. Cache-only and capture-free:
|
|
19505
|
+
* a debug read must never wake a battery camera.
|
|
19506
|
+
*/
|
|
19507
|
+
getDebugState: systemMethod(object({ deviceId: number() }), object({
|
|
19508
|
+
/** The battery slice as read, or null when the device has none. */
|
|
19509
|
+
battery: object({
|
|
19510
|
+
sleeping: boolean(),
|
|
19511
|
+
lastUpdated: number(),
|
|
19512
|
+
lastContactAt: number().optional()
|
|
19513
|
+
}).nullable(),
|
|
19514
|
+
/** The resolved snapshot state (what the overlay decision used). */
|
|
19515
|
+
state: object({
|
|
19516
|
+
isBattery: boolean(),
|
|
19517
|
+
reason: _enum([
|
|
19518
|
+
"disabled",
|
|
19519
|
+
"sleeping",
|
|
19520
|
+
"unreachable",
|
|
19521
|
+
"waking"
|
|
19522
|
+
]).nullable()
|
|
19523
|
+
}),
|
|
19524
|
+
/** The cached frame behind the next paint. */
|
|
19525
|
+
frame: object({
|
|
19526
|
+
capturedAt: number().nullable(),
|
|
19527
|
+
ageMs: number().nullable()
|
|
19528
|
+
}),
|
|
19529
|
+
/** A wake window is currently open (the Waking overlay's source). */
|
|
19530
|
+
waking: boolean()
|
|
19531
|
+
})),
|
|
19532
|
+
/**
|
|
18911
19533
|
* Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
|
|
18912
19534
|
* that makes those frames current.
|
|
18913
19535
|
*
|
|
@@ -18980,7 +19602,16 @@ targets: array(object({
|
|
|
18980
19602
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18981
19603
|
* NOT refresh in the background. A surface should say so rather than
|
|
18982
19604
|
* present it as current. */
|
|
18983
|
-
sleeping: boolean()
|
|
19605
|
+
sleeping: boolean(),
|
|
19606
|
+
/** Current device state rendered over the cached frame. State images
|
|
19607
|
+
* remain authoritative even when their photographic background is
|
|
19608
|
+
* old; null means the link must carry a current camera frame. */
|
|
19609
|
+
stateReason: _enum([
|
|
19610
|
+
"disabled",
|
|
19611
|
+
"sleeping",
|
|
19612
|
+
"unreachable",
|
|
19613
|
+
"waking"
|
|
19614
|
+
]).nullable()
|
|
18984
19615
|
})))
|
|
18985
19616
|
},
|
|
18986
19617
|
status: {
|
|
@@ -20640,6 +21271,25 @@ var BatteryStatusSchema = object({
|
|
|
20640
21271
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20641
21272
|
lastUpdated: number(),
|
|
20642
21273
|
/**
|
|
21274
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
21275
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
21276
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
21277
|
+
*
|
|
21278
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
21279
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
21280
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
21281
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
21282
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
21283
|
+
*
|
|
21284
|
+
* It is deliberately NOT a clock in the
|
|
21285
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
21286
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
21287
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
21288
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
21289
|
+
* SQLite commit per round-trip.
|
|
21290
|
+
*/
|
|
21291
|
+
lastContactAt: number().optional(),
|
|
21292
|
+
/**
|
|
20643
21293
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20644
21294
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20645
21295
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -23001,7 +23651,41 @@ var intercomCapability = {
|
|
|
23001
23651
|
status: {
|
|
23002
23652
|
schema: IntercomStatusSchema,
|
|
23003
23653
|
kind: "command-driven"
|
|
23004
|
-
}
|
|
23654
|
+
},
|
|
23655
|
+
/**
|
|
23656
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
23657
|
+
*
|
|
23658
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
23659
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
23660
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
23661
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
23662
|
+
* have been published and never received a value, which is the defect the
|
|
23663
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
23664
|
+
* `intercom` was excluded rather than exported.
|
|
23665
|
+
*
|
|
23666
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
23667
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
23668
|
+
* come to disagree. Providers write it through
|
|
23669
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
23670
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
23671
|
+
* the first session rather than after it.
|
|
23672
|
+
*
|
|
23673
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
23674
|
+
* session handle, so a session torn down by a transport death that never
|
|
23675
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
23676
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
23677
|
+
* `restored` — a restart must never restore "talking".
|
|
23678
|
+
*/
|
|
23679
|
+
runtimeState: IntercomStatusSchema,
|
|
23680
|
+
/**
|
|
23681
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
23682
|
+
* session, which by definition does not survive the process that held it.
|
|
23683
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
23684
|
+
*
|
|
23685
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23686
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23687
|
+
*/
|
|
23688
|
+
durability: "session"
|
|
23005
23689
|
};
|
|
23006
23690
|
/**
|
|
23007
23691
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
@@ -25699,7 +26383,7 @@ method(object({
|
|
|
25699
26383
|
toMs: number()
|
|
25700
26384
|
}), RecordingAvailabilitySchema, {
|
|
25701
26385
|
kind: "query",
|
|
25702
|
-
auth: "
|
|
26386
|
+
auth: "protected"
|
|
25703
26387
|
}), method(object({
|
|
25704
26388
|
deviceId: number(),
|
|
25705
26389
|
fromMs: number(),
|
|
@@ -25707,14 +26391,14 @@ method(object({
|
|
|
25707
26391
|
tzOffsetMinutes: number()
|
|
25708
26392
|
}), RecordingDaysSchema, {
|
|
25709
26393
|
kind: "query",
|
|
25710
|
-
auth: "
|
|
26394
|
+
auth: "protected"
|
|
25711
26395
|
}), method(object({
|
|
25712
26396
|
deviceId: number(),
|
|
25713
26397
|
fromMs: number(),
|
|
25714
26398
|
toMs: number()
|
|
25715
26399
|
}), RecordingManifestSchema, {
|
|
25716
26400
|
kind: "query",
|
|
25717
|
-
auth: "
|
|
26401
|
+
auth: "protected"
|
|
25718
26402
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
25719
26403
|
kind: "query",
|
|
25720
26404
|
auth: "admin"
|
|
@@ -26004,14 +26688,77 @@ method(object({
|
|
|
26004
26688
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
26005
26689
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
26006
26690
|
*
|
|
26007
|
-
*
|
|
26008
|
-
*
|
|
26009
|
-
*
|
|
26010
|
-
*
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
*
|
|
26691
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
26692
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
26693
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
26694
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
26695
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
26696
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
26697
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
26698
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
26699
|
+
*
|
|
26700
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
26701
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
26702
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
26703
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
26704
|
+
*
|
|
26705
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
26706
|
+
* availability change; consumers never poll.
|
|
26707
|
+
*/
|
|
26708
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26709
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26710
|
+
* Open by design so more can be added without a wire break.
|
|
26711
|
+
*
|
|
26712
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26713
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26714
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26715
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
26014
26716
|
var SceneConditionSchema = string();
|
|
26717
|
+
/**
|
|
26718
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
26719
|
+
*
|
|
26720
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
26721
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
26722
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
26723
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
26724
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
26725
|
+
* working without it rather than degrading into a permanent complaint.
|
|
26726
|
+
*
|
|
26727
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
26728
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
26729
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
26730
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
26731
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
26732
|
+
* configuration choice instead of a nightly fault.
|
|
26733
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
26734
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
26735
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
26736
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
26737
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
26738
|
+
*
|
|
26739
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
26740
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
26741
|
+
* there would hide a scene the operator never finished setting up.
|
|
26742
|
+
*/
|
|
26743
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
26744
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26745
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26746
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26747
|
+
* and never counts toward hysteresis in either direction. */
|
|
26748
|
+
var SceneVerdictSchema = _enum([
|
|
26749
|
+
"matched",
|
|
26750
|
+
"diverged",
|
|
26751
|
+
"unknown"
|
|
26752
|
+
]);
|
|
26753
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26754
|
+
* silence that reads as "nothing has happened". */
|
|
26755
|
+
var SceneUnavailableSchema = _enum([
|
|
26756
|
+
"no-reference-for-condition",
|
|
26757
|
+
"view-shifted",
|
|
26758
|
+
"no-vision-profile",
|
|
26759
|
+
"encoder-model-changed",
|
|
26760
|
+
"no-snapshot"
|
|
26761
|
+
]);
|
|
26015
26762
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
26016
26763
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
26017
26764
|
var SceneReferenceSchema = object({
|
|
@@ -26019,7 +26766,14 @@ var SceneReferenceSchema = object({
|
|
|
26019
26766
|
modelId: string(),
|
|
26020
26767
|
condition: SceneConditionSchema,
|
|
26021
26768
|
capturedAt: number(),
|
|
26022
|
-
thumbnailMediaId: string().optional()
|
|
26769
|
+
thumbnailMediaId: string().optional(),
|
|
26770
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26771
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26772
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26773
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26774
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26775
|
+
* transition, not per poll. */
|
|
26776
|
+
anchorEmbedding: array(number()).optional()
|
|
26023
26777
|
});
|
|
26024
26778
|
var SceneMonitorStateSchema = object({
|
|
26025
26779
|
id: string(),
|
|
@@ -26041,6 +26795,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
26041
26795
|
profileId: string().optional(),
|
|
26042
26796
|
hysteresisCount: number().int().positive()
|
|
26043
26797
|
})]);
|
|
26798
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26799
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
26800
|
+
* out in silence rather than reporting a fault every night. */
|
|
26801
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
26802
|
+
/**
|
|
26803
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26804
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26805
|
+
*
|
|
26806
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26807
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26808
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26809
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26810
|
+
*/
|
|
26811
|
+
var SceneConfirmSchema = object({
|
|
26812
|
+
enabled: boolean().default(false),
|
|
26813
|
+
prompt: string().min(1).max(1e3),
|
|
26814
|
+
profileId: string().optional(),
|
|
26815
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
26816
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
26817
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
26818
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
26819
|
+
});
|
|
26044
26820
|
var SceneMonitorSchema = object({
|
|
26045
26821
|
id: string(),
|
|
26046
26822
|
label: string(),
|
|
@@ -26059,7 +26835,56 @@ var SceneMonitorSchema = object({
|
|
|
26059
26835
|
lastConfidence: number().nullable(),
|
|
26060
26836
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26061
26837
|
availability: _enum(["ok", "unavailable"]),
|
|
26062
|
-
unavailableReason: string().nullable()
|
|
26838
|
+
unavailableReason: string().nullable(),
|
|
26839
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
26840
|
+
baselineStateId: string().nullable(),
|
|
26841
|
+
/** Which boolean drives notification rules and any export. */
|
|
26842
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
26843
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
26844
|
+
verdict: SceneVerdictSchema,
|
|
26845
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
26846
|
+
latched: boolean(),
|
|
26847
|
+
/** Last reset (or creation). */
|
|
26848
|
+
armedAt: number(),
|
|
26849
|
+
divergedAt: number().nullable(),
|
|
26850
|
+
restoredAt: number().nullable(),
|
|
26851
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
26852
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
26853
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
26854
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
26855
|
+
/** An observation only advances the pending count when it is at least this
|
|
26856
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
26857
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
26858
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
26859
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
26860
|
+
confirm: SceneConfirmSchema.optional(),
|
|
26861
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
26862
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
26863
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
26864
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
26865
|
+
* automation can react to the bin coming back without the operator's own
|
|
26866
|
+
* alarm silently clearing itself. */
|
|
26867
|
+
autoRestore: boolean().default(false),
|
|
26868
|
+
/** What to do when the current light has no reference of its own. See
|
|
26869
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
26870
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
26871
|
+
/**
|
|
26872
|
+
* The light whose checks are currently being SAT OUT under
|
|
26873
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
26874
|
+
*
|
|
26875
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
26876
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
26877
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
26878
|
+
* line, because the alternative is a scene that silently stops answering
|
|
26879
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
26880
|
+
* read as a broken one.
|
|
26881
|
+
*/
|
|
26882
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
26883
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
26884
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
26885
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
26886
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
26887
|
+
coveredConditions: array(SceneConditionSchema)
|
|
26063
26888
|
});
|
|
26064
26889
|
var SceneMonitorStatusSchema = object({
|
|
26065
26890
|
monitors: array(SceneMonitorSchema),
|
|
@@ -26072,12 +26897,6 @@ var sceneMonitorCapability = {
|
|
|
26072
26897
|
kind: "wrapper",
|
|
26073
26898
|
defaultActive: true,
|
|
26074
26899
|
deviceTypes: [DeviceType.Camera],
|
|
26075
|
-
deviceConfig: { ui: {
|
|
26076
|
-
kind: "widget",
|
|
26077
|
-
widgetId: "host/scene-monitor-editor",
|
|
26078
|
-
tab: "scenes",
|
|
26079
|
-
label: "Scenes"
|
|
26080
|
-
} },
|
|
26081
26900
|
methods: {
|
|
26082
26901
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
26083
26902
|
createScene: method(object({
|
|
@@ -26108,7 +26927,15 @@ var sceneMonitorCapability = {
|
|
|
26108
26927
|
"both"
|
|
26109
26928
|
]).optional(),
|
|
26110
26929
|
checkIntervalSec: number().optional(),
|
|
26111
|
-
check: SceneCheckSchema.optional()
|
|
26930
|
+
check: SceneCheckSchema.optional(),
|
|
26931
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
26932
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
26933
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
26934
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
26935
|
+
autoRestore: boolean().optional(),
|
|
26936
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
26937
|
+
/** `null` clears the vision-model adjudicator. */
|
|
26938
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26112
26939
|
})
|
|
26113
26940
|
}), _void(), {
|
|
26114
26941
|
kind: "mutation",
|
|
@@ -26149,6 +26976,26 @@ var sceneMonitorCapability = {
|
|
|
26149
26976
|
}), _void(), {
|
|
26150
26977
|
kind: "mutation",
|
|
26151
26978
|
auth: "admin"
|
|
26979
|
+
}),
|
|
26980
|
+
/**
|
|
26981
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
26982
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
26983
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
26984
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
26985
|
+
* instead of failing silently weeks later.
|
|
26986
|
+
*
|
|
26987
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
26988
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
26989
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
26990
|
+
*/
|
|
26991
|
+
resetScene: method(object({
|
|
26992
|
+
deviceId: number(),
|
|
26993
|
+
monitorId: string(),
|
|
26994
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
26995
|
+
recapture: boolean().optional()
|
|
26996
|
+
}), _void(), {
|
|
26997
|
+
kind: "mutation",
|
|
26998
|
+
auth: "admin"
|
|
26152
26999
|
})
|
|
26153
27000
|
},
|
|
26154
27001
|
status: {
|
|
@@ -26391,13 +27238,63 @@ var CamStreamDescriptorSchema = object({
|
|
|
26391
27238
|
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
26392
27239
|
* broker can reconcile its registry against the authoritative provider state.
|
|
26393
27240
|
*/
|
|
27241
|
+
/**
|
|
27242
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
27243
|
+
*
|
|
27244
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
27245
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
27246
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
27247
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
27248
|
+
* every later pull from a cache.
|
|
27249
|
+
*
|
|
27250
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
27251
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
27252
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
27253
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
27254
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
27255
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
27256
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
27257
|
+
*
|
|
27258
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
27259
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
27260
|
+
* the same reason: the last known value is the only value there is while the
|
|
27261
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
27262
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
27263
|
+
*/
|
|
27264
|
+
var StreamCatalogStateSchema = object({
|
|
27265
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
27266
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
27267
|
+
* one the camera itself once produced. */
|
|
27268
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
27269
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
27270
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
27271
|
+
* re-read. */
|
|
27272
|
+
lastFetchedAt: number()
|
|
27273
|
+
});
|
|
26394
27274
|
var streamCatalogCapability = {
|
|
26395
27275
|
name: "stream-catalog",
|
|
26396
27276
|
scope: "device",
|
|
26397
27277
|
deviceNative: true,
|
|
26398
27278
|
mode: "singleton",
|
|
26399
27279
|
deviceTypes: [DeviceType.Camera],
|
|
26400
|
-
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
|
|
27280
|
+
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
|
|
27281
|
+
runtimeState: StreamCatalogStateSchema,
|
|
27282
|
+
/**
|
|
27283
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
27284
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
27285
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
27286
|
+
*
|
|
27287
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
27288
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
27289
|
+
* a day old and the camera is awake anyway).
|
|
27290
|
+
*
|
|
27291
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27292
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27293
|
+
*/
|
|
27294
|
+
durability: "restored",
|
|
27295
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
27296
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
27297
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26401
27298
|
};
|
|
26402
27299
|
/** One of the camera's stream profiles. */
|
|
26403
27300
|
var StreamProfileSchema = _enum([
|
|
@@ -26652,12 +27549,64 @@ var NetworkAddressSchema = object({
|
|
|
26652
27549
|
family: string(),
|
|
26653
27550
|
internal: boolean()
|
|
26654
27551
|
});
|
|
27552
|
+
/**
|
|
27553
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
27554
|
+
* numbers.
|
|
27555
|
+
*
|
|
27556
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
27557
|
+
* nothing overwrites it.
|
|
27558
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
27559
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
27560
|
+
* the sun-times consumers otherwise fall back to.
|
|
27561
|
+
*
|
|
27562
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
27563
|
+
* own input will eventually trust the guess.
|
|
27564
|
+
*/
|
|
27565
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
27566
|
+
/**
|
|
27567
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
27568
|
+
*
|
|
27569
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
27570
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
27571
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
27572
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
27573
|
+
* coordinates or presses detect.
|
|
27574
|
+
*/
|
|
27575
|
+
var SiteLocationStatusSchema = object({
|
|
27576
|
+
location: object({
|
|
27577
|
+
/** WGS84 decimal degrees. */
|
|
27578
|
+
latitude: number().min(-90).max(90),
|
|
27579
|
+
longitude: number().min(-180).max(180),
|
|
27580
|
+
source: SiteLocationSourceSchema,
|
|
27581
|
+
/** Epoch ms the value was last written. */
|
|
27582
|
+
updatedAt: number(),
|
|
27583
|
+
/**
|
|
27584
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
27585
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
27586
|
+
*/
|
|
27587
|
+
label: string().optional()
|
|
27588
|
+
}).nullable(),
|
|
27589
|
+
derivationAttemptedAt: number().nullable(),
|
|
27590
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
27591
|
+
derivationError: string().nullable()
|
|
27592
|
+
});
|
|
27593
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
27594
|
+
var SetSiteLocationInputSchema = object({
|
|
27595
|
+
latitude: number().min(-90).max(90),
|
|
27596
|
+
longitude: number().min(-180).max(180)
|
|
27597
|
+
}).nullable();
|
|
26655
27598
|
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(), {
|
|
26656
27599
|
kind: "mutation",
|
|
26657
27600
|
auth: "admin"
|
|
26658
27601
|
}), method(_void(), _void(), {
|
|
26659
27602
|
kind: "mutation",
|
|
26660
27603
|
auth: "admin"
|
|
27604
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
27605
|
+
kind: "mutation",
|
|
27606
|
+
auth: "admin"
|
|
27607
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
27608
|
+
kind: "mutation",
|
|
27609
|
+
auth: "admin"
|
|
26661
27610
|
});
|
|
26662
27611
|
/**
|
|
26663
27612
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -27977,6 +28926,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27977
28926
|
humiditySensor: humiditySensorCapability,
|
|
27978
28927
|
image: imageCapability,
|
|
27979
28928
|
imageSettings: imageSettingsCapability,
|
|
28929
|
+
intercom: intercomCapability,
|
|
27980
28930
|
lawnMowerControl: lawnMowerControlCapability,
|
|
27981
28931
|
lockControl: lockControlCapability,
|
|
27982
28932
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -27995,6 +28945,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
27995
28945
|
sceneMonitor: sceneMonitorCapability,
|
|
27996
28946
|
scriptRunner: scriptRunnerCapability,
|
|
27997
28947
|
smoke: smokeCapability,
|
|
28948
|
+
streamCatalog: streamCatalogCapability,
|
|
27998
28949
|
streamParams: streamParamsCapability,
|
|
27999
28950
|
switch: switchCapability,
|
|
28000
28951
|
tamper: tamperCapability,
|
|
@@ -28648,6 +29599,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28648
29599
|
labels: ["probe not implemented"]
|
|
28649
29600
|
};
|
|
28650
29601
|
}
|
|
29602
|
+
/**
|
|
29603
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
29604
|
+
*
|
|
29605
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
29606
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
29607
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
29608
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
29609
|
+
*/
|
|
29610
|
+
restoreConcurrency = 4;
|
|
28651
29611
|
async restoreDevices(savedDevices) {
|
|
28652
29612
|
await this.onRestoreDevices(savedDevices);
|
|
28653
29613
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -28679,15 +29639,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28679
29639
|
*/
|
|
28680
29640
|
async onRestoreDevices(savedDevices) {
|
|
28681
29641
|
const restored = /* @__PURE__ */ new Set();
|
|
28682
|
-
|
|
28683
|
-
|
|
29642
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
29643
|
+
const restoreOne = async (saved) => {
|
|
28684
29644
|
const Class = this.deviceClasses[saved.type];
|
|
28685
29645
|
if (!Class) {
|
|
28686
29646
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
28687
29647
|
tags: { stableId: saved.stableId },
|
|
28688
29648
|
meta: { type: saved.type }
|
|
28689
29649
|
});
|
|
28690
|
-
|
|
29650
|
+
return;
|
|
28691
29651
|
}
|
|
28692
29652
|
try {
|
|
28693
29653
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -28701,7 +29661,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28701
29661
|
}
|
|
28702
29662
|
});
|
|
28703
29663
|
}
|
|
28704
|
-
}
|
|
29664
|
+
};
|
|
29665
|
+
let nextTopLevel = 0;
|
|
29666
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
29667
|
+
for (;;) {
|
|
29668
|
+
const saved = topLevel[nextTopLevel++];
|
|
29669
|
+
if (saved === void 0) return;
|
|
29670
|
+
await restoreOne(saved);
|
|
29671
|
+
}
|
|
29672
|
+
}));
|
|
28705
29673
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
28706
29674
|
for (const saved of childRows) {
|
|
28707
29675
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -30792,6 +31760,12 @@ Object.freeze({
|
|
|
30792
31760
|
addonId: null,
|
|
30793
31761
|
access: "create"
|
|
30794
31762
|
},
|
|
31763
|
+
"llm.cancel": {
|
|
31764
|
+
capName: "llm",
|
|
31765
|
+
capScope: "system",
|
|
31766
|
+
addonId: null,
|
|
31767
|
+
access: "create"
|
|
31768
|
+
},
|
|
30795
31769
|
"llm.deleteModel": {
|
|
30796
31770
|
capName: "llm",
|
|
30797
31771
|
capScope: "system",
|
|
@@ -30876,6 +31850,12 @@ Object.freeze({
|
|
|
30876
31850
|
addonId: null,
|
|
30877
31851
|
access: "view"
|
|
30878
31852
|
},
|
|
31853
|
+
"llm.resolveModelRef": {
|
|
31854
|
+
capName: "llm",
|
|
31855
|
+
capScope: "system",
|
|
31856
|
+
addonId: null,
|
|
31857
|
+
access: "create"
|
|
31858
|
+
},
|
|
30879
31859
|
"llm.setDefault": {
|
|
30880
31860
|
capName: "llm",
|
|
30881
31861
|
capScope: "system",
|
|
@@ -33042,6 +34022,12 @@ Object.freeze({
|
|
|
33042
34022
|
addonId: null,
|
|
33043
34023
|
access: "create"
|
|
33044
34024
|
},
|
|
34025
|
+
"sceneMonitor.resetScene": {
|
|
34026
|
+
capName: "scene-monitor",
|
|
34027
|
+
capScope: "device",
|
|
34028
|
+
addonId: null,
|
|
34029
|
+
access: "delete"
|
|
34030
|
+
},
|
|
33045
34031
|
"sceneMonitor.updateScene": {
|
|
33046
34032
|
capName: "scene-monitor",
|
|
33047
34033
|
capScope: "device",
|
|
@@ -33180,6 +34166,12 @@ Object.freeze({
|
|
|
33180
34166
|
addonId: null,
|
|
33181
34167
|
access: "view"
|
|
33182
34168
|
},
|
|
34169
|
+
"snapshot.getDebugState": {
|
|
34170
|
+
capName: "snapshot",
|
|
34171
|
+
capScope: "device",
|
|
34172
|
+
addonId: null,
|
|
34173
|
+
access: "view"
|
|
34174
|
+
},
|
|
33183
34175
|
"snapshot.getSnapshot": {
|
|
33184
34176
|
capName: "snapshot",
|
|
33185
34177
|
capScope: "device",
|
|
@@ -33720,6 +34712,12 @@ Object.freeze({
|
|
|
33720
34712
|
addonId: null,
|
|
33721
34713
|
access: "create"
|
|
33722
34714
|
},
|
|
34715
|
+
"system.detectSiteLocation": {
|
|
34716
|
+
capName: "system",
|
|
34717
|
+
capScope: "system",
|
|
34718
|
+
addonId: null,
|
|
34719
|
+
access: "create"
|
|
34720
|
+
},
|
|
33723
34721
|
"system.featureFlags": {
|
|
33724
34722
|
capName: "system",
|
|
33725
34723
|
capScope: "system",
|
|
@@ -33738,6 +34736,12 @@ Object.freeze({
|
|
|
33738
34736
|
addonId: null,
|
|
33739
34737
|
access: "view"
|
|
33740
34738
|
},
|
|
34739
|
+
"system.getSiteLocation": {
|
|
34740
|
+
capName: "system",
|
|
34741
|
+
capScope: "system",
|
|
34742
|
+
addonId: null,
|
|
34743
|
+
access: "view"
|
|
34744
|
+
},
|
|
33741
34745
|
"system.health": {
|
|
33742
34746
|
capName: "system",
|
|
33743
34747
|
capScope: "system",
|
|
@@ -33762,6 +34766,12 @@ Object.freeze({
|
|
|
33762
34766
|
addonId: null,
|
|
33763
34767
|
access: "create"
|
|
33764
34768
|
},
|
|
34769
|
+
"system.setSiteLocation": {
|
|
34770
|
+
capName: "system",
|
|
34771
|
+
capScope: "system",
|
|
34772
|
+
addonId: null,
|
|
34773
|
+
access: "create"
|
|
34774
|
+
},
|
|
33765
34775
|
"terminalSession.adoptLegacyMonitor": {
|
|
33766
34776
|
capName: "terminal-session",
|
|
33767
34777
|
capScope: "system",
|
|
@@ -34333,6 +35343,1709 @@ Object.freeze({
|
|
|
34333
35343
|
access: "create"
|
|
34334
35344
|
}
|
|
34335
35345
|
});
|
|
35346
|
+
Object.freeze({
|
|
35347
|
+
"accessories.setChildHidden": [{
|
|
35348
|
+
name: "childDeviceId",
|
|
35349
|
+
form: "single",
|
|
35350
|
+
optional: false
|
|
35351
|
+
}, {
|
|
35352
|
+
name: "deviceId",
|
|
35353
|
+
form: "single",
|
|
35354
|
+
optional: false
|
|
35355
|
+
}],
|
|
35356
|
+
"addonSettings.getDeviceSettings": [{
|
|
35357
|
+
name: "deviceId",
|
|
35358
|
+
form: "single",
|
|
35359
|
+
optional: false
|
|
35360
|
+
}],
|
|
35361
|
+
"addonSettings.updateDeviceSettings": [{
|
|
35362
|
+
name: "deviceId",
|
|
35363
|
+
form: "single",
|
|
35364
|
+
optional: false
|
|
35365
|
+
}],
|
|
35366
|
+
"alarmPanel.arm": [{
|
|
35367
|
+
name: "deviceId",
|
|
35368
|
+
form: "single",
|
|
35369
|
+
optional: false
|
|
35370
|
+
}],
|
|
35371
|
+
"alarmPanel.disarm": [{
|
|
35372
|
+
name: "deviceId",
|
|
35373
|
+
form: "single",
|
|
35374
|
+
optional: false
|
|
35375
|
+
}],
|
|
35376
|
+
"alarmPanel.trigger": [{
|
|
35377
|
+
name: "deviceId",
|
|
35378
|
+
form: "single",
|
|
35379
|
+
optional: false
|
|
35380
|
+
}],
|
|
35381
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
35382
|
+
name: "deviceId",
|
|
35383
|
+
form: "single",
|
|
35384
|
+
optional: false
|
|
35385
|
+
}],
|
|
35386
|
+
"audioAnalyzer.classify": [{
|
|
35387
|
+
name: "deviceId",
|
|
35388
|
+
form: "single",
|
|
35389
|
+
optional: true
|
|
35390
|
+
}],
|
|
35391
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
35392
|
+
name: "deviceId",
|
|
35393
|
+
form: "single",
|
|
35394
|
+
optional: false
|
|
35395
|
+
}],
|
|
35396
|
+
"audioMetrics.getHistory": [{
|
|
35397
|
+
name: "deviceId",
|
|
35398
|
+
form: "single",
|
|
35399
|
+
optional: false
|
|
35400
|
+
}],
|
|
35401
|
+
"automationControl.disable": [{
|
|
35402
|
+
name: "deviceId",
|
|
35403
|
+
form: "single",
|
|
35404
|
+
optional: false
|
|
35405
|
+
}],
|
|
35406
|
+
"automationControl.enable": [{
|
|
35407
|
+
name: "deviceId",
|
|
35408
|
+
form: "single",
|
|
35409
|
+
optional: false
|
|
35410
|
+
}],
|
|
35411
|
+
"automationControl.trigger": [{
|
|
35412
|
+
name: "deviceId",
|
|
35413
|
+
form: "single",
|
|
35414
|
+
optional: false
|
|
35415
|
+
}],
|
|
35416
|
+
"battery.wakeForStream": [{
|
|
35417
|
+
name: "deviceId",
|
|
35418
|
+
form: "single",
|
|
35419
|
+
optional: false
|
|
35420
|
+
}],
|
|
35421
|
+
"brightness.setBrightness": [{
|
|
35422
|
+
name: "deviceId",
|
|
35423
|
+
form: "single",
|
|
35424
|
+
optional: false
|
|
35425
|
+
}],
|
|
35426
|
+
"button.press": [{
|
|
35427
|
+
name: "deviceId",
|
|
35428
|
+
form: "single",
|
|
35429
|
+
optional: false
|
|
35430
|
+
}],
|
|
35431
|
+
"cameraCredentials.getCredentials": [{
|
|
35432
|
+
name: "deviceId",
|
|
35433
|
+
form: "single",
|
|
35434
|
+
optional: false
|
|
35435
|
+
}],
|
|
35436
|
+
"cameraStreams.getBrokerStreams": [{
|
|
35437
|
+
name: "deviceId",
|
|
35438
|
+
form: "single",
|
|
35439
|
+
optional: false
|
|
35440
|
+
}],
|
|
35441
|
+
"cameraStreams.getCameraStreams": [{
|
|
35442
|
+
name: "deviceId",
|
|
35443
|
+
form: "single",
|
|
35444
|
+
optional: false
|
|
35445
|
+
}],
|
|
35446
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
35447
|
+
name: "deviceId",
|
|
35448
|
+
form: "single",
|
|
35449
|
+
optional: false
|
|
35450
|
+
}],
|
|
35451
|
+
"cameraStreams.getRtspEntries": [{
|
|
35452
|
+
name: "deviceId",
|
|
35453
|
+
form: "single",
|
|
35454
|
+
optional: false
|
|
35455
|
+
}],
|
|
35456
|
+
"cameraStreams.pickStream": [{
|
|
35457
|
+
name: "deviceId",
|
|
35458
|
+
form: "single",
|
|
35459
|
+
optional: false
|
|
35460
|
+
}],
|
|
35461
|
+
"climateControl.setFanMode": [{
|
|
35462
|
+
name: "deviceId",
|
|
35463
|
+
form: "single",
|
|
35464
|
+
optional: false
|
|
35465
|
+
}],
|
|
35466
|
+
"climateControl.setMode": [{
|
|
35467
|
+
name: "deviceId",
|
|
35468
|
+
form: "single",
|
|
35469
|
+
optional: false
|
|
35470
|
+
}],
|
|
35471
|
+
"climateControl.setPreset": [{
|
|
35472
|
+
name: "deviceId",
|
|
35473
|
+
form: "single",
|
|
35474
|
+
optional: false
|
|
35475
|
+
}],
|
|
35476
|
+
"climateControl.setSwingHorizontal": [{
|
|
35477
|
+
name: "deviceId",
|
|
35478
|
+
form: "single",
|
|
35479
|
+
optional: false
|
|
35480
|
+
}],
|
|
35481
|
+
"climateControl.setSwingVertical": [{
|
|
35482
|
+
name: "deviceId",
|
|
35483
|
+
form: "single",
|
|
35484
|
+
optional: false
|
|
35485
|
+
}],
|
|
35486
|
+
"climateControl.setTarget": [{
|
|
35487
|
+
name: "deviceId",
|
|
35488
|
+
form: "single",
|
|
35489
|
+
optional: false
|
|
35490
|
+
}],
|
|
35491
|
+
"climateControl.setTargetHumidity": [{
|
|
35492
|
+
name: "deviceId",
|
|
35493
|
+
form: "single",
|
|
35494
|
+
optional: false
|
|
35495
|
+
}],
|
|
35496
|
+
"climateControl.setTargetRange": [{
|
|
35497
|
+
name: "deviceId",
|
|
35498
|
+
form: "single",
|
|
35499
|
+
optional: false
|
|
35500
|
+
}],
|
|
35501
|
+
"color.setColor": [{
|
|
35502
|
+
name: "deviceId",
|
|
35503
|
+
form: "single",
|
|
35504
|
+
optional: false
|
|
35505
|
+
}],
|
|
35506
|
+
"consumables.reset": [{
|
|
35507
|
+
name: "deviceId",
|
|
35508
|
+
form: "single",
|
|
35509
|
+
optional: false
|
|
35510
|
+
}],
|
|
35511
|
+
"control.setValue": [{
|
|
35512
|
+
name: "deviceId",
|
|
35513
|
+
form: "single",
|
|
35514
|
+
optional: false
|
|
35515
|
+
}],
|
|
35516
|
+
"cover.close": [{
|
|
35517
|
+
name: "deviceId",
|
|
35518
|
+
form: "single",
|
|
35519
|
+
optional: false
|
|
35520
|
+
}],
|
|
35521
|
+
"cover.open": [{
|
|
35522
|
+
name: "deviceId",
|
|
35523
|
+
form: "single",
|
|
35524
|
+
optional: false
|
|
35525
|
+
}],
|
|
35526
|
+
"cover.setPosition": [{
|
|
35527
|
+
name: "deviceId",
|
|
35528
|
+
form: "single",
|
|
35529
|
+
optional: false
|
|
35530
|
+
}],
|
|
35531
|
+
"cover.setTiltPosition": [{
|
|
35532
|
+
name: "deviceId",
|
|
35533
|
+
form: "single",
|
|
35534
|
+
optional: false
|
|
35535
|
+
}],
|
|
35536
|
+
"cover.stop": [{
|
|
35537
|
+
name: "deviceId",
|
|
35538
|
+
form: "single",
|
|
35539
|
+
optional: false
|
|
35540
|
+
}],
|
|
35541
|
+
"dayNight.getOptions": [{
|
|
35542
|
+
name: "deviceId",
|
|
35543
|
+
form: "single",
|
|
35544
|
+
optional: false
|
|
35545
|
+
}],
|
|
35546
|
+
"dayNight.setSettings": [{
|
|
35547
|
+
name: "deviceId",
|
|
35548
|
+
form: "single",
|
|
35549
|
+
optional: false
|
|
35550
|
+
}],
|
|
35551
|
+
"decoder.createSession": [{
|
|
35552
|
+
name: "deviceId",
|
|
35553
|
+
form: "single",
|
|
35554
|
+
optional: true
|
|
35555
|
+
}],
|
|
35556
|
+
"deviceAdoption.release": [{
|
|
35557
|
+
name: "camDeviceId",
|
|
35558
|
+
form: "single",
|
|
35559
|
+
optional: false
|
|
35560
|
+
}],
|
|
35561
|
+
"deviceAdoption.resync": [{
|
|
35562
|
+
name: "camDeviceId",
|
|
35563
|
+
form: "single",
|
|
35564
|
+
optional: false
|
|
35565
|
+
}],
|
|
35566
|
+
"deviceDiscovery.adoptDevice": [{
|
|
35567
|
+
name: "deviceId",
|
|
35568
|
+
form: "single",
|
|
35569
|
+
optional: false
|
|
35570
|
+
}],
|
|
35571
|
+
"deviceDiscovery.listDiscovered": [{
|
|
35572
|
+
name: "deviceId",
|
|
35573
|
+
form: "single",
|
|
35574
|
+
optional: false
|
|
35575
|
+
}],
|
|
35576
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
35577
|
+
name: "deviceId",
|
|
35578
|
+
form: "single",
|
|
35579
|
+
optional: false
|
|
35580
|
+
}],
|
|
35581
|
+
"deviceDiscovery.releaseDevice": [{
|
|
35582
|
+
name: "childDeviceId",
|
|
35583
|
+
form: "single",
|
|
35584
|
+
optional: false
|
|
35585
|
+
}, {
|
|
35586
|
+
name: "deviceId",
|
|
35587
|
+
form: "single",
|
|
35588
|
+
optional: false
|
|
35589
|
+
}],
|
|
35590
|
+
"deviceManager.adoptionRelease": [{
|
|
35591
|
+
name: "camDeviceId",
|
|
35592
|
+
form: "single",
|
|
35593
|
+
optional: false
|
|
35594
|
+
}],
|
|
35595
|
+
"deviceManager.adoptionResync": [{
|
|
35596
|
+
name: "camDeviceId",
|
|
35597
|
+
form: "single",
|
|
35598
|
+
optional: false
|
|
35599
|
+
}],
|
|
35600
|
+
"deviceManager.applyInitialMeta": [{
|
|
35601
|
+
name: "deviceId",
|
|
35602
|
+
form: "single",
|
|
35603
|
+
optional: false
|
|
35604
|
+
}, {
|
|
35605
|
+
name: "linkDeviceId",
|
|
35606
|
+
form: "single",
|
|
35607
|
+
optional: true
|
|
35608
|
+
}],
|
|
35609
|
+
"deviceManager.disable": [{
|
|
35610
|
+
name: "deviceId",
|
|
35611
|
+
form: "single",
|
|
35612
|
+
optional: false
|
|
35613
|
+
}],
|
|
35614
|
+
"deviceManager.enable": [{
|
|
35615
|
+
name: "deviceId",
|
|
35616
|
+
form: "single",
|
|
35617
|
+
optional: false
|
|
35618
|
+
}],
|
|
35619
|
+
"deviceManager.getBindings": [{
|
|
35620
|
+
name: "deviceId",
|
|
35621
|
+
form: "single",
|
|
35622
|
+
optional: false
|
|
35623
|
+
}],
|
|
35624
|
+
"deviceManager.getChildren": [{
|
|
35625
|
+
name: "parentDeviceId",
|
|
35626
|
+
form: "single",
|
|
35627
|
+
optional: false
|
|
35628
|
+
}],
|
|
35629
|
+
"deviceManager.getConfigSchema": [{
|
|
35630
|
+
name: "deviceId",
|
|
35631
|
+
form: "single",
|
|
35632
|
+
optional: false
|
|
35633
|
+
}],
|
|
35634
|
+
"deviceManager.getDevice": [{
|
|
35635
|
+
name: "deviceId",
|
|
35636
|
+
form: "single",
|
|
35637
|
+
optional: false
|
|
35638
|
+
}],
|
|
35639
|
+
"deviceManager.getDeviceAggregate": [{
|
|
35640
|
+
name: "deviceId",
|
|
35641
|
+
form: "single",
|
|
35642
|
+
optional: false
|
|
35643
|
+
}],
|
|
35644
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
35645
|
+
name: "deviceId",
|
|
35646
|
+
form: "single",
|
|
35647
|
+
optional: false
|
|
35648
|
+
}],
|
|
35649
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
35650
|
+
name: "deviceId",
|
|
35651
|
+
form: "single",
|
|
35652
|
+
optional: false
|
|
35653
|
+
}],
|
|
35654
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
35655
|
+
name: "deviceId",
|
|
35656
|
+
form: "single",
|
|
35657
|
+
optional: false
|
|
35658
|
+
}],
|
|
35659
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
35660
|
+
name: "deviceIds",
|
|
35661
|
+
form: "array",
|
|
35662
|
+
optional: false
|
|
35663
|
+
}],
|
|
35664
|
+
"deviceManager.getLinkedDevices": [{
|
|
35665
|
+
name: "deviceId",
|
|
35666
|
+
form: "single",
|
|
35667
|
+
optional: false
|
|
35668
|
+
}],
|
|
35669
|
+
"deviceManager.getSettingsSchema": [{
|
|
35670
|
+
name: "deviceId",
|
|
35671
|
+
form: "single",
|
|
35672
|
+
optional: false
|
|
35673
|
+
}],
|
|
35674
|
+
"deviceManager.getStreamProfileMap": [{
|
|
35675
|
+
name: "deviceId",
|
|
35676
|
+
form: "single",
|
|
35677
|
+
optional: false
|
|
35678
|
+
}],
|
|
35679
|
+
"deviceManager.getStreamSources": [{
|
|
35680
|
+
name: "deviceId",
|
|
35681
|
+
form: "single",
|
|
35682
|
+
optional: false
|
|
35683
|
+
}],
|
|
35684
|
+
"deviceManager.getWireableFields": [{
|
|
35685
|
+
name: "deviceId",
|
|
35686
|
+
form: "single",
|
|
35687
|
+
optional: false
|
|
35688
|
+
}],
|
|
35689
|
+
"deviceManager.loadConfig": [{
|
|
35690
|
+
name: "deviceId",
|
|
35691
|
+
form: "single",
|
|
35692
|
+
optional: false
|
|
35693
|
+
}],
|
|
35694
|
+
"deviceManager.loadMeta": [{
|
|
35695
|
+
name: "deviceId",
|
|
35696
|
+
form: "single",
|
|
35697
|
+
optional: false
|
|
35698
|
+
}],
|
|
35699
|
+
"deviceManager.loadRuntimeState": [{
|
|
35700
|
+
name: "deviceId",
|
|
35701
|
+
form: "single",
|
|
35702
|
+
optional: false
|
|
35703
|
+
}],
|
|
35704
|
+
"deviceManager.persistConfig": [{
|
|
35705
|
+
name: "deviceId",
|
|
35706
|
+
form: "single",
|
|
35707
|
+
optional: false
|
|
35708
|
+
}],
|
|
35709
|
+
"deviceManager.probeStreams": [{
|
|
35710
|
+
name: "deviceId",
|
|
35711
|
+
form: "single",
|
|
35712
|
+
optional: false
|
|
35713
|
+
}],
|
|
35714
|
+
"deviceManager.registerDevice": [{
|
|
35715
|
+
name: "parentDeviceId",
|
|
35716
|
+
form: "single",
|
|
35717
|
+
optional: true
|
|
35718
|
+
}],
|
|
35719
|
+
"deviceManager.remove": [{
|
|
35720
|
+
name: "deviceId",
|
|
35721
|
+
form: "single",
|
|
35722
|
+
optional: false
|
|
35723
|
+
}],
|
|
35724
|
+
"deviceManager.removeDevice": [{
|
|
35725
|
+
name: "deviceId",
|
|
35726
|
+
form: "single",
|
|
35727
|
+
optional: false
|
|
35728
|
+
}],
|
|
35729
|
+
"deviceManager.runDeviceAction": [{
|
|
35730
|
+
name: "deviceId",
|
|
35731
|
+
form: "single",
|
|
35732
|
+
optional: false
|
|
35733
|
+
}],
|
|
35734
|
+
"deviceManager.setChildLayout": [{
|
|
35735
|
+
name: "deviceId",
|
|
35736
|
+
form: "single",
|
|
35737
|
+
optional: false
|
|
35738
|
+
}],
|
|
35739
|
+
"deviceManager.setDisabled": [{
|
|
35740
|
+
name: "deviceId",
|
|
35741
|
+
form: "single",
|
|
35742
|
+
optional: false
|
|
35743
|
+
}],
|
|
35744
|
+
"deviceManager.setDisplay": [{
|
|
35745
|
+
name: "deviceId",
|
|
35746
|
+
form: "single",
|
|
35747
|
+
optional: false
|
|
35748
|
+
}],
|
|
35749
|
+
"deviceManager.setIntegrationId": [{
|
|
35750
|
+
name: "deviceId",
|
|
35751
|
+
form: "single",
|
|
35752
|
+
optional: false
|
|
35753
|
+
}],
|
|
35754
|
+
"deviceManager.setLinkDeviceId": [{
|
|
35755
|
+
name: "deviceId",
|
|
35756
|
+
form: "single",
|
|
35757
|
+
optional: false
|
|
35758
|
+
}, {
|
|
35759
|
+
name: "linkDeviceId",
|
|
35760
|
+
form: "single",
|
|
35761
|
+
optional: true
|
|
35762
|
+
}],
|
|
35763
|
+
"deviceManager.setLocation": [{
|
|
35764
|
+
name: "deviceId",
|
|
35765
|
+
form: "single",
|
|
35766
|
+
optional: false
|
|
35767
|
+
}],
|
|
35768
|
+
"deviceManager.setMetadata": [{
|
|
35769
|
+
name: "deviceId",
|
|
35770
|
+
form: "single",
|
|
35771
|
+
optional: false
|
|
35772
|
+
}],
|
|
35773
|
+
"deviceManager.setName": [{
|
|
35774
|
+
name: "deviceId",
|
|
35775
|
+
form: "single",
|
|
35776
|
+
optional: false
|
|
35777
|
+
}],
|
|
35778
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
35779
|
+
name: "deviceId",
|
|
35780
|
+
form: "single",
|
|
35781
|
+
optional: false
|
|
35782
|
+
}],
|
|
35783
|
+
"deviceManager.setRole": [{
|
|
35784
|
+
name: "deviceId",
|
|
35785
|
+
form: "single",
|
|
35786
|
+
optional: false
|
|
35787
|
+
}],
|
|
35788
|
+
"deviceManager.setStreamProfileMap": [{
|
|
35789
|
+
name: "deviceId",
|
|
35790
|
+
form: "single",
|
|
35791
|
+
optional: false
|
|
35792
|
+
}],
|
|
35793
|
+
"deviceManager.setType": [{
|
|
35794
|
+
name: "deviceId",
|
|
35795
|
+
form: "single",
|
|
35796
|
+
optional: false
|
|
35797
|
+
}],
|
|
35798
|
+
"deviceManager.setWrapperActive": [{
|
|
35799
|
+
name: "deviceId",
|
|
35800
|
+
form: "single",
|
|
35801
|
+
optional: false
|
|
35802
|
+
}],
|
|
35803
|
+
"deviceManager.testField": [{
|
|
35804
|
+
name: "deviceId",
|
|
35805
|
+
form: "single",
|
|
35806
|
+
optional: false
|
|
35807
|
+
}],
|
|
35808
|
+
"deviceManager.updateConfig": [{
|
|
35809
|
+
name: "deviceId",
|
|
35810
|
+
form: "single",
|
|
35811
|
+
optional: false
|
|
35812
|
+
}],
|
|
35813
|
+
"deviceManager.updateDeviceField": [{
|
|
35814
|
+
name: "deviceId",
|
|
35815
|
+
form: "single",
|
|
35816
|
+
optional: false
|
|
35817
|
+
}],
|
|
35818
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
35819
|
+
name: "deviceId",
|
|
35820
|
+
form: "single",
|
|
35821
|
+
optional: false
|
|
35822
|
+
}],
|
|
35823
|
+
"deviceOps.getConfigEntries": [{
|
|
35824
|
+
name: "deviceId",
|
|
35825
|
+
form: "single",
|
|
35826
|
+
optional: false
|
|
35827
|
+
}],
|
|
35828
|
+
"deviceOps.getRawState": [{
|
|
35829
|
+
name: "deviceId",
|
|
35830
|
+
form: "single",
|
|
35831
|
+
optional: false
|
|
35832
|
+
}],
|
|
35833
|
+
"deviceOps.getSettingsSchema": [{
|
|
35834
|
+
name: "deviceId",
|
|
35835
|
+
form: "single",
|
|
35836
|
+
optional: false
|
|
35837
|
+
}],
|
|
35838
|
+
"deviceOps.getStreamSources": [{
|
|
35839
|
+
name: "deviceId",
|
|
35840
|
+
form: "single",
|
|
35841
|
+
optional: false
|
|
35842
|
+
}],
|
|
35843
|
+
"deviceOps.removeDevice": [{
|
|
35844
|
+
name: "deviceId",
|
|
35845
|
+
form: "single",
|
|
35846
|
+
optional: false
|
|
35847
|
+
}],
|
|
35848
|
+
"deviceOps.runAction": [{
|
|
35849
|
+
name: "deviceId",
|
|
35850
|
+
form: "single",
|
|
35851
|
+
optional: false
|
|
35852
|
+
}],
|
|
35853
|
+
"deviceOps.setConfig": [{
|
|
35854
|
+
name: "deviceId",
|
|
35855
|
+
form: "single",
|
|
35856
|
+
optional: false
|
|
35857
|
+
}],
|
|
35858
|
+
"deviceState.getCapSlice": [{
|
|
35859
|
+
name: "deviceId",
|
|
35860
|
+
form: "single",
|
|
35861
|
+
optional: false
|
|
35862
|
+
}],
|
|
35863
|
+
"deviceState.getSnapshot": [{
|
|
35864
|
+
name: "deviceId",
|
|
35865
|
+
form: "single",
|
|
35866
|
+
optional: false
|
|
35867
|
+
}],
|
|
35868
|
+
"deviceState.setCapSlice": [{
|
|
35869
|
+
name: "deviceId",
|
|
35870
|
+
form: "single",
|
|
35871
|
+
optional: false
|
|
35872
|
+
}],
|
|
35873
|
+
"events.getEventClipUrl": [{
|
|
35874
|
+
name: "deviceId",
|
|
35875
|
+
form: "single",
|
|
35876
|
+
optional: false
|
|
35877
|
+
}],
|
|
35878
|
+
"events.getEvents": [{
|
|
35879
|
+
name: "deviceId",
|
|
35880
|
+
form: "single",
|
|
35881
|
+
optional: false
|
|
35882
|
+
}],
|
|
35883
|
+
"events.getEventThumbnail": [{
|
|
35884
|
+
name: "deviceId",
|
|
35885
|
+
form: "single",
|
|
35886
|
+
optional: false
|
|
35887
|
+
}],
|
|
35888
|
+
"faceGallery.getFaceByTrack": [{
|
|
35889
|
+
name: "deviceId",
|
|
35890
|
+
form: "single",
|
|
35891
|
+
optional: false
|
|
35892
|
+
}],
|
|
35893
|
+
"faceGallery.listRecentFaces": [{
|
|
35894
|
+
name: "deviceId",
|
|
35895
|
+
form: "single",
|
|
35896
|
+
optional: true
|
|
35897
|
+
}],
|
|
35898
|
+
"fanControl.setDirection": [{
|
|
35899
|
+
name: "deviceId",
|
|
35900
|
+
form: "single",
|
|
35901
|
+
optional: false
|
|
35902
|
+
}],
|
|
35903
|
+
"fanControl.setOscillating": [{
|
|
35904
|
+
name: "deviceId",
|
|
35905
|
+
form: "single",
|
|
35906
|
+
optional: false
|
|
35907
|
+
}],
|
|
35908
|
+
"fanControl.setPercentage": [{
|
|
35909
|
+
name: "deviceId",
|
|
35910
|
+
form: "single",
|
|
35911
|
+
optional: false
|
|
35912
|
+
}],
|
|
35913
|
+
"fanControl.setPreset": [{
|
|
35914
|
+
name: "deviceId",
|
|
35915
|
+
form: "single",
|
|
35916
|
+
optional: false
|
|
35917
|
+
}],
|
|
35918
|
+
"humidifier.setMode": [{
|
|
35919
|
+
name: "deviceId",
|
|
35920
|
+
form: "single",
|
|
35921
|
+
optional: false
|
|
35922
|
+
}],
|
|
35923
|
+
"humidifier.setOn": [{
|
|
35924
|
+
name: "deviceId",
|
|
35925
|
+
form: "single",
|
|
35926
|
+
optional: false
|
|
35927
|
+
}],
|
|
35928
|
+
"humidifier.setTargetHumidity": [{
|
|
35929
|
+
name: "deviceId",
|
|
35930
|
+
form: "single",
|
|
35931
|
+
optional: false
|
|
35932
|
+
}],
|
|
35933
|
+
"imageSettings.getOptions": [{
|
|
35934
|
+
name: "deviceId",
|
|
35935
|
+
form: "single",
|
|
35936
|
+
optional: false
|
|
35937
|
+
}],
|
|
35938
|
+
"imageSettings.setSettings": [{
|
|
35939
|
+
name: "deviceId",
|
|
35940
|
+
form: "single",
|
|
35941
|
+
optional: false
|
|
35942
|
+
}],
|
|
35943
|
+
"intercom.endTalkSession": [{
|
|
35944
|
+
name: "deviceId",
|
|
35945
|
+
form: "single",
|
|
35946
|
+
optional: false
|
|
35947
|
+
}],
|
|
35948
|
+
"intercom.handleAnswer": [{
|
|
35949
|
+
name: "deviceId",
|
|
35950
|
+
form: "single",
|
|
35951
|
+
optional: false
|
|
35952
|
+
}],
|
|
35953
|
+
"intercom.pushTalkAudio": [{
|
|
35954
|
+
name: "deviceId",
|
|
35955
|
+
form: "single",
|
|
35956
|
+
optional: false
|
|
35957
|
+
}],
|
|
35958
|
+
"intercom.startSession": [{
|
|
35959
|
+
name: "deviceId",
|
|
35960
|
+
form: "single",
|
|
35961
|
+
optional: false
|
|
35962
|
+
}],
|
|
35963
|
+
"intercom.startTalkSession": [{
|
|
35964
|
+
name: "deviceId",
|
|
35965
|
+
form: "single",
|
|
35966
|
+
optional: false
|
|
35967
|
+
}],
|
|
35968
|
+
"intercom.stopSession": [{
|
|
35969
|
+
name: "deviceId",
|
|
35970
|
+
form: "single",
|
|
35971
|
+
optional: false
|
|
35972
|
+
}],
|
|
35973
|
+
"lawnMowerControl.dock": [{
|
|
35974
|
+
name: "deviceId",
|
|
35975
|
+
form: "single",
|
|
35976
|
+
optional: false
|
|
35977
|
+
}],
|
|
35978
|
+
"lawnMowerControl.pause": [{
|
|
35979
|
+
name: "deviceId",
|
|
35980
|
+
form: "single",
|
|
35981
|
+
optional: false
|
|
35982
|
+
}],
|
|
35983
|
+
"lawnMowerControl.startMowing": [{
|
|
35984
|
+
name: "deviceId",
|
|
35985
|
+
form: "single",
|
|
35986
|
+
optional: false
|
|
35987
|
+
}],
|
|
35988
|
+
"lockControl.lock": [{
|
|
35989
|
+
name: "deviceId",
|
|
35990
|
+
form: "single",
|
|
35991
|
+
optional: false
|
|
35992
|
+
}],
|
|
35993
|
+
"lockControl.open": [{
|
|
35994
|
+
name: "deviceId",
|
|
35995
|
+
form: "single",
|
|
35996
|
+
optional: false
|
|
35997
|
+
}],
|
|
35998
|
+
"lockControl.unlock": [{
|
|
35999
|
+
name: "deviceId",
|
|
36000
|
+
form: "single",
|
|
36001
|
+
optional: false
|
|
36002
|
+
}],
|
|
36003
|
+
"mediaPlayer.next": [{
|
|
36004
|
+
name: "deviceId",
|
|
36005
|
+
form: "single",
|
|
36006
|
+
optional: false
|
|
36007
|
+
}],
|
|
36008
|
+
"mediaPlayer.pause": [{
|
|
36009
|
+
name: "deviceId",
|
|
36010
|
+
form: "single",
|
|
36011
|
+
optional: false
|
|
36012
|
+
}],
|
|
36013
|
+
"mediaPlayer.play": [{
|
|
36014
|
+
name: "deviceId",
|
|
36015
|
+
form: "single",
|
|
36016
|
+
optional: false
|
|
36017
|
+
}],
|
|
36018
|
+
"mediaPlayer.playMedia": [{
|
|
36019
|
+
name: "deviceId",
|
|
36020
|
+
form: "single",
|
|
36021
|
+
optional: false
|
|
36022
|
+
}],
|
|
36023
|
+
"mediaPlayer.previous": [{
|
|
36024
|
+
name: "deviceId",
|
|
36025
|
+
form: "single",
|
|
36026
|
+
optional: false
|
|
36027
|
+
}],
|
|
36028
|
+
"mediaPlayer.seek": [{
|
|
36029
|
+
name: "deviceId",
|
|
36030
|
+
form: "single",
|
|
36031
|
+
optional: false
|
|
36032
|
+
}],
|
|
36033
|
+
"mediaPlayer.selectSource": [{
|
|
36034
|
+
name: "deviceId",
|
|
36035
|
+
form: "single",
|
|
36036
|
+
optional: false
|
|
36037
|
+
}],
|
|
36038
|
+
"mediaPlayer.setMute": [{
|
|
36039
|
+
name: "deviceId",
|
|
36040
|
+
form: "single",
|
|
36041
|
+
optional: false
|
|
36042
|
+
}],
|
|
36043
|
+
"mediaPlayer.setRepeat": [{
|
|
36044
|
+
name: "deviceId",
|
|
36045
|
+
form: "single",
|
|
36046
|
+
optional: false
|
|
36047
|
+
}],
|
|
36048
|
+
"mediaPlayer.setShuffle": [{
|
|
36049
|
+
name: "deviceId",
|
|
36050
|
+
form: "single",
|
|
36051
|
+
optional: false
|
|
36052
|
+
}],
|
|
36053
|
+
"mediaPlayer.setVolume": [{
|
|
36054
|
+
name: "deviceId",
|
|
36055
|
+
form: "single",
|
|
36056
|
+
optional: false
|
|
36057
|
+
}],
|
|
36058
|
+
"mediaPlayer.stop": [{
|
|
36059
|
+
name: "deviceId",
|
|
36060
|
+
form: "single",
|
|
36061
|
+
optional: false
|
|
36062
|
+
}],
|
|
36063
|
+
"motion.isDetected": [{
|
|
36064
|
+
name: "deviceId",
|
|
36065
|
+
form: "single",
|
|
36066
|
+
optional: false
|
|
36067
|
+
}],
|
|
36068
|
+
"motionDetection.analyze": [{
|
|
36069
|
+
name: "deviceId",
|
|
36070
|
+
form: "single",
|
|
36071
|
+
optional: false
|
|
36072
|
+
}],
|
|
36073
|
+
"motionDetection.removeCamera": [{
|
|
36074
|
+
name: "deviceId",
|
|
36075
|
+
form: "single",
|
|
36076
|
+
optional: false
|
|
36077
|
+
}],
|
|
36078
|
+
"motionTrigger.setMotionTrigger": [{
|
|
36079
|
+
name: "deviceId",
|
|
36080
|
+
form: "single",
|
|
36081
|
+
optional: false
|
|
36082
|
+
}],
|
|
36083
|
+
"motionZones.getOptions": [{
|
|
36084
|
+
name: "deviceId",
|
|
36085
|
+
form: "single",
|
|
36086
|
+
optional: false
|
|
36087
|
+
}],
|
|
36088
|
+
"motionZones.setZone": [{
|
|
36089
|
+
name: "deviceId",
|
|
36090
|
+
form: "single",
|
|
36091
|
+
optional: false
|
|
36092
|
+
}],
|
|
36093
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36094
|
+
name: "deviceId",
|
|
36095
|
+
form: "single",
|
|
36096
|
+
optional: false
|
|
36097
|
+
}],
|
|
36098
|
+
"networkQuality.getDeviceStats": [{
|
|
36099
|
+
name: "deviceId",
|
|
36100
|
+
form: "single",
|
|
36101
|
+
optional: false
|
|
36102
|
+
}],
|
|
36103
|
+
"networkQuality.reportClientStats": [{
|
|
36104
|
+
name: "deviceId",
|
|
36105
|
+
form: "single",
|
|
36106
|
+
optional: false
|
|
36107
|
+
}],
|
|
36108
|
+
"notificationRules.setDeviceMuted": [{
|
|
36109
|
+
name: "deviceId",
|
|
36110
|
+
form: "single",
|
|
36111
|
+
optional: false
|
|
36112
|
+
}],
|
|
36113
|
+
"notifier.cancel": [{
|
|
36114
|
+
name: "deviceId",
|
|
36115
|
+
form: "single",
|
|
36116
|
+
optional: false
|
|
36117
|
+
}],
|
|
36118
|
+
"notifier.send": [{
|
|
36119
|
+
name: "deviceId",
|
|
36120
|
+
form: "single",
|
|
36121
|
+
optional: false
|
|
36122
|
+
}],
|
|
36123
|
+
"osd.setOverlay": [{
|
|
36124
|
+
name: "deviceId",
|
|
36125
|
+
form: "single",
|
|
36126
|
+
optional: false
|
|
36127
|
+
}],
|
|
36128
|
+
"osdManager.clearSlotBinding": [{
|
|
36129
|
+
name: "deviceId",
|
|
36130
|
+
form: "single",
|
|
36131
|
+
optional: false
|
|
36132
|
+
}],
|
|
36133
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36134
|
+
name: "sourceDeviceId",
|
|
36135
|
+
form: "single",
|
|
36136
|
+
optional: false
|
|
36137
|
+
}, {
|
|
36138
|
+
name: "targetDeviceId",
|
|
36139
|
+
form: "single",
|
|
36140
|
+
optional: false
|
|
36141
|
+
}],
|
|
36142
|
+
"osdManager.getDeviceOsd": [{
|
|
36143
|
+
name: "deviceId",
|
|
36144
|
+
form: "single",
|
|
36145
|
+
optional: false
|
|
36146
|
+
}],
|
|
36147
|
+
"osdManager.getSourceCatalog": [{
|
|
36148
|
+
name: "deviceId",
|
|
36149
|
+
form: "single",
|
|
36150
|
+
optional: false
|
|
36151
|
+
}],
|
|
36152
|
+
"osdManager.previewSlot": [{
|
|
36153
|
+
name: "deviceId",
|
|
36154
|
+
form: "single",
|
|
36155
|
+
optional: false
|
|
36156
|
+
}],
|
|
36157
|
+
"osdManager.renderDevice": [{
|
|
36158
|
+
name: "deviceId",
|
|
36159
|
+
form: "single",
|
|
36160
|
+
optional: false
|
|
36161
|
+
}],
|
|
36162
|
+
"osdManager.setSlotBinding": [{
|
|
36163
|
+
name: "deviceId",
|
|
36164
|
+
form: "single",
|
|
36165
|
+
optional: false
|
|
36166
|
+
}],
|
|
36167
|
+
"petFeeder.callPet": [{
|
|
36168
|
+
name: "deviceId",
|
|
36169
|
+
form: "single",
|
|
36170
|
+
optional: false
|
|
36171
|
+
}],
|
|
36172
|
+
"petFeeder.cancelFeed": [{
|
|
36173
|
+
name: "deviceId",
|
|
36174
|
+
form: "single",
|
|
36175
|
+
optional: false
|
|
36176
|
+
}],
|
|
36177
|
+
"petFeeder.feed": [{
|
|
36178
|
+
name: "deviceId",
|
|
36179
|
+
form: "single",
|
|
36180
|
+
optional: false
|
|
36181
|
+
}],
|
|
36182
|
+
"petFeeder.markFoodReplenished": [{
|
|
36183
|
+
name: "deviceId",
|
|
36184
|
+
form: "single",
|
|
36185
|
+
optional: false
|
|
36186
|
+
}],
|
|
36187
|
+
"petFeeder.playSound": [{
|
|
36188
|
+
name: "deviceId",
|
|
36189
|
+
form: "single",
|
|
36190
|
+
optional: false
|
|
36191
|
+
}],
|
|
36192
|
+
"petFeeder.resetDesiccant": [{
|
|
36193
|
+
name: "deviceId",
|
|
36194
|
+
form: "single",
|
|
36195
|
+
optional: false
|
|
36196
|
+
}],
|
|
36197
|
+
"petFeeder.setChildLock": [{
|
|
36198
|
+
name: "deviceId",
|
|
36199
|
+
form: "single",
|
|
36200
|
+
optional: false
|
|
36201
|
+
}],
|
|
36202
|
+
"petFeeder.setFeedSound": [{
|
|
36203
|
+
name: "deviceId",
|
|
36204
|
+
form: "single",
|
|
36205
|
+
optional: false
|
|
36206
|
+
}],
|
|
36207
|
+
"petFeeder.setIndicatorLight": [{
|
|
36208
|
+
name: "deviceId",
|
|
36209
|
+
form: "single",
|
|
36210
|
+
optional: false
|
|
36211
|
+
}],
|
|
36212
|
+
"petFeeder.setVolume": [{
|
|
36213
|
+
name: "deviceId",
|
|
36214
|
+
form: "single",
|
|
36215
|
+
optional: false
|
|
36216
|
+
}],
|
|
36217
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36218
|
+
name: "deviceId",
|
|
36219
|
+
form: "single",
|
|
36220
|
+
optional: false
|
|
36221
|
+
}],
|
|
36222
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36223
|
+
name: "deviceId",
|
|
36224
|
+
form: "single",
|
|
36225
|
+
optional: false
|
|
36226
|
+
}],
|
|
36227
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36228
|
+
name: "deviceId",
|
|
36229
|
+
form: "single",
|
|
36230
|
+
optional: false
|
|
36231
|
+
}],
|
|
36232
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36233
|
+
name: "deviceId",
|
|
36234
|
+
form: "single",
|
|
36235
|
+
optional: false
|
|
36236
|
+
}],
|
|
36237
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36238
|
+
name: "deviceId",
|
|
36239
|
+
form: "single",
|
|
36240
|
+
optional: false
|
|
36241
|
+
}],
|
|
36242
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36243
|
+
name: "deviceId",
|
|
36244
|
+
form: "single",
|
|
36245
|
+
optional: false
|
|
36246
|
+
}],
|
|
36247
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36248
|
+
name: "deviceId",
|
|
36249
|
+
form: "single",
|
|
36250
|
+
optional: false
|
|
36251
|
+
}],
|
|
36252
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36253
|
+
name: "deviceId",
|
|
36254
|
+
form: "single",
|
|
36255
|
+
optional: false
|
|
36256
|
+
}],
|
|
36257
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
36258
|
+
name: "deviceId",
|
|
36259
|
+
form: "single",
|
|
36260
|
+
optional: false
|
|
36261
|
+
}],
|
|
36262
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36263
|
+
name: "deviceId",
|
|
36264
|
+
form: "single",
|
|
36265
|
+
optional: false
|
|
36266
|
+
}],
|
|
36267
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36268
|
+
name: "deviceId",
|
|
36269
|
+
form: "single",
|
|
36270
|
+
optional: false
|
|
36271
|
+
}],
|
|
36272
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36273
|
+
name: "deviceId",
|
|
36274
|
+
form: "single",
|
|
36275
|
+
optional: false
|
|
36276
|
+
}],
|
|
36277
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36278
|
+
name: "deviceIds",
|
|
36279
|
+
form: "array",
|
|
36280
|
+
optional: true
|
|
36281
|
+
}],
|
|
36282
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36283
|
+
name: "deviceId",
|
|
36284
|
+
form: "single",
|
|
36285
|
+
optional: false
|
|
36286
|
+
}],
|
|
36287
|
+
"pipelineAnalytics.getTrack": [{
|
|
36288
|
+
name: "deviceId",
|
|
36289
|
+
form: "single",
|
|
36290
|
+
optional: false
|
|
36291
|
+
}],
|
|
36292
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
36293
|
+
name: "deviceId",
|
|
36294
|
+
form: "single",
|
|
36295
|
+
optional: false
|
|
36296
|
+
}],
|
|
36297
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36298
|
+
name: "deviceIds",
|
|
36299
|
+
form: "array",
|
|
36300
|
+
optional: true
|
|
36301
|
+
}],
|
|
36302
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36303
|
+
name: "deviceIds",
|
|
36304
|
+
form: "array",
|
|
36305
|
+
optional: true
|
|
36306
|
+
}],
|
|
36307
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36308
|
+
name: "deviceId",
|
|
36309
|
+
form: "single",
|
|
36310
|
+
optional: false
|
|
36311
|
+
}],
|
|
36312
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36313
|
+
name: "deviceIds",
|
|
36314
|
+
form: "array",
|
|
36315
|
+
optional: false
|
|
36316
|
+
}],
|
|
36317
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36318
|
+
name: "deviceId",
|
|
36319
|
+
form: "single",
|
|
36320
|
+
optional: true
|
|
36321
|
+
}],
|
|
36322
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36323
|
+
name: "deviceIds",
|
|
36324
|
+
form: "array",
|
|
36325
|
+
optional: false
|
|
36326
|
+
}],
|
|
36327
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36328
|
+
name: "deviceIds",
|
|
36329
|
+
form: "array",
|
|
36330
|
+
optional: true
|
|
36331
|
+
}],
|
|
36332
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
36333
|
+
name: "deviceId",
|
|
36334
|
+
form: "single",
|
|
36335
|
+
optional: false
|
|
36336
|
+
}],
|
|
36337
|
+
"pipelineAnalytics.listTracks": [{
|
|
36338
|
+
name: "deviceId",
|
|
36339
|
+
form: "single",
|
|
36340
|
+
optional: false
|
|
36341
|
+
}],
|
|
36342
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
36343
|
+
name: "deviceId",
|
|
36344
|
+
form: "single",
|
|
36345
|
+
optional: false
|
|
36346
|
+
}],
|
|
36347
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
36348
|
+
name: "deviceId",
|
|
36349
|
+
form: "single",
|
|
36350
|
+
optional: false
|
|
36351
|
+
}],
|
|
36352
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
36353
|
+
name: "deviceId",
|
|
36354
|
+
form: "single",
|
|
36355
|
+
optional: false
|
|
36356
|
+
}],
|
|
36357
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
36358
|
+
name: "deviceId",
|
|
36359
|
+
form: "single",
|
|
36360
|
+
optional: true
|
|
36361
|
+
}],
|
|
36362
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36363
|
+
name: "deviceId",
|
|
36364
|
+
form: "single",
|
|
36365
|
+
optional: false
|
|
36366
|
+
}],
|
|
36367
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
36368
|
+
name: "deviceId",
|
|
36369
|
+
form: "single",
|
|
36370
|
+
optional: false
|
|
36371
|
+
}],
|
|
36372
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
36373
|
+
name: "deviceId",
|
|
36374
|
+
form: "single",
|
|
36375
|
+
optional: true
|
|
36376
|
+
}],
|
|
36377
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
36378
|
+
name: "deviceId",
|
|
36379
|
+
form: "single",
|
|
36380
|
+
optional: false
|
|
36381
|
+
}],
|
|
36382
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
36383
|
+
name: "deviceId",
|
|
36384
|
+
form: "single",
|
|
36385
|
+
optional: false
|
|
36386
|
+
}],
|
|
36387
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
36388
|
+
name: "deviceId",
|
|
36389
|
+
form: "single",
|
|
36390
|
+
optional: false
|
|
36391
|
+
}],
|
|
36392
|
+
"pipelineExecutor.runPipeline": [{
|
|
36393
|
+
name: "deviceId",
|
|
36394
|
+
form: "single",
|
|
36395
|
+
optional: true
|
|
36396
|
+
}],
|
|
36397
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
36398
|
+
name: "deviceId",
|
|
36399
|
+
form: "single",
|
|
36400
|
+
optional: true
|
|
36401
|
+
}],
|
|
36402
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
36403
|
+
name: "deviceId",
|
|
36404
|
+
form: "single",
|
|
36405
|
+
optional: false
|
|
36406
|
+
}],
|
|
36407
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
36408
|
+
name: "deviceId",
|
|
36409
|
+
form: "single",
|
|
36410
|
+
optional: false
|
|
36411
|
+
}],
|
|
36412
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
36413
|
+
name: "deviceId",
|
|
36414
|
+
form: "single",
|
|
36415
|
+
optional: false
|
|
36416
|
+
}],
|
|
36417
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
36418
|
+
name: "deviceId",
|
|
36419
|
+
form: "single",
|
|
36420
|
+
optional: false
|
|
36421
|
+
}],
|
|
36422
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
36423
|
+
name: "deviceId",
|
|
36424
|
+
form: "single",
|
|
36425
|
+
optional: false
|
|
36426
|
+
}],
|
|
36427
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
36428
|
+
name: "deviceId",
|
|
36429
|
+
form: "single",
|
|
36430
|
+
optional: false
|
|
36431
|
+
}],
|
|
36432
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
36433
|
+
name: "deviceIds",
|
|
36434
|
+
form: "array",
|
|
36435
|
+
optional: true
|
|
36436
|
+
}],
|
|
36437
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
36438
|
+
name: "deviceId",
|
|
36439
|
+
form: "single",
|
|
36440
|
+
optional: false
|
|
36441
|
+
}],
|
|
36442
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
36443
|
+
name: "deviceId",
|
|
36444
|
+
form: "single",
|
|
36445
|
+
optional: false
|
|
36446
|
+
}],
|
|
36447
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
36448
|
+
name: "deviceId",
|
|
36449
|
+
form: "single",
|
|
36450
|
+
optional: false
|
|
36451
|
+
}],
|
|
36452
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
36453
|
+
name: "deviceId",
|
|
36454
|
+
form: "single",
|
|
36455
|
+
optional: false
|
|
36456
|
+
}],
|
|
36457
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
36458
|
+
name: "deviceId",
|
|
36459
|
+
form: "single",
|
|
36460
|
+
optional: false
|
|
36461
|
+
}],
|
|
36462
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
36463
|
+
name: "deviceId",
|
|
36464
|
+
form: "single",
|
|
36465
|
+
optional: false
|
|
36466
|
+
}],
|
|
36467
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
36468
|
+
name: "deviceId",
|
|
36469
|
+
form: "single",
|
|
36470
|
+
optional: false
|
|
36471
|
+
}],
|
|
36472
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
36473
|
+
name: "deviceId",
|
|
36474
|
+
form: "single",
|
|
36475
|
+
optional: false
|
|
36476
|
+
}],
|
|
36477
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
36478
|
+
name: "deviceId",
|
|
36479
|
+
form: "single",
|
|
36480
|
+
optional: false
|
|
36481
|
+
}],
|
|
36482
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
36483
|
+
name: "deviceId",
|
|
36484
|
+
form: "single",
|
|
36485
|
+
optional: false
|
|
36486
|
+
}],
|
|
36487
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
36488
|
+
name: "deviceId",
|
|
36489
|
+
form: "single",
|
|
36490
|
+
optional: false
|
|
36491
|
+
}],
|
|
36492
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
36493
|
+
name: "deviceId",
|
|
36494
|
+
form: "single",
|
|
36495
|
+
optional: false
|
|
36496
|
+
}],
|
|
36497
|
+
"pipelineRunner.attachCamera": [{
|
|
36498
|
+
name: "deviceId",
|
|
36499
|
+
form: "single",
|
|
36500
|
+
optional: false
|
|
36501
|
+
}],
|
|
36502
|
+
"pipelineRunner.detachCamera": [{
|
|
36503
|
+
name: "deviceId",
|
|
36504
|
+
form: "single",
|
|
36505
|
+
optional: false
|
|
36506
|
+
}],
|
|
36507
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
36508
|
+
name: "deviceId",
|
|
36509
|
+
form: "single",
|
|
36510
|
+
optional: false
|
|
36511
|
+
}],
|
|
36512
|
+
"pipelineRunner.reportMotion": [{
|
|
36513
|
+
name: "deviceId",
|
|
36514
|
+
form: "single",
|
|
36515
|
+
optional: false
|
|
36516
|
+
}],
|
|
36517
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
36518
|
+
name: "deviceId",
|
|
36519
|
+
form: "single",
|
|
36520
|
+
optional: false
|
|
36521
|
+
}],
|
|
36522
|
+
"pipelineRunner.runStatelessStep": [{
|
|
36523
|
+
name: "sourceDeviceId",
|
|
36524
|
+
form: "single",
|
|
36525
|
+
optional: false
|
|
36526
|
+
}],
|
|
36527
|
+
"plateGallery.getPlateByTrack": [{
|
|
36528
|
+
name: "deviceId",
|
|
36529
|
+
form: "single",
|
|
36530
|
+
optional: false
|
|
36531
|
+
}],
|
|
36532
|
+
"plateGallery.listPlates": [{
|
|
36533
|
+
name: "deviceId",
|
|
36534
|
+
form: "single",
|
|
36535
|
+
optional: true
|
|
36536
|
+
}],
|
|
36537
|
+
"privacyMask.getOptions": [{
|
|
36538
|
+
name: "deviceId",
|
|
36539
|
+
form: "single",
|
|
36540
|
+
optional: false
|
|
36541
|
+
}],
|
|
36542
|
+
"privacyMask.setAudioEnabled": [{
|
|
36543
|
+
name: "deviceId",
|
|
36544
|
+
form: "single",
|
|
36545
|
+
optional: false
|
|
36546
|
+
}],
|
|
36547
|
+
"privacyMask.setMask": [{
|
|
36548
|
+
name: "deviceId",
|
|
36549
|
+
form: "single",
|
|
36550
|
+
optional: false
|
|
36551
|
+
}],
|
|
36552
|
+
"ptz.continuousMove": [{
|
|
36553
|
+
name: "deviceId",
|
|
36554
|
+
form: "single",
|
|
36555
|
+
optional: false
|
|
36556
|
+
}],
|
|
36557
|
+
"ptz.deletePreset": [{
|
|
36558
|
+
name: "deviceId",
|
|
36559
|
+
form: "single",
|
|
36560
|
+
optional: false
|
|
36561
|
+
}],
|
|
36562
|
+
"ptz.getOptions": [{
|
|
36563
|
+
name: "deviceId",
|
|
36564
|
+
form: "single",
|
|
36565
|
+
optional: false
|
|
36566
|
+
}],
|
|
36567
|
+
"ptz.getPosition": [{
|
|
36568
|
+
name: "deviceId",
|
|
36569
|
+
form: "single",
|
|
36570
|
+
optional: false
|
|
36571
|
+
}],
|
|
36572
|
+
"ptz.getPresets": [{
|
|
36573
|
+
name: "deviceId",
|
|
36574
|
+
form: "single",
|
|
36575
|
+
optional: false
|
|
36576
|
+
}],
|
|
36577
|
+
"ptz.goHome": [{
|
|
36578
|
+
name: "deviceId",
|
|
36579
|
+
form: "single",
|
|
36580
|
+
optional: false
|
|
36581
|
+
}],
|
|
36582
|
+
"ptz.goToPreset": [{
|
|
36583
|
+
name: "deviceId",
|
|
36584
|
+
form: "single",
|
|
36585
|
+
optional: false
|
|
36586
|
+
}],
|
|
36587
|
+
"ptz.move": [{
|
|
36588
|
+
name: "deviceId",
|
|
36589
|
+
form: "single",
|
|
36590
|
+
optional: false
|
|
36591
|
+
}],
|
|
36592
|
+
"ptz.savePreset": [{
|
|
36593
|
+
name: "deviceId",
|
|
36594
|
+
form: "single",
|
|
36595
|
+
optional: false
|
|
36596
|
+
}],
|
|
36597
|
+
"ptz.setAutofocus": [{
|
|
36598
|
+
name: "deviceId",
|
|
36599
|
+
form: "single",
|
|
36600
|
+
optional: false
|
|
36601
|
+
}],
|
|
36602
|
+
"ptz.stop": [{
|
|
36603
|
+
name: "deviceId",
|
|
36604
|
+
form: "single",
|
|
36605
|
+
optional: false
|
|
36606
|
+
}],
|
|
36607
|
+
"ptzAutotrack.getSettings": [{
|
|
36608
|
+
name: "deviceId",
|
|
36609
|
+
form: "single",
|
|
36610
|
+
optional: false
|
|
36611
|
+
}],
|
|
36612
|
+
"ptzAutotrack.getStatus": [{
|
|
36613
|
+
name: "deviceId",
|
|
36614
|
+
form: "single",
|
|
36615
|
+
optional: false
|
|
36616
|
+
}],
|
|
36617
|
+
"ptzAutotrack.setEnabled": [{
|
|
36618
|
+
name: "deviceId",
|
|
36619
|
+
form: "single",
|
|
36620
|
+
optional: false
|
|
36621
|
+
}],
|
|
36622
|
+
"ptzAutotrack.setSettings": [{
|
|
36623
|
+
name: "deviceId",
|
|
36624
|
+
form: "single",
|
|
36625
|
+
optional: false
|
|
36626
|
+
}],
|
|
36627
|
+
"reboot.reboot": [{
|
|
36628
|
+
name: "deviceId",
|
|
36629
|
+
form: "single",
|
|
36630
|
+
optional: false
|
|
36631
|
+
}],
|
|
36632
|
+
"recording.deleteFootprint": [{
|
|
36633
|
+
name: "deviceId",
|
|
36634
|
+
form: "single",
|
|
36635
|
+
optional: false
|
|
36636
|
+
}],
|
|
36637
|
+
"recording.getAvailability": [{
|
|
36638
|
+
name: "deviceId",
|
|
36639
|
+
form: "single",
|
|
36640
|
+
optional: false
|
|
36641
|
+
}],
|
|
36642
|
+
"recording.getDaysWithRecordings": [{
|
|
36643
|
+
name: "deviceId",
|
|
36644
|
+
form: "single",
|
|
36645
|
+
optional: false
|
|
36646
|
+
}],
|
|
36647
|
+
"recording.getDeviceConfig": [{
|
|
36648
|
+
name: "deviceId",
|
|
36649
|
+
form: "single",
|
|
36650
|
+
optional: false
|
|
36651
|
+
}],
|
|
36652
|
+
"recording.getPlaybackManifest": [{
|
|
36653
|
+
name: "deviceId",
|
|
36654
|
+
form: "single",
|
|
36655
|
+
optional: false
|
|
36656
|
+
}],
|
|
36657
|
+
"recording.listOpsLog": [{
|
|
36658
|
+
name: "deviceId",
|
|
36659
|
+
form: "single",
|
|
36660
|
+
optional: true
|
|
36661
|
+
}],
|
|
36662
|
+
"recording.locateSegment": [{
|
|
36663
|
+
name: "deviceId",
|
|
36664
|
+
form: "single",
|
|
36665
|
+
optional: false
|
|
36666
|
+
}],
|
|
36667
|
+
"recording.pruneFootage": [{
|
|
36668
|
+
name: "deviceId",
|
|
36669
|
+
form: "single",
|
|
36670
|
+
optional: false
|
|
36671
|
+
}],
|
|
36672
|
+
"recording.readGopBytes": [{
|
|
36673
|
+
name: "deviceId",
|
|
36674
|
+
form: "single",
|
|
36675
|
+
optional: false
|
|
36676
|
+
}],
|
|
36677
|
+
"recording.readSegmentBytes": [{
|
|
36678
|
+
name: "deviceId",
|
|
36679
|
+
form: "single",
|
|
36680
|
+
optional: false
|
|
36681
|
+
}],
|
|
36682
|
+
"recording.relocateFootage": [{
|
|
36683
|
+
name: "deviceId",
|
|
36684
|
+
form: "single",
|
|
36685
|
+
optional: true
|
|
36686
|
+
}],
|
|
36687
|
+
"recording.renderClip": [{
|
|
36688
|
+
name: "deviceId",
|
|
36689
|
+
form: "single",
|
|
36690
|
+
optional: false
|
|
36691
|
+
}],
|
|
36692
|
+
"recording.renderGif": [{
|
|
36693
|
+
name: "deviceId",
|
|
36694
|
+
form: "single",
|
|
36695
|
+
optional: false
|
|
36696
|
+
}],
|
|
36697
|
+
"recording.rescanStorage": [{
|
|
36698
|
+
name: "deviceId",
|
|
36699
|
+
form: "single",
|
|
36700
|
+
optional: false
|
|
36701
|
+
}],
|
|
36702
|
+
"recording.setDeviceConfig": [{
|
|
36703
|
+
name: "deviceId",
|
|
36704
|
+
form: "single",
|
|
36705
|
+
optional: false
|
|
36706
|
+
}],
|
|
36707
|
+
"recording.startStorageMigrationMove": [{
|
|
36708
|
+
name: "deviceId",
|
|
36709
|
+
form: "single",
|
|
36710
|
+
optional: true
|
|
36711
|
+
}],
|
|
36712
|
+
"recordingExport.createExport": [{
|
|
36713
|
+
name: "deviceId",
|
|
36714
|
+
form: "single",
|
|
36715
|
+
optional: false
|
|
36716
|
+
}],
|
|
36717
|
+
"recordingExport.listExports": [{
|
|
36718
|
+
name: "deviceId",
|
|
36719
|
+
form: "single",
|
|
36720
|
+
optional: true
|
|
36721
|
+
}],
|
|
36722
|
+
"sceneMonitor.captureReference": [{
|
|
36723
|
+
name: "deviceId",
|
|
36724
|
+
form: "single",
|
|
36725
|
+
optional: false
|
|
36726
|
+
}],
|
|
36727
|
+
"sceneMonitor.createScene": [{
|
|
36728
|
+
name: "deviceId",
|
|
36729
|
+
form: "single",
|
|
36730
|
+
optional: false
|
|
36731
|
+
}],
|
|
36732
|
+
"sceneMonitor.deleteReference": [{
|
|
36733
|
+
name: "deviceId",
|
|
36734
|
+
form: "single",
|
|
36735
|
+
optional: false
|
|
36736
|
+
}],
|
|
36737
|
+
"sceneMonitor.deleteScene": [{
|
|
36738
|
+
name: "deviceId",
|
|
36739
|
+
form: "single",
|
|
36740
|
+
optional: false
|
|
36741
|
+
}],
|
|
36742
|
+
"sceneMonitor.listScenes": [{
|
|
36743
|
+
name: "deviceId",
|
|
36744
|
+
form: "single",
|
|
36745
|
+
optional: false
|
|
36746
|
+
}],
|
|
36747
|
+
"sceneMonitor.recheckNow": [{
|
|
36748
|
+
name: "deviceId",
|
|
36749
|
+
form: "single",
|
|
36750
|
+
optional: false
|
|
36751
|
+
}],
|
|
36752
|
+
"sceneMonitor.resetScene": [{
|
|
36753
|
+
name: "deviceId",
|
|
36754
|
+
form: "single",
|
|
36755
|
+
optional: false
|
|
36756
|
+
}],
|
|
36757
|
+
"sceneMonitor.updateScene": [{
|
|
36758
|
+
name: "deviceId",
|
|
36759
|
+
form: "single",
|
|
36760
|
+
optional: false
|
|
36761
|
+
}],
|
|
36762
|
+
"scriptRunner.run": [{
|
|
36763
|
+
name: "deviceId",
|
|
36764
|
+
form: "single",
|
|
36765
|
+
optional: false
|
|
36766
|
+
}],
|
|
36767
|
+
"scriptRunner.stop": [{
|
|
36768
|
+
name: "deviceId",
|
|
36769
|
+
form: "single",
|
|
36770
|
+
optional: false
|
|
36771
|
+
}],
|
|
36772
|
+
"snapshot.getDebugState": [{
|
|
36773
|
+
name: "deviceId",
|
|
36774
|
+
form: "single",
|
|
36775
|
+
optional: false
|
|
36776
|
+
}],
|
|
36777
|
+
"snapshot.getSnapshot": [{
|
|
36778
|
+
name: "deviceId",
|
|
36779
|
+
form: "single",
|
|
36780
|
+
optional: false
|
|
36781
|
+
}],
|
|
36782
|
+
"snapshot.getSnapshotLinks": [{
|
|
36783
|
+
name: "targets",
|
|
36784
|
+
form: "object-array",
|
|
36785
|
+
optional: false,
|
|
36786
|
+
itemField: "deviceId"
|
|
36787
|
+
}],
|
|
36788
|
+
"snapshot.getSnapshotOverview": [{
|
|
36789
|
+
name: "deviceIds",
|
|
36790
|
+
form: "array",
|
|
36791
|
+
optional: false
|
|
36792
|
+
}],
|
|
36793
|
+
"snapshot.invalidateCache": [{
|
|
36794
|
+
name: "deviceId",
|
|
36795
|
+
form: "single",
|
|
36796
|
+
optional: false
|
|
36797
|
+
}],
|
|
36798
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
36799
|
+
name: "deviceId",
|
|
36800
|
+
form: "single",
|
|
36801
|
+
optional: false
|
|
36802
|
+
}],
|
|
36803
|
+
"streamBroker.assignProfile": [{
|
|
36804
|
+
name: "deviceId",
|
|
36805
|
+
form: "single",
|
|
36806
|
+
optional: false
|
|
36807
|
+
}],
|
|
36808
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
36809
|
+
name: "deviceId",
|
|
36810
|
+
form: "single",
|
|
36811
|
+
optional: false
|
|
36812
|
+
}],
|
|
36813
|
+
"streamBroker.getStreamWithCodec": [{
|
|
36814
|
+
name: "deviceId",
|
|
36815
|
+
form: "single",
|
|
36816
|
+
optional: false
|
|
36817
|
+
}],
|
|
36818
|
+
"streamBroker.produceEventMedia": [{
|
|
36819
|
+
name: "deviceId",
|
|
36820
|
+
form: "single",
|
|
36821
|
+
optional: false
|
|
36822
|
+
}],
|
|
36823
|
+
"streamBroker.publishCameraStream": [{
|
|
36824
|
+
name: "deviceId",
|
|
36825
|
+
form: "single",
|
|
36826
|
+
optional: false
|
|
36827
|
+
}],
|
|
36828
|
+
"streamBroker.renderPreBufferClip": [{
|
|
36829
|
+
name: "deviceId",
|
|
36830
|
+
form: "single",
|
|
36831
|
+
optional: false
|
|
36832
|
+
}],
|
|
36833
|
+
"streamBroker.restartProfile": [{
|
|
36834
|
+
name: "deviceId",
|
|
36835
|
+
form: "single",
|
|
36836
|
+
optional: false
|
|
36837
|
+
}],
|
|
36838
|
+
"streamBroker.retractCameraStream": [{
|
|
36839
|
+
name: "deviceId",
|
|
36840
|
+
form: "single",
|
|
36841
|
+
optional: false
|
|
36842
|
+
}],
|
|
36843
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
36844
|
+
name: "deviceId",
|
|
36845
|
+
form: "single",
|
|
36846
|
+
optional: false
|
|
36847
|
+
}],
|
|
36848
|
+
"streamBroker.unassignProfile": [{
|
|
36849
|
+
name: "deviceId",
|
|
36850
|
+
form: "single",
|
|
36851
|
+
optional: false
|
|
36852
|
+
}],
|
|
36853
|
+
"streamCatalog.getCatalog": [{
|
|
36854
|
+
name: "deviceId",
|
|
36855
|
+
form: "single",
|
|
36856
|
+
optional: false
|
|
36857
|
+
}],
|
|
36858
|
+
"streamParams.getConfigSchema": [{
|
|
36859
|
+
name: "deviceId",
|
|
36860
|
+
form: "single",
|
|
36861
|
+
optional: false
|
|
36862
|
+
}],
|
|
36863
|
+
"streamParams.getOptions": [{
|
|
36864
|
+
name: "deviceId",
|
|
36865
|
+
form: "single",
|
|
36866
|
+
optional: false
|
|
36867
|
+
}],
|
|
36868
|
+
"streamParams.setProfile": [{
|
|
36869
|
+
name: "deviceId",
|
|
36870
|
+
form: "single",
|
|
36871
|
+
optional: false
|
|
36872
|
+
}],
|
|
36873
|
+
"switch.setState": [{
|
|
36874
|
+
name: "deviceId",
|
|
36875
|
+
form: "single",
|
|
36876
|
+
optional: false
|
|
36877
|
+
}],
|
|
36878
|
+
"vacuumControl.locate": [{
|
|
36879
|
+
name: "deviceId",
|
|
36880
|
+
form: "single",
|
|
36881
|
+
optional: false
|
|
36882
|
+
}],
|
|
36883
|
+
"vacuumControl.pause": [{
|
|
36884
|
+
name: "deviceId",
|
|
36885
|
+
form: "single",
|
|
36886
|
+
optional: false
|
|
36887
|
+
}],
|
|
36888
|
+
"vacuumControl.returnToBase": [{
|
|
36889
|
+
name: "deviceId",
|
|
36890
|
+
form: "single",
|
|
36891
|
+
optional: false
|
|
36892
|
+
}],
|
|
36893
|
+
"vacuumControl.setFanSpeed": [{
|
|
36894
|
+
name: "deviceId",
|
|
36895
|
+
form: "single",
|
|
36896
|
+
optional: false
|
|
36897
|
+
}],
|
|
36898
|
+
"vacuumControl.start": [{
|
|
36899
|
+
name: "deviceId",
|
|
36900
|
+
form: "single",
|
|
36901
|
+
optional: false
|
|
36902
|
+
}],
|
|
36903
|
+
"vacuumControl.stop": [{
|
|
36904
|
+
name: "deviceId",
|
|
36905
|
+
form: "single",
|
|
36906
|
+
optional: false
|
|
36907
|
+
}],
|
|
36908
|
+
"valve.close": [{
|
|
36909
|
+
name: "deviceId",
|
|
36910
|
+
form: "single",
|
|
36911
|
+
optional: false
|
|
36912
|
+
}],
|
|
36913
|
+
"valve.open": [{
|
|
36914
|
+
name: "deviceId",
|
|
36915
|
+
form: "single",
|
|
36916
|
+
optional: false
|
|
36917
|
+
}],
|
|
36918
|
+
"valve.setPosition": [{
|
|
36919
|
+
name: "deviceId",
|
|
36920
|
+
form: "single",
|
|
36921
|
+
optional: false
|
|
36922
|
+
}],
|
|
36923
|
+
"valve.stop": [{
|
|
36924
|
+
name: "deviceId",
|
|
36925
|
+
form: "single",
|
|
36926
|
+
optional: false
|
|
36927
|
+
}],
|
|
36928
|
+
"videoclips.getClipPlayback": [{
|
|
36929
|
+
name: "deviceId",
|
|
36930
|
+
form: "single",
|
|
36931
|
+
optional: false
|
|
36932
|
+
}],
|
|
36933
|
+
"videoclips.listClips": [{
|
|
36934
|
+
name: "deviceId",
|
|
36935
|
+
form: "single",
|
|
36936
|
+
optional: false
|
|
36937
|
+
}],
|
|
36938
|
+
"waterHeater.setAway": [{
|
|
36939
|
+
name: "deviceId",
|
|
36940
|
+
form: "single",
|
|
36941
|
+
optional: false
|
|
36942
|
+
}],
|
|
36943
|
+
"waterHeater.setOperationMode": [{
|
|
36944
|
+
name: "deviceId",
|
|
36945
|
+
form: "single",
|
|
36946
|
+
optional: false
|
|
36947
|
+
}],
|
|
36948
|
+
"waterHeater.setTargetTemp": [{
|
|
36949
|
+
name: "deviceId",
|
|
36950
|
+
form: "single",
|
|
36951
|
+
optional: false
|
|
36952
|
+
}],
|
|
36953
|
+
"webrtcSession.addIceCandidate": [{
|
|
36954
|
+
name: "deviceId",
|
|
36955
|
+
form: "single",
|
|
36956
|
+
optional: false
|
|
36957
|
+
}],
|
|
36958
|
+
"webrtcSession.closeSession": [{
|
|
36959
|
+
name: "deviceId",
|
|
36960
|
+
form: "single",
|
|
36961
|
+
optional: false
|
|
36962
|
+
}],
|
|
36963
|
+
"webrtcSession.createSession": [{
|
|
36964
|
+
name: "deviceId",
|
|
36965
|
+
form: "single",
|
|
36966
|
+
optional: false
|
|
36967
|
+
}],
|
|
36968
|
+
"webrtcSession.getIceCandidates": [{
|
|
36969
|
+
name: "deviceId",
|
|
36970
|
+
form: "single",
|
|
36971
|
+
optional: false
|
|
36972
|
+
}],
|
|
36973
|
+
"webrtcSession.getSessionState": [{
|
|
36974
|
+
name: "deviceId",
|
|
36975
|
+
form: "single",
|
|
36976
|
+
optional: false
|
|
36977
|
+
}],
|
|
36978
|
+
"webrtcSession.handleAnswer": [{
|
|
36979
|
+
name: "deviceId",
|
|
36980
|
+
form: "single",
|
|
36981
|
+
optional: false
|
|
36982
|
+
}],
|
|
36983
|
+
"webrtcSession.handleOffer": [{
|
|
36984
|
+
name: "deviceId",
|
|
36985
|
+
form: "single",
|
|
36986
|
+
optional: false
|
|
36987
|
+
}],
|
|
36988
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
36989
|
+
name: "deviceId",
|
|
36990
|
+
form: "single",
|
|
36991
|
+
optional: false
|
|
36992
|
+
}],
|
|
36993
|
+
"webrtcSession.listStreams": [{
|
|
36994
|
+
name: "deviceId",
|
|
36995
|
+
form: "single",
|
|
36996
|
+
optional: false
|
|
36997
|
+
}],
|
|
36998
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
36999
|
+
name: "deviceId",
|
|
37000
|
+
form: "single",
|
|
37001
|
+
optional: false
|
|
37002
|
+
}],
|
|
37003
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
37004
|
+
name: "deviceId",
|
|
37005
|
+
form: "single",
|
|
37006
|
+
optional: false
|
|
37007
|
+
}],
|
|
37008
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
37009
|
+
name: "deviceId",
|
|
37010
|
+
form: "single",
|
|
37011
|
+
optional: false
|
|
37012
|
+
}],
|
|
37013
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
37014
|
+
name: "deviceId",
|
|
37015
|
+
form: "single",
|
|
37016
|
+
optional: false
|
|
37017
|
+
}],
|
|
37018
|
+
"zoneRules.listRules": [{
|
|
37019
|
+
name: "deviceId",
|
|
37020
|
+
form: "single",
|
|
37021
|
+
optional: false
|
|
37022
|
+
}],
|
|
37023
|
+
"zoneRules.setRules": [{
|
|
37024
|
+
name: "deviceId",
|
|
37025
|
+
form: "single",
|
|
37026
|
+
optional: false
|
|
37027
|
+
}],
|
|
37028
|
+
"zones.addZone": [{
|
|
37029
|
+
name: "deviceId",
|
|
37030
|
+
form: "single",
|
|
37031
|
+
optional: false
|
|
37032
|
+
}],
|
|
37033
|
+
"zones.listZones": [{
|
|
37034
|
+
name: "deviceId",
|
|
37035
|
+
form: "single",
|
|
37036
|
+
optional: false
|
|
37037
|
+
}],
|
|
37038
|
+
"zones.removeZone": [{
|
|
37039
|
+
name: "deviceId",
|
|
37040
|
+
form: "single",
|
|
37041
|
+
optional: false
|
|
37042
|
+
}],
|
|
37043
|
+
"zones.updateZone": [{
|
|
37044
|
+
name: "deviceId",
|
|
37045
|
+
form: "single",
|
|
37046
|
+
optional: false
|
|
37047
|
+
}]
|
|
37048
|
+
});
|
|
34336
37049
|
Object.freeze({
|
|
34337
37050
|
"broker": "broker",
|
|
34338
37051
|
"device-export": "device-export",
|