@camstack/addon-provider-tuya 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +2862 -143
- package/dist/addon.mjs +2862 -143
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -819,7 +819,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
|
|
|
819
819
|
return [...byId.values()];
|
|
820
820
|
}
|
|
821
821
|
//#endregion
|
|
822
|
-
//#region ../types/dist/event-category-
|
|
822
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
823
823
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
824
824
|
EventCategory["SystemBoot"] = "system.boot";
|
|
825
825
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1026,6 +1026,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1026
1026
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
1027
1027
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
1028
1028
|
/**
|
|
1029
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
1030
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
1031
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
1032
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
1033
|
+
* from the placement candidate set for as long as it holds.
|
|
1034
|
+
*
|
|
1035
|
+
* This exists because the state was previously invisible: little-unraid
|
|
1036
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
1037
|
+
* and nothing in the system said so.
|
|
1038
|
+
*
|
|
1039
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
1040
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
1041
|
+
* serves it exactly as before.
|
|
1042
|
+
*/
|
|
1043
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
1044
|
+
/**
|
|
1045
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
1046
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
1047
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
1048
|
+
* per camera.
|
|
1049
|
+
*
|
|
1050
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
1051
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
1052
|
+
* camera" produce byte-identical silence.
|
|
1053
|
+
*/
|
|
1054
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
1055
|
+
/**
|
|
1029
1056
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
1030
1057
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
1031
1058
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -11710,6 +11737,8 @@ var QueryFilterSchema = object({
|
|
|
11710
11737
|
where: record(string(), unknown()).optional(),
|
|
11711
11738
|
whereIn: record(string(), array(unknown())).optional(),
|
|
11712
11739
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
11740
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
11741
|
+
whereNot: record(string(), unknown()).optional(),
|
|
11713
11742
|
orderBy: object({
|
|
11714
11743
|
field: string(),
|
|
11715
11744
|
direction: _enum(["asc", "desc"])
|
|
@@ -11729,7 +11758,8 @@ var QueryFilterSchema = object({
|
|
|
11729
11758
|
var MutationFilterSchema = object({
|
|
11730
11759
|
where: record(string(), unknown()).optional(),
|
|
11731
11760
|
whereIn: record(string(), array(unknown())).optional(),
|
|
11732
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
11761
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
11762
|
+
whereNot: record(string(), unknown()).optional()
|
|
11733
11763
|
});
|
|
11734
11764
|
/** A single stored record: `{ id, data }`. */
|
|
11735
11765
|
var SettingsRecordSchema = object({
|
|
@@ -13265,6 +13295,17 @@ var LlmImageSchema = object({
|
|
|
13265
13295
|
bytes: _instanceof(Uint8Array),
|
|
13266
13296
|
mimeType: string()
|
|
13267
13297
|
});
|
|
13298
|
+
/**
|
|
13299
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
13300
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
13301
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
13302
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
13303
|
+
*/
|
|
13304
|
+
var LlmRetryPolicySchema = object({
|
|
13305
|
+
enabled: boolean().default(false),
|
|
13306
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
13307
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
13308
|
+
});
|
|
13268
13309
|
var LlmGenerateBaseInputSchema = object({
|
|
13269
13310
|
/** Collection routing (the notification-output posture). */
|
|
13270
13311
|
addonId: string().optional(),
|
|
@@ -13279,7 +13320,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
13279
13320
|
jsonSchema: record(string(), unknown()).optional(),
|
|
13280
13321
|
/** Per-call override of the profile default. */
|
|
13281
13322
|
maxTokens: number().int().positive().optional(),
|
|
13282
|
-
temperature: number().optional()
|
|
13323
|
+
temperature: number().optional(),
|
|
13324
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
13325
|
+
topP: number().min(0).max(1).optional(),
|
|
13326
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
13327
|
+
topK: number().int().positive().optional(),
|
|
13328
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
13329
|
+
timeoutMs: number().int().positive().optional(),
|
|
13330
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
13331
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
13332
|
+
/**
|
|
13333
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
13334
|
+
*
|
|
13335
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
13336
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
13337
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
13338
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
13339
|
+
* not generations, and the real load is unbounded.
|
|
13340
|
+
*
|
|
13341
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
13342
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
13343
|
+
*/
|
|
13344
|
+
requestId: string().optional()
|
|
13283
13345
|
});
|
|
13284
13346
|
/**
|
|
13285
13347
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -13292,6 +13354,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
13292
13354
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
13293
13355
|
* watchdog — operator decision #3).
|
|
13294
13356
|
*/
|
|
13357
|
+
/**
|
|
13358
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
13359
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
13360
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
13361
|
+
* the preview is exactly what the node downloads.
|
|
13362
|
+
*/
|
|
13363
|
+
var ManagedModelExtraFileSchema = object({
|
|
13364
|
+
url: string(),
|
|
13365
|
+
filename: string(),
|
|
13366
|
+
sizeBytes: number(),
|
|
13367
|
+
sha256: string().optional()
|
|
13368
|
+
});
|
|
13295
13369
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
13296
13370
|
object({
|
|
13297
13371
|
kind: literal("catalog"),
|
|
@@ -13300,7 +13374,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
13300
13374
|
object({
|
|
13301
13375
|
kind: literal("url"),
|
|
13302
13376
|
url: string(),
|
|
13303
|
-
sha256: string().optional()
|
|
13377
|
+
sha256: string().optional(),
|
|
13378
|
+
/** Picker/status label; the file basename when absent. */
|
|
13379
|
+
label: string().optional(),
|
|
13380
|
+
sizeBytes: number().optional(),
|
|
13381
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
13304
13382
|
}),
|
|
13305
13383
|
object({
|
|
13306
13384
|
kind: literal("path"),
|
|
@@ -13318,13 +13396,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
13318
13396
|
gpuLayers: number().int().default(0),
|
|
13319
13397
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
13320
13398
|
threads: number().int().optional(),
|
|
13321
|
-
/** Concurrent slots. */
|
|
13399
|
+
/** Concurrent slots (`--parallel`). */
|
|
13322
13400
|
parallel: number().int().default(1),
|
|
13401
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
13402
|
+
batchSize: number().int().positive().optional(),
|
|
13403
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
13404
|
+
ubatchSize: number().int().positive().optional(),
|
|
13405
|
+
/**
|
|
13406
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
13407
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
13408
|
+
*/
|
|
13409
|
+
flashAttention: boolean().default(false),
|
|
13410
|
+
/**
|
|
13411
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
13412
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
13413
|
+
* what the RAM budget is counting.
|
|
13414
|
+
*/
|
|
13415
|
+
mlock: boolean().default(false),
|
|
13416
|
+
/**
|
|
13417
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
13418
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
13419
|
+
* store produces on every first token.
|
|
13420
|
+
*/
|
|
13421
|
+
noMmap: boolean().default(false),
|
|
13422
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
13423
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
13424
|
+
cacheTypeK: _enum([
|
|
13425
|
+
"f32",
|
|
13426
|
+
"f16",
|
|
13427
|
+
"q8_0",
|
|
13428
|
+
"q5_1",
|
|
13429
|
+
"q5_0",
|
|
13430
|
+
"q4_1",
|
|
13431
|
+
"q4_0"
|
|
13432
|
+
]).optional(),
|
|
13433
|
+
cacheTypeV: _enum([
|
|
13434
|
+
"f32",
|
|
13435
|
+
"f16",
|
|
13436
|
+
"q8_0",
|
|
13437
|
+
"q5_1",
|
|
13438
|
+
"q5_0",
|
|
13439
|
+
"q4_1",
|
|
13440
|
+
"q4_0"
|
|
13441
|
+
]).optional(),
|
|
13442
|
+
/**
|
|
13443
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
13444
|
+
* (which most vision chat templates need and some language-only models
|
|
13445
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
13446
|
+
*
|
|
13447
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
13448
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
13449
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
13450
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
13451
|
+
* twice (D62).
|
|
13452
|
+
*/
|
|
13453
|
+
extraArgs: array(string()).default([]),
|
|
13323
13454
|
/** Else lazy: first generate boots it. */
|
|
13324
13455
|
autoStart: boolean().default(false),
|
|
13325
13456
|
/** 0 = never; frees RAM after quiet periods. */
|
|
13326
13457
|
idleStopMinutes: number().int().default(30)
|
|
13327
13458
|
});
|
|
13459
|
+
/**
|
|
13460
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
13461
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
13462
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
13463
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
13464
|
+
*/
|
|
13465
|
+
var LlmDownloadProgressSchema = object({
|
|
13466
|
+
phase: _enum(["downloading", "verifying"]),
|
|
13467
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
13468
|
+
file: string(),
|
|
13469
|
+
fileIndex: number().int(),
|
|
13470
|
+
fileCount: number().int(),
|
|
13471
|
+
/** Across the WHOLE install, not the current file. */
|
|
13472
|
+
downloadedBytes: number(),
|
|
13473
|
+
totalBytes: number().optional()
|
|
13474
|
+
});
|
|
13328
13475
|
var LlmRuntimeStatusSchema = object({
|
|
13329
13476
|
/** Status is ALWAYS node-qualified. */
|
|
13330
13477
|
nodeId: string(),
|
|
@@ -13341,6 +13488,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
13341
13488
|
modelPath: string().optional(),
|
|
13342
13489
|
modelId: string().optional(),
|
|
13343
13490
|
downloadProgress: number().min(0).max(1).optional(),
|
|
13491
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
13492
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
13344
13493
|
lastError: string().optional(),
|
|
13345
13494
|
crashesInWindow: number(),
|
|
13346
13495
|
/** Child RSS (sampled best-effort). */
|
|
@@ -13351,7 +13500,14 @@ var LlmNodeModelSchema = object({
|
|
|
13351
13500
|
file: string(),
|
|
13352
13501
|
sizeBytes: number(),
|
|
13353
13502
|
catalogId: string().optional(),
|
|
13354
|
-
installedAt: number().optional()
|
|
13503
|
+
installedAt: number().optional(),
|
|
13504
|
+
/**
|
|
13505
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
13506
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
13507
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
13508
|
+
* it the picker could list such a file and do nothing with it.
|
|
13509
|
+
*/
|
|
13510
|
+
path: string().optional()
|
|
13355
13511
|
});
|
|
13356
13512
|
var LlmRuntimeDiskUsageSchema = object({
|
|
13357
13513
|
nodeId: string(),
|
|
@@ -13407,10 +13563,47 @@ var LlmProfileSchema = object({
|
|
|
13407
13563
|
baseUrl: string().optional(),
|
|
13408
13564
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
13409
13565
|
apiKey: string().optional(),
|
|
13566
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
13567
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
13568
|
+
* question about a picture nobody sent. */
|
|
13410
13569
|
supportsVision: boolean(),
|
|
13411
13570
|
temperature: number().min(0).max(2).optional(),
|
|
13571
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
13572
|
+
topP: number().min(0).max(1).optional(),
|
|
13573
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
13574
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
13575
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
13576
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
13577
|
+
topK: number().int().positive().optional(),
|
|
13412
13578
|
maxTokens: number().int().positive().optional(),
|
|
13579
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
13580
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
13581
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
13582
|
+
contextLength: number().int().positive().optional(),
|
|
13583
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
13584
|
+
* two system prompts fighting is worse than either alone). */
|
|
13585
|
+
systemPrompt: string().optional(),
|
|
13586
|
+
/** Total generation bound — the only one a unary call has. */
|
|
13413
13587
|
timeoutMs: number().int().positive().default(6e4),
|
|
13588
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
13589
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
13590
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
13591
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
13592
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
13593
|
+
* GPU load is exactly what happens before them. */
|
|
13594
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
13595
|
+
/** Output started then stopped. */
|
|
13596
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
13597
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
13598
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
13599
|
+
retry: LlmRetryPolicySchema.default({
|
|
13600
|
+
enabled: false,
|
|
13601
|
+
maxAttempts: 1
|
|
13602
|
+
}),
|
|
13603
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
13604
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
13605
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
13606
|
+
toolsEnabled: boolean().default(false),
|
|
13414
13607
|
extraHeaders: record(string(), string()).optional(),
|
|
13415
13608
|
/** kind === 'managed-local' only (spec §4). */
|
|
13416
13609
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -13460,6 +13653,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
13460
13653
|
/** Vision models: companion projector file. */
|
|
13461
13654
|
mmprojUrl: string().optional()
|
|
13462
13655
|
});
|
|
13656
|
+
/**
|
|
13657
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
13658
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
13659
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
13660
|
+
* exception.
|
|
13661
|
+
*
|
|
13662
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
13663
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
13664
|
+
*/
|
|
13665
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
13666
|
+
ok: literal(true),
|
|
13667
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
13668
|
+
model: ManagedModelRefSchema,
|
|
13669
|
+
label: string(),
|
|
13670
|
+
repo: string(),
|
|
13671
|
+
quantization: string(),
|
|
13672
|
+
purpose: _enum(["text", "vision"]),
|
|
13673
|
+
totalBytes: number(),
|
|
13674
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
13675
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
13676
|
+
extraFilenames: array(string())
|
|
13677
|
+
}), object({
|
|
13678
|
+
ok: literal(false),
|
|
13679
|
+
code: string(),
|
|
13680
|
+
message: string(),
|
|
13681
|
+
candidates: array(string()).optional(),
|
|
13682
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
13683
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
13684
|
+
requiredBytes: number().optional()
|
|
13685
|
+
})]);
|
|
13463
13686
|
var LlmRuntimeNodeSchema = object({
|
|
13464
13687
|
nodeId: string(),
|
|
13465
13688
|
reachable: boolean(),
|
|
@@ -13472,7 +13695,10 @@ var ProfileRefInputSchema = object({
|
|
|
13472
13695
|
addonId: string(),
|
|
13473
13696
|
profileId: string()
|
|
13474
13697
|
});
|
|
13475
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
13698
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
13699
|
+
addonId: string().optional(),
|
|
13700
|
+
requestId: string()
|
|
13701
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
13476
13702
|
kind: "mutation",
|
|
13477
13703
|
auth: "admin"
|
|
13478
13704
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -13493,6 +13719,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13493
13719
|
consumer: string().optional(),
|
|
13494
13720
|
profileId: string().optional()
|
|
13495
13721
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
13722
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
13723
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
13724
|
+
ref: string(),
|
|
13725
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
13726
|
+
maxBytes: number().positive().optional()
|
|
13727
|
+
}), HfModelResolutionSchema, {
|
|
13728
|
+
kind: "mutation",
|
|
13729
|
+
auth: "admin"
|
|
13730
|
+
}), method(object({
|
|
13496
13731
|
nodeId: string(),
|
|
13497
13732
|
model: ManagedModelRefSchema
|
|
13498
13733
|
}), _void(), {
|
|
@@ -15140,6 +15375,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15140
15375
|
"stream-offline",
|
|
15141
15376
|
"node-online",
|
|
15142
15377
|
"node-offline",
|
|
15378
|
+
"node-inference-unavailable",
|
|
15379
|
+
"detection-blind",
|
|
15143
15380
|
"addon-update-available",
|
|
15144
15381
|
"server-update-available",
|
|
15145
15382
|
"alarm-triggered",
|
|
@@ -15201,7 +15438,16 @@ var NcScheduleSchema = object({
|
|
|
15201
15438
|
});
|
|
15202
15439
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
15203
15440
|
var NcPlateMatcherSchema = object({
|
|
15204
|
-
|
|
15441
|
+
/**
|
|
15442
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
15443
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
15444
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
15445
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
15446
|
+
*
|
|
15447
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
15448
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
15449
|
+
*/
|
|
15450
|
+
values: array(string().min(1)),
|
|
15205
15451
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
15206
15452
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
15207
15453
|
});
|
|
@@ -15235,28 +15481,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
15235
15481
|
/**
|
|
15236
15482
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
15237
15483
|
*
|
|
15238
|
-
*
|
|
15239
|
-
*
|
|
15240
|
-
*
|
|
15241
|
-
*
|
|
15242
|
-
*
|
|
15243
|
-
*
|
|
15244
|
-
*
|
|
15245
|
-
*
|
|
15246
|
-
*
|
|
15247
|
-
*
|
|
15248
|
-
*
|
|
15249
|
-
*
|
|
15250
|
-
*
|
|
15251
|
-
*
|
|
15252
|
-
*
|
|
15253
|
-
*
|
|
15254
|
-
*
|
|
15255
|
-
*
|
|
15256
|
-
*
|
|
15257
|
-
*
|
|
15258
|
-
*
|
|
15259
|
-
* `
|
|
15484
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
15485
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
15486
|
+
* there is no second switch that can disagree with the first and every rule
|
|
15487
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
15488
|
+
*
|
|
15489
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
15490
|
+
* classifier labels with one of them. No window, no percentage:
|
|
15491
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
15492
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
15493
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
15494
|
+
* reaches this condition if the classifier was already confident enough.
|
|
15495
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
15496
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
15497
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
15498
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
15499
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
15500
|
+
* seconds is 100% of nothing.
|
|
15501
|
+
*
|
|
15502
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
15503
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
15504
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
15505
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
15506
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
15507
|
+
* the wrong question to ask of a sparse classifier.
|
|
15508
|
+
*
|
|
15509
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
15510
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
15511
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
15512
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
15513
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
15260
15514
|
*
|
|
15261
15515
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
15262
15516
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -15264,13 +15518,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
15264
15518
|
* an operator who typed `dog` mean the same thing.
|
|
15265
15519
|
*/
|
|
15266
15520
|
var NcAudioConditionSchema = object({
|
|
15267
|
-
/**
|
|
15521
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
15268
15522
|
labels: array(string().min(1)).min(1).optional(),
|
|
15269
|
-
/**
|
|
15523
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
15270
15524
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
15271
|
-
/**
|
|
15525
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
15272
15526
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
15273
|
-
/**
|
|
15527
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
15274
15528
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15275
15529
|
});
|
|
15276
15530
|
/**
|
|
@@ -15408,13 +15662,81 @@ var NcRuleActionsSchema = object({
|
|
|
15408
15662
|
*/
|
|
15409
15663
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
15410
15664
|
});
|
|
15665
|
+
/**
|
|
15666
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
15667
|
+
*
|
|
15668
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
15669
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
15670
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
15671
|
+
*
|
|
15672
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
15673
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
15674
|
+
*/
|
|
15675
|
+
var NcDeviceStateConditionSchema = object({
|
|
15676
|
+
deviceId: number().int(),
|
|
15677
|
+
/** Any of these matches. */
|
|
15678
|
+
states: array(string().min(1)).min(1)
|
|
15679
|
+
});
|
|
15680
|
+
/**
|
|
15681
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
15682
|
+
*
|
|
15683
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
15684
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
15685
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
15686
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
15687
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
15688
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
15689
|
+
* kind exist for it — see D159.
|
|
15690
|
+
*
|
|
15691
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
15692
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
15693
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
15694
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
15695
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
15696
|
+
*
|
|
15697
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
15698
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
15699
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
15700
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
15701
|
+
* override one rule against the scene's own default.
|
|
15702
|
+
*
|
|
15703
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
15704
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
15705
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
15706
|
+
* evidence, in either direction.
|
|
15707
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
15708
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
15709
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
15710
|
+
* reason the operator asked for a latch.
|
|
15711
|
+
*
|
|
15712
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
15713
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
15714
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
15715
|
+
* said out loud in the log rather than dropped in silence.
|
|
15716
|
+
*/
|
|
15717
|
+
var NcSceneConditionSchema = object({
|
|
15718
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
15719
|
+
sceneId: string().min(1),
|
|
15720
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
15721
|
+
deviceId: number().int().optional(),
|
|
15722
|
+
/** The state the scene must be in for the rule to fire. */
|
|
15723
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
15724
|
+
/**
|
|
15725
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
15726
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
15727
|
+
*/
|
|
15728
|
+
latched: boolean().optional()
|
|
15729
|
+
});
|
|
15411
15730
|
var NcConditionsSchema = object({
|
|
15412
15731
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
15413
|
-
deviceState:
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15732
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
15733
|
+
/**
|
|
15734
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
15735
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
15736
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
15737
|
+
* {@link NcSceneCondition} and D159.
|
|
15738
|
+
*/
|
|
15739
|
+
scene: NcSceneConditionSchema.optional(),
|
|
15418
15740
|
/** Device scope — absent = all devices. */
|
|
15419
15741
|
devices: array(number()).optional(),
|
|
15420
15742
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -15440,18 +15762,47 @@ var NcConditionsSchema = object({
|
|
|
15440
15762
|
*/
|
|
15441
15763
|
labelEquals: array(string().min(1)).optional(),
|
|
15442
15764
|
/**
|
|
15443
|
-
*
|
|
15444
|
-
*
|
|
15445
|
-
*
|
|
15765
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
15766
|
+
* is about recognised people at all.
|
|
15767
|
+
*
|
|
15768
|
+
* Three states, and the empty one is the point:
|
|
15769
|
+
*
|
|
15770
|
+
* | value | meaning |
|
|
15771
|
+
* | --- | --- |
|
|
15772
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
15773
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
15774
|
+
* | a list | only these identities |
|
|
15775
|
+
*
|
|
15776
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
15777
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
15778
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
15779
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
15780
|
+
* with the list under it is worse than no switch (D62).
|
|
15781
|
+
*
|
|
15782
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
15783
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
15784
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
15785
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
15786
|
+
* `{{label}}` renders.
|
|
15787
|
+
*
|
|
15788
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
15789
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
15790
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
15791
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
15792
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
15446
15793
|
*/
|
|
15447
15794
|
identities: array(string().min(1)).optional(),
|
|
15448
|
-
/**
|
|
15795
|
+
/**
|
|
15796
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
15797
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
15798
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
15799
|
+
*/
|
|
15449
15800
|
plates: NcPlateMatcherSchema.optional(),
|
|
15450
15801
|
/**
|
|
15451
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
15452
|
-
*
|
|
15453
|
-
* identity
|
|
15454
|
-
*
|
|
15802
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
15803
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
15804
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
15805
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
15455
15806
|
*/
|
|
15456
15807
|
identitiesExclude: array(string().min(1)).optional(),
|
|
15457
15808
|
/**
|
|
@@ -15843,7 +16194,80 @@ var NcRuleInputSchema = object({
|
|
|
15843
16194
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
15844
16195
|
* did, and absent is the only way to say that without a migration.
|
|
15845
16196
|
*/
|
|
15846
|
-
confirm: NcConfirmSchema.optional()
|
|
16197
|
+
confirm: NcConfirmSchema.optional(),
|
|
16198
|
+
/**
|
|
16199
|
+
* WAIT for face/plate recognition before saying anything.
|
|
16200
|
+
*
|
|
16201
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
16202
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
16203
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
16204
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
16205
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
16206
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
16207
|
+
*
|
|
16208
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
16209
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
16210
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
16211
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
16212
|
+
*
|
|
16213
|
+
* | value | what happens |
|
|
16214
|
+
* | --- | --- |
|
|
16215
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
16216
|
+
* | 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) |
|
|
16217
|
+
*
|
|
16218
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
16219
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
16220
|
+
* rule authored before this field meant.
|
|
16221
|
+
*
|
|
16222
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
16223
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
16224
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
16225
|
+
* be satisfied, because a closed track carries no crossing.
|
|
16226
|
+
*/
|
|
16227
|
+
waitForEnhancement: boolean().optional(),
|
|
16228
|
+
/**
|
|
16229
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
16230
|
+
*
|
|
16231
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
16232
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
16233
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
16234
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
16235
|
+
* notification with an updated one naming everybody. The push carries the
|
|
16236
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
16237
|
+
*
|
|
16238
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
16239
|
+
*
|
|
16240
|
+
* ### Why an idle cutoff and not a window
|
|
16241
|
+
*
|
|
16242
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
16243
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
16244
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
16245
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
16246
|
+
*
|
|
16247
|
+
* ### What it replaces
|
|
16248
|
+
*
|
|
16249
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
16250
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
16251
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
16252
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
16253
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
16254
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
16255
|
+
* throttled by the window its own first member spent.
|
|
16256
|
+
*
|
|
16257
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
16258
|
+
*
|
|
16259
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
16260
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
16261
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
16262
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
16263
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
16264
|
+
* path. Neither combination fires twice for one subject.
|
|
16265
|
+
*
|
|
16266
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
16267
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
16268
|
+
* field existed.
|
|
16269
|
+
*/
|
|
16270
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
15847
16271
|
});
|
|
15848
16272
|
/**
|
|
15849
16273
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -15950,6 +16374,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15950
16374
|
"occupancy",
|
|
15951
16375
|
"audio",
|
|
15952
16376
|
"deviceState",
|
|
16377
|
+
"scene",
|
|
15953
16378
|
"systemEvent"
|
|
15954
16379
|
]),
|
|
15955
16380
|
operator: _enum([
|
|
@@ -16355,7 +16780,87 @@ var MethodAccessSchema = _enum([
|
|
|
16355
16780
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
16356
16781
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
16357
16782
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
16358
|
-
|
|
16783
|
+
/**
|
|
16784
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
16785
|
+
*
|
|
16786
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
16787
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
16788
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
16789
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
16790
|
+
*
|
|
16791
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
16792
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
16793
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
16794
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
16795
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
16796
|
+
* is NOT covered until the grant is edited.
|
|
16797
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
16798
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
16799
|
+
* re-resolves on the next request.
|
|
16800
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
16801
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
16802
|
+
* null/unset location matches NO `locations` selector.
|
|
16803
|
+
*/
|
|
16804
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
16805
|
+
object({ kind: literal("all") }),
|
|
16806
|
+
object({
|
|
16807
|
+
kind: literal("ids"),
|
|
16808
|
+
ids: array(number().int()).min(1)
|
|
16809
|
+
}),
|
|
16810
|
+
object({
|
|
16811
|
+
kind: literal("types"),
|
|
16812
|
+
types: array(_enum(DeviceType)).min(1)
|
|
16813
|
+
}),
|
|
16814
|
+
object({
|
|
16815
|
+
kind: literal("locations"),
|
|
16816
|
+
locations: array(string().min(1)).min(1)
|
|
16817
|
+
})
|
|
16818
|
+
]);
|
|
16819
|
+
var DeviceTokenScopeSchema = object({
|
|
16820
|
+
type: literal("device"),
|
|
16821
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
16822
|
+
selector: DeviceSelectorSchema,
|
|
16823
|
+
access: array(MethodAccessSchema).min(1),
|
|
16824
|
+
/**
|
|
16825
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
16826
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
16827
|
+
* Direction is parent → children ONLY.
|
|
16828
|
+
*
|
|
16829
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
16830
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
16831
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
16832
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
16833
|
+
* explicitly to override that default per grant.
|
|
16834
|
+
*/
|
|
16835
|
+
includeLinked: boolean().optional()
|
|
16836
|
+
});
|
|
16837
|
+
/**
|
|
16838
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
16839
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
16840
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
16841
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
16842
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
16843
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
16844
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
16845
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
16846
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
16847
|
+
*/
|
|
16848
|
+
function migrateLegacyTokenScope(raw) {
|
|
16849
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
16850
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
16851
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
16852
|
+
const targets = Reflect.get(raw, "targets");
|
|
16853
|
+
if (!Array.isArray(targets)) return raw;
|
|
16854
|
+
return {
|
|
16855
|
+
type: "device",
|
|
16856
|
+
selector: {
|
|
16857
|
+
kind: "ids",
|
|
16858
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
16859
|
+
},
|
|
16860
|
+
access: Reflect.get(raw, "access")
|
|
16861
|
+
};
|
|
16862
|
+
}
|
|
16863
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
16359
16864
|
object({
|
|
16360
16865
|
type: literal("category"),
|
|
16361
16866
|
target: CapScopeSchema,
|
|
@@ -16371,18 +16876,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
16371
16876
|
target: string(),
|
|
16372
16877
|
access: array(MethodAccessSchema).min(1)
|
|
16373
16878
|
}),
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
/**
|
|
16377
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
16378
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
16379
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
16380
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
16381
|
-
*/
|
|
16382
|
-
targets: array(string()).min(1),
|
|
16383
|
-
access: array(MethodAccessSchema).min(1)
|
|
16384
|
-
})
|
|
16385
|
-
]);
|
|
16879
|
+
DeviceTokenScopeSchema
|
|
16880
|
+
]));
|
|
16386
16881
|
object({
|
|
16387
16882
|
id: string(),
|
|
16388
16883
|
username: string(),
|
|
@@ -16699,7 +17194,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16699
17194
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16700
17195
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16701
17196
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16702
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
17197
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16703
17198
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16704
17199
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16705
17200
|
* (`getObjectEvents` et al.).
|
|
@@ -16835,7 +17330,21 @@ union([literal(1), literal(2)]);
|
|
|
16835
17330
|
var LabelAttributionSchema = object({
|
|
16836
17331
|
stepId: string(),
|
|
16837
17332
|
modelId: string().optional(),
|
|
16838
|
-
decidedAt: number()
|
|
17333
|
+
decidedAt: number(),
|
|
17334
|
+
/**
|
|
17335
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
17336
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
17337
|
+
*
|
|
17338
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
17339
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
17340
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
17341
|
+
* the thing that does not move, so it is what a rule matches on
|
|
17342
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
17343
|
+
*
|
|
17344
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
17345
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
17346
|
+
*/
|
|
17347
|
+
identityId: string().optional()
|
|
16839
17348
|
});
|
|
16840
17349
|
/**
|
|
16841
17350
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -16972,6 +17481,28 @@ var TrackSchema = object({
|
|
|
16972
17481
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
16973
17482
|
*/
|
|
16974
17483
|
hasFace: boolean().optional(),
|
|
17484
|
+
/**
|
|
17485
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
17486
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
17487
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
17488
|
+
*
|
|
17489
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
17490
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
17491
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
17492
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
17493
|
+
* stop. This is the composition note that makes the row true.
|
|
17494
|
+
*
|
|
17495
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
17496
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
17497
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
17498
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
17499
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
17500
|
+
*
|
|
17501
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
17502
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
17503
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
17504
|
+
*/
|
|
17505
|
+
hasRider: boolean().optional(),
|
|
16975
17506
|
...TrackFlagFields,
|
|
16976
17507
|
...TrackRetrainFields
|
|
16977
17508
|
});
|
|
@@ -17321,7 +17852,10 @@ var RecentTracksQueryInput = object({
|
|
|
17321
17852
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
17322
17853
|
cursor: string().optional(),
|
|
17323
17854
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
17324
|
-
projection: TrackProjectionSchema.optional()
|
|
17855
|
+
projection: TrackProjectionSchema.optional(),
|
|
17856
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
17857
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
17858
|
+
includeStationary: boolean().optional()
|
|
17325
17859
|
});
|
|
17326
17860
|
var RecentTracksPageSchema = object({
|
|
17327
17861
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -17539,7 +18073,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17539
18073
|
zone: TrackZoneFilterSchema.optional(),
|
|
17540
18074
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
17541
18075
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
17542
|
-
projection: TrackProjectionSchema.optional()
|
|
18076
|
+
projection: TrackProjectionSchema.optional(),
|
|
18077
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
18078
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
18079
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
18080
|
+
includeStationary: boolean().optional()
|
|
17543
18081
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
17544
18082
|
kind: "mutation",
|
|
17545
18083
|
auth: "admin"
|
|
@@ -17703,11 +18241,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17703
18241
|
auth: "admin"
|
|
17704
18242
|
}), method(object({
|
|
17705
18243
|
eventId: string(),
|
|
17706
|
-
kind: MediaFileKindEnum.optional()
|
|
18244
|
+
kind: MediaFileKindEnum.optional(),
|
|
18245
|
+
deviceId: number()
|
|
18246
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
18247
|
+
trackId: string(),
|
|
18248
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
18249
|
+
deviceId: number()
|
|
17707
18250
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
17708
18251
|
trackId: string(),
|
|
17709
|
-
|
|
17710
|
-
}), array(
|
|
18252
|
+
deviceId: number()
|
|
18253
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
17711
18254
|
kind: "mutation",
|
|
17712
18255
|
auth: "admin"
|
|
17713
18256
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -18407,6 +18950,17 @@ var maxSessionHoldMsField = {
|
|
|
18407
18950
|
default: 12e4,
|
|
18408
18951
|
step: 5e3
|
|
18409
18952
|
};
|
|
18953
|
+
/**
|
|
18954
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
18955
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
18956
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
18957
|
+
*/
|
|
18958
|
+
var audioMotionWindowMsField = {
|
|
18959
|
+
min: 5e3,
|
|
18960
|
+
max: 6e5,
|
|
18961
|
+
default: 9e4,
|
|
18962
|
+
step: 5e3
|
|
18963
|
+
};
|
|
18410
18964
|
var motionFpsField = {
|
|
18411
18965
|
min: 1,
|
|
18412
18966
|
max: 30,
|
|
@@ -18438,7 +18992,7 @@ var detectionFpsField = {
|
|
|
18438
18992
|
var occupancyRecheckSecField = {
|
|
18439
18993
|
min: 0,
|
|
18440
18994
|
max: 300,
|
|
18441
|
-
default:
|
|
18995
|
+
default: 300,
|
|
18442
18996
|
step: 5
|
|
18443
18997
|
};
|
|
18444
18998
|
var occupancyRecheckFramesField = {
|
|
@@ -18583,6 +19137,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
18583
19137
|
* resolved `CameraDetectionConfig`.
|
|
18584
19138
|
*/
|
|
18585
19139
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
19140
|
+
/**
|
|
19141
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
19142
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
19143
|
+
*
|
|
19144
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
19145
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
19146
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
19147
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
19148
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
19149
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
19150
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
19151
|
+
*
|
|
19152
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
19153
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
19154
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
19155
|
+
*
|
|
19156
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
19157
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
19158
|
+
* `maxSessionHoldMs`.
|
|
19159
|
+
*/
|
|
19160
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
18586
19161
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
18587
19162
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
18588
19163
|
motionStreamId: string(),
|
|
@@ -18678,7 +19253,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
18678
19253
|
*/
|
|
18679
19254
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
18680
19255
|
});
|
|
18681
|
-
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;
|
|
19256
|
+
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;
|
|
18682
19257
|
/**
|
|
18683
19258
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
18684
19259
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -19694,7 +20269,16 @@ targets: array(object({
|
|
|
19694
20269
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
19695
20270
|
* NOT refresh in the background. A surface should say so rather than
|
|
19696
20271
|
* present it as current. */
|
|
19697
|
-
sleeping: boolean()
|
|
20272
|
+
sleeping: boolean(),
|
|
20273
|
+
/** Current device state rendered over the cached frame. State images
|
|
20274
|
+
* remain authoritative even when their photographic background is
|
|
20275
|
+
* old; null means the link must carry a current camera frame. */
|
|
20276
|
+
stateReason: _enum([
|
|
20277
|
+
"disabled",
|
|
20278
|
+
"sleeping",
|
|
20279
|
+
"unreachable",
|
|
20280
|
+
"waking"
|
|
20281
|
+
]).nullable()
|
|
19698
20282
|
})));
|
|
19699
20283
|
/**
|
|
19700
20284
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -21348,6 +21932,25 @@ var BatteryStatusSchema = object({
|
|
|
21348
21932
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
21349
21933
|
lastUpdated: number(),
|
|
21350
21934
|
/**
|
|
21935
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
21936
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
21937
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
21938
|
+
*
|
|
21939
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
21940
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
21941
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
21942
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
21943
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
21944
|
+
*
|
|
21945
|
+
* It is deliberately NOT a clock in the
|
|
21946
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
21947
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
21948
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
21949
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
21950
|
+
* SQLite commit per round-trip.
|
|
21951
|
+
*/
|
|
21952
|
+
lastContactAt: number().optional(),
|
|
21953
|
+
/**
|
|
21351
21954
|
* True when the source is a BINARY low-battery indicator (HA
|
|
21352
21955
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
21353
21956
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -23620,54 +24223,139 @@ var TalkAudioCodecSchema = _enum([
|
|
|
23620
24223
|
"g711ulaw",
|
|
23621
24224
|
"g711alaw"
|
|
23622
24225
|
]);
|
|
23623
|
-
|
|
23624
|
-
|
|
23625
|
-
|
|
23626
|
-
|
|
23627
|
-
|
|
23628
|
-
|
|
23629
|
-
|
|
23630
|
-
|
|
23631
|
-
|
|
23632
|
-
|
|
23633
|
-
|
|
23634
|
-
|
|
23635
|
-
|
|
23636
|
-
}),
|
|
23637
|
-
|
|
23638
|
-
|
|
23639
|
-
}),
|
|
23640
|
-
|
|
23641
|
-
|
|
23642
|
-
}),
|
|
23643
|
-
|
|
23644
|
-
|
|
23645
|
-
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
|
|
23656
|
-
|
|
23657
|
-
|
|
23658
|
-
|
|
23659
|
-
|
|
23660
|
-
|
|
23661
|
-
|
|
23662
|
-
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23666
|
-
|
|
23667
|
-
|
|
23668
|
-
|
|
23669
|
-
|
|
23670
|
-
|
|
24226
|
+
var intercomCapability = {
|
|
24227
|
+
name: "intercom",
|
|
24228
|
+
scope: "device",
|
|
24229
|
+
deviceNative: true,
|
|
24230
|
+
mode: "singleton",
|
|
24231
|
+
deviceTypes: [DeviceType.Camera],
|
|
24232
|
+
methods: {
|
|
24233
|
+
/**
|
|
24234
|
+
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
24235
|
+
* offer with a single sendonly audio m-line the client answers
|
|
24236
|
+
* (client → server direction). The server wakes battery cams
|
|
24237
|
+
* transparently before opening the upstream talk channel.
|
|
24238
|
+
*/
|
|
24239
|
+
startSession: method(object({ deviceId: number() }), object({
|
|
24240
|
+
sessionId: string(),
|
|
24241
|
+
sdpOffer: string()
|
|
24242
|
+
}), {
|
|
24243
|
+
kind: "mutation",
|
|
24244
|
+
auth: "admin"
|
|
24245
|
+
}),
|
|
24246
|
+
handleAnswer: method(object({
|
|
24247
|
+
deviceId: number(),
|
|
24248
|
+
sessionId: string(),
|
|
24249
|
+
sdpAnswer: string()
|
|
24250
|
+
}), _void(), {
|
|
24251
|
+
kind: "mutation",
|
|
24252
|
+
auth: "admin"
|
|
24253
|
+
}),
|
|
24254
|
+
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
24255
|
+
stopSession: method(object({
|
|
24256
|
+
deviceId: number(),
|
|
24257
|
+
sessionId: string()
|
|
24258
|
+
}), _void(), {
|
|
24259
|
+
kind: "mutation",
|
|
24260
|
+
auth: "admin"
|
|
24261
|
+
}),
|
|
24262
|
+
/**
|
|
24263
|
+
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
24264
|
+
* non-WebRTC consumers (HomeKit export, Alexa raw audio, test
|
|
24265
|
+
* harnesses) that already have decoded PCM frames and just need a
|
|
24266
|
+
* direct path onto the camera's talk channel. Mutually exclusive
|
|
24267
|
+
* with `startSession` (an active WebRTC session must be stopped
|
|
24268
|
+
* before a raw-PCM session can be opened on the same device, and
|
|
24269
|
+
* vice versa).
|
|
24270
|
+
*/
|
|
24271
|
+
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
24272
|
+
kind: "mutation",
|
|
24273
|
+
auth: "admin"
|
|
24274
|
+
}),
|
|
24275
|
+
/**
|
|
24276
|
+
* Push one chunk of talk-back audio onto the active talk session.
|
|
24277
|
+
* The cap is codec-agnostic: the caller declares (or omits) the
|
|
24278
|
+
* wire format via `codec`; the provider decides between passthrough
|
|
24279
|
+
* (when the wire codec matches the camera's native talk channel),
|
|
24280
|
+
* transcoding via the `audio-codec` cap, or rejecting the call.
|
|
24281
|
+
*
|
|
24282
|
+
* Callers do NOT need to know the camera's wire format or sample
|
|
24283
|
+
* rate — that information lives entirely inside the provider.
|
|
24284
|
+
*
|
|
24285
|
+
* Sequence numbers MUST be monotonic per talk session; older frames
|
|
24286
|
+
* arriving after newer ones are dropped to avoid smearing the
|
|
24287
|
+
* downstream encoder state (G.711 is stateless but IMA ADPCM's
|
|
24288
|
+
* predictor would corrupt with re-ordering).
|
|
24289
|
+
*/
|
|
24290
|
+
pushTalkAudio: method(object({
|
|
24291
|
+
deviceId: number(),
|
|
24292
|
+
/** Audio bytes for ONE frame, base64-encoded so the payload
|
|
24293
|
+
* survives tRPC JSON serialization. */
|
|
24294
|
+
audioBase64: string(),
|
|
24295
|
+
/** Wire codec of the payload. Omit to let the provider default
|
|
24296
|
+
* to its native expected format (s16le @ provider-native rate,
|
|
24297
|
+
* mono). See {@link TalkAudioCodecSchema} for the supported set. */
|
|
24298
|
+
codec: TalkAudioCodecSchema.optional(),
|
|
24299
|
+
/** Sample rate (Hz). REQUIRED for `s16le`; advisory for
|
|
24300
|
+
* `opus` (encoder clock); ignored for `g711*` (implied 8000). */
|
|
24301
|
+
sampleRate: number().int().positive().optional(),
|
|
24302
|
+
/** Channel count. Default 1. */
|
|
24303
|
+
channels: number().int().positive().optional(),
|
|
24304
|
+
/** Sequence number for ordering / dropping out-of-order frames. */
|
|
24305
|
+
sequenceNumber: number().int()
|
|
24306
|
+
}), object({ accepted: boolean() }), {
|
|
24307
|
+
kind: "mutation",
|
|
24308
|
+
auth: "admin"
|
|
24309
|
+
}),
|
|
24310
|
+
/** Close the raw-PCM talk session. Idempotent. */
|
|
24311
|
+
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
24312
|
+
kind: "mutation",
|
|
24313
|
+
auth: "admin"
|
|
24314
|
+
})
|
|
24315
|
+
},
|
|
24316
|
+
events: { onStatusChanged: { data: object({
|
|
24317
|
+
deviceId: number(),
|
|
24318
|
+
status: IntercomStatusSchema
|
|
24319
|
+
}) } },
|
|
24320
|
+
status: {
|
|
24321
|
+
schema: IntercomStatusSchema,
|
|
24322
|
+
kind: "command-driven"
|
|
24323
|
+
},
|
|
24324
|
+
/**
|
|
24325
|
+
* Runtime-state slice — mirrored by the kernel.
|
|
24326
|
+
*
|
|
24327
|
+
* The cap declared `status` and nothing else, so the only two sources an
|
|
24328
|
+
* exporter has for a value — the `device.state-changed` slice event and the
|
|
24329
|
+
* `deviceState.getAllSnapshots` snapshot, both built from runtime state —
|
|
24330
|
+
* carried nothing for `intercom`. A talk-back entity in Home Assistant would
|
|
24331
|
+
* have been published and never received a value, which is the defect the
|
|
24332
|
+
* export's two classification tables exist to prevent (177 of them, once), so
|
|
24333
|
+
* `intercom` was excluded rather than exported.
|
|
24334
|
+
*
|
|
24335
|
+
* The shape is the status shape: there is exactly one truth about talk-back
|
|
24336
|
+
* and duplicating it into a second schema is how two halves of one capability
|
|
24337
|
+
* come to disagree. Providers write it through
|
|
24338
|
+
* `this.runtimeState.setCapState('intercom', …)` at the four points that open
|
|
24339
|
+
* and close a session, and seed it at registration so the slice exists before
|
|
24340
|
+
* the first session rather than after it.
|
|
24341
|
+
*
|
|
24342
|
+
* **Bound, named rather than hidden:** `talking` mirrors the provider's own
|
|
24343
|
+
* session handle, so a session torn down by a transport death that never
|
|
24344
|
+
* reaches `stopSession` / `endTalkSession` leaves it latched until the next
|
|
24345
|
+
* session or the next restart. That is why the slice is `session` and not
|
|
24346
|
+
* `restored` — a restart must never restore "talking".
|
|
24347
|
+
*/
|
|
24348
|
+
runtimeState: IntercomStatusSchema,
|
|
24349
|
+
/**
|
|
24350
|
+
* Runtime-state durability: **session** — `talking` describes a live audio
|
|
24351
|
+
* session, which by definition does not survive the process that held it.
|
|
24352
|
+
* Restoring it would publish a camera as talking to nobody.
|
|
24353
|
+
*
|
|
24354
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24355
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24356
|
+
*/
|
|
24357
|
+
durability: "session"
|
|
24358
|
+
};
|
|
23671
24359
|
/**
|
|
23672
24360
|
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
23673
24361
|
* with a mowing lifecycle plus a dock action.
|
|
@@ -26364,7 +27052,7 @@ method(object({
|
|
|
26364
27052
|
toMs: number()
|
|
26365
27053
|
}), RecordingAvailabilitySchema, {
|
|
26366
27054
|
kind: "query",
|
|
26367
|
-
auth: "
|
|
27055
|
+
auth: "protected"
|
|
26368
27056
|
}), method(object({
|
|
26369
27057
|
deviceId: number(),
|
|
26370
27058
|
fromMs: number(),
|
|
@@ -26372,14 +27060,14 @@ method(object({
|
|
|
26372
27060
|
tzOffsetMinutes: number()
|
|
26373
27061
|
}), RecordingDaysSchema, {
|
|
26374
27062
|
kind: "query",
|
|
26375
|
-
auth: "
|
|
27063
|
+
auth: "protected"
|
|
26376
27064
|
}), method(object({
|
|
26377
27065
|
deviceId: number(),
|
|
26378
27066
|
fromMs: number(),
|
|
26379
27067
|
toMs: number()
|
|
26380
27068
|
}), RecordingManifestSchema, {
|
|
26381
27069
|
kind: "query",
|
|
26382
|
-
auth: "
|
|
27070
|
+
auth: "protected"
|
|
26383
27071
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
26384
27072
|
kind: "query",
|
|
26385
27073
|
auth: "admin"
|
|
@@ -26669,14 +27357,77 @@ method(object({
|
|
|
26669
27357
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
26670
27358
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
26671
27359
|
*
|
|
26672
|
-
*
|
|
26673
|
-
*
|
|
26674
|
-
*
|
|
26675
|
-
*
|
|
26676
|
-
|
|
26677
|
-
|
|
26678
|
-
*
|
|
27360
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
27361
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
27362
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
27363
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
27364
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
27365
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
27366
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
27367
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
27368
|
+
*
|
|
27369
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
27370
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
27371
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
27372
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
27373
|
+
*
|
|
27374
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
27375
|
+
* availability change; consumers never poll.
|
|
27376
|
+
*/
|
|
27377
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
27378
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
27379
|
+
* Open by design so more can be added without a wire break.
|
|
27380
|
+
*
|
|
27381
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
27382
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
27383
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
27384
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
26679
27385
|
var SceneConditionSchema = string();
|
|
27386
|
+
/**
|
|
27387
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
27388
|
+
*
|
|
27389
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
27390
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
27391
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
27392
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
27393
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
27394
|
+
* working without it rather than degrading into a permanent complaint.
|
|
27395
|
+
*
|
|
27396
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
27397
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
27398
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
27399
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
27400
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
27401
|
+
* configuration choice instead of a nightly fault.
|
|
27402
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
27403
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
27404
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
27405
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
27406
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
27407
|
+
*
|
|
27408
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
27409
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
27410
|
+
* there would hide a scene the operator never finished setting up.
|
|
27411
|
+
*/
|
|
27412
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
27413
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
27414
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
27415
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
27416
|
+
* and never counts toward hysteresis in either direction. */
|
|
27417
|
+
var SceneVerdictSchema = _enum([
|
|
27418
|
+
"matched",
|
|
27419
|
+
"diverged",
|
|
27420
|
+
"unknown"
|
|
27421
|
+
]);
|
|
27422
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
27423
|
+
* silence that reads as "nothing has happened". */
|
|
27424
|
+
var SceneUnavailableSchema = _enum([
|
|
27425
|
+
"no-reference-for-condition",
|
|
27426
|
+
"view-shifted",
|
|
27427
|
+
"no-vision-profile",
|
|
27428
|
+
"encoder-model-changed",
|
|
27429
|
+
"no-snapshot"
|
|
27430
|
+
]);
|
|
26680
27431
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
26681
27432
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
26682
27433
|
var SceneReferenceSchema = object({
|
|
@@ -26684,7 +27435,14 @@ var SceneReferenceSchema = object({
|
|
|
26684
27435
|
modelId: string(),
|
|
26685
27436
|
condition: SceneConditionSchema,
|
|
26686
27437
|
capturedAt: number(),
|
|
26687
|
-
thumbnailMediaId: string().optional()
|
|
27438
|
+
thumbnailMediaId: string().optional(),
|
|
27439
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
27440
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
27441
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
27442
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
27443
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
27444
|
+
* transition, not per poll. */
|
|
27445
|
+
anchorEmbedding: array(number()).optional()
|
|
26688
27446
|
});
|
|
26689
27447
|
var SceneMonitorStateSchema = object({
|
|
26690
27448
|
id: string(),
|
|
@@ -26706,6 +27464,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
26706
27464
|
profileId: string().optional(),
|
|
26707
27465
|
hysteresisCount: number().int().positive()
|
|
26708
27466
|
})]);
|
|
27467
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
27468
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
27469
|
+
* out in silence rather than reporting a fault every night. */
|
|
27470
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
27471
|
+
/**
|
|
27472
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
27473
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
27474
|
+
*
|
|
27475
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
27476
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
27477
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
27478
|
+
* stateful claim that costs the operator a trip to reset.
|
|
27479
|
+
*/
|
|
27480
|
+
var SceneConfirmSchema = object({
|
|
27481
|
+
enabled: boolean().default(false),
|
|
27482
|
+
prompt: string().min(1).max(1e3),
|
|
27483
|
+
profileId: string().optional(),
|
|
27484
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
27485
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
27486
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
27487
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
27488
|
+
});
|
|
26709
27489
|
var SceneMonitorSchema = object({
|
|
26710
27490
|
id: string(),
|
|
26711
27491
|
label: string(),
|
|
@@ -26724,7 +27504,56 @@ var SceneMonitorSchema = object({
|
|
|
26724
27504
|
lastConfidence: number().nullable(),
|
|
26725
27505
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26726
27506
|
availability: _enum(["ok", "unavailable"]),
|
|
26727
|
-
unavailableReason: string().nullable()
|
|
27507
|
+
unavailableReason: string().nullable(),
|
|
27508
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
27509
|
+
baselineStateId: string().nullable(),
|
|
27510
|
+
/** Which boolean drives notification rules and any export. */
|
|
27511
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
27512
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
27513
|
+
verdict: SceneVerdictSchema,
|
|
27514
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
27515
|
+
latched: boolean(),
|
|
27516
|
+
/** Last reset (or creation). */
|
|
27517
|
+
armedAt: number(),
|
|
27518
|
+
divergedAt: number().nullable(),
|
|
27519
|
+
restoredAt: number().nullable(),
|
|
27520
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
27521
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
27522
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
27523
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
27524
|
+
/** An observation only advances the pending count when it is at least this
|
|
27525
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
27526
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
27527
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
27528
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
27529
|
+
confirm: SceneConfirmSchema.optional(),
|
|
27530
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
27531
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
27532
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
27533
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
27534
|
+
* automation can react to the bin coming back without the operator's own
|
|
27535
|
+
* alarm silently clearing itself. */
|
|
27536
|
+
autoRestore: boolean().default(false),
|
|
27537
|
+
/** What to do when the current light has no reference of its own. See
|
|
27538
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
27539
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
27540
|
+
/**
|
|
27541
|
+
* The light whose checks are currently being SAT OUT under
|
|
27542
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
27543
|
+
*
|
|
27544
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
27545
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
27546
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
27547
|
+
* line, because the alternative is a scene that silently stops answering
|
|
27548
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
27549
|
+
* read as a broken one.
|
|
27550
|
+
*/
|
|
27551
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
27552
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
27553
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
27554
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
27555
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
27556
|
+
coveredConditions: array(SceneConditionSchema)
|
|
26728
27557
|
});
|
|
26729
27558
|
var SceneMonitorStatusSchema = object({
|
|
26730
27559
|
monitors: array(SceneMonitorSchema),
|
|
@@ -26737,12 +27566,6 @@ var sceneMonitorCapability = {
|
|
|
26737
27566
|
kind: "wrapper",
|
|
26738
27567
|
defaultActive: true,
|
|
26739
27568
|
deviceTypes: [DeviceType.Camera],
|
|
26740
|
-
deviceConfig: { ui: {
|
|
26741
|
-
kind: "widget",
|
|
26742
|
-
widgetId: "host/scene-monitor-editor",
|
|
26743
|
-
tab: "scenes",
|
|
26744
|
-
label: "Scenes"
|
|
26745
|
-
} },
|
|
26746
27569
|
methods: {
|
|
26747
27570
|
listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
|
|
26748
27571
|
createScene: method(object({
|
|
@@ -26773,7 +27596,15 @@ var sceneMonitorCapability = {
|
|
|
26773
27596
|
"both"
|
|
26774
27597
|
]).optional(),
|
|
26775
27598
|
checkIntervalSec: number().optional(),
|
|
26776
|
-
check: SceneCheckSchema.optional()
|
|
27599
|
+
check: SceneCheckSchema.optional(),
|
|
27600
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
27601
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
27602
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
27603
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
27604
|
+
autoRestore: boolean().optional(),
|
|
27605
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
27606
|
+
/** `null` clears the vision-model adjudicator. */
|
|
27607
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26777
27608
|
})
|
|
26778
27609
|
}), _void(), {
|
|
26779
27610
|
kind: "mutation",
|
|
@@ -26814,6 +27645,26 @@ var sceneMonitorCapability = {
|
|
|
26814
27645
|
}), _void(), {
|
|
26815
27646
|
kind: "mutation",
|
|
26816
27647
|
auth: "admin"
|
|
27648
|
+
}),
|
|
27649
|
+
/**
|
|
27650
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
27651
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
27652
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
27653
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
27654
|
+
* instead of failing silently weeks later.
|
|
27655
|
+
*
|
|
27656
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
27657
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
27658
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
27659
|
+
*/
|
|
27660
|
+
resetScene: method(object({
|
|
27661
|
+
deviceId: number(),
|
|
27662
|
+
monitorId: string(),
|
|
27663
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
27664
|
+
recapture: boolean().optional()
|
|
27665
|
+
}), _void(), {
|
|
27666
|
+
kind: "mutation",
|
|
27667
|
+
auth: "admin"
|
|
26817
27668
|
})
|
|
26818
27669
|
},
|
|
26819
27670
|
status: {
|
|
@@ -27050,7 +27901,70 @@ var CamStreamDescriptorSchema = object({
|
|
|
27050
27901
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
27051
27902
|
metadata: record(string(), unknown()).optional()
|
|
27052
27903
|
});
|
|
27053
|
-
|
|
27904
|
+
/**
|
|
27905
|
+
* `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
|
|
27906
|
+
* of the removed `publishCameraStream` push: a camera provider returns the full
|
|
27907
|
+
* set of stream descriptors it can offer for the device, synchronously, so the
|
|
27908
|
+
* broker can reconcile its registry against the authoritative provider state.
|
|
27909
|
+
*/
|
|
27910
|
+
/**
|
|
27911
|
+
* The catalog as a DURABLE fact rather than a live answer.
|
|
27912
|
+
*
|
|
27913
|
+
* A battery camera's descriptors are profile-stable — they change when the
|
|
27914
|
+
* operator rewrites an encoder profile, not minute to minute — but building
|
|
27915
|
+
* them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
|
|
27916
|
+
* provider is allowed to build them exactly once per profile and must serve
|
|
27917
|
+
* every later pull from a cache.
|
|
27918
|
+
*
|
|
27919
|
+
* Holding that cache only in RAM is what turned a restart into an outage. The
|
|
27920
|
+
* runner comes back with the camera asleep, `buildStreamCatalogUncached`
|
|
27921
|
+
* correctly refuses to wake it, the pull answers `[]`, the broker has no
|
|
27922
|
+
* cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
|
|
27923
|
+
* fails with a flat "No broker for stream" — for as long as the camera sleeps,
|
|
27924
|
+
* which on a battery cam is most of the day. The camera was fine. The stream
|
|
27925
|
+
* was unreachable because the process had forgotten what the camera offers.
|
|
27926
|
+
*
|
|
27927
|
+
* Declaring it here puts it in `device-runtime-state`, the kernel's canonical
|
|
27928
|
+
* declared collection, with the same `restored` durability `battery` uses for
|
|
27929
|
+
* the same reason: the last known value is the only value there is while the
|
|
27930
|
+
* device is asleep. The broker's brokers are therefore always DEFINABLE — it
|
|
27931
|
+
* is the DIAL that wakes a camera, never the catalog (D173).
|
|
27932
|
+
*/
|
|
27933
|
+
var StreamCatalogStateSchema = object({
|
|
27934
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
27935
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
27936
|
+
* one the camera itself once produced. */
|
|
27937
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
27938
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
27939
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
27940
|
+
* re-read. */
|
|
27941
|
+
lastFetchedAt: number()
|
|
27942
|
+
});
|
|
27943
|
+
var streamCatalogCapability = {
|
|
27944
|
+
name: "stream-catalog",
|
|
27945
|
+
scope: "device",
|
|
27946
|
+
deviceNative: true,
|
|
27947
|
+
mode: "singleton",
|
|
27948
|
+
deviceTypes: [DeviceType.Camera],
|
|
27949
|
+
methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
|
|
27950
|
+
runtimeState: StreamCatalogStateSchema,
|
|
27951
|
+
/**
|
|
27952
|
+
* Runtime-state durability: **restored** — see the schema doc. A cold
|
|
27953
|
+
* catalog on a sleeping battery camera is not a slow first frame, it is a
|
|
27954
|
+
* camera that cannot be watched at all until it happens to wake.
|
|
27955
|
+
*
|
|
27956
|
+
* Churn is nil by construction: the slice is written only by a SUCCESSFUL
|
|
27957
|
+
* build, and a build only runs when there is no cached copy (or the copy is
|
|
27958
|
+
* a day old and the camera is awake anyway).
|
|
27959
|
+
*
|
|
27960
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27961
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27962
|
+
*/
|
|
27963
|
+
durability: "restored",
|
|
27964
|
+
/** Clock field: written, but excluded from the compare that decides whether
|
|
27965
|
+
* persisting is worth a SQLite commit — the descriptors are the value. */
|
|
27966
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27967
|
+
};
|
|
27054
27968
|
/** One of the camera's stream profiles. */
|
|
27055
27969
|
var StreamProfileSchema = _enum([
|
|
27056
27970
|
"main",
|
|
@@ -27304,12 +28218,64 @@ var NetworkAddressSchema = object({
|
|
|
27304
28218
|
family: string(),
|
|
27305
28219
|
internal: boolean()
|
|
27306
28220
|
});
|
|
28221
|
+
/**
|
|
28222
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
28223
|
+
* numbers.
|
|
28224
|
+
*
|
|
28225
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
28226
|
+
* nothing overwrites it.
|
|
28227
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
28228
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
28229
|
+
* the sun-times consumers otherwise fall back to.
|
|
28230
|
+
*
|
|
28231
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
28232
|
+
* own input will eventually trust the guess.
|
|
28233
|
+
*/
|
|
28234
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
28235
|
+
/**
|
|
28236
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
28237
|
+
*
|
|
28238
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
28239
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
28240
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
28241
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
28242
|
+
* coordinates or presses detect.
|
|
28243
|
+
*/
|
|
28244
|
+
var SiteLocationStatusSchema = object({
|
|
28245
|
+
location: object({
|
|
28246
|
+
/** WGS84 decimal degrees. */
|
|
28247
|
+
latitude: number().min(-90).max(90),
|
|
28248
|
+
longitude: number().min(-180).max(180),
|
|
28249
|
+
source: SiteLocationSourceSchema,
|
|
28250
|
+
/** Epoch ms the value was last written. */
|
|
28251
|
+
updatedAt: number(),
|
|
28252
|
+
/**
|
|
28253
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
28254
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
28255
|
+
*/
|
|
28256
|
+
label: string().optional()
|
|
28257
|
+
}).nullable(),
|
|
28258
|
+
derivationAttemptedAt: number().nullable(),
|
|
28259
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
28260
|
+
derivationError: string().nullable()
|
|
28261
|
+
});
|
|
28262
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
28263
|
+
var SetSiteLocationInputSchema = object({
|
|
28264
|
+
latitude: number().min(-90).max(90),
|
|
28265
|
+
longitude: number().min(-180).max(180)
|
|
28266
|
+
}).nullable();
|
|
27307
28267
|
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(), {
|
|
27308
28268
|
kind: "mutation",
|
|
27309
28269
|
auth: "admin"
|
|
27310
28270
|
}), method(_void(), _void(), {
|
|
27311
28271
|
kind: "mutation",
|
|
27312
28272
|
auth: "admin"
|
|
28273
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
28274
|
+
kind: "mutation",
|
|
28275
|
+
auth: "admin"
|
|
28276
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
28277
|
+
kind: "mutation",
|
|
28278
|
+
auth: "admin"
|
|
27313
28279
|
});
|
|
27314
28280
|
/**
|
|
27315
28281
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -28629,6 +29595,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28629
29595
|
humiditySensor: humiditySensorCapability,
|
|
28630
29596
|
image: imageCapability,
|
|
28631
29597
|
imageSettings: imageSettingsCapability,
|
|
29598
|
+
intercom: intercomCapability,
|
|
28632
29599
|
lawnMowerControl: lawnMowerControlCapability,
|
|
28633
29600
|
lockControl: lockControlCapability,
|
|
28634
29601
|
mediaPlayer: mediaPlayerCapability,
|
|
@@ -28647,6 +29614,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
28647
29614
|
sceneMonitor: sceneMonitorCapability,
|
|
28648
29615
|
scriptRunner: scriptRunnerCapability,
|
|
28649
29616
|
smoke: smokeCapability,
|
|
29617
|
+
streamCatalog: streamCatalogCapability,
|
|
28650
29618
|
streamParams: streamParamsCapability,
|
|
28651
29619
|
switch: switchCapability,
|
|
28652
29620
|
tamper: tamperCapability,
|
|
@@ -29300,6 +30268,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29300
30268
|
labels: ["probe not implemented"]
|
|
29301
30269
|
};
|
|
29302
30270
|
}
|
|
30271
|
+
/**
|
|
30272
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
30273
|
+
*
|
|
30274
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
30275
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
30276
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
30277
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
30278
|
+
*/
|
|
30279
|
+
restoreConcurrency = 4;
|
|
29303
30280
|
async restoreDevices(savedDevices) {
|
|
29304
30281
|
await this.onRestoreDevices(savedDevices);
|
|
29305
30282
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -29331,15 +30308,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29331
30308
|
*/
|
|
29332
30309
|
async onRestoreDevices(savedDevices) {
|
|
29333
30310
|
const restored = /* @__PURE__ */ new Set();
|
|
29334
|
-
|
|
29335
|
-
|
|
30311
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
30312
|
+
const restoreOne = async (saved) => {
|
|
29336
30313
|
const Class = this.deviceClasses[saved.type];
|
|
29337
30314
|
if (!Class) {
|
|
29338
30315
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
29339
30316
|
tags: { stableId: saved.stableId },
|
|
29340
30317
|
meta: { type: saved.type }
|
|
29341
30318
|
});
|
|
29342
|
-
|
|
30319
|
+
return;
|
|
29343
30320
|
}
|
|
29344
30321
|
try {
|
|
29345
30322
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -29353,7 +30330,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
29353
30330
|
}
|
|
29354
30331
|
});
|
|
29355
30332
|
}
|
|
29356
|
-
}
|
|
30333
|
+
};
|
|
30334
|
+
let nextTopLevel = 0;
|
|
30335
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
30336
|
+
for (;;) {
|
|
30337
|
+
const saved = topLevel[nextTopLevel++];
|
|
30338
|
+
if (saved === void 0) return;
|
|
30339
|
+
await restoreOne(saved);
|
|
30340
|
+
}
|
|
30341
|
+
}));
|
|
29357
30342
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
29358
30343
|
for (const saved of childRows) {
|
|
29359
30344
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -31444,6 +32429,12 @@ Object.freeze({
|
|
|
31444
32429
|
addonId: null,
|
|
31445
32430
|
access: "create"
|
|
31446
32431
|
},
|
|
32432
|
+
"llm.cancel": {
|
|
32433
|
+
capName: "llm",
|
|
32434
|
+
capScope: "system",
|
|
32435
|
+
addonId: null,
|
|
32436
|
+
access: "create"
|
|
32437
|
+
},
|
|
31447
32438
|
"llm.deleteModel": {
|
|
31448
32439
|
capName: "llm",
|
|
31449
32440
|
capScope: "system",
|
|
@@ -31528,6 +32519,12 @@ Object.freeze({
|
|
|
31528
32519
|
addonId: null,
|
|
31529
32520
|
access: "view"
|
|
31530
32521
|
},
|
|
32522
|
+
"llm.resolveModelRef": {
|
|
32523
|
+
capName: "llm",
|
|
32524
|
+
capScope: "system",
|
|
32525
|
+
addonId: null,
|
|
32526
|
+
access: "create"
|
|
32527
|
+
},
|
|
31531
32528
|
"llm.setDefault": {
|
|
31532
32529
|
capName: "llm",
|
|
31533
32530
|
capScope: "system",
|
|
@@ -33694,6 +34691,12 @@ Object.freeze({
|
|
|
33694
34691
|
addonId: null,
|
|
33695
34692
|
access: "create"
|
|
33696
34693
|
},
|
|
34694
|
+
"sceneMonitor.resetScene": {
|
|
34695
|
+
capName: "scene-monitor",
|
|
34696
|
+
capScope: "device",
|
|
34697
|
+
addonId: null,
|
|
34698
|
+
access: "delete"
|
|
34699
|
+
},
|
|
33697
34700
|
"sceneMonitor.updateScene": {
|
|
33698
34701
|
capName: "scene-monitor",
|
|
33699
34702
|
capScope: "device",
|
|
@@ -34372,6 +35375,12 @@ Object.freeze({
|
|
|
34372
35375
|
addonId: null,
|
|
34373
35376
|
access: "create"
|
|
34374
35377
|
},
|
|
35378
|
+
"system.detectSiteLocation": {
|
|
35379
|
+
capName: "system",
|
|
35380
|
+
capScope: "system",
|
|
35381
|
+
addonId: null,
|
|
35382
|
+
access: "create"
|
|
35383
|
+
},
|
|
34375
35384
|
"system.featureFlags": {
|
|
34376
35385
|
capName: "system",
|
|
34377
35386
|
capScope: "system",
|
|
@@ -34390,6 +35399,12 @@ Object.freeze({
|
|
|
34390
35399
|
addonId: null,
|
|
34391
35400
|
access: "view"
|
|
34392
35401
|
},
|
|
35402
|
+
"system.getSiteLocation": {
|
|
35403
|
+
capName: "system",
|
|
35404
|
+
capScope: "system",
|
|
35405
|
+
addonId: null,
|
|
35406
|
+
access: "view"
|
|
35407
|
+
},
|
|
34393
35408
|
"system.health": {
|
|
34394
35409
|
capName: "system",
|
|
34395
35410
|
capScope: "system",
|
|
@@ -34414,6 +35429,12 @@ Object.freeze({
|
|
|
34414
35429
|
addonId: null,
|
|
34415
35430
|
access: "create"
|
|
34416
35431
|
},
|
|
35432
|
+
"system.setSiteLocation": {
|
|
35433
|
+
capName: "system",
|
|
35434
|
+
capScope: "system",
|
|
35435
|
+
addonId: null,
|
|
35436
|
+
access: "create"
|
|
35437
|
+
},
|
|
34417
35438
|
"terminalSession.adoptLegacyMonitor": {
|
|
34418
35439
|
capName: "terminal-session",
|
|
34419
35440
|
capScope: "system",
|
|
@@ -34985,6 +36006,1704 @@ Object.freeze({
|
|
|
34985
36006
|
access: "create"
|
|
34986
36007
|
}
|
|
34987
36008
|
});
|
|
36009
|
+
Object.freeze({
|
|
36010
|
+
"accessories.setChildHidden": [{
|
|
36011
|
+
name: "childDeviceId",
|
|
36012
|
+
form: "single",
|
|
36013
|
+
optional: false
|
|
36014
|
+
}, {
|
|
36015
|
+
name: "deviceId",
|
|
36016
|
+
form: "single",
|
|
36017
|
+
optional: false
|
|
36018
|
+
}],
|
|
36019
|
+
"addonSettings.getDeviceSettings": [{
|
|
36020
|
+
name: "deviceId",
|
|
36021
|
+
form: "single",
|
|
36022
|
+
optional: false
|
|
36023
|
+
}],
|
|
36024
|
+
"addonSettings.updateDeviceSettings": [{
|
|
36025
|
+
name: "deviceId",
|
|
36026
|
+
form: "single",
|
|
36027
|
+
optional: false
|
|
36028
|
+
}],
|
|
36029
|
+
"alarmPanel.arm": [{
|
|
36030
|
+
name: "deviceId",
|
|
36031
|
+
form: "single",
|
|
36032
|
+
optional: false
|
|
36033
|
+
}],
|
|
36034
|
+
"alarmPanel.disarm": [{
|
|
36035
|
+
name: "deviceId",
|
|
36036
|
+
form: "single",
|
|
36037
|
+
optional: false
|
|
36038
|
+
}],
|
|
36039
|
+
"alarmPanel.trigger": [{
|
|
36040
|
+
name: "deviceId",
|
|
36041
|
+
form: "single",
|
|
36042
|
+
optional: false
|
|
36043
|
+
}],
|
|
36044
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
36045
|
+
name: "deviceId",
|
|
36046
|
+
form: "single",
|
|
36047
|
+
optional: false
|
|
36048
|
+
}],
|
|
36049
|
+
"audioAnalyzer.classify": [{
|
|
36050
|
+
name: "deviceId",
|
|
36051
|
+
form: "single",
|
|
36052
|
+
optional: true
|
|
36053
|
+
}],
|
|
36054
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
36055
|
+
name: "deviceId",
|
|
36056
|
+
form: "single",
|
|
36057
|
+
optional: false
|
|
36058
|
+
}],
|
|
36059
|
+
"audioMetrics.getHistory": [{
|
|
36060
|
+
name: "deviceId",
|
|
36061
|
+
form: "single",
|
|
36062
|
+
optional: false
|
|
36063
|
+
}],
|
|
36064
|
+
"automationControl.disable": [{
|
|
36065
|
+
name: "deviceId",
|
|
36066
|
+
form: "single",
|
|
36067
|
+
optional: false
|
|
36068
|
+
}],
|
|
36069
|
+
"automationControl.enable": [{
|
|
36070
|
+
name: "deviceId",
|
|
36071
|
+
form: "single",
|
|
36072
|
+
optional: false
|
|
36073
|
+
}],
|
|
36074
|
+
"automationControl.trigger": [{
|
|
36075
|
+
name: "deviceId",
|
|
36076
|
+
form: "single",
|
|
36077
|
+
optional: false
|
|
36078
|
+
}],
|
|
36079
|
+
"battery.wakeForStream": [{
|
|
36080
|
+
name: "deviceId",
|
|
36081
|
+
form: "single",
|
|
36082
|
+
optional: false
|
|
36083
|
+
}],
|
|
36084
|
+
"brightness.setBrightness": [{
|
|
36085
|
+
name: "deviceId",
|
|
36086
|
+
form: "single",
|
|
36087
|
+
optional: false
|
|
36088
|
+
}],
|
|
36089
|
+
"button.press": [{
|
|
36090
|
+
name: "deviceId",
|
|
36091
|
+
form: "single",
|
|
36092
|
+
optional: false
|
|
36093
|
+
}],
|
|
36094
|
+
"cameraCredentials.getCredentials": [{
|
|
36095
|
+
name: "deviceId",
|
|
36096
|
+
form: "single",
|
|
36097
|
+
optional: false
|
|
36098
|
+
}],
|
|
36099
|
+
"cameraStreams.getBrokerStreams": [{
|
|
36100
|
+
name: "deviceId",
|
|
36101
|
+
form: "single",
|
|
36102
|
+
optional: false
|
|
36103
|
+
}],
|
|
36104
|
+
"cameraStreams.getCameraStreams": [{
|
|
36105
|
+
name: "deviceId",
|
|
36106
|
+
form: "single",
|
|
36107
|
+
optional: false
|
|
36108
|
+
}],
|
|
36109
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
36110
|
+
name: "deviceId",
|
|
36111
|
+
form: "single",
|
|
36112
|
+
optional: false
|
|
36113
|
+
}],
|
|
36114
|
+
"cameraStreams.getRtspEntries": [{
|
|
36115
|
+
name: "deviceId",
|
|
36116
|
+
form: "single",
|
|
36117
|
+
optional: false
|
|
36118
|
+
}],
|
|
36119
|
+
"cameraStreams.pickStream": [{
|
|
36120
|
+
name: "deviceId",
|
|
36121
|
+
form: "single",
|
|
36122
|
+
optional: false
|
|
36123
|
+
}],
|
|
36124
|
+
"climateControl.setFanMode": [{
|
|
36125
|
+
name: "deviceId",
|
|
36126
|
+
form: "single",
|
|
36127
|
+
optional: false
|
|
36128
|
+
}],
|
|
36129
|
+
"climateControl.setMode": [{
|
|
36130
|
+
name: "deviceId",
|
|
36131
|
+
form: "single",
|
|
36132
|
+
optional: false
|
|
36133
|
+
}],
|
|
36134
|
+
"climateControl.setPreset": [{
|
|
36135
|
+
name: "deviceId",
|
|
36136
|
+
form: "single",
|
|
36137
|
+
optional: false
|
|
36138
|
+
}],
|
|
36139
|
+
"climateControl.setSwingHorizontal": [{
|
|
36140
|
+
name: "deviceId",
|
|
36141
|
+
form: "single",
|
|
36142
|
+
optional: false
|
|
36143
|
+
}],
|
|
36144
|
+
"climateControl.setSwingVertical": [{
|
|
36145
|
+
name: "deviceId",
|
|
36146
|
+
form: "single",
|
|
36147
|
+
optional: false
|
|
36148
|
+
}],
|
|
36149
|
+
"climateControl.setTarget": [{
|
|
36150
|
+
name: "deviceId",
|
|
36151
|
+
form: "single",
|
|
36152
|
+
optional: false
|
|
36153
|
+
}],
|
|
36154
|
+
"climateControl.setTargetHumidity": [{
|
|
36155
|
+
name: "deviceId",
|
|
36156
|
+
form: "single",
|
|
36157
|
+
optional: false
|
|
36158
|
+
}],
|
|
36159
|
+
"climateControl.setTargetRange": [{
|
|
36160
|
+
name: "deviceId",
|
|
36161
|
+
form: "single",
|
|
36162
|
+
optional: false
|
|
36163
|
+
}],
|
|
36164
|
+
"color.setColor": [{
|
|
36165
|
+
name: "deviceId",
|
|
36166
|
+
form: "single",
|
|
36167
|
+
optional: false
|
|
36168
|
+
}],
|
|
36169
|
+
"consumables.reset": [{
|
|
36170
|
+
name: "deviceId",
|
|
36171
|
+
form: "single",
|
|
36172
|
+
optional: false
|
|
36173
|
+
}],
|
|
36174
|
+
"control.setValue": [{
|
|
36175
|
+
name: "deviceId",
|
|
36176
|
+
form: "single",
|
|
36177
|
+
optional: false
|
|
36178
|
+
}],
|
|
36179
|
+
"cover.close": [{
|
|
36180
|
+
name: "deviceId",
|
|
36181
|
+
form: "single",
|
|
36182
|
+
optional: false
|
|
36183
|
+
}],
|
|
36184
|
+
"cover.open": [{
|
|
36185
|
+
name: "deviceId",
|
|
36186
|
+
form: "single",
|
|
36187
|
+
optional: false
|
|
36188
|
+
}],
|
|
36189
|
+
"cover.setPosition": [{
|
|
36190
|
+
name: "deviceId",
|
|
36191
|
+
form: "single",
|
|
36192
|
+
optional: false
|
|
36193
|
+
}],
|
|
36194
|
+
"cover.setTiltPosition": [{
|
|
36195
|
+
name: "deviceId",
|
|
36196
|
+
form: "single",
|
|
36197
|
+
optional: false
|
|
36198
|
+
}],
|
|
36199
|
+
"cover.stop": [{
|
|
36200
|
+
name: "deviceId",
|
|
36201
|
+
form: "single",
|
|
36202
|
+
optional: false
|
|
36203
|
+
}],
|
|
36204
|
+
"dayNight.getOptions": [{
|
|
36205
|
+
name: "deviceId",
|
|
36206
|
+
form: "single",
|
|
36207
|
+
optional: false
|
|
36208
|
+
}],
|
|
36209
|
+
"dayNight.setSettings": [{
|
|
36210
|
+
name: "deviceId",
|
|
36211
|
+
form: "single",
|
|
36212
|
+
optional: false
|
|
36213
|
+
}],
|
|
36214
|
+
"decoder.createSession": [{
|
|
36215
|
+
name: "deviceId",
|
|
36216
|
+
form: "single",
|
|
36217
|
+
optional: true
|
|
36218
|
+
}],
|
|
36219
|
+
"deviceAdoption.release": [{
|
|
36220
|
+
name: "camDeviceId",
|
|
36221
|
+
form: "single",
|
|
36222
|
+
optional: false
|
|
36223
|
+
}],
|
|
36224
|
+
"deviceAdoption.resync": [{
|
|
36225
|
+
name: "camDeviceId",
|
|
36226
|
+
form: "single",
|
|
36227
|
+
optional: false
|
|
36228
|
+
}],
|
|
36229
|
+
"deviceDiscovery.adoptDevice": [{
|
|
36230
|
+
name: "deviceId",
|
|
36231
|
+
form: "single",
|
|
36232
|
+
optional: false
|
|
36233
|
+
}],
|
|
36234
|
+
"deviceDiscovery.listDiscovered": [{
|
|
36235
|
+
name: "deviceId",
|
|
36236
|
+
form: "single",
|
|
36237
|
+
optional: false
|
|
36238
|
+
}],
|
|
36239
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
36240
|
+
name: "deviceId",
|
|
36241
|
+
form: "single",
|
|
36242
|
+
optional: false
|
|
36243
|
+
}],
|
|
36244
|
+
"deviceDiscovery.releaseDevice": [{
|
|
36245
|
+
name: "childDeviceId",
|
|
36246
|
+
form: "single",
|
|
36247
|
+
optional: false
|
|
36248
|
+
}, {
|
|
36249
|
+
name: "deviceId",
|
|
36250
|
+
form: "single",
|
|
36251
|
+
optional: false
|
|
36252
|
+
}],
|
|
36253
|
+
"deviceManager.adoptionRelease": [{
|
|
36254
|
+
name: "camDeviceId",
|
|
36255
|
+
form: "single",
|
|
36256
|
+
optional: false
|
|
36257
|
+
}],
|
|
36258
|
+
"deviceManager.adoptionResync": [{
|
|
36259
|
+
name: "camDeviceId",
|
|
36260
|
+
form: "single",
|
|
36261
|
+
optional: false
|
|
36262
|
+
}],
|
|
36263
|
+
"deviceManager.applyInitialMeta": [{
|
|
36264
|
+
name: "deviceId",
|
|
36265
|
+
form: "single",
|
|
36266
|
+
optional: false
|
|
36267
|
+
}, {
|
|
36268
|
+
name: "linkDeviceId",
|
|
36269
|
+
form: "single",
|
|
36270
|
+
optional: true
|
|
36271
|
+
}],
|
|
36272
|
+
"deviceManager.disable": [{
|
|
36273
|
+
name: "deviceId",
|
|
36274
|
+
form: "single",
|
|
36275
|
+
optional: false
|
|
36276
|
+
}],
|
|
36277
|
+
"deviceManager.enable": [{
|
|
36278
|
+
name: "deviceId",
|
|
36279
|
+
form: "single",
|
|
36280
|
+
optional: false
|
|
36281
|
+
}],
|
|
36282
|
+
"deviceManager.getBindings": [{
|
|
36283
|
+
name: "deviceId",
|
|
36284
|
+
form: "single",
|
|
36285
|
+
optional: false
|
|
36286
|
+
}],
|
|
36287
|
+
"deviceManager.getChildren": [{
|
|
36288
|
+
name: "parentDeviceId",
|
|
36289
|
+
form: "single",
|
|
36290
|
+
optional: false
|
|
36291
|
+
}],
|
|
36292
|
+
"deviceManager.getConfigSchema": [{
|
|
36293
|
+
name: "deviceId",
|
|
36294
|
+
form: "single",
|
|
36295
|
+
optional: false
|
|
36296
|
+
}],
|
|
36297
|
+
"deviceManager.getDevice": [{
|
|
36298
|
+
name: "deviceId",
|
|
36299
|
+
form: "single",
|
|
36300
|
+
optional: false
|
|
36301
|
+
}],
|
|
36302
|
+
"deviceManager.getDeviceAggregate": [{
|
|
36303
|
+
name: "deviceId",
|
|
36304
|
+
form: "single",
|
|
36305
|
+
optional: false
|
|
36306
|
+
}],
|
|
36307
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
36308
|
+
name: "deviceId",
|
|
36309
|
+
form: "single",
|
|
36310
|
+
optional: false
|
|
36311
|
+
}],
|
|
36312
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
36313
|
+
name: "deviceId",
|
|
36314
|
+
form: "single",
|
|
36315
|
+
optional: false
|
|
36316
|
+
}],
|
|
36317
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
36318
|
+
name: "deviceId",
|
|
36319
|
+
form: "single",
|
|
36320
|
+
optional: false
|
|
36321
|
+
}],
|
|
36322
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
36323
|
+
name: "deviceIds",
|
|
36324
|
+
form: "array",
|
|
36325
|
+
optional: false
|
|
36326
|
+
}],
|
|
36327
|
+
"deviceManager.getLinkedDevices": [{
|
|
36328
|
+
name: "deviceId",
|
|
36329
|
+
form: "single",
|
|
36330
|
+
optional: false
|
|
36331
|
+
}],
|
|
36332
|
+
"deviceManager.getSettingsSchema": [{
|
|
36333
|
+
name: "deviceId",
|
|
36334
|
+
form: "single",
|
|
36335
|
+
optional: false
|
|
36336
|
+
}],
|
|
36337
|
+
"deviceManager.getStreamProfileMap": [{
|
|
36338
|
+
name: "deviceId",
|
|
36339
|
+
form: "single",
|
|
36340
|
+
optional: false
|
|
36341
|
+
}],
|
|
36342
|
+
"deviceManager.getStreamSources": [{
|
|
36343
|
+
name: "deviceId",
|
|
36344
|
+
form: "single",
|
|
36345
|
+
optional: false
|
|
36346
|
+
}],
|
|
36347
|
+
"deviceManager.getWireableFields": [{
|
|
36348
|
+
name: "deviceId",
|
|
36349
|
+
form: "single",
|
|
36350
|
+
optional: false
|
|
36351
|
+
}],
|
|
36352
|
+
"deviceManager.loadConfig": [{
|
|
36353
|
+
name: "deviceId",
|
|
36354
|
+
form: "single",
|
|
36355
|
+
optional: false
|
|
36356
|
+
}],
|
|
36357
|
+
"deviceManager.loadMeta": [{
|
|
36358
|
+
name: "deviceId",
|
|
36359
|
+
form: "single",
|
|
36360
|
+
optional: false
|
|
36361
|
+
}],
|
|
36362
|
+
"deviceManager.loadRuntimeState": [{
|
|
36363
|
+
name: "deviceId",
|
|
36364
|
+
form: "single",
|
|
36365
|
+
optional: false
|
|
36366
|
+
}],
|
|
36367
|
+
"deviceManager.persistConfig": [{
|
|
36368
|
+
name: "deviceId",
|
|
36369
|
+
form: "single",
|
|
36370
|
+
optional: false
|
|
36371
|
+
}],
|
|
36372
|
+
"deviceManager.probeStreams": [{
|
|
36373
|
+
name: "deviceId",
|
|
36374
|
+
form: "single",
|
|
36375
|
+
optional: false
|
|
36376
|
+
}],
|
|
36377
|
+
"deviceManager.registerDevice": [{
|
|
36378
|
+
name: "parentDeviceId",
|
|
36379
|
+
form: "single",
|
|
36380
|
+
optional: true
|
|
36381
|
+
}],
|
|
36382
|
+
"deviceManager.remove": [{
|
|
36383
|
+
name: "deviceId",
|
|
36384
|
+
form: "single",
|
|
36385
|
+
optional: false
|
|
36386
|
+
}],
|
|
36387
|
+
"deviceManager.removeDevice": [{
|
|
36388
|
+
name: "deviceId",
|
|
36389
|
+
form: "single",
|
|
36390
|
+
optional: false
|
|
36391
|
+
}],
|
|
36392
|
+
"deviceManager.runDeviceAction": [{
|
|
36393
|
+
name: "deviceId",
|
|
36394
|
+
form: "single",
|
|
36395
|
+
optional: false
|
|
36396
|
+
}],
|
|
36397
|
+
"deviceManager.setChildLayout": [{
|
|
36398
|
+
name: "deviceId",
|
|
36399
|
+
form: "single",
|
|
36400
|
+
optional: false
|
|
36401
|
+
}],
|
|
36402
|
+
"deviceManager.setDisabled": [{
|
|
36403
|
+
name: "deviceId",
|
|
36404
|
+
form: "single",
|
|
36405
|
+
optional: false
|
|
36406
|
+
}],
|
|
36407
|
+
"deviceManager.setDisplay": [{
|
|
36408
|
+
name: "deviceId",
|
|
36409
|
+
form: "single",
|
|
36410
|
+
optional: false
|
|
36411
|
+
}],
|
|
36412
|
+
"deviceManager.setIntegrationId": [{
|
|
36413
|
+
name: "deviceId",
|
|
36414
|
+
form: "single",
|
|
36415
|
+
optional: false
|
|
36416
|
+
}],
|
|
36417
|
+
"deviceManager.setLinkDeviceId": [{
|
|
36418
|
+
name: "deviceId",
|
|
36419
|
+
form: "single",
|
|
36420
|
+
optional: false
|
|
36421
|
+
}, {
|
|
36422
|
+
name: "linkDeviceId",
|
|
36423
|
+
form: "single",
|
|
36424
|
+
optional: true
|
|
36425
|
+
}],
|
|
36426
|
+
"deviceManager.setLocation": [{
|
|
36427
|
+
name: "deviceId",
|
|
36428
|
+
form: "single",
|
|
36429
|
+
optional: false
|
|
36430
|
+
}],
|
|
36431
|
+
"deviceManager.setMetadata": [{
|
|
36432
|
+
name: "deviceId",
|
|
36433
|
+
form: "single",
|
|
36434
|
+
optional: false
|
|
36435
|
+
}],
|
|
36436
|
+
"deviceManager.setName": [{
|
|
36437
|
+
name: "deviceId",
|
|
36438
|
+
form: "single",
|
|
36439
|
+
optional: false
|
|
36440
|
+
}],
|
|
36441
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
36442
|
+
name: "deviceId",
|
|
36443
|
+
form: "single",
|
|
36444
|
+
optional: false
|
|
36445
|
+
}],
|
|
36446
|
+
"deviceManager.setRole": [{
|
|
36447
|
+
name: "deviceId",
|
|
36448
|
+
form: "single",
|
|
36449
|
+
optional: false
|
|
36450
|
+
}],
|
|
36451
|
+
"deviceManager.setStreamProfileMap": [{
|
|
36452
|
+
name: "deviceId",
|
|
36453
|
+
form: "single",
|
|
36454
|
+
optional: false
|
|
36455
|
+
}],
|
|
36456
|
+
"deviceManager.setType": [{
|
|
36457
|
+
name: "deviceId",
|
|
36458
|
+
form: "single",
|
|
36459
|
+
optional: false
|
|
36460
|
+
}],
|
|
36461
|
+
"deviceManager.setWrapperActive": [{
|
|
36462
|
+
name: "deviceId",
|
|
36463
|
+
form: "single",
|
|
36464
|
+
optional: false
|
|
36465
|
+
}],
|
|
36466
|
+
"deviceManager.testField": [{
|
|
36467
|
+
name: "deviceId",
|
|
36468
|
+
form: "single",
|
|
36469
|
+
optional: false
|
|
36470
|
+
}],
|
|
36471
|
+
"deviceManager.updateConfig": [{
|
|
36472
|
+
name: "deviceId",
|
|
36473
|
+
form: "single",
|
|
36474
|
+
optional: false
|
|
36475
|
+
}],
|
|
36476
|
+
"deviceManager.updateDeviceField": [{
|
|
36477
|
+
name: "deviceId",
|
|
36478
|
+
form: "single",
|
|
36479
|
+
optional: false
|
|
36480
|
+
}],
|
|
36481
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
36482
|
+
name: "deviceId",
|
|
36483
|
+
form: "single",
|
|
36484
|
+
optional: false
|
|
36485
|
+
}],
|
|
36486
|
+
"deviceOps.getConfigEntries": [{
|
|
36487
|
+
name: "deviceId",
|
|
36488
|
+
form: "single",
|
|
36489
|
+
optional: false
|
|
36490
|
+
}],
|
|
36491
|
+
"deviceOps.getRawState": [{
|
|
36492
|
+
name: "deviceId",
|
|
36493
|
+
form: "single",
|
|
36494
|
+
optional: false
|
|
36495
|
+
}],
|
|
36496
|
+
"deviceOps.getSettingsSchema": [{
|
|
36497
|
+
name: "deviceId",
|
|
36498
|
+
form: "single",
|
|
36499
|
+
optional: false
|
|
36500
|
+
}],
|
|
36501
|
+
"deviceOps.getStreamSources": [{
|
|
36502
|
+
name: "deviceId",
|
|
36503
|
+
form: "single",
|
|
36504
|
+
optional: false
|
|
36505
|
+
}],
|
|
36506
|
+
"deviceOps.removeDevice": [{
|
|
36507
|
+
name: "deviceId",
|
|
36508
|
+
form: "single",
|
|
36509
|
+
optional: false
|
|
36510
|
+
}],
|
|
36511
|
+
"deviceOps.runAction": [{
|
|
36512
|
+
name: "deviceId",
|
|
36513
|
+
form: "single",
|
|
36514
|
+
optional: false
|
|
36515
|
+
}],
|
|
36516
|
+
"deviceOps.setConfig": [{
|
|
36517
|
+
name: "deviceId",
|
|
36518
|
+
form: "single",
|
|
36519
|
+
optional: false
|
|
36520
|
+
}],
|
|
36521
|
+
"deviceState.getCapSlice": [{
|
|
36522
|
+
name: "deviceId",
|
|
36523
|
+
form: "single",
|
|
36524
|
+
optional: false
|
|
36525
|
+
}],
|
|
36526
|
+
"deviceState.getSnapshot": [{
|
|
36527
|
+
name: "deviceId",
|
|
36528
|
+
form: "single",
|
|
36529
|
+
optional: false
|
|
36530
|
+
}],
|
|
36531
|
+
"deviceState.setCapSlice": [{
|
|
36532
|
+
name: "deviceId",
|
|
36533
|
+
form: "single",
|
|
36534
|
+
optional: false
|
|
36535
|
+
}],
|
|
36536
|
+
"events.getEventClipUrl": [{
|
|
36537
|
+
name: "deviceId",
|
|
36538
|
+
form: "single",
|
|
36539
|
+
optional: false
|
|
36540
|
+
}],
|
|
36541
|
+
"events.getEvents": [{
|
|
36542
|
+
name: "deviceId",
|
|
36543
|
+
form: "single",
|
|
36544
|
+
optional: false
|
|
36545
|
+
}],
|
|
36546
|
+
"events.getEventThumbnail": [{
|
|
36547
|
+
name: "deviceId",
|
|
36548
|
+
form: "single",
|
|
36549
|
+
optional: false
|
|
36550
|
+
}],
|
|
36551
|
+
"faceGallery.getFaceByTrack": [{
|
|
36552
|
+
name: "deviceId",
|
|
36553
|
+
form: "single",
|
|
36554
|
+
optional: false
|
|
36555
|
+
}],
|
|
36556
|
+
"faceGallery.listRecentFaces": [{
|
|
36557
|
+
name: "deviceId",
|
|
36558
|
+
form: "single",
|
|
36559
|
+
optional: true
|
|
36560
|
+
}],
|
|
36561
|
+
"fanControl.setDirection": [{
|
|
36562
|
+
name: "deviceId",
|
|
36563
|
+
form: "single",
|
|
36564
|
+
optional: false
|
|
36565
|
+
}],
|
|
36566
|
+
"fanControl.setOscillating": [{
|
|
36567
|
+
name: "deviceId",
|
|
36568
|
+
form: "single",
|
|
36569
|
+
optional: false
|
|
36570
|
+
}],
|
|
36571
|
+
"fanControl.setPercentage": [{
|
|
36572
|
+
name: "deviceId",
|
|
36573
|
+
form: "single",
|
|
36574
|
+
optional: false
|
|
36575
|
+
}],
|
|
36576
|
+
"fanControl.setPreset": [{
|
|
36577
|
+
name: "deviceId",
|
|
36578
|
+
form: "single",
|
|
36579
|
+
optional: false
|
|
36580
|
+
}],
|
|
36581
|
+
"humidifier.setMode": [{
|
|
36582
|
+
name: "deviceId",
|
|
36583
|
+
form: "single",
|
|
36584
|
+
optional: false
|
|
36585
|
+
}],
|
|
36586
|
+
"humidifier.setOn": [{
|
|
36587
|
+
name: "deviceId",
|
|
36588
|
+
form: "single",
|
|
36589
|
+
optional: false
|
|
36590
|
+
}],
|
|
36591
|
+
"humidifier.setTargetHumidity": [{
|
|
36592
|
+
name: "deviceId",
|
|
36593
|
+
form: "single",
|
|
36594
|
+
optional: false
|
|
36595
|
+
}],
|
|
36596
|
+
"imageSettings.getOptions": [{
|
|
36597
|
+
name: "deviceId",
|
|
36598
|
+
form: "single",
|
|
36599
|
+
optional: false
|
|
36600
|
+
}],
|
|
36601
|
+
"imageSettings.setSettings": [{
|
|
36602
|
+
name: "deviceId",
|
|
36603
|
+
form: "single",
|
|
36604
|
+
optional: false
|
|
36605
|
+
}],
|
|
36606
|
+
"intercom.endTalkSession": [{
|
|
36607
|
+
name: "deviceId",
|
|
36608
|
+
form: "single",
|
|
36609
|
+
optional: false
|
|
36610
|
+
}],
|
|
36611
|
+
"intercom.handleAnswer": [{
|
|
36612
|
+
name: "deviceId",
|
|
36613
|
+
form: "single",
|
|
36614
|
+
optional: false
|
|
36615
|
+
}],
|
|
36616
|
+
"intercom.pushTalkAudio": [{
|
|
36617
|
+
name: "deviceId",
|
|
36618
|
+
form: "single",
|
|
36619
|
+
optional: false
|
|
36620
|
+
}],
|
|
36621
|
+
"intercom.startSession": [{
|
|
36622
|
+
name: "deviceId",
|
|
36623
|
+
form: "single",
|
|
36624
|
+
optional: false
|
|
36625
|
+
}],
|
|
36626
|
+
"intercom.startTalkSession": [{
|
|
36627
|
+
name: "deviceId",
|
|
36628
|
+
form: "single",
|
|
36629
|
+
optional: false
|
|
36630
|
+
}],
|
|
36631
|
+
"intercom.stopSession": [{
|
|
36632
|
+
name: "deviceId",
|
|
36633
|
+
form: "single",
|
|
36634
|
+
optional: false
|
|
36635
|
+
}],
|
|
36636
|
+
"lawnMowerControl.dock": [{
|
|
36637
|
+
name: "deviceId",
|
|
36638
|
+
form: "single",
|
|
36639
|
+
optional: false
|
|
36640
|
+
}],
|
|
36641
|
+
"lawnMowerControl.pause": [{
|
|
36642
|
+
name: "deviceId",
|
|
36643
|
+
form: "single",
|
|
36644
|
+
optional: false
|
|
36645
|
+
}],
|
|
36646
|
+
"lawnMowerControl.startMowing": [{
|
|
36647
|
+
name: "deviceId",
|
|
36648
|
+
form: "single",
|
|
36649
|
+
optional: false
|
|
36650
|
+
}],
|
|
36651
|
+
"lockControl.lock": [{
|
|
36652
|
+
name: "deviceId",
|
|
36653
|
+
form: "single",
|
|
36654
|
+
optional: false
|
|
36655
|
+
}],
|
|
36656
|
+
"lockControl.open": [{
|
|
36657
|
+
name: "deviceId",
|
|
36658
|
+
form: "single",
|
|
36659
|
+
optional: false
|
|
36660
|
+
}],
|
|
36661
|
+
"lockControl.unlock": [{
|
|
36662
|
+
name: "deviceId",
|
|
36663
|
+
form: "single",
|
|
36664
|
+
optional: false
|
|
36665
|
+
}],
|
|
36666
|
+
"mediaPlayer.next": [{
|
|
36667
|
+
name: "deviceId",
|
|
36668
|
+
form: "single",
|
|
36669
|
+
optional: false
|
|
36670
|
+
}],
|
|
36671
|
+
"mediaPlayer.pause": [{
|
|
36672
|
+
name: "deviceId",
|
|
36673
|
+
form: "single",
|
|
36674
|
+
optional: false
|
|
36675
|
+
}],
|
|
36676
|
+
"mediaPlayer.play": [{
|
|
36677
|
+
name: "deviceId",
|
|
36678
|
+
form: "single",
|
|
36679
|
+
optional: false
|
|
36680
|
+
}],
|
|
36681
|
+
"mediaPlayer.playMedia": [{
|
|
36682
|
+
name: "deviceId",
|
|
36683
|
+
form: "single",
|
|
36684
|
+
optional: false
|
|
36685
|
+
}],
|
|
36686
|
+
"mediaPlayer.previous": [{
|
|
36687
|
+
name: "deviceId",
|
|
36688
|
+
form: "single",
|
|
36689
|
+
optional: false
|
|
36690
|
+
}],
|
|
36691
|
+
"mediaPlayer.seek": [{
|
|
36692
|
+
name: "deviceId",
|
|
36693
|
+
form: "single",
|
|
36694
|
+
optional: false
|
|
36695
|
+
}],
|
|
36696
|
+
"mediaPlayer.selectSource": [{
|
|
36697
|
+
name: "deviceId",
|
|
36698
|
+
form: "single",
|
|
36699
|
+
optional: false
|
|
36700
|
+
}],
|
|
36701
|
+
"mediaPlayer.setMute": [{
|
|
36702
|
+
name: "deviceId",
|
|
36703
|
+
form: "single",
|
|
36704
|
+
optional: false
|
|
36705
|
+
}],
|
|
36706
|
+
"mediaPlayer.setRepeat": [{
|
|
36707
|
+
name: "deviceId",
|
|
36708
|
+
form: "single",
|
|
36709
|
+
optional: false
|
|
36710
|
+
}],
|
|
36711
|
+
"mediaPlayer.setShuffle": [{
|
|
36712
|
+
name: "deviceId",
|
|
36713
|
+
form: "single",
|
|
36714
|
+
optional: false
|
|
36715
|
+
}],
|
|
36716
|
+
"mediaPlayer.setVolume": [{
|
|
36717
|
+
name: "deviceId",
|
|
36718
|
+
form: "single",
|
|
36719
|
+
optional: false
|
|
36720
|
+
}],
|
|
36721
|
+
"mediaPlayer.stop": [{
|
|
36722
|
+
name: "deviceId",
|
|
36723
|
+
form: "single",
|
|
36724
|
+
optional: false
|
|
36725
|
+
}],
|
|
36726
|
+
"motion.isDetected": [{
|
|
36727
|
+
name: "deviceId",
|
|
36728
|
+
form: "single",
|
|
36729
|
+
optional: false
|
|
36730
|
+
}],
|
|
36731
|
+
"motionDetection.analyze": [{
|
|
36732
|
+
name: "deviceId",
|
|
36733
|
+
form: "single",
|
|
36734
|
+
optional: false
|
|
36735
|
+
}],
|
|
36736
|
+
"motionDetection.removeCamera": [{
|
|
36737
|
+
name: "deviceId",
|
|
36738
|
+
form: "single",
|
|
36739
|
+
optional: false
|
|
36740
|
+
}],
|
|
36741
|
+
"motionTrigger.setMotionTrigger": [{
|
|
36742
|
+
name: "deviceId",
|
|
36743
|
+
form: "single",
|
|
36744
|
+
optional: false
|
|
36745
|
+
}],
|
|
36746
|
+
"motionZones.getOptions": [{
|
|
36747
|
+
name: "deviceId",
|
|
36748
|
+
form: "single",
|
|
36749
|
+
optional: false
|
|
36750
|
+
}],
|
|
36751
|
+
"motionZones.setZone": [{
|
|
36752
|
+
name: "deviceId",
|
|
36753
|
+
form: "single",
|
|
36754
|
+
optional: false
|
|
36755
|
+
}],
|
|
36756
|
+
"nativeObjectDetection.setEnabled": [{
|
|
36757
|
+
name: "deviceId",
|
|
36758
|
+
form: "single",
|
|
36759
|
+
optional: false
|
|
36760
|
+
}],
|
|
36761
|
+
"networkQuality.getDeviceStats": [{
|
|
36762
|
+
name: "deviceId",
|
|
36763
|
+
form: "single",
|
|
36764
|
+
optional: false
|
|
36765
|
+
}],
|
|
36766
|
+
"networkQuality.reportClientStats": [{
|
|
36767
|
+
name: "deviceId",
|
|
36768
|
+
form: "single",
|
|
36769
|
+
optional: false
|
|
36770
|
+
}],
|
|
36771
|
+
"notificationRules.setDeviceMuted": [{
|
|
36772
|
+
name: "deviceId",
|
|
36773
|
+
form: "single",
|
|
36774
|
+
optional: false
|
|
36775
|
+
}],
|
|
36776
|
+
"notifier.cancel": [{
|
|
36777
|
+
name: "deviceId",
|
|
36778
|
+
form: "single",
|
|
36779
|
+
optional: false
|
|
36780
|
+
}],
|
|
36781
|
+
"notifier.send": [{
|
|
36782
|
+
name: "deviceId",
|
|
36783
|
+
form: "single",
|
|
36784
|
+
optional: false
|
|
36785
|
+
}],
|
|
36786
|
+
"osd.setOverlay": [{
|
|
36787
|
+
name: "deviceId",
|
|
36788
|
+
form: "single",
|
|
36789
|
+
optional: false
|
|
36790
|
+
}],
|
|
36791
|
+
"osdManager.clearSlotBinding": [{
|
|
36792
|
+
name: "deviceId",
|
|
36793
|
+
form: "single",
|
|
36794
|
+
optional: false
|
|
36795
|
+
}],
|
|
36796
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
36797
|
+
name: "sourceDeviceId",
|
|
36798
|
+
form: "single",
|
|
36799
|
+
optional: false
|
|
36800
|
+
}, {
|
|
36801
|
+
name: "targetDeviceId",
|
|
36802
|
+
form: "single",
|
|
36803
|
+
optional: false
|
|
36804
|
+
}],
|
|
36805
|
+
"osdManager.getDeviceOsd": [{
|
|
36806
|
+
name: "deviceId",
|
|
36807
|
+
form: "single",
|
|
36808
|
+
optional: false
|
|
36809
|
+
}],
|
|
36810
|
+
"osdManager.getSourceCatalog": [{
|
|
36811
|
+
name: "deviceId",
|
|
36812
|
+
form: "single",
|
|
36813
|
+
optional: false
|
|
36814
|
+
}],
|
|
36815
|
+
"osdManager.previewSlot": [{
|
|
36816
|
+
name: "deviceId",
|
|
36817
|
+
form: "single",
|
|
36818
|
+
optional: false
|
|
36819
|
+
}],
|
|
36820
|
+
"osdManager.renderDevice": [{
|
|
36821
|
+
name: "deviceId",
|
|
36822
|
+
form: "single",
|
|
36823
|
+
optional: false
|
|
36824
|
+
}],
|
|
36825
|
+
"osdManager.setSlotBinding": [{
|
|
36826
|
+
name: "deviceId",
|
|
36827
|
+
form: "single",
|
|
36828
|
+
optional: false
|
|
36829
|
+
}],
|
|
36830
|
+
"petFeeder.callPet": [{
|
|
36831
|
+
name: "deviceId",
|
|
36832
|
+
form: "single",
|
|
36833
|
+
optional: false
|
|
36834
|
+
}],
|
|
36835
|
+
"petFeeder.cancelFeed": [{
|
|
36836
|
+
name: "deviceId",
|
|
36837
|
+
form: "single",
|
|
36838
|
+
optional: false
|
|
36839
|
+
}],
|
|
36840
|
+
"petFeeder.feed": [{
|
|
36841
|
+
name: "deviceId",
|
|
36842
|
+
form: "single",
|
|
36843
|
+
optional: false
|
|
36844
|
+
}],
|
|
36845
|
+
"petFeeder.markFoodReplenished": [{
|
|
36846
|
+
name: "deviceId",
|
|
36847
|
+
form: "single",
|
|
36848
|
+
optional: false
|
|
36849
|
+
}],
|
|
36850
|
+
"petFeeder.playSound": [{
|
|
36851
|
+
name: "deviceId",
|
|
36852
|
+
form: "single",
|
|
36853
|
+
optional: false
|
|
36854
|
+
}],
|
|
36855
|
+
"petFeeder.resetDesiccant": [{
|
|
36856
|
+
name: "deviceId",
|
|
36857
|
+
form: "single",
|
|
36858
|
+
optional: false
|
|
36859
|
+
}],
|
|
36860
|
+
"petFeeder.setChildLock": [{
|
|
36861
|
+
name: "deviceId",
|
|
36862
|
+
form: "single",
|
|
36863
|
+
optional: false
|
|
36864
|
+
}],
|
|
36865
|
+
"petFeeder.setFeedSound": [{
|
|
36866
|
+
name: "deviceId",
|
|
36867
|
+
form: "single",
|
|
36868
|
+
optional: false
|
|
36869
|
+
}],
|
|
36870
|
+
"petFeeder.setIndicatorLight": [{
|
|
36871
|
+
name: "deviceId",
|
|
36872
|
+
form: "single",
|
|
36873
|
+
optional: false
|
|
36874
|
+
}],
|
|
36875
|
+
"petFeeder.setVolume": [{
|
|
36876
|
+
name: "deviceId",
|
|
36877
|
+
form: "single",
|
|
36878
|
+
optional: false
|
|
36879
|
+
}],
|
|
36880
|
+
"pipelineAnalytics.clearTracks": [{
|
|
36881
|
+
name: "deviceId",
|
|
36882
|
+
form: "single",
|
|
36883
|
+
optional: false
|
|
36884
|
+
}],
|
|
36885
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
36886
|
+
name: "deviceId",
|
|
36887
|
+
form: "single",
|
|
36888
|
+
optional: false
|
|
36889
|
+
}],
|
|
36890
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
36891
|
+
name: "deviceId",
|
|
36892
|
+
form: "single",
|
|
36893
|
+
optional: false
|
|
36894
|
+
}],
|
|
36895
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
36896
|
+
name: "deviceId",
|
|
36897
|
+
form: "single",
|
|
36898
|
+
optional: false
|
|
36899
|
+
}],
|
|
36900
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
36901
|
+
name: "deviceId",
|
|
36902
|
+
form: "single",
|
|
36903
|
+
optional: false
|
|
36904
|
+
}],
|
|
36905
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
36906
|
+
name: "deviceId",
|
|
36907
|
+
form: "single",
|
|
36908
|
+
optional: false
|
|
36909
|
+
}],
|
|
36910
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
36911
|
+
name: "deviceId",
|
|
36912
|
+
form: "single",
|
|
36913
|
+
optional: false
|
|
36914
|
+
}],
|
|
36915
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
36916
|
+
name: "deviceId",
|
|
36917
|
+
form: "single",
|
|
36918
|
+
optional: false
|
|
36919
|
+
}],
|
|
36920
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
36921
|
+
name: "deviceId",
|
|
36922
|
+
form: "single",
|
|
36923
|
+
optional: false
|
|
36924
|
+
}],
|
|
36925
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
36926
|
+
name: "deviceId",
|
|
36927
|
+
form: "single",
|
|
36928
|
+
optional: false
|
|
36929
|
+
}],
|
|
36930
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
36931
|
+
name: "deviceId",
|
|
36932
|
+
form: "single",
|
|
36933
|
+
optional: false
|
|
36934
|
+
}],
|
|
36935
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
36936
|
+
name: "deviceId",
|
|
36937
|
+
form: "single",
|
|
36938
|
+
optional: false
|
|
36939
|
+
}],
|
|
36940
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
36941
|
+
name: "deviceIds",
|
|
36942
|
+
form: "array",
|
|
36943
|
+
optional: true
|
|
36944
|
+
}],
|
|
36945
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
36946
|
+
name: "deviceId",
|
|
36947
|
+
form: "single",
|
|
36948
|
+
optional: false
|
|
36949
|
+
}],
|
|
36950
|
+
"pipelineAnalytics.getTrack": [{
|
|
36951
|
+
name: "deviceId",
|
|
36952
|
+
form: "single",
|
|
36953
|
+
optional: false
|
|
36954
|
+
}],
|
|
36955
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
36956
|
+
name: "deviceId",
|
|
36957
|
+
form: "single",
|
|
36958
|
+
optional: false
|
|
36959
|
+
}],
|
|
36960
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
36961
|
+
name: "deviceIds",
|
|
36962
|
+
form: "array",
|
|
36963
|
+
optional: true
|
|
36964
|
+
}],
|
|
36965
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
36966
|
+
name: "deviceIds",
|
|
36967
|
+
form: "array",
|
|
36968
|
+
optional: true
|
|
36969
|
+
}],
|
|
36970
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
36971
|
+
name: "deviceId",
|
|
36972
|
+
form: "single",
|
|
36973
|
+
optional: false
|
|
36974
|
+
}],
|
|
36975
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
36976
|
+
name: "deviceIds",
|
|
36977
|
+
form: "array",
|
|
36978
|
+
optional: false
|
|
36979
|
+
}],
|
|
36980
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
36981
|
+
name: "deviceId",
|
|
36982
|
+
form: "single",
|
|
36983
|
+
optional: true
|
|
36984
|
+
}],
|
|
36985
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
36986
|
+
name: "deviceIds",
|
|
36987
|
+
form: "array",
|
|
36988
|
+
optional: false
|
|
36989
|
+
}],
|
|
36990
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
36991
|
+
name: "deviceIds",
|
|
36992
|
+
form: "array",
|
|
36993
|
+
optional: true
|
|
36994
|
+
}],
|
|
36995
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
36996
|
+
name: "deviceId",
|
|
36997
|
+
form: "single",
|
|
36998
|
+
optional: false
|
|
36999
|
+
}],
|
|
37000
|
+
"pipelineAnalytics.listTracks": [{
|
|
37001
|
+
name: "deviceId",
|
|
37002
|
+
form: "single",
|
|
37003
|
+
optional: false
|
|
37004
|
+
}],
|
|
37005
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
37006
|
+
name: "deviceId",
|
|
37007
|
+
form: "single",
|
|
37008
|
+
optional: false
|
|
37009
|
+
}],
|
|
37010
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
37011
|
+
name: "deviceId",
|
|
37012
|
+
form: "single",
|
|
37013
|
+
optional: false
|
|
37014
|
+
}],
|
|
37015
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
37016
|
+
name: "deviceId",
|
|
37017
|
+
form: "single",
|
|
37018
|
+
optional: false
|
|
37019
|
+
}],
|
|
37020
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
37021
|
+
name: "deviceId",
|
|
37022
|
+
form: "single",
|
|
37023
|
+
optional: true
|
|
37024
|
+
}],
|
|
37025
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
37026
|
+
name: "deviceId",
|
|
37027
|
+
form: "single",
|
|
37028
|
+
optional: false
|
|
37029
|
+
}],
|
|
37030
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
37031
|
+
name: "deviceId",
|
|
37032
|
+
form: "single",
|
|
37033
|
+
optional: false
|
|
37034
|
+
}],
|
|
37035
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
37036
|
+
name: "deviceId",
|
|
37037
|
+
form: "single",
|
|
37038
|
+
optional: true
|
|
37039
|
+
}],
|
|
37040
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
37041
|
+
name: "deviceId",
|
|
37042
|
+
form: "single",
|
|
37043
|
+
optional: false
|
|
37044
|
+
}],
|
|
37045
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
37046
|
+
name: "deviceId",
|
|
37047
|
+
form: "single",
|
|
37048
|
+
optional: false
|
|
37049
|
+
}],
|
|
37050
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
37051
|
+
name: "deviceId",
|
|
37052
|
+
form: "single",
|
|
37053
|
+
optional: false
|
|
37054
|
+
}],
|
|
37055
|
+
"pipelineExecutor.runPipeline": [{
|
|
37056
|
+
name: "deviceId",
|
|
37057
|
+
form: "single",
|
|
37058
|
+
optional: true
|
|
37059
|
+
}],
|
|
37060
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
37061
|
+
name: "deviceId",
|
|
37062
|
+
form: "single",
|
|
37063
|
+
optional: true
|
|
37064
|
+
}],
|
|
37065
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
37066
|
+
name: "deviceId",
|
|
37067
|
+
form: "single",
|
|
37068
|
+
optional: false
|
|
37069
|
+
}],
|
|
37070
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
37071
|
+
name: "deviceId",
|
|
37072
|
+
form: "single",
|
|
37073
|
+
optional: false
|
|
37074
|
+
}],
|
|
37075
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
37076
|
+
name: "deviceId",
|
|
37077
|
+
form: "single",
|
|
37078
|
+
optional: false
|
|
37079
|
+
}],
|
|
37080
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
37081
|
+
name: "deviceId",
|
|
37082
|
+
form: "single",
|
|
37083
|
+
optional: false
|
|
37084
|
+
}],
|
|
37085
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
37086
|
+
name: "deviceId",
|
|
37087
|
+
form: "single",
|
|
37088
|
+
optional: false
|
|
37089
|
+
}],
|
|
37090
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
37091
|
+
name: "deviceId",
|
|
37092
|
+
form: "single",
|
|
37093
|
+
optional: false
|
|
37094
|
+
}],
|
|
37095
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
37096
|
+
name: "deviceIds",
|
|
37097
|
+
form: "array",
|
|
37098
|
+
optional: true
|
|
37099
|
+
}],
|
|
37100
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
37101
|
+
name: "deviceId",
|
|
37102
|
+
form: "single",
|
|
37103
|
+
optional: false
|
|
37104
|
+
}],
|
|
37105
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
37106
|
+
name: "deviceId",
|
|
37107
|
+
form: "single",
|
|
37108
|
+
optional: false
|
|
37109
|
+
}],
|
|
37110
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
37111
|
+
name: "deviceId",
|
|
37112
|
+
form: "single",
|
|
37113
|
+
optional: false
|
|
37114
|
+
}],
|
|
37115
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
37116
|
+
name: "deviceId",
|
|
37117
|
+
form: "single",
|
|
37118
|
+
optional: false
|
|
37119
|
+
}],
|
|
37120
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
37121
|
+
name: "deviceId",
|
|
37122
|
+
form: "single",
|
|
37123
|
+
optional: false
|
|
37124
|
+
}],
|
|
37125
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
37126
|
+
name: "deviceId",
|
|
37127
|
+
form: "single",
|
|
37128
|
+
optional: false
|
|
37129
|
+
}],
|
|
37130
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
37131
|
+
name: "deviceId",
|
|
37132
|
+
form: "single",
|
|
37133
|
+
optional: false
|
|
37134
|
+
}],
|
|
37135
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
37136
|
+
name: "deviceId",
|
|
37137
|
+
form: "single",
|
|
37138
|
+
optional: false
|
|
37139
|
+
}],
|
|
37140
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
37141
|
+
name: "deviceId",
|
|
37142
|
+
form: "single",
|
|
37143
|
+
optional: false
|
|
37144
|
+
}],
|
|
37145
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
37146
|
+
name: "deviceId",
|
|
37147
|
+
form: "single",
|
|
37148
|
+
optional: false
|
|
37149
|
+
}],
|
|
37150
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
37151
|
+
name: "deviceId",
|
|
37152
|
+
form: "single",
|
|
37153
|
+
optional: false
|
|
37154
|
+
}],
|
|
37155
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
37156
|
+
name: "deviceId",
|
|
37157
|
+
form: "single",
|
|
37158
|
+
optional: false
|
|
37159
|
+
}],
|
|
37160
|
+
"pipelineRunner.attachCamera": [{
|
|
37161
|
+
name: "deviceId",
|
|
37162
|
+
form: "single",
|
|
37163
|
+
optional: false
|
|
37164
|
+
}],
|
|
37165
|
+
"pipelineRunner.detachCamera": [{
|
|
37166
|
+
name: "deviceId",
|
|
37167
|
+
form: "single",
|
|
37168
|
+
optional: false
|
|
37169
|
+
}],
|
|
37170
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
37171
|
+
name: "deviceId",
|
|
37172
|
+
form: "single",
|
|
37173
|
+
optional: false
|
|
37174
|
+
}],
|
|
37175
|
+
"pipelineRunner.reportMotion": [{
|
|
37176
|
+
name: "deviceId",
|
|
37177
|
+
form: "single",
|
|
37178
|
+
optional: false
|
|
37179
|
+
}],
|
|
37180
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
37181
|
+
name: "deviceId",
|
|
37182
|
+
form: "single",
|
|
37183
|
+
optional: false
|
|
37184
|
+
}],
|
|
37185
|
+
"pipelineRunner.runStatelessStep": [{
|
|
37186
|
+
name: "sourceDeviceId",
|
|
37187
|
+
form: "single",
|
|
37188
|
+
optional: false
|
|
37189
|
+
}],
|
|
37190
|
+
"plateGallery.getPlateByTrack": [{
|
|
37191
|
+
name: "deviceId",
|
|
37192
|
+
form: "single",
|
|
37193
|
+
optional: false
|
|
37194
|
+
}],
|
|
37195
|
+
"plateGallery.listPlates": [{
|
|
37196
|
+
name: "deviceId",
|
|
37197
|
+
form: "single",
|
|
37198
|
+
optional: true
|
|
37199
|
+
}],
|
|
37200
|
+
"privacyMask.getOptions": [{
|
|
37201
|
+
name: "deviceId",
|
|
37202
|
+
form: "single",
|
|
37203
|
+
optional: false
|
|
37204
|
+
}],
|
|
37205
|
+
"privacyMask.setAudioEnabled": [{
|
|
37206
|
+
name: "deviceId",
|
|
37207
|
+
form: "single",
|
|
37208
|
+
optional: false
|
|
37209
|
+
}],
|
|
37210
|
+
"privacyMask.setMask": [{
|
|
37211
|
+
name: "deviceId",
|
|
37212
|
+
form: "single",
|
|
37213
|
+
optional: false
|
|
37214
|
+
}],
|
|
37215
|
+
"ptz.continuousMove": [{
|
|
37216
|
+
name: "deviceId",
|
|
37217
|
+
form: "single",
|
|
37218
|
+
optional: false
|
|
37219
|
+
}],
|
|
37220
|
+
"ptz.deletePreset": [{
|
|
37221
|
+
name: "deviceId",
|
|
37222
|
+
form: "single",
|
|
37223
|
+
optional: false
|
|
37224
|
+
}],
|
|
37225
|
+
"ptz.getOptions": [{
|
|
37226
|
+
name: "deviceId",
|
|
37227
|
+
form: "single",
|
|
37228
|
+
optional: false
|
|
37229
|
+
}],
|
|
37230
|
+
"ptz.getPosition": [{
|
|
37231
|
+
name: "deviceId",
|
|
37232
|
+
form: "single",
|
|
37233
|
+
optional: false
|
|
37234
|
+
}],
|
|
37235
|
+
"ptz.getPresets": [{
|
|
37236
|
+
name: "deviceId",
|
|
37237
|
+
form: "single",
|
|
37238
|
+
optional: false
|
|
37239
|
+
}],
|
|
37240
|
+
"ptz.goHome": [{
|
|
37241
|
+
name: "deviceId",
|
|
37242
|
+
form: "single",
|
|
37243
|
+
optional: false
|
|
37244
|
+
}],
|
|
37245
|
+
"ptz.goToPreset": [{
|
|
37246
|
+
name: "deviceId",
|
|
37247
|
+
form: "single",
|
|
37248
|
+
optional: false
|
|
37249
|
+
}],
|
|
37250
|
+
"ptz.move": [{
|
|
37251
|
+
name: "deviceId",
|
|
37252
|
+
form: "single",
|
|
37253
|
+
optional: false
|
|
37254
|
+
}],
|
|
37255
|
+
"ptz.savePreset": [{
|
|
37256
|
+
name: "deviceId",
|
|
37257
|
+
form: "single",
|
|
37258
|
+
optional: false
|
|
37259
|
+
}],
|
|
37260
|
+
"ptz.setAutofocus": [{
|
|
37261
|
+
name: "deviceId",
|
|
37262
|
+
form: "single",
|
|
37263
|
+
optional: false
|
|
37264
|
+
}],
|
|
37265
|
+
"ptz.stop": [{
|
|
37266
|
+
name: "deviceId",
|
|
37267
|
+
form: "single",
|
|
37268
|
+
optional: false
|
|
37269
|
+
}],
|
|
37270
|
+
"ptzAutotrack.getSettings": [{
|
|
37271
|
+
name: "deviceId",
|
|
37272
|
+
form: "single",
|
|
37273
|
+
optional: false
|
|
37274
|
+
}],
|
|
37275
|
+
"ptzAutotrack.getStatus": [{
|
|
37276
|
+
name: "deviceId",
|
|
37277
|
+
form: "single",
|
|
37278
|
+
optional: false
|
|
37279
|
+
}],
|
|
37280
|
+
"ptzAutotrack.setEnabled": [{
|
|
37281
|
+
name: "deviceId",
|
|
37282
|
+
form: "single",
|
|
37283
|
+
optional: false
|
|
37284
|
+
}],
|
|
37285
|
+
"ptzAutotrack.setSettings": [{
|
|
37286
|
+
name: "deviceId",
|
|
37287
|
+
form: "single",
|
|
37288
|
+
optional: false
|
|
37289
|
+
}],
|
|
37290
|
+
"reboot.reboot": [{
|
|
37291
|
+
name: "deviceId",
|
|
37292
|
+
form: "single",
|
|
37293
|
+
optional: false
|
|
37294
|
+
}],
|
|
37295
|
+
"recording.deleteFootprint": [{
|
|
37296
|
+
name: "deviceId",
|
|
37297
|
+
form: "single",
|
|
37298
|
+
optional: false
|
|
37299
|
+
}],
|
|
37300
|
+
"recording.getAvailability": [{
|
|
37301
|
+
name: "deviceId",
|
|
37302
|
+
form: "single",
|
|
37303
|
+
optional: false
|
|
37304
|
+
}],
|
|
37305
|
+
"recording.getDaysWithRecordings": [{
|
|
37306
|
+
name: "deviceId",
|
|
37307
|
+
form: "single",
|
|
37308
|
+
optional: false
|
|
37309
|
+
}],
|
|
37310
|
+
"recording.getDeviceConfig": [{
|
|
37311
|
+
name: "deviceId",
|
|
37312
|
+
form: "single",
|
|
37313
|
+
optional: false
|
|
37314
|
+
}],
|
|
37315
|
+
"recording.getPlaybackManifest": [{
|
|
37316
|
+
name: "deviceId",
|
|
37317
|
+
form: "single",
|
|
37318
|
+
optional: false
|
|
37319
|
+
}],
|
|
37320
|
+
"recording.listOpsLog": [{
|
|
37321
|
+
name: "deviceId",
|
|
37322
|
+
form: "single",
|
|
37323
|
+
optional: true
|
|
37324
|
+
}],
|
|
37325
|
+
"recording.locateSegment": [{
|
|
37326
|
+
name: "deviceId",
|
|
37327
|
+
form: "single",
|
|
37328
|
+
optional: false
|
|
37329
|
+
}],
|
|
37330
|
+
"recording.pruneFootage": [{
|
|
37331
|
+
name: "deviceId",
|
|
37332
|
+
form: "single",
|
|
37333
|
+
optional: false
|
|
37334
|
+
}],
|
|
37335
|
+
"recording.readGopBytes": [{
|
|
37336
|
+
name: "deviceId",
|
|
37337
|
+
form: "single",
|
|
37338
|
+
optional: false
|
|
37339
|
+
}],
|
|
37340
|
+
"recording.readSegmentBytes": [{
|
|
37341
|
+
name: "deviceId",
|
|
37342
|
+
form: "single",
|
|
37343
|
+
optional: false
|
|
37344
|
+
}],
|
|
37345
|
+
"recording.relocateFootage": [{
|
|
37346
|
+
name: "deviceId",
|
|
37347
|
+
form: "single",
|
|
37348
|
+
optional: true
|
|
37349
|
+
}],
|
|
37350
|
+
"recording.renderClip": [{
|
|
37351
|
+
name: "deviceId",
|
|
37352
|
+
form: "single",
|
|
37353
|
+
optional: false
|
|
37354
|
+
}],
|
|
37355
|
+
"recording.renderGif": [{
|
|
37356
|
+
name: "deviceId",
|
|
37357
|
+
form: "single",
|
|
37358
|
+
optional: false
|
|
37359
|
+
}],
|
|
37360
|
+
"recording.rescanStorage": [{
|
|
37361
|
+
name: "deviceId",
|
|
37362
|
+
form: "single",
|
|
37363
|
+
optional: false
|
|
37364
|
+
}],
|
|
37365
|
+
"recording.setDeviceConfig": [{
|
|
37366
|
+
name: "deviceId",
|
|
37367
|
+
form: "single",
|
|
37368
|
+
optional: false
|
|
37369
|
+
}],
|
|
37370
|
+
"recording.startStorageMigrationMove": [{
|
|
37371
|
+
name: "deviceId",
|
|
37372
|
+
form: "single",
|
|
37373
|
+
optional: true
|
|
37374
|
+
}],
|
|
37375
|
+
"recordingExport.createExport": [{
|
|
37376
|
+
name: "deviceId",
|
|
37377
|
+
form: "single",
|
|
37378
|
+
optional: false
|
|
37379
|
+
}],
|
|
37380
|
+
"recordingExport.listExports": [{
|
|
37381
|
+
name: "deviceId",
|
|
37382
|
+
form: "single",
|
|
37383
|
+
optional: true
|
|
37384
|
+
}],
|
|
37385
|
+
"sceneMonitor.captureReference": [{
|
|
37386
|
+
name: "deviceId",
|
|
37387
|
+
form: "single",
|
|
37388
|
+
optional: false
|
|
37389
|
+
}],
|
|
37390
|
+
"sceneMonitor.createScene": [{
|
|
37391
|
+
name: "deviceId",
|
|
37392
|
+
form: "single",
|
|
37393
|
+
optional: false
|
|
37394
|
+
}],
|
|
37395
|
+
"sceneMonitor.deleteReference": [{
|
|
37396
|
+
name: "deviceId",
|
|
37397
|
+
form: "single",
|
|
37398
|
+
optional: false
|
|
37399
|
+
}],
|
|
37400
|
+
"sceneMonitor.deleteScene": [{
|
|
37401
|
+
name: "deviceId",
|
|
37402
|
+
form: "single",
|
|
37403
|
+
optional: false
|
|
37404
|
+
}],
|
|
37405
|
+
"sceneMonitor.listScenes": [{
|
|
37406
|
+
name: "deviceId",
|
|
37407
|
+
form: "single",
|
|
37408
|
+
optional: false
|
|
37409
|
+
}],
|
|
37410
|
+
"sceneMonitor.recheckNow": [{
|
|
37411
|
+
name: "deviceId",
|
|
37412
|
+
form: "single",
|
|
37413
|
+
optional: false
|
|
37414
|
+
}],
|
|
37415
|
+
"sceneMonitor.resetScene": [{
|
|
37416
|
+
name: "deviceId",
|
|
37417
|
+
form: "single",
|
|
37418
|
+
optional: false
|
|
37419
|
+
}],
|
|
37420
|
+
"sceneMonitor.updateScene": [{
|
|
37421
|
+
name: "deviceId",
|
|
37422
|
+
form: "single",
|
|
37423
|
+
optional: false
|
|
37424
|
+
}],
|
|
37425
|
+
"scriptRunner.run": [{
|
|
37426
|
+
name: "deviceId",
|
|
37427
|
+
form: "single",
|
|
37428
|
+
optional: false
|
|
37429
|
+
}],
|
|
37430
|
+
"scriptRunner.stop": [{
|
|
37431
|
+
name: "deviceId",
|
|
37432
|
+
form: "single",
|
|
37433
|
+
optional: false
|
|
37434
|
+
}],
|
|
37435
|
+
"snapshot.getSnapshot": [{
|
|
37436
|
+
name: "deviceId",
|
|
37437
|
+
form: "single",
|
|
37438
|
+
optional: false
|
|
37439
|
+
}],
|
|
37440
|
+
"snapshot.getSnapshotLinks": [{
|
|
37441
|
+
name: "targets",
|
|
37442
|
+
form: "object-array",
|
|
37443
|
+
optional: false,
|
|
37444
|
+
itemField: "deviceId"
|
|
37445
|
+
}],
|
|
37446
|
+
"snapshot.getSnapshotOverview": [{
|
|
37447
|
+
name: "deviceIds",
|
|
37448
|
+
form: "array",
|
|
37449
|
+
optional: false
|
|
37450
|
+
}],
|
|
37451
|
+
"snapshot.invalidateCache": [{
|
|
37452
|
+
name: "deviceId",
|
|
37453
|
+
form: "single",
|
|
37454
|
+
optional: false
|
|
37455
|
+
}],
|
|
37456
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
37457
|
+
name: "deviceId",
|
|
37458
|
+
form: "single",
|
|
37459
|
+
optional: false
|
|
37460
|
+
}],
|
|
37461
|
+
"streamBroker.assignProfile": [{
|
|
37462
|
+
name: "deviceId",
|
|
37463
|
+
form: "single",
|
|
37464
|
+
optional: false
|
|
37465
|
+
}],
|
|
37466
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
37467
|
+
name: "deviceId",
|
|
37468
|
+
form: "single",
|
|
37469
|
+
optional: false
|
|
37470
|
+
}],
|
|
37471
|
+
"streamBroker.getStreamWithCodec": [{
|
|
37472
|
+
name: "deviceId",
|
|
37473
|
+
form: "single",
|
|
37474
|
+
optional: false
|
|
37475
|
+
}],
|
|
37476
|
+
"streamBroker.produceEventMedia": [{
|
|
37477
|
+
name: "deviceId",
|
|
37478
|
+
form: "single",
|
|
37479
|
+
optional: false
|
|
37480
|
+
}],
|
|
37481
|
+
"streamBroker.publishCameraStream": [{
|
|
37482
|
+
name: "deviceId",
|
|
37483
|
+
form: "single",
|
|
37484
|
+
optional: false
|
|
37485
|
+
}],
|
|
37486
|
+
"streamBroker.renderPreBufferClip": [{
|
|
37487
|
+
name: "deviceId",
|
|
37488
|
+
form: "single",
|
|
37489
|
+
optional: false
|
|
37490
|
+
}],
|
|
37491
|
+
"streamBroker.restartProfile": [{
|
|
37492
|
+
name: "deviceId",
|
|
37493
|
+
form: "single",
|
|
37494
|
+
optional: false
|
|
37495
|
+
}],
|
|
37496
|
+
"streamBroker.retractCameraStream": [{
|
|
37497
|
+
name: "deviceId",
|
|
37498
|
+
form: "single",
|
|
37499
|
+
optional: false
|
|
37500
|
+
}],
|
|
37501
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
37502
|
+
name: "deviceId",
|
|
37503
|
+
form: "single",
|
|
37504
|
+
optional: false
|
|
37505
|
+
}],
|
|
37506
|
+
"streamBroker.unassignProfile": [{
|
|
37507
|
+
name: "deviceId",
|
|
37508
|
+
form: "single",
|
|
37509
|
+
optional: false
|
|
37510
|
+
}],
|
|
37511
|
+
"streamCatalog.getCatalog": [{
|
|
37512
|
+
name: "deviceId",
|
|
37513
|
+
form: "single",
|
|
37514
|
+
optional: false
|
|
37515
|
+
}],
|
|
37516
|
+
"streamParams.getConfigSchema": [{
|
|
37517
|
+
name: "deviceId",
|
|
37518
|
+
form: "single",
|
|
37519
|
+
optional: false
|
|
37520
|
+
}],
|
|
37521
|
+
"streamParams.getOptions": [{
|
|
37522
|
+
name: "deviceId",
|
|
37523
|
+
form: "single",
|
|
37524
|
+
optional: false
|
|
37525
|
+
}],
|
|
37526
|
+
"streamParams.setProfile": [{
|
|
37527
|
+
name: "deviceId",
|
|
37528
|
+
form: "single",
|
|
37529
|
+
optional: false
|
|
37530
|
+
}],
|
|
37531
|
+
"switch.setState": [{
|
|
37532
|
+
name: "deviceId",
|
|
37533
|
+
form: "single",
|
|
37534
|
+
optional: false
|
|
37535
|
+
}],
|
|
37536
|
+
"vacuumControl.locate": [{
|
|
37537
|
+
name: "deviceId",
|
|
37538
|
+
form: "single",
|
|
37539
|
+
optional: false
|
|
37540
|
+
}],
|
|
37541
|
+
"vacuumControl.pause": [{
|
|
37542
|
+
name: "deviceId",
|
|
37543
|
+
form: "single",
|
|
37544
|
+
optional: false
|
|
37545
|
+
}],
|
|
37546
|
+
"vacuumControl.returnToBase": [{
|
|
37547
|
+
name: "deviceId",
|
|
37548
|
+
form: "single",
|
|
37549
|
+
optional: false
|
|
37550
|
+
}],
|
|
37551
|
+
"vacuumControl.setFanSpeed": [{
|
|
37552
|
+
name: "deviceId",
|
|
37553
|
+
form: "single",
|
|
37554
|
+
optional: false
|
|
37555
|
+
}],
|
|
37556
|
+
"vacuumControl.start": [{
|
|
37557
|
+
name: "deviceId",
|
|
37558
|
+
form: "single",
|
|
37559
|
+
optional: false
|
|
37560
|
+
}],
|
|
37561
|
+
"vacuumControl.stop": [{
|
|
37562
|
+
name: "deviceId",
|
|
37563
|
+
form: "single",
|
|
37564
|
+
optional: false
|
|
37565
|
+
}],
|
|
37566
|
+
"valve.close": [{
|
|
37567
|
+
name: "deviceId",
|
|
37568
|
+
form: "single",
|
|
37569
|
+
optional: false
|
|
37570
|
+
}],
|
|
37571
|
+
"valve.open": [{
|
|
37572
|
+
name: "deviceId",
|
|
37573
|
+
form: "single",
|
|
37574
|
+
optional: false
|
|
37575
|
+
}],
|
|
37576
|
+
"valve.setPosition": [{
|
|
37577
|
+
name: "deviceId",
|
|
37578
|
+
form: "single",
|
|
37579
|
+
optional: false
|
|
37580
|
+
}],
|
|
37581
|
+
"valve.stop": [{
|
|
37582
|
+
name: "deviceId",
|
|
37583
|
+
form: "single",
|
|
37584
|
+
optional: false
|
|
37585
|
+
}],
|
|
37586
|
+
"videoclips.getClipPlayback": [{
|
|
37587
|
+
name: "deviceId",
|
|
37588
|
+
form: "single",
|
|
37589
|
+
optional: false
|
|
37590
|
+
}],
|
|
37591
|
+
"videoclips.listClips": [{
|
|
37592
|
+
name: "deviceId",
|
|
37593
|
+
form: "single",
|
|
37594
|
+
optional: false
|
|
37595
|
+
}],
|
|
37596
|
+
"waterHeater.setAway": [{
|
|
37597
|
+
name: "deviceId",
|
|
37598
|
+
form: "single",
|
|
37599
|
+
optional: false
|
|
37600
|
+
}],
|
|
37601
|
+
"waterHeater.setOperationMode": [{
|
|
37602
|
+
name: "deviceId",
|
|
37603
|
+
form: "single",
|
|
37604
|
+
optional: false
|
|
37605
|
+
}],
|
|
37606
|
+
"waterHeater.setTargetTemp": [{
|
|
37607
|
+
name: "deviceId",
|
|
37608
|
+
form: "single",
|
|
37609
|
+
optional: false
|
|
37610
|
+
}],
|
|
37611
|
+
"webrtcSession.addIceCandidate": [{
|
|
37612
|
+
name: "deviceId",
|
|
37613
|
+
form: "single",
|
|
37614
|
+
optional: false
|
|
37615
|
+
}],
|
|
37616
|
+
"webrtcSession.closeSession": [{
|
|
37617
|
+
name: "deviceId",
|
|
37618
|
+
form: "single",
|
|
37619
|
+
optional: false
|
|
37620
|
+
}],
|
|
37621
|
+
"webrtcSession.createSession": [{
|
|
37622
|
+
name: "deviceId",
|
|
37623
|
+
form: "single",
|
|
37624
|
+
optional: false
|
|
37625
|
+
}],
|
|
37626
|
+
"webrtcSession.getIceCandidates": [{
|
|
37627
|
+
name: "deviceId",
|
|
37628
|
+
form: "single",
|
|
37629
|
+
optional: false
|
|
37630
|
+
}],
|
|
37631
|
+
"webrtcSession.getSessionState": [{
|
|
37632
|
+
name: "deviceId",
|
|
37633
|
+
form: "single",
|
|
37634
|
+
optional: false
|
|
37635
|
+
}],
|
|
37636
|
+
"webrtcSession.handleAnswer": [{
|
|
37637
|
+
name: "deviceId",
|
|
37638
|
+
form: "single",
|
|
37639
|
+
optional: false
|
|
37640
|
+
}],
|
|
37641
|
+
"webrtcSession.handleOffer": [{
|
|
37642
|
+
name: "deviceId",
|
|
37643
|
+
form: "single",
|
|
37644
|
+
optional: false
|
|
37645
|
+
}],
|
|
37646
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
37647
|
+
name: "deviceId",
|
|
37648
|
+
form: "single",
|
|
37649
|
+
optional: false
|
|
37650
|
+
}],
|
|
37651
|
+
"webrtcSession.listStreams": [{
|
|
37652
|
+
name: "deviceId",
|
|
37653
|
+
form: "single",
|
|
37654
|
+
optional: false
|
|
37655
|
+
}],
|
|
37656
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
37657
|
+
name: "deviceId",
|
|
37658
|
+
form: "single",
|
|
37659
|
+
optional: false
|
|
37660
|
+
}],
|
|
37661
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
37662
|
+
name: "deviceId",
|
|
37663
|
+
form: "single",
|
|
37664
|
+
optional: false
|
|
37665
|
+
}],
|
|
37666
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
37667
|
+
name: "deviceId",
|
|
37668
|
+
form: "single",
|
|
37669
|
+
optional: false
|
|
37670
|
+
}],
|
|
37671
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
37672
|
+
name: "deviceId",
|
|
37673
|
+
form: "single",
|
|
37674
|
+
optional: false
|
|
37675
|
+
}],
|
|
37676
|
+
"zoneRules.listRules": [{
|
|
37677
|
+
name: "deviceId",
|
|
37678
|
+
form: "single",
|
|
37679
|
+
optional: false
|
|
37680
|
+
}],
|
|
37681
|
+
"zoneRules.setRules": [{
|
|
37682
|
+
name: "deviceId",
|
|
37683
|
+
form: "single",
|
|
37684
|
+
optional: false
|
|
37685
|
+
}],
|
|
37686
|
+
"zones.addZone": [{
|
|
37687
|
+
name: "deviceId",
|
|
37688
|
+
form: "single",
|
|
37689
|
+
optional: false
|
|
37690
|
+
}],
|
|
37691
|
+
"zones.listZones": [{
|
|
37692
|
+
name: "deviceId",
|
|
37693
|
+
form: "single",
|
|
37694
|
+
optional: false
|
|
37695
|
+
}],
|
|
37696
|
+
"zones.removeZone": [{
|
|
37697
|
+
name: "deviceId",
|
|
37698
|
+
form: "single",
|
|
37699
|
+
optional: false
|
|
37700
|
+
}],
|
|
37701
|
+
"zones.updateZone": [{
|
|
37702
|
+
name: "deviceId",
|
|
37703
|
+
form: "single",
|
|
37704
|
+
optional: false
|
|
37705
|
+
}]
|
|
37706
|
+
});
|
|
34988
37707
|
Object.freeze({
|
|
34989
37708
|
"broker": "broker",
|
|
34990
37709
|
"device-export": "device-export",
|