@camstack/addon-notifiers 1.2.20 → 1.2.22
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 +2831 -99
- package/dist/addon.mjs +2831 -99
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -29,7 +29,7 @@ let node_fs = require("node:fs");
|
|
|
29
29
|
let node_path = require("node:path");
|
|
30
30
|
node_path = __toESM(node_path);
|
|
31
31
|
let node_url = require("node:url");
|
|
32
|
-
//#region ../types/dist/event-category-
|
|
32
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
33
33
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
34
34
|
EventCategory["SystemBoot"] = "system.boot";
|
|
35
35
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -236,6 +236,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
236
236
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
237
237
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
238
238
|
/**
|
|
239
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
240
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
241
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
242
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
243
|
+
* from the placement candidate set for as long as it holds.
|
|
244
|
+
*
|
|
245
|
+
* This exists because the state was previously invisible: little-unraid
|
|
246
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
247
|
+
* and nothing in the system said so.
|
|
248
|
+
*
|
|
249
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
250
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
251
|
+
* serves it exactly as before.
|
|
252
|
+
*/
|
|
253
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
254
|
+
/**
|
|
255
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
256
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
257
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
258
|
+
* per camera.
|
|
259
|
+
*
|
|
260
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
261
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
262
|
+
* camera" produce byte-identical silence.
|
|
263
|
+
*/
|
|
264
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
265
|
+
/**
|
|
239
266
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
240
267
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
241
268
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -3027,6 +3054,9 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3027
3054
|
fallback: left.fallback
|
|
3028
3055
|
}, ctx);
|
|
3029
3056
|
}
|
|
3057
|
+
var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3058
|
+
$ZodPipe.init(inst, def);
|
|
3059
|
+
});
|
|
3030
3060
|
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
3031
3061
|
$ZodType.init(inst, def);
|
|
3032
3062
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -5212,6 +5242,10 @@ function pipe(in_, out) {
|
|
|
5212
5242
|
out
|
|
5213
5243
|
});
|
|
5214
5244
|
}
|
|
5245
|
+
var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
5246
|
+
ZodPipe.init(inst, def);
|
|
5247
|
+
$ZodPreprocess.init(inst, def);
|
|
5248
|
+
});
|
|
5215
5249
|
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
5216
5250
|
$ZodReadonly.init(inst, def);
|
|
5217
5251
|
ZodType.init(inst, def);
|
|
@@ -5270,6 +5304,13 @@ function _instanceof(cls, params = {}) {
|
|
|
5270
5304
|
};
|
|
5271
5305
|
return inst;
|
|
5272
5306
|
}
|
|
5307
|
+
function preprocess(fn, schema) {
|
|
5308
|
+
return new ZodPreprocess({
|
|
5309
|
+
type: "pipe",
|
|
5310
|
+
in: transform(fn),
|
|
5311
|
+
out: schema
|
|
5312
|
+
});
|
|
5313
|
+
}
|
|
5273
5314
|
//#endregion
|
|
5274
5315
|
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5275
5316
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -10948,6 +10989,8 @@ var QueryFilterSchema = object({
|
|
|
10948
10989
|
where: record(string(), unknown()).optional(),
|
|
10949
10990
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10950
10991
|
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
10992
|
+
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
10993
|
+
whereNot: record(string(), unknown()).optional(),
|
|
10951
10994
|
orderBy: object({
|
|
10952
10995
|
field: string(),
|
|
10953
10996
|
direction: _enum(["asc", "desc"])
|
|
@@ -10967,7 +11010,8 @@ var QueryFilterSchema = object({
|
|
|
10967
11010
|
var MutationFilterSchema = object({
|
|
10968
11011
|
where: record(string(), unknown()).optional(),
|
|
10969
11012
|
whereIn: record(string(), array(unknown())).optional(),
|
|
10970
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
|
|
11013
|
+
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
11014
|
+
whereNot: record(string(), unknown()).optional()
|
|
10971
11015
|
});
|
|
10972
11016
|
/** A single stored record: `{ id, data }`. */
|
|
10973
11017
|
var SettingsRecordSchema = object({
|
|
@@ -12324,6 +12368,17 @@ var LlmImageSchema = object({
|
|
|
12324
12368
|
bytes: _instanceof(Uint8Array),
|
|
12325
12369
|
mimeType: string()
|
|
12326
12370
|
});
|
|
12371
|
+
/**
|
|
12372
|
+
* Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
|
|
12373
|
+
* the flag is what a consumer table flips, the count is what the operator tunes.
|
|
12374
|
+
* A retry doubles the wall time of a call, so the two gates that run inside a
|
|
12375
|
+
* notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
|
|
12376
|
+
*/
|
|
12377
|
+
var LlmRetryPolicySchema = object({
|
|
12378
|
+
enabled: boolean().default(false),
|
|
12379
|
+
/** Total attempts INCLUDING the first. 1 = no retry. */
|
|
12380
|
+
maxAttempts: number().int().min(1).max(5).default(1)
|
|
12381
|
+
});
|
|
12327
12382
|
var LlmGenerateBaseInputSchema = object({
|
|
12328
12383
|
/** Collection routing (the notification-output posture). */
|
|
12329
12384
|
addonId: string().optional(),
|
|
@@ -12338,7 +12393,28 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12338
12393
|
jsonSchema: record(string(), unknown()).optional(),
|
|
12339
12394
|
/** Per-call override of the profile default. */
|
|
12340
12395
|
maxTokens: number().int().positive().optional(),
|
|
12341
|
-
temperature: number().optional()
|
|
12396
|
+
temperature: number().optional(),
|
|
12397
|
+
/** Per-call override of the profile default (nucleus sampling). */
|
|
12398
|
+
topP: number().min(0).max(1).optional(),
|
|
12399
|
+
/** Per-call override of the profile default (top-k sampling). */
|
|
12400
|
+
topK: number().int().positive().optional(),
|
|
12401
|
+
/** Per-call override of `profile.timeoutMs` — the total generation bound. */
|
|
12402
|
+
timeoutMs: number().int().positive().optional(),
|
|
12403
|
+
/** Per-call override; beats both the consumer table and the profile. */
|
|
12404
|
+
retry: LlmRetryPolicySchema.optional(),
|
|
12405
|
+
/**
|
|
12406
|
+
* Caller-minted id that makes this generation CANCELLABLE.
|
|
12407
|
+
*
|
|
12408
|
+
* Without it a caller that stops waiting cannot stop the work: the gates race
|
|
12409
|
+
* the call against 8 s and free their own slot when the timer wins, while the
|
|
12410
|
+
* generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
|
|
12411
|
+
* on a single-threaded local model. The per-camera bound then counts WAITS,
|
|
12412
|
+
* not generations, and the real load is unbounded.
|
|
12413
|
+
*
|
|
12414
|
+
* `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
|
|
12415
|
+
* `llm.cancel({ requestId })` tears the socket down.
|
|
12416
|
+
*/
|
|
12417
|
+
requestId: string().optional()
|
|
12342
12418
|
});
|
|
12343
12419
|
/**
|
|
12344
12420
|
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
@@ -12351,6 +12427,18 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
12351
12427
|
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
12352
12428
|
* watchdog — operator decision #3).
|
|
12353
12429
|
*/
|
|
12430
|
+
/**
|
|
12431
|
+
* A companion artifact that MUST land beside the main GGUF: the `mmproj`
|
|
12432
|
+
* projector of a vision model, or shards 2..N of a split GGUF. Carried on the
|
|
12433
|
+
* REF rather than looked up at install time, so what the operator approved in
|
|
12434
|
+
* the preview is exactly what the node downloads.
|
|
12435
|
+
*/
|
|
12436
|
+
var ManagedModelExtraFileSchema = object({
|
|
12437
|
+
url: string(),
|
|
12438
|
+
filename: string(),
|
|
12439
|
+
sizeBytes: number(),
|
|
12440
|
+
sha256: string().optional()
|
|
12441
|
+
});
|
|
12354
12442
|
var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
12355
12443
|
object({
|
|
12356
12444
|
kind: literal("catalog"),
|
|
@@ -12359,7 +12447,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
|
|
|
12359
12447
|
object({
|
|
12360
12448
|
kind: literal("url"),
|
|
12361
12449
|
url: string(),
|
|
12362
|
-
sha256: string().optional()
|
|
12450
|
+
sha256: string().optional(),
|
|
12451
|
+
/** Picker/status label; the file basename when absent. */
|
|
12452
|
+
label: string().optional(),
|
|
12453
|
+
sizeBytes: number().optional(),
|
|
12454
|
+
extraFiles: array(ManagedModelExtraFileSchema).optional()
|
|
12363
12455
|
}),
|
|
12364
12456
|
object({
|
|
12365
12457
|
kind: literal("path"),
|
|
@@ -12377,13 +12469,82 @@ var ManagedRuntimeConfigSchema = object({
|
|
|
12377
12469
|
gpuLayers: number().int().default(0),
|
|
12378
12470
|
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
12379
12471
|
threads: number().int().optional(),
|
|
12380
|
-
/** Concurrent slots. */
|
|
12472
|
+
/** Concurrent slots (`--parallel`). */
|
|
12381
12473
|
parallel: number().int().default(1),
|
|
12474
|
+
/** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
|
|
12475
|
+
batchSize: number().int().positive().optional(),
|
|
12476
|
+
/** Physical batch / micro-batch (`-ub`). */
|
|
12477
|
+
ubatchSize: number().int().positive().optional(),
|
|
12478
|
+
/**
|
|
12479
|
+
* `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
|
|
12480
|
+
* is a no-op elsewhere, so it is offered rather than assumed.
|
|
12481
|
+
*/
|
|
12482
|
+
flashAttention: boolean().default(false),
|
|
12483
|
+
/**
|
|
12484
|
+
* `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
|
|
12485
|
+
* inference. Costs the full model size in resident memory — which is exactly
|
|
12486
|
+
* what the RAM budget is counting.
|
|
12487
|
+
*/
|
|
12488
|
+
mlock: boolean().default(false),
|
|
12489
|
+
/**
|
|
12490
|
+
* `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
|
|
12491
|
+
* start, but avoids the page-fault stalls a network or spinning-disk model
|
|
12492
|
+
* store produces on every first token.
|
|
12493
|
+
*/
|
|
12494
|
+
noMmap: boolean().default(false),
|
|
12495
|
+
/** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
|
|
12496
|
+
* cheapest way to fit a longer context in the same RAM. */
|
|
12497
|
+
cacheTypeK: _enum([
|
|
12498
|
+
"f32",
|
|
12499
|
+
"f16",
|
|
12500
|
+
"q8_0",
|
|
12501
|
+
"q5_1",
|
|
12502
|
+
"q5_0",
|
|
12503
|
+
"q4_1",
|
|
12504
|
+
"q4_0"
|
|
12505
|
+
]).optional(),
|
|
12506
|
+
cacheTypeV: _enum([
|
|
12507
|
+
"f32",
|
|
12508
|
+
"f16",
|
|
12509
|
+
"q8_0",
|
|
12510
|
+
"q5_1",
|
|
12511
|
+
"q5_0",
|
|
12512
|
+
"q4_1",
|
|
12513
|
+
"q4_0"
|
|
12514
|
+
]).optional(),
|
|
12515
|
+
/**
|
|
12516
|
+
* Escape hatch for llama-server flags this schema does NOT model — `--jinja`
|
|
12517
|
+
* (which most vision chat templates need and some language-only models
|
|
12518
|
+
* dislike), `--cont-batching`, `--rope-scaling`, …
|
|
12519
|
+
*
|
|
12520
|
+
* It is NOT a second place to set the flags above. A token that collides
|
|
12521
|
+
* with a typed field is REJECTED at start, naming the field that owns it
|
|
12522
|
+
* (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
|
|
12523
|
+
* the "two switches that disagree" failure this repo has already shipped
|
|
12524
|
+
* twice (D62).
|
|
12525
|
+
*/
|
|
12526
|
+
extraArgs: array(string()).default([]),
|
|
12382
12527
|
/** Else lazy: first generate boots it. */
|
|
12383
12528
|
autoStart: boolean().default(false),
|
|
12384
12529
|
/** 0 = never; frees RAM after quiet periods. */
|
|
12385
12530
|
idleStopMinutes: number().int().default(30)
|
|
12386
12531
|
});
|
|
12532
|
+
/**
|
|
12533
|
+
* Where a multi-GB install currently is. A single 0..1 fraction cannot answer
|
|
12534
|
+
* "is it stuck?" for an install that is three files (shards + mmproj) followed
|
|
12535
|
+
* by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
|
|
12536
|
+
* node looked hung. Phase + file + bytes is the smallest shape that does.
|
|
12537
|
+
*/
|
|
12538
|
+
var LlmDownloadProgressSchema = object({
|
|
12539
|
+
phase: _enum(["downloading", "verifying"]),
|
|
12540
|
+
/** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
|
|
12541
|
+
file: string(),
|
|
12542
|
+
fileIndex: number().int(),
|
|
12543
|
+
fileCount: number().int(),
|
|
12544
|
+
/** Across the WHOLE install, not the current file. */
|
|
12545
|
+
downloadedBytes: number(),
|
|
12546
|
+
totalBytes: number().optional()
|
|
12547
|
+
});
|
|
12387
12548
|
var LlmRuntimeStatusSchema = object({
|
|
12388
12549
|
/** Status is ALWAYS node-qualified. */
|
|
12389
12550
|
nodeId: string(),
|
|
@@ -12400,6 +12561,8 @@ var LlmRuntimeStatusSchema = object({
|
|
|
12400
12561
|
modelPath: string().optional(),
|
|
12401
12562
|
modelId: string().optional(),
|
|
12402
12563
|
downloadProgress: number().min(0).max(1).optional(),
|
|
12564
|
+
/** Detail behind `downloadProgress`; present for the same lifetime. */
|
|
12565
|
+
download: LlmDownloadProgressSchema.optional(),
|
|
12403
12566
|
lastError: string().optional(),
|
|
12404
12567
|
crashesInWindow: number(),
|
|
12405
12568
|
/** Child RSS (sampled best-effort). */
|
|
@@ -12410,7 +12573,14 @@ var LlmNodeModelSchema = object({
|
|
|
12410
12573
|
file: string(),
|
|
12411
12574
|
sizeBytes: number(),
|
|
12412
12575
|
catalogId: string().optional(),
|
|
12413
|
-
installedAt: number().optional()
|
|
12576
|
+
installedAt: number().optional(),
|
|
12577
|
+
/**
|
|
12578
|
+
* Absolute path on the node. Present so a file that is on disk but matches
|
|
12579
|
+
* no catalog entry — a custom Hugging Face install, or a GGUF the operator
|
|
12580
|
+
* copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
|
|
12581
|
+
* it the picker could list such a file and do nothing with it.
|
|
12582
|
+
*/
|
|
12583
|
+
path: string().optional()
|
|
12414
12584
|
});
|
|
12415
12585
|
var LlmRuntimeDiskUsageSchema = object({
|
|
12416
12586
|
nodeId: string(),
|
|
@@ -12466,10 +12636,47 @@ var LlmProfileSchema = object({
|
|
|
12466
12636
|
baseUrl: string().optional(),
|
|
12467
12637
|
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
12468
12638
|
apiKey: string().optional(),
|
|
12639
|
+
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
12640
|
+
* degraded to text — that shipped once and produced a confident answer to a
|
|
12641
|
+
* question about a picture nobody sent. */
|
|
12469
12642
|
supportsVision: boolean(),
|
|
12470
12643
|
temperature: number().min(0).max(2).optional(),
|
|
12644
|
+
/** Nucleus sampling. Every wire we speak has it. */
|
|
12645
|
+
topP: number().min(0).max(1).optional(),
|
|
12646
|
+
/** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
|
|
12647
|
+
* wire does, and the client drops it there (measured: the request body gets
|
|
12648
|
+
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
12649
|
+
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
12650
|
+
topK: number().int().positive().optional(),
|
|
12471
12651
|
maxTokens: number().int().positive().optional(),
|
|
12652
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own);
|
|
12653
|
+
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
12654
|
+
* the model with, so it is the one field that changes a PROCESS. */
|
|
12655
|
+
contextLength: number().int().positive().optional(),
|
|
12656
|
+
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
12657
|
+
* two system prompts fighting is worse than either alone). */
|
|
12658
|
+
systemPrompt: string().optional(),
|
|
12659
|
+
/** Total generation bound — the only one a unary call has. */
|
|
12472
12660
|
timeoutMs: number().int().positive().default(6e4),
|
|
12661
|
+
/** The TCP handshake only — "is the port even open". NOT the wait for
|
|
12662
|
+
* response headers: on the LM Studio / llama-server wire those are written
|
|
12663
|
+
* once the model has finished loading, so they belong to the bound below. */
|
|
12664
|
+
connectTimeoutMs: number().int().positive().default(1e4),
|
|
12665
|
+
/** Accepted, but no output yet — response headers included, because a cold
|
|
12666
|
+
* GPU load is exactly what happens before them. */
|
|
12667
|
+
firstTokenTimeoutMs: number().int().positive().default(12e4),
|
|
12668
|
+
/** Output started then stopped. */
|
|
12669
|
+
idleTimeoutMs: number().int().positive().default(6e4),
|
|
12670
|
+
/** Profile-level default. The per-consumer table and a per-call override
|
|
12671
|
+
* both beat it — see `resolveRetryPolicy`. */
|
|
12672
|
+
retry: LlmRetryPolicySchema.default({
|
|
12673
|
+
enabled: false,
|
|
12674
|
+
maxAttempts: 1
|
|
12675
|
+
}),
|
|
12676
|
+
/** Whether this profile may use tools. The tool-call plumbing rides the
|
|
12677
|
+
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
12678
|
+
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
12679
|
+
toolsEnabled: boolean().default(false),
|
|
12473
12680
|
extraHeaders: record(string(), string()).optional(),
|
|
12474
12681
|
/** kind === 'managed-local' only (spec §4). */
|
|
12475
12682
|
runtime: ManagedRuntimeConfigSchema.optional()
|
|
@@ -12519,6 +12726,36 @@ var ManagedModelCatalogEntrySchema = object({
|
|
|
12519
12726
|
/** Vision models: companion projector file. */
|
|
12520
12727
|
mmprojUrl: string().optional()
|
|
12521
12728
|
});
|
|
12729
|
+
/**
|
|
12730
|
+
* The outcome of turning one operator-typed Hugging Face reference into a
|
|
12731
|
+
* download plan. A RESULT, never a throw: "this repo has 24 quantizations and
|
|
12732
|
+
* I will not pick for you" is a normal answer the UI has to render, not an
|
|
12733
|
+
* exception.
|
|
12734
|
+
*
|
|
12735
|
+
* `candidates` is the whole reason the refusal is usable — every string in it
|
|
12736
|
+
* is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
|
|
12737
|
+
*/
|
|
12738
|
+
var HfModelResolutionSchema = discriminatedUnion("ok", [object({
|
|
12739
|
+
ok: literal(true),
|
|
12740
|
+
/** Ready to hand to `installModel` unchanged. */
|
|
12741
|
+
model: ManagedModelRefSchema,
|
|
12742
|
+
label: string(),
|
|
12743
|
+
repo: string(),
|
|
12744
|
+
quantization: string(),
|
|
12745
|
+
purpose: _enum(["text", "vision"]),
|
|
12746
|
+
totalBytes: number(),
|
|
12747
|
+
/** mmproj + shards, for the preview: an operator approving 23 GB should
|
|
12748
|
+
* see that 0.9 GB of it is a projector they did not name. */
|
|
12749
|
+
extraFilenames: array(string())
|
|
12750
|
+
}), object({
|
|
12751
|
+
ok: literal(false),
|
|
12752
|
+
code: string(),
|
|
12753
|
+
message: string(),
|
|
12754
|
+
candidates: array(string()).optional(),
|
|
12755
|
+
/** Set when the refusal was only the ceiling: re-calling with
|
|
12756
|
+
* `maxBytes: requiredBytes` is the operator's explicit override. */
|
|
12757
|
+
requiredBytes: number().optional()
|
|
12758
|
+
})]);
|
|
12522
12759
|
var LlmRuntimeNodeSchema = object({
|
|
12523
12760
|
nodeId: string(),
|
|
12524
12761
|
reachable: boolean(),
|
|
@@ -12531,7 +12768,10 @@ var ProfileRefInputSchema = object({
|
|
|
12531
12768
|
addonId: string(),
|
|
12532
12769
|
profileId: string()
|
|
12533
12770
|
});
|
|
12534
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12771
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
|
|
12772
|
+
addonId: string().optional(),
|
|
12773
|
+
requestId: string()
|
|
12774
|
+
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
12535
12775
|
kind: "mutation",
|
|
12536
12776
|
auth: "admin"
|
|
12537
12777
|
}), method(ProfileRefInputSchema, _void(), {
|
|
@@ -12552,6 +12792,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
12552
12792
|
consumer: string().optional(),
|
|
12553
12793
|
profileId: string().optional()
|
|
12554
12794
|
}), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
|
|
12795
|
+
/** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
|
|
12796
|
+
* `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
|
|
12797
|
+
ref: string(),
|
|
12798
|
+
/** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
|
|
12799
|
+
maxBytes: number().positive().optional()
|
|
12800
|
+
}), HfModelResolutionSchema, {
|
|
12801
|
+
kind: "mutation",
|
|
12802
|
+
auth: "admin"
|
|
12803
|
+
}), method(object({
|
|
12555
12804
|
nodeId: string(),
|
|
12556
12805
|
model: ManagedModelRefSchema
|
|
12557
12806
|
}), _void(), {
|
|
@@ -13111,11 +13360,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13111
13360
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13112
13361
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13113
13362
|
* differently.
|
|
13363
|
+
*
|
|
13364
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13365
|
+
*
|
|
13366
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13367
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13368
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13369
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13370
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13371
|
+
* honestly.
|
|
13372
|
+
*
|
|
13373
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13374
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13375
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13376
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13377
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13378
|
+
*
|
|
13379
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13380
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13381
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13382
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13383
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13114
13384
|
*/
|
|
13115
13385
|
var NotificationActionIconSchema = _enum([
|
|
13116
13386
|
"acknowledge",
|
|
13117
13387
|
"dismiss",
|
|
13118
13388
|
"silence",
|
|
13389
|
+
"snooze",
|
|
13119
13390
|
"view",
|
|
13120
13391
|
"play",
|
|
13121
13392
|
"open",
|
|
@@ -13123,9 +13394,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13123
13394
|
"lock",
|
|
13124
13395
|
"unlock",
|
|
13125
13396
|
"arm",
|
|
13397
|
+
"arm-home",
|
|
13398
|
+
"arm-away",
|
|
13399
|
+
"arm-night",
|
|
13126
13400
|
"disarm",
|
|
13127
13401
|
"light",
|
|
13128
|
-
"alert"
|
|
13402
|
+
"alert",
|
|
13403
|
+
"camera"
|
|
13129
13404
|
]);
|
|
13130
13405
|
/** A single tap-through action button. */
|
|
13131
13406
|
var NotificationActionSchema = object({
|
|
@@ -13339,6 +13614,24 @@ var notificationOutputCapability = {
|
|
|
13339
13614
|
}), _void(), { kind: "mutation" })
|
|
13340
13615
|
}
|
|
13341
13616
|
};
|
|
13617
|
+
new Set([
|
|
13618
|
+
{
|
|
13619
|
+
id: "person",
|
|
13620
|
+
name: "Person"
|
|
13621
|
+
},
|
|
13622
|
+
{
|
|
13623
|
+
id: "vehicle",
|
|
13624
|
+
name: "Vehicle"
|
|
13625
|
+
},
|
|
13626
|
+
{
|
|
13627
|
+
id: "animal",
|
|
13628
|
+
name: "Animal"
|
|
13629
|
+
},
|
|
13630
|
+
{
|
|
13631
|
+
id: "package",
|
|
13632
|
+
name: "Package"
|
|
13633
|
+
}
|
|
13634
|
+
].map((l) => l.id));
|
|
13342
13635
|
var COCO_TO_MACRO = {
|
|
13343
13636
|
mapping: {
|
|
13344
13637
|
person: "person",
|
|
@@ -14131,11 +14424,15 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14131
14424
|
"stream-offline",
|
|
14132
14425
|
"node-online",
|
|
14133
14426
|
"node-offline",
|
|
14427
|
+
"node-inference-unavailable",
|
|
14428
|
+
"detection-blind",
|
|
14134
14429
|
"addon-update-available",
|
|
14135
14430
|
"server-update-available",
|
|
14136
14431
|
"alarm-triggered",
|
|
14137
14432
|
"alarm-armed",
|
|
14138
14433
|
"alarm-disarmed",
|
|
14434
|
+
"alarm-arming",
|
|
14435
|
+
"alarm-arm-refused",
|
|
14139
14436
|
"camera-online",
|
|
14140
14437
|
"camera-offline",
|
|
14141
14438
|
"camera-disabled",
|
|
@@ -14190,7 +14487,16 @@ var NcScheduleSchema = object({
|
|
|
14190
14487
|
});
|
|
14191
14488
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
14192
14489
|
var NcPlateMatcherSchema = object({
|
|
14193
|
-
|
|
14490
|
+
/**
|
|
14491
|
+
* Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
|
|
14492
|
+
* pipeline could read** — the plate half of "no selection = no narrowing",
|
|
14493
|
+
* and the switch that says this rule is about vehicles that were IDENTIFIED
|
|
14494
|
+
* rather than merely seen. A subject carrying no plate still fails.
|
|
14495
|
+
*
|
|
14496
|
+
* The `.min(1)` this used to carry made that state unauthorable; nothing has
|
|
14497
|
+
* ever persisted an empty list, so widening it cannot change an existing rule.
|
|
14498
|
+
*/
|
|
14499
|
+
values: array(string().min(1)),
|
|
14194
14500
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
14195
14501
|
maxDistance: number().int().min(0).max(3).default(1)
|
|
14196
14502
|
});
|
|
@@ -14224,28 +14530,36 @@ var NcOccupancyConditionSchema = object({
|
|
|
14224
14530
|
/**
|
|
14225
14531
|
* Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
|
|
14226
14532
|
*
|
|
14227
|
-
*
|
|
14228
|
-
*
|
|
14229
|
-
*
|
|
14230
|
-
*
|
|
14231
|
-
*
|
|
14232
|
-
*
|
|
14233
|
-
*
|
|
14234
|
-
*
|
|
14235
|
-
*
|
|
14236
|
-
*
|
|
14237
|
-
*
|
|
14238
|
-
*
|
|
14239
|
-
*
|
|
14240
|
-
*
|
|
14241
|
-
*
|
|
14242
|
-
*
|
|
14243
|
-
*
|
|
14244
|
-
*
|
|
14245
|
-
*
|
|
14246
|
-
*
|
|
14247
|
-
*
|
|
14248
|
-
* `
|
|
14533
|
+
* **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
|
|
14534
|
+
* rule is in is not a stored field — it is WHICH FILTER the rule carries, so
|
|
14535
|
+
* there is no second switch that can disagree with the first and every rule
|
|
14536
|
+
* authored before the decision migrates for free (`audioModeOf`):
|
|
14537
|
+
*
|
|
14538
|
+
* - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
|
|
14539
|
+
* classifier labels with one of them. No window, no percentage:
|
|
14540
|
+
* `hitPercent` and `samplingSeconds` are ignored, and the rule's own
|
|
14541
|
+
* `throttle` cooldown is the only brake. The per-label confidence floor is
|
|
14542
|
+
* the analyzer's (`classificationMinScore`, per device) — a label only
|
|
14543
|
+
* reaches this condition if the classifier was already confident enough.
|
|
14544
|
+
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14545
|
+
* the condition: at least `hitPercent`% of the samples over
|
|
14546
|
+
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
14547
|
+
* {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
|
|
14548
|
+
* must be FULL before it can match — a window open for two of its ten
|
|
14549
|
+
* seconds is 100% of nothing.
|
|
14550
|
+
*
|
|
14551
|
+
* **Why label mode has no window.** It had one, and it never fired: the
|
|
14552
|
+
* analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
|
|
14553
|
+
* of them per episode, even through continuous crying. The measured maximum
|
|
14554
|
+
* `hitPercent` over the whole live history was 40 — under the shipped default
|
|
14555
|
+
* of 60, so a label rule could not fire at all, ever. A percentage of frames is
|
|
14556
|
+
* the wrong question to ask of a sparse classifier.
|
|
14557
|
+
*
|
|
14558
|
+
* **Fail-closed when NEITHER is given** — every sample would be a trivial hit
|
|
14559
|
+
* and the rule would fire on silence. The schema cannot express "exactly one
|
|
14560
|
+
* of" without becoming a ZodEffects the cap path would have to special-case, so
|
|
14561
|
+
* the exclusivity is enforced where every editor writes (`patchAudio`) and a
|
|
14562
|
+
* legacy rule carrying both resolves to LABEL (the mode that fires).
|
|
14249
14563
|
*
|
|
14250
14564
|
* Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
|
|
14251
14565
|
* `audio-*` ids). Both spellings are accepted — the matcher normalizes the
|
|
@@ -14253,13 +14567,13 @@ var NcOccupancyConditionSchema = object({
|
|
|
14253
14567
|
* an operator who typed `dog` mean the same thing.
|
|
14254
14568
|
*/
|
|
14255
14569
|
var NcAudioConditionSchema = object({
|
|
14256
|
-
/**
|
|
14570
|
+
/** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
|
|
14257
14571
|
labels: array(string().min(1)).min(1).optional(),
|
|
14258
|
-
/**
|
|
14572
|
+
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14259
14573
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14260
|
-
/**
|
|
14574
|
+
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14261
14575
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14262
|
-
/**
|
|
14576
|
+
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14263
14577
|
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14264
14578
|
});
|
|
14265
14579
|
/**
|
|
@@ -14397,13 +14711,81 @@ var NcRuleActionsSchema = object({
|
|
|
14397
14711
|
*/
|
|
14398
14712
|
buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
|
|
14399
14713
|
});
|
|
14714
|
+
/**
|
|
14715
|
+
* "This rule applies only while `deviceId` is in one of `states`."
|
|
14716
|
+
*
|
|
14717
|
+
* The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
|
|
14718
|
+
* `on`/`off` for a switch — not a normalised set, because normalising would
|
|
14719
|
+
* make the condition lie about devices whose states have no equivalent.
|
|
14720
|
+
*
|
|
14721
|
+
* An unreadable state does NOT match: see the engine's fail-closed gate. A
|
|
14722
|
+
* condition that fired on "I could not read it" would be worse than no gate.
|
|
14723
|
+
*/
|
|
14724
|
+
var NcDeviceStateConditionSchema = object({
|
|
14725
|
+
deviceId: number().int(),
|
|
14726
|
+
/** Any of these matches. */
|
|
14727
|
+
states: array(string().min(1)).min(1)
|
|
14728
|
+
});
|
|
14729
|
+
/**
|
|
14730
|
+
* "This rule applies only while scene `sceneId` is `matched` / `diverged`."
|
|
14731
|
+
*
|
|
14732
|
+
* A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
|
|
14733
|
+
* carrying one makes the rule fire on that subject and nothing else. Scene is
|
|
14734
|
+
* the other shape entirely, the `deviceState` shape: it narrows a rule that
|
|
14735
|
+
* already has a trigger ("tell me about a person at the front door, but only
|
|
14736
|
+
* while the bin is still out"). That is why it composes with every delivery
|
|
14737
|
+
* instead of owning one, and why no new `NcDelivery` member and no new subject
|
|
14738
|
+
* kind exist for it — see D159.
|
|
14739
|
+
*
|
|
14740
|
+
* ── Identity ───────────────────────────────────────────────────────────────
|
|
14741
|
+
* `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
|
|
14742
|
+
* globally unique, so it needs no device to disambiguate it. `deviceId` is
|
|
14743
|
+
* carried as a HINT for the editor and for the log line, never as part of the
|
|
14744
|
+
* lookup key: a rule whose hint drifted must still gate correctly.
|
|
14745
|
+
*
|
|
14746
|
+
* ── Which boolean ──────────────────────────────────────────────────────────
|
|
14747
|
+
* `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
|
|
14748
|
+
* already declares which boolean drives notification rules, and a second knob
|
|
14749
|
+
* that could disagree with it is exactly the D62 failure. Set it only to
|
|
14750
|
+
* override one rule against the scene's own default.
|
|
14751
|
+
*
|
|
14752
|
+
* - LIVE reading (`emit`/`latched` resolve to live): passes iff
|
|
14753
|
+
* `verdict === requiredState`. `unknown` — no reference for this light, view
|
|
14754
|
+
* shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
|
|
14755
|
+
* evidence, in either direction.
|
|
14756
|
+
* - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
|
|
14757
|
+
* The latch is a durable fact about the past ("it has diverged since I armed
|
|
14758
|
+
* it"), so a camera that has gone dark does not clear it — that is the whole
|
|
14759
|
+
* reason the operator asked for a latch.
|
|
14760
|
+
*
|
|
14761
|
+
* The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
|
|
14762
|
+
* event path, never the cap: D49. A mirror that has never loaded, or a scene it
|
|
14763
|
+
* does not carry, reads absent and the rule does NOT fire — fail closed, and
|
|
14764
|
+
* said out loud in the log rather than dropped in silence.
|
|
14765
|
+
*/
|
|
14766
|
+
var NcSceneConditionSchema = object({
|
|
14767
|
+
/** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
|
|
14768
|
+
sceneId: string().min(1),
|
|
14769
|
+
/** The camera the scene lives on. A hint for the editor and the log line. */
|
|
14770
|
+
deviceId: number().int().optional(),
|
|
14771
|
+
/** The state the scene must be in for the rule to fire. */
|
|
14772
|
+
requiredState: _enum(["matched", "diverged"]),
|
|
14773
|
+
/**
|
|
14774
|
+
* Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
|
|
14775
|
+
* scene's own `emit` field, which is the only place that decision belongs.
|
|
14776
|
+
*/
|
|
14777
|
+
latched: boolean().optional()
|
|
14778
|
+
});
|
|
14400
14779
|
var NcConditionsSchema = object({
|
|
14401
14780
|
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
14402
|
-
deviceState:
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14781
|
+
deviceState: NcDeviceStateConditionSchema.optional(),
|
|
14782
|
+
/**
|
|
14783
|
+
* Gate on a SCENE's state — "only while the bin is still out". Composes with
|
|
14784
|
+
* every trigger (detection, occupancy, audio, sensor, package, track-end);
|
|
14785
|
+
* unlike `occupancy`/`audio` it discriminates nothing. See
|
|
14786
|
+
* {@link NcSceneCondition} and D159.
|
|
14787
|
+
*/
|
|
14788
|
+
scene: NcSceneConditionSchema.optional(),
|
|
14407
14789
|
/** Device scope — absent = all devices. */
|
|
14408
14790
|
devices: array(number()).optional(),
|
|
14409
14791
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -14429,18 +14811,47 @@ var NcConditionsSchema = object({
|
|
|
14429
14811
|
*/
|
|
14430
14812
|
labelEquals: array(string().min(1)).optional(),
|
|
14431
14813
|
/**
|
|
14432
|
-
*
|
|
14433
|
-
*
|
|
14434
|
-
*
|
|
14814
|
+
* KNOWN FACES — the rule's identity scope, and the switch that says the rule
|
|
14815
|
+
* is about recognised people at all.
|
|
14816
|
+
*
|
|
14817
|
+
* Three states, and the empty one is the point:
|
|
14818
|
+
*
|
|
14819
|
+
* | value | meaning |
|
|
14820
|
+
* | --- | --- |
|
|
14821
|
+
* | absent | the rule does not care who it is; an unrecognised person matches |
|
|
14822
|
+
* | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
|
|
14823
|
+
* | a list | only these identities |
|
|
14824
|
+
*
|
|
14825
|
+
* `[]` is the repo-wide "no selection = no narrowing" reading (an absent
|
|
14826
|
+
* `devices` list is every device), applied one level down: the operator has
|
|
14827
|
+
* turned the face scope ON and narrowed it to nothing, which is every known
|
|
14828
|
+
* face. No second field states the same thing — a switch that can disagree
|
|
14829
|
+
* with the list under it is worse than no switch (D62).
|
|
14830
|
+
*
|
|
14831
|
+
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
14832
|
+
* renameable, and a rule authored on "Gianluca" went silently dark the moment
|
|
14833
|
+
* the operator fixed the spelling. The id reaches the record on
|
|
14834
|
+
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
14835
|
+
* `{{label}}` renders.
|
|
14836
|
+
*
|
|
14837
|
+
* Rules written before this carry NAMES, and are resolved to ids lazily at
|
|
14838
|
+
* load (`NcRuleStore.load`) against the live gallery — a name nothing answers
|
|
14839
|
+
* for is left as it stands and reported, never dropped. The engine also
|
|
14840
|
+
* accepts a display-name hit as a compatibility leg, so a rule whose
|
|
14841
|
+
* migration could not resolve keeps matching exactly what it matched before.
|
|
14435
14842
|
*/
|
|
14436
14843
|
identities: array(string().min(1)).optional(),
|
|
14437
|
-
/**
|
|
14844
|
+
/**
|
|
14845
|
+
* KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
|
|
14846
|
+
* the empty-list reading: `values: []` is "any plate the OCR could read",
|
|
14847
|
+
* a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
|
|
14848
|
+
*/
|
|
14438
14849
|
plates: NcPlateMatcherSchema.optional(),
|
|
14439
14850
|
/**
|
|
14440
|
-
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics
|
|
14441
|
-
*
|
|
14442
|
-
* identity
|
|
14443
|
-
*
|
|
14851
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
|
|
14852
|
+
* the same id members and the same lazy name→id migration. A record with NO
|
|
14853
|
+
* identity passes (nothing to exclude), unlike the include variant which
|
|
14854
|
+
* fails on an unrecognised subject. An EMPTY list excludes nobody.
|
|
14444
14855
|
*/
|
|
14445
14856
|
identitiesExclude: array(string().min(1)).optional(),
|
|
14446
14857
|
/**
|
|
@@ -14832,7 +15243,80 @@ var NcRuleInputSchema = object({
|
|
|
14832
15243
|
* a rule that predates the gate must keep delivering byte-for-byte as it
|
|
14833
15244
|
* did, and absent is the only way to say that without a migration.
|
|
14834
15245
|
*/
|
|
14835
|
-
confirm: NcConfirmSchema.optional()
|
|
15246
|
+
confirm: NcConfirmSchema.optional(),
|
|
15247
|
+
/**
|
|
15248
|
+
* WAIT for face/plate recognition before saying anything.
|
|
15249
|
+
*
|
|
15250
|
+
* A notification's TEXT is frozen at enqueue and its media is re-resolved at
|
|
15251
|
+
* send; the identity is neither. A face is confirmed after `confirmFrames`
|
|
15252
|
+
* agreeing observations — p50 **11.4 s** after the track was first seen,
|
|
15253
|
+
* measured on this hub — and an `immediate` rule enqueues on the first object
|
|
15254
|
+
* event, seconds before that. So "Gianluca è arrivato" is unsayable on the
|
|
15255
|
+
* immediate path, and no amount of media re-resolution fixes a sentence.
|
|
15256
|
+
*
|
|
15257
|
+
* Only two honest answers exist, and this flag picks between them. It has
|
|
15258
|
+
* effect ONLY on a rule that declares a recognition scope
|
|
15259
|
+
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
15260
|
+
* other rule there is nothing to wait for and the flag is inert.
|
|
15261
|
+
*
|
|
15262
|
+
* | value | what happens |
|
|
15263
|
+
* | --- | --- |
|
|
15264
|
+
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
15265
|
+
* | 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) |
|
|
15266
|
+
*
|
|
15267
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15268
|
+
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
15269
|
+
* rule authored before this field meant.
|
|
15270
|
+
*
|
|
15271
|
+
* The cost of `true` is stated here because the editor states it too: a rule
|
|
15272
|
+
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
15273
|
+
* tests every zone the track visited and a `crossing` condition can no longer
|
|
15274
|
+
* be satisfied, because a closed track carries no crossing.
|
|
15275
|
+
*/
|
|
15276
|
+
waitForEnhancement: boolean().optional(),
|
|
15277
|
+
/**
|
|
15278
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
15279
|
+
*
|
|
15280
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
15281
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
15282
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
15283
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
15284
|
+
* notification with an updated one naming everybody. The push carries the
|
|
15285
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
15286
|
+
*
|
|
15287
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
15288
|
+
*
|
|
15289
|
+
* ### Why an idle cutoff and not a window
|
|
15290
|
+
*
|
|
15291
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
15292
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
15293
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
15294
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
15295
|
+
*
|
|
15296
|
+
* ### What it replaces
|
|
15297
|
+
*
|
|
15298
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
15299
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
15300
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
15301
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
15302
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
15303
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
15304
|
+
* throttled by the window its own first member spent.
|
|
15305
|
+
*
|
|
15306
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
15307
|
+
*
|
|
15308
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
15309
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
15310
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
15311
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
15312
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
15313
|
+
* path. Neither combination fires twice for one subject.
|
|
15314
|
+
*
|
|
15315
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
15316
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
15317
|
+
* field existed.
|
|
15318
|
+
*/
|
|
15319
|
+
groupIdleSec: number().int().min(0).max(600).optional()
|
|
14836
15320
|
});
|
|
14837
15321
|
/**
|
|
14838
15322
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -14939,6 +15423,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14939
15423
|
"occupancy",
|
|
14940
15424
|
"audio",
|
|
14941
15425
|
"deviceState",
|
|
15426
|
+
"scene",
|
|
14942
15427
|
"systemEvent"
|
|
14943
15428
|
]),
|
|
14944
15429
|
operator: _enum([
|
|
@@ -15344,7 +15829,87 @@ var MethodAccessSchema = _enum([
|
|
|
15344
15829
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
15345
15830
|
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
15346
15831
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
15347
|
-
|
|
15832
|
+
/**
|
|
15833
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
15834
|
+
*
|
|
15835
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
15836
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
15837
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
15838
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
15839
|
+
*
|
|
15840
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
15841
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
15842
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
15843
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
15844
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
15845
|
+
* is NOT covered until the grant is edited.
|
|
15846
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
15847
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
15848
|
+
* re-resolves on the next request.
|
|
15849
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
15850
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
15851
|
+
* null/unset location matches NO `locations` selector.
|
|
15852
|
+
*/
|
|
15853
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
15854
|
+
object({ kind: literal("all") }),
|
|
15855
|
+
object({
|
|
15856
|
+
kind: literal("ids"),
|
|
15857
|
+
ids: array(number().int()).min(1)
|
|
15858
|
+
}),
|
|
15859
|
+
object({
|
|
15860
|
+
kind: literal("types"),
|
|
15861
|
+
types: array(_enum(DeviceType)).min(1)
|
|
15862
|
+
}),
|
|
15863
|
+
object({
|
|
15864
|
+
kind: literal("locations"),
|
|
15865
|
+
locations: array(string().min(1)).min(1)
|
|
15866
|
+
})
|
|
15867
|
+
]);
|
|
15868
|
+
var DeviceTokenScopeSchema = object({
|
|
15869
|
+
type: literal("device"),
|
|
15870
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
15871
|
+
selector: DeviceSelectorSchema,
|
|
15872
|
+
access: array(MethodAccessSchema).min(1),
|
|
15873
|
+
/**
|
|
15874
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
15875
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
15876
|
+
* Direction is parent → children ONLY.
|
|
15877
|
+
*
|
|
15878
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
15879
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
15880
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
15881
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
15882
|
+
* explicitly to override that default per grant.
|
|
15883
|
+
*/
|
|
15884
|
+
includeLinked: boolean().optional()
|
|
15885
|
+
});
|
|
15886
|
+
/**
|
|
15887
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
15888
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
15889
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
15890
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
15891
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
15892
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
15893
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
15894
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
15895
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
15896
|
+
*/
|
|
15897
|
+
function migrateLegacyTokenScope(raw) {
|
|
15898
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
15899
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
15900
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
15901
|
+
const targets = Reflect.get(raw, "targets");
|
|
15902
|
+
if (!Array.isArray(targets)) return raw;
|
|
15903
|
+
return {
|
|
15904
|
+
type: "device",
|
|
15905
|
+
selector: {
|
|
15906
|
+
kind: "ids",
|
|
15907
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
15908
|
+
},
|
|
15909
|
+
access: Reflect.get(raw, "access")
|
|
15910
|
+
};
|
|
15911
|
+
}
|
|
15912
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
15348
15913
|
object({
|
|
15349
15914
|
type: literal("category"),
|
|
15350
15915
|
target: CapScopeSchema,
|
|
@@ -15360,18 +15925,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
|
|
|
15360
15925
|
target: string(),
|
|
15361
15926
|
access: array(MethodAccessSchema).min(1)
|
|
15362
15927
|
}),
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
/**
|
|
15366
|
-
* One or more deviceIds (serialised as strings for wire-format
|
|
15367
|
-
* consistency with the rest of the union). Matcher accepts if
|
|
15368
|
-
* `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
|
|
15369
|
-
* of one scope-per-device when granting access to a set of cameras.
|
|
15370
|
-
*/
|
|
15371
|
-
targets: array(string()).min(1),
|
|
15372
|
-
access: array(MethodAccessSchema).min(1)
|
|
15373
|
-
})
|
|
15374
|
-
]);
|
|
15928
|
+
DeviceTokenScopeSchema
|
|
15929
|
+
]));
|
|
15375
15930
|
object({
|
|
15376
15931
|
id: string(),
|
|
15377
15932
|
username: string(),
|
|
@@ -15688,7 +16243,7 @@ var TrackEnvelopeSchema = object({
|
|
|
15688
16243
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
15689
16244
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
15690
16245
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
15691
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
16246
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
15692
16247
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
15693
16248
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
15694
16249
|
* (`getObjectEvents` et al.).
|
|
@@ -15824,7 +16379,21 @@ union([literal(1), literal(2)]);
|
|
|
15824
16379
|
var LabelAttributionSchema = object({
|
|
15825
16380
|
stepId: string(),
|
|
15826
16381
|
modelId: string().optional(),
|
|
15827
|
-
decidedAt: number()
|
|
16382
|
+
decidedAt: number(),
|
|
16383
|
+
/**
|
|
16384
|
+
* The GALLERY id behind a recognised tier-2 label — a face-gallery
|
|
16385
|
+
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
16386
|
+
*
|
|
16387
|
+
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
16388
|
+
* notification rule authored on "Gianluca" stopped matching the moment the
|
|
16389
|
+
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
16390
|
+
* the thing that does not move, so it is what a rule matches on
|
|
16391
|
+
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
16392
|
+
*
|
|
16393
|
+
* Absent when the label names no gallery row — a plate the OCR read but no
|
|
16394
|
+
* vehicle claims, a sub-class, a species, any tier-1 value.
|
|
16395
|
+
*/
|
|
16396
|
+
identityId: string().optional()
|
|
15828
16397
|
});
|
|
15829
16398
|
/**
|
|
15830
16399
|
* The TIERED label model (roadmap 4g), spread into `TrackSchema` and
|
|
@@ -15961,6 +16530,28 @@ var TrackSchema = object({
|
|
|
15961
16530
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
15962
16531
|
*/
|
|
15963
16532
|
hasFace: boolean().optional(),
|
|
16533
|
+
/**
|
|
16534
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16535
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16536
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
16537
|
+
*
|
|
16538
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
16539
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
16540
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
16541
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
16542
|
+
* stop. This is the composition note that makes the row true.
|
|
16543
|
+
*
|
|
16544
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
16545
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
16546
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
16547
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
16548
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
16549
|
+
*
|
|
16550
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
16551
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
16552
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16553
|
+
*/
|
|
16554
|
+
hasRider: boolean().optional(),
|
|
15964
16555
|
...TrackFlagFields,
|
|
15965
16556
|
...TrackRetrainFields
|
|
15966
16557
|
});
|
|
@@ -16310,7 +16901,10 @@ var RecentTracksQueryInput = object({
|
|
|
16310
16901
|
* Encodes the (lastSeen, trackId) sort position — treat as opaque. */
|
|
16311
16902
|
cursor: string().optional(),
|
|
16312
16903
|
/** See {@link TrackProjectionSchema}. Default `full`. */
|
|
16313
|
-
projection: TrackProjectionSchema.optional()
|
|
16904
|
+
projection: TrackProjectionSchema.optional(),
|
|
16905
|
+
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
16906
|
+
* feed lists passages; parking records live on the stationary registry. */
|
|
16907
|
+
includeStationary: boolean().optional()
|
|
16314
16908
|
});
|
|
16315
16909
|
var RecentTracksPageSchema = object({
|
|
16316
16910
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -16528,7 +17122,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16528
17122
|
zone: TrackZoneFilterSchema.optional(),
|
|
16529
17123
|
/** See {@link TrackProjectionSchema}. Default `full` (backward
|
|
16530
17124
|
* compatible — omitting the field keeps today's exact behaviour). */
|
|
16531
|
-
projection: TrackProjectionSchema.optional()
|
|
17125
|
+
projection: TrackProjectionSchema.optional(),
|
|
17126
|
+
/** Include stationary-promoted rows (parked objects handed to the
|
|
17127
|
+
* stationary registry). Default false: the timeline lists passages,
|
|
17128
|
+
* not parking records (operator decision, 2026-08-15). */
|
|
17129
|
+
includeStationary: boolean().optional()
|
|
16532
17130
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
16533
17131
|
kind: "mutation",
|
|
16534
17132
|
auth: "admin"
|
|
@@ -16692,11 +17290,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16692
17290
|
auth: "admin"
|
|
16693
17291
|
}), method(object({
|
|
16694
17292
|
eventId: string(),
|
|
16695
|
-
kind: MediaFileKindEnum.optional()
|
|
17293
|
+
kind: MediaFileKindEnum.optional(),
|
|
17294
|
+
deviceId: number()
|
|
17295
|
+
}), array(MediaFileSchema).readonly()), method(object({
|
|
17296
|
+
trackId: string(),
|
|
17297
|
+
kinds: array(MediaFileKindEnum).optional(),
|
|
17298
|
+
deviceId: number()
|
|
16696
17299
|
}), array(MediaFileSchema).readonly()), method(object({
|
|
16697
17300
|
trackId: string(),
|
|
16698
|
-
|
|
16699
|
-
}), array(
|
|
17301
|
+
deviceId: number()
|
|
17302
|
+
}), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
|
|
16700
17303
|
kind: "mutation",
|
|
16701
17304
|
auth: "admin"
|
|
16702
17305
|
}), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
|
|
@@ -17356,6 +17959,17 @@ var maxSessionHoldMsField = {
|
|
|
17356
17959
|
default: 12e4,
|
|
17357
17960
|
step: 5e3
|
|
17358
17961
|
};
|
|
17962
|
+
/**
|
|
17963
|
+
* Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
|
|
17964
|
+
* 5s so a rearm can never degenerate into per-event stream churn; default 90s
|
|
17965
|
+
* comfortably outlives the gap between two PIR wakes on a battery camera.
|
|
17966
|
+
*/
|
|
17967
|
+
var audioMotionWindowMsField = {
|
|
17968
|
+
min: 5e3,
|
|
17969
|
+
max: 6e5,
|
|
17970
|
+
default: 9e4,
|
|
17971
|
+
step: 5e3
|
|
17972
|
+
};
|
|
17359
17973
|
var motionFpsField = {
|
|
17360
17974
|
min: 1,
|
|
17361
17975
|
max: 30,
|
|
@@ -17368,10 +17982,26 @@ var detectionFpsField = {
|
|
|
17368
17982
|
default: 10,
|
|
17369
17983
|
step: 1
|
|
17370
17984
|
};
|
|
17985
|
+
/**
|
|
17986
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17987
|
+
*
|
|
17988
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17989
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17990
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17991
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17992
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17993
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17994
|
+
*
|
|
17995
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17996
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17997
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17998
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17999
|
+
* that ships with an addon deploy.
|
|
18000
|
+
*/
|
|
17371
18001
|
var occupancyRecheckSecField = {
|
|
17372
18002
|
min: 0,
|
|
17373
18003
|
max: 300,
|
|
17374
|
-
default:
|
|
18004
|
+
default: 300,
|
|
17375
18005
|
step: 5
|
|
17376
18006
|
};
|
|
17377
18007
|
var occupancyRecheckFramesField = {
|
|
@@ -17516,6 +18146,27 @@ var RunnerCameraConfigSchema = object({
|
|
|
17516
18146
|
* resolved `CameraDetectionConfig`.
|
|
17517
18147
|
*/
|
|
17518
18148
|
maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
18149
|
+
/**
|
|
18150
|
+
* Orchestrator-side quiet period (ms) that closes an `audioMode:
|
|
18151
|
+
* 'on-motion'` audio window, measured from the LAST motion event.
|
|
18152
|
+
*
|
|
18153
|
+
* This exists because the falling edge cannot be relied on. Camera-native
|
|
18154
|
+
* providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
|
|
18155
|
+
* its email-push SMTP path both emit `detected: true` and never the
|
|
18156
|
+
* counterpart); only the frame-diff analyzer emits falls. So on an
|
|
18157
|
+
* onboard-only camera a window that closed only on `detected: false` never
|
|
18158
|
+
* closed at all, and `on-motion` silently behaved as `always-on` — on a
|
|
18159
|
+
* battery camera, the one failure mode the mode exists to prevent.
|
|
18160
|
+
*
|
|
18161
|
+
* Every motion event rearms this timer WITHOUT restarting the stream, so a
|
|
18162
|
+
* burst of re-fires costs nothing. A falling edge, when one does arrive,
|
|
18163
|
+
* still closes earlier via `motionCooldownMs` — whichever comes first wins.
|
|
18164
|
+
*
|
|
18165
|
+
* Not consumed by the runner: carried here so it shares the per-camera
|
|
18166
|
+
* device-settings surface with `motionCooldownMs`, exactly like
|
|
18167
|
+
* `maxSessionHoldMs`.
|
|
18168
|
+
*/
|
|
18169
|
+
audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
|
|
17519
18170
|
motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
17520
18171
|
detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
17521
18172
|
motionStreamId: string(),
|
|
@@ -17569,15 +18220,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17569
18220
|
*/
|
|
17570
18221
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17571
18222
|
/**
|
|
17572
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17573
|
-
*
|
|
17574
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17575
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17576
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18223
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18224
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17577
18225
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17578
18226
|
* (and only render) when this is enabled.
|
|
17579
|
-
|
|
17580
|
-
|
|
18227
|
+
*
|
|
18228
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18229
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18230
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18231
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18232
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18233
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18234
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18235
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18236
|
+
*/
|
|
18237
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17581
18238
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17582
18239
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17583
18240
|
/**
|
|
@@ -17605,7 +18262,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
17605
18262
|
*/
|
|
17606
18263
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
17607
18264
|
});
|
|
17608
|
-
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;
|
|
18265
|
+
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;
|
|
17609
18266
|
/**
|
|
17610
18267
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
17611
18268
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -18621,7 +19278,16 @@ targets: array(object({
|
|
|
18621
19278
|
/** A sleeping battery camera: the frame is deliberately stale and will
|
|
18622
19279
|
* NOT refresh in the background. A surface should say so rather than
|
|
18623
19280
|
* present it as current. */
|
|
18624
|
-
sleeping: boolean()
|
|
19281
|
+
sleeping: boolean(),
|
|
19282
|
+
/** Current device state rendered over the cached frame. State images
|
|
19283
|
+
* remain authoritative even when their photographic background is
|
|
19284
|
+
* old; null means the link must carry a current camera frame. */
|
|
19285
|
+
stateReason: _enum([
|
|
19286
|
+
"disabled",
|
|
19287
|
+
"sleeping",
|
|
19288
|
+
"unreachable",
|
|
19289
|
+
"waking"
|
|
19290
|
+
]).nullable()
|
|
18625
19291
|
})));
|
|
18626
19292
|
/**
|
|
18627
19293
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -20143,6 +20809,25 @@ var BatteryStatusSchema = object({
|
|
|
20143
20809
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
20144
20810
|
lastUpdated: number(),
|
|
20145
20811
|
/**
|
|
20812
|
+
* Ms epoch of the last time the device PROVED it was reachable — a
|
|
20813
|
+
* completed firmware round-trip, an observed wake, or an inbound push
|
|
20814
|
+
* (firmware event, email). `0`/absent = never since this slice was born.
|
|
20815
|
+
*
|
|
20816
|
+
* This is the ONLY input that separates "asleep" from "gone", and it is
|
|
20817
|
+
* fed exclusively by PASSIVE signals: nothing may write it by reaching
|
|
20818
|
+
* for the radio, because a poll that confirms reachability is the same
|
|
20819
|
+
* poll that drains the battery. See {@link deriveBatteryPresence} — the
|
|
20820
|
+
* single derivation every consumer must use; no surface computes its own.
|
|
20821
|
+
*
|
|
20822
|
+
* It is deliberately NOT a clock in the
|
|
20823
|
+
* `scripts/check-runtime-state-durability.ts` sense: it is the
|
|
20824
|
+
* observation itself, and it is the only thing a 30-hour silence is
|
|
20825
|
+
* visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
|
|
20826
|
+
* Reolink provider) so a value that means "recently" cannot cost a
|
|
20827
|
+
* SQLite commit per round-trip.
|
|
20828
|
+
*/
|
|
20829
|
+
lastContactAt: number().optional(),
|
|
20830
|
+
/**
|
|
20146
20831
|
* True when the source is a BINARY low-battery indicator (HA
|
|
20147
20832
|
* `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
|
|
20148
20833
|
* charge level — `percentage` is then a coarse stand-in (100 = normal,
|
|
@@ -23680,7 +24365,7 @@ method(object({
|
|
|
23680
24365
|
toMs: number()
|
|
23681
24366
|
}), RecordingAvailabilitySchema, {
|
|
23682
24367
|
kind: "query",
|
|
23683
|
-
auth: "
|
|
24368
|
+
auth: "protected"
|
|
23684
24369
|
}), method(object({
|
|
23685
24370
|
deviceId: number(),
|
|
23686
24371
|
fromMs: number(),
|
|
@@ -23688,14 +24373,14 @@ method(object({
|
|
|
23688
24373
|
tzOffsetMinutes: number()
|
|
23689
24374
|
}), RecordingDaysSchema, {
|
|
23690
24375
|
kind: "query",
|
|
23691
|
-
auth: "
|
|
24376
|
+
auth: "protected"
|
|
23692
24377
|
}), method(object({
|
|
23693
24378
|
deviceId: number(),
|
|
23694
24379
|
fromMs: number(),
|
|
23695
24380
|
toMs: number()
|
|
23696
24381
|
}), RecordingManifestSchema, {
|
|
23697
24382
|
kind: "query",
|
|
23698
|
-
auth: "
|
|
24383
|
+
auth: "protected"
|
|
23699
24384
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
23700
24385
|
kind: "query",
|
|
23701
24386
|
auth: "admin"
|
|
@@ -23985,14 +24670,77 @@ method(object({
|
|
|
23985
24670
|
* thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
|
|
23986
24671
|
* vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
|
|
23987
24672
|
*
|
|
23988
|
-
*
|
|
23989
|
-
*
|
|
23990
|
-
*
|
|
23991
|
-
*
|
|
23992
|
-
|
|
23993
|
-
|
|
23994
|
-
*
|
|
24673
|
+
* **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
|
|
24674
|
+
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
24675
|
+
* for the thing: a scene is a standing question about the property ("is the bin
|
|
24676
|
+
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
24677
|
+
* across every camera at once — not "what does camera 617 think". Buried one
|
|
24678
|
+
* camera deep it also could not be found. The surface is now a top-level admin
|
|
24679
|
+
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
24680
|
+
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
24681
|
+
*
|
|
24682
|
+
* The consequence to keep in mind: `host/scene-monitor-editor` is gone from
|
|
24683
|
+
* `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
|
|
24684
|
+
* directions, so a registration nobody declares fails exactly as loudly as a
|
|
24685
|
+
* declaration nobody registers. The editor is imported directly by the page.
|
|
24686
|
+
*
|
|
24687
|
+
* `status.kind:'push'` — the engine pushes on every hysteresis flip /
|
|
24688
|
+
* availability change; consumers never poll.
|
|
24689
|
+
*/
|
|
24690
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
24691
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
24692
|
+
* Open by design so more can be added without a wire break.
|
|
24693
|
+
*
|
|
24694
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
24695
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
24696
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
24697
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
23995
24698
|
var SceneConditionSchema = string();
|
|
24699
|
+
/**
|
|
24700
|
+
* What a scene does when the CURRENT light has no reference of its own.
|
|
24701
|
+
*
|
|
24702
|
+
* The lighting variants are not equally likely to exist. Almost every operator
|
|
24703
|
+
* captures daylight and then never stands outside at 22:00 to capture IR, and a
|
|
24704
|
+
* scene that is only ever going to be asked about a daytime question ("is the
|
|
24705
|
+
* bin still on the kerb at 08:00") does not need a night reference at all. The
|
|
24706
|
+
* night half must therefore be OPTIONAL, and optional means the scene keeps
|
|
24707
|
+
* working without it rather than degrading into a permanent complaint.
|
|
24708
|
+
*
|
|
24709
|
+
* - `skip` (default) — the check in that light is not made. Not a verdict, not
|
|
24710
|
+
* an alarm, not even an `unknown`: the live state simply stays whatever the
|
|
24711
|
+
* last covered light left it at, the latch is untouched, and the hysteresis
|
|
24712
|
+
* run is neither spent nor cleared. The scene resumes by itself at first
|
|
24713
|
+
* light. This is the only behaviour under which "I never captured IR" is a
|
|
24714
|
+
* configuration choice instead of a nightly fault.
|
|
24715
|
+
* - `judge-anyway` — score against the OTHER conditions' references. Available
|
|
24716
|
+
* for cameras whose IR frame is close enough to daylight (a floodlit
|
|
24717
|
+
* driveway, an always-white-light doorbell), and wrong for everything else:
|
|
24718
|
+
* cross-condition cosines are not comparable, so a day reference against a
|
|
24719
|
+
* true IR frame collapses and the scene reports a theft at 21:40.
|
|
24720
|
+
*
|
|
24721
|
+
* Never applies when the scene has NO comparable reference at all — that is
|
|
24722
|
+
* "not armed yet", it is reported as `no-reference-for-condition`, and silence
|
|
24723
|
+
* there would hide a scene the operator never finished setting up.
|
|
24724
|
+
*/
|
|
24725
|
+
var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
|
|
24726
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
24727
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
24728
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
24729
|
+
* and never counts toward hysteresis in either direction. */
|
|
24730
|
+
var SceneVerdictSchema = _enum([
|
|
24731
|
+
"matched",
|
|
24732
|
+
"diverged",
|
|
24733
|
+
"unknown"
|
|
24734
|
+
]);
|
|
24735
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
24736
|
+
* silence that reads as "nothing has happened". */
|
|
24737
|
+
var SceneUnavailableSchema = _enum([
|
|
24738
|
+
"no-reference-for-condition",
|
|
24739
|
+
"view-shifted",
|
|
24740
|
+
"no-vision-profile",
|
|
24741
|
+
"encoder-model-changed",
|
|
24742
|
+
"no-snapshot"
|
|
24743
|
+
]);
|
|
23996
24744
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
23997
24745
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
23998
24746
|
var SceneReferenceSchema = object({
|
|
@@ -24000,7 +24748,14 @@ var SceneReferenceSchema = object({
|
|
|
24000
24748
|
modelId: string(),
|
|
24001
24749
|
condition: SceneConditionSchema,
|
|
24002
24750
|
capturedAt: number(),
|
|
24003
|
-
thumbnailMediaId: string().optional()
|
|
24751
|
+
thumbnailMediaId: string().optional(),
|
|
24752
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
24753
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
24754
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
24755
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
24756
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
24757
|
+
* transition, not per poll. */
|
|
24758
|
+
anchorEmbedding: array(number()).optional()
|
|
24004
24759
|
});
|
|
24005
24760
|
var SceneMonitorStateSchema = object({
|
|
24006
24761
|
id: string(),
|
|
@@ -24022,6 +24777,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
|
|
|
24022
24777
|
profileId: string().optional(),
|
|
24023
24778
|
hysteresisCount: number().int().positive()
|
|
24024
24779
|
})]);
|
|
24780
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
24781
|
+
/** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
|
|
24782
|
+
* out in silence rather than reporting a fault every night. */
|
|
24783
|
+
var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
|
|
24784
|
+
/**
|
|
24785
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
24786
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
24787
|
+
*
|
|
24788
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
24789
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
24790
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
24791
|
+
* stateful claim that costs the operator a trip to reset.
|
|
24792
|
+
*/
|
|
24793
|
+
var SceneConfirmSchema = object({
|
|
24794
|
+
enabled: boolean().default(false),
|
|
24795
|
+
prompt: string().min(1).max(1e3),
|
|
24796
|
+
profileId: string().optional(),
|
|
24797
|
+
timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
|
|
24798
|
+
maxImagePx: number().int().min(64).max(2048).default(448),
|
|
24799
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
24800
|
+
onTimeout: _enum(["flip", "hold"]).default("hold")
|
|
24801
|
+
});
|
|
24025
24802
|
var SceneMonitorSchema = object({
|
|
24026
24803
|
id: string(),
|
|
24027
24804
|
label: string(),
|
|
@@ -24040,7 +24817,56 @@ var SceneMonitorSchema = object({
|
|
|
24040
24817
|
lastConfidence: number().nullable(),
|
|
24041
24818
|
currentCondition: SceneConditionSchema.nullable(),
|
|
24042
24819
|
availability: _enum(["ok", "unavailable"]),
|
|
24043
|
-
unavailableReason: string().nullable()
|
|
24820
|
+
unavailableReason: string().nullable(),
|
|
24821
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
24822
|
+
baselineStateId: string().nullable(),
|
|
24823
|
+
/** Which boolean drives notification rules and any export. */
|
|
24824
|
+
emit: _enum(["latched", "live"]).default("latched"),
|
|
24825
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
24826
|
+
verdict: SceneVerdictSchema,
|
|
24827
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
24828
|
+
latched: boolean(),
|
|
24829
|
+
/** Last reset (or creation). */
|
|
24830
|
+
armedAt: number(),
|
|
24831
|
+
divergedAt: number().nullable(),
|
|
24832
|
+
restoredAt: number().nullable(),
|
|
24833
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
24834
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
24835
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
24836
|
+
quietSeconds: number().int().min(0).max(3600).default(60),
|
|
24837
|
+
/** An observation only advances the pending count when it is at least this
|
|
24838
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
24839
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
24840
|
+
minObservationSpacingSec: number().int().min(0).max(3600).default(120),
|
|
24841
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
24842
|
+
confirm: SceneConfirmSchema.optional(),
|
|
24843
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
24844
|
+
anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
24845
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
24846
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
24847
|
+
* automation can react to the bin coming back without the operator's own
|
|
24848
|
+
* alarm silently clearing itself. */
|
|
24849
|
+
autoRestore: boolean().default(false),
|
|
24850
|
+
/** What to do when the current light has no reference of its own. See
|
|
24851
|
+
* {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
|
|
24852
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
|
|
24853
|
+
/**
|
|
24854
|
+
* The light whose checks are currently being SAT OUT under
|
|
24855
|
+
* `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
|
|
24856
|
+
*
|
|
24857
|
+
* Engine-reported and advisory only: it moves no verdict, no latch and no
|
|
24858
|
+
* hysteresis. It exists so the card can say *"night (IR) — checks paused,
|
|
24859
|
+
* nothing captured in this light"* in the same calm voice as the coverage
|
|
24860
|
+
* line, because the alternative is a scene that silently stops answering
|
|
24861
|
+
* after sunset with nothing anywhere saying why. A skipped check must never
|
|
24862
|
+
* read as a broken one.
|
|
24863
|
+
*/
|
|
24864
|
+
suspendedCondition: SceneConditionSchema.nullable().default(null),
|
|
24865
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
24866
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
24867
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
24868
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
24869
|
+
coveredConditions: array(SceneConditionSchema)
|
|
24044
24870
|
});
|
|
24045
24871
|
var SceneMonitorStatusSchema = object({
|
|
24046
24872
|
monitors: array(SceneMonitorSchema),
|
|
@@ -24073,7 +24899,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
|
|
|
24073
24899
|
"both"
|
|
24074
24900
|
]).optional(),
|
|
24075
24901
|
checkIntervalSec: number().optional(),
|
|
24076
|
-
check: SceneCheckSchema.optional()
|
|
24902
|
+
check: SceneCheckSchema.optional(),
|
|
24903
|
+
emit: _enum(["latched", "live"]).optional(),
|
|
24904
|
+
quietSeconds: number().int().min(0).max(3600).optional(),
|
|
24905
|
+
minObservationSpacingSec: number().int().min(0).max(3600).optional(),
|
|
24906
|
+
anchorThreshold: number().min(0).max(1).optional(),
|
|
24907
|
+
autoRestore: boolean().optional(),
|
|
24908
|
+
onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
|
|
24909
|
+
/** `null` clears the vision-model adjudicator. */
|
|
24910
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
24077
24911
|
})
|
|
24078
24912
|
}), _void(), {
|
|
24079
24913
|
kind: "mutation",
|
|
@@ -24110,6 +24944,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
|
|
|
24110
24944
|
}), _void(), {
|
|
24111
24945
|
kind: "mutation",
|
|
24112
24946
|
auth: "admin"
|
|
24947
|
+
}), method(object({
|
|
24948
|
+
deviceId: number(),
|
|
24949
|
+
monitorId: string(),
|
|
24950
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
24951
|
+
recapture: boolean().optional()
|
|
24952
|
+
}), _void(), {
|
|
24953
|
+
kind: "mutation",
|
|
24954
|
+
auth: "admin"
|
|
24113
24955
|
});
|
|
24114
24956
|
/**
|
|
24115
24957
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -24263,6 +25105,16 @@ var CamStreamDescriptorSchema = object({
|
|
|
24263
25105
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
24264
25106
|
metadata: record(string(), unknown()).optional()
|
|
24265
25107
|
});
|
|
25108
|
+
object({
|
|
25109
|
+
/** The descriptors as last built from a real camera response. Never a guess:
|
|
25110
|
+
* a failed or refused build writes NOTHING, so a restored catalog is always
|
|
25111
|
+
* one the camera itself once produced. */
|
|
25112
|
+
descriptors: array(CamStreamDescriptorSchema),
|
|
25113
|
+
/** Ms epoch of the build that produced {@link descriptors}. Lets the wake
|
|
25114
|
+
* path decide whether the camera's own awake window is worth spending on a
|
|
25115
|
+
* re-read. */
|
|
25116
|
+
lastFetchedAt: number()
|
|
25117
|
+
});
|
|
24266
25118
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
|
|
24267
25119
|
/** One of the camera's stream profiles. */
|
|
24268
25120
|
var StreamProfileSchema = _enum([
|
|
@@ -24418,12 +25270,64 @@ var NetworkAddressSchema = object({
|
|
|
24418
25270
|
family: string(),
|
|
24419
25271
|
internal: boolean()
|
|
24420
25272
|
});
|
|
25273
|
+
/**
|
|
25274
|
+
* Provenance of the site coordinates, and the whole reason this is not just two
|
|
25275
|
+
* numbers.
|
|
25276
|
+
*
|
|
25277
|
+
* - `operator-set` — a human typed it, or accepted a detection. Authoritative;
|
|
25278
|
+
* nothing overwrites it.
|
|
25279
|
+
* - `derived-from-ip` — the hub geolocated its own public IP once, because a
|
|
25280
|
+
* default that is right to a few kilometres beats the coarse UTC clock split
|
|
25281
|
+
* the sun-times consumers otherwise fall back to.
|
|
25282
|
+
*
|
|
25283
|
+
* The UI shows which one it is. An operator who cannot tell a guess from their
|
|
25284
|
+
* own input will eventually trust the guess.
|
|
25285
|
+
*/
|
|
25286
|
+
var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
|
|
25287
|
+
/**
|
|
25288
|
+
* The read shape: the location plus the honest state of the one-shot derivation.
|
|
25289
|
+
*
|
|
25290
|
+
* `derivationAttemptedAt` is what makes the "one call, ever" contract
|
|
25291
|
+
* inspectable. When it is set and `location` is null, the geo-IP lookup ran and
|
|
25292
|
+
* failed; the hub will NOT try again on its own — the fallback is declared
|
|
25293
|
+
* (consumers degrade to their own last resort) and the operator either types the
|
|
25294
|
+
* coordinates or presses detect.
|
|
25295
|
+
*/
|
|
25296
|
+
var SiteLocationStatusSchema = object({
|
|
25297
|
+
location: object({
|
|
25298
|
+
/** WGS84 decimal degrees. */
|
|
25299
|
+
latitude: number().min(-90).max(90),
|
|
25300
|
+
longitude: number().min(-180).max(180),
|
|
25301
|
+
source: SiteLocationSourceSchema,
|
|
25302
|
+
/** Epoch ms the value was last written. */
|
|
25303
|
+
updatedAt: number(),
|
|
25304
|
+
/**
|
|
25305
|
+
* Human-readable place the geo-IP service reported ("Napoli, IT"). Display
|
|
25306
|
+
* only — never parsed, never matched on. Absent for an operator-typed value.
|
|
25307
|
+
*/
|
|
25308
|
+
label: string().optional()
|
|
25309
|
+
}).nullable(),
|
|
25310
|
+
derivationAttemptedAt: number().nullable(),
|
|
25311
|
+
/** Why the last derivation failed, for the UI to show instead of a shrug. */
|
|
25312
|
+
derivationError: string().nullable()
|
|
25313
|
+
});
|
|
25314
|
+
/** `null` clears the location and re-arms nothing — the derivation stays spent. */
|
|
25315
|
+
var SetSiteLocationInputSchema = object({
|
|
25316
|
+
latitude: number().min(-90).max(90),
|
|
25317
|
+
longitude: number().min(-180).max(180)
|
|
25318
|
+
}).nullable();
|
|
24421
25319
|
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(), {
|
|
24422
25320
|
kind: "mutation",
|
|
24423
25321
|
auth: "admin"
|
|
24424
25322
|
}), method(_void(), _void(), {
|
|
24425
25323
|
kind: "mutation",
|
|
24426
25324
|
auth: "admin"
|
|
25325
|
+
}), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
|
|
25326
|
+
kind: "mutation",
|
|
25327
|
+
auth: "admin"
|
|
25328
|
+
}), method(_void(), SiteLocationStatusSchema, {
|
|
25329
|
+
kind: "mutation",
|
|
25330
|
+
auth: "admin"
|
|
24427
25331
|
});
|
|
24428
25332
|
object({
|
|
24429
25333
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -27153,6 +28057,12 @@ Object.freeze({
|
|
|
27153
28057
|
addonId: null,
|
|
27154
28058
|
access: "create"
|
|
27155
28059
|
},
|
|
28060
|
+
"llm.cancel": {
|
|
28061
|
+
capName: "llm",
|
|
28062
|
+
capScope: "system",
|
|
28063
|
+
addonId: null,
|
|
28064
|
+
access: "create"
|
|
28065
|
+
},
|
|
27156
28066
|
"llm.deleteModel": {
|
|
27157
28067
|
capName: "llm",
|
|
27158
28068
|
capScope: "system",
|
|
@@ -27237,6 +28147,12 @@ Object.freeze({
|
|
|
27237
28147
|
addonId: null,
|
|
27238
28148
|
access: "view"
|
|
27239
28149
|
},
|
|
28150
|
+
"llm.resolveModelRef": {
|
|
28151
|
+
capName: "llm",
|
|
28152
|
+
capScope: "system",
|
|
28153
|
+
addonId: null,
|
|
28154
|
+
access: "create"
|
|
28155
|
+
},
|
|
27240
28156
|
"llm.setDefault": {
|
|
27241
28157
|
capName: "llm",
|
|
27242
28158
|
capScope: "system",
|
|
@@ -29403,6 +30319,12 @@ Object.freeze({
|
|
|
29403
30319
|
addonId: null,
|
|
29404
30320
|
access: "create"
|
|
29405
30321
|
},
|
|
30322
|
+
"sceneMonitor.resetScene": {
|
|
30323
|
+
capName: "scene-monitor",
|
|
30324
|
+
capScope: "device",
|
|
30325
|
+
addonId: null,
|
|
30326
|
+
access: "delete"
|
|
30327
|
+
},
|
|
29406
30328
|
"sceneMonitor.updateScene": {
|
|
29407
30329
|
capName: "scene-monitor",
|
|
29408
30330
|
capScope: "device",
|
|
@@ -30081,6 +31003,12 @@ Object.freeze({
|
|
|
30081
31003
|
addonId: null,
|
|
30082
31004
|
access: "create"
|
|
30083
31005
|
},
|
|
31006
|
+
"system.detectSiteLocation": {
|
|
31007
|
+
capName: "system",
|
|
31008
|
+
capScope: "system",
|
|
31009
|
+
addonId: null,
|
|
31010
|
+
access: "create"
|
|
31011
|
+
},
|
|
30084
31012
|
"system.featureFlags": {
|
|
30085
31013
|
capName: "system",
|
|
30086
31014
|
capScope: "system",
|
|
@@ -30099,6 +31027,12 @@ Object.freeze({
|
|
|
30099
31027
|
addonId: null,
|
|
30100
31028
|
access: "view"
|
|
30101
31029
|
},
|
|
31030
|
+
"system.getSiteLocation": {
|
|
31031
|
+
capName: "system",
|
|
31032
|
+
capScope: "system",
|
|
31033
|
+
addonId: null,
|
|
31034
|
+
access: "view"
|
|
31035
|
+
},
|
|
30102
31036
|
"system.health": {
|
|
30103
31037
|
capName: "system",
|
|
30104
31038
|
capScope: "system",
|
|
@@ -30123,6 +31057,12 @@ Object.freeze({
|
|
|
30123
31057
|
addonId: null,
|
|
30124
31058
|
access: "create"
|
|
30125
31059
|
},
|
|
31060
|
+
"system.setSiteLocation": {
|
|
31061
|
+
capName: "system",
|
|
31062
|
+
capScope: "system",
|
|
31063
|
+
addonId: null,
|
|
31064
|
+
access: "create"
|
|
31065
|
+
},
|
|
30126
31066
|
"terminalSession.adoptLegacyMonitor": {
|
|
30127
31067
|
capName: "terminal-session",
|
|
30128
31068
|
capScope: "system",
|
|
@@ -30694,6 +31634,1704 @@ Object.freeze({
|
|
|
30694
31634
|
access: "create"
|
|
30695
31635
|
}
|
|
30696
31636
|
});
|
|
31637
|
+
Object.freeze({
|
|
31638
|
+
"accessories.setChildHidden": [{
|
|
31639
|
+
name: "childDeviceId",
|
|
31640
|
+
form: "single",
|
|
31641
|
+
optional: false
|
|
31642
|
+
}, {
|
|
31643
|
+
name: "deviceId",
|
|
31644
|
+
form: "single",
|
|
31645
|
+
optional: false
|
|
31646
|
+
}],
|
|
31647
|
+
"addonSettings.getDeviceSettings": [{
|
|
31648
|
+
name: "deviceId",
|
|
31649
|
+
form: "single",
|
|
31650
|
+
optional: false
|
|
31651
|
+
}],
|
|
31652
|
+
"addonSettings.updateDeviceSettings": [{
|
|
31653
|
+
name: "deviceId",
|
|
31654
|
+
form: "single",
|
|
31655
|
+
optional: false
|
|
31656
|
+
}],
|
|
31657
|
+
"alarmPanel.arm": [{
|
|
31658
|
+
name: "deviceId",
|
|
31659
|
+
form: "single",
|
|
31660
|
+
optional: false
|
|
31661
|
+
}],
|
|
31662
|
+
"alarmPanel.disarm": [{
|
|
31663
|
+
name: "deviceId",
|
|
31664
|
+
form: "single",
|
|
31665
|
+
optional: false
|
|
31666
|
+
}],
|
|
31667
|
+
"alarmPanel.trigger": [{
|
|
31668
|
+
name: "deviceId",
|
|
31669
|
+
form: "single",
|
|
31670
|
+
optional: false
|
|
31671
|
+
}],
|
|
31672
|
+
"audioAnalysis.resolveDeviceSettings": [{
|
|
31673
|
+
name: "deviceId",
|
|
31674
|
+
form: "single",
|
|
31675
|
+
optional: false
|
|
31676
|
+
}],
|
|
31677
|
+
"audioAnalyzer.classify": [{
|
|
31678
|
+
name: "deviceId",
|
|
31679
|
+
form: "single",
|
|
31680
|
+
optional: true
|
|
31681
|
+
}],
|
|
31682
|
+
"audioMetrics.getCurrentSnapshot": [{
|
|
31683
|
+
name: "deviceId",
|
|
31684
|
+
form: "single",
|
|
31685
|
+
optional: false
|
|
31686
|
+
}],
|
|
31687
|
+
"audioMetrics.getHistory": [{
|
|
31688
|
+
name: "deviceId",
|
|
31689
|
+
form: "single",
|
|
31690
|
+
optional: false
|
|
31691
|
+
}],
|
|
31692
|
+
"automationControl.disable": [{
|
|
31693
|
+
name: "deviceId",
|
|
31694
|
+
form: "single",
|
|
31695
|
+
optional: false
|
|
31696
|
+
}],
|
|
31697
|
+
"automationControl.enable": [{
|
|
31698
|
+
name: "deviceId",
|
|
31699
|
+
form: "single",
|
|
31700
|
+
optional: false
|
|
31701
|
+
}],
|
|
31702
|
+
"automationControl.trigger": [{
|
|
31703
|
+
name: "deviceId",
|
|
31704
|
+
form: "single",
|
|
31705
|
+
optional: false
|
|
31706
|
+
}],
|
|
31707
|
+
"battery.wakeForStream": [{
|
|
31708
|
+
name: "deviceId",
|
|
31709
|
+
form: "single",
|
|
31710
|
+
optional: false
|
|
31711
|
+
}],
|
|
31712
|
+
"brightness.setBrightness": [{
|
|
31713
|
+
name: "deviceId",
|
|
31714
|
+
form: "single",
|
|
31715
|
+
optional: false
|
|
31716
|
+
}],
|
|
31717
|
+
"button.press": [{
|
|
31718
|
+
name: "deviceId",
|
|
31719
|
+
form: "single",
|
|
31720
|
+
optional: false
|
|
31721
|
+
}],
|
|
31722
|
+
"cameraCredentials.getCredentials": [{
|
|
31723
|
+
name: "deviceId",
|
|
31724
|
+
form: "single",
|
|
31725
|
+
optional: false
|
|
31726
|
+
}],
|
|
31727
|
+
"cameraStreams.getBrokerStreams": [{
|
|
31728
|
+
name: "deviceId",
|
|
31729
|
+
form: "single",
|
|
31730
|
+
optional: false
|
|
31731
|
+
}],
|
|
31732
|
+
"cameraStreams.getCameraStreams": [{
|
|
31733
|
+
name: "deviceId",
|
|
31734
|
+
form: "single",
|
|
31735
|
+
optional: false
|
|
31736
|
+
}],
|
|
31737
|
+
"cameraStreams.getProfileRtspEntries": [{
|
|
31738
|
+
name: "deviceId",
|
|
31739
|
+
form: "single",
|
|
31740
|
+
optional: false
|
|
31741
|
+
}],
|
|
31742
|
+
"cameraStreams.getRtspEntries": [{
|
|
31743
|
+
name: "deviceId",
|
|
31744
|
+
form: "single",
|
|
31745
|
+
optional: false
|
|
31746
|
+
}],
|
|
31747
|
+
"cameraStreams.pickStream": [{
|
|
31748
|
+
name: "deviceId",
|
|
31749
|
+
form: "single",
|
|
31750
|
+
optional: false
|
|
31751
|
+
}],
|
|
31752
|
+
"climateControl.setFanMode": [{
|
|
31753
|
+
name: "deviceId",
|
|
31754
|
+
form: "single",
|
|
31755
|
+
optional: false
|
|
31756
|
+
}],
|
|
31757
|
+
"climateControl.setMode": [{
|
|
31758
|
+
name: "deviceId",
|
|
31759
|
+
form: "single",
|
|
31760
|
+
optional: false
|
|
31761
|
+
}],
|
|
31762
|
+
"climateControl.setPreset": [{
|
|
31763
|
+
name: "deviceId",
|
|
31764
|
+
form: "single",
|
|
31765
|
+
optional: false
|
|
31766
|
+
}],
|
|
31767
|
+
"climateControl.setSwingHorizontal": [{
|
|
31768
|
+
name: "deviceId",
|
|
31769
|
+
form: "single",
|
|
31770
|
+
optional: false
|
|
31771
|
+
}],
|
|
31772
|
+
"climateControl.setSwingVertical": [{
|
|
31773
|
+
name: "deviceId",
|
|
31774
|
+
form: "single",
|
|
31775
|
+
optional: false
|
|
31776
|
+
}],
|
|
31777
|
+
"climateControl.setTarget": [{
|
|
31778
|
+
name: "deviceId",
|
|
31779
|
+
form: "single",
|
|
31780
|
+
optional: false
|
|
31781
|
+
}],
|
|
31782
|
+
"climateControl.setTargetHumidity": [{
|
|
31783
|
+
name: "deviceId",
|
|
31784
|
+
form: "single",
|
|
31785
|
+
optional: false
|
|
31786
|
+
}],
|
|
31787
|
+
"climateControl.setTargetRange": [{
|
|
31788
|
+
name: "deviceId",
|
|
31789
|
+
form: "single",
|
|
31790
|
+
optional: false
|
|
31791
|
+
}],
|
|
31792
|
+
"color.setColor": [{
|
|
31793
|
+
name: "deviceId",
|
|
31794
|
+
form: "single",
|
|
31795
|
+
optional: false
|
|
31796
|
+
}],
|
|
31797
|
+
"consumables.reset": [{
|
|
31798
|
+
name: "deviceId",
|
|
31799
|
+
form: "single",
|
|
31800
|
+
optional: false
|
|
31801
|
+
}],
|
|
31802
|
+
"control.setValue": [{
|
|
31803
|
+
name: "deviceId",
|
|
31804
|
+
form: "single",
|
|
31805
|
+
optional: false
|
|
31806
|
+
}],
|
|
31807
|
+
"cover.close": [{
|
|
31808
|
+
name: "deviceId",
|
|
31809
|
+
form: "single",
|
|
31810
|
+
optional: false
|
|
31811
|
+
}],
|
|
31812
|
+
"cover.open": [{
|
|
31813
|
+
name: "deviceId",
|
|
31814
|
+
form: "single",
|
|
31815
|
+
optional: false
|
|
31816
|
+
}],
|
|
31817
|
+
"cover.setPosition": [{
|
|
31818
|
+
name: "deviceId",
|
|
31819
|
+
form: "single",
|
|
31820
|
+
optional: false
|
|
31821
|
+
}],
|
|
31822
|
+
"cover.setTiltPosition": [{
|
|
31823
|
+
name: "deviceId",
|
|
31824
|
+
form: "single",
|
|
31825
|
+
optional: false
|
|
31826
|
+
}],
|
|
31827
|
+
"cover.stop": [{
|
|
31828
|
+
name: "deviceId",
|
|
31829
|
+
form: "single",
|
|
31830
|
+
optional: false
|
|
31831
|
+
}],
|
|
31832
|
+
"dayNight.getOptions": [{
|
|
31833
|
+
name: "deviceId",
|
|
31834
|
+
form: "single",
|
|
31835
|
+
optional: false
|
|
31836
|
+
}],
|
|
31837
|
+
"dayNight.setSettings": [{
|
|
31838
|
+
name: "deviceId",
|
|
31839
|
+
form: "single",
|
|
31840
|
+
optional: false
|
|
31841
|
+
}],
|
|
31842
|
+
"decoder.createSession": [{
|
|
31843
|
+
name: "deviceId",
|
|
31844
|
+
form: "single",
|
|
31845
|
+
optional: true
|
|
31846
|
+
}],
|
|
31847
|
+
"deviceAdoption.release": [{
|
|
31848
|
+
name: "camDeviceId",
|
|
31849
|
+
form: "single",
|
|
31850
|
+
optional: false
|
|
31851
|
+
}],
|
|
31852
|
+
"deviceAdoption.resync": [{
|
|
31853
|
+
name: "camDeviceId",
|
|
31854
|
+
form: "single",
|
|
31855
|
+
optional: false
|
|
31856
|
+
}],
|
|
31857
|
+
"deviceDiscovery.adoptDevice": [{
|
|
31858
|
+
name: "deviceId",
|
|
31859
|
+
form: "single",
|
|
31860
|
+
optional: false
|
|
31861
|
+
}],
|
|
31862
|
+
"deviceDiscovery.listDiscovered": [{
|
|
31863
|
+
name: "deviceId",
|
|
31864
|
+
form: "single",
|
|
31865
|
+
optional: false
|
|
31866
|
+
}],
|
|
31867
|
+
"deviceDiscovery.refreshDiscovery": [{
|
|
31868
|
+
name: "deviceId",
|
|
31869
|
+
form: "single",
|
|
31870
|
+
optional: false
|
|
31871
|
+
}],
|
|
31872
|
+
"deviceDiscovery.releaseDevice": [{
|
|
31873
|
+
name: "childDeviceId",
|
|
31874
|
+
form: "single",
|
|
31875
|
+
optional: false
|
|
31876
|
+
}, {
|
|
31877
|
+
name: "deviceId",
|
|
31878
|
+
form: "single",
|
|
31879
|
+
optional: false
|
|
31880
|
+
}],
|
|
31881
|
+
"deviceManager.adoptionRelease": [{
|
|
31882
|
+
name: "camDeviceId",
|
|
31883
|
+
form: "single",
|
|
31884
|
+
optional: false
|
|
31885
|
+
}],
|
|
31886
|
+
"deviceManager.adoptionResync": [{
|
|
31887
|
+
name: "camDeviceId",
|
|
31888
|
+
form: "single",
|
|
31889
|
+
optional: false
|
|
31890
|
+
}],
|
|
31891
|
+
"deviceManager.applyInitialMeta": [{
|
|
31892
|
+
name: "deviceId",
|
|
31893
|
+
form: "single",
|
|
31894
|
+
optional: false
|
|
31895
|
+
}, {
|
|
31896
|
+
name: "linkDeviceId",
|
|
31897
|
+
form: "single",
|
|
31898
|
+
optional: true
|
|
31899
|
+
}],
|
|
31900
|
+
"deviceManager.disable": [{
|
|
31901
|
+
name: "deviceId",
|
|
31902
|
+
form: "single",
|
|
31903
|
+
optional: false
|
|
31904
|
+
}],
|
|
31905
|
+
"deviceManager.enable": [{
|
|
31906
|
+
name: "deviceId",
|
|
31907
|
+
form: "single",
|
|
31908
|
+
optional: false
|
|
31909
|
+
}],
|
|
31910
|
+
"deviceManager.getBindings": [{
|
|
31911
|
+
name: "deviceId",
|
|
31912
|
+
form: "single",
|
|
31913
|
+
optional: false
|
|
31914
|
+
}],
|
|
31915
|
+
"deviceManager.getChildren": [{
|
|
31916
|
+
name: "parentDeviceId",
|
|
31917
|
+
form: "single",
|
|
31918
|
+
optional: false
|
|
31919
|
+
}],
|
|
31920
|
+
"deviceManager.getConfigSchema": [{
|
|
31921
|
+
name: "deviceId",
|
|
31922
|
+
form: "single",
|
|
31923
|
+
optional: false
|
|
31924
|
+
}],
|
|
31925
|
+
"deviceManager.getDevice": [{
|
|
31926
|
+
name: "deviceId",
|
|
31927
|
+
form: "single",
|
|
31928
|
+
optional: false
|
|
31929
|
+
}],
|
|
31930
|
+
"deviceManager.getDeviceAggregate": [{
|
|
31931
|
+
name: "deviceId",
|
|
31932
|
+
form: "single",
|
|
31933
|
+
optional: false
|
|
31934
|
+
}],
|
|
31935
|
+
"deviceManager.getDeviceLiveInfoAggregate": [{
|
|
31936
|
+
name: "deviceId",
|
|
31937
|
+
form: "single",
|
|
31938
|
+
optional: false
|
|
31939
|
+
}],
|
|
31940
|
+
"deviceManager.getDeviceSettingsAggregate": [{
|
|
31941
|
+
name: "deviceId",
|
|
31942
|
+
form: "single",
|
|
31943
|
+
optional: false
|
|
31944
|
+
}],
|
|
31945
|
+
"deviceManager.getDeviceStatusAggregate": [{
|
|
31946
|
+
name: "deviceId",
|
|
31947
|
+
form: "single",
|
|
31948
|
+
optional: false
|
|
31949
|
+
}],
|
|
31950
|
+
"deviceManager.getDeviceStatusAggregateBatch": [{
|
|
31951
|
+
name: "deviceIds",
|
|
31952
|
+
form: "array",
|
|
31953
|
+
optional: false
|
|
31954
|
+
}],
|
|
31955
|
+
"deviceManager.getLinkedDevices": [{
|
|
31956
|
+
name: "deviceId",
|
|
31957
|
+
form: "single",
|
|
31958
|
+
optional: false
|
|
31959
|
+
}],
|
|
31960
|
+
"deviceManager.getSettingsSchema": [{
|
|
31961
|
+
name: "deviceId",
|
|
31962
|
+
form: "single",
|
|
31963
|
+
optional: false
|
|
31964
|
+
}],
|
|
31965
|
+
"deviceManager.getStreamProfileMap": [{
|
|
31966
|
+
name: "deviceId",
|
|
31967
|
+
form: "single",
|
|
31968
|
+
optional: false
|
|
31969
|
+
}],
|
|
31970
|
+
"deviceManager.getStreamSources": [{
|
|
31971
|
+
name: "deviceId",
|
|
31972
|
+
form: "single",
|
|
31973
|
+
optional: false
|
|
31974
|
+
}],
|
|
31975
|
+
"deviceManager.getWireableFields": [{
|
|
31976
|
+
name: "deviceId",
|
|
31977
|
+
form: "single",
|
|
31978
|
+
optional: false
|
|
31979
|
+
}],
|
|
31980
|
+
"deviceManager.loadConfig": [{
|
|
31981
|
+
name: "deviceId",
|
|
31982
|
+
form: "single",
|
|
31983
|
+
optional: false
|
|
31984
|
+
}],
|
|
31985
|
+
"deviceManager.loadMeta": [{
|
|
31986
|
+
name: "deviceId",
|
|
31987
|
+
form: "single",
|
|
31988
|
+
optional: false
|
|
31989
|
+
}],
|
|
31990
|
+
"deviceManager.loadRuntimeState": [{
|
|
31991
|
+
name: "deviceId",
|
|
31992
|
+
form: "single",
|
|
31993
|
+
optional: false
|
|
31994
|
+
}],
|
|
31995
|
+
"deviceManager.persistConfig": [{
|
|
31996
|
+
name: "deviceId",
|
|
31997
|
+
form: "single",
|
|
31998
|
+
optional: false
|
|
31999
|
+
}],
|
|
32000
|
+
"deviceManager.probeStreams": [{
|
|
32001
|
+
name: "deviceId",
|
|
32002
|
+
form: "single",
|
|
32003
|
+
optional: false
|
|
32004
|
+
}],
|
|
32005
|
+
"deviceManager.registerDevice": [{
|
|
32006
|
+
name: "parentDeviceId",
|
|
32007
|
+
form: "single",
|
|
32008
|
+
optional: true
|
|
32009
|
+
}],
|
|
32010
|
+
"deviceManager.remove": [{
|
|
32011
|
+
name: "deviceId",
|
|
32012
|
+
form: "single",
|
|
32013
|
+
optional: false
|
|
32014
|
+
}],
|
|
32015
|
+
"deviceManager.removeDevice": [{
|
|
32016
|
+
name: "deviceId",
|
|
32017
|
+
form: "single",
|
|
32018
|
+
optional: false
|
|
32019
|
+
}],
|
|
32020
|
+
"deviceManager.runDeviceAction": [{
|
|
32021
|
+
name: "deviceId",
|
|
32022
|
+
form: "single",
|
|
32023
|
+
optional: false
|
|
32024
|
+
}],
|
|
32025
|
+
"deviceManager.setChildLayout": [{
|
|
32026
|
+
name: "deviceId",
|
|
32027
|
+
form: "single",
|
|
32028
|
+
optional: false
|
|
32029
|
+
}],
|
|
32030
|
+
"deviceManager.setDisabled": [{
|
|
32031
|
+
name: "deviceId",
|
|
32032
|
+
form: "single",
|
|
32033
|
+
optional: false
|
|
32034
|
+
}],
|
|
32035
|
+
"deviceManager.setDisplay": [{
|
|
32036
|
+
name: "deviceId",
|
|
32037
|
+
form: "single",
|
|
32038
|
+
optional: false
|
|
32039
|
+
}],
|
|
32040
|
+
"deviceManager.setIntegrationId": [{
|
|
32041
|
+
name: "deviceId",
|
|
32042
|
+
form: "single",
|
|
32043
|
+
optional: false
|
|
32044
|
+
}],
|
|
32045
|
+
"deviceManager.setLinkDeviceId": [{
|
|
32046
|
+
name: "deviceId",
|
|
32047
|
+
form: "single",
|
|
32048
|
+
optional: false
|
|
32049
|
+
}, {
|
|
32050
|
+
name: "linkDeviceId",
|
|
32051
|
+
form: "single",
|
|
32052
|
+
optional: true
|
|
32053
|
+
}],
|
|
32054
|
+
"deviceManager.setLocation": [{
|
|
32055
|
+
name: "deviceId",
|
|
32056
|
+
form: "single",
|
|
32057
|
+
optional: false
|
|
32058
|
+
}],
|
|
32059
|
+
"deviceManager.setMetadata": [{
|
|
32060
|
+
name: "deviceId",
|
|
32061
|
+
form: "single",
|
|
32062
|
+
optional: false
|
|
32063
|
+
}],
|
|
32064
|
+
"deviceManager.setName": [{
|
|
32065
|
+
name: "deviceId",
|
|
32066
|
+
form: "single",
|
|
32067
|
+
optional: false
|
|
32068
|
+
}],
|
|
32069
|
+
"deviceManager.setPrimaryChildEntityId": [{
|
|
32070
|
+
name: "deviceId",
|
|
32071
|
+
form: "single",
|
|
32072
|
+
optional: false
|
|
32073
|
+
}],
|
|
32074
|
+
"deviceManager.setRole": [{
|
|
32075
|
+
name: "deviceId",
|
|
32076
|
+
form: "single",
|
|
32077
|
+
optional: false
|
|
32078
|
+
}],
|
|
32079
|
+
"deviceManager.setStreamProfileMap": [{
|
|
32080
|
+
name: "deviceId",
|
|
32081
|
+
form: "single",
|
|
32082
|
+
optional: false
|
|
32083
|
+
}],
|
|
32084
|
+
"deviceManager.setType": [{
|
|
32085
|
+
name: "deviceId",
|
|
32086
|
+
form: "single",
|
|
32087
|
+
optional: false
|
|
32088
|
+
}],
|
|
32089
|
+
"deviceManager.setWrapperActive": [{
|
|
32090
|
+
name: "deviceId",
|
|
32091
|
+
form: "single",
|
|
32092
|
+
optional: false
|
|
32093
|
+
}],
|
|
32094
|
+
"deviceManager.testField": [{
|
|
32095
|
+
name: "deviceId",
|
|
32096
|
+
form: "single",
|
|
32097
|
+
optional: false
|
|
32098
|
+
}],
|
|
32099
|
+
"deviceManager.updateConfig": [{
|
|
32100
|
+
name: "deviceId",
|
|
32101
|
+
form: "single",
|
|
32102
|
+
optional: false
|
|
32103
|
+
}],
|
|
32104
|
+
"deviceManager.updateDeviceField": [{
|
|
32105
|
+
name: "deviceId",
|
|
32106
|
+
form: "single",
|
|
32107
|
+
optional: false
|
|
32108
|
+
}],
|
|
32109
|
+
"deviceManager.updateDeviceFieldsBatch": [{
|
|
32110
|
+
name: "deviceId",
|
|
32111
|
+
form: "single",
|
|
32112
|
+
optional: false
|
|
32113
|
+
}],
|
|
32114
|
+
"deviceOps.getConfigEntries": [{
|
|
32115
|
+
name: "deviceId",
|
|
32116
|
+
form: "single",
|
|
32117
|
+
optional: false
|
|
32118
|
+
}],
|
|
32119
|
+
"deviceOps.getRawState": [{
|
|
32120
|
+
name: "deviceId",
|
|
32121
|
+
form: "single",
|
|
32122
|
+
optional: false
|
|
32123
|
+
}],
|
|
32124
|
+
"deviceOps.getSettingsSchema": [{
|
|
32125
|
+
name: "deviceId",
|
|
32126
|
+
form: "single",
|
|
32127
|
+
optional: false
|
|
32128
|
+
}],
|
|
32129
|
+
"deviceOps.getStreamSources": [{
|
|
32130
|
+
name: "deviceId",
|
|
32131
|
+
form: "single",
|
|
32132
|
+
optional: false
|
|
32133
|
+
}],
|
|
32134
|
+
"deviceOps.removeDevice": [{
|
|
32135
|
+
name: "deviceId",
|
|
32136
|
+
form: "single",
|
|
32137
|
+
optional: false
|
|
32138
|
+
}],
|
|
32139
|
+
"deviceOps.runAction": [{
|
|
32140
|
+
name: "deviceId",
|
|
32141
|
+
form: "single",
|
|
32142
|
+
optional: false
|
|
32143
|
+
}],
|
|
32144
|
+
"deviceOps.setConfig": [{
|
|
32145
|
+
name: "deviceId",
|
|
32146
|
+
form: "single",
|
|
32147
|
+
optional: false
|
|
32148
|
+
}],
|
|
32149
|
+
"deviceState.getCapSlice": [{
|
|
32150
|
+
name: "deviceId",
|
|
32151
|
+
form: "single",
|
|
32152
|
+
optional: false
|
|
32153
|
+
}],
|
|
32154
|
+
"deviceState.getSnapshot": [{
|
|
32155
|
+
name: "deviceId",
|
|
32156
|
+
form: "single",
|
|
32157
|
+
optional: false
|
|
32158
|
+
}],
|
|
32159
|
+
"deviceState.setCapSlice": [{
|
|
32160
|
+
name: "deviceId",
|
|
32161
|
+
form: "single",
|
|
32162
|
+
optional: false
|
|
32163
|
+
}],
|
|
32164
|
+
"events.getEventClipUrl": [{
|
|
32165
|
+
name: "deviceId",
|
|
32166
|
+
form: "single",
|
|
32167
|
+
optional: false
|
|
32168
|
+
}],
|
|
32169
|
+
"events.getEvents": [{
|
|
32170
|
+
name: "deviceId",
|
|
32171
|
+
form: "single",
|
|
32172
|
+
optional: false
|
|
32173
|
+
}],
|
|
32174
|
+
"events.getEventThumbnail": [{
|
|
32175
|
+
name: "deviceId",
|
|
32176
|
+
form: "single",
|
|
32177
|
+
optional: false
|
|
32178
|
+
}],
|
|
32179
|
+
"faceGallery.getFaceByTrack": [{
|
|
32180
|
+
name: "deviceId",
|
|
32181
|
+
form: "single",
|
|
32182
|
+
optional: false
|
|
32183
|
+
}],
|
|
32184
|
+
"faceGallery.listRecentFaces": [{
|
|
32185
|
+
name: "deviceId",
|
|
32186
|
+
form: "single",
|
|
32187
|
+
optional: true
|
|
32188
|
+
}],
|
|
32189
|
+
"fanControl.setDirection": [{
|
|
32190
|
+
name: "deviceId",
|
|
32191
|
+
form: "single",
|
|
32192
|
+
optional: false
|
|
32193
|
+
}],
|
|
32194
|
+
"fanControl.setOscillating": [{
|
|
32195
|
+
name: "deviceId",
|
|
32196
|
+
form: "single",
|
|
32197
|
+
optional: false
|
|
32198
|
+
}],
|
|
32199
|
+
"fanControl.setPercentage": [{
|
|
32200
|
+
name: "deviceId",
|
|
32201
|
+
form: "single",
|
|
32202
|
+
optional: false
|
|
32203
|
+
}],
|
|
32204
|
+
"fanControl.setPreset": [{
|
|
32205
|
+
name: "deviceId",
|
|
32206
|
+
form: "single",
|
|
32207
|
+
optional: false
|
|
32208
|
+
}],
|
|
32209
|
+
"humidifier.setMode": [{
|
|
32210
|
+
name: "deviceId",
|
|
32211
|
+
form: "single",
|
|
32212
|
+
optional: false
|
|
32213
|
+
}],
|
|
32214
|
+
"humidifier.setOn": [{
|
|
32215
|
+
name: "deviceId",
|
|
32216
|
+
form: "single",
|
|
32217
|
+
optional: false
|
|
32218
|
+
}],
|
|
32219
|
+
"humidifier.setTargetHumidity": [{
|
|
32220
|
+
name: "deviceId",
|
|
32221
|
+
form: "single",
|
|
32222
|
+
optional: false
|
|
32223
|
+
}],
|
|
32224
|
+
"imageSettings.getOptions": [{
|
|
32225
|
+
name: "deviceId",
|
|
32226
|
+
form: "single",
|
|
32227
|
+
optional: false
|
|
32228
|
+
}],
|
|
32229
|
+
"imageSettings.setSettings": [{
|
|
32230
|
+
name: "deviceId",
|
|
32231
|
+
form: "single",
|
|
32232
|
+
optional: false
|
|
32233
|
+
}],
|
|
32234
|
+
"intercom.endTalkSession": [{
|
|
32235
|
+
name: "deviceId",
|
|
32236
|
+
form: "single",
|
|
32237
|
+
optional: false
|
|
32238
|
+
}],
|
|
32239
|
+
"intercom.handleAnswer": [{
|
|
32240
|
+
name: "deviceId",
|
|
32241
|
+
form: "single",
|
|
32242
|
+
optional: false
|
|
32243
|
+
}],
|
|
32244
|
+
"intercom.pushTalkAudio": [{
|
|
32245
|
+
name: "deviceId",
|
|
32246
|
+
form: "single",
|
|
32247
|
+
optional: false
|
|
32248
|
+
}],
|
|
32249
|
+
"intercom.startSession": [{
|
|
32250
|
+
name: "deviceId",
|
|
32251
|
+
form: "single",
|
|
32252
|
+
optional: false
|
|
32253
|
+
}],
|
|
32254
|
+
"intercom.startTalkSession": [{
|
|
32255
|
+
name: "deviceId",
|
|
32256
|
+
form: "single",
|
|
32257
|
+
optional: false
|
|
32258
|
+
}],
|
|
32259
|
+
"intercom.stopSession": [{
|
|
32260
|
+
name: "deviceId",
|
|
32261
|
+
form: "single",
|
|
32262
|
+
optional: false
|
|
32263
|
+
}],
|
|
32264
|
+
"lawnMowerControl.dock": [{
|
|
32265
|
+
name: "deviceId",
|
|
32266
|
+
form: "single",
|
|
32267
|
+
optional: false
|
|
32268
|
+
}],
|
|
32269
|
+
"lawnMowerControl.pause": [{
|
|
32270
|
+
name: "deviceId",
|
|
32271
|
+
form: "single",
|
|
32272
|
+
optional: false
|
|
32273
|
+
}],
|
|
32274
|
+
"lawnMowerControl.startMowing": [{
|
|
32275
|
+
name: "deviceId",
|
|
32276
|
+
form: "single",
|
|
32277
|
+
optional: false
|
|
32278
|
+
}],
|
|
32279
|
+
"lockControl.lock": [{
|
|
32280
|
+
name: "deviceId",
|
|
32281
|
+
form: "single",
|
|
32282
|
+
optional: false
|
|
32283
|
+
}],
|
|
32284
|
+
"lockControl.open": [{
|
|
32285
|
+
name: "deviceId",
|
|
32286
|
+
form: "single",
|
|
32287
|
+
optional: false
|
|
32288
|
+
}],
|
|
32289
|
+
"lockControl.unlock": [{
|
|
32290
|
+
name: "deviceId",
|
|
32291
|
+
form: "single",
|
|
32292
|
+
optional: false
|
|
32293
|
+
}],
|
|
32294
|
+
"mediaPlayer.next": [{
|
|
32295
|
+
name: "deviceId",
|
|
32296
|
+
form: "single",
|
|
32297
|
+
optional: false
|
|
32298
|
+
}],
|
|
32299
|
+
"mediaPlayer.pause": [{
|
|
32300
|
+
name: "deviceId",
|
|
32301
|
+
form: "single",
|
|
32302
|
+
optional: false
|
|
32303
|
+
}],
|
|
32304
|
+
"mediaPlayer.play": [{
|
|
32305
|
+
name: "deviceId",
|
|
32306
|
+
form: "single",
|
|
32307
|
+
optional: false
|
|
32308
|
+
}],
|
|
32309
|
+
"mediaPlayer.playMedia": [{
|
|
32310
|
+
name: "deviceId",
|
|
32311
|
+
form: "single",
|
|
32312
|
+
optional: false
|
|
32313
|
+
}],
|
|
32314
|
+
"mediaPlayer.previous": [{
|
|
32315
|
+
name: "deviceId",
|
|
32316
|
+
form: "single",
|
|
32317
|
+
optional: false
|
|
32318
|
+
}],
|
|
32319
|
+
"mediaPlayer.seek": [{
|
|
32320
|
+
name: "deviceId",
|
|
32321
|
+
form: "single",
|
|
32322
|
+
optional: false
|
|
32323
|
+
}],
|
|
32324
|
+
"mediaPlayer.selectSource": [{
|
|
32325
|
+
name: "deviceId",
|
|
32326
|
+
form: "single",
|
|
32327
|
+
optional: false
|
|
32328
|
+
}],
|
|
32329
|
+
"mediaPlayer.setMute": [{
|
|
32330
|
+
name: "deviceId",
|
|
32331
|
+
form: "single",
|
|
32332
|
+
optional: false
|
|
32333
|
+
}],
|
|
32334
|
+
"mediaPlayer.setRepeat": [{
|
|
32335
|
+
name: "deviceId",
|
|
32336
|
+
form: "single",
|
|
32337
|
+
optional: false
|
|
32338
|
+
}],
|
|
32339
|
+
"mediaPlayer.setShuffle": [{
|
|
32340
|
+
name: "deviceId",
|
|
32341
|
+
form: "single",
|
|
32342
|
+
optional: false
|
|
32343
|
+
}],
|
|
32344
|
+
"mediaPlayer.setVolume": [{
|
|
32345
|
+
name: "deviceId",
|
|
32346
|
+
form: "single",
|
|
32347
|
+
optional: false
|
|
32348
|
+
}],
|
|
32349
|
+
"mediaPlayer.stop": [{
|
|
32350
|
+
name: "deviceId",
|
|
32351
|
+
form: "single",
|
|
32352
|
+
optional: false
|
|
32353
|
+
}],
|
|
32354
|
+
"motion.isDetected": [{
|
|
32355
|
+
name: "deviceId",
|
|
32356
|
+
form: "single",
|
|
32357
|
+
optional: false
|
|
32358
|
+
}],
|
|
32359
|
+
"motionDetection.analyze": [{
|
|
32360
|
+
name: "deviceId",
|
|
32361
|
+
form: "single",
|
|
32362
|
+
optional: false
|
|
32363
|
+
}],
|
|
32364
|
+
"motionDetection.removeCamera": [{
|
|
32365
|
+
name: "deviceId",
|
|
32366
|
+
form: "single",
|
|
32367
|
+
optional: false
|
|
32368
|
+
}],
|
|
32369
|
+
"motionTrigger.setMotionTrigger": [{
|
|
32370
|
+
name: "deviceId",
|
|
32371
|
+
form: "single",
|
|
32372
|
+
optional: false
|
|
32373
|
+
}],
|
|
32374
|
+
"motionZones.getOptions": [{
|
|
32375
|
+
name: "deviceId",
|
|
32376
|
+
form: "single",
|
|
32377
|
+
optional: false
|
|
32378
|
+
}],
|
|
32379
|
+
"motionZones.setZone": [{
|
|
32380
|
+
name: "deviceId",
|
|
32381
|
+
form: "single",
|
|
32382
|
+
optional: false
|
|
32383
|
+
}],
|
|
32384
|
+
"nativeObjectDetection.setEnabled": [{
|
|
32385
|
+
name: "deviceId",
|
|
32386
|
+
form: "single",
|
|
32387
|
+
optional: false
|
|
32388
|
+
}],
|
|
32389
|
+
"networkQuality.getDeviceStats": [{
|
|
32390
|
+
name: "deviceId",
|
|
32391
|
+
form: "single",
|
|
32392
|
+
optional: false
|
|
32393
|
+
}],
|
|
32394
|
+
"networkQuality.reportClientStats": [{
|
|
32395
|
+
name: "deviceId",
|
|
32396
|
+
form: "single",
|
|
32397
|
+
optional: false
|
|
32398
|
+
}],
|
|
32399
|
+
"notificationRules.setDeviceMuted": [{
|
|
32400
|
+
name: "deviceId",
|
|
32401
|
+
form: "single",
|
|
32402
|
+
optional: false
|
|
32403
|
+
}],
|
|
32404
|
+
"notifier.cancel": [{
|
|
32405
|
+
name: "deviceId",
|
|
32406
|
+
form: "single",
|
|
32407
|
+
optional: false
|
|
32408
|
+
}],
|
|
32409
|
+
"notifier.send": [{
|
|
32410
|
+
name: "deviceId",
|
|
32411
|
+
form: "single",
|
|
32412
|
+
optional: false
|
|
32413
|
+
}],
|
|
32414
|
+
"osd.setOverlay": [{
|
|
32415
|
+
name: "deviceId",
|
|
32416
|
+
form: "single",
|
|
32417
|
+
optional: false
|
|
32418
|
+
}],
|
|
32419
|
+
"osdManager.clearSlotBinding": [{
|
|
32420
|
+
name: "deviceId",
|
|
32421
|
+
form: "single",
|
|
32422
|
+
optional: false
|
|
32423
|
+
}],
|
|
32424
|
+
"osdManager.copyDeviceConfiguration": [{
|
|
32425
|
+
name: "sourceDeviceId",
|
|
32426
|
+
form: "single",
|
|
32427
|
+
optional: false
|
|
32428
|
+
}, {
|
|
32429
|
+
name: "targetDeviceId",
|
|
32430
|
+
form: "single",
|
|
32431
|
+
optional: false
|
|
32432
|
+
}],
|
|
32433
|
+
"osdManager.getDeviceOsd": [{
|
|
32434
|
+
name: "deviceId",
|
|
32435
|
+
form: "single",
|
|
32436
|
+
optional: false
|
|
32437
|
+
}],
|
|
32438
|
+
"osdManager.getSourceCatalog": [{
|
|
32439
|
+
name: "deviceId",
|
|
32440
|
+
form: "single",
|
|
32441
|
+
optional: false
|
|
32442
|
+
}],
|
|
32443
|
+
"osdManager.previewSlot": [{
|
|
32444
|
+
name: "deviceId",
|
|
32445
|
+
form: "single",
|
|
32446
|
+
optional: false
|
|
32447
|
+
}],
|
|
32448
|
+
"osdManager.renderDevice": [{
|
|
32449
|
+
name: "deviceId",
|
|
32450
|
+
form: "single",
|
|
32451
|
+
optional: false
|
|
32452
|
+
}],
|
|
32453
|
+
"osdManager.setSlotBinding": [{
|
|
32454
|
+
name: "deviceId",
|
|
32455
|
+
form: "single",
|
|
32456
|
+
optional: false
|
|
32457
|
+
}],
|
|
32458
|
+
"petFeeder.callPet": [{
|
|
32459
|
+
name: "deviceId",
|
|
32460
|
+
form: "single",
|
|
32461
|
+
optional: false
|
|
32462
|
+
}],
|
|
32463
|
+
"petFeeder.cancelFeed": [{
|
|
32464
|
+
name: "deviceId",
|
|
32465
|
+
form: "single",
|
|
32466
|
+
optional: false
|
|
32467
|
+
}],
|
|
32468
|
+
"petFeeder.feed": [{
|
|
32469
|
+
name: "deviceId",
|
|
32470
|
+
form: "single",
|
|
32471
|
+
optional: false
|
|
32472
|
+
}],
|
|
32473
|
+
"petFeeder.markFoodReplenished": [{
|
|
32474
|
+
name: "deviceId",
|
|
32475
|
+
form: "single",
|
|
32476
|
+
optional: false
|
|
32477
|
+
}],
|
|
32478
|
+
"petFeeder.playSound": [{
|
|
32479
|
+
name: "deviceId",
|
|
32480
|
+
form: "single",
|
|
32481
|
+
optional: false
|
|
32482
|
+
}],
|
|
32483
|
+
"petFeeder.resetDesiccant": [{
|
|
32484
|
+
name: "deviceId",
|
|
32485
|
+
form: "single",
|
|
32486
|
+
optional: false
|
|
32487
|
+
}],
|
|
32488
|
+
"petFeeder.setChildLock": [{
|
|
32489
|
+
name: "deviceId",
|
|
32490
|
+
form: "single",
|
|
32491
|
+
optional: false
|
|
32492
|
+
}],
|
|
32493
|
+
"petFeeder.setFeedSound": [{
|
|
32494
|
+
name: "deviceId",
|
|
32495
|
+
form: "single",
|
|
32496
|
+
optional: false
|
|
32497
|
+
}],
|
|
32498
|
+
"petFeeder.setIndicatorLight": [{
|
|
32499
|
+
name: "deviceId",
|
|
32500
|
+
form: "single",
|
|
32501
|
+
optional: false
|
|
32502
|
+
}],
|
|
32503
|
+
"petFeeder.setVolume": [{
|
|
32504
|
+
name: "deviceId",
|
|
32505
|
+
form: "single",
|
|
32506
|
+
optional: false
|
|
32507
|
+
}],
|
|
32508
|
+
"pipelineAnalytics.clearTracks": [{
|
|
32509
|
+
name: "deviceId",
|
|
32510
|
+
form: "single",
|
|
32511
|
+
optional: false
|
|
32512
|
+
}],
|
|
32513
|
+
"pipelineAnalytics.completeRetrainTrack": [{
|
|
32514
|
+
name: "deviceId",
|
|
32515
|
+
form: "single",
|
|
32516
|
+
optional: false
|
|
32517
|
+
}],
|
|
32518
|
+
"pipelineAnalytics.deleteDeviceEvents": [{
|
|
32519
|
+
name: "deviceId",
|
|
32520
|
+
form: "single",
|
|
32521
|
+
optional: false
|
|
32522
|
+
}],
|
|
32523
|
+
"pipelineAnalytics.deleteTracks": [{
|
|
32524
|
+
name: "deviceId",
|
|
32525
|
+
form: "single",
|
|
32526
|
+
optional: false
|
|
32527
|
+
}],
|
|
32528
|
+
"pipelineAnalytics.deselectRetrainFrame": [{
|
|
32529
|
+
name: "deviceId",
|
|
32530
|
+
form: "single",
|
|
32531
|
+
optional: false
|
|
32532
|
+
}],
|
|
32533
|
+
"pipelineAnalytics.getActiveTracks": [{
|
|
32534
|
+
name: "deviceId",
|
|
32535
|
+
form: "single",
|
|
32536
|
+
optional: false
|
|
32537
|
+
}],
|
|
32538
|
+
"pipelineAnalytics.getAudioEvents": [{
|
|
32539
|
+
name: "deviceId",
|
|
32540
|
+
form: "single",
|
|
32541
|
+
optional: false
|
|
32542
|
+
}],
|
|
32543
|
+
"pipelineAnalytics.getEventDensity": [{
|
|
32544
|
+
name: "deviceId",
|
|
32545
|
+
form: "single",
|
|
32546
|
+
optional: false
|
|
32547
|
+
}],
|
|
32548
|
+
"pipelineAnalytics.getEventMedia": [{
|
|
32549
|
+
name: "deviceId",
|
|
32550
|
+
form: "single",
|
|
32551
|
+
optional: false
|
|
32552
|
+
}],
|
|
32553
|
+
"pipelineAnalytics.getKeyEvents": [{
|
|
32554
|
+
name: "deviceId",
|
|
32555
|
+
form: "single",
|
|
32556
|
+
optional: false
|
|
32557
|
+
}],
|
|
32558
|
+
"pipelineAnalytics.getMotionEvents": [{
|
|
32559
|
+
name: "deviceId",
|
|
32560
|
+
form: "single",
|
|
32561
|
+
optional: false
|
|
32562
|
+
}],
|
|
32563
|
+
"pipelineAnalytics.getObjectEvents": [{
|
|
32564
|
+
name: "deviceId",
|
|
32565
|
+
form: "single",
|
|
32566
|
+
optional: false
|
|
32567
|
+
}],
|
|
32568
|
+
"pipelineAnalytics.getRetrainExportUrl": [{
|
|
32569
|
+
name: "deviceIds",
|
|
32570
|
+
form: "array",
|
|
32571
|
+
optional: true
|
|
32572
|
+
}],
|
|
32573
|
+
"pipelineAnalytics.getSensorEvents": [{
|
|
32574
|
+
name: "deviceId",
|
|
32575
|
+
form: "single",
|
|
32576
|
+
optional: false
|
|
32577
|
+
}],
|
|
32578
|
+
"pipelineAnalytics.getTrack": [{
|
|
32579
|
+
name: "deviceId",
|
|
32580
|
+
form: "single",
|
|
32581
|
+
optional: false
|
|
32582
|
+
}],
|
|
32583
|
+
"pipelineAnalytics.getTrackMedia": [{
|
|
32584
|
+
name: "deviceId",
|
|
32585
|
+
form: "single",
|
|
32586
|
+
optional: false
|
|
32587
|
+
}],
|
|
32588
|
+
"pipelineAnalytics.getTrainingExportSummary": [{
|
|
32589
|
+
name: "deviceIds",
|
|
32590
|
+
form: "array",
|
|
32591
|
+
optional: true
|
|
32592
|
+
}],
|
|
32593
|
+
"pipelineAnalytics.getTrainingExportUrl": [{
|
|
32594
|
+
name: "deviceIds",
|
|
32595
|
+
form: "array",
|
|
32596
|
+
optional: true
|
|
32597
|
+
}],
|
|
32598
|
+
"pipelineAnalytics.listEventKinds": [{
|
|
32599
|
+
name: "deviceId",
|
|
32600
|
+
form: "single",
|
|
32601
|
+
optional: false
|
|
32602
|
+
}],
|
|
32603
|
+
"pipelineAnalytics.listEventKindsBatch": [{
|
|
32604
|
+
name: "deviceIds",
|
|
32605
|
+
form: "array",
|
|
32606
|
+
optional: false
|
|
32607
|
+
}],
|
|
32608
|
+
"pipelineAnalytics.listOpsLog": [{
|
|
32609
|
+
name: "deviceId",
|
|
32610
|
+
form: "single",
|
|
32611
|
+
optional: true
|
|
32612
|
+
}],
|
|
32613
|
+
"pipelineAnalytics.listRecentTracks": [{
|
|
32614
|
+
name: "deviceIds",
|
|
32615
|
+
form: "array",
|
|
32616
|
+
optional: false
|
|
32617
|
+
}],
|
|
32618
|
+
"pipelineAnalytics.listRetrainStaging": [{
|
|
32619
|
+
name: "deviceIds",
|
|
32620
|
+
form: "array",
|
|
32621
|
+
optional: true
|
|
32622
|
+
}],
|
|
32623
|
+
"pipelineAnalytics.listTrackMedia": [{
|
|
32624
|
+
name: "deviceId",
|
|
32625
|
+
form: "single",
|
|
32626
|
+
optional: false
|
|
32627
|
+
}],
|
|
32628
|
+
"pipelineAnalytics.listTracks": [{
|
|
32629
|
+
name: "deviceId",
|
|
32630
|
+
form: "single",
|
|
32631
|
+
optional: false
|
|
32632
|
+
}],
|
|
32633
|
+
"pipelineAnalytics.proposeRetrainAnnotations": [{
|
|
32634
|
+
name: "deviceId",
|
|
32635
|
+
form: "single",
|
|
32636
|
+
optional: false
|
|
32637
|
+
}],
|
|
32638
|
+
"pipelineAnalytics.pruneEventsBefore": [{
|
|
32639
|
+
name: "deviceId",
|
|
32640
|
+
form: "single",
|
|
32641
|
+
optional: false
|
|
32642
|
+
}],
|
|
32643
|
+
"pipelineAnalytics.pruneTracksBefore": [{
|
|
32644
|
+
name: "deviceId",
|
|
32645
|
+
form: "single",
|
|
32646
|
+
optional: false
|
|
32647
|
+
}],
|
|
32648
|
+
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
32649
|
+
name: "deviceId",
|
|
32650
|
+
form: "single",
|
|
32651
|
+
optional: true
|
|
32652
|
+
}],
|
|
32653
|
+
"pipelineAnalytics.restageRetrainTrack": [{
|
|
32654
|
+
name: "deviceId",
|
|
32655
|
+
form: "single",
|
|
32656
|
+
optional: false
|
|
32657
|
+
}],
|
|
32658
|
+
"pipelineAnalytics.saveRetrainAnnotations": [{
|
|
32659
|
+
name: "deviceId",
|
|
32660
|
+
form: "single",
|
|
32661
|
+
optional: false
|
|
32662
|
+
}],
|
|
32663
|
+
"pipelineAnalytics.searchObjectEvents": [{
|
|
32664
|
+
name: "deviceId",
|
|
32665
|
+
form: "single",
|
|
32666
|
+
optional: true
|
|
32667
|
+
}],
|
|
32668
|
+
"pipelineAnalytics.selectRetrainFrames": [{
|
|
32669
|
+
name: "deviceId",
|
|
32670
|
+
form: "single",
|
|
32671
|
+
optional: false
|
|
32672
|
+
}],
|
|
32673
|
+
"pipelineAnalytics.setTrackFlags": [{
|
|
32674
|
+
name: "deviceId",
|
|
32675
|
+
form: "single",
|
|
32676
|
+
optional: false
|
|
32677
|
+
}],
|
|
32678
|
+
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
32679
|
+
name: "deviceId",
|
|
32680
|
+
form: "single",
|
|
32681
|
+
optional: false
|
|
32682
|
+
}],
|
|
32683
|
+
"pipelineExecutor.runPipeline": [{
|
|
32684
|
+
name: "deviceId",
|
|
32685
|
+
form: "single",
|
|
32686
|
+
optional: true
|
|
32687
|
+
}],
|
|
32688
|
+
"pipelineExecutor.runPipelineBatch": [{
|
|
32689
|
+
name: "deviceId",
|
|
32690
|
+
form: "single",
|
|
32691
|
+
optional: true
|
|
32692
|
+
}],
|
|
32693
|
+
"pipelineOrchestrator.assignAudio": [{
|
|
32694
|
+
name: "deviceId",
|
|
32695
|
+
form: "single",
|
|
32696
|
+
optional: false
|
|
32697
|
+
}],
|
|
32698
|
+
"pipelineOrchestrator.assignPipeline": [{
|
|
32699
|
+
name: "deviceId",
|
|
32700
|
+
form: "single",
|
|
32701
|
+
optional: false
|
|
32702
|
+
}],
|
|
32703
|
+
"pipelineOrchestrator.getAudioAssignment": [{
|
|
32704
|
+
name: "deviceId",
|
|
32705
|
+
form: "single",
|
|
32706
|
+
optional: false
|
|
32707
|
+
}],
|
|
32708
|
+
"pipelineOrchestrator.getCameraMetrics": [{
|
|
32709
|
+
name: "deviceId",
|
|
32710
|
+
form: "single",
|
|
32711
|
+
optional: false
|
|
32712
|
+
}],
|
|
32713
|
+
"pipelineOrchestrator.getCameraSettings": [{
|
|
32714
|
+
name: "deviceId",
|
|
32715
|
+
form: "single",
|
|
32716
|
+
optional: false
|
|
32717
|
+
}],
|
|
32718
|
+
"pipelineOrchestrator.getCameraStatus": [{
|
|
32719
|
+
name: "deviceId",
|
|
32720
|
+
form: "single",
|
|
32721
|
+
optional: false
|
|
32722
|
+
}],
|
|
32723
|
+
"pipelineOrchestrator.getCameraStatuses": [{
|
|
32724
|
+
name: "deviceIds",
|
|
32725
|
+
form: "array",
|
|
32726
|
+
optional: true
|
|
32727
|
+
}],
|
|
32728
|
+
"pipelineOrchestrator.getCameraStepOverrides": [{
|
|
32729
|
+
name: "deviceId",
|
|
32730
|
+
form: "single",
|
|
32731
|
+
optional: false
|
|
32732
|
+
}],
|
|
32733
|
+
"pipelineOrchestrator.getCameraSwitches": [{
|
|
32734
|
+
name: "deviceId",
|
|
32735
|
+
form: "single",
|
|
32736
|
+
optional: false
|
|
32737
|
+
}],
|
|
32738
|
+
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
32739
|
+
name: "deviceId",
|
|
32740
|
+
form: "single",
|
|
32741
|
+
optional: false
|
|
32742
|
+
}],
|
|
32743
|
+
"pipelineOrchestrator.getPipelineDevicePin": [{
|
|
32744
|
+
name: "deviceId",
|
|
32745
|
+
form: "single",
|
|
32746
|
+
optional: false
|
|
32747
|
+
}],
|
|
32748
|
+
"pipelineOrchestrator.resolvePipeline": [{
|
|
32749
|
+
name: "deviceId",
|
|
32750
|
+
form: "single",
|
|
32751
|
+
optional: false
|
|
32752
|
+
}],
|
|
32753
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": [{
|
|
32754
|
+
name: "deviceId",
|
|
32755
|
+
form: "single",
|
|
32756
|
+
optional: false
|
|
32757
|
+
}],
|
|
32758
|
+
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
32759
|
+
name: "deviceId",
|
|
32760
|
+
form: "single",
|
|
32761
|
+
optional: false
|
|
32762
|
+
}],
|
|
32763
|
+
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
32764
|
+
name: "deviceId",
|
|
32765
|
+
form: "single",
|
|
32766
|
+
optional: false
|
|
32767
|
+
}],
|
|
32768
|
+
"pipelineOrchestrator.setCameraSwitch": [{
|
|
32769
|
+
name: "deviceId",
|
|
32770
|
+
form: "single",
|
|
32771
|
+
optional: false
|
|
32772
|
+
}],
|
|
32773
|
+
"pipelineOrchestrator.setPipelineDevicePin": [{
|
|
32774
|
+
name: "deviceId",
|
|
32775
|
+
form: "single",
|
|
32776
|
+
optional: false
|
|
32777
|
+
}],
|
|
32778
|
+
"pipelineOrchestrator.unassignAudio": [{
|
|
32779
|
+
name: "deviceId",
|
|
32780
|
+
form: "single",
|
|
32781
|
+
optional: false
|
|
32782
|
+
}],
|
|
32783
|
+
"pipelineOrchestrator.unassignPipeline": [{
|
|
32784
|
+
name: "deviceId",
|
|
32785
|
+
form: "single",
|
|
32786
|
+
optional: false
|
|
32787
|
+
}],
|
|
32788
|
+
"pipelineRunner.attachCamera": [{
|
|
32789
|
+
name: "deviceId",
|
|
32790
|
+
form: "single",
|
|
32791
|
+
optional: false
|
|
32792
|
+
}],
|
|
32793
|
+
"pipelineRunner.detachCamera": [{
|
|
32794
|
+
name: "deviceId",
|
|
32795
|
+
form: "single",
|
|
32796
|
+
optional: false
|
|
32797
|
+
}],
|
|
32798
|
+
"pipelineRunner.getCameraMetrics": [{
|
|
32799
|
+
name: "deviceId",
|
|
32800
|
+
form: "single",
|
|
32801
|
+
optional: false
|
|
32802
|
+
}],
|
|
32803
|
+
"pipelineRunner.reportMotion": [{
|
|
32804
|
+
name: "deviceId",
|
|
32805
|
+
form: "single",
|
|
32806
|
+
optional: false
|
|
32807
|
+
}],
|
|
32808
|
+
"pipelineRunner.runDetailSubtree": [{
|
|
32809
|
+
name: "deviceId",
|
|
32810
|
+
form: "single",
|
|
32811
|
+
optional: false
|
|
32812
|
+
}],
|
|
32813
|
+
"pipelineRunner.runStatelessStep": [{
|
|
32814
|
+
name: "sourceDeviceId",
|
|
32815
|
+
form: "single",
|
|
32816
|
+
optional: false
|
|
32817
|
+
}],
|
|
32818
|
+
"plateGallery.getPlateByTrack": [{
|
|
32819
|
+
name: "deviceId",
|
|
32820
|
+
form: "single",
|
|
32821
|
+
optional: false
|
|
32822
|
+
}],
|
|
32823
|
+
"plateGallery.listPlates": [{
|
|
32824
|
+
name: "deviceId",
|
|
32825
|
+
form: "single",
|
|
32826
|
+
optional: true
|
|
32827
|
+
}],
|
|
32828
|
+
"privacyMask.getOptions": [{
|
|
32829
|
+
name: "deviceId",
|
|
32830
|
+
form: "single",
|
|
32831
|
+
optional: false
|
|
32832
|
+
}],
|
|
32833
|
+
"privacyMask.setAudioEnabled": [{
|
|
32834
|
+
name: "deviceId",
|
|
32835
|
+
form: "single",
|
|
32836
|
+
optional: false
|
|
32837
|
+
}],
|
|
32838
|
+
"privacyMask.setMask": [{
|
|
32839
|
+
name: "deviceId",
|
|
32840
|
+
form: "single",
|
|
32841
|
+
optional: false
|
|
32842
|
+
}],
|
|
32843
|
+
"ptz.continuousMove": [{
|
|
32844
|
+
name: "deviceId",
|
|
32845
|
+
form: "single",
|
|
32846
|
+
optional: false
|
|
32847
|
+
}],
|
|
32848
|
+
"ptz.deletePreset": [{
|
|
32849
|
+
name: "deviceId",
|
|
32850
|
+
form: "single",
|
|
32851
|
+
optional: false
|
|
32852
|
+
}],
|
|
32853
|
+
"ptz.getOptions": [{
|
|
32854
|
+
name: "deviceId",
|
|
32855
|
+
form: "single",
|
|
32856
|
+
optional: false
|
|
32857
|
+
}],
|
|
32858
|
+
"ptz.getPosition": [{
|
|
32859
|
+
name: "deviceId",
|
|
32860
|
+
form: "single",
|
|
32861
|
+
optional: false
|
|
32862
|
+
}],
|
|
32863
|
+
"ptz.getPresets": [{
|
|
32864
|
+
name: "deviceId",
|
|
32865
|
+
form: "single",
|
|
32866
|
+
optional: false
|
|
32867
|
+
}],
|
|
32868
|
+
"ptz.goHome": [{
|
|
32869
|
+
name: "deviceId",
|
|
32870
|
+
form: "single",
|
|
32871
|
+
optional: false
|
|
32872
|
+
}],
|
|
32873
|
+
"ptz.goToPreset": [{
|
|
32874
|
+
name: "deviceId",
|
|
32875
|
+
form: "single",
|
|
32876
|
+
optional: false
|
|
32877
|
+
}],
|
|
32878
|
+
"ptz.move": [{
|
|
32879
|
+
name: "deviceId",
|
|
32880
|
+
form: "single",
|
|
32881
|
+
optional: false
|
|
32882
|
+
}],
|
|
32883
|
+
"ptz.savePreset": [{
|
|
32884
|
+
name: "deviceId",
|
|
32885
|
+
form: "single",
|
|
32886
|
+
optional: false
|
|
32887
|
+
}],
|
|
32888
|
+
"ptz.setAutofocus": [{
|
|
32889
|
+
name: "deviceId",
|
|
32890
|
+
form: "single",
|
|
32891
|
+
optional: false
|
|
32892
|
+
}],
|
|
32893
|
+
"ptz.stop": [{
|
|
32894
|
+
name: "deviceId",
|
|
32895
|
+
form: "single",
|
|
32896
|
+
optional: false
|
|
32897
|
+
}],
|
|
32898
|
+
"ptzAutotrack.getSettings": [{
|
|
32899
|
+
name: "deviceId",
|
|
32900
|
+
form: "single",
|
|
32901
|
+
optional: false
|
|
32902
|
+
}],
|
|
32903
|
+
"ptzAutotrack.getStatus": [{
|
|
32904
|
+
name: "deviceId",
|
|
32905
|
+
form: "single",
|
|
32906
|
+
optional: false
|
|
32907
|
+
}],
|
|
32908
|
+
"ptzAutotrack.setEnabled": [{
|
|
32909
|
+
name: "deviceId",
|
|
32910
|
+
form: "single",
|
|
32911
|
+
optional: false
|
|
32912
|
+
}],
|
|
32913
|
+
"ptzAutotrack.setSettings": [{
|
|
32914
|
+
name: "deviceId",
|
|
32915
|
+
form: "single",
|
|
32916
|
+
optional: false
|
|
32917
|
+
}],
|
|
32918
|
+
"reboot.reboot": [{
|
|
32919
|
+
name: "deviceId",
|
|
32920
|
+
form: "single",
|
|
32921
|
+
optional: false
|
|
32922
|
+
}],
|
|
32923
|
+
"recording.deleteFootprint": [{
|
|
32924
|
+
name: "deviceId",
|
|
32925
|
+
form: "single",
|
|
32926
|
+
optional: false
|
|
32927
|
+
}],
|
|
32928
|
+
"recording.getAvailability": [{
|
|
32929
|
+
name: "deviceId",
|
|
32930
|
+
form: "single",
|
|
32931
|
+
optional: false
|
|
32932
|
+
}],
|
|
32933
|
+
"recording.getDaysWithRecordings": [{
|
|
32934
|
+
name: "deviceId",
|
|
32935
|
+
form: "single",
|
|
32936
|
+
optional: false
|
|
32937
|
+
}],
|
|
32938
|
+
"recording.getDeviceConfig": [{
|
|
32939
|
+
name: "deviceId",
|
|
32940
|
+
form: "single",
|
|
32941
|
+
optional: false
|
|
32942
|
+
}],
|
|
32943
|
+
"recording.getPlaybackManifest": [{
|
|
32944
|
+
name: "deviceId",
|
|
32945
|
+
form: "single",
|
|
32946
|
+
optional: false
|
|
32947
|
+
}],
|
|
32948
|
+
"recording.listOpsLog": [{
|
|
32949
|
+
name: "deviceId",
|
|
32950
|
+
form: "single",
|
|
32951
|
+
optional: true
|
|
32952
|
+
}],
|
|
32953
|
+
"recording.locateSegment": [{
|
|
32954
|
+
name: "deviceId",
|
|
32955
|
+
form: "single",
|
|
32956
|
+
optional: false
|
|
32957
|
+
}],
|
|
32958
|
+
"recording.pruneFootage": [{
|
|
32959
|
+
name: "deviceId",
|
|
32960
|
+
form: "single",
|
|
32961
|
+
optional: false
|
|
32962
|
+
}],
|
|
32963
|
+
"recording.readGopBytes": [{
|
|
32964
|
+
name: "deviceId",
|
|
32965
|
+
form: "single",
|
|
32966
|
+
optional: false
|
|
32967
|
+
}],
|
|
32968
|
+
"recording.readSegmentBytes": [{
|
|
32969
|
+
name: "deviceId",
|
|
32970
|
+
form: "single",
|
|
32971
|
+
optional: false
|
|
32972
|
+
}],
|
|
32973
|
+
"recording.relocateFootage": [{
|
|
32974
|
+
name: "deviceId",
|
|
32975
|
+
form: "single",
|
|
32976
|
+
optional: true
|
|
32977
|
+
}],
|
|
32978
|
+
"recording.renderClip": [{
|
|
32979
|
+
name: "deviceId",
|
|
32980
|
+
form: "single",
|
|
32981
|
+
optional: false
|
|
32982
|
+
}],
|
|
32983
|
+
"recording.renderGif": [{
|
|
32984
|
+
name: "deviceId",
|
|
32985
|
+
form: "single",
|
|
32986
|
+
optional: false
|
|
32987
|
+
}],
|
|
32988
|
+
"recording.rescanStorage": [{
|
|
32989
|
+
name: "deviceId",
|
|
32990
|
+
form: "single",
|
|
32991
|
+
optional: false
|
|
32992
|
+
}],
|
|
32993
|
+
"recording.setDeviceConfig": [{
|
|
32994
|
+
name: "deviceId",
|
|
32995
|
+
form: "single",
|
|
32996
|
+
optional: false
|
|
32997
|
+
}],
|
|
32998
|
+
"recording.startStorageMigrationMove": [{
|
|
32999
|
+
name: "deviceId",
|
|
33000
|
+
form: "single",
|
|
33001
|
+
optional: true
|
|
33002
|
+
}],
|
|
33003
|
+
"recordingExport.createExport": [{
|
|
33004
|
+
name: "deviceId",
|
|
33005
|
+
form: "single",
|
|
33006
|
+
optional: false
|
|
33007
|
+
}],
|
|
33008
|
+
"recordingExport.listExports": [{
|
|
33009
|
+
name: "deviceId",
|
|
33010
|
+
form: "single",
|
|
33011
|
+
optional: true
|
|
33012
|
+
}],
|
|
33013
|
+
"sceneMonitor.captureReference": [{
|
|
33014
|
+
name: "deviceId",
|
|
33015
|
+
form: "single",
|
|
33016
|
+
optional: false
|
|
33017
|
+
}],
|
|
33018
|
+
"sceneMonitor.createScene": [{
|
|
33019
|
+
name: "deviceId",
|
|
33020
|
+
form: "single",
|
|
33021
|
+
optional: false
|
|
33022
|
+
}],
|
|
33023
|
+
"sceneMonitor.deleteReference": [{
|
|
33024
|
+
name: "deviceId",
|
|
33025
|
+
form: "single",
|
|
33026
|
+
optional: false
|
|
33027
|
+
}],
|
|
33028
|
+
"sceneMonitor.deleteScene": [{
|
|
33029
|
+
name: "deviceId",
|
|
33030
|
+
form: "single",
|
|
33031
|
+
optional: false
|
|
33032
|
+
}],
|
|
33033
|
+
"sceneMonitor.listScenes": [{
|
|
33034
|
+
name: "deviceId",
|
|
33035
|
+
form: "single",
|
|
33036
|
+
optional: false
|
|
33037
|
+
}],
|
|
33038
|
+
"sceneMonitor.recheckNow": [{
|
|
33039
|
+
name: "deviceId",
|
|
33040
|
+
form: "single",
|
|
33041
|
+
optional: false
|
|
33042
|
+
}],
|
|
33043
|
+
"sceneMonitor.resetScene": [{
|
|
33044
|
+
name: "deviceId",
|
|
33045
|
+
form: "single",
|
|
33046
|
+
optional: false
|
|
33047
|
+
}],
|
|
33048
|
+
"sceneMonitor.updateScene": [{
|
|
33049
|
+
name: "deviceId",
|
|
33050
|
+
form: "single",
|
|
33051
|
+
optional: false
|
|
33052
|
+
}],
|
|
33053
|
+
"scriptRunner.run": [{
|
|
33054
|
+
name: "deviceId",
|
|
33055
|
+
form: "single",
|
|
33056
|
+
optional: false
|
|
33057
|
+
}],
|
|
33058
|
+
"scriptRunner.stop": [{
|
|
33059
|
+
name: "deviceId",
|
|
33060
|
+
form: "single",
|
|
33061
|
+
optional: false
|
|
33062
|
+
}],
|
|
33063
|
+
"snapshot.getSnapshot": [{
|
|
33064
|
+
name: "deviceId",
|
|
33065
|
+
form: "single",
|
|
33066
|
+
optional: false
|
|
33067
|
+
}],
|
|
33068
|
+
"snapshot.getSnapshotLinks": [{
|
|
33069
|
+
name: "targets",
|
|
33070
|
+
form: "object-array",
|
|
33071
|
+
optional: false,
|
|
33072
|
+
itemField: "deviceId"
|
|
33073
|
+
}],
|
|
33074
|
+
"snapshot.getSnapshotOverview": [{
|
|
33075
|
+
name: "deviceIds",
|
|
33076
|
+
form: "array",
|
|
33077
|
+
optional: false
|
|
33078
|
+
}],
|
|
33079
|
+
"snapshot.invalidateCache": [{
|
|
33080
|
+
name: "deviceId",
|
|
33081
|
+
form: "single",
|
|
33082
|
+
optional: false
|
|
33083
|
+
}],
|
|
33084
|
+
"streamBroker.acquireEgressTranscode": [{
|
|
33085
|
+
name: "deviceId",
|
|
33086
|
+
form: "single",
|
|
33087
|
+
optional: false
|
|
33088
|
+
}],
|
|
33089
|
+
"streamBroker.assignProfile": [{
|
|
33090
|
+
name: "deviceId",
|
|
33091
|
+
form: "single",
|
|
33092
|
+
optional: false
|
|
33093
|
+
}],
|
|
33094
|
+
"streamBroker.getDeviceAudioMute": [{
|
|
33095
|
+
name: "deviceId",
|
|
33096
|
+
form: "single",
|
|
33097
|
+
optional: false
|
|
33098
|
+
}],
|
|
33099
|
+
"streamBroker.getStreamWithCodec": [{
|
|
33100
|
+
name: "deviceId",
|
|
33101
|
+
form: "single",
|
|
33102
|
+
optional: false
|
|
33103
|
+
}],
|
|
33104
|
+
"streamBroker.produceEventMedia": [{
|
|
33105
|
+
name: "deviceId",
|
|
33106
|
+
form: "single",
|
|
33107
|
+
optional: false
|
|
33108
|
+
}],
|
|
33109
|
+
"streamBroker.publishCameraStream": [{
|
|
33110
|
+
name: "deviceId",
|
|
33111
|
+
form: "single",
|
|
33112
|
+
optional: false
|
|
33113
|
+
}],
|
|
33114
|
+
"streamBroker.renderPreBufferClip": [{
|
|
33115
|
+
name: "deviceId",
|
|
33116
|
+
form: "single",
|
|
33117
|
+
optional: false
|
|
33118
|
+
}],
|
|
33119
|
+
"streamBroker.restartProfile": [{
|
|
33120
|
+
name: "deviceId",
|
|
33121
|
+
form: "single",
|
|
33122
|
+
optional: false
|
|
33123
|
+
}],
|
|
33124
|
+
"streamBroker.retractCameraStream": [{
|
|
33125
|
+
name: "deviceId",
|
|
33126
|
+
form: "single",
|
|
33127
|
+
optional: false
|
|
33128
|
+
}],
|
|
33129
|
+
"streamBroker.setDeviceAudioMute": [{
|
|
33130
|
+
name: "deviceId",
|
|
33131
|
+
form: "single",
|
|
33132
|
+
optional: false
|
|
33133
|
+
}],
|
|
33134
|
+
"streamBroker.unassignProfile": [{
|
|
33135
|
+
name: "deviceId",
|
|
33136
|
+
form: "single",
|
|
33137
|
+
optional: false
|
|
33138
|
+
}],
|
|
33139
|
+
"streamCatalog.getCatalog": [{
|
|
33140
|
+
name: "deviceId",
|
|
33141
|
+
form: "single",
|
|
33142
|
+
optional: false
|
|
33143
|
+
}],
|
|
33144
|
+
"streamParams.getConfigSchema": [{
|
|
33145
|
+
name: "deviceId",
|
|
33146
|
+
form: "single",
|
|
33147
|
+
optional: false
|
|
33148
|
+
}],
|
|
33149
|
+
"streamParams.getOptions": [{
|
|
33150
|
+
name: "deviceId",
|
|
33151
|
+
form: "single",
|
|
33152
|
+
optional: false
|
|
33153
|
+
}],
|
|
33154
|
+
"streamParams.setProfile": [{
|
|
33155
|
+
name: "deviceId",
|
|
33156
|
+
form: "single",
|
|
33157
|
+
optional: false
|
|
33158
|
+
}],
|
|
33159
|
+
"switch.setState": [{
|
|
33160
|
+
name: "deviceId",
|
|
33161
|
+
form: "single",
|
|
33162
|
+
optional: false
|
|
33163
|
+
}],
|
|
33164
|
+
"vacuumControl.locate": [{
|
|
33165
|
+
name: "deviceId",
|
|
33166
|
+
form: "single",
|
|
33167
|
+
optional: false
|
|
33168
|
+
}],
|
|
33169
|
+
"vacuumControl.pause": [{
|
|
33170
|
+
name: "deviceId",
|
|
33171
|
+
form: "single",
|
|
33172
|
+
optional: false
|
|
33173
|
+
}],
|
|
33174
|
+
"vacuumControl.returnToBase": [{
|
|
33175
|
+
name: "deviceId",
|
|
33176
|
+
form: "single",
|
|
33177
|
+
optional: false
|
|
33178
|
+
}],
|
|
33179
|
+
"vacuumControl.setFanSpeed": [{
|
|
33180
|
+
name: "deviceId",
|
|
33181
|
+
form: "single",
|
|
33182
|
+
optional: false
|
|
33183
|
+
}],
|
|
33184
|
+
"vacuumControl.start": [{
|
|
33185
|
+
name: "deviceId",
|
|
33186
|
+
form: "single",
|
|
33187
|
+
optional: false
|
|
33188
|
+
}],
|
|
33189
|
+
"vacuumControl.stop": [{
|
|
33190
|
+
name: "deviceId",
|
|
33191
|
+
form: "single",
|
|
33192
|
+
optional: false
|
|
33193
|
+
}],
|
|
33194
|
+
"valve.close": [{
|
|
33195
|
+
name: "deviceId",
|
|
33196
|
+
form: "single",
|
|
33197
|
+
optional: false
|
|
33198
|
+
}],
|
|
33199
|
+
"valve.open": [{
|
|
33200
|
+
name: "deviceId",
|
|
33201
|
+
form: "single",
|
|
33202
|
+
optional: false
|
|
33203
|
+
}],
|
|
33204
|
+
"valve.setPosition": [{
|
|
33205
|
+
name: "deviceId",
|
|
33206
|
+
form: "single",
|
|
33207
|
+
optional: false
|
|
33208
|
+
}],
|
|
33209
|
+
"valve.stop": [{
|
|
33210
|
+
name: "deviceId",
|
|
33211
|
+
form: "single",
|
|
33212
|
+
optional: false
|
|
33213
|
+
}],
|
|
33214
|
+
"videoclips.getClipPlayback": [{
|
|
33215
|
+
name: "deviceId",
|
|
33216
|
+
form: "single",
|
|
33217
|
+
optional: false
|
|
33218
|
+
}],
|
|
33219
|
+
"videoclips.listClips": [{
|
|
33220
|
+
name: "deviceId",
|
|
33221
|
+
form: "single",
|
|
33222
|
+
optional: false
|
|
33223
|
+
}],
|
|
33224
|
+
"waterHeater.setAway": [{
|
|
33225
|
+
name: "deviceId",
|
|
33226
|
+
form: "single",
|
|
33227
|
+
optional: false
|
|
33228
|
+
}],
|
|
33229
|
+
"waterHeater.setOperationMode": [{
|
|
33230
|
+
name: "deviceId",
|
|
33231
|
+
form: "single",
|
|
33232
|
+
optional: false
|
|
33233
|
+
}],
|
|
33234
|
+
"waterHeater.setTargetTemp": [{
|
|
33235
|
+
name: "deviceId",
|
|
33236
|
+
form: "single",
|
|
33237
|
+
optional: false
|
|
33238
|
+
}],
|
|
33239
|
+
"webrtcSession.addIceCandidate": [{
|
|
33240
|
+
name: "deviceId",
|
|
33241
|
+
form: "single",
|
|
33242
|
+
optional: false
|
|
33243
|
+
}],
|
|
33244
|
+
"webrtcSession.closeSession": [{
|
|
33245
|
+
name: "deviceId",
|
|
33246
|
+
form: "single",
|
|
33247
|
+
optional: false
|
|
33248
|
+
}],
|
|
33249
|
+
"webrtcSession.createSession": [{
|
|
33250
|
+
name: "deviceId",
|
|
33251
|
+
form: "single",
|
|
33252
|
+
optional: false
|
|
33253
|
+
}],
|
|
33254
|
+
"webrtcSession.getIceCandidates": [{
|
|
33255
|
+
name: "deviceId",
|
|
33256
|
+
form: "single",
|
|
33257
|
+
optional: false
|
|
33258
|
+
}],
|
|
33259
|
+
"webrtcSession.getSessionState": [{
|
|
33260
|
+
name: "deviceId",
|
|
33261
|
+
form: "single",
|
|
33262
|
+
optional: false
|
|
33263
|
+
}],
|
|
33264
|
+
"webrtcSession.handleAnswer": [{
|
|
33265
|
+
name: "deviceId",
|
|
33266
|
+
form: "single",
|
|
33267
|
+
optional: false
|
|
33268
|
+
}],
|
|
33269
|
+
"webrtcSession.handleOffer": [{
|
|
33270
|
+
name: "deviceId",
|
|
33271
|
+
form: "single",
|
|
33272
|
+
optional: false
|
|
33273
|
+
}],
|
|
33274
|
+
"webrtcSession.hasAdaptiveBitrate": [{
|
|
33275
|
+
name: "deviceId",
|
|
33276
|
+
form: "single",
|
|
33277
|
+
optional: false
|
|
33278
|
+
}],
|
|
33279
|
+
"webrtcSession.listStreams": [{
|
|
33280
|
+
name: "deviceId",
|
|
33281
|
+
form: "single",
|
|
33282
|
+
optional: false
|
|
33283
|
+
}],
|
|
33284
|
+
"zoneAnalytics.getCameraHistory": [{
|
|
33285
|
+
name: "deviceId",
|
|
33286
|
+
form: "single",
|
|
33287
|
+
optional: false
|
|
33288
|
+
}],
|
|
33289
|
+
"zoneAnalytics.getCurrentSnapshot": [{
|
|
33290
|
+
name: "deviceId",
|
|
33291
|
+
form: "single",
|
|
33292
|
+
optional: false
|
|
33293
|
+
}],
|
|
33294
|
+
"zoneAnalytics.getUnzonedHistory": [{
|
|
33295
|
+
name: "deviceId",
|
|
33296
|
+
form: "single",
|
|
33297
|
+
optional: false
|
|
33298
|
+
}],
|
|
33299
|
+
"zoneAnalytics.getZoneHistory": [{
|
|
33300
|
+
name: "deviceId",
|
|
33301
|
+
form: "single",
|
|
33302
|
+
optional: false
|
|
33303
|
+
}],
|
|
33304
|
+
"zoneRules.listRules": [{
|
|
33305
|
+
name: "deviceId",
|
|
33306
|
+
form: "single",
|
|
33307
|
+
optional: false
|
|
33308
|
+
}],
|
|
33309
|
+
"zoneRules.setRules": [{
|
|
33310
|
+
name: "deviceId",
|
|
33311
|
+
form: "single",
|
|
33312
|
+
optional: false
|
|
33313
|
+
}],
|
|
33314
|
+
"zones.addZone": [{
|
|
33315
|
+
name: "deviceId",
|
|
33316
|
+
form: "single",
|
|
33317
|
+
optional: false
|
|
33318
|
+
}],
|
|
33319
|
+
"zones.listZones": [{
|
|
33320
|
+
name: "deviceId",
|
|
33321
|
+
form: "single",
|
|
33322
|
+
optional: false
|
|
33323
|
+
}],
|
|
33324
|
+
"zones.removeZone": [{
|
|
33325
|
+
name: "deviceId",
|
|
33326
|
+
form: "single",
|
|
33327
|
+
optional: false
|
|
33328
|
+
}],
|
|
33329
|
+
"zones.updateZone": [{
|
|
33330
|
+
name: "deviceId",
|
|
33331
|
+
form: "single",
|
|
33332
|
+
optional: false
|
|
33333
|
+
}]
|
|
33334
|
+
});
|
|
30697
33335
|
Object.freeze({
|
|
30698
33336
|
"broker": "broker",
|
|
30699
33337
|
"device-export": "device-export",
|
|
@@ -32433,6 +35071,21 @@ var ntfyAdapter = {
|
|
|
32433
35071
|
max: 1
|
|
32434
35072
|
},
|
|
32435
35073
|
actions: MAX_ACTIONS$1,
|
|
35074
|
+
/**
|
|
35075
|
+
* ntfy has NO per-action icon, and this says so out loud.
|
|
35076
|
+
*
|
|
35077
|
+
* Its action object is `{action, label, url, clear, headers, body}` and the
|
|
35078
|
+
* `X-Actions` header form is `action, label, url[, extras]` — there is no
|
|
35079
|
+
* icon field in either, and the `icon` ntfy does have is the NOTIFICATION's
|
|
35080
|
+
* icon (an attachment URL, handled above), not a per-button one.
|
|
35081
|
+
*
|
|
35082
|
+
* Left EXPLICIT rather than absent: absent and `false` behave identically
|
|
35083
|
+
* (the degrade engine reads a missing value as unsupported), but only one
|
|
35084
|
+
* of them proves somebody checked. The degrade engine then strips the icon
|
|
35085
|
+
* centrally and puts `actionIcons` in `renderedAs.dropped`, so the loss is
|
|
35086
|
+
* reported instead of being discovered on a phone.
|
|
35087
|
+
*/
|
|
35088
|
+
actionIcons: false,
|
|
32436
35089
|
levels: [
|
|
32437
35090
|
{
|
|
32438
35091
|
id: "min",
|
|
@@ -33616,6 +36269,82 @@ function userIdsFrom(config) {
|
|
|
33616
36269
|
return [];
|
|
33617
36270
|
}
|
|
33618
36271
|
/**
|
|
36272
|
+
* Canonical icon token → the string Zentik's client actually renders.
|
|
36273
|
+
*
|
|
36274
|
+
* ── EVIDENCE (read from the Zentik sources, not guessed) ────────────
|
|
36275
|
+
* `NotificationActionDto.icon` is `@IsOptional() @IsString()` — the BACKEND
|
|
36276
|
+
* validates nothing, so a wrong value is accepted, stored and delivered. The
|
|
36277
|
+
* rendering happens on the client, and both iOS paths do the same thing
|
|
36278
|
+
* (`ZentikNotificationService/NotificationService.swift`,
|
|
36279
|
+
* `ZentikNotificationContentExtension/NotificationViewController.swift`):
|
|
36280
|
+
*
|
|
36281
|
+
* let actualIconName = iconName.hasPrefix("sfsymbols:")
|
|
36282
|
+
* ? String(iconName.dropFirst("sfsymbols:".count)) : iconName
|
|
36283
|
+
* icon = UNNotificationActionIcon(systemImageName: actualIconName)
|
|
36284
|
+
*
|
|
36285
|
+
* So the value is an **SF Symbol name**, with an optional `sfsymbols:` prefix
|
|
36286
|
+
* that is stripped. Zentik's own UI confirms the convention: its icon field
|
|
36287
|
+
* placeholder is "e.g., house.fill, heart, gear" and its picker writes
|
|
36288
|
+
* `sfsymbols:${iconName}`.
|
|
36289
|
+
*
|
|
36290
|
+
* `UNNotificationActionIcon(systemImageName:)` with a name iOS does not know
|
|
36291
|
+
* renders NOTHING — silently. That is the whole failure: we sent `silence`,
|
|
36292
|
+
* `arm` and `disarm`, none of which are SF Symbols, and every button arrived
|
|
36293
|
+
* blank with nothing anywhere saying why.
|
|
36294
|
+
*
|
|
36295
|
+
* The prefix is emitted explicitly even though bare names work, because the
|
|
36296
|
+
* bare form is indistinguishable from an un-translated intent token in a
|
|
36297
|
+
* captured payload — and telling those two apart is what cost the time.
|
|
36298
|
+
*
|
|
36299
|
+
* A `Record` over the closed enum, NOT a lookup with a fallback: adding a
|
|
36300
|
+
* vocabulary member without deciding its glyph fails the build here.
|
|
36301
|
+
*
|
|
36302
|
+
* Android: Zentik's Android client does not render per-action icons at all
|
|
36303
|
+
* (an Android notification action needs a bundled drawable, not a name), so
|
|
36304
|
+
* this is an iOS/watchOS enrichment and a no-op elsewhere — which is a
|
|
36305
|
+
* cosmetic loss, not a wrong glyph.
|
|
36306
|
+
*/
|
|
36307
|
+
var ZENTIK_ACTION_ICONS = {
|
|
36308
|
+
acknowledge: "checkmark.circle",
|
|
36309
|
+
dismiss: "xmark.circle",
|
|
36310
|
+
silence: "bell.slash",
|
|
36311
|
+
snooze: "zzz",
|
|
36312
|
+
view: "eye",
|
|
36313
|
+
play: "play.fill",
|
|
36314
|
+
open: "door.left.hand.open",
|
|
36315
|
+
close: "door.left.hand.closed",
|
|
36316
|
+
lock: "lock.fill",
|
|
36317
|
+
unlock: "lock.open.fill",
|
|
36318
|
+
arm: "shield.fill",
|
|
36319
|
+
"arm-home": "house.fill",
|
|
36320
|
+
"arm-away": "figure.walk",
|
|
36321
|
+
"arm-night": "moon.fill",
|
|
36322
|
+
disarm: "shield.slash.fill",
|
|
36323
|
+
light: "lightbulb.fill",
|
|
36324
|
+
alert: "exclamationmark.triangle.fill",
|
|
36325
|
+
camera: "video.fill"
|
|
36326
|
+
};
|
|
36327
|
+
/** The `sfsymbols:` prefix Zentik's clients strip before resolving the symbol. */
|
|
36328
|
+
var SFSYMBOLS_PREFIX = "sfsymbols:";
|
|
36329
|
+
/**
|
|
36330
|
+
* The Zentik value for one icon token, or `undefined` when there is none.
|
|
36331
|
+
*
|
|
36332
|
+
* Typed on `string`, not on `NotificationActionIcon`, because that is what this
|
|
36333
|
+
* boundary actually receives: an addon deployed against a hub whose vocabulary
|
|
36334
|
+
* moved on hands over a token this build has never heard of. Omitting it is the
|
|
36335
|
+
* honest answer — forwarding it raw would put a string iOS ignores on the wire
|
|
36336
|
+
* and produce exactly the blank button this map exists to fix.
|
|
36337
|
+
*
|
|
36338
|
+
* `Object.hasOwn` and not a truthiness check: an inherited `toString` must not
|
|
36339
|
+
* read as a mapping.
|
|
36340
|
+
*/
|
|
36341
|
+
function zentikActionIcon(icon) {
|
|
36342
|
+
const table = ZENTIK_ACTION_ICONS;
|
|
36343
|
+
if (!Object.hasOwn(ZENTIK_ACTION_ICONS, icon)) return void 0;
|
|
36344
|
+
const symbol = table[icon];
|
|
36345
|
+
return symbol === void 0 ? void 0 : `${SFSYMBOLS_PREFIX}${symbol}`;
|
|
36346
|
+
}
|
|
36347
|
+
/**
|
|
33619
36348
|
* How a `BACKGROUND_CALL` names its request: `METHOD::url`.
|
|
33620
36349
|
*
|
|
33621
36350
|
* The whole reason the type exists here: a "silence this for 30 minutes"
|
|
@@ -33627,9 +36356,10 @@ var BACKGROUND_CALL_PREFIX = "POST::";
|
|
|
33627
36356
|
function actionsFor(prepared) {
|
|
33628
36357
|
const out = [];
|
|
33629
36358
|
for (const action of prepared.actions.slice(0, MAX_ACTIONS)) {
|
|
36359
|
+
const symbol = action.icon === void 0 ? void 0 : zentikActionIcon(action.icon);
|
|
33630
36360
|
const decoration = {
|
|
33631
36361
|
...action.destructive !== void 0 ? { destructive: action.destructive } : {},
|
|
33632
|
-
...
|
|
36362
|
+
...symbol !== void 0 ? { icon: symbol } : {}
|
|
33633
36363
|
};
|
|
33634
36364
|
if (action.url === void 0 || action.url.length === 0) {
|
|
33635
36365
|
out.push({
|
|
@@ -33821,12 +36551,14 @@ var zentikAdapter = {
|
|
|
33821
36551
|
format: ["text"],
|
|
33822
36552
|
clickUrl: true,
|
|
33823
36553
|
/**
|
|
33824
|
-
*
|
|
33825
|
-
*
|
|
33826
|
-
*
|
|
33827
|
-
*
|
|
33828
|
-
*
|
|
33829
|
-
*
|
|
36554
|
+
* A RENDERING claim, which it was not before.
|
|
36555
|
+
*
|
|
36556
|
+
* This used to say the intent name "travels verbatim … a name the app does
|
|
36557
|
+
* not know renders as no icon rather than as a wrong one" — true, and it
|
|
36558
|
+
* described a feature that never once drew an icon, because NO intent name
|
|
36559
|
+
* is an SF Symbol. The engine handed the icon over and the adapter put it
|
|
36560
|
+
* on the wire untranslated. `ZENTIK_ACTION_ICONS` is what makes this claim
|
|
36561
|
+
* honest; keep it exhaustive or this reverts to a pass-through that lies.
|
|
33830
36562
|
*/
|
|
33831
36563
|
actionIcons: true,
|
|
33832
36564
|
sound: true,
|