@camstack/addon-provider-amcrest 0.2.17 → 0.2.19
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 +2939 -151
- package/dist/addon.mjs +2939 -151
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -4,7 +4,7 @@ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).expor
|
|
|
4
4
|
//#endregion
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let node_os = require("node:os");
|
|
7
|
-
//#region ../types/dist/event-category-
|
|
7
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
8
8
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
9
9
|
EventCategory["SystemBoot"] = "system.boot";
|
|
10
10
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -211,6 +211,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
211
211
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
212
212
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
213
213
|
/**
|
|
214
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
215
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
216
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
217
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
218
|
+
* from the placement candidate set for as long as it holds.
|
|
219
|
+
*
|
|
220
|
+
* This exists because the state was previously invisible: little-unraid
|
|
221
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
222
|
+
* and nothing in the system said so.
|
|
223
|
+
*
|
|
224
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
225
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
226
|
+
* serves it exactly as before.
|
|
227
|
+
*/
|
|
228
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
229
|
+
/**
|
|
230
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
231
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
232
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
233
|
+
* per camera.
|
|
234
|
+
*
|
|
235
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
236
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
237
|
+
* camera" produce byte-identical silence.
|
|
238
|
+
*/
|
|
239
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
240
|
+
/**
|
|
214
241
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
215
242
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
216
243
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3002,6 +3029,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3002
3029
|
fallback: left.fallback
|
|
3003
3030
|
}, ctx);
|
|
3004
3031
|
}
|
|
3032
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3033
|
+
$ZodPipe.init(inst, def);
|
|
3034
|
+
});
|
|
3005
3035
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3006
3036
|
$ZodType.init(inst, def);
|
|
3007
3037
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5187,6 +5217,10 @@ function pipe(in_, out) {
|
|
|
5187
5217
|
out
|
|
5188
5218
|
});
|
|
5189
5219
|
}
|
|
5220
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5221
|
+
ZodPipe.init(inst, def);
|
|
5222
|
+
$ZodPreprocess.init(inst, def);
|
|
5223
|
+
});
|
|
5190
5224
|
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5191
5225
|
$ZodReadonly.init(inst, def);
|
|
5192
5226
|
ZodType.init(inst, def);
|
|
@@ -5245,6 +5279,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5245
5279
|
};
|
|
5246
5280
|
return inst;
|
|
5247
5281
|
}
|
|
5282
|
+
function preprocess(fn, schema) {
|
|
5283
|
+
return new ZodPreprocess({
|
|
5284
|
+
type: "pipe",
|
|
5285
|
+
in: transform(fn),
|
|
5286
|
+
out: schema
|
|
5287
|
+
});
|
|
5288
|
+
}
|
|
5248
5289
|
//#endregion
|
|
5249
5290
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5250
5291
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -10869,6 +10910,8 @@ var QueryFilterSchema = object({
|
|
|
10869
10910
|
where: record(string(), unknown()).optional(),
|
|
10870
10911
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10871
10912
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10913
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10914
|
+
whereNot: record(string(), unknown()).optional(),
|
|
10872
10915
|
orderBy: object({
|
|
10873
10916
|
field: string(),
|
|
10874
10917
|
direction: _enum(["asc", "desc"])
|
|
@@ -10888,7 +10931,8 @@ var QueryFilterSchema = object({
|
|
|
10888
10931
|
var MutationFilterSchema = object({
|
|
10889
10932
|
where: record(string(), unknown()).optional(),
|
|
10890
10933
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10891
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
10934
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10935
|
+
whereNot: record(string(), unknown()).optional()
|
|
10892
10936
|
});
|
|
10893
10937
|
/** A single stored record: `{ id, data }`. */
|
|
10894
10938
|
var SettingsRecordSchema = object({
|
|
@@ -12407,6 +12451,17 @@ var LlmImageSchema = object({
|
|
|
12407
12451
|
bytes: _instanceof(Uint8Array),
|
|
12408
12452
|
mimeType: string()
|
|
12409
12453
|
});
|
|
12454
|
+
/**
|
|
12455
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12456
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12457
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12458
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12459
|
+
*/
|
|
12460
|
+
var LlmRetryPolicySchema = object({
|
|
12461
|
+
enabled: boolean().default(false),
|
|
12462
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12463
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12464
|
+
});
|
|
12410
12465
|
var LlmGenerateBaseInputSchema = object({
|
|
12411
12466
|
/** Collection routing (the notification-output posture). */
|
|
12412
12467
|
addonId: string().optional(),
|
|
@@ -12421,7 +12476,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12421
12476
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12422
12477
|
/** Per-call override of the profile default. */
|
|
12423
12478
|
maxTokens: number().int().positive().optional(),
|
|
12424
|
-
temperature: number().optional()
|
|
12479
|
+
temperature: number().optional(),
|
|
12480
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12481
|
+
topP: number().min(0).max(1).optional(),
|
|
12482
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12483
|
+
topK: number().int().positive().optional(),
|
|
12484
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12485
|
+
timeoutMs: number().int().positive().optional(),
|
|
12486
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12487
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12488
|
+
/**
|
|
12489
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12490
|
+
*
|
|
12491
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12492
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12493
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12494
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12495
|
+
* not generations, and the real load is unbounded.
|
|
12496
|
+
*
|
|
12497
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12498
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12499
|
+
*/
|
|
12500
|
+
requestId: string().optional()
|
|
12425
12501
|
});
|
|
12426
12502
|
/**
|
|
12427
12503
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12434,6 +12510,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12434
12510
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12435
12511
|
* watchdog — operator decision #3).
|
|
12436
12512
|
*/
|
|
12513
|
+
/**
|
|
12514
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12515
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12516
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12517
|
+
* the preview is exactly what the node downloads.
|
|
12518
|
+
*/
|
|
12519
|
+
var ManagedModelExtraFileSchema = object({
|
|
12520
|
+
url: string(),
|
|
12521
|
+
filename: string(),
|
|
12522
|
+
sizeBytes: number(),
|
|
12523
|
+
sha256: string().optional()
|
|
12524
|
+
});
|
|
12437
12525
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12438
12526
|
object({
|
|
12439
12527
|
kind: literal("catalog"),
|
|
@@ -12442,7 +12530,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12442
12530
|
object({
|
|
12443
12531
|
kind: literal("url"),
|
|
12444
12532
|
url: string(),
|
|
12445
|
-
sha256: string().optional()
|
|
12533
|
+
sha256: string().optional(),
|
|
12534
|
+
/** Picker/status label; the file basename when absent. */
|
|
12535
|
+
label: string().optional(),
|
|
12536
|
+
sizeBytes: number().optional(),
|
|
12537
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12446
12538
|
}),
|
|
12447
12539
|
object({
|
|
12448
12540
|
kind: literal("path"),
|
|
@@ -12460,13 +12552,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12460
12552
|
gpuLayers: number().int().default(0),
|
|
12461
12553
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12462
12554
|
threads: number().int().optional(),
|
|
12463
|
-
/** Concurrent slots. */
|
|
12555
|
+
/** Concurrent slots (`--parallel`). */
|
|
12464
12556
|
parallel: number().int().default(1),
|
|
12557
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12558
|
+
batchSize: number().int().positive().optional(),
|
|
12559
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12560
|
+
ubatchSize: number().int().positive().optional(),
|
|
12561
|
+
/**
|
|
12562
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12563
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12564
|
+
*/
|
|
12565
|
+
flashAttention: boolean().default(false),
|
|
12566
|
+
/**
|
|
12567
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12568
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12569
|
+
* what the RAM budget is counting.
|
|
12570
|
+
*/
|
|
12571
|
+
mlock: boolean().default(false),
|
|
12572
|
+
/**
|
|
12573
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12574
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12575
|
+
* store produces on every first token.
|
|
12576
|
+
*/
|
|
12577
|
+
noMmap: boolean().default(false),
|
|
12578
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12579
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12580
|
+
cacheTypeK: _enum([
|
|
12581
|
+
"f32",
|
|
12582
|
+
"f16",
|
|
12583
|
+
"q8_0",
|
|
12584
|
+
"q5_1",
|
|
12585
|
+
"q5_0",
|
|
12586
|
+
"q4_1",
|
|
12587
|
+
"q4_0"
|
|
12588
|
+
]).optional(),
|
|
12589
|
+
cacheTypeV: _enum([
|
|
12590
|
+
"f32",
|
|
12591
|
+
"f16",
|
|
12592
|
+
"q8_0",
|
|
12593
|
+
"q5_1",
|
|
12594
|
+
"q5_0",
|
|
12595
|
+
"q4_1",
|
|
12596
|
+
"q4_0"
|
|
12597
|
+
]).optional(),
|
|
12598
|
+
/**
|
|
12599
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12600
|
+
* (which most vision chat templates need and some language-only models
|
|
12601
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12602
|
+
*
|
|
12603
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12604
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12605
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12606
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12607
|
+
* twice (D62).
|
|
12608
|
+
*/
|
|
12609
|
+
extraArgs: array(string()).default([]),
|
|
12465
12610
|
/** Else lazy: first generate boots it. */
|
|
12466
12611
|
autoStart: boolean().default(false),
|
|
12467
12612
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12468
12613
|
idleStopMinutes: number().int().default(30)
|
|
12469
12614
|
});
|
|
12615
|
+
/**
|
|
12616
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12617
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12618
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12619
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12620
|
+
*/
|
|
12621
|
+
var LlmDownloadProgressSchema = object({
|
|
12622
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12623
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12624
|
+
file: string(),
|
|
12625
|
+
fileIndex: number().int(),
|
|
12626
|
+
fileCount: number().int(),
|
|
12627
|
+
/** Across the WHOLE install, not the current file. */
|
|
12628
|
+
downloadedBytes: number(),
|
|
12629
|
+
totalBytes: number().optional()
|
|
12630
|
+
});
|
|
12470
12631
|
var LlmRuntimeStatusSchema = object({
|
|
12471
12632
|
/** Status is ALWAYS node-qualified. */
|
|
12472
12633
|
nodeId: string(),
|
|
@@ -12483,6 +12644,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12483
12644
|
modelPath: string().optional(),
|
|
12484
12645
|
modelId: string().optional(),
|
|
12485
12646
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12647
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12648
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12486
12649
|
lastError: string().optional(),
|
|
12487
12650
|
crashesInWindow: number(),
|
|
12488
12651
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12493,7 +12656,14 @@ var LlmNodeModelSchema = object({
|
|
|
12493
12656
|
file: string(),
|
|
12494
12657
|
sizeBytes: number(),
|
|
12495
12658
|
catalogId: string().optional(),
|
|
12496
|
-
installedAt: number().optional()
|
|
12659
|
+
installedAt: number().optional(),
|
|
12660
|
+
/**
|
|
12661
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12662
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12663
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12664
|
+
* it the picker could list such a file and do nothing with it.
|
|
12665
|
+
*/
|
|
12666
|
+
path: string().optional()
|
|
12497
12667
|
});
|
|
12498
12668
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12499
12669
|
nodeId: string(),
|
|
@@ -12549,10 +12719,47 @@ var LlmProfileSchema = object({
|
|
|
12549
12719
|
baseUrl: string().optional(),
|
|
12550
12720
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12551
12721
|
apiKey: string().optional(),
|
|
12722
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12723
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12724
|
+
* question about a picture nobody sent. */
|
|
12552
12725
|
supportsVision: boolean(),
|
|
12553
12726
|
temperature: number().min(0).max(2).optional(),
|
|
12727
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12728
|
+
topP: number().min(0).max(1).optional(),
|
|
12729
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12730
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12731
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12732
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12733
|
+
topK: number().int().positive().optional(),
|
|
12554
12734
|
maxTokens: number().int().positive().optional(),
|
|
12735
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12736
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12737
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12738
|
+
contextLength: number().int().positive().optional(),
|
|
12739
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12740
|
+
* two system prompts fighting is worse than either alone). */
|
|
12741
|
+
systemPrompt: string().optional(),
|
|
12742
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12555
12743
|
timeoutMs: number().int().positive().default(6e4),
|
|
12744
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12745
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12746
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12747
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12748
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12749
|
+
* GPU load is exactly what happens before them. */
|
|
12750
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12751
|
+
/** Output started then stopped. */
|
|
12752
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12753
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12754
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12755
|
+
retry: LlmRetryPolicySchema.default({
|
|
12756
|
+
enabled: false,
|
|
12757
|
+
maxAttempts: 1
|
|
12758
|
+
}),
|
|
12759
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12760
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12761
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12762
|
+
toolsEnabled: boolean().default(false),
|
|
12556
12763
|
extraHeaders: record(string(), string()).optional(),
|
|
12557
12764
|
/** kind === 'managed-local' only (spec §4). */
|
|
12558
12765
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12602,6 +12809,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12602
12809
|
/** Vision models: companion projector file. */
|
|
12603
12810
|
mmprojUrl: string().optional()
|
|
12604
12811
|
});
|
|
12812
|
+
/**
|
|
12813
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12814
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12815
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12816
|
+
* exception.
|
|
12817
|
+
*
|
|
12818
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12819
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12820
|
+
*/
|
|
12821
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12822
|
+
ok: literal(true),
|
|
12823
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12824
|
+
model: ManagedModelRefSchema,
|
|
12825
|
+
label: string(),
|
|
12826
|
+
repo: string(),
|
|
12827
|
+
quantization: string(),
|
|
12828
|
+
purpose: _enum(["text", "vision"]),
|
|
12829
|
+
totalBytes: number(),
|
|
12830
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12831
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12832
|
+
extraFilenames: array(string())
|
|
12833
|
+
}), object({
|
|
12834
|
+
ok: literal(false),
|
|
12835
|
+
code: string(),
|
|
12836
|
+
message: string(),
|
|
12837
|
+
candidates: array(string()).optional(),
|
|
12838
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12839
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12840
|
+
requiredBytes: number().optional()
|
|
12841
|
+
})]);
|
|
12605
12842
|
var LlmRuntimeNodeSchema = object({
|
|
12606
12843
|
nodeId: string(),
|
|
12607
12844
|
reachable: boolean(),
|
|
@@ -12614,7 +12851,10 @@ var ProfileRefInputSchema = object({
|
|
|
12614
12851
|
addonId: string(),
|
|
12615
12852
|
profileId: string()
|
|
12616
12853
|
});
|
|
12617
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12854
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12855
|
+
addonId: string().optional(),
|
|
12856
|
+
requestId: string()
|
|
12857
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12618
12858
|
kind: "mutation",
|
|
12619
12859
|
auth: "admin"
|
|
12620
12860
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12635,6 +12875,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12635
12875
|
consumer: string().optional(),
|
|
12636
12876
|
profileId: string().optional()
|
|
12637
12877
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
12878
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12879
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12880
|
+
ref: string(),
|
|
12881
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12882
|
+
maxBytes: number().positive().optional()
|
|
12883
|
+
}), HfModelResolutionSchema, {
|
|
12884
|
+
kind: "mutation",
|
|
12885
|
+
auth: "admin"
|
|
12886
|
+
}), method(object({
|
|
12638
12887
|
nodeId: string(),
|
|
12639
12888
|
model: ManagedModelRefSchema
|
|
12640
12889
|
}), _void(), {
|
|
@@ -13194,11 +13443,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13194
13443
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13195
13444
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13196
13445
|
* differently.
|
|
13446
|
+
*
|
|
13447
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13448
|
+
*
|
|
13449
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13450
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13451
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13452
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13453
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13454
|
+
* honestly.
|
|
13455
|
+
*
|
|
13456
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13457
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13458
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13459
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13460
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13461
|
+
*
|
|
13462
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13463
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13464
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13465
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13466
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13197
13467
|
*/
|
|
13198
13468
|
var NotificationActionIconSchema = _enum([
|
|
13199
13469
|
"acknowledge",
|
|
13200
13470
|
"dismiss",
|
|
13201
13471
|
"silence",
|
|
13472
|
+
"snooze",
|
|
13202
13473
|
"view",
|
|
13203
13474
|
"play",
|
|
13204
13475
|
"open",
|
|
@@ -13206,9 +13477,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13206
13477
|
"lock",
|
|
13207
13478
|
"unlock",
|
|
13208
13479
|
"arm",
|
|
13480
|
+
"arm-home",
|
|
13481
|
+
"arm-away",
|
|
13482
|
+
"arm-night",
|
|
13209
13483
|
"disarm",
|
|
13210
13484
|
"light",
|
|
13211
|
-
"alert"
|
|
13485
|
+
"alert",
|
|
13486
|
+
"camera"
|
|
13212
13487
|
]);
|
|
13213
13488
|
/** A single tap-through action button. */
|
|
13214
13489
|
var NotificationActionSchema = object({
|
|
@@ -13408,6 +13683,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13408
13683
|
targetId: string(),
|
|
13409
13684
|
enabled: boolean()
|
|
13410
13685
|
}), _void(), { kind: "mutation" });
|
|
13686
|
+
new Set([
|
|
13687
|
+
{
|
|
13688
|
+
id: "person",
|
|
13689
|
+
name: "Person"
|
|
13690
|
+
},
|
|
13691
|
+
{
|
|
13692
|
+
id: "vehicle",
|
|
13693
|
+
name: "Vehicle"
|
|
13694
|
+
},
|
|
13695
|
+
{
|
|
13696
|
+
id: "animal",
|
|
13697
|
+
name: "Animal"
|
|
13698
|
+
},
|
|
13699
|
+
{
|
|
13700
|
+
id: "package",
|
|
13701
|
+
name: "Package"
|
|
13702
|
+
}
|
|
13703
|
+
].map((l) => l.id));
|
|
13411
13704
|
var COCO_TO_MACRO = {
|
|
13412
13705
|
mapping: {
|
|
13413
13706
|
person: "person",
|
|
@@ -14238,11 +14531,15 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14238
14531
|
"stream-offline",
|
|
14239
14532
|
"node-online",
|
|
14240
14533
|
"node-offline",
|
|
14534
|
+
"node-inference-unavailable",
|
|
14535
|
+
"detection-blind",
|
|
14241
14536
|
"addon-update-available",
|
|
14242
14537
|
"server-update-available",
|
|
14243
14538
|
"alarm-triggered",
|
|
14244
14539
|
"alarm-armed",
|
|
14245
14540
|
"alarm-disarmed",
|
|
14541
|
+
"alarm-arming",
|
|
14542
|
+
"alarm-arm-refused",
|
|
14246
14543
|
"camera-online",
|
|
14247
14544
|
"camera-offline",
|
|
14248
14545
|
"camera-disabled",
|
|
@@ -14297,7 +14594,16 @@ var NcScheduleSchema = object({
|
|
|
14297
14594
|
});
|
|
14298
14595
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14299
14596
|
var NcPlateMatcherSchema = object({
|
|
14300
|
-
|
|
14597
|
+
/**
|
|
14598
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14599
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14600
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14601
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14602
|
+
*
|
|
14603
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14604
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14605
|
+
*/
|
|
14606
|
+
values: array(string().min(1)),
|
|
14301
14607
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14302
14608
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14303
14609
|
});
|
|
@@ -14331,28 +14637,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14331
14637
|
/**
|
|
14332
14638
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14333
14639
|
*
|
|
14334
|
-
*
|
|
14335
|
-
*
|
|
14336
|
-
*
|
|
14337
|
-
*
|
|
14338
|
-
*
|
|
14339
|
-
*
|
|
14340
|
-
*
|
|
14341
|
-
*
|
|
14342
|
-
*
|
|
14343
|
-
*
|
|
14344
|
-
*
|
|
14345
|
-
*
|
|
14346
|
-
*
|
|
14347
|
-
*
|
|
14348
|
-
*
|
|
14349
|
-
*
|
|
14350
|
-
*
|
|
14351
|
-
*
|
|
14352
|
-
*
|
|
14353
|
-
*
|
|
14354
|
-
*
|
|
14355
|
-
* `
|
|
14640
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14641
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14642
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14643
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14644
|
+
*
|
|
14645
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14646
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14647
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14648
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14649
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14650
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14651
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14652
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14653
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14654
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14655
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14656
|
+
* seconds is 100% of nothing.
|
|
14657
|
+
*
|
|
14658
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14659
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14660
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14661
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14662
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14663
|
+
* the wrong question to ask of a sparse classifier.
|
|
14664
|
+
*
|
|
14665
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14666
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14667
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14668
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14669
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14356
14670
|
*
|
|
14357
14671
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14358
14672
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14360,13 +14674,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14360
14674
|
* an operator who typed `dog` mean the same thing.
|
|
14361
14675
|
*/
|
|
14362
14676
|
var NcAudioConditionSchema = object({
|
|
14363
|
-
/**
|
|
14677
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14364
14678
|
labels: array(string().min(1)).min(1).optional(),
|
|
14365
|
-
/**
|
|
14679
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14366
14680
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14367
|
-
/**
|
|
14681
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14368
14682
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14369
|
-
/**
|
|
14683
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14370
14684
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14371
14685
|
});
|
|
14372
14686
|
/**
|
|
@@ -14504,13 +14818,81 @@ var NcRuleActionsSchema = object({
|
|
|
14504
14818
|
*/
|
|
14505
14819
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14506
14820
|
});
|
|
14821
|
+
/**
|
|
14822
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14823
|
+
*
|
|
14824
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14825
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14826
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14827
|
+
*
|
|
14828
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14829
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14830
|
+
*/
|
|
14831
|
+
var NcDeviceStateConditionSchema = object({
|
|
14832
|
+
deviceId: number().int(),
|
|
14833
|
+
/** Any of these matches. */
|
|
14834
|
+
states: array(string().min(1)).min(1)
|
|
14835
|
+
});
|
|
14836
|
+
/**
|
|
14837
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14838
|
+
*
|
|
14839
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14840
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14841
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14842
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14843
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14844
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14845
|
+
* kind exist for it — see D159.
|
|
14846
|
+
*
|
|
14847
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14848
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14849
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14850
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14851
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14852
|
+
*
|
|
14853
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14854
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14855
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14856
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14857
|
+
* override one rule against the scene's own default.
|
|
14858
|
+
*
|
|
14859
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14860
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14861
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14862
|
+
* evidence, in either direction.
|
|
14863
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14864
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14865
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14866
|
+
* reason the operator asked for a latch.
|
|
14867
|
+
*
|
|
14868
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14869
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14870
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14871
|
+
* said out loud in the log rather than dropped in silence.
|
|
14872
|
+
*/
|
|
14873
|
+
var NcSceneConditionSchema = object({
|
|
14874
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14875
|
+
sceneId: string().min(1),
|
|
14876
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14877
|
+
deviceId: number().int().optional(),
|
|
14878
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14879
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14880
|
+
/**
|
|
14881
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14882
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14883
|
+
*/
|
|
14884
|
+
latched: boolean().optional()
|
|
14885
|
+
});
|
|
14507
14886
|
var NcConditionsSchema = object({
|
|
14508
14887
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14509
|
-
deviceState:
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14888
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14889
|
+
/**
|
|
14890
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14891
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14892
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14893
|
+
* {@link NcSceneCondition} and D159.
|
|
14894
|
+
*/
|
|
14895
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14514
14896
|
/** Device scope — absent = all devices. */
|
|
14515
14897
|
devices: array(number()).optional(),
|
|
14516
14898
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14536,18 +14918,47 @@ var NcConditionsSchema = object({
|
|
|
14536
14918
|
*/
|
|
14537
14919
|
labelEquals: array(string().min(1)).optional(),
|
|
14538
14920
|
/**
|
|
14539
|
-
*
|
|
14540
|
-
*
|
|
14541
|
-
*
|
|
14921
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
14922
|
+
* is about recognised people at all.
|
|
14923
|
+
*
|
|
14924
|
+
* Three states, and the empty one is the point:
|
|
14925
|
+
*
|
|
14926
|
+
* | value | meaning |
|
|
14927
|
+
* | --- | --- |
|
|
14928
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
14929
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
14930
|
+
* | a list | only these identities |
|
|
14931
|
+
*
|
|
14932
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
14933
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
14934
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
14935
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
14936
|
+
* with the list under it is worse than no switch (D62).
|
|
14937
|
+
*
|
|
14938
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
14939
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
14940
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
14941
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
14942
|
+
* `{{label}}` renders.
|
|
14943
|
+
*
|
|
14944
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
14945
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
14946
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
14947
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
14948
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14542
14949
|
*/
|
|
14543
14950
|
identities: array(string().min(1)).optional(),
|
|
14544
|
-
/**
|
|
14951
|
+
/**
|
|
14952
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
14953
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
14954
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
14955
|
+
*/
|
|
14545
14956
|
plates: NcPlateMatcherSchema.optional(),
|
|
14546
14957
|
/**
|
|
14547
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14548
|
-
*
|
|
14549
|
-
* identity
|
|
14550
|
-
*
|
|
14958
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
14959
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
14960
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
14961
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14551
14962
|
*/
|
|
14552
14963
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14553
14964
|
/**
|
|
@@ -14939,7 +15350,80 @@ var NcRuleInputSchema = object({
|
|
|
14939
15350
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
14940
15351
|
* did, and absent is the only way to say that without a migration.
|
|
14941
15352
|
*/
|
|
14942
|
-
confirm: NcConfirmSchema.optional()
|
|
15353
|
+
confirm: NcConfirmSchema.optional(),
|
|
15354
|
+
/**
|
|
15355
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15356
|
+
*
|
|
15357
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15358
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15359
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15360
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15361
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15362
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15363
|
+
*
|
|
15364
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15365
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15366
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15367
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15368
|
+
*
|
|
15369
|
+
* | value | what happens |
|
|
15370
|
+
* | --- | --- |
|
|
15371
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15372
|
+
* | 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) |
|
|
15373
|
+
*
|
|
15374
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15375
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15376
|
+
* rule authored before this field meant.
|
|
15377
|
+
*
|
|
15378
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15379
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15380
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15381
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15382
|
+
*/
|
|
15383
|
+
waitForEnhancement: boolean().optional(),
|
|
15384
|
+
/**
|
|
15385
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15386
|
+
*
|
|
15387
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15388
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15389
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15390
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15391
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15392
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15393
|
+
*
|
|
15394
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15395
|
+
*
|
|
15396
|
+
* ### Why an idle cutoff and not a window
|
|
15397
|
+
*
|
|
15398
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15399
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15400
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15401
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15402
|
+
*
|
|
15403
|
+
* ### What it replaces
|
|
15404
|
+
*
|
|
15405
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15406
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15407
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15408
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15409
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15410
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15411
|
+
* throttled by the window its own first member spent.
|
|
15412
|
+
*
|
|
15413
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15414
|
+
*
|
|
15415
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15416
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15417
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15418
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15419
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15420
|
+
* path. Neither combination fires twice for one subject.
|
|
15421
|
+
*
|
|
15422
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15423
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15424
|
+
* field existed.
|
|
15425
|
+
*/
|
|
15426
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
14943
15427
|
});
|
|
14944
15428
|
/**
|
|
14945
15429
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15046,6 +15530,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15046
15530
|
"occupancy",
|
|
15047
15531
|
"audio",
|
|
15048
15532
|
"deviceState",
|
|
15533
|
+
"scene",
|
|
15049
15534
|
"systemEvent"
|
|
15050
15535
|
]),
|
|
15051
15536
|
operator: _enum([
|
|
@@ -15451,7 +15936,87 @@ var MethodAccessSchema = _enum([
|
|
|
15451
15936
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15452
15937
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15453
15938
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15454
|
-
|
|
15939
|
+
/**
|
|
15940
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
15941
|
+
*
|
|
15942
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
15943
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
15944
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
15945
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
15946
|
+
*
|
|
15947
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
15948
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
15949
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
15950
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
15951
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
15952
|
+
* is NOT covered until the grant is edited.
|
|
15953
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
15954
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
15955
|
+
* re-resolves on the next request.
|
|
15956
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
15957
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
15958
|
+
* null/unset location matches NO `locations` selector.
|
|
15959
|
+
*/
|
|
15960
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
15961
|
+
object({ kind: literal("all") }),
|
|
15962
|
+
object({
|
|
15963
|
+
kind: literal("ids"),
|
|
15964
|
+
ids: array(number().int()).min(1)
|
|
15965
|
+
}),
|
|
15966
|
+
object({
|
|
15967
|
+
kind: literal("types"),
|
|
15968
|
+
types: array(_enum(DeviceType)).min(1)
|
|
15969
|
+
}),
|
|
15970
|
+
object({
|
|
15971
|
+
kind: literal("locations"),
|
|
15972
|
+
locations: array(string().min(1)).min(1)
|
|
15973
|
+
})
|
|
15974
|
+
]);
|
|
15975
|
+
var DeviceTokenScopeSchema = object({
|
|
15976
|
+
type: literal("device"),
|
|
15977
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
15978
|
+
selector: DeviceSelectorSchema,
|
|
15979
|
+
access: array(MethodAccessSchema).min(1),
|
|
15980
|
+
/**
|
|
15981
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
15982
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
15983
|
+
* Direction is parent → children ONLY.
|
|
15984
|
+
*
|
|
15985
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
15986
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
15987
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
15988
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
15989
|
+
* explicitly to override that default per grant.
|
|
15990
|
+
*/
|
|
15991
|
+
includeLinked: boolean().optional()
|
|
15992
|
+
});
|
|
15993
|
+
/**
|
|
15994
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
15995
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
15996
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
15997
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
15998
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
15999
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16000
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16001
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16002
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16003
|
+
*/
|
|
16004
|
+
function migrateLegacyTokenScope(raw) {
|
|
16005
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16006
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16007
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16008
|
+
const targets = Reflect.get(raw, "targets");
|
|
16009
|
+
if (!Array.isArray(targets)) return raw;
|
|
16010
|
+
return {
|
|
16011
|
+
type: "device",
|
|
16012
|
+
selector: {
|
|
16013
|
+
kind: "ids",
|
|
16014
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16015
|
+
},
|
|
16016
|
+
access: Reflect.get(raw, "access")
|
|
16017
|
+
};
|
|
16018
|
+
}
|
|
16019
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15455
16020
|
object({
|
|
15456
16021
|
type: literal("category"),
|
|
15457
16022
|
target: CapScopeSchema,
|
|
@@ -15467,18 +16032,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15467
16032
|
target: string(),
|
|
15468
16033
|
access: array(MethodAccessSchema).min(1)
|
|
15469
16034
|
}),
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
/**
|
|
15473
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15474
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15475
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15476
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15477
|
-
*/
|
|
15478
|
-
targets: array(string()).min(1),
|
|
15479
|
-
access: array(MethodAccessSchema).min(1)
|
|
15480
|
-
})
|
|
15481
|
-
]);
|
|
16035
|
+
DeviceTokenScopeSchema
|
|
16036
|
+
]));
|
|
15482
16037
|
object({
|
|
15483
16038
|
id: string(),
|
|
15484
16039
|
username: string(),
|
|
@@ -15795,7 +16350,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15795
16350
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15796
16351
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15797
16352
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15798
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16353
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15799
16354
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15800
16355
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15801
16356
|
* (`getObjectEvents` et al.).
|
|
@@ -15931,7 +16486,21 @@ union([literal(1), literal(2)]);
|
|
|
15931
16486
|
var LabelAttributionSchema = object({
|
|
15932
16487
|
stepId: string(),
|
|
15933
16488
|
modelId: string().optional(),
|
|
15934
|
-
decidedAt: number()
|
|
16489
|
+
decidedAt: number(),
|
|
16490
|
+
/**
|
|
16491
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16492
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16493
|
+
*
|
|
16494
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16495
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16496
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16497
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16498
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16499
|
+
*
|
|
16500
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16501
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16502
|
+
*/
|
|
16503
|
+
identityId: string().optional()
|
|
15935
16504
|
});
|
|
15936
16505
|
/**
|
|
15937
16506
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16068,6 +16637,28 @@ var TrackSchema = object({
|
|
|
16068
16637
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16069
16638
|
*/
|
|
16070
16639
|
hasFace: boolean().optional(),
|
|
16640
|
+
/**
|
|
16641
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16642
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16643
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16644
|
+
*
|
|
16645
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16646
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16647
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16648
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16649
|
+
* stop. This is the composition note that makes the row true.
|
|
16650
|
+
*
|
|
16651
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16652
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16653
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16654
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16655
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16656
|
+
*
|
|
16657
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16658
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16659
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16660
|
+
*/
|
|
16661
|
+
hasRider: boolean().optional(),
|
|
16071
16662
|
...TrackFlagFields,
|
|
16072
16663
|
...TrackRetrainFields
|
|
16073
16664
|
});
|
|
@@ -16417,7 +17008,10 @@ var RecentTracksQueryInput = object({
|
|
|
16417
17008
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16418
17009
|
cursor: string().optional(),
|
|
16419
17010
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16420
|
-
projection: TrackProjectionSchema.optional()
|
|
17011
|
+
projection: TrackProjectionSchema.optional(),
|
|
17012
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
17013
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
17014
|
+
includeStationary: boolean().optional()
|
|
16421
17015
|
});
|
|
16422
17016
|
var RecentTracksPageSchema = object({
|
|
16423
17017
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16635,7 +17229,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16635
17229
|
zone: TrackZoneFilterSchema.optional(),
|
|
16636
17230
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16637
17231
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16638
|
-
projection: TrackProjectionSchema.optional()
|
|
17232
|
+
projection: TrackProjectionSchema.optional(),
|
|
17233
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
17234
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
17235
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
17236
|
+
includeStationary: boolean().optional()
|
|
16639
17237
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16640
17238
|
kind: "mutation",
|
|
16641
17239
|
auth: "admin"
|
|
@@ -16799,11 +17397,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16799
17397
|
auth: "admin"
|
|
16800
17398
|
}), method(object({
|
|
16801
17399
|
eventId: string(),
|
|
16802
|
-
kind: MediaFileKindEnum.optional()
|
|
17400
|
+
kind: MediaFileKindEnum.optional(),
|
|
17401
|
+
deviceId: number()
|
|
17402
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17403
|
+
trackId: string(),
|
|
17404
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17405
|
+
deviceId: number()
|
|
16803
17406
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16804
17407
|
trackId: string(),
|
|
16805
|
-
|
|
16806
|
-
}), array(
|
|
17408
|
+
deviceId: number()
|
|
17409
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16807
17410
|
kind: "mutation",
|
|
16808
17411
|
auth: "admin"
|
|
16809
17412
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17503,6 +18106,17 @@ var maxSessionHoldMsField = {
|
|
|
17503
18106
|
default: 12e4,
|
|
17504
18107
|
step: 5e3
|
|
17505
18108
|
};
|
|
18109
|
+
/**
|
|
18110
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18111
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18112
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18113
|
+
*/
|
|
18114
|
+
var audioMotionWindowMsField = {
|
|
18115
|
+
min: 5e3,
|
|
18116
|
+
max: 6e5,
|
|
18117
|
+
default: 9e4,
|
|
18118
|
+
step: 5e3
|
|
18119
|
+
};
|
|
17506
18120
|
var motionFpsField = {
|
|
17507
18121
|
min: 1,
|
|
17508
18122
|
max: 30,
|
|
@@ -17515,10 +18129,26 @@ var detectionFpsField = {
|
|
|
17515
18129
|
default: 10,
|
|
17516
18130
|
step: 1
|
|
17517
18131
|
};
|
|
18132
|
+
/**
|
|
18133
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18134
|
+
*
|
|
18135
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18136
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18137
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18138
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18139
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18140
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18141
|
+
*
|
|
18142
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18143
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18144
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18145
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18146
|
+
* that ships with an addon deploy.
|
|
18147
|
+
*/
|
|
17518
18148
|
var occupancyRecheckSecField = {
|
|
17519
18149
|
min: 0,
|
|
17520
18150
|
max: 300,
|
|
17521
|
-
default:
|
|
18151
|
+
default: 300,
|
|
17522
18152
|
step: 5
|
|
17523
18153
|
};
|
|
17524
18154
|
var occupancyRecheckFramesField = {
|
|
@@ -17663,6 +18293,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17663
18293
|
* resolved `CameraDetectionConfig`.
|
|
17664
18294
|
*/
|
|
17665
18295
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18296
|
+
/**
|
|
18297
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18298
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18299
|
+
*
|
|
18300
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18301
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18302
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18303
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18304
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18305
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18306
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18307
|
+
*
|
|
18308
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18309
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18310
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18311
|
+
*
|
|
18312
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18313
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18314
|
+
* `maxSessionHoldMs`.
|
|
18315
|
+
*/
|
|
18316
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17666
18317
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17667
18318
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17668
18319
|
motionStreamId: string(),
|
|
@@ -17716,15 +18367,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17716
18367
|
*/
|
|
17717
18368
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17718
18369
|
/**
|
|
17719
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17720
|
-
*
|
|
17721
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17722
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17723
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18370
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18371
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17724
18372
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17725
18373
|
* (and only render) when this is enabled.
|
|
17726
|
-
|
|
17727
|
-
|
|
18374
|
+
*
|
|
18375
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18376
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18377
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18378
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18379
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18380
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18381
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18382
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18383
|
+
*/
|
|
18384
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17728
18385
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17729
18386
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17730
18387
|
/**
|
|
@@ -17752,7 +18409,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17752
18409
|
*/
|
|
17753
18410
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17754
18411
|
});
|
|
17755
|
-
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;
|
|
18412
|
+
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;
|
|
17756
18413
|
/**
|
|
17757
18414
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17758
18415
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18857,7 +19514,16 @@ targets: array(object({
|
|
|
18857
19514
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18858
19515
|
* NOT refresh in the background. A surface should say so rather than
|
|
18859
19516
|
* present it as current. */
|
|
18860
|
-
sleeping: boolean()
|
|
19517
|
+
sleeping: boolean(),
|
|
19518
|
+
/** Current device state rendered over the cached frame. State images
|
|
19519
|
+
* remain authoritative even when their photographic background is
|
|
19520
|
+
* old; null means the link must carry a current camera frame. */
|
|
19521
|
+
stateReason: _enum([
|
|
19522
|
+
"disabled",
|
|
19523
|
+
"sleeping",
|
|
19524
|
+
"unreachable",
|
|
19525
|
+
"waking"
|
|
19526
|
+
]).nullable()
|
|
18861
19527
|
})))
|
|
18862
19528
|
},
|
|
18863
19529
|
status: {
|
|
@@ -20517,6 +21183,25 @@ var BatteryStatusSchema = object({
|
|
|
20517
21183
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20518
21184
|
lastUpdated: number(),
|
|
20519
21185
|
/**
|
|
21186
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
21187
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
21188
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
21189
|
+
*
|
|
21190
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
21191
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
21192
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
21193
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
21194
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
21195
|
+
*
|
|
21196
|
+
* It is deliberately NOT a clock in the
|
|
21197
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
21198
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
21199
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
21200
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
21201
|
+
* SQLite commit per round-trip.
|
|
21202
|
+
*/
|
|
21203
|
+
lastContactAt: number().optional(),
|
|
21204
|
+
/**
|
|
20520
21205
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20521
21206
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20522
21207
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -22781,54 +23466,139 @@ var TalkAudioCodecSchema = _enum([
|
|
|
22781
23466
|
"g711ulaw",
|
|
22782
23467
|
"g711alaw"
|
|
22783
23468
|
]);
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22792
|
-
|
|
22793
|
-
|
|
22794
|
-
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
}),
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
}),
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
}),
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
|
|
22819
|
-
|
|
22820
|
-
|
|
22821
|
-
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
|
|
22826
|
-
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
23469
|
+
var intercomCapability = {
|
|
23470
|
+
name: "intercom",
|
|
23471
|
+
scope: "device",
|
|
23472
|
+
deviceNative: true,
|
|
23473
|
+
mode: "singleton",
|
|
23474
|
+
deviceTypes: [DeviceType.Camera],
|
|
23475
|
+
methods: {
|
|
23476
|
+
/**
|
|
23477
|
+
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
23478
|
+
* offer with a single sendonly audio m-line the client answers
|
|
23479
|
+
* (client → server direction). The server wakes battery cams
|
|
23480
|
+
* transparently before opening the upstream talk channel.
|
|
23481
|
+
*/
|
|
23482
|
+
startSession: method(object({ deviceId: number() }), object({
|
|
23483
|
+
sessionId: string(),
|
|
23484
|
+
sdpOffer: string()
|
|
23485
|
+
}), {
|
|
23486
|
+
kind: "mutation",
|
|
23487
|
+
auth: "admin"
|
|
23488
|
+
}),
|
|
23489
|
+
handleAnswer: method(object({
|
|
23490
|
+
deviceId: number(),
|
|
23491
|
+
sessionId: string(),
|
|
23492
|
+
sdpAnswer: string()
|
|
23493
|
+
}), _void(), {
|
|
23494
|
+
kind: "mutation",
|
|
23495
|
+
auth: "admin"
|
|
23496
|
+
}),
|
|
23497
|
+
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
23498
|
+
stopSession: method(object({
|
|
23499
|
+
deviceId: number(),
|
|
23500
|
+
sessionId: string()
|
|
23501
|
+
}), _void(), {
|
|
23502
|
+
kind: "mutation",
|
|
23503
|
+
auth: "admin"
|
|
23504
|
+
}),
|
|
23505
|
+
/**
|
|
23506
|
+
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
23507
|
+
* non-WebRTC consumers (HomeKit export, Alexa raw audio, test
|
|
23508
|
+
* harnesses) that already have decoded PCM frames and just need a
|
|
23509
|
+
* direct path onto the camera's talk channel. Mutually exclusive
|
|
23510
|
+
* with `startSession` (an active WebRTC session must be stopped
|
|
23511
|
+
* before a raw-PCM session can be opened on the same device, and
|
|
23512
|
+
* vice versa).
|
|
23513
|
+
*/
|
|
23514
|
+
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
23515
|
+
kind: "mutation",
|
|
23516
|
+
auth: "admin"
|
|
23517
|
+
}),
|
|
23518
|
+
/**
|
|
23519
|
+
* Push one chunk of talk-back audio onto the active talk session.
|
|
23520
|
+
* The cap is codec-agnostic: the caller declares (or omits) the
|
|
23521
|
+
* wire format via `codec`; the provider decides between passthrough
|
|
23522
|
+
* (when the wire codec matches the camera's native talk channel),
|
|
23523
|
+
* transcoding via the `audio-codec` cap, or rejecting the call.
|
|
23524
|
+
*
|
|
23525
|
+
* Callers do NOT need to know the camera's wire format or sample
|
|
23526
|
+
* rate — that information lives entirely inside the provider.
|
|
23527
|
+
*
|
|
23528
|
+
* Sequence numbers MUST be monotonic per talk session; older frames
|
|
23529
|
+
* arriving after newer ones are dropped to avoid smearing the
|
|
23530
|
+
* downstream encoder state (G.711 is stateless but IMA ADPCM's
|
|
23531
|
+
* predictor would corrupt with re-ordering).
|
|
23532
|
+
*/
|
|
23533
|
+
pushTalkAudio: method(object({
|
|
23534
|
+
deviceId: number(),
|
|
23535
|
+
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
23536
|
+
* survives tRPC JSON serialization. */
|
|
23537
|
+
audioBase64: string(),
|
|
23538
|
+
/** Wire codec of the payload. Omit to let the provider default
|
|
23539
|
+
* to its native expected format (s16le @ provider-native rate,
|
|
23540
|
+
* mono). See {@link TalkAudioCodecSchema} for the supported set. */
|
|
23541
|
+
codec: TalkAudioCodecSchema.optional(),
|
|
23542
|
+
/** Sample rate (Hz). REQUIRED for `s16le`; advisory for
|
|
23543
|
+
* `opus` (encoder clock); ignored for `g711*` (implied 8000). */
|
|
23544
|
+
sampleRate: number().int().positive().optional(),
|
|
23545
|
+
/** Channel count. Default 1. */
|
|
23546
|
+
channels: number().int().positive().optional(),
|
|
23547
|
+
/** Sequence number for ordering / dropping out-of-order frames. */
|
|
23548
|
+
sequenceNumber: number().int()
|
|
23549
|
+
}), object({ accepted: boolean() }), {
|
|
23550
|
+
kind: "mutation",
|
|
23551
|
+
auth: "admin"
|
|
23552
|
+
}),
|
|
23553
|
+
/** Close the raw-PCM talk session. Idempotent. */
|
|
23554
|
+
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
23555
|
+
kind: "mutation",
|
|
23556
|
+
auth: "admin"
|
|
23557
|
+
})
|
|
23558
|
+
},
|
|
23559
|
+
events: { onStatusChanged: { data: object({
|
|
23560
|
+
deviceId: number(),
|
|
23561
|
+
status: IntercomStatusSchema
|
|
23562
|
+
}) } },
|
|
23563
|
+
status: {
|
|
23564
|
+
schema: IntercomStatusSchema,
|
|
23565
|
+
kind: "command-driven"
|
|
23566
|
+
},
|
|
23567
|
+
/**
|
|
23568
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
23569
|
+
*
|
|
23570
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
23571
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
23572
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
23573
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
23574
|
+
* have been published and never received a value, which is the defect the
|
|
23575
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
23576
|
+
* `intercom` was excluded rather than exported.
|
|
23577
|
+
*
|
|
23578
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
23579
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
23580
|
+
* come to disagree. Providers write it through
|
|
23581
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
23582
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
23583
|
+
* the first session rather than after it.
|
|
23584
|
+
*
|
|
23585
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
23586
|
+
* session handle, so a session torn down by a transport death that never
|
|
23587
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
23588
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
23589
|
+
* `restored` — a restart must never restore "talking".
|
|
23590
|
+
*/
|
|
23591
|
+
runtimeState: IntercomStatusSchema,
|
|
23592
|
+
/**
|
|
23593
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
23594
|
+
* session, which by definition does not survive the process that held it.
|
|
23595
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
23596
|
+
*
|
|
23597
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23598
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23599
|
+
*/
|
|
23600
|
+
durability: "session"
|
|
23601
|
+
};
|
|
22832
23602
|
/**
|
|
22833
23603
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
22834
23604
|
* with a mowing lifecycle plus a dock action.
|
|
@@ -25613,7 +26383,7 @@ method(object({
|
|
|
25613
26383
|
toMs: number()
|
|
25614
26384
|
}), RecordingAvailabilitySchema, {
|
|
25615
26385
|
kind: "query",
|
|
25616
|
-
auth: "
|
|
26386
|
+
auth: "protected"
|
|
25617
26387
|
}), method(object({
|
|
25618
26388
|
deviceId: number(),
|
|
25619
26389
|
fromMs: number(),
|
|
@@ -25621,14 +26391,14 @@ method(object({
|
|
|
25621
26391
|
tzOffsetMinutes: number()
|
|
25622
26392
|
}), RecordingDaysSchema, {
|
|
25623
26393
|
kind: "query",
|
|
25624
|
-
auth: "
|
|
26394
|
+
auth: "protected"
|
|
25625
26395
|
}), method(object({
|
|
25626
26396
|
deviceId: number(),
|
|
25627
26397
|
fromMs: number(),
|
|
25628
26398
|
toMs: number()
|
|
25629
26399
|
}), RecordingManifestSchema, {
|
|
25630
26400
|
kind: "query",
|
|
25631
|
-
auth: "
|
|
26401
|
+
auth: "protected"
|
|
25632
26402
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
25633
26403
|
kind: "query",
|
|
25634
26404
|
auth: "admin"
|
|
@@ -25918,14 +26688,77 @@ method(object({
|
|
|
25918
26688
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
25919
26689
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
25920
26690
|
*
|
|
25921
|
-
*
|
|
25922
|
-
*
|
|
25923
|
-
*
|
|
25924
|
-
*
|
|
25925
|
-
|
|
25926
|
-
|
|
25927
|
-
*
|
|
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. */
|
|
25928
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
|
+
]);
|
|
25929
26762
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
25930
26763
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
25931
26764
|
var SceneReferenceSchema = object({
|
|
@@ -25933,7 +26766,14 @@ var SceneReferenceSchema = object({
|
|
|
25933
26766
|
modelId: string(),
|
|
25934
26767
|
condition: SceneConditionSchema,
|
|
25935
26768
|
capturedAt: number(),
|
|
25936
|
-
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()
|
|
25937
26777
|
});
|
|
25938
26778
|
var SceneMonitorStateSchema = object({
|
|
25939
26779
|
id: string(),
|
|
@@ -25955,6 +26795,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
25955
26795
|
profileId: string().optional(),
|
|
25956
26796
|
hysteresisCount: number().int().positive()
|
|
25957
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
|
+
});
|
|
25958
26820
|
var SceneMonitorSchema = object({
|
|
25959
26821
|
id: string(),
|
|
25960
26822
|
label: string(),
|
|
@@ -25973,7 +26835,56 @@ var SceneMonitorSchema = object({
|
|
|
25973
26835
|
lastConfidence: number().nullable(),
|
|
25974
26836
|
currentCondition: SceneConditionSchema.nullable(),
|
|
25975
26837
|
availability: _enum(["ok", "unavailable"]),
|
|
25976
|
-
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)
|
|
25977
26888
|
});
|
|
25978
26889
|
var SceneMonitorStatusSchema = object({
|
|
25979
26890
|
monitors: array(SceneMonitorSchema),
|
|
@@ -25986,12 +26897,6 @@ var sceneMonitorCapability = {
|
|
|
25986
26897
|
kind: "wrapper",
|
|
25987
26898
|
defaultActive: true,
|
|
25988
26899
|
deviceTypes: [DeviceType.Camera],
|
|
25989
|
-
deviceConfig: { ui: {
|
|
25990
|
-
kind: "widget",
|
|
25991
|
-
widgetId: "host/scene-monitor-editor",
|
|
25992
|
-
tab: "scenes",
|
|
25993
|
-
label: "Scenes"
|
|
25994
|
-
} },
|
|
25995
26900
|
methods: {
|
|
25996
26901
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
25997
26902
|
createScene: method(object({
|
|
@@ -26022,7 +26927,15 @@ var sceneMonitorCapability = {
|
|
|
26022
26927
|
"both"
|
|
26023
26928
|
]).optional(),
|
|
26024
26929
|
checkIntervalSec: number().optional(),
|
|
26025
|
-
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()
|
|
26026
26939
|
})
|
|
26027
26940
|
}), _void(), {
|
|
26028
26941
|
kind: "mutation",
|
|
@@ -26063,6 +26976,26 @@ var sceneMonitorCapability = {
|
|
|
26063
26976
|
}), _void(), {
|
|
26064
26977
|
kind: "mutation",
|
|
26065
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"
|
|
26066
26999
|
})
|
|
26067
27000
|
},
|
|
26068
27001
|
status: {
|
|
@@ -26305,13 +27238,63 @@ var CamStreamDescriptorSchema = object({
|
|
|
26305
27238
|
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
26306
27239
|
* broker can reconcile its registry against the authoritative provider state.
|
|
26307
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
|
+
});
|
|
26308
27274
|
var streamCatalogCapability = {
|
|
26309
27275
|
name: "stream-catalog",
|
|
26310
27276
|
scope: "device",
|
|
26311
27277
|
deviceNative: true,
|
|
26312
27278
|
mode: "singleton",
|
|
26313
27279
|
deviceTypes: [DeviceType.Camera],
|
|
26314
|
-
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"]
|
|
26315
27298
|
};
|
|
26316
27299
|
/** One of the camera's stream profiles. */
|
|
26317
27300
|
var StreamProfileSchema = _enum([
|
|
@@ -26764,12 +27747,64 @@ var NetworkAddressSchema = object({
|
|
|
26764
27747
|
family: string(),
|
|
26765
27748
|
internal: boolean()
|
|
26766
27749
|
});
|
|
27750
|
+
/**
|
|
27751
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
27752
|
+
* numbers.
|
|
27753
|
+
*
|
|
27754
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
27755
|
+
* nothing overwrites it.
|
|
27756
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
27757
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
27758
|
+
* the sun-times consumers otherwise fall back to.
|
|
27759
|
+
*
|
|
27760
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
27761
|
+
* own input will eventually trust the guess.
|
|
27762
|
+
*/
|
|
27763
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
27764
|
+
/**
|
|
27765
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
27766
|
+
*
|
|
27767
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
27768
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
27769
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
27770
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
27771
|
+
* coordinates or presses detect.
|
|
27772
|
+
*/
|
|
27773
|
+
var SiteLocationStatusSchema = object({
|
|
27774
|
+
location: object({
|
|
27775
|
+
/** WGS84 decimal degrees. */
|
|
27776
|
+
latitude: number().min(-90).max(90),
|
|
27777
|
+
longitude: number().min(-180).max(180),
|
|
27778
|
+
source: SiteLocationSourceSchema,
|
|
27779
|
+
/** Epoch ms the value was last written. */
|
|
27780
|
+
updatedAt: number(),
|
|
27781
|
+
/**
|
|
27782
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
27783
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
27784
|
+
*/
|
|
27785
|
+
label: string().optional()
|
|
27786
|
+
}).nullable(),
|
|
27787
|
+
derivationAttemptedAt: number().nullable(),
|
|
27788
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
27789
|
+
derivationError: string().nullable()
|
|
27790
|
+
});
|
|
27791
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
27792
|
+
var SetSiteLocationInputSchema = object({
|
|
27793
|
+
latitude: number().min(-90).max(90),
|
|
27794
|
+
longitude: number().min(-180).max(180)
|
|
27795
|
+
}).nullable();
|
|
26767
27796
|
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(), {
|
|
26768
27797
|
kind: "mutation",
|
|
26769
27798
|
auth: "admin"
|
|
26770
27799
|
}), method(_void(), _void(), {
|
|
26771
27800
|
kind: "mutation",
|
|
26772
27801
|
auth: "admin"
|
|
27802
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
27803
|
+
kind: "mutation",
|
|
27804
|
+
auth: "admin"
|
|
27805
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
27806
|
+
kind: "mutation",
|
|
27807
|
+
auth: "admin"
|
|
26773
27808
|
});
|
|
26774
27809
|
/**
|
|
26775
27810
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -28089,6 +29124,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28089
29124
|
humiditySensor: humiditySensorCapability,
|
|
28090
29125
|
image: imageCapability,
|
|
28091
29126
|
imageSettings: imageSettingsCapability,
|
|
29127
|
+
intercom: intercomCapability,
|
|
28092
29128
|
lawnMowerControl: lawnMowerControlCapability,
|
|
28093
29129
|
lockControl: lockControlCapability,
|
|
28094
29130
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -28107,6 +29143,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28107
29143
|
sceneMonitor: sceneMonitorCapability,
|
|
28108
29144
|
scriptRunner: scriptRunnerCapability,
|
|
28109
29145
|
smoke: smokeCapability,
|
|
29146
|
+
streamCatalog: streamCatalogCapability,
|
|
28110
29147
|
streamParams: streamParamsCapability,
|
|
28111
29148
|
switch: switchCapability,
|
|
28112
29149
|
tamper: tamperCapability,
|
|
@@ -28760,6 +29797,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28760
29797
|
labels: ["probe not implemented"]
|
|
28761
29798
|
};
|
|
28762
29799
|
}
|
|
29800
|
+
/**
|
|
29801
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
29802
|
+
*
|
|
29803
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
29804
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
29805
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
29806
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
29807
|
+
*/
|
|
29808
|
+
restoreConcurrency = 4;
|
|
28763
29809
|
async restoreDevices(savedDevices) {
|
|
28764
29810
|
await this.onRestoreDevices(savedDevices);
|
|
28765
29811
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -28791,15 +29837,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28791
29837
|
*/
|
|
28792
29838
|
async onRestoreDevices(savedDevices) {
|
|
28793
29839
|
const restored = /* @__PURE__ */ new Set();
|
|
28794
|
-
|
|
28795
|
-
|
|
29840
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
29841
|
+
const restoreOne = async (saved) => {
|
|
28796
29842
|
const Class = this.deviceClasses[saved.type];
|
|
28797
29843
|
if (!Class) {
|
|
28798
29844
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
28799
29845
|
tags: { stableId: saved.stableId },
|
|
28800
29846
|
meta: { type: saved.type }
|
|
28801
29847
|
});
|
|
28802
|
-
|
|
29848
|
+
return;
|
|
28803
29849
|
}
|
|
28804
29850
|
try {
|
|
28805
29851
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -28813,7 +29859,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
28813
29859
|
}
|
|
28814
29860
|
});
|
|
28815
29861
|
}
|
|
28816
|
-
}
|
|
29862
|
+
};
|
|
29863
|
+
let nextTopLevel = 0;
|
|
29864
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
29865
|
+
for (;;) {
|
|
29866
|
+
const saved = topLevel[nextTopLevel++];
|
|
29867
|
+
if (saved === void 0) return;
|
|
29868
|
+
await restoreOne(saved);
|
|
29869
|
+
}
|
|
29870
|
+
}));
|
|
28817
29871
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
28818
29872
|
for (const saved of childRows) {
|
|
28819
29873
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -31035,6 +32089,12 @@ Object.freeze({
|
|
|
31035
32089
|
addonId: null,
|
|
31036
32090
|
access: "create"
|
|
31037
32091
|
},
|
|
32092
|
+
"llm.cancel": {
|
|
32093
|
+
capName: "llm",
|
|
32094
|
+
capScope: "system",
|
|
32095
|
+
addonId: null,
|
|
32096
|
+
access: "create"
|
|
32097
|
+
},
|
|
31038
32098
|
"llm.deleteModel": {
|
|
31039
32099
|
capName: "llm",
|
|
31040
32100
|
capScope: "system",
|
|
@@ -31119,6 +32179,12 @@ Object.freeze({
|
|
|
31119
32179
|
addonId: null,
|
|
31120
32180
|
access: "view"
|
|
31121
32181
|
},
|
|
32182
|
+
"llm.resolveModelRef": {
|
|
32183
|
+
capName: "llm",
|
|
32184
|
+
capScope: "system",
|
|
32185
|
+
addonId: null,
|
|
32186
|
+
access: "create"
|
|
32187
|
+
},
|
|
31122
32188
|
"llm.setDefault": {
|
|
31123
32189
|
capName: "llm",
|
|
31124
32190
|
capScope: "system",
|
|
@@ -33285,6 +34351,12 @@ Object.freeze({
|
|
|
33285
34351
|
addonId: null,
|
|
33286
34352
|
access: "create"
|
|
33287
34353
|
},
|
|
34354
|
+
"sceneMonitor.resetScene": {
|
|
34355
|
+
capName: "scene-monitor",
|
|
34356
|
+
capScope: "device",
|
|
34357
|
+
addonId: null,
|
|
34358
|
+
access: "delete"
|
|
34359
|
+
},
|
|
33288
34360
|
"sceneMonitor.updateScene": {
|
|
33289
34361
|
capName: "scene-monitor",
|
|
33290
34362
|
capScope: "device",
|
|
@@ -33963,6 +35035,12 @@ Object.freeze({
|
|
|
33963
35035
|
addonId: null,
|
|
33964
35036
|
access: "create"
|
|
33965
35037
|
},
|
|
35038
|
+
"system.detectSiteLocation": {
|
|
35039
|
+
capName: "system",
|
|
35040
|
+
capScope: "system",
|
|
35041
|
+
addonId: null,
|
|
35042
|
+
access: "create"
|
|
35043
|
+
},
|
|
33966
35044
|
"system.featureFlags": {
|
|
33967
35045
|
capName: "system",
|
|
33968
35046
|
capScope: "system",
|
|
@@ -33981,6 +35059,12 @@ Object.freeze({
|
|
|
33981
35059
|
addonId: null,
|
|
33982
35060
|
access: "view"
|
|
33983
35061
|
},
|
|
35062
|
+
"system.getSiteLocation": {
|
|
35063
|
+
capName: "system",
|
|
35064
|
+
capScope: "system",
|
|
35065
|
+
addonId: null,
|
|
35066
|
+
access: "view"
|
|
35067
|
+
},
|
|
33984
35068
|
"system.health": {
|
|
33985
35069
|
capName: "system",
|
|
33986
35070
|
capScope: "system",
|
|
@@ -34005,6 +35089,12 @@ Object.freeze({
|
|
|
34005
35089
|
addonId: null,
|
|
34006
35090
|
access: "create"
|
|
34007
35091
|
},
|
|
35092
|
+
"system.setSiteLocation": {
|
|
35093
|
+
capName: "system",
|
|
35094
|
+
capScope: "system",
|
|
35095
|
+
addonId: null,
|
|
35096
|
+
access: "create"
|
|
35097
|
+
},
|
|
34008
35098
|
"terminalSession.adoptLegacyMonitor": {
|
|
34009
35099
|
capName: "terminal-session",
|
|
34010
35100
|
capScope: "system",
|
|
@@ -34576,6 +35666,1704 @@ Object.freeze({
|
|
|
34576
35666
|
access: "create"
|
|
34577
35667
|
}
|
|
34578
35668
|
});
|
|
35669
|
+
Object.freeze({
|
|
35670
|
+
"accessories.setChildHidden": [{
|
|
35671
|
+
name: "childDeviceId",
|
|
35672
|
+
form: "single",
|
|
35673
|
+
optional: false
|
|
35674
|
+
}, {
|
|
35675
|
+
name: "deviceId",
|
|
35676
|
+
form: "single",
|
|
35677
|
+
optional: false
|
|
35678
|
+
}],
|
|
35679
|
+
"addonSettings.getDeviceSettings": [{
|
|
35680
|
+
name: "deviceId",
|
|
35681
|
+
form: "single",
|
|
35682
|
+
optional: false
|
|
35683
|
+
}],
|
|
35684
|
+
"addonSettings.updateDeviceSettings": [{
|
|
35685
|
+
name: "deviceId",
|
|
35686
|
+
form: "single",
|
|
35687
|
+
optional: false
|
|
35688
|
+
}],
|
|
35689
|
+
"alarmPanel.arm": [{
|
|
35690
|
+
name: "deviceId",
|
|
35691
|
+
form: "single",
|
|
35692
|
+
optional: false
|
|
35693
|
+
}],
|
|
35694
|
+
"alarmPanel.disarm": [{
|
|
35695
|
+
name: "deviceId",
|
|
35696
|
+
form: "single",
|
|
35697
|
+
optional: false
|
|
35698
|
+
}],
|
|
35699
|
+
"alarmPanel.trigger": [{
|
|
35700
|
+
name: "deviceId",
|
|
35701
|
+
form: "single",
|
|
35702
|
+
optional: false
|
|
35703
|
+
}],
|
|
35704
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
35705
|
+
name: "deviceId",
|
|
35706
|
+
form: "single",
|
|
35707
|
+
optional: false
|
|
35708
|
+
}],
|
|
35709
|
+
"audioAnalyzer.classify": [{
|
|
35710
|
+
name: "deviceId",
|
|
35711
|
+
form: "single",
|
|
35712
|
+
optional: true
|
|
35713
|
+
}],
|
|
35714
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
35715
|
+
name: "deviceId",
|
|
35716
|
+
form: "single",
|
|
35717
|
+
optional: false
|
|
35718
|
+
}],
|
|
35719
|
+
"audioMetrics.getHistory": [{
|
|
35720
|
+
name: "deviceId",
|
|
35721
|
+
form: "single",
|
|
35722
|
+
optional: false
|
|
35723
|
+
}],
|
|
35724
|
+
"automationControl.disable": [{
|
|
35725
|
+
name: "deviceId",
|
|
35726
|
+
form: "single",
|
|
35727
|
+
optional: false
|
|
35728
|
+
}],
|
|
35729
|
+
"automationControl.enable": [{
|
|
35730
|
+
name: "deviceId",
|
|
35731
|
+
form: "single",
|
|
35732
|
+
optional: false
|
|
35733
|
+
}],
|
|
35734
|
+
"automationControl.trigger": [{
|
|
35735
|
+
name: "deviceId",
|
|
35736
|
+
form: "single",
|
|
35737
|
+
optional: false
|
|
35738
|
+
}],
|
|
35739
|
+
"battery.wakeForStream": [{
|
|
35740
|
+
name: "deviceId",
|
|
35741
|
+
form: "single",
|
|
35742
|
+
optional: false
|
|
35743
|
+
}],
|
|
35744
|
+
"brightness.setBrightness": [{
|
|
35745
|
+
name: "deviceId",
|
|
35746
|
+
form: "single",
|
|
35747
|
+
optional: false
|
|
35748
|
+
}],
|
|
35749
|
+
"button.press": [{
|
|
35750
|
+
name: "deviceId",
|
|
35751
|
+
form: "single",
|
|
35752
|
+
optional: false
|
|
35753
|
+
}],
|
|
35754
|
+
"cameraCredentials.getCredentials": [{
|
|
35755
|
+
name: "deviceId",
|
|
35756
|
+
form: "single",
|
|
35757
|
+
optional: false
|
|
35758
|
+
}],
|
|
35759
|
+
"cameraStreams.getBrokerStreams": [{
|
|
35760
|
+
name: "deviceId",
|
|
35761
|
+
form: "single",
|
|
35762
|
+
optional: false
|
|
35763
|
+
}],
|
|
35764
|
+
"cameraStreams.getCameraStreams": [{
|
|
35765
|
+
name: "deviceId",
|
|
35766
|
+
form: "single",
|
|
35767
|
+
optional: false
|
|
35768
|
+
}],
|
|
35769
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
35770
|
+
name: "deviceId",
|
|
35771
|
+
form: "single",
|
|
35772
|
+
optional: false
|
|
35773
|
+
}],
|
|
35774
|
+
"cameraStreams.getRtspEntries": [{
|
|
35775
|
+
name: "deviceId",
|
|
35776
|
+
form: "single",
|
|
35777
|
+
optional: false
|
|
35778
|
+
}],
|
|
35779
|
+
"cameraStreams.pickStream": [{
|
|
35780
|
+
name: "deviceId",
|
|
35781
|
+
form: "single",
|
|
35782
|
+
optional: false
|
|
35783
|
+
}],
|
|
35784
|
+
"climateControl.setFanMode": [{
|
|
35785
|
+
name: "deviceId",
|
|
35786
|
+
form: "single",
|
|
35787
|
+
optional: false
|
|
35788
|
+
}],
|
|
35789
|
+
"climateControl.setMode": [{
|
|
35790
|
+
name: "deviceId",
|
|
35791
|
+
form: "single",
|
|
35792
|
+
optional: false
|
|
35793
|
+
}],
|
|
35794
|
+
"climateControl.setPreset": [{
|
|
35795
|
+
name: "deviceId",
|
|
35796
|
+
form: "single",
|
|
35797
|
+
optional: false
|
|
35798
|
+
}],
|
|
35799
|
+
"climateControl.setSwingHorizontal": [{
|
|
35800
|
+
name: "deviceId",
|
|
35801
|
+
form: "single",
|
|
35802
|
+
optional: false
|
|
35803
|
+
}],
|
|
35804
|
+
"climateControl.setSwingVertical": [{
|
|
35805
|
+
name: "deviceId",
|
|
35806
|
+
form: "single",
|
|
35807
|
+
optional: false
|
|
35808
|
+
}],
|
|
35809
|
+
"climateControl.setTarget": [{
|
|
35810
|
+
name: "deviceId",
|
|
35811
|
+
form: "single",
|
|
35812
|
+
optional: false
|
|
35813
|
+
}],
|
|
35814
|
+
"climateControl.setTargetHumidity": [{
|
|
35815
|
+
name: "deviceId",
|
|
35816
|
+
form: "single",
|
|
35817
|
+
optional: false
|
|
35818
|
+
}],
|
|
35819
|
+
"climateControl.setTargetRange": [{
|
|
35820
|
+
name: "deviceId",
|
|
35821
|
+
form: "single",
|
|
35822
|
+
optional: false
|
|
35823
|
+
}],
|
|
35824
|
+
"color.setColor": [{
|
|
35825
|
+
name: "deviceId",
|
|
35826
|
+
form: "single",
|
|
35827
|
+
optional: false
|
|
35828
|
+
}],
|
|
35829
|
+
"consumables.reset": [{
|
|
35830
|
+
name: "deviceId",
|
|
35831
|
+
form: "single",
|
|
35832
|
+
optional: false
|
|
35833
|
+
}],
|
|
35834
|
+
"control.setValue": [{
|
|
35835
|
+
name: "deviceId",
|
|
35836
|
+
form: "single",
|
|
35837
|
+
optional: false
|
|
35838
|
+
}],
|
|
35839
|
+
"cover.close": [{
|
|
35840
|
+
name: "deviceId",
|
|
35841
|
+
form: "single",
|
|
35842
|
+
optional: false
|
|
35843
|
+
}],
|
|
35844
|
+
"cover.open": [{
|
|
35845
|
+
name: "deviceId",
|
|
35846
|
+
form: "single",
|
|
35847
|
+
optional: false
|
|
35848
|
+
}],
|
|
35849
|
+
"cover.setPosition": [{
|
|
35850
|
+
name: "deviceId",
|
|
35851
|
+
form: "single",
|
|
35852
|
+
optional: false
|
|
35853
|
+
}],
|
|
35854
|
+
"cover.setTiltPosition": [{
|
|
35855
|
+
name: "deviceId",
|
|
35856
|
+
form: "single",
|
|
35857
|
+
optional: false
|
|
35858
|
+
}],
|
|
35859
|
+
"cover.stop": [{
|
|
35860
|
+
name: "deviceId",
|
|
35861
|
+
form: "single",
|
|
35862
|
+
optional: false
|
|
35863
|
+
}],
|
|
35864
|
+
"dayNight.getOptions": [{
|
|
35865
|
+
name: "deviceId",
|
|
35866
|
+
form: "single",
|
|
35867
|
+
optional: false
|
|
35868
|
+
}],
|
|
35869
|
+
"dayNight.setSettings": [{
|
|
35870
|
+
name: "deviceId",
|
|
35871
|
+
form: "single",
|
|
35872
|
+
optional: false
|
|
35873
|
+
}],
|
|
35874
|
+
"decoder.createSession": [{
|
|
35875
|
+
name: "deviceId",
|
|
35876
|
+
form: "single",
|
|
35877
|
+
optional: true
|
|
35878
|
+
}],
|
|
35879
|
+
"deviceAdoption.release": [{
|
|
35880
|
+
name: "camDeviceId",
|
|
35881
|
+
form: "single",
|
|
35882
|
+
optional: false
|
|
35883
|
+
}],
|
|
35884
|
+
"deviceAdoption.resync": [{
|
|
35885
|
+
name: "camDeviceId",
|
|
35886
|
+
form: "single",
|
|
35887
|
+
optional: false
|
|
35888
|
+
}],
|
|
35889
|
+
"deviceDiscovery.adoptDevice": [{
|
|
35890
|
+
name: "deviceId",
|
|
35891
|
+
form: "single",
|
|
35892
|
+
optional: false
|
|
35893
|
+
}],
|
|
35894
|
+
"deviceDiscovery.listDiscovered": [{
|
|
35895
|
+
name: "deviceId",
|
|
35896
|
+
form: "single",
|
|
35897
|
+
optional: false
|
|
35898
|
+
}],
|
|
35899
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
35900
|
+
name: "deviceId",
|
|
35901
|
+
form: "single",
|
|
35902
|
+
optional: false
|
|
35903
|
+
}],
|
|
35904
|
+
"deviceDiscovery.releaseDevice": [{
|
|
35905
|
+
name: "childDeviceId",
|
|
35906
|
+
form: "single",
|
|
35907
|
+
optional: false
|
|
35908
|
+
}, {
|
|
35909
|
+
name: "deviceId",
|
|
35910
|
+
form: "single",
|
|
35911
|
+
optional: false
|
|
35912
|
+
}],
|
|
35913
|
+
"deviceManager.adoptionRelease": [{
|
|
35914
|
+
name: "camDeviceId",
|
|
35915
|
+
form: "single",
|
|
35916
|
+
optional: false
|
|
35917
|
+
}],
|
|
35918
|
+
"deviceManager.adoptionResync": [{
|
|
35919
|
+
name: "camDeviceId",
|
|
35920
|
+
form: "single",
|
|
35921
|
+
optional: false
|
|
35922
|
+
}],
|
|
35923
|
+
"deviceManager.applyInitialMeta": [{
|
|
35924
|
+
name: "deviceId",
|
|
35925
|
+
form: "single",
|
|
35926
|
+
optional: false
|
|
35927
|
+
}, {
|
|
35928
|
+
name: "linkDeviceId",
|
|
35929
|
+
form: "single",
|
|
35930
|
+
optional: true
|
|
35931
|
+
}],
|
|
35932
|
+
"deviceManager.disable": [{
|
|
35933
|
+
name: "deviceId",
|
|
35934
|
+
form: "single",
|
|
35935
|
+
optional: false
|
|
35936
|
+
}],
|
|
35937
|
+
"deviceManager.enable": [{
|
|
35938
|
+
name: "deviceId",
|
|
35939
|
+
form: "single",
|
|
35940
|
+
optional: false
|
|
35941
|
+
}],
|
|
35942
|
+
"deviceManager.getBindings": [{
|
|
35943
|
+
name: "deviceId",
|
|
35944
|
+
form: "single",
|
|
35945
|
+
optional: false
|
|
35946
|
+
}],
|
|
35947
|
+
"deviceManager.getChildren": [{
|
|
35948
|
+
name: "parentDeviceId",
|
|
35949
|
+
form: "single",
|
|
35950
|
+
optional: false
|
|
35951
|
+
}],
|
|
35952
|
+
"deviceManager.getConfigSchema": [{
|
|
35953
|
+
name: "deviceId",
|
|
35954
|
+
form: "single",
|
|
35955
|
+
optional: false
|
|
35956
|
+
}],
|
|
35957
|
+
"deviceManager.getDevice": [{
|
|
35958
|
+
name: "deviceId",
|
|
35959
|
+
form: "single",
|
|
35960
|
+
optional: false
|
|
35961
|
+
}],
|
|
35962
|
+
"deviceManager.getDeviceAggregate": [{
|
|
35963
|
+
name: "deviceId",
|
|
35964
|
+
form: "single",
|
|
35965
|
+
optional: false
|
|
35966
|
+
}],
|
|
35967
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
35968
|
+
name: "deviceId",
|
|
35969
|
+
form: "single",
|
|
35970
|
+
optional: false
|
|
35971
|
+
}],
|
|
35972
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
35973
|
+
name: "deviceId",
|
|
35974
|
+
form: "single",
|
|
35975
|
+
optional: false
|
|
35976
|
+
}],
|
|
35977
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
35978
|
+
name: "deviceId",
|
|
35979
|
+
form: "single",
|
|
35980
|
+
optional: false
|
|
35981
|
+
}],
|
|
35982
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
35983
|
+
name: "deviceIds",
|
|
35984
|
+
form: "array",
|
|
35985
|
+
optional: false
|
|
35986
|
+
}],
|
|
35987
|
+
"deviceManager.getLinkedDevices": [{
|
|
35988
|
+
name: "deviceId",
|
|
35989
|
+
form: "single",
|
|
35990
|
+
optional: false
|
|
35991
|
+
}],
|
|
35992
|
+
"deviceManager.getSettingsSchema": [{
|
|
35993
|
+
name: "deviceId",
|
|
35994
|
+
form: "single",
|
|
35995
|
+
optional: false
|
|
35996
|
+
}],
|
|
35997
|
+
"deviceManager.getStreamProfileMap": [{
|
|
35998
|
+
name: "deviceId",
|
|
35999
|
+
form: "single",
|
|
36000
|
+
optional: false
|
|
36001
|
+
}],
|
|
36002
|
+
"deviceManager.getStreamSources": [{
|
|
36003
|
+
name: "deviceId",
|
|
36004
|
+
form: "single",
|
|
36005
|
+
optional: false
|
|
36006
|
+
}],
|
|
36007
|
+
"deviceManager.getWireableFields": [{
|
|
36008
|
+
name: "deviceId",
|
|
36009
|
+
form: "single",
|
|
36010
|
+
optional: false
|
|
36011
|
+
}],
|
|
36012
|
+
"deviceManager.loadConfig": [{
|
|
36013
|
+
name: "deviceId",
|
|
36014
|
+
form: "single",
|
|
36015
|
+
optional: false
|
|
36016
|
+
}],
|
|
36017
|
+
"deviceManager.loadMeta": [{
|
|
36018
|
+
name: "deviceId",
|
|
36019
|
+
form: "single",
|
|
36020
|
+
optional: false
|
|
36021
|
+
}],
|
|
36022
|
+
"deviceManager.loadRuntimeState": [{
|
|
36023
|
+
name: "deviceId",
|
|
36024
|
+
form: "single",
|
|
36025
|
+
optional: false
|
|
36026
|
+
}],
|
|
36027
|
+
"deviceManager.persistConfig": [{
|
|
36028
|
+
name: "deviceId",
|
|
36029
|
+
form: "single",
|
|
36030
|
+
optional: false
|
|
36031
|
+
}],
|
|
36032
|
+
"deviceManager.probeStreams": [{
|
|
36033
|
+
name: "deviceId",
|
|
36034
|
+
form: "single",
|
|
36035
|
+
optional: false
|
|
36036
|
+
}],
|
|
36037
|
+
"deviceManager.registerDevice": [{
|
|
36038
|
+
name: "parentDeviceId",
|
|
36039
|
+
form: "single",
|
|
36040
|
+
optional: true
|
|
36041
|
+
}],
|
|
36042
|
+
"deviceManager.remove": [{
|
|
36043
|
+
name: "deviceId",
|
|
36044
|
+
form: "single",
|
|
36045
|
+
optional: false
|
|
36046
|
+
}],
|
|
36047
|
+
"deviceManager.removeDevice": [{
|
|
36048
|
+
name: "deviceId",
|
|
36049
|
+
form: "single",
|
|
36050
|
+
optional: false
|
|
36051
|
+
}],
|
|
36052
|
+
"deviceManager.runDeviceAction": [{
|
|
36053
|
+
name: "deviceId",
|
|
36054
|
+
form: "single",
|
|
36055
|
+
optional: false
|
|
36056
|
+
}],
|
|
36057
|
+
"deviceManager.setChildLayout": [{
|
|
36058
|
+
name: "deviceId",
|
|
36059
|
+
form: "single",
|
|
36060
|
+
optional: false
|
|
36061
|
+
}],
|
|
36062
|
+
"deviceManager.setDisabled": [{
|
|
36063
|
+
name: "deviceId",
|
|
36064
|
+
form: "single",
|
|
36065
|
+
optional: false
|
|
36066
|
+
}],
|
|
36067
|
+
"deviceManager.setDisplay": [{
|
|
36068
|
+
name: "deviceId",
|
|
36069
|
+
form: "single",
|
|
36070
|
+
optional: false
|
|
36071
|
+
}],
|
|
36072
|
+
"deviceManager.setIntegrationId": [{
|
|
36073
|
+
name: "deviceId",
|
|
36074
|
+
form: "single",
|
|
36075
|
+
optional: false
|
|
36076
|
+
}],
|
|
36077
|
+
"deviceManager.setLinkDeviceId": [{
|
|
36078
|
+
name: "deviceId",
|
|
36079
|
+
form: "single",
|
|
36080
|
+
optional: false
|
|
36081
|
+
}, {
|
|
36082
|
+
name: "linkDeviceId",
|
|
36083
|
+
form: "single",
|
|
36084
|
+
optional: true
|
|
36085
|
+
}],
|
|
36086
|
+
"deviceManager.setLocation": [{
|
|
36087
|
+
name: "deviceId",
|
|
36088
|
+
form: "single",
|
|
36089
|
+
optional: false
|
|
36090
|
+
}],
|
|
36091
|
+
"deviceManager.setMetadata": [{
|
|
36092
|
+
name: "deviceId",
|
|
36093
|
+
form: "single",
|
|
36094
|
+
optional: false
|
|
36095
|
+
}],
|
|
36096
|
+
"deviceManager.setName": [{
|
|
36097
|
+
name: "deviceId",
|
|
36098
|
+
form: "single",
|
|
36099
|
+
optional: false
|
|
36100
|
+
}],
|
|
36101
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
36102
|
+
name: "deviceId",
|
|
36103
|
+
form: "single",
|
|
36104
|
+
optional: false
|
|
36105
|
+
}],
|
|
36106
|
+
"deviceManager.setRole": [{
|
|
36107
|
+
name: "deviceId",
|
|
36108
|
+
form: "single",
|
|
36109
|
+
optional: false
|
|
36110
|
+
}],
|
|
36111
|
+
"deviceManager.setStreamProfileMap": [{
|
|
36112
|
+
name: "deviceId",
|
|
36113
|
+
form: "single",
|
|
36114
|
+
optional: false
|
|
36115
|
+
}],
|
|
36116
|
+
"deviceManager.setType": [{
|
|
36117
|
+
name: "deviceId",
|
|
36118
|
+
form: "single",
|
|
36119
|
+
optional: false
|
|
36120
|
+
}],
|
|
36121
|
+
"deviceManager.setWrapperActive": [{
|
|
36122
|
+
name: "deviceId",
|
|
36123
|
+
form: "single",
|
|
36124
|
+
optional: false
|
|
36125
|
+
}],
|
|
36126
|
+
"deviceManager.testField": [{
|
|
36127
|
+
name: "deviceId",
|
|
36128
|
+
form: "single",
|
|
36129
|
+
optional: false
|
|
36130
|
+
}],
|
|
36131
|
+
"deviceManager.updateConfig": [{
|
|
36132
|
+
name: "deviceId",
|
|
36133
|
+
form: "single",
|
|
36134
|
+
optional: false
|
|
36135
|
+
}],
|
|
36136
|
+
"deviceManager.updateDeviceField": [{
|
|
36137
|
+
name: "deviceId",
|
|
36138
|
+
form: "single",
|
|
36139
|
+
optional: false
|
|
36140
|
+
}],
|
|
36141
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
36142
|
+
name: "deviceId",
|
|
36143
|
+
form: "single",
|
|
36144
|
+
optional: false
|
|
36145
|
+
}],
|
|
36146
|
+
"deviceOps.getConfigEntries": [{
|
|
36147
|
+
name: "deviceId",
|
|
36148
|
+
form: "single",
|
|
36149
|
+
optional: false
|
|
36150
|
+
}],
|
|
36151
|
+
"deviceOps.getRawState": [{
|
|
36152
|
+
name: "deviceId",
|
|
36153
|
+
form: "single",
|
|
36154
|
+
optional: false
|
|
36155
|
+
}],
|
|
36156
|
+
"deviceOps.getSettingsSchema": [{
|
|
36157
|
+
name: "deviceId",
|
|
36158
|
+
form: "single",
|
|
36159
|
+
optional: false
|
|
36160
|
+
}],
|
|
36161
|
+
"deviceOps.getStreamSources": [{
|
|
36162
|
+
name: "deviceId",
|
|
36163
|
+
form: "single",
|
|
36164
|
+
optional: false
|
|
36165
|
+
}],
|
|
36166
|
+
"deviceOps.removeDevice": [{
|
|
36167
|
+
name: "deviceId",
|
|
36168
|
+
form: "single",
|
|
36169
|
+
optional: false
|
|
36170
|
+
}],
|
|
36171
|
+
"deviceOps.runAction": [{
|
|
36172
|
+
name: "deviceId",
|
|
36173
|
+
form: "single",
|
|
36174
|
+
optional: false
|
|
36175
|
+
}],
|
|
36176
|
+
"deviceOps.setConfig": [{
|
|
36177
|
+
name: "deviceId",
|
|
36178
|
+
form: "single",
|
|
36179
|
+
optional: false
|
|
36180
|
+
}],
|
|
36181
|
+
"deviceState.getCapSlice": [{
|
|
36182
|
+
name: "deviceId",
|
|
36183
|
+
form: "single",
|
|
36184
|
+
optional: false
|
|
36185
|
+
}],
|
|
36186
|
+
"deviceState.getSnapshot": [{
|
|
36187
|
+
name: "deviceId",
|
|
36188
|
+
form: "single",
|
|
36189
|
+
optional: false
|
|
36190
|
+
}],
|
|
36191
|
+
"deviceState.setCapSlice": [{
|
|
36192
|
+
name: "deviceId",
|
|
36193
|
+
form: "single",
|
|
36194
|
+
optional: false
|
|
36195
|
+
}],
|
|
36196
|
+
"events.getEventClipUrl": [{
|
|
36197
|
+
name: "deviceId",
|
|
36198
|
+
form: "single",
|
|
36199
|
+
optional: false
|
|
36200
|
+
}],
|
|
36201
|
+
"events.getEvents": [{
|
|
36202
|
+
name: "deviceId",
|
|
36203
|
+
form: "single",
|
|
36204
|
+
optional: false
|
|
36205
|
+
}],
|
|
36206
|
+
"events.getEventThumbnail": [{
|
|
36207
|
+
name: "deviceId",
|
|
36208
|
+
form: "single",
|
|
36209
|
+
optional: false
|
|
36210
|
+
}],
|
|
36211
|
+
"faceGallery.getFaceByTrack": [{
|
|
36212
|
+
name: "deviceId",
|
|
36213
|
+
form: "single",
|
|
36214
|
+
optional: false
|
|
36215
|
+
}],
|
|
36216
|
+
"faceGallery.listRecentFaces": [{
|
|
36217
|
+
name: "deviceId",
|
|
36218
|
+
form: "single",
|
|
36219
|
+
optional: true
|
|
36220
|
+
}],
|
|
36221
|
+
"fanControl.setDirection": [{
|
|
36222
|
+
name: "deviceId",
|
|
36223
|
+
form: "single",
|
|
36224
|
+
optional: false
|
|
36225
|
+
}],
|
|
36226
|
+
"fanControl.setOscillating": [{
|
|
36227
|
+
name: "deviceId",
|
|
36228
|
+
form: "single",
|
|
36229
|
+
optional: false
|
|
36230
|
+
}],
|
|
36231
|
+
"fanControl.setPercentage": [{
|
|
36232
|
+
name: "deviceId",
|
|
36233
|
+
form: "single",
|
|
36234
|
+
optional: false
|
|
36235
|
+
}],
|
|
36236
|
+
"fanControl.setPreset": [{
|
|
36237
|
+
name: "deviceId",
|
|
36238
|
+
form: "single",
|
|
36239
|
+
optional: false
|
|
36240
|
+
}],
|
|
36241
|
+
"humidifier.setMode": [{
|
|
36242
|
+
name: "deviceId",
|
|
36243
|
+
form: "single",
|
|
36244
|
+
optional: false
|
|
36245
|
+
}],
|
|
36246
|
+
"humidifier.setOn": [{
|
|
36247
|
+
name: "deviceId",
|
|
36248
|
+
form: "single",
|
|
36249
|
+
optional: false
|
|
36250
|
+
}],
|
|
36251
|
+
"humidifier.setTargetHumidity": [{
|
|
36252
|
+
name: "deviceId",
|
|
36253
|
+
form: "single",
|
|
36254
|
+
optional: false
|
|
36255
|
+
}],
|
|
36256
|
+
"imageSettings.getOptions": [{
|
|
36257
|
+
name: "deviceId",
|
|
36258
|
+
form: "single",
|
|
36259
|
+
optional: false
|
|
36260
|
+
}],
|
|
36261
|
+
"imageSettings.setSettings": [{
|
|
36262
|
+
name: "deviceId",
|
|
36263
|
+
form: "single",
|
|
36264
|
+
optional: false
|
|
36265
|
+
}],
|
|
36266
|
+
"intercom.endTalkSession": [{
|
|
36267
|
+
name: "deviceId",
|
|
36268
|
+
form: "single",
|
|
36269
|
+
optional: false
|
|
36270
|
+
}],
|
|
36271
|
+
"intercom.handleAnswer": [{
|
|
36272
|
+
name: "deviceId",
|
|
36273
|
+
form: "single",
|
|
36274
|
+
optional: false
|
|
36275
|
+
}],
|
|
36276
|
+
"intercom.pushTalkAudio": [{
|
|
36277
|
+
name: "deviceId",
|
|
36278
|
+
form: "single",
|
|
36279
|
+
optional: false
|
|
36280
|
+
}],
|
|
36281
|
+
"intercom.startSession": [{
|
|
36282
|
+
name: "deviceId",
|
|
36283
|
+
form: "single",
|
|
36284
|
+
optional: false
|
|
36285
|
+
}],
|
|
36286
|
+
"intercom.startTalkSession": [{
|
|
36287
|
+
name: "deviceId",
|
|
36288
|
+
form: "single",
|
|
36289
|
+
optional: false
|
|
36290
|
+
}],
|
|
36291
|
+
"intercom.stopSession": [{
|
|
36292
|
+
name: "deviceId",
|
|
36293
|
+
form: "single",
|
|
36294
|
+
optional: false
|
|
36295
|
+
}],
|
|
36296
|
+
"lawnMowerControl.dock": [{
|
|
36297
|
+
name: "deviceId",
|
|
36298
|
+
form: "single",
|
|
36299
|
+
optional: false
|
|
36300
|
+
}],
|
|
36301
|
+
"lawnMowerControl.pause": [{
|
|
36302
|
+
name: "deviceId",
|
|
36303
|
+
form: "single",
|
|
36304
|
+
optional: false
|
|
36305
|
+
}],
|
|
36306
|
+
"lawnMowerControl.startMowing": [{
|
|
36307
|
+
name: "deviceId",
|
|
36308
|
+
form: "single",
|
|
36309
|
+
optional: false
|
|
36310
|
+
}],
|
|
36311
|
+
"lockControl.lock": [{
|
|
36312
|
+
name: "deviceId",
|
|
36313
|
+
form: "single",
|
|
36314
|
+
optional: false
|
|
36315
|
+
}],
|
|
36316
|
+
"lockControl.open": [{
|
|
36317
|
+
name: "deviceId",
|
|
36318
|
+
form: "single",
|
|
36319
|
+
optional: false
|
|
36320
|
+
}],
|
|
36321
|
+
"lockControl.unlock": [{
|
|
36322
|
+
name: "deviceId",
|
|
36323
|
+
form: "single",
|
|
36324
|
+
optional: false
|
|
36325
|
+
}],
|
|
36326
|
+
"mediaPlayer.next": [{
|
|
36327
|
+
name: "deviceId",
|
|
36328
|
+
form: "single",
|
|
36329
|
+
optional: false
|
|
36330
|
+
}],
|
|
36331
|
+
"mediaPlayer.pause": [{
|
|
36332
|
+
name: "deviceId",
|
|
36333
|
+
form: "single",
|
|
36334
|
+
optional: false
|
|
36335
|
+
}],
|
|
36336
|
+
"mediaPlayer.play": [{
|
|
36337
|
+
name: "deviceId",
|
|
36338
|
+
form: "single",
|
|
36339
|
+
optional: false
|
|
36340
|
+
}],
|
|
36341
|
+
"mediaPlayer.playMedia": [{
|
|
36342
|
+
name: "deviceId",
|
|
36343
|
+
form: "single",
|
|
36344
|
+
optional: false
|
|
36345
|
+
}],
|
|
36346
|
+
"mediaPlayer.previous": [{
|
|
36347
|
+
name: "deviceId",
|
|
36348
|
+
form: "single",
|
|
36349
|
+
optional: false
|
|
36350
|
+
}],
|
|
36351
|
+
"mediaPlayer.seek": [{
|
|
36352
|
+
name: "deviceId",
|
|
36353
|
+
form: "single",
|
|
36354
|
+
optional: false
|
|
36355
|
+
}],
|
|
36356
|
+
"mediaPlayer.selectSource": [{
|
|
36357
|
+
name: "deviceId",
|
|
36358
|
+
form: "single",
|
|
36359
|
+
optional: false
|
|
36360
|
+
}],
|
|
36361
|
+
"mediaPlayer.setMute": [{
|
|
36362
|
+
name: "deviceId",
|
|
36363
|
+
form: "single",
|
|
36364
|
+
optional: false
|
|
36365
|
+
}],
|
|
36366
|
+
"mediaPlayer.setRepeat": [{
|
|
36367
|
+
name: "deviceId",
|
|
36368
|
+
form: "single",
|
|
36369
|
+
optional: false
|
|
36370
|
+
}],
|
|
36371
|
+
"mediaPlayer.setShuffle": [{
|
|
36372
|
+
name: "deviceId",
|
|
36373
|
+
form: "single",
|
|
36374
|
+
optional: false
|
|
36375
|
+
}],
|
|
36376
|
+
"mediaPlayer.setVolume": [{
|
|
36377
|
+
name: "deviceId",
|
|
36378
|
+
form: "single",
|
|
36379
|
+
optional: false
|
|
36380
|
+
}],
|
|
36381
|
+
"mediaPlayer.stop": [{
|
|
36382
|
+
name: "deviceId",
|
|
36383
|
+
form: "single",
|
|
36384
|
+
optional: false
|
|
36385
|
+
}],
|
|
36386
|
+
"motion.isDetected": [{
|
|
36387
|
+
name: "deviceId",
|
|
36388
|
+
form: "single",
|
|
36389
|
+
optional: false
|
|
36390
|
+
}],
|
|
36391
|
+
"motionDetection.analyze": [{
|
|
36392
|
+
name: "deviceId",
|
|
36393
|
+
form: "single",
|
|
36394
|
+
optional: false
|
|
36395
|
+
}],
|
|
36396
|
+
"motionDetection.removeCamera": [{
|
|
36397
|
+
name: "deviceId",
|
|
36398
|
+
form: "single",
|
|
36399
|
+
optional: false
|
|
36400
|
+
}],
|
|
36401
|
+
"motionTrigger.setMotionTrigger": [{
|
|
36402
|
+
name: "deviceId",
|
|
36403
|
+
form: "single",
|
|
36404
|
+
optional: false
|
|
36405
|
+
}],
|
|
36406
|
+
"motionZones.getOptions": [{
|
|
36407
|
+
name: "deviceId",
|
|
36408
|
+
form: "single",
|
|
36409
|
+
optional: false
|
|
36410
|
+
}],
|
|
36411
|
+
"motionZones.setZone": [{
|
|
36412
|
+
name: "deviceId",
|
|
36413
|
+
form: "single",
|
|
36414
|
+
optional: false
|
|
36415
|
+
}],
|
|
36416
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36417
|
+
name: "deviceId",
|
|
36418
|
+
form: "single",
|
|
36419
|
+
optional: false
|
|
36420
|
+
}],
|
|
36421
|
+
"networkQuality.getDeviceStats": [{
|
|
36422
|
+
name: "deviceId",
|
|
36423
|
+
form: "single",
|
|
36424
|
+
optional: false
|
|
36425
|
+
}],
|
|
36426
|
+
"networkQuality.reportClientStats": [{
|
|
36427
|
+
name: "deviceId",
|
|
36428
|
+
form: "single",
|
|
36429
|
+
optional: false
|
|
36430
|
+
}],
|
|
36431
|
+
"notificationRules.setDeviceMuted": [{
|
|
36432
|
+
name: "deviceId",
|
|
36433
|
+
form: "single",
|
|
36434
|
+
optional: false
|
|
36435
|
+
}],
|
|
36436
|
+
"notifier.cancel": [{
|
|
36437
|
+
name: "deviceId",
|
|
36438
|
+
form: "single",
|
|
36439
|
+
optional: false
|
|
36440
|
+
}],
|
|
36441
|
+
"notifier.send": [{
|
|
36442
|
+
name: "deviceId",
|
|
36443
|
+
form: "single",
|
|
36444
|
+
optional: false
|
|
36445
|
+
}],
|
|
36446
|
+
"osd.setOverlay": [{
|
|
36447
|
+
name: "deviceId",
|
|
36448
|
+
form: "single",
|
|
36449
|
+
optional: false
|
|
36450
|
+
}],
|
|
36451
|
+
"osdManager.clearSlotBinding": [{
|
|
36452
|
+
name: "deviceId",
|
|
36453
|
+
form: "single",
|
|
36454
|
+
optional: false
|
|
36455
|
+
}],
|
|
36456
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36457
|
+
name: "sourceDeviceId",
|
|
36458
|
+
form: "single",
|
|
36459
|
+
optional: false
|
|
36460
|
+
}, {
|
|
36461
|
+
name: "targetDeviceId",
|
|
36462
|
+
form: "single",
|
|
36463
|
+
optional: false
|
|
36464
|
+
}],
|
|
36465
|
+
"osdManager.getDeviceOsd": [{
|
|
36466
|
+
name: "deviceId",
|
|
36467
|
+
form: "single",
|
|
36468
|
+
optional: false
|
|
36469
|
+
}],
|
|
36470
|
+
"osdManager.getSourceCatalog": [{
|
|
36471
|
+
name: "deviceId",
|
|
36472
|
+
form: "single",
|
|
36473
|
+
optional: false
|
|
36474
|
+
}],
|
|
36475
|
+
"osdManager.previewSlot": [{
|
|
36476
|
+
name: "deviceId",
|
|
36477
|
+
form: "single",
|
|
36478
|
+
optional: false
|
|
36479
|
+
}],
|
|
36480
|
+
"osdManager.renderDevice": [{
|
|
36481
|
+
name: "deviceId",
|
|
36482
|
+
form: "single",
|
|
36483
|
+
optional: false
|
|
36484
|
+
}],
|
|
36485
|
+
"osdManager.setSlotBinding": [{
|
|
36486
|
+
name: "deviceId",
|
|
36487
|
+
form: "single",
|
|
36488
|
+
optional: false
|
|
36489
|
+
}],
|
|
36490
|
+
"petFeeder.callPet": [{
|
|
36491
|
+
name: "deviceId",
|
|
36492
|
+
form: "single",
|
|
36493
|
+
optional: false
|
|
36494
|
+
}],
|
|
36495
|
+
"petFeeder.cancelFeed": [{
|
|
36496
|
+
name: "deviceId",
|
|
36497
|
+
form: "single",
|
|
36498
|
+
optional: false
|
|
36499
|
+
}],
|
|
36500
|
+
"petFeeder.feed": [{
|
|
36501
|
+
name: "deviceId",
|
|
36502
|
+
form: "single",
|
|
36503
|
+
optional: false
|
|
36504
|
+
}],
|
|
36505
|
+
"petFeeder.markFoodReplenished": [{
|
|
36506
|
+
name: "deviceId",
|
|
36507
|
+
form: "single",
|
|
36508
|
+
optional: false
|
|
36509
|
+
}],
|
|
36510
|
+
"petFeeder.playSound": [{
|
|
36511
|
+
name: "deviceId",
|
|
36512
|
+
form: "single",
|
|
36513
|
+
optional: false
|
|
36514
|
+
}],
|
|
36515
|
+
"petFeeder.resetDesiccant": [{
|
|
36516
|
+
name: "deviceId",
|
|
36517
|
+
form: "single",
|
|
36518
|
+
optional: false
|
|
36519
|
+
}],
|
|
36520
|
+
"petFeeder.setChildLock": [{
|
|
36521
|
+
name: "deviceId",
|
|
36522
|
+
form: "single",
|
|
36523
|
+
optional: false
|
|
36524
|
+
}],
|
|
36525
|
+
"petFeeder.setFeedSound": [{
|
|
36526
|
+
name: "deviceId",
|
|
36527
|
+
form: "single",
|
|
36528
|
+
optional: false
|
|
36529
|
+
}],
|
|
36530
|
+
"petFeeder.setIndicatorLight": [{
|
|
36531
|
+
name: "deviceId",
|
|
36532
|
+
form: "single",
|
|
36533
|
+
optional: false
|
|
36534
|
+
}],
|
|
36535
|
+
"petFeeder.setVolume": [{
|
|
36536
|
+
name: "deviceId",
|
|
36537
|
+
form: "single",
|
|
36538
|
+
optional: false
|
|
36539
|
+
}],
|
|
36540
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36541
|
+
name: "deviceId",
|
|
36542
|
+
form: "single",
|
|
36543
|
+
optional: false
|
|
36544
|
+
}],
|
|
36545
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36546
|
+
name: "deviceId",
|
|
36547
|
+
form: "single",
|
|
36548
|
+
optional: false
|
|
36549
|
+
}],
|
|
36550
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36551
|
+
name: "deviceId",
|
|
36552
|
+
form: "single",
|
|
36553
|
+
optional: false
|
|
36554
|
+
}],
|
|
36555
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36556
|
+
name: "deviceId",
|
|
36557
|
+
form: "single",
|
|
36558
|
+
optional: false
|
|
36559
|
+
}],
|
|
36560
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36561
|
+
name: "deviceId",
|
|
36562
|
+
form: "single",
|
|
36563
|
+
optional: false
|
|
36564
|
+
}],
|
|
36565
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36566
|
+
name: "deviceId",
|
|
36567
|
+
form: "single",
|
|
36568
|
+
optional: false
|
|
36569
|
+
}],
|
|
36570
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36571
|
+
name: "deviceId",
|
|
36572
|
+
form: "single",
|
|
36573
|
+
optional: false
|
|
36574
|
+
}],
|
|
36575
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36576
|
+
name: "deviceId",
|
|
36577
|
+
form: "single",
|
|
36578
|
+
optional: false
|
|
36579
|
+
}],
|
|
36580
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
36581
|
+
name: "deviceId",
|
|
36582
|
+
form: "single",
|
|
36583
|
+
optional: false
|
|
36584
|
+
}],
|
|
36585
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36586
|
+
name: "deviceId",
|
|
36587
|
+
form: "single",
|
|
36588
|
+
optional: false
|
|
36589
|
+
}],
|
|
36590
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36591
|
+
name: "deviceId",
|
|
36592
|
+
form: "single",
|
|
36593
|
+
optional: false
|
|
36594
|
+
}],
|
|
36595
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36596
|
+
name: "deviceId",
|
|
36597
|
+
form: "single",
|
|
36598
|
+
optional: false
|
|
36599
|
+
}],
|
|
36600
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36601
|
+
name: "deviceIds",
|
|
36602
|
+
form: "array",
|
|
36603
|
+
optional: true
|
|
36604
|
+
}],
|
|
36605
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36606
|
+
name: "deviceId",
|
|
36607
|
+
form: "single",
|
|
36608
|
+
optional: false
|
|
36609
|
+
}],
|
|
36610
|
+
"pipelineAnalytics.getTrack": [{
|
|
36611
|
+
name: "deviceId",
|
|
36612
|
+
form: "single",
|
|
36613
|
+
optional: false
|
|
36614
|
+
}],
|
|
36615
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
36616
|
+
name: "deviceId",
|
|
36617
|
+
form: "single",
|
|
36618
|
+
optional: false
|
|
36619
|
+
}],
|
|
36620
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36621
|
+
name: "deviceIds",
|
|
36622
|
+
form: "array",
|
|
36623
|
+
optional: true
|
|
36624
|
+
}],
|
|
36625
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36626
|
+
name: "deviceIds",
|
|
36627
|
+
form: "array",
|
|
36628
|
+
optional: true
|
|
36629
|
+
}],
|
|
36630
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36631
|
+
name: "deviceId",
|
|
36632
|
+
form: "single",
|
|
36633
|
+
optional: false
|
|
36634
|
+
}],
|
|
36635
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36636
|
+
name: "deviceIds",
|
|
36637
|
+
form: "array",
|
|
36638
|
+
optional: false
|
|
36639
|
+
}],
|
|
36640
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36641
|
+
name: "deviceId",
|
|
36642
|
+
form: "single",
|
|
36643
|
+
optional: true
|
|
36644
|
+
}],
|
|
36645
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36646
|
+
name: "deviceIds",
|
|
36647
|
+
form: "array",
|
|
36648
|
+
optional: false
|
|
36649
|
+
}],
|
|
36650
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36651
|
+
name: "deviceIds",
|
|
36652
|
+
form: "array",
|
|
36653
|
+
optional: true
|
|
36654
|
+
}],
|
|
36655
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
36656
|
+
name: "deviceId",
|
|
36657
|
+
form: "single",
|
|
36658
|
+
optional: false
|
|
36659
|
+
}],
|
|
36660
|
+
"pipelineAnalytics.listTracks": [{
|
|
36661
|
+
name: "deviceId",
|
|
36662
|
+
form: "single",
|
|
36663
|
+
optional: false
|
|
36664
|
+
}],
|
|
36665
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
36666
|
+
name: "deviceId",
|
|
36667
|
+
form: "single",
|
|
36668
|
+
optional: false
|
|
36669
|
+
}],
|
|
36670
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
36671
|
+
name: "deviceId",
|
|
36672
|
+
form: "single",
|
|
36673
|
+
optional: false
|
|
36674
|
+
}],
|
|
36675
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
36676
|
+
name: "deviceId",
|
|
36677
|
+
form: "single",
|
|
36678
|
+
optional: false
|
|
36679
|
+
}],
|
|
36680
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
36681
|
+
name: "deviceId",
|
|
36682
|
+
form: "single",
|
|
36683
|
+
optional: true
|
|
36684
|
+
}],
|
|
36685
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
36686
|
+
name: "deviceId",
|
|
36687
|
+
form: "single",
|
|
36688
|
+
optional: false
|
|
36689
|
+
}],
|
|
36690
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
36691
|
+
name: "deviceId",
|
|
36692
|
+
form: "single",
|
|
36693
|
+
optional: false
|
|
36694
|
+
}],
|
|
36695
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
36696
|
+
name: "deviceId",
|
|
36697
|
+
form: "single",
|
|
36698
|
+
optional: true
|
|
36699
|
+
}],
|
|
36700
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
36701
|
+
name: "deviceId",
|
|
36702
|
+
form: "single",
|
|
36703
|
+
optional: false
|
|
36704
|
+
}],
|
|
36705
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
36706
|
+
name: "deviceId",
|
|
36707
|
+
form: "single",
|
|
36708
|
+
optional: false
|
|
36709
|
+
}],
|
|
36710
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
36711
|
+
name: "deviceId",
|
|
36712
|
+
form: "single",
|
|
36713
|
+
optional: false
|
|
36714
|
+
}],
|
|
36715
|
+
"pipelineExecutor.runPipeline": [{
|
|
36716
|
+
name: "deviceId",
|
|
36717
|
+
form: "single",
|
|
36718
|
+
optional: true
|
|
36719
|
+
}],
|
|
36720
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
36721
|
+
name: "deviceId",
|
|
36722
|
+
form: "single",
|
|
36723
|
+
optional: true
|
|
36724
|
+
}],
|
|
36725
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
36726
|
+
name: "deviceId",
|
|
36727
|
+
form: "single",
|
|
36728
|
+
optional: false
|
|
36729
|
+
}],
|
|
36730
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
36731
|
+
name: "deviceId",
|
|
36732
|
+
form: "single",
|
|
36733
|
+
optional: false
|
|
36734
|
+
}],
|
|
36735
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
36736
|
+
name: "deviceId",
|
|
36737
|
+
form: "single",
|
|
36738
|
+
optional: false
|
|
36739
|
+
}],
|
|
36740
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
36741
|
+
name: "deviceId",
|
|
36742
|
+
form: "single",
|
|
36743
|
+
optional: false
|
|
36744
|
+
}],
|
|
36745
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
36746
|
+
name: "deviceId",
|
|
36747
|
+
form: "single",
|
|
36748
|
+
optional: false
|
|
36749
|
+
}],
|
|
36750
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
36751
|
+
name: "deviceId",
|
|
36752
|
+
form: "single",
|
|
36753
|
+
optional: false
|
|
36754
|
+
}],
|
|
36755
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
36756
|
+
name: "deviceIds",
|
|
36757
|
+
form: "array",
|
|
36758
|
+
optional: true
|
|
36759
|
+
}],
|
|
36760
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
36761
|
+
name: "deviceId",
|
|
36762
|
+
form: "single",
|
|
36763
|
+
optional: false
|
|
36764
|
+
}],
|
|
36765
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
36766
|
+
name: "deviceId",
|
|
36767
|
+
form: "single",
|
|
36768
|
+
optional: false
|
|
36769
|
+
}],
|
|
36770
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
36771
|
+
name: "deviceId",
|
|
36772
|
+
form: "single",
|
|
36773
|
+
optional: false
|
|
36774
|
+
}],
|
|
36775
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
36776
|
+
name: "deviceId",
|
|
36777
|
+
form: "single",
|
|
36778
|
+
optional: false
|
|
36779
|
+
}],
|
|
36780
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
36781
|
+
name: "deviceId",
|
|
36782
|
+
form: "single",
|
|
36783
|
+
optional: false
|
|
36784
|
+
}],
|
|
36785
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
36786
|
+
name: "deviceId",
|
|
36787
|
+
form: "single",
|
|
36788
|
+
optional: false
|
|
36789
|
+
}],
|
|
36790
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
36791
|
+
name: "deviceId",
|
|
36792
|
+
form: "single",
|
|
36793
|
+
optional: false
|
|
36794
|
+
}],
|
|
36795
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
36796
|
+
name: "deviceId",
|
|
36797
|
+
form: "single",
|
|
36798
|
+
optional: false
|
|
36799
|
+
}],
|
|
36800
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
36801
|
+
name: "deviceId",
|
|
36802
|
+
form: "single",
|
|
36803
|
+
optional: false
|
|
36804
|
+
}],
|
|
36805
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
36806
|
+
name: "deviceId",
|
|
36807
|
+
form: "single",
|
|
36808
|
+
optional: false
|
|
36809
|
+
}],
|
|
36810
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
36811
|
+
name: "deviceId",
|
|
36812
|
+
form: "single",
|
|
36813
|
+
optional: false
|
|
36814
|
+
}],
|
|
36815
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
36816
|
+
name: "deviceId",
|
|
36817
|
+
form: "single",
|
|
36818
|
+
optional: false
|
|
36819
|
+
}],
|
|
36820
|
+
"pipelineRunner.attachCamera": [{
|
|
36821
|
+
name: "deviceId",
|
|
36822
|
+
form: "single",
|
|
36823
|
+
optional: false
|
|
36824
|
+
}],
|
|
36825
|
+
"pipelineRunner.detachCamera": [{
|
|
36826
|
+
name: "deviceId",
|
|
36827
|
+
form: "single",
|
|
36828
|
+
optional: false
|
|
36829
|
+
}],
|
|
36830
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
36831
|
+
name: "deviceId",
|
|
36832
|
+
form: "single",
|
|
36833
|
+
optional: false
|
|
36834
|
+
}],
|
|
36835
|
+
"pipelineRunner.reportMotion": [{
|
|
36836
|
+
name: "deviceId",
|
|
36837
|
+
form: "single",
|
|
36838
|
+
optional: false
|
|
36839
|
+
}],
|
|
36840
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
36841
|
+
name: "deviceId",
|
|
36842
|
+
form: "single",
|
|
36843
|
+
optional: false
|
|
36844
|
+
}],
|
|
36845
|
+
"pipelineRunner.runStatelessStep": [{
|
|
36846
|
+
name: "sourceDeviceId",
|
|
36847
|
+
form: "single",
|
|
36848
|
+
optional: false
|
|
36849
|
+
}],
|
|
36850
|
+
"plateGallery.getPlateByTrack": [{
|
|
36851
|
+
name: "deviceId",
|
|
36852
|
+
form: "single",
|
|
36853
|
+
optional: false
|
|
36854
|
+
}],
|
|
36855
|
+
"plateGallery.listPlates": [{
|
|
36856
|
+
name: "deviceId",
|
|
36857
|
+
form: "single",
|
|
36858
|
+
optional: true
|
|
36859
|
+
}],
|
|
36860
|
+
"privacyMask.getOptions": [{
|
|
36861
|
+
name: "deviceId",
|
|
36862
|
+
form: "single",
|
|
36863
|
+
optional: false
|
|
36864
|
+
}],
|
|
36865
|
+
"privacyMask.setAudioEnabled": [{
|
|
36866
|
+
name: "deviceId",
|
|
36867
|
+
form: "single",
|
|
36868
|
+
optional: false
|
|
36869
|
+
}],
|
|
36870
|
+
"privacyMask.setMask": [{
|
|
36871
|
+
name: "deviceId",
|
|
36872
|
+
form: "single",
|
|
36873
|
+
optional: false
|
|
36874
|
+
}],
|
|
36875
|
+
"ptz.continuousMove": [{
|
|
36876
|
+
name: "deviceId",
|
|
36877
|
+
form: "single",
|
|
36878
|
+
optional: false
|
|
36879
|
+
}],
|
|
36880
|
+
"ptz.deletePreset": [{
|
|
36881
|
+
name: "deviceId",
|
|
36882
|
+
form: "single",
|
|
36883
|
+
optional: false
|
|
36884
|
+
}],
|
|
36885
|
+
"ptz.getOptions": [{
|
|
36886
|
+
name: "deviceId",
|
|
36887
|
+
form: "single",
|
|
36888
|
+
optional: false
|
|
36889
|
+
}],
|
|
36890
|
+
"ptz.getPosition": [{
|
|
36891
|
+
name: "deviceId",
|
|
36892
|
+
form: "single",
|
|
36893
|
+
optional: false
|
|
36894
|
+
}],
|
|
36895
|
+
"ptz.getPresets": [{
|
|
36896
|
+
name: "deviceId",
|
|
36897
|
+
form: "single",
|
|
36898
|
+
optional: false
|
|
36899
|
+
}],
|
|
36900
|
+
"ptz.goHome": [{
|
|
36901
|
+
name: "deviceId",
|
|
36902
|
+
form: "single",
|
|
36903
|
+
optional: false
|
|
36904
|
+
}],
|
|
36905
|
+
"ptz.goToPreset": [{
|
|
36906
|
+
name: "deviceId",
|
|
36907
|
+
form: "single",
|
|
36908
|
+
optional: false
|
|
36909
|
+
}],
|
|
36910
|
+
"ptz.move": [{
|
|
36911
|
+
name: "deviceId",
|
|
36912
|
+
form: "single",
|
|
36913
|
+
optional: false
|
|
36914
|
+
}],
|
|
36915
|
+
"ptz.savePreset": [{
|
|
36916
|
+
name: "deviceId",
|
|
36917
|
+
form: "single",
|
|
36918
|
+
optional: false
|
|
36919
|
+
}],
|
|
36920
|
+
"ptz.setAutofocus": [{
|
|
36921
|
+
name: "deviceId",
|
|
36922
|
+
form: "single",
|
|
36923
|
+
optional: false
|
|
36924
|
+
}],
|
|
36925
|
+
"ptz.stop": [{
|
|
36926
|
+
name: "deviceId",
|
|
36927
|
+
form: "single",
|
|
36928
|
+
optional: false
|
|
36929
|
+
}],
|
|
36930
|
+
"ptzAutotrack.getSettings": [{
|
|
36931
|
+
name: "deviceId",
|
|
36932
|
+
form: "single",
|
|
36933
|
+
optional: false
|
|
36934
|
+
}],
|
|
36935
|
+
"ptzAutotrack.getStatus": [{
|
|
36936
|
+
name: "deviceId",
|
|
36937
|
+
form: "single",
|
|
36938
|
+
optional: false
|
|
36939
|
+
}],
|
|
36940
|
+
"ptzAutotrack.setEnabled": [{
|
|
36941
|
+
name: "deviceId",
|
|
36942
|
+
form: "single",
|
|
36943
|
+
optional: false
|
|
36944
|
+
}],
|
|
36945
|
+
"ptzAutotrack.setSettings": [{
|
|
36946
|
+
name: "deviceId",
|
|
36947
|
+
form: "single",
|
|
36948
|
+
optional: false
|
|
36949
|
+
}],
|
|
36950
|
+
"reboot.reboot": [{
|
|
36951
|
+
name: "deviceId",
|
|
36952
|
+
form: "single",
|
|
36953
|
+
optional: false
|
|
36954
|
+
}],
|
|
36955
|
+
"recording.deleteFootprint": [{
|
|
36956
|
+
name: "deviceId",
|
|
36957
|
+
form: "single",
|
|
36958
|
+
optional: false
|
|
36959
|
+
}],
|
|
36960
|
+
"recording.getAvailability": [{
|
|
36961
|
+
name: "deviceId",
|
|
36962
|
+
form: "single",
|
|
36963
|
+
optional: false
|
|
36964
|
+
}],
|
|
36965
|
+
"recording.getDaysWithRecordings": [{
|
|
36966
|
+
name: "deviceId",
|
|
36967
|
+
form: "single",
|
|
36968
|
+
optional: false
|
|
36969
|
+
}],
|
|
36970
|
+
"recording.getDeviceConfig": [{
|
|
36971
|
+
name: "deviceId",
|
|
36972
|
+
form: "single",
|
|
36973
|
+
optional: false
|
|
36974
|
+
}],
|
|
36975
|
+
"recording.getPlaybackManifest": [{
|
|
36976
|
+
name: "deviceId",
|
|
36977
|
+
form: "single",
|
|
36978
|
+
optional: false
|
|
36979
|
+
}],
|
|
36980
|
+
"recording.listOpsLog": [{
|
|
36981
|
+
name: "deviceId",
|
|
36982
|
+
form: "single",
|
|
36983
|
+
optional: true
|
|
36984
|
+
}],
|
|
36985
|
+
"recording.locateSegment": [{
|
|
36986
|
+
name: "deviceId",
|
|
36987
|
+
form: "single",
|
|
36988
|
+
optional: false
|
|
36989
|
+
}],
|
|
36990
|
+
"recording.pruneFootage": [{
|
|
36991
|
+
name: "deviceId",
|
|
36992
|
+
form: "single",
|
|
36993
|
+
optional: false
|
|
36994
|
+
}],
|
|
36995
|
+
"recording.readGopBytes": [{
|
|
36996
|
+
name: "deviceId",
|
|
36997
|
+
form: "single",
|
|
36998
|
+
optional: false
|
|
36999
|
+
}],
|
|
37000
|
+
"recording.readSegmentBytes": [{
|
|
37001
|
+
name: "deviceId",
|
|
37002
|
+
form: "single",
|
|
37003
|
+
optional: false
|
|
37004
|
+
}],
|
|
37005
|
+
"recording.relocateFootage": [{
|
|
37006
|
+
name: "deviceId",
|
|
37007
|
+
form: "single",
|
|
37008
|
+
optional: true
|
|
37009
|
+
}],
|
|
37010
|
+
"recording.renderClip": [{
|
|
37011
|
+
name: "deviceId",
|
|
37012
|
+
form: "single",
|
|
37013
|
+
optional: false
|
|
37014
|
+
}],
|
|
37015
|
+
"recording.renderGif": [{
|
|
37016
|
+
name: "deviceId",
|
|
37017
|
+
form: "single",
|
|
37018
|
+
optional: false
|
|
37019
|
+
}],
|
|
37020
|
+
"recording.rescanStorage": [{
|
|
37021
|
+
name: "deviceId",
|
|
37022
|
+
form: "single",
|
|
37023
|
+
optional: false
|
|
37024
|
+
}],
|
|
37025
|
+
"recording.setDeviceConfig": [{
|
|
37026
|
+
name: "deviceId",
|
|
37027
|
+
form: "single",
|
|
37028
|
+
optional: false
|
|
37029
|
+
}],
|
|
37030
|
+
"recording.startStorageMigrationMove": [{
|
|
37031
|
+
name: "deviceId",
|
|
37032
|
+
form: "single",
|
|
37033
|
+
optional: true
|
|
37034
|
+
}],
|
|
37035
|
+
"recordingExport.createExport": [{
|
|
37036
|
+
name: "deviceId",
|
|
37037
|
+
form: "single",
|
|
37038
|
+
optional: false
|
|
37039
|
+
}],
|
|
37040
|
+
"recordingExport.listExports": [{
|
|
37041
|
+
name: "deviceId",
|
|
37042
|
+
form: "single",
|
|
37043
|
+
optional: true
|
|
37044
|
+
}],
|
|
37045
|
+
"sceneMonitor.captureReference": [{
|
|
37046
|
+
name: "deviceId",
|
|
37047
|
+
form: "single",
|
|
37048
|
+
optional: false
|
|
37049
|
+
}],
|
|
37050
|
+
"sceneMonitor.createScene": [{
|
|
37051
|
+
name: "deviceId",
|
|
37052
|
+
form: "single",
|
|
37053
|
+
optional: false
|
|
37054
|
+
}],
|
|
37055
|
+
"sceneMonitor.deleteReference": [{
|
|
37056
|
+
name: "deviceId",
|
|
37057
|
+
form: "single",
|
|
37058
|
+
optional: false
|
|
37059
|
+
}],
|
|
37060
|
+
"sceneMonitor.deleteScene": [{
|
|
37061
|
+
name: "deviceId",
|
|
37062
|
+
form: "single",
|
|
37063
|
+
optional: false
|
|
37064
|
+
}],
|
|
37065
|
+
"sceneMonitor.listScenes": [{
|
|
37066
|
+
name: "deviceId",
|
|
37067
|
+
form: "single",
|
|
37068
|
+
optional: false
|
|
37069
|
+
}],
|
|
37070
|
+
"sceneMonitor.recheckNow": [{
|
|
37071
|
+
name: "deviceId",
|
|
37072
|
+
form: "single",
|
|
37073
|
+
optional: false
|
|
37074
|
+
}],
|
|
37075
|
+
"sceneMonitor.resetScene": [{
|
|
37076
|
+
name: "deviceId",
|
|
37077
|
+
form: "single",
|
|
37078
|
+
optional: false
|
|
37079
|
+
}],
|
|
37080
|
+
"sceneMonitor.updateScene": [{
|
|
37081
|
+
name: "deviceId",
|
|
37082
|
+
form: "single",
|
|
37083
|
+
optional: false
|
|
37084
|
+
}],
|
|
37085
|
+
"scriptRunner.run": [{
|
|
37086
|
+
name: "deviceId",
|
|
37087
|
+
form: "single",
|
|
37088
|
+
optional: false
|
|
37089
|
+
}],
|
|
37090
|
+
"scriptRunner.stop": [{
|
|
37091
|
+
name: "deviceId",
|
|
37092
|
+
form: "single",
|
|
37093
|
+
optional: false
|
|
37094
|
+
}],
|
|
37095
|
+
"snapshot.getSnapshot": [{
|
|
37096
|
+
name: "deviceId",
|
|
37097
|
+
form: "single",
|
|
37098
|
+
optional: false
|
|
37099
|
+
}],
|
|
37100
|
+
"snapshot.getSnapshotLinks": [{
|
|
37101
|
+
name: "targets",
|
|
37102
|
+
form: "object-array",
|
|
37103
|
+
optional: false,
|
|
37104
|
+
itemField: "deviceId"
|
|
37105
|
+
}],
|
|
37106
|
+
"snapshot.getSnapshotOverview": [{
|
|
37107
|
+
name: "deviceIds",
|
|
37108
|
+
form: "array",
|
|
37109
|
+
optional: false
|
|
37110
|
+
}],
|
|
37111
|
+
"snapshot.invalidateCache": [{
|
|
37112
|
+
name: "deviceId",
|
|
37113
|
+
form: "single",
|
|
37114
|
+
optional: false
|
|
37115
|
+
}],
|
|
37116
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
37117
|
+
name: "deviceId",
|
|
37118
|
+
form: "single",
|
|
37119
|
+
optional: false
|
|
37120
|
+
}],
|
|
37121
|
+
"streamBroker.assignProfile": [{
|
|
37122
|
+
name: "deviceId",
|
|
37123
|
+
form: "single",
|
|
37124
|
+
optional: false
|
|
37125
|
+
}],
|
|
37126
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
37127
|
+
name: "deviceId",
|
|
37128
|
+
form: "single",
|
|
37129
|
+
optional: false
|
|
37130
|
+
}],
|
|
37131
|
+
"streamBroker.getStreamWithCodec": [{
|
|
37132
|
+
name: "deviceId",
|
|
37133
|
+
form: "single",
|
|
37134
|
+
optional: false
|
|
37135
|
+
}],
|
|
37136
|
+
"streamBroker.produceEventMedia": [{
|
|
37137
|
+
name: "deviceId",
|
|
37138
|
+
form: "single",
|
|
37139
|
+
optional: false
|
|
37140
|
+
}],
|
|
37141
|
+
"streamBroker.publishCameraStream": [{
|
|
37142
|
+
name: "deviceId",
|
|
37143
|
+
form: "single",
|
|
37144
|
+
optional: false
|
|
37145
|
+
}],
|
|
37146
|
+
"streamBroker.renderPreBufferClip": [{
|
|
37147
|
+
name: "deviceId",
|
|
37148
|
+
form: "single",
|
|
37149
|
+
optional: false
|
|
37150
|
+
}],
|
|
37151
|
+
"streamBroker.restartProfile": [{
|
|
37152
|
+
name: "deviceId",
|
|
37153
|
+
form: "single",
|
|
37154
|
+
optional: false
|
|
37155
|
+
}],
|
|
37156
|
+
"streamBroker.retractCameraStream": [{
|
|
37157
|
+
name: "deviceId",
|
|
37158
|
+
form: "single",
|
|
37159
|
+
optional: false
|
|
37160
|
+
}],
|
|
37161
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
37162
|
+
name: "deviceId",
|
|
37163
|
+
form: "single",
|
|
37164
|
+
optional: false
|
|
37165
|
+
}],
|
|
37166
|
+
"streamBroker.unassignProfile": [{
|
|
37167
|
+
name: "deviceId",
|
|
37168
|
+
form: "single",
|
|
37169
|
+
optional: false
|
|
37170
|
+
}],
|
|
37171
|
+
"streamCatalog.getCatalog": [{
|
|
37172
|
+
name: "deviceId",
|
|
37173
|
+
form: "single",
|
|
37174
|
+
optional: false
|
|
37175
|
+
}],
|
|
37176
|
+
"streamParams.getConfigSchema": [{
|
|
37177
|
+
name: "deviceId",
|
|
37178
|
+
form: "single",
|
|
37179
|
+
optional: false
|
|
37180
|
+
}],
|
|
37181
|
+
"streamParams.getOptions": [{
|
|
37182
|
+
name: "deviceId",
|
|
37183
|
+
form: "single",
|
|
37184
|
+
optional: false
|
|
37185
|
+
}],
|
|
37186
|
+
"streamParams.setProfile": [{
|
|
37187
|
+
name: "deviceId",
|
|
37188
|
+
form: "single",
|
|
37189
|
+
optional: false
|
|
37190
|
+
}],
|
|
37191
|
+
"switch.setState": [{
|
|
37192
|
+
name: "deviceId",
|
|
37193
|
+
form: "single",
|
|
37194
|
+
optional: false
|
|
37195
|
+
}],
|
|
37196
|
+
"vacuumControl.locate": [{
|
|
37197
|
+
name: "deviceId",
|
|
37198
|
+
form: "single",
|
|
37199
|
+
optional: false
|
|
37200
|
+
}],
|
|
37201
|
+
"vacuumControl.pause": [{
|
|
37202
|
+
name: "deviceId",
|
|
37203
|
+
form: "single",
|
|
37204
|
+
optional: false
|
|
37205
|
+
}],
|
|
37206
|
+
"vacuumControl.returnToBase": [{
|
|
37207
|
+
name: "deviceId",
|
|
37208
|
+
form: "single",
|
|
37209
|
+
optional: false
|
|
37210
|
+
}],
|
|
37211
|
+
"vacuumControl.setFanSpeed": [{
|
|
37212
|
+
name: "deviceId",
|
|
37213
|
+
form: "single",
|
|
37214
|
+
optional: false
|
|
37215
|
+
}],
|
|
37216
|
+
"vacuumControl.start": [{
|
|
37217
|
+
name: "deviceId",
|
|
37218
|
+
form: "single",
|
|
37219
|
+
optional: false
|
|
37220
|
+
}],
|
|
37221
|
+
"vacuumControl.stop": [{
|
|
37222
|
+
name: "deviceId",
|
|
37223
|
+
form: "single",
|
|
37224
|
+
optional: false
|
|
37225
|
+
}],
|
|
37226
|
+
"valve.close": [{
|
|
37227
|
+
name: "deviceId",
|
|
37228
|
+
form: "single",
|
|
37229
|
+
optional: false
|
|
37230
|
+
}],
|
|
37231
|
+
"valve.open": [{
|
|
37232
|
+
name: "deviceId",
|
|
37233
|
+
form: "single",
|
|
37234
|
+
optional: false
|
|
37235
|
+
}],
|
|
37236
|
+
"valve.setPosition": [{
|
|
37237
|
+
name: "deviceId",
|
|
37238
|
+
form: "single",
|
|
37239
|
+
optional: false
|
|
37240
|
+
}],
|
|
37241
|
+
"valve.stop": [{
|
|
37242
|
+
name: "deviceId",
|
|
37243
|
+
form: "single",
|
|
37244
|
+
optional: false
|
|
37245
|
+
}],
|
|
37246
|
+
"videoclips.getClipPlayback": [{
|
|
37247
|
+
name: "deviceId",
|
|
37248
|
+
form: "single",
|
|
37249
|
+
optional: false
|
|
37250
|
+
}],
|
|
37251
|
+
"videoclips.listClips": [{
|
|
37252
|
+
name: "deviceId",
|
|
37253
|
+
form: "single",
|
|
37254
|
+
optional: false
|
|
37255
|
+
}],
|
|
37256
|
+
"waterHeater.setAway": [{
|
|
37257
|
+
name: "deviceId",
|
|
37258
|
+
form: "single",
|
|
37259
|
+
optional: false
|
|
37260
|
+
}],
|
|
37261
|
+
"waterHeater.setOperationMode": [{
|
|
37262
|
+
name: "deviceId",
|
|
37263
|
+
form: "single",
|
|
37264
|
+
optional: false
|
|
37265
|
+
}],
|
|
37266
|
+
"waterHeater.setTargetTemp": [{
|
|
37267
|
+
name: "deviceId",
|
|
37268
|
+
form: "single",
|
|
37269
|
+
optional: false
|
|
37270
|
+
}],
|
|
37271
|
+
"webrtcSession.addIceCandidate": [{
|
|
37272
|
+
name: "deviceId",
|
|
37273
|
+
form: "single",
|
|
37274
|
+
optional: false
|
|
37275
|
+
}],
|
|
37276
|
+
"webrtcSession.closeSession": [{
|
|
37277
|
+
name: "deviceId",
|
|
37278
|
+
form: "single",
|
|
37279
|
+
optional: false
|
|
37280
|
+
}],
|
|
37281
|
+
"webrtcSession.createSession": [{
|
|
37282
|
+
name: "deviceId",
|
|
37283
|
+
form: "single",
|
|
37284
|
+
optional: false
|
|
37285
|
+
}],
|
|
37286
|
+
"webrtcSession.getIceCandidates": [{
|
|
37287
|
+
name: "deviceId",
|
|
37288
|
+
form: "single",
|
|
37289
|
+
optional: false
|
|
37290
|
+
}],
|
|
37291
|
+
"webrtcSession.getSessionState": [{
|
|
37292
|
+
name: "deviceId",
|
|
37293
|
+
form: "single",
|
|
37294
|
+
optional: false
|
|
37295
|
+
}],
|
|
37296
|
+
"webrtcSession.handleAnswer": [{
|
|
37297
|
+
name: "deviceId",
|
|
37298
|
+
form: "single",
|
|
37299
|
+
optional: false
|
|
37300
|
+
}],
|
|
37301
|
+
"webrtcSession.handleOffer": [{
|
|
37302
|
+
name: "deviceId",
|
|
37303
|
+
form: "single",
|
|
37304
|
+
optional: false
|
|
37305
|
+
}],
|
|
37306
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
37307
|
+
name: "deviceId",
|
|
37308
|
+
form: "single",
|
|
37309
|
+
optional: false
|
|
37310
|
+
}],
|
|
37311
|
+
"webrtcSession.listStreams": [{
|
|
37312
|
+
name: "deviceId",
|
|
37313
|
+
form: "single",
|
|
37314
|
+
optional: false
|
|
37315
|
+
}],
|
|
37316
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
37317
|
+
name: "deviceId",
|
|
37318
|
+
form: "single",
|
|
37319
|
+
optional: false
|
|
37320
|
+
}],
|
|
37321
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
37322
|
+
name: "deviceId",
|
|
37323
|
+
form: "single",
|
|
37324
|
+
optional: false
|
|
37325
|
+
}],
|
|
37326
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
37327
|
+
name: "deviceId",
|
|
37328
|
+
form: "single",
|
|
37329
|
+
optional: false
|
|
37330
|
+
}],
|
|
37331
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
37332
|
+
name: "deviceId",
|
|
37333
|
+
form: "single",
|
|
37334
|
+
optional: false
|
|
37335
|
+
}],
|
|
37336
|
+
"zoneRules.listRules": [{
|
|
37337
|
+
name: "deviceId",
|
|
37338
|
+
form: "single",
|
|
37339
|
+
optional: false
|
|
37340
|
+
}],
|
|
37341
|
+
"zoneRules.setRules": [{
|
|
37342
|
+
name: "deviceId",
|
|
37343
|
+
form: "single",
|
|
37344
|
+
optional: false
|
|
37345
|
+
}],
|
|
37346
|
+
"zones.addZone": [{
|
|
37347
|
+
name: "deviceId",
|
|
37348
|
+
form: "single",
|
|
37349
|
+
optional: false
|
|
37350
|
+
}],
|
|
37351
|
+
"zones.listZones": [{
|
|
37352
|
+
name: "deviceId",
|
|
37353
|
+
form: "single",
|
|
37354
|
+
optional: false
|
|
37355
|
+
}],
|
|
37356
|
+
"zones.removeZone": [{
|
|
37357
|
+
name: "deviceId",
|
|
37358
|
+
form: "single",
|
|
37359
|
+
optional: false
|
|
37360
|
+
}],
|
|
37361
|
+
"zones.updateZone": [{
|
|
37362
|
+
name: "deviceId",
|
|
37363
|
+
form: "single",
|
|
37364
|
+
optional: false
|
|
37365
|
+
}]
|
|
37366
|
+
});
|
|
34579
37367
|
Object.freeze({
|
|
34580
37368
|
"broker": "broker",
|
|
34581
37369
|
"device-export": "device-export",
|