@camstack/addon-provider-onvif 1.2.15 → 1.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +2751 -96
- package/dist/addon.mjs +2751 -96
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
4
4
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
5
5
|
//#endregion
|
|
6
|
-
//#region ../types/dist/event-category-
|
|
6
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
7
7
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
8
8
|
EventCategory["SystemBoot"] = "system.boot";
|
|
9
9
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -210,6 +210,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
210
210
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
211
211
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
212
212
|
/**
|
|
213
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
214
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
215
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
216
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
217
|
+
* from the placement candidate set for as long as it holds.
|
|
218
|
+
*
|
|
219
|
+
* This exists because the state was previously invisible: little-unraid
|
|
220
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
221
|
+
* and nothing in the system said so.
|
|
222
|
+
*
|
|
223
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
224
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
225
|
+
* serves it exactly as before.
|
|
226
|
+
*/
|
|
227
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
228
|
+
/**
|
|
229
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
230
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
231
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
232
|
+
* per camera.
|
|
233
|
+
*
|
|
234
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
235
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
236
|
+
* camera" produce byte-identical silence.
|
|
237
|
+
*/
|
|
238
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
239
|
+
/**
|
|
213
240
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
214
241
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
215
242
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3001,6 +3028,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3001
3028
|
fallback: left.fallback
|
|
3002
3029
|
}, ctx);
|
|
3003
3030
|
}
|
|
3031
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3032
|
+
$ZodPipe.init(inst, def);
|
|
3033
|
+
});
|
|
3004
3034
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3005
3035
|
$ZodType.init(inst, def);
|
|
3006
3036
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5186,6 +5216,10 @@ function pipe(in_, out) {
|
|
|
5186
5216
|
out
|
|
5187
5217
|
});
|
|
5188
5218
|
}
|
|
5219
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5220
|
+
ZodPipe.init(inst, def);
|
|
5221
|
+
$ZodPreprocess.init(inst, def);
|
|
5222
|
+
});
|
|
5189
5223
|
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5190
5224
|
$ZodReadonly.init(inst, def);
|
|
5191
5225
|
ZodType.init(inst, def);
|
|
@@ -5244,6 +5278,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5244
5278
|
};
|
|
5245
5279
|
return inst;
|
|
5246
5280
|
}
|
|
5281
|
+
function preprocess(fn, schema) {
|
|
5282
|
+
return new ZodPreprocess({
|
|
5283
|
+
type: "pipe",
|
|
5284
|
+
in: transform(fn),
|
|
5285
|
+
out: schema
|
|
5286
|
+
});
|
|
5287
|
+
}
|
|
5247
5288
|
//#endregion
|
|
5248
5289
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5249
5290
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -10774,6 +10815,8 @@ var QueryFilterSchema = object({
|
|
|
10774
10815
|
where: record(string(), unknown()).optional(),
|
|
10775
10816
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10776
10817
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10818
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10819
|
+
whereNot: record(string(), unknown()).optional(),
|
|
10777
10820
|
orderBy: object({
|
|
10778
10821
|
field: string(),
|
|
10779
10822
|
direction: _enum(["asc", "desc"])
|
|
@@ -10793,7 +10836,8 @@ var QueryFilterSchema = object({
|
|
|
10793
10836
|
var MutationFilterSchema = object({
|
|
10794
10837
|
where: record(string(), unknown()).optional(),
|
|
10795
10838
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10796
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
10839
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10840
|
+
whereNot: record(string(), unknown()).optional()
|
|
10797
10841
|
});
|
|
10798
10842
|
/** A single stored record: `{ id, data }`. */
|
|
10799
10843
|
var SettingsRecordSchema = object({
|
|
@@ -12205,6 +12249,17 @@ var LlmImageSchema = object({
|
|
|
12205
12249
|
bytes: _instanceof(Uint8Array),
|
|
12206
12250
|
mimeType: string()
|
|
12207
12251
|
});
|
|
12252
|
+
/**
|
|
12253
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12254
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12255
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12256
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12257
|
+
*/
|
|
12258
|
+
var LlmRetryPolicySchema = object({
|
|
12259
|
+
enabled: boolean().default(false),
|
|
12260
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12261
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12262
|
+
});
|
|
12208
12263
|
var LlmGenerateBaseInputSchema = object({
|
|
12209
12264
|
/** Collection routing (the notification-output posture). */
|
|
12210
12265
|
addonId: string().optional(),
|
|
@@ -12219,7 +12274,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12219
12274
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12220
12275
|
/** Per-call override of the profile default. */
|
|
12221
12276
|
maxTokens: number().int().positive().optional(),
|
|
12222
|
-
temperature: number().optional()
|
|
12277
|
+
temperature: number().optional(),
|
|
12278
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12279
|
+
topP: number().min(0).max(1).optional(),
|
|
12280
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12281
|
+
topK: number().int().positive().optional(),
|
|
12282
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12283
|
+
timeoutMs: number().int().positive().optional(),
|
|
12284
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12285
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12286
|
+
/**
|
|
12287
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12288
|
+
*
|
|
12289
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12290
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12291
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12292
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12293
|
+
* not generations, and the real load is unbounded.
|
|
12294
|
+
*
|
|
12295
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12296
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12297
|
+
*/
|
|
12298
|
+
requestId: string().optional()
|
|
12223
12299
|
});
|
|
12224
12300
|
/**
|
|
12225
12301
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12232,6 +12308,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12232
12308
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12233
12309
|
* watchdog — operator decision #3).
|
|
12234
12310
|
*/
|
|
12311
|
+
/**
|
|
12312
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12313
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12314
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12315
|
+
* the preview is exactly what the node downloads.
|
|
12316
|
+
*/
|
|
12317
|
+
var ManagedModelExtraFileSchema = object({
|
|
12318
|
+
url: string(),
|
|
12319
|
+
filename: string(),
|
|
12320
|
+
sizeBytes: number(),
|
|
12321
|
+
sha256: string().optional()
|
|
12322
|
+
});
|
|
12235
12323
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12236
12324
|
object({
|
|
12237
12325
|
kind: literal("catalog"),
|
|
@@ -12240,7 +12328,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12240
12328
|
object({
|
|
12241
12329
|
kind: literal("url"),
|
|
12242
12330
|
url: string(),
|
|
12243
|
-
sha256: string().optional()
|
|
12331
|
+
sha256: string().optional(),
|
|
12332
|
+
/** Picker/status label; the file basename when absent. */
|
|
12333
|
+
label: string().optional(),
|
|
12334
|
+
sizeBytes: number().optional(),
|
|
12335
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12244
12336
|
}),
|
|
12245
12337
|
object({
|
|
12246
12338
|
kind: literal("path"),
|
|
@@ -12258,13 +12350,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12258
12350
|
gpuLayers: number().int().default(0),
|
|
12259
12351
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12260
12352
|
threads: number().int().optional(),
|
|
12261
|
-
/** Concurrent slots. */
|
|
12353
|
+
/** Concurrent slots (`--parallel`). */
|
|
12262
12354
|
parallel: number().int().default(1),
|
|
12355
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12356
|
+
batchSize: number().int().positive().optional(),
|
|
12357
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12358
|
+
ubatchSize: number().int().positive().optional(),
|
|
12359
|
+
/**
|
|
12360
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12361
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12362
|
+
*/
|
|
12363
|
+
flashAttention: boolean().default(false),
|
|
12364
|
+
/**
|
|
12365
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12366
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12367
|
+
* what the RAM budget is counting.
|
|
12368
|
+
*/
|
|
12369
|
+
mlock: boolean().default(false),
|
|
12370
|
+
/**
|
|
12371
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12372
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12373
|
+
* store produces on every first token.
|
|
12374
|
+
*/
|
|
12375
|
+
noMmap: boolean().default(false),
|
|
12376
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12377
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12378
|
+
cacheTypeK: _enum([
|
|
12379
|
+
"f32",
|
|
12380
|
+
"f16",
|
|
12381
|
+
"q8_0",
|
|
12382
|
+
"q5_1",
|
|
12383
|
+
"q5_0",
|
|
12384
|
+
"q4_1",
|
|
12385
|
+
"q4_0"
|
|
12386
|
+
]).optional(),
|
|
12387
|
+
cacheTypeV: _enum([
|
|
12388
|
+
"f32",
|
|
12389
|
+
"f16",
|
|
12390
|
+
"q8_0",
|
|
12391
|
+
"q5_1",
|
|
12392
|
+
"q5_0",
|
|
12393
|
+
"q4_1",
|
|
12394
|
+
"q4_0"
|
|
12395
|
+
]).optional(),
|
|
12396
|
+
/**
|
|
12397
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12398
|
+
* (which most vision chat templates need and some language-only models
|
|
12399
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12400
|
+
*
|
|
12401
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12402
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12403
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12404
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12405
|
+
* twice (D62).
|
|
12406
|
+
*/
|
|
12407
|
+
extraArgs: array(string()).default([]),
|
|
12263
12408
|
/** Else lazy: first generate boots it. */
|
|
12264
12409
|
autoStart: boolean().default(false),
|
|
12265
12410
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12266
12411
|
idleStopMinutes: number().int().default(30)
|
|
12267
12412
|
});
|
|
12413
|
+
/**
|
|
12414
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12415
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12416
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12417
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12418
|
+
*/
|
|
12419
|
+
var LlmDownloadProgressSchema = object({
|
|
12420
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12421
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12422
|
+
file: string(),
|
|
12423
|
+
fileIndex: number().int(),
|
|
12424
|
+
fileCount: number().int(),
|
|
12425
|
+
/** Across the WHOLE install, not the current file. */
|
|
12426
|
+
downloadedBytes: number(),
|
|
12427
|
+
totalBytes: number().optional()
|
|
12428
|
+
});
|
|
12268
12429
|
var LlmRuntimeStatusSchema = object({
|
|
12269
12430
|
/** Status is ALWAYS node-qualified. */
|
|
12270
12431
|
nodeId: string(),
|
|
@@ -12281,6 +12442,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12281
12442
|
modelPath: string().optional(),
|
|
12282
12443
|
modelId: string().optional(),
|
|
12283
12444
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12445
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12446
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12284
12447
|
lastError: string().optional(),
|
|
12285
12448
|
crashesInWindow: number(),
|
|
12286
12449
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12291,7 +12454,14 @@ var LlmNodeModelSchema = object({
|
|
|
12291
12454
|
file: string(),
|
|
12292
12455
|
sizeBytes: number(),
|
|
12293
12456
|
catalogId: string().optional(),
|
|
12294
|
-
installedAt: number().optional()
|
|
12457
|
+
installedAt: number().optional(),
|
|
12458
|
+
/**
|
|
12459
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12460
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12461
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12462
|
+
* it the picker could list such a file and do nothing with it.
|
|
12463
|
+
*/
|
|
12464
|
+
path: string().optional()
|
|
12295
12465
|
});
|
|
12296
12466
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12297
12467
|
nodeId: string(),
|
|
@@ -12347,10 +12517,47 @@ var LlmProfileSchema = object({
|
|
|
12347
12517
|
baseUrl: string().optional(),
|
|
12348
12518
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12349
12519
|
apiKey: string().optional(),
|
|
12520
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12521
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12522
|
+
* question about a picture nobody sent. */
|
|
12350
12523
|
supportsVision: boolean(),
|
|
12351
12524
|
temperature: number().min(0).max(2).optional(),
|
|
12525
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12526
|
+
topP: number().min(0).max(1).optional(),
|
|
12527
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12528
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12529
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12530
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12531
|
+
topK: number().int().positive().optional(),
|
|
12352
12532
|
maxTokens: number().int().positive().optional(),
|
|
12533
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12534
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12535
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12536
|
+
contextLength: number().int().positive().optional(),
|
|
12537
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12538
|
+
* two system prompts fighting is worse than either alone). */
|
|
12539
|
+
systemPrompt: string().optional(),
|
|
12540
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12353
12541
|
timeoutMs: number().int().positive().default(6e4),
|
|
12542
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12543
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12544
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12545
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12546
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12547
|
+
* GPU load is exactly what happens before them. */
|
|
12548
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12549
|
+
/** Output started then stopped. */
|
|
12550
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12551
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12552
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12553
|
+
retry: LlmRetryPolicySchema.default({
|
|
12554
|
+
enabled: false,
|
|
12555
|
+
maxAttempts: 1
|
|
12556
|
+
}),
|
|
12557
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12558
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12559
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12560
|
+
toolsEnabled: boolean().default(false),
|
|
12354
12561
|
extraHeaders: record(string(), string()).optional(),
|
|
12355
12562
|
/** kind === 'managed-local' only (spec §4). */
|
|
12356
12563
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12400,6 +12607,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12400
12607
|
/** Vision models: companion projector file. */
|
|
12401
12608
|
mmprojUrl: string().optional()
|
|
12402
12609
|
});
|
|
12610
|
+
/**
|
|
12611
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12612
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12613
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12614
|
+
* exception.
|
|
12615
|
+
*
|
|
12616
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12617
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12618
|
+
*/
|
|
12619
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12620
|
+
ok: literal(true),
|
|
12621
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12622
|
+
model: ManagedModelRefSchema,
|
|
12623
|
+
label: string(),
|
|
12624
|
+
repo: string(),
|
|
12625
|
+
quantization: string(),
|
|
12626
|
+
purpose: _enum(["text", "vision"]),
|
|
12627
|
+
totalBytes: number(),
|
|
12628
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12629
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12630
|
+
extraFilenames: array(string())
|
|
12631
|
+
}), object({
|
|
12632
|
+
ok: literal(false),
|
|
12633
|
+
code: string(),
|
|
12634
|
+
message: string(),
|
|
12635
|
+
candidates: array(string()).optional(),
|
|
12636
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12637
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12638
|
+
requiredBytes: number().optional()
|
|
12639
|
+
})]);
|
|
12403
12640
|
var LlmRuntimeNodeSchema = object({
|
|
12404
12641
|
nodeId: string(),
|
|
12405
12642
|
reachable: boolean(),
|
|
@@ -12412,7 +12649,10 @@ var ProfileRefInputSchema = object({
|
|
|
12412
12649
|
addonId: string(),
|
|
12413
12650
|
profileId: string()
|
|
12414
12651
|
});
|
|
12415
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12652
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12653
|
+
addonId: string().optional(),
|
|
12654
|
+
requestId: string()
|
|
12655
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12416
12656
|
kind: "mutation",
|
|
12417
12657
|
auth: "admin"
|
|
12418
12658
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12433,6 +12673,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12433
12673
|
consumer: string().optional(),
|
|
12434
12674
|
profileId: string().optional()
|
|
12435
12675
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
12676
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12677
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12678
|
+
ref: string(),
|
|
12679
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12680
|
+
maxBytes: number().positive().optional()
|
|
12681
|
+
}), HfModelResolutionSchema, {
|
|
12682
|
+
kind: "mutation",
|
|
12683
|
+
auth: "admin"
|
|
12684
|
+
}), method(object({
|
|
12436
12685
|
nodeId: string(),
|
|
12437
12686
|
model: ManagedModelRefSchema
|
|
12438
12687
|
}), _void(), {
|
|
@@ -12992,11 +13241,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12992
13241
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12993
13242
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12994
13243
|
* differently.
|
|
13244
|
+
*
|
|
13245
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13246
|
+
*
|
|
13247
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13248
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13249
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13250
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13251
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13252
|
+
* honestly.
|
|
13253
|
+
*
|
|
13254
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13255
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13256
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13257
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13258
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13259
|
+
*
|
|
13260
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13261
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13262
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13263
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13264
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12995
13265
|
*/
|
|
12996
13266
|
var NotificationActionIconSchema = _enum([
|
|
12997
13267
|
"acknowledge",
|
|
12998
13268
|
"dismiss",
|
|
12999
13269
|
"silence",
|
|
13270
|
+
"snooze",
|
|
13000
13271
|
"view",
|
|
13001
13272
|
"play",
|
|
13002
13273
|
"open",
|
|
@@ -13004,9 +13275,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13004
13275
|
"lock",
|
|
13005
13276
|
"unlock",
|
|
13006
13277
|
"arm",
|
|
13278
|
+
"arm-home",
|
|
13279
|
+
"arm-away",
|
|
13280
|
+
"arm-night",
|
|
13007
13281
|
"disarm",
|
|
13008
13282
|
"light",
|
|
13009
|
-
"alert"
|
|
13283
|
+
"alert",
|
|
13284
|
+
"camera"
|
|
13010
13285
|
]);
|
|
13011
13286
|
/** A single tap-through action button. */
|
|
13012
13287
|
var NotificationActionSchema = object({
|
|
@@ -13206,6 +13481,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13206
13481
|
targetId: string(),
|
|
13207
13482
|
enabled: boolean()
|
|
13208
13483
|
}), _void(), { kind: "mutation" });
|
|
13484
|
+
new Set([
|
|
13485
|
+
{
|
|
13486
|
+
id: "person",
|
|
13487
|
+
name: "Person"
|
|
13488
|
+
},
|
|
13489
|
+
{
|
|
13490
|
+
id: "vehicle",
|
|
13491
|
+
name: "Vehicle"
|
|
13492
|
+
},
|
|
13493
|
+
{
|
|
13494
|
+
id: "animal",
|
|
13495
|
+
name: "Animal"
|
|
13496
|
+
},
|
|
13497
|
+
{
|
|
13498
|
+
id: "package",
|
|
13499
|
+
name: "Package"
|
|
13500
|
+
}
|
|
13501
|
+
].map((l) => l.id));
|
|
13209
13502
|
var COCO_TO_MACRO = {
|
|
13210
13503
|
mapping: {
|
|
13211
13504
|
person: "person",
|
|
@@ -13998,11 +14291,15 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13998
14291
|
"stream-offline",
|
|
13999
14292
|
"node-online",
|
|
14000
14293
|
"node-offline",
|
|
14294
|
+
"node-inference-unavailable",
|
|
14295
|
+
"detection-blind",
|
|
14001
14296
|
"addon-update-available",
|
|
14002
14297
|
"server-update-available",
|
|
14003
14298
|
"alarm-triggered",
|
|
14004
14299
|
"alarm-armed",
|
|
14005
14300
|
"alarm-disarmed",
|
|
14301
|
+
"alarm-arming",
|
|
14302
|
+
"alarm-arm-refused",
|
|
14006
14303
|
"camera-online",
|
|
14007
14304
|
"camera-offline",
|
|
14008
14305
|
"camera-disabled",
|
|
@@ -14057,7 +14354,16 @@ var NcScheduleSchema = object({
|
|
|
14057
14354
|
});
|
|
14058
14355
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14059
14356
|
var NcPlateMatcherSchema = object({
|
|
14060
|
-
|
|
14357
|
+
/**
|
|
14358
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14359
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14360
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14361
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14362
|
+
*
|
|
14363
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14364
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14365
|
+
*/
|
|
14366
|
+
values: array(string().min(1)),
|
|
14061
14367
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14062
14368
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14063
14369
|
});
|
|
@@ -14091,28 +14397,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14091
14397
|
/**
|
|
14092
14398
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14093
14399
|
*
|
|
14094
|
-
*
|
|
14095
|
-
*
|
|
14096
|
-
*
|
|
14097
|
-
*
|
|
14098
|
-
*
|
|
14099
|
-
*
|
|
14100
|
-
*
|
|
14101
|
-
*
|
|
14102
|
-
*
|
|
14103
|
-
*
|
|
14104
|
-
*
|
|
14105
|
-
*
|
|
14106
|
-
*
|
|
14107
|
-
*
|
|
14108
|
-
*
|
|
14109
|
-
*
|
|
14110
|
-
*
|
|
14111
|
-
*
|
|
14112
|
-
*
|
|
14113
|
-
*
|
|
14114
|
-
*
|
|
14115
|
-
* `
|
|
14400
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14401
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14402
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14403
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14404
|
+
*
|
|
14405
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14406
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14407
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14408
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14409
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14410
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14411
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14412
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14413
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14414
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14415
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14416
|
+
* seconds is 100% of nothing.
|
|
14417
|
+
*
|
|
14418
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14419
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14420
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14421
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14422
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14423
|
+
* the wrong question to ask of a sparse classifier.
|
|
14424
|
+
*
|
|
14425
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14426
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14427
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14428
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14429
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14116
14430
|
*
|
|
14117
14431
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14118
14432
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14120,13 +14434,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14120
14434
|
* an operator who typed `dog` mean the same thing.
|
|
14121
14435
|
*/
|
|
14122
14436
|
var NcAudioConditionSchema = object({
|
|
14123
|
-
/**
|
|
14437
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14124
14438
|
labels: array(string().min(1)).min(1).optional(),
|
|
14125
|
-
/**
|
|
14439
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14126
14440
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14127
|
-
/**
|
|
14441
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14128
14442
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14129
|
-
/**
|
|
14443
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14130
14444
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14131
14445
|
});
|
|
14132
14446
|
/**
|
|
@@ -14264,13 +14578,81 @@ var NcRuleActionsSchema = object({
|
|
|
14264
14578
|
*/
|
|
14265
14579
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14266
14580
|
});
|
|
14581
|
+
/**
|
|
14582
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14583
|
+
*
|
|
14584
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14585
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14586
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14587
|
+
*
|
|
14588
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14589
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14590
|
+
*/
|
|
14591
|
+
var NcDeviceStateConditionSchema = object({
|
|
14592
|
+
deviceId: number().int(),
|
|
14593
|
+
/** Any of these matches. */
|
|
14594
|
+
states: array(string().min(1)).min(1)
|
|
14595
|
+
});
|
|
14596
|
+
/**
|
|
14597
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14598
|
+
*
|
|
14599
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14600
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14601
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14602
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14603
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14604
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14605
|
+
* kind exist for it — see D159.
|
|
14606
|
+
*
|
|
14607
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14608
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14609
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14610
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14611
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14612
|
+
*
|
|
14613
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14614
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14615
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14616
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14617
|
+
* override one rule against the scene's own default.
|
|
14618
|
+
*
|
|
14619
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14620
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14621
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14622
|
+
* evidence, in either direction.
|
|
14623
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14624
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14625
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14626
|
+
* reason the operator asked for a latch.
|
|
14627
|
+
*
|
|
14628
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14629
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14630
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14631
|
+
* said out loud in the log rather than dropped in silence.
|
|
14632
|
+
*/
|
|
14633
|
+
var NcSceneConditionSchema = object({
|
|
14634
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14635
|
+
sceneId: string().min(1),
|
|
14636
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14637
|
+
deviceId: number().int().optional(),
|
|
14638
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14639
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14640
|
+
/**
|
|
14641
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14642
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14643
|
+
*/
|
|
14644
|
+
latched: boolean().optional()
|
|
14645
|
+
});
|
|
14267
14646
|
var NcConditionsSchema = object({
|
|
14268
14647
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14269
|
-
deviceState:
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14648
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14649
|
+
/**
|
|
14650
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14651
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14652
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14653
|
+
* {@link NcSceneCondition} and D159.
|
|
14654
|
+
*/
|
|
14655
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14274
14656
|
/** Device scope — absent = all devices. */
|
|
14275
14657
|
devices: array(number()).optional(),
|
|
14276
14658
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14296,18 +14678,47 @@ var NcConditionsSchema = object({
|
|
|
14296
14678
|
*/
|
|
14297
14679
|
labelEquals: array(string().min(1)).optional(),
|
|
14298
14680
|
/**
|
|
14299
|
-
*
|
|
14300
|
-
*
|
|
14301
|
-
*
|
|
14681
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
14682
|
+
* is about recognised people at all.
|
|
14683
|
+
*
|
|
14684
|
+
* Three states, and the empty one is the point:
|
|
14685
|
+
*
|
|
14686
|
+
* | value | meaning |
|
|
14687
|
+
* | --- | --- |
|
|
14688
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
14689
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
14690
|
+
* | a list | only these identities |
|
|
14691
|
+
*
|
|
14692
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
14693
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
14694
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
14695
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
14696
|
+
* with the list under it is worse than no switch (D62).
|
|
14697
|
+
*
|
|
14698
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
14699
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
14700
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
14701
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
14702
|
+
* `{{label}}` renders.
|
|
14703
|
+
*
|
|
14704
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
14705
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
14706
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
14707
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
14708
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14302
14709
|
*/
|
|
14303
14710
|
identities: array(string().min(1)).optional(),
|
|
14304
|
-
/**
|
|
14711
|
+
/**
|
|
14712
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
14713
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
14714
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
14715
|
+
*/
|
|
14305
14716
|
plates: NcPlateMatcherSchema.optional(),
|
|
14306
14717
|
/**
|
|
14307
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14308
|
-
*
|
|
14309
|
-
* identity
|
|
14310
|
-
*
|
|
14718
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
14719
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
14720
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
14721
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14311
14722
|
*/
|
|
14312
14723
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14313
14724
|
/**
|
|
@@ -14699,7 +15110,80 @@ var NcRuleInputSchema = object({
|
|
|
14699
15110
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
14700
15111
|
* did, and absent is the only way to say that without a migration.
|
|
14701
15112
|
*/
|
|
14702
|
-
confirm: NcConfirmSchema.optional()
|
|
15113
|
+
confirm: NcConfirmSchema.optional(),
|
|
15114
|
+
/**
|
|
15115
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15116
|
+
*
|
|
15117
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15118
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15119
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15120
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15121
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15122
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15123
|
+
*
|
|
15124
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15125
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15126
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15127
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15128
|
+
*
|
|
15129
|
+
* | value | what happens |
|
|
15130
|
+
* | --- | --- |
|
|
15131
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15132
|
+
* | 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) |
|
|
15133
|
+
*
|
|
15134
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15135
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15136
|
+
* rule authored before this field meant.
|
|
15137
|
+
*
|
|
15138
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15139
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15140
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15141
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15142
|
+
*/
|
|
15143
|
+
waitForEnhancement: boolean().optional(),
|
|
15144
|
+
/**
|
|
15145
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15146
|
+
*
|
|
15147
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15148
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15149
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15150
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15151
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15152
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15153
|
+
*
|
|
15154
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15155
|
+
*
|
|
15156
|
+
* ### Why an idle cutoff and not a window
|
|
15157
|
+
*
|
|
15158
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15159
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15160
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15161
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15162
|
+
*
|
|
15163
|
+
* ### What it replaces
|
|
15164
|
+
*
|
|
15165
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15166
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15167
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15168
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15169
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15170
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15171
|
+
* throttled by the window its own first member spent.
|
|
15172
|
+
*
|
|
15173
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15174
|
+
*
|
|
15175
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15176
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15177
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15178
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15179
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15180
|
+
* path. Neither combination fires twice for one subject.
|
|
15181
|
+
*
|
|
15182
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15183
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15184
|
+
* field existed.
|
|
15185
|
+
*/
|
|
15186
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
14703
15187
|
});
|
|
14704
15188
|
/**
|
|
14705
15189
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -14806,6 +15290,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14806
15290
|
"occupancy",
|
|
14807
15291
|
"audio",
|
|
14808
15292
|
"deviceState",
|
|
15293
|
+
"scene",
|
|
14809
15294
|
"systemEvent"
|
|
14810
15295
|
]),
|
|
14811
15296
|
operator: _enum([
|
|
@@ -15211,7 +15696,87 @@ var MethodAccessSchema = _enum([
|
|
|
15211
15696
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15212
15697
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15213
15698
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15214
|
-
|
|
15699
|
+
/**
|
|
15700
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
15701
|
+
*
|
|
15702
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
15703
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
15704
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
15705
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
15706
|
+
*
|
|
15707
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
15708
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
15709
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
15710
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
15711
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
15712
|
+
* is NOT covered until the grant is edited.
|
|
15713
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
15714
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
15715
|
+
* re-resolves on the next request.
|
|
15716
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
15717
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
15718
|
+
* null/unset location matches NO `locations` selector.
|
|
15719
|
+
*/
|
|
15720
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
15721
|
+
object({ kind: literal("all") }),
|
|
15722
|
+
object({
|
|
15723
|
+
kind: literal("ids"),
|
|
15724
|
+
ids: array(number().int()).min(1)
|
|
15725
|
+
}),
|
|
15726
|
+
object({
|
|
15727
|
+
kind: literal("types"),
|
|
15728
|
+
types: array(_enum(DeviceType)).min(1)
|
|
15729
|
+
}),
|
|
15730
|
+
object({
|
|
15731
|
+
kind: literal("locations"),
|
|
15732
|
+
locations: array(string().min(1)).min(1)
|
|
15733
|
+
})
|
|
15734
|
+
]);
|
|
15735
|
+
var DeviceTokenScopeSchema = object({
|
|
15736
|
+
type: literal("device"),
|
|
15737
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
15738
|
+
selector: DeviceSelectorSchema,
|
|
15739
|
+
access: array(MethodAccessSchema).min(1),
|
|
15740
|
+
/**
|
|
15741
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
15742
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
15743
|
+
* Direction is parent → children ONLY.
|
|
15744
|
+
*
|
|
15745
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
15746
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
15747
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
15748
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
15749
|
+
* explicitly to override that default per grant.
|
|
15750
|
+
*/
|
|
15751
|
+
includeLinked: boolean().optional()
|
|
15752
|
+
});
|
|
15753
|
+
/**
|
|
15754
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
15755
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
15756
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
15757
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
15758
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
15759
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
15760
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
15761
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
15762
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
15763
|
+
*/
|
|
15764
|
+
function migrateLegacyTokenScope(raw) {
|
|
15765
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
15766
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
15767
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
15768
|
+
const targets = Reflect.get(raw, "targets");
|
|
15769
|
+
if (!Array.isArray(targets)) return raw;
|
|
15770
|
+
return {
|
|
15771
|
+
type: "device",
|
|
15772
|
+
selector: {
|
|
15773
|
+
kind: "ids",
|
|
15774
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
15775
|
+
},
|
|
15776
|
+
access: Reflect.get(raw, "access")
|
|
15777
|
+
};
|
|
15778
|
+
}
|
|
15779
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15215
15780
|
object({
|
|
15216
15781
|
type: literal("category"),
|
|
15217
15782
|
target: CapScopeSchema,
|
|
@@ -15227,18 +15792,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15227
15792
|
target: string(),
|
|
15228
15793
|
access: array(MethodAccessSchema).min(1)
|
|
15229
15794
|
}),
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
/**
|
|
15233
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15234
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15235
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15236
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15237
|
-
*/
|
|
15238
|
-
targets: array(string()).min(1),
|
|
15239
|
-
access: array(MethodAccessSchema).min(1)
|
|
15240
|
-
})
|
|
15241
|
-
]);
|
|
15795
|
+
DeviceTokenScopeSchema
|
|
15796
|
+
]));
|
|
15242
15797
|
object({
|
|
15243
15798
|
id: string(),
|
|
15244
15799
|
username: string(),
|
|
@@ -15555,7 +16110,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15555
16110
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15556
16111
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15557
16112
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15558
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16113
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15559
16114
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15560
16115
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15561
16116
|
* (`getObjectEvents` et al.).
|
|
@@ -15691,7 +16246,21 @@ union([literal(1), literal(2)]);
|
|
|
15691
16246
|
var LabelAttributionSchema = object({
|
|
15692
16247
|
stepId: string(),
|
|
15693
16248
|
modelId: string().optional(),
|
|
15694
|
-
decidedAt: number()
|
|
16249
|
+
decidedAt: number(),
|
|
16250
|
+
/**
|
|
16251
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16252
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16253
|
+
*
|
|
16254
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16255
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16256
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16257
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16258
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16259
|
+
*
|
|
16260
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16261
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16262
|
+
*/
|
|
16263
|
+
identityId: string().optional()
|
|
15695
16264
|
});
|
|
15696
16265
|
/**
|
|
15697
16266
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -15828,6 +16397,28 @@ var TrackSchema = object({
|
|
|
15828
16397
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
15829
16398
|
*/
|
|
15830
16399
|
hasFace: boolean().optional(),
|
|
16400
|
+
/**
|
|
16401
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16402
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16403
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16404
|
+
*
|
|
16405
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16406
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16407
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16408
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16409
|
+
* stop. This is the composition note that makes the row true.
|
|
16410
|
+
*
|
|
16411
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16412
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16413
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16414
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16415
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16416
|
+
*
|
|
16417
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16418
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16419
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16420
|
+
*/
|
|
16421
|
+
hasRider: boolean().optional(),
|
|
15831
16422
|
...TrackFlagFields,
|
|
15832
16423
|
...TrackRetrainFields
|
|
15833
16424
|
});
|
|
@@ -16177,7 +16768,10 @@ var RecentTracksQueryInput = object({
|
|
|
16177
16768
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16178
16769
|
cursor: string().optional(),
|
|
16179
16770
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16180
|
-
projection: TrackProjectionSchema.optional()
|
|
16771
|
+
projection: TrackProjectionSchema.optional(),
|
|
16772
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
16773
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
16774
|
+
includeStationary: boolean().optional()
|
|
16181
16775
|
});
|
|
16182
16776
|
var RecentTracksPageSchema = object({
|
|
16183
16777
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16395,7 +16989,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16395
16989
|
zone: TrackZoneFilterSchema.optional(),
|
|
16396
16990
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16397
16991
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16398
|
-
projection: TrackProjectionSchema.optional()
|
|
16992
|
+
projection: TrackProjectionSchema.optional(),
|
|
16993
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
16994
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
16995
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
16996
|
+
includeStationary: boolean().optional()
|
|
16399
16997
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16400
16998
|
kind: "mutation",
|
|
16401
16999
|
auth: "admin"
|
|
@@ -16559,11 +17157,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16559
17157
|
auth: "admin"
|
|
16560
17158
|
}), method(object({
|
|
16561
17159
|
eventId: string(),
|
|
16562
|
-
kind: MediaFileKindEnum.optional()
|
|
17160
|
+
kind: MediaFileKindEnum.optional(),
|
|
17161
|
+
deviceId: number()
|
|
16563
17162
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16564
17163
|
trackId: string(),
|
|
16565
|
-
kinds: array(MediaFileKindEnum).optional()
|
|
16566
|
-
|
|
17164
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17165
|
+
deviceId: number()
|
|
17166
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17167
|
+
trackId: string(),
|
|
17168
|
+
deviceId: number()
|
|
17169
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16567
17170
|
kind: "mutation",
|
|
16568
17171
|
auth: "admin"
|
|
16569
17172
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17223,6 +17826,17 @@ var maxSessionHoldMsField = {
|
|
|
17223
17826
|
default: 12e4,
|
|
17224
17827
|
step: 5e3
|
|
17225
17828
|
};
|
|
17829
|
+
/**
|
|
17830
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
17831
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
17832
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
17833
|
+
*/
|
|
17834
|
+
var audioMotionWindowMsField = {
|
|
17835
|
+
min: 5e3,
|
|
17836
|
+
max: 6e5,
|
|
17837
|
+
default: 9e4,
|
|
17838
|
+
step: 5e3
|
|
17839
|
+
};
|
|
17226
17840
|
var motionFpsField = {
|
|
17227
17841
|
min: 1,
|
|
17228
17842
|
max: 30,
|
|
@@ -17235,10 +17849,26 @@ var detectionFpsField = {
|
|
|
17235
17849
|
default: 10,
|
|
17236
17850
|
step: 1
|
|
17237
17851
|
};
|
|
17852
|
+
/**
|
|
17853
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17854
|
+
*
|
|
17855
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17856
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17857
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17858
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17859
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17860
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17861
|
+
*
|
|
17862
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17863
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17864
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17865
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17866
|
+
* that ships with an addon deploy.
|
|
17867
|
+
*/
|
|
17238
17868
|
var occupancyRecheckSecField = {
|
|
17239
17869
|
min: 0,
|
|
17240
17870
|
max: 300,
|
|
17241
|
-
default:
|
|
17871
|
+
default: 300,
|
|
17242
17872
|
step: 5
|
|
17243
17873
|
};
|
|
17244
17874
|
var occupancyRecheckFramesField = {
|
|
@@ -17383,6 +18013,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17383
18013
|
* resolved `CameraDetectionConfig`.
|
|
17384
18014
|
*/
|
|
17385
18015
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18016
|
+
/**
|
|
18017
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18018
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18019
|
+
*
|
|
18020
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18021
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18022
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18023
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18024
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18025
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18026
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18027
|
+
*
|
|
18028
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18029
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18030
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18031
|
+
*
|
|
18032
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18033
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18034
|
+
* `maxSessionHoldMs`.
|
|
18035
|
+
*/
|
|
18036
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17386
18037
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17387
18038
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17388
18039
|
motionStreamId: string(),
|
|
@@ -17436,15 +18087,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17436
18087
|
*/
|
|
17437
18088
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17438
18089
|
/**
|
|
17439
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17440
|
-
*
|
|
17441
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17442
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17443
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18090
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18091
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17444
18092
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17445
18093
|
* (and only render) when this is enabled.
|
|
17446
|
-
|
|
17447
|
-
|
|
18094
|
+
*
|
|
18095
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18096
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18097
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18098
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18099
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18100
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18101
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18102
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18103
|
+
*/
|
|
18104
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17448
18105
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17449
18106
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17450
18107
|
/**
|
|
@@ -17472,7 +18129,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17472
18129
|
*/
|
|
17473
18130
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17474
18131
|
});
|
|
17475
|
-
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;
|
|
18132
|
+
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;
|
|
17476
18133
|
/**
|
|
17477
18134
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17478
18135
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18577,7 +19234,16 @@ targets: array(object({
|
|
|
18577
19234
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18578
19235
|
* NOT refresh in the background. A surface should say so rather than
|
|
18579
19236
|
* present it as current. */
|
|
18580
|
-
sleeping: boolean()
|
|
19237
|
+
sleeping: boolean(),
|
|
19238
|
+
/** Current device state rendered over the cached frame. State images
|
|
19239
|
+
* remain authoritative even when their photographic background is
|
|
19240
|
+
* old; null means the link must carry a current camera frame. */
|
|
19241
|
+
stateReason: _enum([
|
|
19242
|
+
"disabled",
|
|
19243
|
+
"sleeping",
|
|
19244
|
+
"unreachable",
|
|
19245
|
+
"waking"
|
|
19246
|
+
]).nullable()
|
|
18581
19247
|
})))
|
|
18582
19248
|
},
|
|
18583
19249
|
status: {
|
|
@@ -20105,6 +20771,25 @@ var BatteryStatusSchema = object({
|
|
|
20105
20771
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20106
20772
|
lastUpdated: number(),
|
|
20107
20773
|
/**
|
|
20774
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
20775
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
20776
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
20777
|
+
*
|
|
20778
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
20779
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
20780
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
20781
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
20782
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
20783
|
+
*
|
|
20784
|
+
* It is deliberately NOT a clock in the
|
|
20785
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
20786
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
20787
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
20788
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
20789
|
+
* SQLite commit per round-trip.
|
|
20790
|
+
*/
|
|
20791
|
+
lastContactAt: number().optional(),
|
|
20792
|
+
/**
|
|
20108
20793
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20109
20794
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20110
20795
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -23684,7 +24369,7 @@ method(object({
|
|
|
23684
24369
|
toMs: number()
|
|
23685
24370
|
}), RecordingAvailabilitySchema, {
|
|
23686
24371
|
kind: "query",
|
|
23687
|
-
auth: "
|
|
24372
|
+
auth: "protected"
|
|
23688
24373
|
}), method(object({
|
|
23689
24374
|
deviceId: number(),
|
|
23690
24375
|
fromMs: number(),
|
|
@@ -23692,14 +24377,14 @@ method(object({
|
|
|
23692
24377
|
tzOffsetMinutes: number()
|
|
23693
24378
|
}), RecordingDaysSchema, {
|
|
23694
24379
|
kind: "query",
|
|
23695
|
-
auth: "
|
|
24380
|
+
auth: "protected"
|
|
23696
24381
|
}), method(object({
|
|
23697
24382
|
deviceId: number(),
|
|
23698
24383
|
fromMs: number(),
|
|
23699
24384
|
toMs: number()
|
|
23700
24385
|
}), RecordingManifestSchema, {
|
|
23701
24386
|
kind: "query",
|
|
23702
|
-
auth: "
|
|
24387
|
+
auth: "protected"
|
|
23703
24388
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
23704
24389
|
kind: "query",
|
|
23705
24390
|
auth: "admin"
|
|
@@ -23989,14 +24674,77 @@ method(object({
|
|
|
23989
24674
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
23990
24675
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
23991
24676
|
*
|
|
23992
|
-
*
|
|
23993
|
-
*
|
|
23994
|
-
*
|
|
23995
|
-
*
|
|
23996
|
-
|
|
23997
|
-
|
|
23998
|
-
*
|
|
24677
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
24678
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
24679
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
24680
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
24681
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
24682
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
24683
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
24684
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
24685
|
+
*
|
|
24686
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
24687
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
24688
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
24689
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
24690
|
+
*
|
|
24691
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
24692
|
+
* availability change; consumers never poll.
|
|
24693
|
+
*/
|
|
24694
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
24695
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
24696
|
+
* Open by design so more can be added without a wire break.
|
|
24697
|
+
*
|
|
24698
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
24699
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
24700
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
24701
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
23999
24702
|
var SceneConditionSchema = string();
|
|
24703
|
+
/**
|
|
24704
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
24705
|
+
*
|
|
24706
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
24707
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
24708
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
24709
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
24710
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
24711
|
+
* working without it rather than degrading into a permanent complaint.
|
|
24712
|
+
*
|
|
24713
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
24714
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
24715
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
24716
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
24717
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
24718
|
+
* configuration choice instead of a nightly fault.
|
|
24719
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
24720
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
24721
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
24722
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
24723
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
24724
|
+
*
|
|
24725
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
24726
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
24727
|
+
* there would hide a scene the operator never finished setting up.
|
|
24728
|
+
*/
|
|
24729
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
24730
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
24731
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
24732
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
24733
|
+
* and never counts toward hysteresis in either direction. */
|
|
24734
|
+
var SceneVerdictSchema = _enum([
|
|
24735
|
+
"matched",
|
|
24736
|
+
"diverged",
|
|
24737
|
+
"unknown"
|
|
24738
|
+
]);
|
|
24739
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
24740
|
+
* silence that reads as "nothing has happened". */
|
|
24741
|
+
var SceneUnavailableSchema = _enum([
|
|
24742
|
+
"no-reference-for-condition",
|
|
24743
|
+
"view-shifted",
|
|
24744
|
+
"no-vision-profile",
|
|
24745
|
+
"encoder-model-changed",
|
|
24746
|
+
"no-snapshot"
|
|
24747
|
+
]);
|
|
24000
24748
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
24001
24749
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
24002
24750
|
var SceneReferenceSchema = object({
|
|
@@ -24004,7 +24752,14 @@ var SceneReferenceSchema = object({
|
|
|
24004
24752
|
modelId: string(),
|
|
24005
24753
|
condition: SceneConditionSchema,
|
|
24006
24754
|
capturedAt: number(),
|
|
24007
|
-
thumbnailMediaId: string().optional()
|
|
24755
|
+
thumbnailMediaId: string().optional(),
|
|
24756
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
24757
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
24758
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
24759
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
24760
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
24761
|
+
* transition, not per poll. */
|
|
24762
|
+
anchorEmbedding: array(number()).optional()
|
|
24008
24763
|
});
|
|
24009
24764
|
var SceneMonitorStateSchema = object({
|
|
24010
24765
|
id: string(),
|
|
@@ -24026,6 +24781,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
24026
24781
|
profileId: string().optional(),
|
|
24027
24782
|
hysteresisCount: number().int().positive()
|
|
24028
24783
|
})]);
|
|
24784
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
24785
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
24786
|
+
* out in silence rather than reporting a fault every night. */
|
|
24787
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
24788
|
+
/**
|
|
24789
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
24790
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
24791
|
+
*
|
|
24792
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
24793
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
24794
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
24795
|
+
* stateful claim that costs the operator a trip to reset.
|
|
24796
|
+
*/
|
|
24797
|
+
var SceneConfirmSchema = object({
|
|
24798
|
+
enabled: boolean().default(false),
|
|
24799
|
+
prompt: string().min(1).max(1e3),
|
|
24800
|
+
profileId: string().optional(),
|
|
24801
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
24802
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
24803
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
24804
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
24805
|
+
});
|
|
24029
24806
|
var SceneMonitorSchema = object({
|
|
24030
24807
|
id: string(),
|
|
24031
24808
|
label: string(),
|
|
@@ -24044,7 +24821,56 @@ var SceneMonitorSchema = object({
|
|
|
24044
24821
|
lastConfidence: number().nullable(),
|
|
24045
24822
|
currentCondition: SceneConditionSchema.nullable(),
|
|
24046
24823
|
availability: _enum(["ok", "unavailable"]),
|
|
24047
|
-
unavailableReason: string().nullable()
|
|
24824
|
+
unavailableReason: string().nullable(),
|
|
24825
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
24826
|
+
baselineStateId: string().nullable(),
|
|
24827
|
+
/** Which boolean drives notification rules and any export. */
|
|
24828
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
24829
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
24830
|
+
verdict: SceneVerdictSchema,
|
|
24831
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
24832
|
+
latched: boolean(),
|
|
24833
|
+
/** Last reset (or creation). */
|
|
24834
|
+
armedAt: number(),
|
|
24835
|
+
divergedAt: number().nullable(),
|
|
24836
|
+
restoredAt: number().nullable(),
|
|
24837
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
24838
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
24839
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
24840
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
24841
|
+
/** An observation only advances the pending count when it is at least this
|
|
24842
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
24843
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
24844
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
24845
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
24846
|
+
confirm: SceneConfirmSchema.optional(),
|
|
24847
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
24848
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
24849
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
24850
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
24851
|
+
* automation can react to the bin coming back without the operator's own
|
|
24852
|
+
* alarm silently clearing itself. */
|
|
24853
|
+
autoRestore: boolean().default(false),
|
|
24854
|
+
/** What to do when the current light has no reference of its own. See
|
|
24855
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
24856
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
24857
|
+
/**
|
|
24858
|
+
* The light whose checks are currently being SAT OUT under
|
|
24859
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
24860
|
+
*
|
|
24861
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
24862
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
24863
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
24864
|
+
* line, because the alternative is a scene that silently stops answering
|
|
24865
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
24866
|
+
* read as a broken one.
|
|
24867
|
+
*/
|
|
24868
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
24869
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
24870
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
24871
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
24872
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
24873
|
+
coveredConditions: array(SceneConditionSchema)
|
|
24048
24874
|
});
|
|
24049
24875
|
var SceneMonitorStatusSchema = object({
|
|
24050
24876
|
monitors: array(SceneMonitorSchema),
|
|
@@ -24077,7 +24903,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
|
|
|
24077
24903
|
"both"
|
|
24078
24904
|
]).optional(),
|
|
24079
24905
|
checkIntervalSec: number().optional(),
|
|
24080
|
-
check: SceneCheckSchema.optional()
|
|
24906
|
+
check: SceneCheckSchema.optional(),
|
|
24907
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
24908
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
24909
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
24910
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
24911
|
+
autoRestore: boolean().optional(),
|
|
24912
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
24913
|
+
/** `null` clears the vision-model adjudicator. */
|
|
24914
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
24081
24915
|
})
|
|
24082
24916
|
}), _void(), {
|
|
24083
24917
|
kind: "mutation",
|
|
@@ -24114,6 +24948,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
|
|
|
24114
24948
|
}), _void(), {
|
|
24115
24949
|
kind: "mutation",
|
|
24116
24950
|
auth: "admin"
|
|
24951
|
+
}), method(object({
|
|
24952
|
+
deviceId: number(),
|
|
24953
|
+
monitorId: string(),
|
|
24954
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
24955
|
+
recapture: boolean().optional()
|
|
24956
|
+
}), _void(), {
|
|
24957
|
+
kind: "mutation",
|
|
24958
|
+
auth: "admin"
|
|
24117
24959
|
});
|
|
24118
24960
|
/**
|
|
24119
24961
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -24267,6 +25109,16 @@ var CamStreamDescriptorSchema = object({
|
|
|
24267
25109
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
24268
25110
|
metadata: record(string(), unknown()).optional()
|
|
24269
25111
|
});
|
|
25112
|
+
object({
|
|
25113
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
25114
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
25115
|
+
* one the camera itself once produced. */
|
|
25116
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
25117
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
25118
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
25119
|
+
* re-read. */
|
|
25120
|
+
lastFetchedAt: number()
|
|
25121
|
+
});
|
|
24270
25122
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
|
|
24271
25123
|
/** One of the camera's stream profiles. */
|
|
24272
25124
|
var StreamProfileSchema = _enum([
|
|
@@ -24422,12 +25274,64 @@ var NetworkAddressSchema = object({
|
|
|
24422
25274
|
family: string(),
|
|
24423
25275
|
internal: boolean()
|
|
24424
25276
|
});
|
|
25277
|
+
/**
|
|
25278
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
25279
|
+
* numbers.
|
|
25280
|
+
*
|
|
25281
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
25282
|
+
* nothing overwrites it.
|
|
25283
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
25284
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
25285
|
+
* the sun-times consumers otherwise fall back to.
|
|
25286
|
+
*
|
|
25287
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
25288
|
+
* own input will eventually trust the guess.
|
|
25289
|
+
*/
|
|
25290
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
25291
|
+
/**
|
|
25292
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
25293
|
+
*
|
|
25294
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
25295
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
25296
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
25297
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
25298
|
+
* coordinates or presses detect.
|
|
25299
|
+
*/
|
|
25300
|
+
var SiteLocationStatusSchema = object({
|
|
25301
|
+
location: object({
|
|
25302
|
+
/** WGS84 decimal degrees. */
|
|
25303
|
+
latitude: number().min(-90).max(90),
|
|
25304
|
+
longitude: number().min(-180).max(180),
|
|
25305
|
+
source: SiteLocationSourceSchema,
|
|
25306
|
+
/** Epoch ms the value was last written. */
|
|
25307
|
+
updatedAt: number(),
|
|
25308
|
+
/**
|
|
25309
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
25310
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
25311
|
+
*/
|
|
25312
|
+
label: string().optional()
|
|
25313
|
+
}).nullable(),
|
|
25314
|
+
derivationAttemptedAt: number().nullable(),
|
|
25315
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
25316
|
+
derivationError: string().nullable()
|
|
25317
|
+
});
|
|
25318
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
25319
|
+
var SetSiteLocationInputSchema = object({
|
|
25320
|
+
latitude: number().min(-90).max(90),
|
|
25321
|
+
longitude: number().min(-180).max(180)
|
|
25322
|
+
}).nullable();
|
|
24425
25323
|
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(), {
|
|
24426
25324
|
kind: "mutation",
|
|
24427
25325
|
auth: "admin"
|
|
24428
25326
|
}), method(_void(), _void(), {
|
|
24429
25327
|
kind: "mutation",
|
|
24430
25328
|
auth: "admin"
|
|
25329
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
25330
|
+
kind: "mutation",
|
|
25331
|
+
auth: "admin"
|
|
25332
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
25333
|
+
kind: "mutation",
|
|
25334
|
+
auth: "admin"
|
|
24431
25335
|
});
|
|
24432
25336
|
object({
|
|
24433
25337
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -25356,6 +26260,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
25356
26260
|
labels: ["probe not implemented"]
|
|
25357
26261
|
};
|
|
25358
26262
|
}
|
|
26263
|
+
/**
|
|
26264
|
+
* Top-level devices restored at once in {@link onRestoreDevices}.
|
|
26265
|
+
*
|
|
26266
|
+
* Four covers the fleets this ships to without turning a boot into a burst a
|
|
26267
|
+
* camera NVR answers with a refusal. A provider whose upstream is a single
|
|
26268
|
+
* session with a serial command channel (a Baichuan hub, an NVR that
|
|
26269
|
+
* serialises ISAPI) should lower it; nothing needs to raise it.
|
|
26270
|
+
*/
|
|
26271
|
+
restoreConcurrency = 4;
|
|
25359
26272
|
async restoreDevices(savedDevices) {
|
|
25360
26273
|
await this.onRestoreDevices(savedDevices);
|
|
25361
26274
|
if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
|
|
@@ -25387,15 +26300,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
25387
26300
|
*/
|
|
25388
26301
|
async onRestoreDevices(savedDevices) {
|
|
25389
26302
|
const restored = /* @__PURE__ */ new Set();
|
|
25390
|
-
|
|
25391
|
-
|
|
26303
|
+
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
26304
|
+
const restoreOne = async (saved) => {
|
|
25392
26305
|
const Class = this.deviceClasses[saved.type];
|
|
25393
26306
|
if (!Class) {
|
|
25394
26307
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
25395
26308
|
tags: { stableId: saved.stableId },
|
|
25396
26309
|
meta: { type: saved.type }
|
|
25397
26310
|
});
|
|
25398
|
-
|
|
26311
|
+
return;
|
|
25399
26312
|
}
|
|
25400
26313
|
try {
|
|
25401
26314
|
await this.ctx.kernel.devices.create(saved.stableId, Class, {});
|
|
@@ -25409,7 +26322,15 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
25409
26322
|
}
|
|
25410
26323
|
});
|
|
25411
26324
|
}
|
|
25412
|
-
}
|
|
26325
|
+
};
|
|
26326
|
+
let nextTopLevel = 0;
|
|
26327
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
|
|
26328
|
+
for (;;) {
|
|
26329
|
+
const saved = topLevel[nextTopLevel++];
|
|
26330
|
+
if (saved === void 0) return;
|
|
26331
|
+
await restoreOne(saved);
|
|
26332
|
+
}
|
|
26333
|
+
}));
|
|
25413
26334
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
25414
26335
|
for (const saved of childRows) {
|
|
25415
26336
|
const Class = this.deviceClasses[saved.type];
|
|
@@ -27566,6 +28487,12 @@ Object.freeze({
|
|
|
27566
28487
|
addonId: null,
|
|
27567
28488
|
access: "create"
|
|
27568
28489
|
},
|
|
28490
|
+
"llm.cancel": {
|
|
28491
|
+
capName: "llm",
|
|
28492
|
+
capScope: "system",
|
|
28493
|
+
addonId: null,
|
|
28494
|
+
access: "create"
|
|
28495
|
+
},
|
|
27569
28496
|
"llm.deleteModel": {
|
|
27570
28497
|
capName: "llm",
|
|
27571
28498
|
capScope: "system",
|
|
@@ -27650,6 +28577,12 @@ Object.freeze({
|
|
|
27650
28577
|
addonId: null,
|
|
27651
28578
|
access: "view"
|
|
27652
28579
|
},
|
|
28580
|
+
"llm.resolveModelRef": {
|
|
28581
|
+
capName: "llm",
|
|
28582
|
+
capScope: "system",
|
|
28583
|
+
addonId: null,
|
|
28584
|
+
access: "create"
|
|
28585
|
+
},
|
|
27653
28586
|
"llm.setDefault": {
|
|
27654
28587
|
capName: "llm",
|
|
27655
28588
|
capScope: "system",
|
|
@@ -29816,6 +30749,12 @@ Object.freeze({
|
|
|
29816
30749
|
addonId: null,
|
|
29817
30750
|
access: "create"
|
|
29818
30751
|
},
|
|
30752
|
+
"sceneMonitor.resetScene": {
|
|
30753
|
+
capName: "scene-monitor",
|
|
30754
|
+
capScope: "device",
|
|
30755
|
+
addonId: null,
|
|
30756
|
+
access: "delete"
|
|
30757
|
+
},
|
|
29819
30758
|
"sceneMonitor.updateScene": {
|
|
29820
30759
|
capName: "scene-monitor",
|
|
29821
30760
|
capScope: "device",
|
|
@@ -30494,6 +31433,12 @@ Object.freeze({
|
|
|
30494
31433
|
addonId: null,
|
|
30495
31434
|
access: "create"
|
|
30496
31435
|
},
|
|
31436
|
+
"system.detectSiteLocation": {
|
|
31437
|
+
capName: "system",
|
|
31438
|
+
capScope: "system",
|
|
31439
|
+
addonId: null,
|
|
31440
|
+
access: "create"
|
|
31441
|
+
},
|
|
30497
31442
|
"system.featureFlags": {
|
|
30498
31443
|
capName: "system",
|
|
30499
31444
|
capScope: "system",
|
|
@@ -30512,6 +31457,12 @@ Object.freeze({
|
|
|
30512
31457
|
addonId: null,
|
|
30513
31458
|
access: "view"
|
|
30514
31459
|
},
|
|
31460
|
+
"system.getSiteLocation": {
|
|
31461
|
+
capName: "system",
|
|
31462
|
+
capScope: "system",
|
|
31463
|
+
addonId: null,
|
|
31464
|
+
access: "view"
|
|
31465
|
+
},
|
|
30515
31466
|
"system.health": {
|
|
30516
31467
|
capName: "system",
|
|
30517
31468
|
capScope: "system",
|
|
@@ -30536,6 +31487,12 @@ Object.freeze({
|
|
|
30536
31487
|
addonId: null,
|
|
30537
31488
|
access: "create"
|
|
30538
31489
|
},
|
|
31490
|
+
"system.setSiteLocation": {
|
|
31491
|
+
capName: "system",
|
|
31492
|
+
capScope: "system",
|
|
31493
|
+
addonId: null,
|
|
31494
|
+
access: "create"
|
|
31495
|
+
},
|
|
30539
31496
|
"terminalSession.adoptLegacyMonitor": {
|
|
30540
31497
|
capName: "terminal-session",
|
|
30541
31498
|
capScope: "system",
|
|
@@ -31107,6 +32064,1704 @@ Object.freeze({
|
|
|
31107
32064
|
access: "create"
|
|
31108
32065
|
}
|
|
31109
32066
|
});
|
|
32067
|
+
Object.freeze({
|
|
32068
|
+
"accessories.setChildHidden": [{
|
|
32069
|
+
name: "childDeviceId",
|
|
32070
|
+
form: "single",
|
|
32071
|
+
optional: false
|
|
32072
|
+
}, {
|
|
32073
|
+
name: "deviceId",
|
|
32074
|
+
form: "single",
|
|
32075
|
+
optional: false
|
|
32076
|
+
}],
|
|
32077
|
+
"addonSettings.getDeviceSettings": [{
|
|
32078
|
+
name: "deviceId",
|
|
32079
|
+
form: "single",
|
|
32080
|
+
optional: false
|
|
32081
|
+
}],
|
|
32082
|
+
"addonSettings.updateDeviceSettings": [{
|
|
32083
|
+
name: "deviceId",
|
|
32084
|
+
form: "single",
|
|
32085
|
+
optional: false
|
|
32086
|
+
}],
|
|
32087
|
+
"alarmPanel.arm": [{
|
|
32088
|
+
name: "deviceId",
|
|
32089
|
+
form: "single",
|
|
32090
|
+
optional: false
|
|
32091
|
+
}],
|
|
32092
|
+
"alarmPanel.disarm": [{
|
|
32093
|
+
name: "deviceId",
|
|
32094
|
+
form: "single",
|
|
32095
|
+
optional: false
|
|
32096
|
+
}],
|
|
32097
|
+
"alarmPanel.trigger": [{
|
|
32098
|
+
name: "deviceId",
|
|
32099
|
+
form: "single",
|
|
32100
|
+
optional: false
|
|
32101
|
+
}],
|
|
32102
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
32103
|
+
name: "deviceId",
|
|
32104
|
+
form: "single",
|
|
32105
|
+
optional: false
|
|
32106
|
+
}],
|
|
32107
|
+
"audioAnalyzer.classify": [{
|
|
32108
|
+
name: "deviceId",
|
|
32109
|
+
form: "single",
|
|
32110
|
+
optional: true
|
|
32111
|
+
}],
|
|
32112
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
32113
|
+
name: "deviceId",
|
|
32114
|
+
form: "single",
|
|
32115
|
+
optional: false
|
|
32116
|
+
}],
|
|
32117
|
+
"audioMetrics.getHistory": [{
|
|
32118
|
+
name: "deviceId",
|
|
32119
|
+
form: "single",
|
|
32120
|
+
optional: false
|
|
32121
|
+
}],
|
|
32122
|
+
"automationControl.disable": [{
|
|
32123
|
+
name: "deviceId",
|
|
32124
|
+
form: "single",
|
|
32125
|
+
optional: false
|
|
32126
|
+
}],
|
|
32127
|
+
"automationControl.enable": [{
|
|
32128
|
+
name: "deviceId",
|
|
32129
|
+
form: "single",
|
|
32130
|
+
optional: false
|
|
32131
|
+
}],
|
|
32132
|
+
"automationControl.trigger": [{
|
|
32133
|
+
name: "deviceId",
|
|
32134
|
+
form: "single",
|
|
32135
|
+
optional: false
|
|
32136
|
+
}],
|
|
32137
|
+
"battery.wakeForStream": [{
|
|
32138
|
+
name: "deviceId",
|
|
32139
|
+
form: "single",
|
|
32140
|
+
optional: false
|
|
32141
|
+
}],
|
|
32142
|
+
"brightness.setBrightness": [{
|
|
32143
|
+
name: "deviceId",
|
|
32144
|
+
form: "single",
|
|
32145
|
+
optional: false
|
|
32146
|
+
}],
|
|
32147
|
+
"button.press": [{
|
|
32148
|
+
name: "deviceId",
|
|
32149
|
+
form: "single",
|
|
32150
|
+
optional: false
|
|
32151
|
+
}],
|
|
32152
|
+
"cameraCredentials.getCredentials": [{
|
|
32153
|
+
name: "deviceId",
|
|
32154
|
+
form: "single",
|
|
32155
|
+
optional: false
|
|
32156
|
+
}],
|
|
32157
|
+
"cameraStreams.getBrokerStreams": [{
|
|
32158
|
+
name: "deviceId",
|
|
32159
|
+
form: "single",
|
|
32160
|
+
optional: false
|
|
32161
|
+
}],
|
|
32162
|
+
"cameraStreams.getCameraStreams": [{
|
|
32163
|
+
name: "deviceId",
|
|
32164
|
+
form: "single",
|
|
32165
|
+
optional: false
|
|
32166
|
+
}],
|
|
32167
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
32168
|
+
name: "deviceId",
|
|
32169
|
+
form: "single",
|
|
32170
|
+
optional: false
|
|
32171
|
+
}],
|
|
32172
|
+
"cameraStreams.getRtspEntries": [{
|
|
32173
|
+
name: "deviceId",
|
|
32174
|
+
form: "single",
|
|
32175
|
+
optional: false
|
|
32176
|
+
}],
|
|
32177
|
+
"cameraStreams.pickStream": [{
|
|
32178
|
+
name: "deviceId",
|
|
32179
|
+
form: "single",
|
|
32180
|
+
optional: false
|
|
32181
|
+
}],
|
|
32182
|
+
"climateControl.setFanMode": [{
|
|
32183
|
+
name: "deviceId",
|
|
32184
|
+
form: "single",
|
|
32185
|
+
optional: false
|
|
32186
|
+
}],
|
|
32187
|
+
"climateControl.setMode": [{
|
|
32188
|
+
name: "deviceId",
|
|
32189
|
+
form: "single",
|
|
32190
|
+
optional: false
|
|
32191
|
+
}],
|
|
32192
|
+
"climateControl.setPreset": [{
|
|
32193
|
+
name: "deviceId",
|
|
32194
|
+
form: "single",
|
|
32195
|
+
optional: false
|
|
32196
|
+
}],
|
|
32197
|
+
"climateControl.setSwingHorizontal": [{
|
|
32198
|
+
name: "deviceId",
|
|
32199
|
+
form: "single",
|
|
32200
|
+
optional: false
|
|
32201
|
+
}],
|
|
32202
|
+
"climateControl.setSwingVertical": [{
|
|
32203
|
+
name: "deviceId",
|
|
32204
|
+
form: "single",
|
|
32205
|
+
optional: false
|
|
32206
|
+
}],
|
|
32207
|
+
"climateControl.setTarget": [{
|
|
32208
|
+
name: "deviceId",
|
|
32209
|
+
form: "single",
|
|
32210
|
+
optional: false
|
|
32211
|
+
}],
|
|
32212
|
+
"climateControl.setTargetHumidity": [{
|
|
32213
|
+
name: "deviceId",
|
|
32214
|
+
form: "single",
|
|
32215
|
+
optional: false
|
|
32216
|
+
}],
|
|
32217
|
+
"climateControl.setTargetRange": [{
|
|
32218
|
+
name: "deviceId",
|
|
32219
|
+
form: "single",
|
|
32220
|
+
optional: false
|
|
32221
|
+
}],
|
|
32222
|
+
"color.setColor": [{
|
|
32223
|
+
name: "deviceId",
|
|
32224
|
+
form: "single",
|
|
32225
|
+
optional: false
|
|
32226
|
+
}],
|
|
32227
|
+
"consumables.reset": [{
|
|
32228
|
+
name: "deviceId",
|
|
32229
|
+
form: "single",
|
|
32230
|
+
optional: false
|
|
32231
|
+
}],
|
|
32232
|
+
"control.setValue": [{
|
|
32233
|
+
name: "deviceId",
|
|
32234
|
+
form: "single",
|
|
32235
|
+
optional: false
|
|
32236
|
+
}],
|
|
32237
|
+
"cover.close": [{
|
|
32238
|
+
name: "deviceId",
|
|
32239
|
+
form: "single",
|
|
32240
|
+
optional: false
|
|
32241
|
+
}],
|
|
32242
|
+
"cover.open": [{
|
|
32243
|
+
name: "deviceId",
|
|
32244
|
+
form: "single",
|
|
32245
|
+
optional: false
|
|
32246
|
+
}],
|
|
32247
|
+
"cover.setPosition": [{
|
|
32248
|
+
name: "deviceId",
|
|
32249
|
+
form: "single",
|
|
32250
|
+
optional: false
|
|
32251
|
+
}],
|
|
32252
|
+
"cover.setTiltPosition": [{
|
|
32253
|
+
name: "deviceId",
|
|
32254
|
+
form: "single",
|
|
32255
|
+
optional: false
|
|
32256
|
+
}],
|
|
32257
|
+
"cover.stop": [{
|
|
32258
|
+
name: "deviceId",
|
|
32259
|
+
form: "single",
|
|
32260
|
+
optional: false
|
|
32261
|
+
}],
|
|
32262
|
+
"dayNight.getOptions": [{
|
|
32263
|
+
name: "deviceId",
|
|
32264
|
+
form: "single",
|
|
32265
|
+
optional: false
|
|
32266
|
+
}],
|
|
32267
|
+
"dayNight.setSettings": [{
|
|
32268
|
+
name: "deviceId",
|
|
32269
|
+
form: "single",
|
|
32270
|
+
optional: false
|
|
32271
|
+
}],
|
|
32272
|
+
"decoder.createSession": [{
|
|
32273
|
+
name: "deviceId",
|
|
32274
|
+
form: "single",
|
|
32275
|
+
optional: true
|
|
32276
|
+
}],
|
|
32277
|
+
"deviceAdoption.release": [{
|
|
32278
|
+
name: "camDeviceId",
|
|
32279
|
+
form: "single",
|
|
32280
|
+
optional: false
|
|
32281
|
+
}],
|
|
32282
|
+
"deviceAdoption.resync": [{
|
|
32283
|
+
name: "camDeviceId",
|
|
32284
|
+
form: "single",
|
|
32285
|
+
optional: false
|
|
32286
|
+
}],
|
|
32287
|
+
"deviceDiscovery.adoptDevice": [{
|
|
32288
|
+
name: "deviceId",
|
|
32289
|
+
form: "single",
|
|
32290
|
+
optional: false
|
|
32291
|
+
}],
|
|
32292
|
+
"deviceDiscovery.listDiscovered": [{
|
|
32293
|
+
name: "deviceId",
|
|
32294
|
+
form: "single",
|
|
32295
|
+
optional: false
|
|
32296
|
+
}],
|
|
32297
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
32298
|
+
name: "deviceId",
|
|
32299
|
+
form: "single",
|
|
32300
|
+
optional: false
|
|
32301
|
+
}],
|
|
32302
|
+
"deviceDiscovery.releaseDevice": [{
|
|
32303
|
+
name: "childDeviceId",
|
|
32304
|
+
form: "single",
|
|
32305
|
+
optional: false
|
|
32306
|
+
}, {
|
|
32307
|
+
name: "deviceId",
|
|
32308
|
+
form: "single",
|
|
32309
|
+
optional: false
|
|
32310
|
+
}],
|
|
32311
|
+
"deviceManager.adoptionRelease": [{
|
|
32312
|
+
name: "camDeviceId",
|
|
32313
|
+
form: "single",
|
|
32314
|
+
optional: false
|
|
32315
|
+
}],
|
|
32316
|
+
"deviceManager.adoptionResync": [{
|
|
32317
|
+
name: "camDeviceId",
|
|
32318
|
+
form: "single",
|
|
32319
|
+
optional: false
|
|
32320
|
+
}],
|
|
32321
|
+
"deviceManager.applyInitialMeta": [{
|
|
32322
|
+
name: "deviceId",
|
|
32323
|
+
form: "single",
|
|
32324
|
+
optional: false
|
|
32325
|
+
}, {
|
|
32326
|
+
name: "linkDeviceId",
|
|
32327
|
+
form: "single",
|
|
32328
|
+
optional: true
|
|
32329
|
+
}],
|
|
32330
|
+
"deviceManager.disable": [{
|
|
32331
|
+
name: "deviceId",
|
|
32332
|
+
form: "single",
|
|
32333
|
+
optional: false
|
|
32334
|
+
}],
|
|
32335
|
+
"deviceManager.enable": [{
|
|
32336
|
+
name: "deviceId",
|
|
32337
|
+
form: "single",
|
|
32338
|
+
optional: false
|
|
32339
|
+
}],
|
|
32340
|
+
"deviceManager.getBindings": [{
|
|
32341
|
+
name: "deviceId",
|
|
32342
|
+
form: "single",
|
|
32343
|
+
optional: false
|
|
32344
|
+
}],
|
|
32345
|
+
"deviceManager.getChildren": [{
|
|
32346
|
+
name: "parentDeviceId",
|
|
32347
|
+
form: "single",
|
|
32348
|
+
optional: false
|
|
32349
|
+
}],
|
|
32350
|
+
"deviceManager.getConfigSchema": [{
|
|
32351
|
+
name: "deviceId",
|
|
32352
|
+
form: "single",
|
|
32353
|
+
optional: false
|
|
32354
|
+
}],
|
|
32355
|
+
"deviceManager.getDevice": [{
|
|
32356
|
+
name: "deviceId",
|
|
32357
|
+
form: "single",
|
|
32358
|
+
optional: false
|
|
32359
|
+
}],
|
|
32360
|
+
"deviceManager.getDeviceAggregate": [{
|
|
32361
|
+
name: "deviceId",
|
|
32362
|
+
form: "single",
|
|
32363
|
+
optional: false
|
|
32364
|
+
}],
|
|
32365
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
32366
|
+
name: "deviceId",
|
|
32367
|
+
form: "single",
|
|
32368
|
+
optional: false
|
|
32369
|
+
}],
|
|
32370
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
32371
|
+
name: "deviceId",
|
|
32372
|
+
form: "single",
|
|
32373
|
+
optional: false
|
|
32374
|
+
}],
|
|
32375
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
32376
|
+
name: "deviceId",
|
|
32377
|
+
form: "single",
|
|
32378
|
+
optional: false
|
|
32379
|
+
}],
|
|
32380
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
32381
|
+
name: "deviceIds",
|
|
32382
|
+
form: "array",
|
|
32383
|
+
optional: false
|
|
32384
|
+
}],
|
|
32385
|
+
"deviceManager.getLinkedDevices": [{
|
|
32386
|
+
name: "deviceId",
|
|
32387
|
+
form: "single",
|
|
32388
|
+
optional: false
|
|
32389
|
+
}],
|
|
32390
|
+
"deviceManager.getSettingsSchema": [{
|
|
32391
|
+
name: "deviceId",
|
|
32392
|
+
form: "single",
|
|
32393
|
+
optional: false
|
|
32394
|
+
}],
|
|
32395
|
+
"deviceManager.getStreamProfileMap": [{
|
|
32396
|
+
name: "deviceId",
|
|
32397
|
+
form: "single",
|
|
32398
|
+
optional: false
|
|
32399
|
+
}],
|
|
32400
|
+
"deviceManager.getStreamSources": [{
|
|
32401
|
+
name: "deviceId",
|
|
32402
|
+
form: "single",
|
|
32403
|
+
optional: false
|
|
32404
|
+
}],
|
|
32405
|
+
"deviceManager.getWireableFields": [{
|
|
32406
|
+
name: "deviceId",
|
|
32407
|
+
form: "single",
|
|
32408
|
+
optional: false
|
|
32409
|
+
}],
|
|
32410
|
+
"deviceManager.loadConfig": [{
|
|
32411
|
+
name: "deviceId",
|
|
32412
|
+
form: "single",
|
|
32413
|
+
optional: false
|
|
32414
|
+
}],
|
|
32415
|
+
"deviceManager.loadMeta": [{
|
|
32416
|
+
name: "deviceId",
|
|
32417
|
+
form: "single",
|
|
32418
|
+
optional: false
|
|
32419
|
+
}],
|
|
32420
|
+
"deviceManager.loadRuntimeState": [{
|
|
32421
|
+
name: "deviceId",
|
|
32422
|
+
form: "single",
|
|
32423
|
+
optional: false
|
|
32424
|
+
}],
|
|
32425
|
+
"deviceManager.persistConfig": [{
|
|
32426
|
+
name: "deviceId",
|
|
32427
|
+
form: "single",
|
|
32428
|
+
optional: false
|
|
32429
|
+
}],
|
|
32430
|
+
"deviceManager.probeStreams": [{
|
|
32431
|
+
name: "deviceId",
|
|
32432
|
+
form: "single",
|
|
32433
|
+
optional: false
|
|
32434
|
+
}],
|
|
32435
|
+
"deviceManager.registerDevice": [{
|
|
32436
|
+
name: "parentDeviceId",
|
|
32437
|
+
form: "single",
|
|
32438
|
+
optional: true
|
|
32439
|
+
}],
|
|
32440
|
+
"deviceManager.remove": [{
|
|
32441
|
+
name: "deviceId",
|
|
32442
|
+
form: "single",
|
|
32443
|
+
optional: false
|
|
32444
|
+
}],
|
|
32445
|
+
"deviceManager.removeDevice": [{
|
|
32446
|
+
name: "deviceId",
|
|
32447
|
+
form: "single",
|
|
32448
|
+
optional: false
|
|
32449
|
+
}],
|
|
32450
|
+
"deviceManager.runDeviceAction": [{
|
|
32451
|
+
name: "deviceId",
|
|
32452
|
+
form: "single",
|
|
32453
|
+
optional: false
|
|
32454
|
+
}],
|
|
32455
|
+
"deviceManager.setChildLayout": [{
|
|
32456
|
+
name: "deviceId",
|
|
32457
|
+
form: "single",
|
|
32458
|
+
optional: false
|
|
32459
|
+
}],
|
|
32460
|
+
"deviceManager.setDisabled": [{
|
|
32461
|
+
name: "deviceId",
|
|
32462
|
+
form: "single",
|
|
32463
|
+
optional: false
|
|
32464
|
+
}],
|
|
32465
|
+
"deviceManager.setDisplay": [{
|
|
32466
|
+
name: "deviceId",
|
|
32467
|
+
form: "single",
|
|
32468
|
+
optional: false
|
|
32469
|
+
}],
|
|
32470
|
+
"deviceManager.setIntegrationId": [{
|
|
32471
|
+
name: "deviceId",
|
|
32472
|
+
form: "single",
|
|
32473
|
+
optional: false
|
|
32474
|
+
}],
|
|
32475
|
+
"deviceManager.setLinkDeviceId": [{
|
|
32476
|
+
name: "deviceId",
|
|
32477
|
+
form: "single",
|
|
32478
|
+
optional: false
|
|
32479
|
+
}, {
|
|
32480
|
+
name: "linkDeviceId",
|
|
32481
|
+
form: "single",
|
|
32482
|
+
optional: true
|
|
32483
|
+
}],
|
|
32484
|
+
"deviceManager.setLocation": [{
|
|
32485
|
+
name: "deviceId",
|
|
32486
|
+
form: "single",
|
|
32487
|
+
optional: false
|
|
32488
|
+
}],
|
|
32489
|
+
"deviceManager.setMetadata": [{
|
|
32490
|
+
name: "deviceId",
|
|
32491
|
+
form: "single",
|
|
32492
|
+
optional: false
|
|
32493
|
+
}],
|
|
32494
|
+
"deviceManager.setName": [{
|
|
32495
|
+
name: "deviceId",
|
|
32496
|
+
form: "single",
|
|
32497
|
+
optional: false
|
|
32498
|
+
}],
|
|
32499
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
32500
|
+
name: "deviceId",
|
|
32501
|
+
form: "single",
|
|
32502
|
+
optional: false
|
|
32503
|
+
}],
|
|
32504
|
+
"deviceManager.setRole": [{
|
|
32505
|
+
name: "deviceId",
|
|
32506
|
+
form: "single",
|
|
32507
|
+
optional: false
|
|
32508
|
+
}],
|
|
32509
|
+
"deviceManager.setStreamProfileMap": [{
|
|
32510
|
+
name: "deviceId",
|
|
32511
|
+
form: "single",
|
|
32512
|
+
optional: false
|
|
32513
|
+
}],
|
|
32514
|
+
"deviceManager.setType": [{
|
|
32515
|
+
name: "deviceId",
|
|
32516
|
+
form: "single",
|
|
32517
|
+
optional: false
|
|
32518
|
+
}],
|
|
32519
|
+
"deviceManager.setWrapperActive": [{
|
|
32520
|
+
name: "deviceId",
|
|
32521
|
+
form: "single",
|
|
32522
|
+
optional: false
|
|
32523
|
+
}],
|
|
32524
|
+
"deviceManager.testField": [{
|
|
32525
|
+
name: "deviceId",
|
|
32526
|
+
form: "single",
|
|
32527
|
+
optional: false
|
|
32528
|
+
}],
|
|
32529
|
+
"deviceManager.updateConfig": [{
|
|
32530
|
+
name: "deviceId",
|
|
32531
|
+
form: "single",
|
|
32532
|
+
optional: false
|
|
32533
|
+
}],
|
|
32534
|
+
"deviceManager.updateDeviceField": [{
|
|
32535
|
+
name: "deviceId",
|
|
32536
|
+
form: "single",
|
|
32537
|
+
optional: false
|
|
32538
|
+
}],
|
|
32539
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
32540
|
+
name: "deviceId",
|
|
32541
|
+
form: "single",
|
|
32542
|
+
optional: false
|
|
32543
|
+
}],
|
|
32544
|
+
"deviceOps.getConfigEntries": [{
|
|
32545
|
+
name: "deviceId",
|
|
32546
|
+
form: "single",
|
|
32547
|
+
optional: false
|
|
32548
|
+
}],
|
|
32549
|
+
"deviceOps.getRawState": [{
|
|
32550
|
+
name: "deviceId",
|
|
32551
|
+
form: "single",
|
|
32552
|
+
optional: false
|
|
32553
|
+
}],
|
|
32554
|
+
"deviceOps.getSettingsSchema": [{
|
|
32555
|
+
name: "deviceId",
|
|
32556
|
+
form: "single",
|
|
32557
|
+
optional: false
|
|
32558
|
+
}],
|
|
32559
|
+
"deviceOps.getStreamSources": [{
|
|
32560
|
+
name: "deviceId",
|
|
32561
|
+
form: "single",
|
|
32562
|
+
optional: false
|
|
32563
|
+
}],
|
|
32564
|
+
"deviceOps.removeDevice": [{
|
|
32565
|
+
name: "deviceId",
|
|
32566
|
+
form: "single",
|
|
32567
|
+
optional: false
|
|
32568
|
+
}],
|
|
32569
|
+
"deviceOps.runAction": [{
|
|
32570
|
+
name: "deviceId",
|
|
32571
|
+
form: "single",
|
|
32572
|
+
optional: false
|
|
32573
|
+
}],
|
|
32574
|
+
"deviceOps.setConfig": [{
|
|
32575
|
+
name: "deviceId",
|
|
32576
|
+
form: "single",
|
|
32577
|
+
optional: false
|
|
32578
|
+
}],
|
|
32579
|
+
"deviceState.getCapSlice": [{
|
|
32580
|
+
name: "deviceId",
|
|
32581
|
+
form: "single",
|
|
32582
|
+
optional: false
|
|
32583
|
+
}],
|
|
32584
|
+
"deviceState.getSnapshot": [{
|
|
32585
|
+
name: "deviceId",
|
|
32586
|
+
form: "single",
|
|
32587
|
+
optional: false
|
|
32588
|
+
}],
|
|
32589
|
+
"deviceState.setCapSlice": [{
|
|
32590
|
+
name: "deviceId",
|
|
32591
|
+
form: "single",
|
|
32592
|
+
optional: false
|
|
32593
|
+
}],
|
|
32594
|
+
"events.getEventClipUrl": [{
|
|
32595
|
+
name: "deviceId",
|
|
32596
|
+
form: "single",
|
|
32597
|
+
optional: false
|
|
32598
|
+
}],
|
|
32599
|
+
"events.getEvents": [{
|
|
32600
|
+
name: "deviceId",
|
|
32601
|
+
form: "single",
|
|
32602
|
+
optional: false
|
|
32603
|
+
}],
|
|
32604
|
+
"events.getEventThumbnail": [{
|
|
32605
|
+
name: "deviceId",
|
|
32606
|
+
form: "single",
|
|
32607
|
+
optional: false
|
|
32608
|
+
}],
|
|
32609
|
+
"faceGallery.getFaceByTrack": [{
|
|
32610
|
+
name: "deviceId",
|
|
32611
|
+
form: "single",
|
|
32612
|
+
optional: false
|
|
32613
|
+
}],
|
|
32614
|
+
"faceGallery.listRecentFaces": [{
|
|
32615
|
+
name: "deviceId",
|
|
32616
|
+
form: "single",
|
|
32617
|
+
optional: true
|
|
32618
|
+
}],
|
|
32619
|
+
"fanControl.setDirection": [{
|
|
32620
|
+
name: "deviceId",
|
|
32621
|
+
form: "single",
|
|
32622
|
+
optional: false
|
|
32623
|
+
}],
|
|
32624
|
+
"fanControl.setOscillating": [{
|
|
32625
|
+
name: "deviceId",
|
|
32626
|
+
form: "single",
|
|
32627
|
+
optional: false
|
|
32628
|
+
}],
|
|
32629
|
+
"fanControl.setPercentage": [{
|
|
32630
|
+
name: "deviceId",
|
|
32631
|
+
form: "single",
|
|
32632
|
+
optional: false
|
|
32633
|
+
}],
|
|
32634
|
+
"fanControl.setPreset": [{
|
|
32635
|
+
name: "deviceId",
|
|
32636
|
+
form: "single",
|
|
32637
|
+
optional: false
|
|
32638
|
+
}],
|
|
32639
|
+
"humidifier.setMode": [{
|
|
32640
|
+
name: "deviceId",
|
|
32641
|
+
form: "single",
|
|
32642
|
+
optional: false
|
|
32643
|
+
}],
|
|
32644
|
+
"humidifier.setOn": [{
|
|
32645
|
+
name: "deviceId",
|
|
32646
|
+
form: "single",
|
|
32647
|
+
optional: false
|
|
32648
|
+
}],
|
|
32649
|
+
"humidifier.setTargetHumidity": [{
|
|
32650
|
+
name: "deviceId",
|
|
32651
|
+
form: "single",
|
|
32652
|
+
optional: false
|
|
32653
|
+
}],
|
|
32654
|
+
"imageSettings.getOptions": [{
|
|
32655
|
+
name: "deviceId",
|
|
32656
|
+
form: "single",
|
|
32657
|
+
optional: false
|
|
32658
|
+
}],
|
|
32659
|
+
"imageSettings.setSettings": [{
|
|
32660
|
+
name: "deviceId",
|
|
32661
|
+
form: "single",
|
|
32662
|
+
optional: false
|
|
32663
|
+
}],
|
|
32664
|
+
"intercom.endTalkSession": [{
|
|
32665
|
+
name: "deviceId",
|
|
32666
|
+
form: "single",
|
|
32667
|
+
optional: false
|
|
32668
|
+
}],
|
|
32669
|
+
"intercom.handleAnswer": [{
|
|
32670
|
+
name: "deviceId",
|
|
32671
|
+
form: "single",
|
|
32672
|
+
optional: false
|
|
32673
|
+
}],
|
|
32674
|
+
"intercom.pushTalkAudio": [{
|
|
32675
|
+
name: "deviceId",
|
|
32676
|
+
form: "single",
|
|
32677
|
+
optional: false
|
|
32678
|
+
}],
|
|
32679
|
+
"intercom.startSession": [{
|
|
32680
|
+
name: "deviceId",
|
|
32681
|
+
form: "single",
|
|
32682
|
+
optional: false
|
|
32683
|
+
}],
|
|
32684
|
+
"intercom.startTalkSession": [{
|
|
32685
|
+
name: "deviceId",
|
|
32686
|
+
form: "single",
|
|
32687
|
+
optional: false
|
|
32688
|
+
}],
|
|
32689
|
+
"intercom.stopSession": [{
|
|
32690
|
+
name: "deviceId",
|
|
32691
|
+
form: "single",
|
|
32692
|
+
optional: false
|
|
32693
|
+
}],
|
|
32694
|
+
"lawnMowerControl.dock": [{
|
|
32695
|
+
name: "deviceId",
|
|
32696
|
+
form: "single",
|
|
32697
|
+
optional: false
|
|
32698
|
+
}],
|
|
32699
|
+
"lawnMowerControl.pause": [{
|
|
32700
|
+
name: "deviceId",
|
|
32701
|
+
form: "single",
|
|
32702
|
+
optional: false
|
|
32703
|
+
}],
|
|
32704
|
+
"lawnMowerControl.startMowing": [{
|
|
32705
|
+
name: "deviceId",
|
|
32706
|
+
form: "single",
|
|
32707
|
+
optional: false
|
|
32708
|
+
}],
|
|
32709
|
+
"lockControl.lock": [{
|
|
32710
|
+
name: "deviceId",
|
|
32711
|
+
form: "single",
|
|
32712
|
+
optional: false
|
|
32713
|
+
}],
|
|
32714
|
+
"lockControl.open": [{
|
|
32715
|
+
name: "deviceId",
|
|
32716
|
+
form: "single",
|
|
32717
|
+
optional: false
|
|
32718
|
+
}],
|
|
32719
|
+
"lockControl.unlock": [{
|
|
32720
|
+
name: "deviceId",
|
|
32721
|
+
form: "single",
|
|
32722
|
+
optional: false
|
|
32723
|
+
}],
|
|
32724
|
+
"mediaPlayer.next": [{
|
|
32725
|
+
name: "deviceId",
|
|
32726
|
+
form: "single",
|
|
32727
|
+
optional: false
|
|
32728
|
+
}],
|
|
32729
|
+
"mediaPlayer.pause": [{
|
|
32730
|
+
name: "deviceId",
|
|
32731
|
+
form: "single",
|
|
32732
|
+
optional: false
|
|
32733
|
+
}],
|
|
32734
|
+
"mediaPlayer.play": [{
|
|
32735
|
+
name: "deviceId",
|
|
32736
|
+
form: "single",
|
|
32737
|
+
optional: false
|
|
32738
|
+
}],
|
|
32739
|
+
"mediaPlayer.playMedia": [{
|
|
32740
|
+
name: "deviceId",
|
|
32741
|
+
form: "single",
|
|
32742
|
+
optional: false
|
|
32743
|
+
}],
|
|
32744
|
+
"mediaPlayer.previous": [{
|
|
32745
|
+
name: "deviceId",
|
|
32746
|
+
form: "single",
|
|
32747
|
+
optional: false
|
|
32748
|
+
}],
|
|
32749
|
+
"mediaPlayer.seek": [{
|
|
32750
|
+
name: "deviceId",
|
|
32751
|
+
form: "single",
|
|
32752
|
+
optional: false
|
|
32753
|
+
}],
|
|
32754
|
+
"mediaPlayer.selectSource": [{
|
|
32755
|
+
name: "deviceId",
|
|
32756
|
+
form: "single",
|
|
32757
|
+
optional: false
|
|
32758
|
+
}],
|
|
32759
|
+
"mediaPlayer.setMute": [{
|
|
32760
|
+
name: "deviceId",
|
|
32761
|
+
form: "single",
|
|
32762
|
+
optional: false
|
|
32763
|
+
}],
|
|
32764
|
+
"mediaPlayer.setRepeat": [{
|
|
32765
|
+
name: "deviceId",
|
|
32766
|
+
form: "single",
|
|
32767
|
+
optional: false
|
|
32768
|
+
}],
|
|
32769
|
+
"mediaPlayer.setShuffle": [{
|
|
32770
|
+
name: "deviceId",
|
|
32771
|
+
form: "single",
|
|
32772
|
+
optional: false
|
|
32773
|
+
}],
|
|
32774
|
+
"mediaPlayer.setVolume": [{
|
|
32775
|
+
name: "deviceId",
|
|
32776
|
+
form: "single",
|
|
32777
|
+
optional: false
|
|
32778
|
+
}],
|
|
32779
|
+
"mediaPlayer.stop": [{
|
|
32780
|
+
name: "deviceId",
|
|
32781
|
+
form: "single",
|
|
32782
|
+
optional: false
|
|
32783
|
+
}],
|
|
32784
|
+
"motion.isDetected": [{
|
|
32785
|
+
name: "deviceId",
|
|
32786
|
+
form: "single",
|
|
32787
|
+
optional: false
|
|
32788
|
+
}],
|
|
32789
|
+
"motionDetection.analyze": [{
|
|
32790
|
+
name: "deviceId",
|
|
32791
|
+
form: "single",
|
|
32792
|
+
optional: false
|
|
32793
|
+
}],
|
|
32794
|
+
"motionDetection.removeCamera": [{
|
|
32795
|
+
name: "deviceId",
|
|
32796
|
+
form: "single",
|
|
32797
|
+
optional: false
|
|
32798
|
+
}],
|
|
32799
|
+
"motionTrigger.setMotionTrigger": [{
|
|
32800
|
+
name: "deviceId",
|
|
32801
|
+
form: "single",
|
|
32802
|
+
optional: false
|
|
32803
|
+
}],
|
|
32804
|
+
"motionZones.getOptions": [{
|
|
32805
|
+
name: "deviceId",
|
|
32806
|
+
form: "single",
|
|
32807
|
+
optional: false
|
|
32808
|
+
}],
|
|
32809
|
+
"motionZones.setZone": [{
|
|
32810
|
+
name: "deviceId",
|
|
32811
|
+
form: "single",
|
|
32812
|
+
optional: false
|
|
32813
|
+
}],
|
|
32814
|
+
"nativeObjectDetection.setEnabled": [{
|
|
32815
|
+
name: "deviceId",
|
|
32816
|
+
form: "single",
|
|
32817
|
+
optional: false
|
|
32818
|
+
}],
|
|
32819
|
+
"networkQuality.getDeviceStats": [{
|
|
32820
|
+
name: "deviceId",
|
|
32821
|
+
form: "single",
|
|
32822
|
+
optional: false
|
|
32823
|
+
}],
|
|
32824
|
+
"networkQuality.reportClientStats": [{
|
|
32825
|
+
name: "deviceId",
|
|
32826
|
+
form: "single",
|
|
32827
|
+
optional: false
|
|
32828
|
+
}],
|
|
32829
|
+
"notificationRules.setDeviceMuted": [{
|
|
32830
|
+
name: "deviceId",
|
|
32831
|
+
form: "single",
|
|
32832
|
+
optional: false
|
|
32833
|
+
}],
|
|
32834
|
+
"notifier.cancel": [{
|
|
32835
|
+
name: "deviceId",
|
|
32836
|
+
form: "single",
|
|
32837
|
+
optional: false
|
|
32838
|
+
}],
|
|
32839
|
+
"notifier.send": [{
|
|
32840
|
+
name: "deviceId",
|
|
32841
|
+
form: "single",
|
|
32842
|
+
optional: false
|
|
32843
|
+
}],
|
|
32844
|
+
"osd.setOverlay": [{
|
|
32845
|
+
name: "deviceId",
|
|
32846
|
+
form: "single",
|
|
32847
|
+
optional: false
|
|
32848
|
+
}],
|
|
32849
|
+
"osdManager.clearSlotBinding": [{
|
|
32850
|
+
name: "deviceId",
|
|
32851
|
+
form: "single",
|
|
32852
|
+
optional: false
|
|
32853
|
+
}],
|
|
32854
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
32855
|
+
name: "sourceDeviceId",
|
|
32856
|
+
form: "single",
|
|
32857
|
+
optional: false
|
|
32858
|
+
}, {
|
|
32859
|
+
name: "targetDeviceId",
|
|
32860
|
+
form: "single",
|
|
32861
|
+
optional: false
|
|
32862
|
+
}],
|
|
32863
|
+
"osdManager.getDeviceOsd": [{
|
|
32864
|
+
name: "deviceId",
|
|
32865
|
+
form: "single",
|
|
32866
|
+
optional: false
|
|
32867
|
+
}],
|
|
32868
|
+
"osdManager.getSourceCatalog": [{
|
|
32869
|
+
name: "deviceId",
|
|
32870
|
+
form: "single",
|
|
32871
|
+
optional: false
|
|
32872
|
+
}],
|
|
32873
|
+
"osdManager.previewSlot": [{
|
|
32874
|
+
name: "deviceId",
|
|
32875
|
+
form: "single",
|
|
32876
|
+
optional: false
|
|
32877
|
+
}],
|
|
32878
|
+
"osdManager.renderDevice": [{
|
|
32879
|
+
name: "deviceId",
|
|
32880
|
+
form: "single",
|
|
32881
|
+
optional: false
|
|
32882
|
+
}],
|
|
32883
|
+
"osdManager.setSlotBinding": [{
|
|
32884
|
+
name: "deviceId",
|
|
32885
|
+
form: "single",
|
|
32886
|
+
optional: false
|
|
32887
|
+
}],
|
|
32888
|
+
"petFeeder.callPet": [{
|
|
32889
|
+
name: "deviceId",
|
|
32890
|
+
form: "single",
|
|
32891
|
+
optional: false
|
|
32892
|
+
}],
|
|
32893
|
+
"petFeeder.cancelFeed": [{
|
|
32894
|
+
name: "deviceId",
|
|
32895
|
+
form: "single",
|
|
32896
|
+
optional: false
|
|
32897
|
+
}],
|
|
32898
|
+
"petFeeder.feed": [{
|
|
32899
|
+
name: "deviceId",
|
|
32900
|
+
form: "single",
|
|
32901
|
+
optional: false
|
|
32902
|
+
}],
|
|
32903
|
+
"petFeeder.markFoodReplenished": [{
|
|
32904
|
+
name: "deviceId",
|
|
32905
|
+
form: "single",
|
|
32906
|
+
optional: false
|
|
32907
|
+
}],
|
|
32908
|
+
"petFeeder.playSound": [{
|
|
32909
|
+
name: "deviceId",
|
|
32910
|
+
form: "single",
|
|
32911
|
+
optional: false
|
|
32912
|
+
}],
|
|
32913
|
+
"petFeeder.resetDesiccant": [{
|
|
32914
|
+
name: "deviceId",
|
|
32915
|
+
form: "single",
|
|
32916
|
+
optional: false
|
|
32917
|
+
}],
|
|
32918
|
+
"petFeeder.setChildLock": [{
|
|
32919
|
+
name: "deviceId",
|
|
32920
|
+
form: "single",
|
|
32921
|
+
optional: false
|
|
32922
|
+
}],
|
|
32923
|
+
"petFeeder.setFeedSound": [{
|
|
32924
|
+
name: "deviceId",
|
|
32925
|
+
form: "single",
|
|
32926
|
+
optional: false
|
|
32927
|
+
}],
|
|
32928
|
+
"petFeeder.setIndicatorLight": [{
|
|
32929
|
+
name: "deviceId",
|
|
32930
|
+
form: "single",
|
|
32931
|
+
optional: false
|
|
32932
|
+
}],
|
|
32933
|
+
"petFeeder.setVolume": [{
|
|
32934
|
+
name: "deviceId",
|
|
32935
|
+
form: "single",
|
|
32936
|
+
optional: false
|
|
32937
|
+
}],
|
|
32938
|
+
"pipelineAnalytics.clearTracks": [{
|
|
32939
|
+
name: "deviceId",
|
|
32940
|
+
form: "single",
|
|
32941
|
+
optional: false
|
|
32942
|
+
}],
|
|
32943
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
32944
|
+
name: "deviceId",
|
|
32945
|
+
form: "single",
|
|
32946
|
+
optional: false
|
|
32947
|
+
}],
|
|
32948
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
32949
|
+
name: "deviceId",
|
|
32950
|
+
form: "single",
|
|
32951
|
+
optional: false
|
|
32952
|
+
}],
|
|
32953
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
32954
|
+
name: "deviceId",
|
|
32955
|
+
form: "single",
|
|
32956
|
+
optional: false
|
|
32957
|
+
}],
|
|
32958
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
32959
|
+
name: "deviceId",
|
|
32960
|
+
form: "single",
|
|
32961
|
+
optional: false
|
|
32962
|
+
}],
|
|
32963
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
32964
|
+
name: "deviceId",
|
|
32965
|
+
form: "single",
|
|
32966
|
+
optional: false
|
|
32967
|
+
}],
|
|
32968
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
32969
|
+
name: "deviceId",
|
|
32970
|
+
form: "single",
|
|
32971
|
+
optional: false
|
|
32972
|
+
}],
|
|
32973
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
32974
|
+
name: "deviceId",
|
|
32975
|
+
form: "single",
|
|
32976
|
+
optional: false
|
|
32977
|
+
}],
|
|
32978
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
32979
|
+
name: "deviceId",
|
|
32980
|
+
form: "single",
|
|
32981
|
+
optional: false
|
|
32982
|
+
}],
|
|
32983
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
32984
|
+
name: "deviceId",
|
|
32985
|
+
form: "single",
|
|
32986
|
+
optional: false
|
|
32987
|
+
}],
|
|
32988
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
32989
|
+
name: "deviceId",
|
|
32990
|
+
form: "single",
|
|
32991
|
+
optional: false
|
|
32992
|
+
}],
|
|
32993
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
32994
|
+
name: "deviceId",
|
|
32995
|
+
form: "single",
|
|
32996
|
+
optional: false
|
|
32997
|
+
}],
|
|
32998
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
32999
|
+
name: "deviceIds",
|
|
33000
|
+
form: "array",
|
|
33001
|
+
optional: true
|
|
33002
|
+
}],
|
|
33003
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
33004
|
+
name: "deviceId",
|
|
33005
|
+
form: "single",
|
|
33006
|
+
optional: false
|
|
33007
|
+
}],
|
|
33008
|
+
"pipelineAnalytics.getTrack": [{
|
|
33009
|
+
name: "deviceId",
|
|
33010
|
+
form: "single",
|
|
33011
|
+
optional: false
|
|
33012
|
+
}],
|
|
33013
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
33014
|
+
name: "deviceId",
|
|
33015
|
+
form: "single",
|
|
33016
|
+
optional: false
|
|
33017
|
+
}],
|
|
33018
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
33019
|
+
name: "deviceIds",
|
|
33020
|
+
form: "array",
|
|
33021
|
+
optional: true
|
|
33022
|
+
}],
|
|
33023
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
33024
|
+
name: "deviceIds",
|
|
33025
|
+
form: "array",
|
|
33026
|
+
optional: true
|
|
33027
|
+
}],
|
|
33028
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
33029
|
+
name: "deviceId",
|
|
33030
|
+
form: "single",
|
|
33031
|
+
optional: false
|
|
33032
|
+
}],
|
|
33033
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
33034
|
+
name: "deviceIds",
|
|
33035
|
+
form: "array",
|
|
33036
|
+
optional: false
|
|
33037
|
+
}],
|
|
33038
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
33039
|
+
name: "deviceId",
|
|
33040
|
+
form: "single",
|
|
33041
|
+
optional: true
|
|
33042
|
+
}],
|
|
33043
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
33044
|
+
name: "deviceIds",
|
|
33045
|
+
form: "array",
|
|
33046
|
+
optional: false
|
|
33047
|
+
}],
|
|
33048
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
33049
|
+
name: "deviceIds",
|
|
33050
|
+
form: "array",
|
|
33051
|
+
optional: true
|
|
33052
|
+
}],
|
|
33053
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
33054
|
+
name: "deviceId",
|
|
33055
|
+
form: "single",
|
|
33056
|
+
optional: false
|
|
33057
|
+
}],
|
|
33058
|
+
"pipelineAnalytics.listTracks": [{
|
|
33059
|
+
name: "deviceId",
|
|
33060
|
+
form: "single",
|
|
33061
|
+
optional: false
|
|
33062
|
+
}],
|
|
33063
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
33064
|
+
name: "deviceId",
|
|
33065
|
+
form: "single",
|
|
33066
|
+
optional: false
|
|
33067
|
+
}],
|
|
33068
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
33069
|
+
name: "deviceId",
|
|
33070
|
+
form: "single",
|
|
33071
|
+
optional: false
|
|
33072
|
+
}],
|
|
33073
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
33074
|
+
name: "deviceId",
|
|
33075
|
+
form: "single",
|
|
33076
|
+
optional: false
|
|
33077
|
+
}],
|
|
33078
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
33079
|
+
name: "deviceId",
|
|
33080
|
+
form: "single",
|
|
33081
|
+
optional: true
|
|
33082
|
+
}],
|
|
33083
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
33084
|
+
name: "deviceId",
|
|
33085
|
+
form: "single",
|
|
33086
|
+
optional: false
|
|
33087
|
+
}],
|
|
33088
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
33089
|
+
name: "deviceId",
|
|
33090
|
+
form: "single",
|
|
33091
|
+
optional: false
|
|
33092
|
+
}],
|
|
33093
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
33094
|
+
name: "deviceId",
|
|
33095
|
+
form: "single",
|
|
33096
|
+
optional: true
|
|
33097
|
+
}],
|
|
33098
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
33099
|
+
name: "deviceId",
|
|
33100
|
+
form: "single",
|
|
33101
|
+
optional: false
|
|
33102
|
+
}],
|
|
33103
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
33104
|
+
name: "deviceId",
|
|
33105
|
+
form: "single",
|
|
33106
|
+
optional: false
|
|
33107
|
+
}],
|
|
33108
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
33109
|
+
name: "deviceId",
|
|
33110
|
+
form: "single",
|
|
33111
|
+
optional: false
|
|
33112
|
+
}],
|
|
33113
|
+
"pipelineExecutor.runPipeline": [{
|
|
33114
|
+
name: "deviceId",
|
|
33115
|
+
form: "single",
|
|
33116
|
+
optional: true
|
|
33117
|
+
}],
|
|
33118
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
33119
|
+
name: "deviceId",
|
|
33120
|
+
form: "single",
|
|
33121
|
+
optional: true
|
|
33122
|
+
}],
|
|
33123
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
33124
|
+
name: "deviceId",
|
|
33125
|
+
form: "single",
|
|
33126
|
+
optional: false
|
|
33127
|
+
}],
|
|
33128
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
33129
|
+
name: "deviceId",
|
|
33130
|
+
form: "single",
|
|
33131
|
+
optional: false
|
|
33132
|
+
}],
|
|
33133
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
33134
|
+
name: "deviceId",
|
|
33135
|
+
form: "single",
|
|
33136
|
+
optional: false
|
|
33137
|
+
}],
|
|
33138
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
33139
|
+
name: "deviceId",
|
|
33140
|
+
form: "single",
|
|
33141
|
+
optional: false
|
|
33142
|
+
}],
|
|
33143
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
33144
|
+
name: "deviceId",
|
|
33145
|
+
form: "single",
|
|
33146
|
+
optional: false
|
|
33147
|
+
}],
|
|
33148
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
33149
|
+
name: "deviceId",
|
|
33150
|
+
form: "single",
|
|
33151
|
+
optional: false
|
|
33152
|
+
}],
|
|
33153
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
33154
|
+
name: "deviceIds",
|
|
33155
|
+
form: "array",
|
|
33156
|
+
optional: true
|
|
33157
|
+
}],
|
|
33158
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
33159
|
+
name: "deviceId",
|
|
33160
|
+
form: "single",
|
|
33161
|
+
optional: false
|
|
33162
|
+
}],
|
|
33163
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
33164
|
+
name: "deviceId",
|
|
33165
|
+
form: "single",
|
|
33166
|
+
optional: false
|
|
33167
|
+
}],
|
|
33168
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
33169
|
+
name: "deviceId",
|
|
33170
|
+
form: "single",
|
|
33171
|
+
optional: false
|
|
33172
|
+
}],
|
|
33173
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
33174
|
+
name: "deviceId",
|
|
33175
|
+
form: "single",
|
|
33176
|
+
optional: false
|
|
33177
|
+
}],
|
|
33178
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
33179
|
+
name: "deviceId",
|
|
33180
|
+
form: "single",
|
|
33181
|
+
optional: false
|
|
33182
|
+
}],
|
|
33183
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
33184
|
+
name: "deviceId",
|
|
33185
|
+
form: "single",
|
|
33186
|
+
optional: false
|
|
33187
|
+
}],
|
|
33188
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
33189
|
+
name: "deviceId",
|
|
33190
|
+
form: "single",
|
|
33191
|
+
optional: false
|
|
33192
|
+
}],
|
|
33193
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
33194
|
+
name: "deviceId",
|
|
33195
|
+
form: "single",
|
|
33196
|
+
optional: false
|
|
33197
|
+
}],
|
|
33198
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
33199
|
+
name: "deviceId",
|
|
33200
|
+
form: "single",
|
|
33201
|
+
optional: false
|
|
33202
|
+
}],
|
|
33203
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
33204
|
+
name: "deviceId",
|
|
33205
|
+
form: "single",
|
|
33206
|
+
optional: false
|
|
33207
|
+
}],
|
|
33208
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
33209
|
+
name: "deviceId",
|
|
33210
|
+
form: "single",
|
|
33211
|
+
optional: false
|
|
33212
|
+
}],
|
|
33213
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
33214
|
+
name: "deviceId",
|
|
33215
|
+
form: "single",
|
|
33216
|
+
optional: false
|
|
33217
|
+
}],
|
|
33218
|
+
"pipelineRunner.attachCamera": [{
|
|
33219
|
+
name: "deviceId",
|
|
33220
|
+
form: "single",
|
|
33221
|
+
optional: false
|
|
33222
|
+
}],
|
|
33223
|
+
"pipelineRunner.detachCamera": [{
|
|
33224
|
+
name: "deviceId",
|
|
33225
|
+
form: "single",
|
|
33226
|
+
optional: false
|
|
33227
|
+
}],
|
|
33228
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
33229
|
+
name: "deviceId",
|
|
33230
|
+
form: "single",
|
|
33231
|
+
optional: false
|
|
33232
|
+
}],
|
|
33233
|
+
"pipelineRunner.reportMotion": [{
|
|
33234
|
+
name: "deviceId",
|
|
33235
|
+
form: "single",
|
|
33236
|
+
optional: false
|
|
33237
|
+
}],
|
|
33238
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
33239
|
+
name: "deviceId",
|
|
33240
|
+
form: "single",
|
|
33241
|
+
optional: false
|
|
33242
|
+
}],
|
|
33243
|
+
"pipelineRunner.runStatelessStep": [{
|
|
33244
|
+
name: "sourceDeviceId",
|
|
33245
|
+
form: "single",
|
|
33246
|
+
optional: false
|
|
33247
|
+
}],
|
|
33248
|
+
"plateGallery.getPlateByTrack": [{
|
|
33249
|
+
name: "deviceId",
|
|
33250
|
+
form: "single",
|
|
33251
|
+
optional: false
|
|
33252
|
+
}],
|
|
33253
|
+
"plateGallery.listPlates": [{
|
|
33254
|
+
name: "deviceId",
|
|
33255
|
+
form: "single",
|
|
33256
|
+
optional: true
|
|
33257
|
+
}],
|
|
33258
|
+
"privacyMask.getOptions": [{
|
|
33259
|
+
name: "deviceId",
|
|
33260
|
+
form: "single",
|
|
33261
|
+
optional: false
|
|
33262
|
+
}],
|
|
33263
|
+
"privacyMask.setAudioEnabled": [{
|
|
33264
|
+
name: "deviceId",
|
|
33265
|
+
form: "single",
|
|
33266
|
+
optional: false
|
|
33267
|
+
}],
|
|
33268
|
+
"privacyMask.setMask": [{
|
|
33269
|
+
name: "deviceId",
|
|
33270
|
+
form: "single",
|
|
33271
|
+
optional: false
|
|
33272
|
+
}],
|
|
33273
|
+
"ptz.continuousMove": [{
|
|
33274
|
+
name: "deviceId",
|
|
33275
|
+
form: "single",
|
|
33276
|
+
optional: false
|
|
33277
|
+
}],
|
|
33278
|
+
"ptz.deletePreset": [{
|
|
33279
|
+
name: "deviceId",
|
|
33280
|
+
form: "single",
|
|
33281
|
+
optional: false
|
|
33282
|
+
}],
|
|
33283
|
+
"ptz.getOptions": [{
|
|
33284
|
+
name: "deviceId",
|
|
33285
|
+
form: "single",
|
|
33286
|
+
optional: false
|
|
33287
|
+
}],
|
|
33288
|
+
"ptz.getPosition": [{
|
|
33289
|
+
name: "deviceId",
|
|
33290
|
+
form: "single",
|
|
33291
|
+
optional: false
|
|
33292
|
+
}],
|
|
33293
|
+
"ptz.getPresets": [{
|
|
33294
|
+
name: "deviceId",
|
|
33295
|
+
form: "single",
|
|
33296
|
+
optional: false
|
|
33297
|
+
}],
|
|
33298
|
+
"ptz.goHome": [{
|
|
33299
|
+
name: "deviceId",
|
|
33300
|
+
form: "single",
|
|
33301
|
+
optional: false
|
|
33302
|
+
}],
|
|
33303
|
+
"ptz.goToPreset": [{
|
|
33304
|
+
name: "deviceId",
|
|
33305
|
+
form: "single",
|
|
33306
|
+
optional: false
|
|
33307
|
+
}],
|
|
33308
|
+
"ptz.move": [{
|
|
33309
|
+
name: "deviceId",
|
|
33310
|
+
form: "single",
|
|
33311
|
+
optional: false
|
|
33312
|
+
}],
|
|
33313
|
+
"ptz.savePreset": [{
|
|
33314
|
+
name: "deviceId",
|
|
33315
|
+
form: "single",
|
|
33316
|
+
optional: false
|
|
33317
|
+
}],
|
|
33318
|
+
"ptz.setAutofocus": [{
|
|
33319
|
+
name: "deviceId",
|
|
33320
|
+
form: "single",
|
|
33321
|
+
optional: false
|
|
33322
|
+
}],
|
|
33323
|
+
"ptz.stop": [{
|
|
33324
|
+
name: "deviceId",
|
|
33325
|
+
form: "single",
|
|
33326
|
+
optional: false
|
|
33327
|
+
}],
|
|
33328
|
+
"ptzAutotrack.getSettings": [{
|
|
33329
|
+
name: "deviceId",
|
|
33330
|
+
form: "single",
|
|
33331
|
+
optional: false
|
|
33332
|
+
}],
|
|
33333
|
+
"ptzAutotrack.getStatus": [{
|
|
33334
|
+
name: "deviceId",
|
|
33335
|
+
form: "single",
|
|
33336
|
+
optional: false
|
|
33337
|
+
}],
|
|
33338
|
+
"ptzAutotrack.setEnabled": [{
|
|
33339
|
+
name: "deviceId",
|
|
33340
|
+
form: "single",
|
|
33341
|
+
optional: false
|
|
33342
|
+
}],
|
|
33343
|
+
"ptzAutotrack.setSettings": [{
|
|
33344
|
+
name: "deviceId",
|
|
33345
|
+
form: "single",
|
|
33346
|
+
optional: false
|
|
33347
|
+
}],
|
|
33348
|
+
"reboot.reboot": [{
|
|
33349
|
+
name: "deviceId",
|
|
33350
|
+
form: "single",
|
|
33351
|
+
optional: false
|
|
33352
|
+
}],
|
|
33353
|
+
"recording.deleteFootprint": [{
|
|
33354
|
+
name: "deviceId",
|
|
33355
|
+
form: "single",
|
|
33356
|
+
optional: false
|
|
33357
|
+
}],
|
|
33358
|
+
"recording.getAvailability": [{
|
|
33359
|
+
name: "deviceId",
|
|
33360
|
+
form: "single",
|
|
33361
|
+
optional: false
|
|
33362
|
+
}],
|
|
33363
|
+
"recording.getDaysWithRecordings": [{
|
|
33364
|
+
name: "deviceId",
|
|
33365
|
+
form: "single",
|
|
33366
|
+
optional: false
|
|
33367
|
+
}],
|
|
33368
|
+
"recording.getDeviceConfig": [{
|
|
33369
|
+
name: "deviceId",
|
|
33370
|
+
form: "single",
|
|
33371
|
+
optional: false
|
|
33372
|
+
}],
|
|
33373
|
+
"recording.getPlaybackManifest": [{
|
|
33374
|
+
name: "deviceId",
|
|
33375
|
+
form: "single",
|
|
33376
|
+
optional: false
|
|
33377
|
+
}],
|
|
33378
|
+
"recording.listOpsLog": [{
|
|
33379
|
+
name: "deviceId",
|
|
33380
|
+
form: "single",
|
|
33381
|
+
optional: true
|
|
33382
|
+
}],
|
|
33383
|
+
"recording.locateSegment": [{
|
|
33384
|
+
name: "deviceId",
|
|
33385
|
+
form: "single",
|
|
33386
|
+
optional: false
|
|
33387
|
+
}],
|
|
33388
|
+
"recording.pruneFootage": [{
|
|
33389
|
+
name: "deviceId",
|
|
33390
|
+
form: "single",
|
|
33391
|
+
optional: false
|
|
33392
|
+
}],
|
|
33393
|
+
"recording.readGopBytes": [{
|
|
33394
|
+
name: "deviceId",
|
|
33395
|
+
form: "single",
|
|
33396
|
+
optional: false
|
|
33397
|
+
}],
|
|
33398
|
+
"recording.readSegmentBytes": [{
|
|
33399
|
+
name: "deviceId",
|
|
33400
|
+
form: "single",
|
|
33401
|
+
optional: false
|
|
33402
|
+
}],
|
|
33403
|
+
"recording.relocateFootage": [{
|
|
33404
|
+
name: "deviceId",
|
|
33405
|
+
form: "single",
|
|
33406
|
+
optional: true
|
|
33407
|
+
}],
|
|
33408
|
+
"recording.renderClip": [{
|
|
33409
|
+
name: "deviceId",
|
|
33410
|
+
form: "single",
|
|
33411
|
+
optional: false
|
|
33412
|
+
}],
|
|
33413
|
+
"recording.renderGif": [{
|
|
33414
|
+
name: "deviceId",
|
|
33415
|
+
form: "single",
|
|
33416
|
+
optional: false
|
|
33417
|
+
}],
|
|
33418
|
+
"recording.rescanStorage": [{
|
|
33419
|
+
name: "deviceId",
|
|
33420
|
+
form: "single",
|
|
33421
|
+
optional: false
|
|
33422
|
+
}],
|
|
33423
|
+
"recording.setDeviceConfig": [{
|
|
33424
|
+
name: "deviceId",
|
|
33425
|
+
form: "single",
|
|
33426
|
+
optional: false
|
|
33427
|
+
}],
|
|
33428
|
+
"recording.startStorageMigrationMove": [{
|
|
33429
|
+
name: "deviceId",
|
|
33430
|
+
form: "single",
|
|
33431
|
+
optional: true
|
|
33432
|
+
}],
|
|
33433
|
+
"recordingExport.createExport": [{
|
|
33434
|
+
name: "deviceId",
|
|
33435
|
+
form: "single",
|
|
33436
|
+
optional: false
|
|
33437
|
+
}],
|
|
33438
|
+
"recordingExport.listExports": [{
|
|
33439
|
+
name: "deviceId",
|
|
33440
|
+
form: "single",
|
|
33441
|
+
optional: true
|
|
33442
|
+
}],
|
|
33443
|
+
"sceneMonitor.captureReference": [{
|
|
33444
|
+
name: "deviceId",
|
|
33445
|
+
form: "single",
|
|
33446
|
+
optional: false
|
|
33447
|
+
}],
|
|
33448
|
+
"sceneMonitor.createScene": [{
|
|
33449
|
+
name: "deviceId",
|
|
33450
|
+
form: "single",
|
|
33451
|
+
optional: false
|
|
33452
|
+
}],
|
|
33453
|
+
"sceneMonitor.deleteReference": [{
|
|
33454
|
+
name: "deviceId",
|
|
33455
|
+
form: "single",
|
|
33456
|
+
optional: false
|
|
33457
|
+
}],
|
|
33458
|
+
"sceneMonitor.deleteScene": [{
|
|
33459
|
+
name: "deviceId",
|
|
33460
|
+
form: "single",
|
|
33461
|
+
optional: false
|
|
33462
|
+
}],
|
|
33463
|
+
"sceneMonitor.listScenes": [{
|
|
33464
|
+
name: "deviceId",
|
|
33465
|
+
form: "single",
|
|
33466
|
+
optional: false
|
|
33467
|
+
}],
|
|
33468
|
+
"sceneMonitor.recheckNow": [{
|
|
33469
|
+
name: "deviceId",
|
|
33470
|
+
form: "single",
|
|
33471
|
+
optional: false
|
|
33472
|
+
}],
|
|
33473
|
+
"sceneMonitor.resetScene": [{
|
|
33474
|
+
name: "deviceId",
|
|
33475
|
+
form: "single",
|
|
33476
|
+
optional: false
|
|
33477
|
+
}],
|
|
33478
|
+
"sceneMonitor.updateScene": [{
|
|
33479
|
+
name: "deviceId",
|
|
33480
|
+
form: "single",
|
|
33481
|
+
optional: false
|
|
33482
|
+
}],
|
|
33483
|
+
"scriptRunner.run": [{
|
|
33484
|
+
name: "deviceId",
|
|
33485
|
+
form: "single",
|
|
33486
|
+
optional: false
|
|
33487
|
+
}],
|
|
33488
|
+
"scriptRunner.stop": [{
|
|
33489
|
+
name: "deviceId",
|
|
33490
|
+
form: "single",
|
|
33491
|
+
optional: false
|
|
33492
|
+
}],
|
|
33493
|
+
"snapshot.getSnapshot": [{
|
|
33494
|
+
name: "deviceId",
|
|
33495
|
+
form: "single",
|
|
33496
|
+
optional: false
|
|
33497
|
+
}],
|
|
33498
|
+
"snapshot.getSnapshotLinks": [{
|
|
33499
|
+
name: "targets",
|
|
33500
|
+
form: "object-array",
|
|
33501
|
+
optional: false,
|
|
33502
|
+
itemField: "deviceId"
|
|
33503
|
+
}],
|
|
33504
|
+
"snapshot.getSnapshotOverview": [{
|
|
33505
|
+
name: "deviceIds",
|
|
33506
|
+
form: "array",
|
|
33507
|
+
optional: false
|
|
33508
|
+
}],
|
|
33509
|
+
"snapshot.invalidateCache": [{
|
|
33510
|
+
name: "deviceId",
|
|
33511
|
+
form: "single",
|
|
33512
|
+
optional: false
|
|
33513
|
+
}],
|
|
33514
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
33515
|
+
name: "deviceId",
|
|
33516
|
+
form: "single",
|
|
33517
|
+
optional: false
|
|
33518
|
+
}],
|
|
33519
|
+
"streamBroker.assignProfile": [{
|
|
33520
|
+
name: "deviceId",
|
|
33521
|
+
form: "single",
|
|
33522
|
+
optional: false
|
|
33523
|
+
}],
|
|
33524
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
33525
|
+
name: "deviceId",
|
|
33526
|
+
form: "single",
|
|
33527
|
+
optional: false
|
|
33528
|
+
}],
|
|
33529
|
+
"streamBroker.getStreamWithCodec": [{
|
|
33530
|
+
name: "deviceId",
|
|
33531
|
+
form: "single",
|
|
33532
|
+
optional: false
|
|
33533
|
+
}],
|
|
33534
|
+
"streamBroker.produceEventMedia": [{
|
|
33535
|
+
name: "deviceId",
|
|
33536
|
+
form: "single",
|
|
33537
|
+
optional: false
|
|
33538
|
+
}],
|
|
33539
|
+
"streamBroker.publishCameraStream": [{
|
|
33540
|
+
name: "deviceId",
|
|
33541
|
+
form: "single",
|
|
33542
|
+
optional: false
|
|
33543
|
+
}],
|
|
33544
|
+
"streamBroker.renderPreBufferClip": [{
|
|
33545
|
+
name: "deviceId",
|
|
33546
|
+
form: "single",
|
|
33547
|
+
optional: false
|
|
33548
|
+
}],
|
|
33549
|
+
"streamBroker.restartProfile": [{
|
|
33550
|
+
name: "deviceId",
|
|
33551
|
+
form: "single",
|
|
33552
|
+
optional: false
|
|
33553
|
+
}],
|
|
33554
|
+
"streamBroker.retractCameraStream": [{
|
|
33555
|
+
name: "deviceId",
|
|
33556
|
+
form: "single",
|
|
33557
|
+
optional: false
|
|
33558
|
+
}],
|
|
33559
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
33560
|
+
name: "deviceId",
|
|
33561
|
+
form: "single",
|
|
33562
|
+
optional: false
|
|
33563
|
+
}],
|
|
33564
|
+
"streamBroker.unassignProfile": [{
|
|
33565
|
+
name: "deviceId",
|
|
33566
|
+
form: "single",
|
|
33567
|
+
optional: false
|
|
33568
|
+
}],
|
|
33569
|
+
"streamCatalog.getCatalog": [{
|
|
33570
|
+
name: "deviceId",
|
|
33571
|
+
form: "single",
|
|
33572
|
+
optional: false
|
|
33573
|
+
}],
|
|
33574
|
+
"streamParams.getConfigSchema": [{
|
|
33575
|
+
name: "deviceId",
|
|
33576
|
+
form: "single",
|
|
33577
|
+
optional: false
|
|
33578
|
+
}],
|
|
33579
|
+
"streamParams.getOptions": [{
|
|
33580
|
+
name: "deviceId",
|
|
33581
|
+
form: "single",
|
|
33582
|
+
optional: false
|
|
33583
|
+
}],
|
|
33584
|
+
"streamParams.setProfile": [{
|
|
33585
|
+
name: "deviceId",
|
|
33586
|
+
form: "single",
|
|
33587
|
+
optional: false
|
|
33588
|
+
}],
|
|
33589
|
+
"switch.setState": [{
|
|
33590
|
+
name: "deviceId",
|
|
33591
|
+
form: "single",
|
|
33592
|
+
optional: false
|
|
33593
|
+
}],
|
|
33594
|
+
"vacuumControl.locate": [{
|
|
33595
|
+
name: "deviceId",
|
|
33596
|
+
form: "single",
|
|
33597
|
+
optional: false
|
|
33598
|
+
}],
|
|
33599
|
+
"vacuumControl.pause": [{
|
|
33600
|
+
name: "deviceId",
|
|
33601
|
+
form: "single",
|
|
33602
|
+
optional: false
|
|
33603
|
+
}],
|
|
33604
|
+
"vacuumControl.returnToBase": [{
|
|
33605
|
+
name: "deviceId",
|
|
33606
|
+
form: "single",
|
|
33607
|
+
optional: false
|
|
33608
|
+
}],
|
|
33609
|
+
"vacuumControl.setFanSpeed": [{
|
|
33610
|
+
name: "deviceId",
|
|
33611
|
+
form: "single",
|
|
33612
|
+
optional: false
|
|
33613
|
+
}],
|
|
33614
|
+
"vacuumControl.start": [{
|
|
33615
|
+
name: "deviceId",
|
|
33616
|
+
form: "single",
|
|
33617
|
+
optional: false
|
|
33618
|
+
}],
|
|
33619
|
+
"vacuumControl.stop": [{
|
|
33620
|
+
name: "deviceId",
|
|
33621
|
+
form: "single",
|
|
33622
|
+
optional: false
|
|
33623
|
+
}],
|
|
33624
|
+
"valve.close": [{
|
|
33625
|
+
name: "deviceId",
|
|
33626
|
+
form: "single",
|
|
33627
|
+
optional: false
|
|
33628
|
+
}],
|
|
33629
|
+
"valve.open": [{
|
|
33630
|
+
name: "deviceId",
|
|
33631
|
+
form: "single",
|
|
33632
|
+
optional: false
|
|
33633
|
+
}],
|
|
33634
|
+
"valve.setPosition": [{
|
|
33635
|
+
name: "deviceId",
|
|
33636
|
+
form: "single",
|
|
33637
|
+
optional: false
|
|
33638
|
+
}],
|
|
33639
|
+
"valve.stop": [{
|
|
33640
|
+
name: "deviceId",
|
|
33641
|
+
form: "single",
|
|
33642
|
+
optional: false
|
|
33643
|
+
}],
|
|
33644
|
+
"videoclips.getClipPlayback": [{
|
|
33645
|
+
name: "deviceId",
|
|
33646
|
+
form: "single",
|
|
33647
|
+
optional: false
|
|
33648
|
+
}],
|
|
33649
|
+
"videoclips.listClips": [{
|
|
33650
|
+
name: "deviceId",
|
|
33651
|
+
form: "single",
|
|
33652
|
+
optional: false
|
|
33653
|
+
}],
|
|
33654
|
+
"waterHeater.setAway": [{
|
|
33655
|
+
name: "deviceId",
|
|
33656
|
+
form: "single",
|
|
33657
|
+
optional: false
|
|
33658
|
+
}],
|
|
33659
|
+
"waterHeater.setOperationMode": [{
|
|
33660
|
+
name: "deviceId",
|
|
33661
|
+
form: "single",
|
|
33662
|
+
optional: false
|
|
33663
|
+
}],
|
|
33664
|
+
"waterHeater.setTargetTemp": [{
|
|
33665
|
+
name: "deviceId",
|
|
33666
|
+
form: "single",
|
|
33667
|
+
optional: false
|
|
33668
|
+
}],
|
|
33669
|
+
"webrtcSession.addIceCandidate": [{
|
|
33670
|
+
name: "deviceId",
|
|
33671
|
+
form: "single",
|
|
33672
|
+
optional: false
|
|
33673
|
+
}],
|
|
33674
|
+
"webrtcSession.closeSession": [{
|
|
33675
|
+
name: "deviceId",
|
|
33676
|
+
form: "single",
|
|
33677
|
+
optional: false
|
|
33678
|
+
}],
|
|
33679
|
+
"webrtcSession.createSession": [{
|
|
33680
|
+
name: "deviceId",
|
|
33681
|
+
form: "single",
|
|
33682
|
+
optional: false
|
|
33683
|
+
}],
|
|
33684
|
+
"webrtcSession.getIceCandidates": [{
|
|
33685
|
+
name: "deviceId",
|
|
33686
|
+
form: "single",
|
|
33687
|
+
optional: false
|
|
33688
|
+
}],
|
|
33689
|
+
"webrtcSession.getSessionState": [{
|
|
33690
|
+
name: "deviceId",
|
|
33691
|
+
form: "single",
|
|
33692
|
+
optional: false
|
|
33693
|
+
}],
|
|
33694
|
+
"webrtcSession.handleAnswer": [{
|
|
33695
|
+
name: "deviceId",
|
|
33696
|
+
form: "single",
|
|
33697
|
+
optional: false
|
|
33698
|
+
}],
|
|
33699
|
+
"webrtcSession.handleOffer": [{
|
|
33700
|
+
name: "deviceId",
|
|
33701
|
+
form: "single",
|
|
33702
|
+
optional: false
|
|
33703
|
+
}],
|
|
33704
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
33705
|
+
name: "deviceId",
|
|
33706
|
+
form: "single",
|
|
33707
|
+
optional: false
|
|
33708
|
+
}],
|
|
33709
|
+
"webrtcSession.listStreams": [{
|
|
33710
|
+
name: "deviceId",
|
|
33711
|
+
form: "single",
|
|
33712
|
+
optional: false
|
|
33713
|
+
}],
|
|
33714
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
33715
|
+
name: "deviceId",
|
|
33716
|
+
form: "single",
|
|
33717
|
+
optional: false
|
|
33718
|
+
}],
|
|
33719
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
33720
|
+
name: "deviceId",
|
|
33721
|
+
form: "single",
|
|
33722
|
+
optional: false
|
|
33723
|
+
}],
|
|
33724
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
33725
|
+
name: "deviceId",
|
|
33726
|
+
form: "single",
|
|
33727
|
+
optional: false
|
|
33728
|
+
}],
|
|
33729
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
33730
|
+
name: "deviceId",
|
|
33731
|
+
form: "single",
|
|
33732
|
+
optional: false
|
|
33733
|
+
}],
|
|
33734
|
+
"zoneRules.listRules": [{
|
|
33735
|
+
name: "deviceId",
|
|
33736
|
+
form: "single",
|
|
33737
|
+
optional: false
|
|
33738
|
+
}],
|
|
33739
|
+
"zoneRules.setRules": [{
|
|
33740
|
+
name: "deviceId",
|
|
33741
|
+
form: "single",
|
|
33742
|
+
optional: false
|
|
33743
|
+
}],
|
|
33744
|
+
"zones.addZone": [{
|
|
33745
|
+
name: "deviceId",
|
|
33746
|
+
form: "single",
|
|
33747
|
+
optional: false
|
|
33748
|
+
}],
|
|
33749
|
+
"zones.listZones": [{
|
|
33750
|
+
name: "deviceId",
|
|
33751
|
+
form: "single",
|
|
33752
|
+
optional: false
|
|
33753
|
+
}],
|
|
33754
|
+
"zones.removeZone": [{
|
|
33755
|
+
name: "deviceId",
|
|
33756
|
+
form: "single",
|
|
33757
|
+
optional: false
|
|
33758
|
+
}],
|
|
33759
|
+
"zones.updateZone": [{
|
|
33760
|
+
name: "deviceId",
|
|
33761
|
+
form: "single",
|
|
33762
|
+
optional: false
|
|
33763
|
+
}]
|
|
33764
|
+
});
|
|
31110
33765
|
Object.freeze({
|
|
31111
33766
|
"broker": "broker",
|
|
31112
33767
|
"device-export": "device-export",
|