@camstack/addon-matter-broker 0.2.115 → 0.2.117
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 +1542 -536
- package/dist/addon.mjs +1542 -536
- package/package.json +2 -4
package/dist/addon.js
CHANGED
|
@@ -13,7 +13,7 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
13
13
|
let node_net = require("node:net");
|
|
14
14
|
let node_dgram = require("node:dgram");
|
|
15
15
|
node_dgram = require_esm.__toESM(node_dgram, 1);
|
|
16
|
-
//#region ../types/dist/event-category-
|
|
16
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
17
17
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
18
18
|
EventCategory["SystemBoot"] = "system.boot";
|
|
19
19
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -546,6 +546,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
546
546
|
*/
|
|
547
547
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
548
548
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
549
|
+
/**
|
|
550
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
551
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
552
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
553
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
554
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
555
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
556
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
557
|
+
*/
|
|
549
558
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
550
559
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
551
560
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5384,7 +5393,7 @@ var ZodIssueCode = {
|
|
|
5384
5393
|
var ZodFirstPartyTypeKind;
|
|
5385
5394
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5386
5395
|
//#endregion
|
|
5387
|
-
//#region ../types/dist/sleep-
|
|
5396
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5388
5397
|
/**
|
|
5389
5398
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5390
5399
|
* window to float samples (D455).
|
|
@@ -7427,23 +7436,74 @@ function errMsg(err) {
|
|
|
7427
7436
|
return String(err);
|
|
7428
7437
|
}
|
|
7429
7438
|
//#endregion
|
|
7430
|
-
//#region ../types/dist/composition-
|
|
7439
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
7431
7440
|
/**
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7441
|
+
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7442
|
+
*
|
|
7443
|
+
* ## Why a download, on every node, including the container
|
|
7444
|
+
*
|
|
7445
|
+
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
7446
|
+
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
7447
|
+
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
7448
|
+
* framework bump, not an image rebuild.
|
|
7449
|
+
*
|
|
7450
|
+
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
7451
|
+
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
7452
|
+
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
7453
|
+
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
7454
|
+
* distribute them: the user's own node fetches the archive from the project
|
|
7455
|
+
* that publishes it, so we convey no GPL work and inherit none of the
|
|
7456
|
+
* obligations that come with conveying one. That is the whole reason the image
|
|
7457
|
+
* no longer installs ffmpeg at all — not a technical preference.
|
|
7458
|
+
*
|
|
7459
|
+
* ## Why jellyfin-ffmpeg
|
|
7434
7460
|
*
|
|
7435
|
-
*
|
|
7436
|
-
*
|
|
7437
|
-
*
|
|
7438
|
-
*
|
|
7439
|
-
*
|
|
7440
|
-
* fa suonare il campanello ma non registra" — è esattamente D62. Quindi si
|
|
7441
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7461
|
+
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
7462
|
+
* from one release, with the widest hardware surface of anything maintained:
|
|
7463
|
+
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
7464
|
+
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
7465
|
+
* so the binary is not linked against a driver stack it may not find.
|
|
7442
7466
|
*
|
|
7443
|
-
*
|
|
7444
|
-
*
|
|
7445
|
-
*
|
|
7446
|
-
*
|
|
7467
|
+
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
7468
|
+
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
7469
|
+
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
7470
|
+
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
7471
|
+
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
7472
|
+
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
7473
|
+
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
7474
|
+
*
|
|
7475
|
+
* ## Why each artifact carries a checksum and a claim
|
|
7476
|
+
*
|
|
7477
|
+
* The download is now the only source, so `sha256` is verified before anything
|
|
7478
|
+
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
7479
|
+
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
7480
|
+
* build is supposed to be able to do: a binary that probes short of its own
|
|
7481
|
+
* claim is a source that changed under us, which is precisely what went
|
|
7482
|
+
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
7483
|
+
* (D536).
|
|
7484
|
+
*/
|
|
7485
|
+
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
7486
|
+
var FFMPEG_RELEASE = "8.1.2-5";
|
|
7487
|
+
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
7488
|
+
function portable(target) {
|
|
7489
|
+
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
7490
|
+
}
|
|
7491
|
+
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7492
|
+
/**
|
|
7493
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7494
|
+
* pure evaluator of its EDGE.
|
|
7495
|
+
*
|
|
7496
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7497
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7498
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7499
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7500
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7501
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7502
|
+
*
|
|
7503
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7504
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7505
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7506
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7447
7507
|
*/
|
|
7448
7508
|
/**
|
|
7449
7509
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -8901,6 +8961,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
8901
8961
|
/** Max rows returned, newest-first. */
|
|
8902
8962
|
limit: number().int().min(1).max(1e3).optional()
|
|
8903
8963
|
});
|
|
8964
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
8965
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
8966
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
8967
|
+
var TrackRelationSchema = object({
|
|
8968
|
+
id: string$2(),
|
|
8969
|
+
deviceId: number().int(),
|
|
8970
|
+
leftTrackId: string$2(),
|
|
8971
|
+
rightTrackId: string$2(),
|
|
8972
|
+
leftSide: TrackSideSchema.nullable(),
|
|
8973
|
+
rightSide: TrackSideSchema.nullable(),
|
|
8974
|
+
relation: TrackRelationKindSchema,
|
|
8975
|
+
presence: literal("continuous").nullable(),
|
|
8976
|
+
leftStartedAt: number().int().nullable(),
|
|
8977
|
+
rightStartedAt: number().int().nullable(),
|
|
8978
|
+
createdAt: number().int(),
|
|
8979
|
+
updatedAt: number().int(),
|
|
8980
|
+
author: string$2().nullable()
|
|
8981
|
+
});
|
|
8982
|
+
var TrackPuritySchema = object({
|
|
8983
|
+
id: string$2(),
|
|
8984
|
+
deviceId: number().int(),
|
|
8985
|
+
sourceTrackId: string$2(),
|
|
8986
|
+
purity: TrackPurityValueSchema,
|
|
8987
|
+
switchAtMs: number().int().nullable(),
|
|
8988
|
+
startedAt: number().int().nullable(),
|
|
8989
|
+
createdAt: number().int(),
|
|
8990
|
+
updatedAt: number().int(),
|
|
8991
|
+
author: string$2().nullable()
|
|
8992
|
+
});
|
|
8993
|
+
var SetTrackRelationInputSchema = object({
|
|
8994
|
+
deviceId: number().int(),
|
|
8995
|
+
trackId: string$2().min(1),
|
|
8996
|
+
otherTrackId: string$2().min(1),
|
|
8997
|
+
relation: TrackRelationKindSchema,
|
|
8998
|
+
presence: literal("continuous").optional(),
|
|
8999
|
+
trackSide: TrackSideSchema.optional(),
|
|
9000
|
+
otherSide: TrackSideSchema.optional()
|
|
9001
|
+
});
|
|
9002
|
+
var ClearTrackRelationInputSchema = object({
|
|
9003
|
+
deviceId: number().int(),
|
|
9004
|
+
trackId: string$2().min(1),
|
|
9005
|
+
otherTrackId: string$2().min(1)
|
|
9006
|
+
});
|
|
9007
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9008
|
+
var SetTrackPurityInputSchema = object({
|
|
9009
|
+
deviceId: number().int(),
|
|
9010
|
+
trackId: string$2().min(1),
|
|
9011
|
+
purity: _enum([
|
|
9012
|
+
"pure",
|
|
9013
|
+
"mixed",
|
|
9014
|
+
"not-a-subject"
|
|
9015
|
+
]),
|
|
9016
|
+
switchAtMs: number().int().optional()
|
|
9017
|
+
});
|
|
9018
|
+
/** `null` when `pure` cleared the row. */
|
|
9019
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9020
|
+
var ListTrackRelationsInputSchema = object({
|
|
9021
|
+
deviceId: number().int(),
|
|
9022
|
+
trackId: string$2().optional(),
|
|
9023
|
+
since: number().int().optional(),
|
|
9024
|
+
until: number().int().optional(),
|
|
9025
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9026
|
+
});
|
|
9027
|
+
var ListTrackRelationsResultSchema = object({
|
|
9028
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9029
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9030
|
+
truncated: boolean()
|
|
9031
|
+
});
|
|
9032
|
+
_enum([
|
|
9033
|
+
"unknown-track",
|
|
9034
|
+
"cross-device",
|
|
9035
|
+
"self-relation",
|
|
9036
|
+
"contradiction",
|
|
9037
|
+
"switch-outside-track",
|
|
9038
|
+
"switch-needs-mixed"
|
|
9039
|
+
]);
|
|
8904
9040
|
/**
|
|
8905
9041
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8906
9042
|
* recordings and events management surfaces.
|
|
@@ -8976,22 +9112,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
8976
9112
|
"package"
|
|
8977
9113
|
];
|
|
8978
9114
|
/**
|
|
8979
|
-
*
|
|
8980
|
-
*
|
|
9115
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9116
|
+
* an operator can select.
|
|
8981
9117
|
*
|
|
8982
|
-
*
|
|
9118
|
+
* They are the three offered by the `object-detection` step
|
|
8983
9119
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
8984
|
-
* `enabledMacroClasses`). `package`
|
|
8985
|
-
* `MACRO_LABELS` —
|
|
8986
|
-
* `package-detection`,
|
|
8987
|
-
*
|
|
9120
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9121
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9122
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9123
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
8988
9124
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
8989
9125
|
*
|
|
8990
|
-
*
|
|
8991
|
-
*
|
|
8992
|
-
* (`types/detection.ts`);
|
|
8993
|
-
* (`RecordingTriggers.objectClasses`)
|
|
8994
|
-
*
|
|
9126
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9127
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9128
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9129
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9130
|
+
* invisible.
|
|
8995
9131
|
*/
|
|
8996
9132
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
8997
9133
|
"person",
|
|
@@ -9056,17 +9192,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9056
9192
|
"on-device-decision"
|
|
9057
9193
|
]);
|
|
9058
9194
|
/**
|
|
9059
|
-
*
|
|
9060
|
-
*
|
|
9195
|
+
* The macro classes that can open a recording window — the same
|
|
9196
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9061
9197
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9062
9198
|
*/
|
|
9063
9199
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9064
9200
|
/**
|
|
9065
|
-
* True
|
|
9201
|
+
* True when `values` does not repeat an element.
|
|
9066
9202
|
*
|
|
9067
|
-
*
|
|
9068
|
-
*
|
|
9069
|
-
*
|
|
9203
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9204
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9205
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9070
9206
|
*/
|
|
9071
9207
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9072
9208
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9074,34 +9210,34 @@ var RecordingTriggersSchema = object({
|
|
|
9074
9210
|
motion: boolean().optional(),
|
|
9075
9211
|
audioThresholdDbfs: number().optional(),
|
|
9076
9212
|
/**
|
|
9077
|
-
*
|
|
9078
|
-
*
|
|
9079
|
-
*
|
|
9080
|
-
*
|
|
9213
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9214
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9215
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9216
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9081
9217
|
*
|
|
9082
|
-
*
|
|
9083
|
-
*
|
|
9084
|
-
* `minConfidence<Macro>`
|
|
9085
|
-
* (`source: 'onboard'`)
|
|
9086
|
-
*
|
|
9218
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9219
|
+
* those that went through `enabledMacroClasses`, the
|
|
9220
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9221
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9222
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9087
9223
|
*/
|
|
9088
9224
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9089
9225
|
/**
|
|
9090
|
-
*
|
|
9091
|
-
*
|
|
9226
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9227
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9092
9228
|
* `objectClasses`.
|
|
9093
9229
|
*
|
|
9094
|
-
*
|
|
9095
|
-
*
|
|
9096
|
-
*
|
|
9097
|
-
*
|
|
9098
|
-
* device (D12) —
|
|
9230
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9231
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9232
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9233
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9234
|
+
* device (D12) — never a global list of caps.
|
|
9099
9235
|
*
|
|
9100
|
-
*
|
|
9101
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9102
|
-
*
|
|
9103
|
-
*
|
|
9104
|
-
*
|
|
9236
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9237
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9238
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9239
|
+
* the level: a contact found already open at runner restart does not
|
|
9240
|
+
* record.
|
|
9105
9241
|
*/
|
|
9106
9242
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9107
9243
|
});
|
|
@@ -10178,7 +10314,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10178
10314
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10179
10315
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10180
10316
|
* over the values is the exact defect
|
|
10181
|
-
* `docs/design/plans/2026-08-26-
|
|
10317
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10182
10318
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10183
10319
|
*
|
|
10184
10320
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -11454,6 +11590,68 @@ method(object({
|
|
|
11454
11590
|
password: string$2()
|
|
11455
11591
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string$2() }), string$2()), method(record(string$2(), string$2()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string$2() }), AuthResultSchema.nullable());
|
|
11456
11592
|
/**
|
|
11593
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11594
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11595
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11596
|
+
* generous because a timeout fails the whole backup run.
|
|
11597
|
+
*/
|
|
11598
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11599
|
+
/**
|
|
11600
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11601
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11602
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11603
|
+
* owner's host.
|
|
11604
|
+
*/
|
|
11605
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string$2() })) });
|
|
11606
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11607
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11608
|
+
name: string$2(),
|
|
11609
|
+
rows: number().int().nonnegative()
|
|
11610
|
+
});
|
|
11611
|
+
/**
|
|
11612
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11613
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11614
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11615
|
+
* archiving something it cannot place.
|
|
11616
|
+
*/
|
|
11617
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11618
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11619
|
+
livePath: string$2(),
|
|
11620
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11621
|
+
snapshotPath: string$2(),
|
|
11622
|
+
sizeBytes: number().int().nonnegative(),
|
|
11623
|
+
pageCount: number().int().nonnegative(),
|
|
11624
|
+
pageSize: number().int().positive(),
|
|
11625
|
+
/**
|
|
11626
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11627
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11628
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11629
|
+
*/
|
|
11630
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11631
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11632
|
+
copyMs: number().nonnegative(),
|
|
11633
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11634
|
+
verifyMs: number().nonnegative(),
|
|
11635
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11636
|
+
takenAt: number()
|
|
11637
|
+
});
|
|
11638
|
+
/**
|
|
11639
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11640
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11641
|
+
* data dir), because an archive outlives the host that made it.
|
|
11642
|
+
*/
|
|
11643
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11644
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11645
|
+
livePath: string$2(),
|
|
11646
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11647
|
+
snapshotPath: string$2()
|
|
11648
|
+
});
|
|
11649
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11650
|
+
kind: "mutation",
|
|
11651
|
+
auth: "admin",
|
|
11652
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11653
|
+
});
|
|
11654
|
+
/**
|
|
11457
11655
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11458
11656
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11459
11657
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11564,7 +11762,12 @@ var ArchiveManifestSchema = object({
|
|
|
11564
11762
|
locations: array(string$2()),
|
|
11565
11763
|
entries: array(ArchiveEntrySchema),
|
|
11566
11764
|
totalBytes: number(),
|
|
11567
|
-
totalFiles: number()
|
|
11765
|
+
totalFiles: number(),
|
|
11766
|
+
/**
|
|
11767
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11768
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11769
|
+
*/
|
|
11770
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11568
11771
|
});
|
|
11569
11772
|
var LocationStatSchema = object({
|
|
11570
11773
|
name: string$2(),
|
|
@@ -11822,7 +12025,7 @@ var BrokerStatusEnum = _enum([
|
|
|
11822
12025
|
"unreachable",
|
|
11823
12026
|
"error"
|
|
11824
12027
|
]);
|
|
11825
|
-
var BrokerInfoSchema
|
|
12028
|
+
var BrokerInfoSchema = object({
|
|
11826
12029
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
11827
12030
|
id: string$2(),
|
|
11828
12031
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -11965,8 +12168,8 @@ var brokerCapability = {
|
|
|
11965
12168
|
kind: "poll"
|
|
11966
12169
|
},
|
|
11967
12170
|
methods: {
|
|
11968
|
-
list: method(ListInputSchema, array(BrokerInfoSchema
|
|
11969
|
-
get: method(GetInputSchema, BrokerInfoSchema
|
|
12171
|
+
list: method(ListInputSchema, array(BrokerInfoSchema)),
|
|
12172
|
+
get: method(GetInputSchema, BrokerInfoSchema.nullable()),
|
|
11970
12173
|
/** Enumerate which addon provides which broker kind(s) for the
|
|
11971
12174
|
* unified create picker. The auto-mount fans this array across
|
|
11972
12175
|
* every registered `broker` provider (array-output method), so the
|
|
@@ -13139,6 +13342,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13139
13342
|
reason: string$2().optional(),
|
|
13140
13343
|
fields: array(CompositionFieldStateSchema)
|
|
13141
13344
|
});
|
|
13345
|
+
var ComposerBlockSchema = object({
|
|
13346
|
+
id: string$2().min(1),
|
|
13347
|
+
name: string$2().min(1).max(120),
|
|
13348
|
+
enabled: boolean(),
|
|
13349
|
+
updatedAt: number(),
|
|
13350
|
+
composition: CompositionSchema
|
|
13351
|
+
});
|
|
13352
|
+
/**
|
|
13353
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13354
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13355
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13356
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13357
|
+
*/
|
|
13358
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13359
|
+
id: string$2().min(1),
|
|
13360
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13361
|
+
name: string$2().nullable(),
|
|
13362
|
+
/** The parse error, in the operator's words. */
|
|
13363
|
+
error: string$2()
|
|
13364
|
+
});
|
|
13365
|
+
method(object({
|
|
13366
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13367
|
+
integrationId: string$2().nullable(),
|
|
13368
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13369
|
+
storeLoaded: boolean(),
|
|
13370
|
+
blocks: array(ComposerBlockSchema),
|
|
13371
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13372
|
+
restartBlockIds: array(string$2()),
|
|
13373
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13374
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13375
|
+
}), object({
|
|
13376
|
+
blocks: array(object({
|
|
13377
|
+
blockId: string$2(),
|
|
13378
|
+
status: CompositionRunStatusSchema,
|
|
13379
|
+
reason: string$2().optional()
|
|
13380
|
+
})),
|
|
13381
|
+
/**
|
|
13382
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13383
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13384
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13385
|
+
*/
|
|
13386
|
+
acted: boolean()
|
|
13387
|
+
}), {
|
|
13388
|
+
kind: "mutation",
|
|
13389
|
+
auth: "admin"
|
|
13390
|
+
}), method(object({ blockIds: array(string$2()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13391
|
+
var NUMBER = {
|
|
13392
|
+
kind: "fixed",
|
|
13393
|
+
result: ["number"]
|
|
13394
|
+
};
|
|
13395
|
+
var BOOLEAN = {
|
|
13396
|
+
kind: "fixed",
|
|
13397
|
+
result: ["boolean"]
|
|
13398
|
+
};
|
|
13399
|
+
Object.freeze({
|
|
13400
|
+
min: NUMBER,
|
|
13401
|
+
max: NUMBER,
|
|
13402
|
+
abs: NUMBER,
|
|
13403
|
+
floor: NUMBER,
|
|
13404
|
+
ceil: NUMBER,
|
|
13405
|
+
sqrt: NUMBER,
|
|
13406
|
+
round: NUMBER,
|
|
13407
|
+
pow: NUMBER,
|
|
13408
|
+
clamp: NUMBER,
|
|
13409
|
+
avg: NUMBER,
|
|
13410
|
+
sum: NUMBER,
|
|
13411
|
+
age: NUMBER,
|
|
13412
|
+
convert: NUMBER,
|
|
13413
|
+
coalesce: { kind: "coalesce" },
|
|
13414
|
+
any: BOOLEAN,
|
|
13415
|
+
all: BOOLEAN,
|
|
13416
|
+
within: BOOLEAN,
|
|
13417
|
+
latest: {
|
|
13418
|
+
kind: "fixed",
|
|
13419
|
+
result: ["number", "null"]
|
|
13420
|
+
},
|
|
13421
|
+
number: {
|
|
13422
|
+
kind: "fixed",
|
|
13423
|
+
result: ["number", "null"]
|
|
13424
|
+
},
|
|
13425
|
+
rose: {
|
|
13426
|
+
kind: "fixed",
|
|
13427
|
+
result: ["number", "null"]
|
|
13428
|
+
},
|
|
13429
|
+
count: NUMBER
|
|
13430
|
+
});
|
|
13431
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13432
|
+
/**
|
|
13433
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13434
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13435
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13436
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13437
|
+
* offer a feature the save would refuse for the same reason.
|
|
13438
|
+
*/
|
|
13439
|
+
var ComposableFieldSchema = object({
|
|
13440
|
+
path: string$2(),
|
|
13441
|
+
kind: CompositionFieldKindSchema,
|
|
13442
|
+
nullable: boolean(),
|
|
13443
|
+
required: boolean(),
|
|
13444
|
+
enumValues: array(string$2()).optional()
|
|
13445
|
+
});
|
|
13446
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13447
|
+
cap: string$2(),
|
|
13448
|
+
fields: array(ComposableFieldSchema),
|
|
13449
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13450
|
+
itemArray: object({
|
|
13451
|
+
path: string$2(),
|
|
13452
|
+
keyField: string$2()
|
|
13453
|
+
}).optional()
|
|
13454
|
+
})) });
|
|
13142
13455
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13143
13456
|
* agent is the reason placement is not fixed to the hub. */
|
|
13144
13457
|
var CoreBlockPlacementSchema = union([literal("hub"), string$2().min(1)]);
|
|
@@ -13303,7 +13616,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13303
13616
|
}), method(object({ blockId: string$2() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13304
13617
|
addonId: string$2().min(1),
|
|
13305
13618
|
stableId: string$2().min(1)
|
|
13306
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13619
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13307
13620
|
composition: CompositionSchema,
|
|
13308
13621
|
blockId: string$2().optional()
|
|
13309
13622
|
}), CompositionValidationSchema, {
|
|
@@ -13311,52 +13624,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13311
13624
|
auth: "admin",
|
|
13312
13625
|
access: "view"
|
|
13313
13626
|
});
|
|
13314
|
-
var ComposerBlockSchema = object({
|
|
13315
|
-
id: string$2().min(1),
|
|
13316
|
-
name: string$2().min(1).max(120),
|
|
13317
|
-
enabled: boolean(),
|
|
13318
|
-
updatedAt: number(),
|
|
13319
|
-
composition: CompositionSchema
|
|
13320
|
-
});
|
|
13321
|
-
/**
|
|
13322
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13323
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13324
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13325
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13326
|
-
*/
|
|
13327
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13328
|
-
id: string$2().min(1),
|
|
13329
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13330
|
-
name: string$2().nullable(),
|
|
13331
|
-
/** The parse error, in the operator's words. */
|
|
13332
|
-
error: string$2()
|
|
13333
|
-
});
|
|
13334
|
-
method(object({
|
|
13335
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13336
|
-
integrationId: string$2().nullable(),
|
|
13337
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13338
|
-
storeLoaded: boolean(),
|
|
13339
|
-
blocks: array(ComposerBlockSchema),
|
|
13340
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13341
|
-
restartBlockIds: array(string$2()),
|
|
13342
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13343
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13344
|
-
}), object({
|
|
13345
|
-
blocks: array(object({
|
|
13346
|
-
blockId: string$2(),
|
|
13347
|
-
status: CompositionRunStatusSchema,
|
|
13348
|
-
reason: string$2().optional()
|
|
13349
|
-
})),
|
|
13350
|
-
/**
|
|
13351
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13352
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13353
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13354
|
-
*/
|
|
13355
|
-
acted: boolean()
|
|
13356
|
-
}), {
|
|
13357
|
-
kind: "mutation",
|
|
13358
|
-
auth: "admin"
|
|
13359
|
-
}), method(object({ blockIds: array(string$2()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13360
13627
|
/**
|
|
13361
13628
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13362
13629
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -13651,7 +13918,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13651
13918
|
*
|
|
13652
13919
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13653
13920
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13654
|
-
* (`docs/design/2026-08-26-
|
|
13921
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13655
13922
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13656
13923
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13657
13924
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14531,7 +14798,17 @@ var SiteZoneSchema = object({
|
|
|
14531
14798
|
var ProviderStatusSchema = object({
|
|
14532
14799
|
connected: boolean(),
|
|
14533
14800
|
deviceCount: number(),
|
|
14534
|
-
error: string$2().optional()
|
|
14801
|
+
error: string$2().optional(),
|
|
14802
|
+
/**
|
|
14803
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14804
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14805
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14806
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14807
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14808
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14809
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14810
|
+
*/
|
|
14811
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
14535
14812
|
});
|
|
14536
14813
|
object({
|
|
14537
14814
|
externalId: string$2(),
|
|
@@ -15410,6 +15687,121 @@ method(object({
|
|
|
15410
15687
|
deviceIds: array(number()).readonly(),
|
|
15411
15688
|
caps: array(string$2()).readonly().optional()
|
|
15412
15689
|
}), record(string$2(), record(string$2(), unknown().nullable())));
|
|
15690
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
15691
|
+
DeviceType.Camera;
|
|
15692
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15693
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15694
|
+
DeviceType.Camera;
|
|
15695
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15696
|
+
state: literal("unreachable"),
|
|
15697
|
+
reason: string$2()
|
|
15698
|
+
})]);
|
|
15699
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15700
|
+
var ExtensionSourceSchema = object({
|
|
15701
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15702
|
+
source: string$2(),
|
|
15703
|
+
label: string$2(),
|
|
15704
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15705
|
+
addonId: string$2().optional(),
|
|
15706
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15707
|
+
});
|
|
15708
|
+
/**
|
|
15709
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15710
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15711
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15712
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15713
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15714
|
+
*/
|
|
15715
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15716
|
+
"ok",
|
|
15717
|
+
"missing",
|
|
15718
|
+
"foreign",
|
|
15719
|
+
"unavailable"
|
|
15720
|
+
]);
|
|
15721
|
+
var ExtensionSlotSourceSchema = object({
|
|
15722
|
+
deviceId: number().int(),
|
|
15723
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15724
|
+
name: string$2().nullable(),
|
|
15725
|
+
health: ExtensionSourceHealthSchema,
|
|
15726
|
+
detail: string$2().optional()
|
|
15727
|
+
});
|
|
15728
|
+
/**
|
|
15729
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15730
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
15731
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
15732
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
15733
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
15734
|
+
* not be read; it is not "inactive" (D315).
|
|
15735
|
+
*/
|
|
15736
|
+
var ExtensionSlotActivationSchema = object({
|
|
15737
|
+
state: _enum([
|
|
15738
|
+
"active",
|
|
15739
|
+
"inactive",
|
|
15740
|
+
"unknown"
|
|
15741
|
+
]),
|
|
15742
|
+
authority: string$2(),
|
|
15743
|
+
detail: string$2().optional()
|
|
15744
|
+
});
|
|
15745
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15746
|
+
state: literal("ok"),
|
|
15747
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15748
|
+
slotRef: string$2(),
|
|
15749
|
+
slot: ExtensionSlotIdSchema,
|
|
15750
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
15751
|
+
authority: string$2(),
|
|
15752
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15753
|
+
value: ExtensionSlotValueSchema,
|
|
15754
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15755
|
+
/**
|
|
15756
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15757
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15758
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15759
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15760
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15761
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15762
|
+
* older than D655.
|
|
15763
|
+
*/
|
|
15764
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15765
|
+
}), object({
|
|
15766
|
+
state: literal("unreachable"),
|
|
15767
|
+
addonId: string$2(),
|
|
15768
|
+
reason: string$2()
|
|
15769
|
+
})]);
|
|
15770
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15771
|
+
deviceId: number().int(),
|
|
15772
|
+
name: string$2(),
|
|
15773
|
+
type: string$2(),
|
|
15774
|
+
location: string$2().nullable(),
|
|
15775
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15776
|
+
parentName: string$2().nullable(),
|
|
15777
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15778
|
+
suggested: boolean(),
|
|
15779
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15780
|
+
reason: string$2().nullable()
|
|
15781
|
+
})) });
|
|
15782
|
+
/**
|
|
15783
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15784
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15785
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15786
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15787
|
+
*/
|
|
15788
|
+
var ExtensionSetResultSchema = object({
|
|
15789
|
+
applied: literal(true),
|
|
15790
|
+
reload: _enum([
|
|
15791
|
+
"none",
|
|
15792
|
+
"host",
|
|
15793
|
+
"parent"
|
|
15794
|
+
])
|
|
15795
|
+
});
|
|
15796
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15797
|
+
deviceId: number().int(),
|
|
15798
|
+
slotRef: string$2().min(1)
|
|
15799
|
+
});
|
|
15800
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15801
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15802
|
+
kind: "mutation",
|
|
15803
|
+
auth: "admin"
|
|
15804
|
+
});
|
|
15413
15805
|
/**
|
|
15414
15806
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15415
15807
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
@@ -15633,7 +16025,7 @@ method(object({
|
|
|
15633
16025
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
15634
16026
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
15635
16027
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
15636
|
-
* ricontrolliamo tutti questi punti"
|
|
16028
|
+
* ricontrolliamo tutti questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]. Reading them meant grepping Loki and
|
|
15637
16029
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
15638
16030
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
15639
16031
|
* be READ.
|
|
@@ -17009,7 +17401,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
17009
17401
|
"unreachable",
|
|
17010
17402
|
"tls-error"
|
|
17011
17403
|
]);
|
|
17012
|
-
var BrokerInfoSchema = object({
|
|
17404
|
+
var BrokerInfoSchema$1 = object({
|
|
17013
17405
|
id: string$2(),
|
|
17014
17406
|
name: string$2(),
|
|
17015
17407
|
url: string$2(),
|
|
@@ -17072,7 +17464,7 @@ var StatusSchema = object({
|
|
|
17072
17464
|
brokerCount: number(),
|
|
17073
17465
|
embeddedRunning: boolean()
|
|
17074
17466
|
});
|
|
17075
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17467
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17076
17468
|
kind: "mutation",
|
|
17077
17469
|
auth: "admin"
|
|
17078
17470
|
}), method(IdInputSchema, _void(), {
|
|
@@ -18420,17 +18812,25 @@ var NcScheduleSchema = object({
|
|
|
18420
18812
|
*/
|
|
18421
18813
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18422
18814
|
/**
|
|
18815
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
18816
|
+
* every section; `section` = one notification per section with something to
|
|
18817
|
+
* say (an unavailable section included), each titled by its section.
|
|
18818
|
+
*/
|
|
18819
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
18820
|
+
/**
|
|
18423
18821
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18424
18822
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18425
18823
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18426
|
-
* available, ...), after its own filters
|
|
18824
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
18825
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18427
18826
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18428
18827
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18429
18828
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18430
18829
|
*/
|
|
18431
18830
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18432
18831
|
mode: literal("summary"),
|
|
18433
|
-
schedule: NcScheduleSchema
|
|
18832
|
+
schedule: NcScheduleSchema,
|
|
18833
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18434
18834
|
})]);
|
|
18435
18835
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18436
18836
|
var NcPlateMatcherSchema = object({
|
|
@@ -18570,8 +18970,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
18570
18970
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18571
18971
|
var NcZoneConditionSchema = object({
|
|
18572
18972
|
ids: array(string$2().min(1)).min(1),
|
|
18573
|
-
/**
|
|
18574
|
-
|
|
18973
|
+
/**
|
|
18974
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
18975
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
18976
|
+
* removed from the editors because on an immediate rule it asked one
|
|
18977
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
18978
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
18979
|
+
*/
|
|
18980
|
+
match: _enum(["any", "all"]).optional()
|
|
18575
18981
|
});
|
|
18576
18982
|
/**
|
|
18577
18983
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19075,10 +19481,12 @@ var NcMediaPolicySchema = object({
|
|
|
19075
19481
|
/**
|
|
19076
19482
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19077
19483
|
* notification suppresses.
|
|
19078
|
-
* - `
|
|
19079
|
-
*
|
|
19080
|
-
*
|
|
19081
|
-
*
|
|
19484
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19485
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19486
|
+
* still waits.
|
|
19487
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19488
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19489
|
+
* longer what an unset rule means.
|
|
19082
19490
|
*
|
|
19083
19491
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19084
19492
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19093,8 +19501,11 @@ var NcThrottleSchema = object({
|
|
|
19093
19501
|
/**
|
|
19094
19502
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19095
19503
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19096
|
-
* rule authored before this field simply carries none
|
|
19097
|
-
*
|
|
19504
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19505
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19506
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19507
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19508
|
+
* engine, and D36's dated note.
|
|
19098
19509
|
*/
|
|
19099
19510
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19100
19511
|
});
|
|
@@ -19267,78 +19678,16 @@ var NcRuleInputSchema = object({
|
|
|
19267
19678
|
*/
|
|
19268
19679
|
confirm: NcConfirmSchema.optional(),
|
|
19269
19680
|
/**
|
|
19270
|
-
*
|
|
19271
|
-
*
|
|
19272
|
-
*
|
|
19273
|
-
*
|
|
19274
|
-
*
|
|
19275
|
-
*
|
|
19276
|
-
*
|
|
19277
|
-
*
|
|
19278
|
-
*
|
|
19279
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
19280
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
19281
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
19282
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
19283
|
-
*
|
|
19284
|
-
* | value | what happens |
|
|
19285
|
-
* | --- | --- |
|
|
19286
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
19287
|
-
* | 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) |
|
|
19288
|
-
*
|
|
19289
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19290
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
19291
|
-
* rule authored before this field meant.
|
|
19292
|
-
*
|
|
19293
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
19294
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
19295
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
19296
|
-
* be satisfied, because a closed track carries no crossing.
|
|
19297
|
-
*/
|
|
19298
|
-
waitForEnhancement: boolean().optional(),
|
|
19299
|
-
/**
|
|
19300
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
19301
|
-
*
|
|
19302
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
19303
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
19304
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
19305
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
19306
|
-
* notification with an updated one naming everybody. The push carries the
|
|
19307
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
19308
|
-
*
|
|
19309
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
19310
|
-
*
|
|
19311
|
-
* ### Why an idle cutoff and not a window
|
|
19312
|
-
*
|
|
19313
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19314
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19315
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19316
|
-
* 30 s is a widely shipped value for the same decision.
|
|
19317
|
-
*
|
|
19318
|
-
* ### What it replaces
|
|
19319
|
-
*
|
|
19320
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
19321
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
19322
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
19323
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
19324
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
19325
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
19326
|
-
* throttled by the window its own first member spent.
|
|
19327
|
-
*
|
|
19328
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
19329
|
-
*
|
|
19330
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
19331
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
19332
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
19333
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
19334
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
19335
|
-
* path. Neither combination fires twice for one subject.
|
|
19336
|
-
*
|
|
19337
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19338
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
19339
|
-
* field existed.
|
|
19681
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
19682
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
19683
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
19684
|
+
* the rule matched, with one mosaic tile per subject.
|
|
19685
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
19686
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
19687
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
19688
|
+
* path does not run Zod defaults.
|
|
19340
19689
|
*/
|
|
19341
|
-
|
|
19690
|
+
groupingSec: number().int().min(5).max(60).optional()
|
|
19342
19691
|
});
|
|
19343
19692
|
/**
|
|
19344
19693
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -19386,9 +19735,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
19386
19735
|
"targetUsers",
|
|
19387
19736
|
"snoozeOptions",
|
|
19388
19737
|
"snoozeAllowGlobal",
|
|
19389
|
-
"waitForEnhancement",
|
|
19390
19738
|
"actions",
|
|
19391
19739
|
"confirm",
|
|
19740
|
+
"groupingSec",
|
|
19741
|
+
"waitForEnhancement",
|
|
19392
19742
|
"groupIdleSec"
|
|
19393
19743
|
]);
|
|
19394
19744
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -19410,19 +19760,47 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19410
19760
|
*/
|
|
19411
19761
|
disabledTargetIds: array(string$2()).default([])
|
|
19412
19762
|
});
|
|
19763
|
+
/**
|
|
19764
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
19765
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
19766
|
+
* job is not an open state, and the alarm stays instant.
|
|
19767
|
+
*/
|
|
19768
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
19769
|
+
"device-state",
|
|
19770
|
+
"streams",
|
|
19771
|
+
"battery",
|
|
19772
|
+
"consumables",
|
|
19773
|
+
"tanks",
|
|
19774
|
+
"detection-blind",
|
|
19775
|
+
"nodes",
|
|
19776
|
+
"addons",
|
|
19777
|
+
"updates"
|
|
19778
|
+
]);
|
|
19413
19779
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
19414
19780
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
19415
|
-
id:
|
|
19781
|
+
id: NcStateSummarySectionIdSchema,
|
|
19416
19782
|
status: _enum(["read", "unavailable"]),
|
|
19417
19783
|
items: number().int().nonnegative(),
|
|
19418
19784
|
reason: string$2().optional()
|
|
19419
19785
|
});
|
|
19420
19786
|
/**
|
|
19787
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
19788
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19789
|
+
*/
|
|
19790
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
19791
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
19792
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19793
|
+
title: string$2(),
|
|
19794
|
+
text: string$2(),
|
|
19795
|
+
count: number().int().nonnegative()
|
|
19796
|
+
});
|
|
19797
|
+
/**
|
|
19421
19798
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19422
19799
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19423
19800
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19424
19801
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19425
|
-
* (backups & exports).
|
|
19802
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
19803
|
+
* optional, so an older hub's answer still parses.
|
|
19426
19804
|
*/
|
|
19427
19805
|
var NcStateSummaryPreviewSchema = object({
|
|
19428
19806
|
empty: boolean(),
|
|
@@ -19430,7 +19808,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19430
19808
|
text: string$2(),
|
|
19431
19809
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19432
19810
|
dropped: record(string$2(), number().int().nonnegative()),
|
|
19433
|
-
excludedGroups: array(string$2())
|
|
19811
|
+
excludedGroups: array(string$2()),
|
|
19812
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
19813
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19434
19814
|
});
|
|
19435
19815
|
var NcTestResultSchema = object({
|
|
19436
19816
|
recordId: string$2(),
|
|
@@ -19845,6 +20225,29 @@ object({
|
|
|
19845
20225
|
firstAt: number(),
|
|
19846
20226
|
lastAt: number()
|
|
19847
20227
|
});
|
|
20228
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
20229
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
20230
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
20231
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
20232
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
20233
|
+
mode: AlarmArmModeSchema,
|
|
20234
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20235
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20236
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
20237
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20238
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20239
|
+
mode: AlarmArmModeSchema,
|
|
20240
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20241
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20242
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
20243
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20244
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20245
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
20246
|
+
mode: AlarmArmModeSchema,
|
|
20247
|
+
deviceId: number().int().positive(),
|
|
20248
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
20249
|
+
nonBlocking: boolean()
|
|
20250
|
+
});
|
|
19848
20251
|
/**
|
|
19849
20252
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
19850
20253
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -19853,10 +20256,10 @@ object({
|
|
|
19853
20256
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
19854
20257
|
mode: AlarmArmModeSchema,
|
|
19855
20258
|
deviceIds: array(number().int()).max(200)
|
|
19856
|
-
})).max(8).refine(
|
|
20259
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
19857
20260
|
/**
|
|
19858
|
-
* The three durations
|
|
19859
|
-
* transitions, and which openings each mode tolerates.
|
|
20261
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
20262
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
19860
20263
|
*
|
|
19861
20264
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
19862
20265
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -19866,15 +20269,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
19866
20269
|
*/
|
|
19867
20270
|
var NcAlarmSettingsSchema = object({
|
|
19868
20271
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
19869
|
-
exitDelaySec:
|
|
20272
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
19870
20273
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
19871
|
-
entryDelaySec:
|
|
20274
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
19872
20275
|
/**
|
|
19873
20276
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
19874
20277
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
19875
20278
|
* existed, and therefore what an untouched install keeps doing.
|
|
19876
20279
|
*/
|
|
19877
|
-
triggeredDurationSec:
|
|
20280
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
19878
20281
|
/**
|
|
19879
20282
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
19880
20283
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -19897,17 +20300,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
19897
20300
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
19898
20301
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
19899
20302
|
*/
|
|
19900
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
20303
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
20304
|
+
/**
|
|
20305
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
20306
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
20307
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
20308
|
+
*/
|
|
20309
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
19901
20310
|
});
|
|
19902
20311
|
/**
|
|
19903
20312
|
* Every field optional — a tab edits one control at a time.
|
|
19904
20313
|
*
|
|
19905
|
-
* `nonBlocking`
|
|
19906
|
-
* remove an inner `.default()`, so a patch that never
|
|
19907
|
-
* parse to `
|
|
19908
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
20314
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
20315
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
20316
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
20317
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
20318
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
19909
20319
|
*/
|
|
19910
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20320
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20321
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
20322
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
20323
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
20324
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
20325
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
20326
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
19911
20327
|
/**
|
|
19912
20328
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
19913
20329
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -20007,6 +20423,28 @@ var NcAlarmConfigSchema = object({
|
|
|
20007
20423
|
*/
|
|
20008
20424
|
live: NcAlarmLiveSchema.optional()
|
|
20009
20425
|
});
|
|
20426
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
20427
|
+
"open",
|
|
20428
|
+
"closed",
|
|
20429
|
+
"unknown",
|
|
20430
|
+
"not-opening"
|
|
20431
|
+
]);
|
|
20432
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
20433
|
+
var NcAlarmSensorStateSchema = object({
|
|
20434
|
+
deviceId: number().int().positive(),
|
|
20435
|
+
reading: NcAlarmSensorReadingSchema,
|
|
20436
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
20437
|
+
state: string$2().nullable(),
|
|
20438
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
20439
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
20440
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
20441
|
+
online: boolean().nullable()
|
|
20442
|
+
});
|
|
20443
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
20444
|
+
var NcAlarmSensorsSchema = object({
|
|
20445
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
20446
|
+
readAt: number().int().nonnegative()
|
|
20447
|
+
});
|
|
20010
20448
|
/**
|
|
20011
20449
|
* ONE rule's demand on ONE camera's clip ring.
|
|
20012
20450
|
*
|
|
@@ -20097,7 +20535,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
20097
20535
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
20098
20536
|
kind: "mutation",
|
|
20099
20537
|
auth: "admin"
|
|
20100
|
-
});
|
|
20538
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
20101
20539
|
/**
|
|
20102
20540
|
* Zod schemas for persisted record types.
|
|
20103
20541
|
*
|
|
@@ -20444,12 +20882,26 @@ var CameraSensorRefSchema = object({
|
|
|
20444
20882
|
function cameraSensorRefKey(ref) {
|
|
20445
20883
|
return `${ref.addonId}/${ref.stableId}`;
|
|
20446
20884
|
}
|
|
20447
|
-
/**
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20885
|
+
/**
|
|
20886
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
20887
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
20888
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
20889
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
20890
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
20891
|
+
*/
|
|
20892
|
+
var CameraSensorModeSchema = _enum([
|
|
20893
|
+
"in-addition",
|
|
20894
|
+
"confirm",
|
|
20895
|
+
"replace"
|
|
20896
|
+
]);
|
|
20897
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
20898
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
20899
|
+
/**
|
|
20900
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
20901
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
20902
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
20903
|
+
*/
|
|
20904
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
20453
20905
|
const seen = /* @__PURE__ */ new Set();
|
|
20454
20906
|
value.sensors.forEach((ref, index) => {
|
|
20455
20907
|
const key = cameraSensorRefKey(ref);
|
|
@@ -20461,39 +20913,41 @@ object({
|
|
|
20461
20913
|
seen.add(key);
|
|
20462
20914
|
});
|
|
20463
20915
|
});
|
|
20464
|
-
|
|
20916
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
20917
|
+
var AttachmentFields = {
|
|
20465
20918
|
addonId: string$2(),
|
|
20466
|
-
stableId: string$2()
|
|
20919
|
+
stableId: string$2(),
|
|
20920
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
20467
20921
|
};
|
|
20468
20922
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
20469
20923
|
object({
|
|
20470
|
-
...
|
|
20924
|
+
...AttachmentFields,
|
|
20471
20925
|
state: literal("ready"),
|
|
20472
20926
|
deviceId: number(),
|
|
20473
20927
|
name: string$2(),
|
|
20474
20928
|
caps: array(string$2()).readonly()
|
|
20475
20929
|
}),
|
|
20476
20930
|
object({
|
|
20477
|
-
...
|
|
20931
|
+
...AttachmentFields,
|
|
20478
20932
|
state: literal("offline"),
|
|
20479
20933
|
deviceId: number(),
|
|
20480
20934
|
name: string$2(),
|
|
20481
20935
|
reason: _enum(["offline", "disabled"])
|
|
20482
20936
|
}),
|
|
20483
20937
|
object({
|
|
20484
|
-
...
|
|
20938
|
+
...AttachmentFields,
|
|
20485
20939
|
state: literal("missing"),
|
|
20486
20940
|
reason: string$2()
|
|
20487
20941
|
}),
|
|
20488
20942
|
object({
|
|
20489
|
-
...
|
|
20943
|
+
...AttachmentFields,
|
|
20490
20944
|
state: literal("unsupported"),
|
|
20491
20945
|
deviceId: number(),
|
|
20492
20946
|
name: string$2(),
|
|
20493
20947
|
reason: string$2()
|
|
20494
20948
|
}),
|
|
20495
20949
|
object({
|
|
20496
|
-
...
|
|
20950
|
+
...AttachmentFields,
|
|
20497
20951
|
state: literal("unreadable"),
|
|
20498
20952
|
reason: string$2()
|
|
20499
20953
|
})
|
|
@@ -20506,17 +20960,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
20506
20960
|
* say.
|
|
20507
20961
|
*/
|
|
20508
20962
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
20963
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
20964
|
+
var CameraOwnMotionSchema = _enum([
|
|
20965
|
+
"always",
|
|
20966
|
+
"when-confirmed",
|
|
20967
|
+
"never"
|
|
20968
|
+
]);
|
|
20969
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
20970
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
20971
|
+
/**
|
|
20972
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
20973
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
20974
|
+
* so a view of the camera's own row reads this.
|
|
20975
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
20976
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
20977
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
20978
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
20979
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
20980
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
20981
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
20982
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
20983
|
+
*/
|
|
20984
|
+
var CameraRawLevelSchema = object({
|
|
20985
|
+
detected: boolean(),
|
|
20986
|
+
atMs: number()
|
|
20987
|
+
});
|
|
20509
20988
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
20510
|
-
object({
|
|
20989
|
+
object({
|
|
20990
|
+
state: literal("not-configured"),
|
|
20991
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20992
|
+
}),
|
|
20511
20993
|
object({
|
|
20512
20994
|
state: literal("unreadable"),
|
|
20513
|
-
reason: string$2()
|
|
20995
|
+
reason: string$2(),
|
|
20996
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20514
20997
|
}),
|
|
20515
20998
|
object({
|
|
20516
20999
|
state: literal("configured"),
|
|
20517
|
-
|
|
21000
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
20518
21001
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
20519
|
-
|
|
21002
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
21003
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
21004
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
21005
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
20520
21006
|
})
|
|
20521
21007
|
]);
|
|
20522
21008
|
Object.freeze({
|
|
@@ -21201,14 +21687,14 @@ var TrackSchema = object({
|
|
|
21201
21687
|
* `derive-returned-null tile=standin`,
|
|
21202
21688
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
21203
21689
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
21204
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
21690
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
21205
21691
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
21206
21692
|
*
|
|
21207
21693
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
21208
21694
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
21209
21695
|
* while its key frame missed carried no reason at all — three of the four
|
|
21210
21696
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
21211
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
21697
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
21212
21698
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
21213
21699
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
21214
21700
|
* tile ended up being.
|
|
@@ -21295,7 +21781,7 @@ var MotionEventSchema = object({
|
|
|
21295
21781
|
/**
|
|
21296
21782
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
21297
21783
|
* first entry is always `0`) of every genuine off→on transition the
|
|
21298
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
21784
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
21299
21785
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
21300
21786
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
21301
21787
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -21819,6 +22305,7 @@ var KeyEventSchema = object({
|
|
|
21819
22305
|
bestEventId: string$2(),
|
|
21820
22306
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
21821
22307
|
windowMs: number().optional(),
|
|
22308
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
21822
22309
|
...TrackFlagFields,
|
|
21823
22310
|
...TrackRetrainFields
|
|
21824
22311
|
});
|
|
@@ -22351,7 +22838,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22351
22838
|
trackIds: array(string$2()).min(1)
|
|
22352
22839
|
}), object({
|
|
22353
22840
|
deleted: number().int(),
|
|
22354
|
-
failed: array(string$2()).readonly()
|
|
22841
|
+
failed: array(string$2()).readonly(),
|
|
22842
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22355
22843
|
}), {
|
|
22356
22844
|
kind: "mutation",
|
|
22357
22845
|
auth: "admin"
|
|
@@ -22360,7 +22848,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22360
22848
|
deviceId: number(),
|
|
22361
22849
|
trackId: string$2(),
|
|
22362
22850
|
flags: TrackFlagsPatchSchema
|
|
22363
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22851
|
+
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(SetTrackRelationInputSchema, TrackRelationSchema, { kind: "mutation" }), method(ClearTrackRelationInputSchema, ClearTrackRelationResultSchema, { kind: "mutation" }), method(SetTrackPurityInputSchema, SetTrackPurityResultSchema, { kind: "mutation" }), method(ListTrackRelationsInputSchema, ListTrackRelationsResultSchema, { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22364
22852
|
kind: "query",
|
|
22365
22853
|
auth: "admin"
|
|
22366
22854
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -23746,8 +24234,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
23746
24234
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
23747
24235
|
* analyzer providers) running on decoded frames in this runner.
|
|
23748
24236
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
23749
|
-
* analytics). The provider emits ProviderMotion
|
|
23750
|
-
*
|
|
24237
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
24238
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
24239
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
24240
|
+
* `reportMotion`.
|
|
23751
24241
|
*/
|
|
23752
24242
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
23753
24243
|
/**
|
|
@@ -23924,7 +24414,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
23924
24414
|
hasGpu: boolean(),
|
|
23925
24415
|
inferenceBackend: string$2().optional(),
|
|
23926
24416
|
cpuCores: number().optional()
|
|
23927
|
-
})
|
|
24417
|
+
}),
|
|
24418
|
+
/**
|
|
24419
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
24420
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
24421
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
24422
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
24423
|
+
* writers.
|
|
24424
|
+
*/
|
|
24425
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
23928
24426
|
});
|
|
23929
24427
|
/**
|
|
23930
24428
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -24558,7 +25056,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
24558
25056
|
reachable: boolean(),
|
|
24559
25057
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
24560
25058
|
});
|
|
24561
|
-
|
|
25059
|
+
/**
|
|
25060
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25061
|
+
*
|
|
25062
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25063
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25064
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25065
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25066
|
+
* settings store so they survive hub restarts.
|
|
25067
|
+
*
|
|
25068
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25069
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25070
|
+
*/
|
|
25071
|
+
/**
|
|
25072
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25073
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25074
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25075
|
+
*/
|
|
25076
|
+
var SetCameraSensorsInputSchema = object({
|
|
25077
|
+
deviceId: number().int().nonnegative(),
|
|
25078
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25079
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25080
|
+
});
|
|
25081
|
+
/**
|
|
25082
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25083
|
+
*
|
|
25084
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25085
|
+
* node and no config to attach a burst with.
|
|
25086
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25087
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25088
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25089
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25090
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25091
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25092
|
+
* real session re-arms the budget.
|
|
25093
|
+
*/
|
|
25094
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25095
|
+
"unknown-camera",
|
|
25096
|
+
"out-of-range",
|
|
25097
|
+
"no-burst-producer",
|
|
25098
|
+
"already-looked"
|
|
25099
|
+
]);
|
|
25100
|
+
method(object({
|
|
25101
|
+
deviceId: number().int().nonnegative(),
|
|
25102
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25103
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25104
|
+
afterMs: number().finite(),
|
|
25105
|
+
/** Why, for the log. */
|
|
25106
|
+
reason: string$2()
|
|
25107
|
+
}), object({
|
|
25108
|
+
scheduled: boolean(),
|
|
25109
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25110
|
+
dueInMs: number().optional(),
|
|
25111
|
+
/** When not `scheduled`: why. */
|
|
25112
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25113
|
+
}), {
|
|
25114
|
+
kind: "mutation",
|
|
25115
|
+
auth: "admin"
|
|
25116
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
24562
25117
|
kind: "mutation",
|
|
24563
25118
|
auth: "admin"
|
|
24564
25119
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -24712,7 +25267,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
24712
25267
|
}), CameraSwitchGroupSchema, {
|
|
24713
25268
|
kind: "mutation",
|
|
24714
25269
|
auth: "admin"
|
|
24715
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25270
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25271
|
+
kind: "mutation",
|
|
25272
|
+
auth: "admin"
|
|
25273
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
24716
25274
|
kind: "mutation",
|
|
24717
25275
|
auth: "admin"
|
|
24718
25276
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -26529,7 +27087,7 @@ var ClipPlaybackSchema = object({
|
|
|
26529
27087
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
26530
27088
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
26531
27089
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
26532
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
27090
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
26533
27091
|
* D558 "Considered and not taken").
|
|
26534
27092
|
*/
|
|
26535
27093
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -26790,7 +27348,7 @@ DeviceType.Camera, method(object({
|
|
|
26790
27348
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
26791
27349
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
26792
27350
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
26793
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
27351
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
26794
27352
|
* nothing to filter out of it.
|
|
26795
27353
|
*/
|
|
26796
27354
|
provider: string$2().min(1)
|
|
@@ -26918,219 +27476,6 @@ DeviceType.Camera, method(object({
|
|
|
26918
27476
|
auth: "protected"
|
|
26919
27477
|
});
|
|
26920
27478
|
/**
|
|
26921
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
26922
|
-
* name (same pattern as `snapshot`):
|
|
26923
|
-
*
|
|
26924
|
-
* - **Native** providers: registered per-device by device-driver
|
|
26925
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
26926
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
26927
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
26928
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
26929
|
-
* ring; status tracks the last press and a pressCount since start
|
|
26930
|
-
* (diagnostic).
|
|
26931
|
-
*
|
|
26932
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
26933
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
26934
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
26935
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
26936
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
26937
|
-
* device + trigger in the per-device settings.
|
|
26938
|
-
*
|
|
26939
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
26940
|
-
* — subscribers listening at the camera level receive ring events
|
|
26941
|
-
* with `via[]` populated. No code on the parent needed.
|
|
26942
|
-
*/
|
|
26943
|
-
var DoorbellStatusSchema = object({
|
|
26944
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
26945
|
-
lastPressedAt: number().nullable(),
|
|
26946
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
26947
|
-
pressCountSinceStart: number()
|
|
26948
|
-
});
|
|
26949
|
-
var DoorbellPressEventSchema = object({
|
|
26950
|
-
deviceId: number(),
|
|
26951
|
-
timestamp: number()
|
|
26952
|
-
});
|
|
26953
|
-
/**
|
|
26954
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
26955
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
26956
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
26957
|
-
*/
|
|
26958
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
26959
|
-
/**
|
|
26960
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
26961
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
26962
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
26963
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
26964
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
26965
|
-
* reports it, it never writes it.
|
|
26966
|
-
*/
|
|
26967
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
26968
|
-
id: "doorbell-source",
|
|
26969
|
-
label: "Doorbell trigger devices",
|
|
26970
|
-
description: "Any of these becoming active rings this camera's virtual doorbell: a binary sensor when it goes active, a switch when it turns on.",
|
|
26971
|
-
shape: "association",
|
|
26972
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
26973
|
-
sourceCaps: SOURCE_CAPS,
|
|
26974
|
-
cardinality: "many",
|
|
26975
|
-
value: DoorbellSourceSlotValueSchema
|
|
26976
|
-
};
|
|
26977
|
-
var doorbellCapability = {
|
|
26978
|
-
name: "doorbell",
|
|
26979
|
-
scope: "device",
|
|
26980
|
-
deviceNative: true,
|
|
26981
|
-
mode: "singleton",
|
|
26982
|
-
kind: "wrapper",
|
|
26983
|
-
defaultActive: false,
|
|
26984
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
26985
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
26986
|
-
methods: {},
|
|
26987
|
-
events: {
|
|
26988
|
-
/**
|
|
26989
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
26990
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
26991
|
-
* release/duration — it's a pulse.
|
|
26992
|
-
*/
|
|
26993
|
-
onPressed: {
|
|
26994
|
-
data: DoorbellPressEventSchema,
|
|
26995
|
-
fromState: {
|
|
26996
|
-
field: "lastPressedAt",
|
|
26997
|
-
on: "advance"
|
|
26998
|
-
}
|
|
26999
|
-
} },
|
|
27000
|
-
status: {
|
|
27001
|
-
schema: DoorbellStatusSchema,
|
|
27002
|
-
kind: "push"
|
|
27003
|
-
},
|
|
27004
|
-
/**
|
|
27005
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
27006
|
-
* Mirrored by the kernel and readable via
|
|
27007
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
27008
|
-
* without subscribing.
|
|
27009
|
-
*/
|
|
27010
|
-
runtimeState: DoorbellStatusSchema,
|
|
27011
|
-
/**
|
|
27012
|
-
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
27013
|
-
*
|
|
27014
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
27015
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
27016
|
-
*/
|
|
27017
|
-
durability: "restored"
|
|
27018
|
-
};
|
|
27019
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27020
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27021
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27022
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27023
|
-
DeviceType.Camera;
|
|
27024
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27025
|
-
state: literal("unreachable"),
|
|
27026
|
-
reason: string$2()
|
|
27027
|
-
})]);
|
|
27028
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27029
|
-
var ExtensionSourceSchema = object({
|
|
27030
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27031
|
-
source: string$2(),
|
|
27032
|
-
label: string$2(),
|
|
27033
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27034
|
-
addonId: string$2().optional(),
|
|
27035
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27036
|
-
});
|
|
27037
|
-
/**
|
|
27038
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27039
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27040
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27041
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27042
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27043
|
-
*/
|
|
27044
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27045
|
-
"ok",
|
|
27046
|
-
"missing",
|
|
27047
|
-
"foreign",
|
|
27048
|
-
"unavailable"
|
|
27049
|
-
]);
|
|
27050
|
-
var ExtensionSlotSourceSchema = object({
|
|
27051
|
-
deviceId: number().int(),
|
|
27052
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27053
|
-
name: string$2().nullable(),
|
|
27054
|
-
health: ExtensionSourceHealthSchema,
|
|
27055
|
-
detail: string$2().optional()
|
|
27056
|
-
});
|
|
27057
|
-
/**
|
|
27058
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27059
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27060
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27061
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27062
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27063
|
-
*/
|
|
27064
|
-
var ExtensionSlotActivationSchema = object({
|
|
27065
|
-
state: _enum([
|
|
27066
|
-
"active",
|
|
27067
|
-
"inactive",
|
|
27068
|
-
"unknown"
|
|
27069
|
-
]),
|
|
27070
|
-
authority: string$2(),
|
|
27071
|
-
detail: string$2().optional()
|
|
27072
|
-
});
|
|
27073
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27074
|
-
state: literal("ok"),
|
|
27075
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27076
|
-
slotRef: string$2(),
|
|
27077
|
-
slot: ExtensionSlotIdSchema,
|
|
27078
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27079
|
-
authority: string$2(),
|
|
27080
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27081
|
-
value: ExtensionSlotValueSchema,
|
|
27082
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27083
|
-
/**
|
|
27084
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27085
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27086
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27087
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27088
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27089
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27090
|
-
* older than D655.
|
|
27091
|
-
*/
|
|
27092
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27093
|
-
}), object({
|
|
27094
|
-
state: literal("unreachable"),
|
|
27095
|
-
addonId: string$2(),
|
|
27096
|
-
reason: string$2()
|
|
27097
|
-
})]);
|
|
27098
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27099
|
-
deviceId: number().int(),
|
|
27100
|
-
name: string$2(),
|
|
27101
|
-
type: string$2(),
|
|
27102
|
-
location: string$2().nullable(),
|
|
27103
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27104
|
-
parentName: string$2().nullable(),
|
|
27105
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27106
|
-
suggested: boolean(),
|
|
27107
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27108
|
-
reason: string$2().nullable()
|
|
27109
|
-
})) });
|
|
27110
|
-
/**
|
|
27111
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27112
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27113
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27114
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27115
|
-
*/
|
|
27116
|
-
var ExtensionSetResultSchema = object({
|
|
27117
|
-
applied: literal(true),
|
|
27118
|
-
reload: _enum([
|
|
27119
|
-
"none",
|
|
27120
|
-
"host",
|
|
27121
|
-
"parent"
|
|
27122
|
-
])
|
|
27123
|
-
});
|
|
27124
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27125
|
-
deviceId: number().int(),
|
|
27126
|
-
slotRef: string$2().min(1)
|
|
27127
|
-
});
|
|
27128
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27129
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27130
|
-
kind: "mutation",
|
|
27131
|
-
auth: "admin"
|
|
27132
|
-
});
|
|
27133
|
-
/**
|
|
27134
27479
|
* Optional client-side hints sent at session creation to help the provider
|
|
27135
27480
|
* pick the best native source. All fields optional — a viewer that knows
|
|
27136
27481
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -29615,6 +29960,70 @@ onStatusChanged: { data: object({
|
|
|
29615
29960
|
* whether persisting is worth a SQLite commit. */
|
|
29616
29961
|
volatileStateFields: ["lastChangedAt"]
|
|
29617
29962
|
};
|
|
29963
|
+
var DoorbellStatusSchema = object({
|
|
29964
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
29965
|
+
lastPressedAt: number().nullable(),
|
|
29966
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
29967
|
+
pressCountSinceStart: number()
|
|
29968
|
+
});
|
|
29969
|
+
var DoorbellPressEventSchema = object({
|
|
29970
|
+
deviceId: number(),
|
|
29971
|
+
timestamp: number()
|
|
29972
|
+
});
|
|
29973
|
+
/**
|
|
29974
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
29975
|
+
* they are the same cap:
|
|
29976
|
+
*
|
|
29977
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
29978
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
29979
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
29980
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
29981
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
29982
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
29983
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
29984
|
+
* from that field's advance (`fromState`).
|
|
29985
|
+
*
|
|
29986
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
29987
|
+
*/
|
|
29988
|
+
var doorbellCapability = {
|
|
29989
|
+
name: "doorbell",
|
|
29990
|
+
scope: "device",
|
|
29991
|
+
deviceNative: true,
|
|
29992
|
+
mode: "singleton",
|
|
29993
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
29994
|
+
methods: {},
|
|
29995
|
+
events: {
|
|
29996
|
+
/**
|
|
29997
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
29998
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
29999
|
+
* release/duration — it's a pulse.
|
|
30000
|
+
*/
|
|
30001
|
+
onPressed: {
|
|
30002
|
+
data: DoorbellPressEventSchema,
|
|
30003
|
+
fromState: {
|
|
30004
|
+
field: "lastPressedAt",
|
|
30005
|
+
on: "advance"
|
|
30006
|
+
}
|
|
30007
|
+
} },
|
|
30008
|
+
status: {
|
|
30009
|
+
schema: DoorbellStatusSchema,
|
|
30010
|
+
kind: "push"
|
|
30011
|
+
},
|
|
30012
|
+
/**
|
|
30013
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
30014
|
+
* Mirrored by the kernel and readable via
|
|
30015
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
30016
|
+
* without subscribing.
|
|
30017
|
+
*/
|
|
30018
|
+
runtimeState: DoorbellStatusSchema,
|
|
30019
|
+
/**
|
|
30020
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
30021
|
+
*
|
|
30022
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30023
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30024
|
+
*/
|
|
30025
|
+
durability: "restored"
|
|
30026
|
+
};
|
|
29618
30027
|
/**
|
|
29619
30028
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
29620
30029
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -31759,9 +32168,9 @@ var MotionStatusSchema = object({
|
|
|
31759
32168
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
31760
32169
|
lastDetectedAt: number().nullable(),
|
|
31761
32170
|
/**
|
|
31762
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
31763
|
-
* `null` while false and on every `Sensor`
|
|
31764
|
-
* constant's doc for the one-authority rule.
|
|
32171
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
32172
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
32173
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
31765
32174
|
*
|
|
31766
32175
|
* ## Reading this field still arms nothing
|
|
31767
32176
|
*
|
|
@@ -31779,34 +32188,31 @@ var MotionStatusSchema = object({
|
|
|
31779
32188
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
31780
32189
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
31781
32190
|
*
|
|
31782
|
-
* ## Who writes it
|
|
31783
|
-
*
|
|
31784
|
-
* - **Cameras** — the
|
|
31785
|
-
*
|
|
31786
|
-
* `
|
|
31787
|
-
* `
|
|
31788
|
-
*
|
|
31789
|
-
*
|
|
31790
|
-
* a
|
|
31791
|
-
*
|
|
31792
|
-
*
|
|
31793
|
-
*
|
|
31794
|
-
*
|
|
31795
|
-
*
|
|
31796
|
-
*
|
|
31797
|
-
*
|
|
31798
|
-
*
|
|
31799
|
-
*
|
|
31800
|
-
* `
|
|
31801
|
-
*
|
|
31802
|
-
*
|
|
31803
|
-
*
|
|
31804
|
-
*
|
|
31805
|
-
*
|
|
31806
|
-
*
|
|
31807
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
31808
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
31809
|
-
* "sole writer" wording without also removing the other writers.
|
|
32191
|
+
* ## Who writes it (D696)
|
|
32192
|
+
*
|
|
32193
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
32194
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
32195
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
32196
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
32197
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
32198
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
32199
|
+
* that never sends a clear falls one window after its last `true`.
|
|
32200
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
32201
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32202
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32203
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32204
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
32205
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32206
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
32207
|
+
* system's own state change. That is the sensor's own fact.
|
|
32208
|
+
*
|
|
32209
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
32210
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
32211
|
+
*
|
|
32212
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
32213
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
32214
|
+
* it, every provider seeded it at boot, and every session left it
|
|
32215
|
+
* `detected: true` after its detach.
|
|
31810
32216
|
*/
|
|
31811
32217
|
autoClearAfterMs: number().nullable()
|
|
31812
32218
|
});
|
|
@@ -31878,11 +32284,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
31878
32284
|
*/
|
|
31879
32285
|
runtimeState: MotionStatusSchema,
|
|
31880
32286
|
/**
|
|
31881
|
-
* Runtime-state durability: **session** —
|
|
32287
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
31882
32288
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
31883
32289
|
* frozen until the next one instead of being corrected. The next edge
|
|
31884
|
-
* re-publishes the real state
|
|
31885
|
-
*
|
|
32290
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
32291
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
32292
|
+
* `autoClearAfterMs` above).
|
|
31886
32293
|
*
|
|
31887
32294
|
* See `RuntimeStateDurability`. Enforced by
|
|
31888
32295
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -34265,8 +34672,7 @@ var ptzAutotrackCapability = {
|
|
|
34265
34672
|
deviceNative: true,
|
|
34266
34673
|
mode: "singleton",
|
|
34267
34674
|
/**
|
|
34268
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
34269
|
-
* `doorbell` use:
|
|
34675
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
34270
34676
|
*
|
|
34271
34677
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
34272
34678
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -34274,7 +34680,7 @@ var ptzAutotrackCapability = {
|
|
|
34274
34680
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
34275
34681
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
34276
34682
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
34277
|
-
* the bindings UI
|
|
34683
|
+
* the bindings UI.
|
|
34278
34684
|
*
|
|
34279
34685
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
34280
34686
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -34949,7 +35355,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
34949
35355
|
/**
|
|
34950
35356
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
34951
35357
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
34952
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
35358
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
34953
35359
|
* a replay needs several seconds of native pixels, not one frame.
|
|
34954
35360
|
*
|
|
34955
35361
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -38313,47 +38719,7 @@ var zoneRulesCapability = {
|
|
|
38313
38719
|
*/
|
|
38314
38720
|
durability: "restored"
|
|
38315
38721
|
};
|
|
38316
|
-
|
|
38317
|
-
kind: "fixed",
|
|
38318
|
-
result: ["number"]
|
|
38319
|
-
};
|
|
38320
|
-
var BOOLEAN = {
|
|
38321
|
-
kind: "fixed",
|
|
38322
|
-
result: ["boolean"]
|
|
38323
|
-
};
|
|
38324
|
-
Object.freeze({
|
|
38325
|
-
min: NUMBER,
|
|
38326
|
-
max: NUMBER,
|
|
38327
|
-
abs: NUMBER,
|
|
38328
|
-
floor: NUMBER,
|
|
38329
|
-
ceil: NUMBER,
|
|
38330
|
-
sqrt: NUMBER,
|
|
38331
|
-
round: NUMBER,
|
|
38332
|
-
pow: NUMBER,
|
|
38333
|
-
clamp: NUMBER,
|
|
38334
|
-
avg: NUMBER,
|
|
38335
|
-
sum: NUMBER,
|
|
38336
|
-
age: NUMBER,
|
|
38337
|
-
convert: NUMBER,
|
|
38338
|
-
coalesce: { kind: "coalesce" },
|
|
38339
|
-
any: BOOLEAN,
|
|
38340
|
-
all: BOOLEAN,
|
|
38341
|
-
within: BOOLEAN,
|
|
38342
|
-
latest: {
|
|
38343
|
-
kind: "fixed",
|
|
38344
|
-
result: ["number", "null"]
|
|
38345
|
-
},
|
|
38346
|
-
number: {
|
|
38347
|
-
kind: "fixed",
|
|
38348
|
-
result: ["number", "null"]
|
|
38349
|
-
},
|
|
38350
|
-
rose: {
|
|
38351
|
-
kind: "fixed",
|
|
38352
|
-
result: ["number", "null"]
|
|
38353
|
-
},
|
|
38354
|
-
count: NUMBER
|
|
38355
|
-
});
|
|
38356
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
38722
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
38357
38723
|
/**
|
|
38358
38724
|
* Accessory device helpers — shared across drivers.
|
|
38359
38725
|
*
|
|
@@ -39413,13 +39779,14 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
39413
39779
|
async getStatus() {
|
|
39414
39780
|
const all = await this.ctx.kernel.devices?.getAll() ?? [];
|
|
39415
39781
|
const summary = this.restoreFailureSummary();
|
|
39416
|
-
|
|
39782
|
+
const base = {
|
|
39417
39783
|
connected: true,
|
|
39418
|
-
deviceCount: all.length
|
|
39784
|
+
deviceCount: all.length,
|
|
39785
|
+
motionSliceWriter: "orchestrator"
|
|
39419
39786
|
};
|
|
39787
|
+
if (summary === null) return base;
|
|
39420
39788
|
return {
|
|
39421
|
-
|
|
39422
|
-
deviceCount: all.length,
|
|
39789
|
+
...base,
|
|
39423
39790
|
error: summary
|
|
39424
39791
|
};
|
|
39425
39792
|
}
|
|
@@ -42299,6 +42666,12 @@ Object.freeze({
|
|
|
42299
42666
|
addonId: null,
|
|
42300
42667
|
access: "view"
|
|
42301
42668
|
},
|
|
42669
|
+
"coreBlocks.listComposableCaps": {
|
|
42670
|
+
capName: "core-blocks",
|
|
42671
|
+
capScope: "system",
|
|
42672
|
+
addonId: null,
|
|
42673
|
+
access: "view"
|
|
42674
|
+
},
|
|
42302
42675
|
"coreBlocks.listCompositions": {
|
|
42303
42676
|
capName: "core-blocks",
|
|
42304
42677
|
capScope: "system",
|
|
@@ -42377,6 +42750,18 @@ Object.freeze({
|
|
|
42377
42750
|
addonId: null,
|
|
42378
42751
|
access: "view"
|
|
42379
42752
|
},
|
|
42753
|
+
"databaseSnapshot.listDatabases": {
|
|
42754
|
+
capName: "database-snapshot",
|
|
42755
|
+
capScope: "system",
|
|
42756
|
+
addonId: null,
|
|
42757
|
+
access: "view"
|
|
42758
|
+
},
|
|
42759
|
+
"databaseSnapshot.writeSnapshot": {
|
|
42760
|
+
capName: "database-snapshot",
|
|
42761
|
+
capScope: "system",
|
|
42762
|
+
addonId: null,
|
|
42763
|
+
access: "create"
|
|
42764
|
+
},
|
|
42380
42765
|
"dataStoreProvider.aggregate": {
|
|
42381
42766
|
capName: "data-store-provider",
|
|
42382
42767
|
capScope: "system",
|
|
@@ -44837,6 +45222,12 @@ Object.freeze({
|
|
|
44837
45222
|
addonId: null,
|
|
44838
45223
|
access: "view"
|
|
44839
45224
|
},
|
|
45225
|
+
"notificationRules.getAlarmSensors": {
|
|
45226
|
+
capName: "notification-rules",
|
|
45227
|
+
capScope: "system",
|
|
45228
|
+
addonId: null,
|
|
45229
|
+
access: "view"
|
|
45230
|
+
},
|
|
44840
45231
|
"notificationRules.getClipRetentionAsks": {
|
|
44841
45232
|
capName: "notification-rules",
|
|
44842
45233
|
capScope: "system",
|
|
@@ -45113,6 +45504,12 @@ Object.freeze({
|
|
|
45113
45504
|
addonId: null,
|
|
45114
45505
|
access: "create"
|
|
45115
45506
|
},
|
|
45507
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
45508
|
+
capName: "pipeline-analytics",
|
|
45509
|
+
capScope: "device",
|
|
45510
|
+
addonId: null,
|
|
45511
|
+
access: "delete"
|
|
45512
|
+
},
|
|
45116
45513
|
"pipelineAnalytics.clearTracks": {
|
|
45117
45514
|
capName: "pipeline-analytics",
|
|
45118
45515
|
capScope: "device",
|
|
@@ -45365,6 +45762,12 @@ Object.freeze({
|
|
|
45365
45762
|
addonId: null,
|
|
45366
45763
|
access: "view"
|
|
45367
45764
|
},
|
|
45765
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
45766
|
+
capName: "pipeline-analytics",
|
|
45767
|
+
capScope: "device",
|
|
45768
|
+
addonId: null,
|
|
45769
|
+
access: "view"
|
|
45770
|
+
},
|
|
45368
45771
|
"pipelineAnalytics.listTracks": {
|
|
45369
45772
|
capName: "pipeline-analytics",
|
|
45370
45773
|
capScope: "device",
|
|
@@ -45479,6 +45882,18 @@ Object.freeze({
|
|
|
45479
45882
|
addonId: null,
|
|
45480
45883
|
access: "create"
|
|
45481
45884
|
},
|
|
45885
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
45886
|
+
capName: "pipeline-analytics",
|
|
45887
|
+
capScope: "device",
|
|
45888
|
+
addonId: null,
|
|
45889
|
+
access: "create"
|
|
45890
|
+
},
|
|
45891
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
45892
|
+
capName: "pipeline-analytics",
|
|
45893
|
+
capScope: "device",
|
|
45894
|
+
addonId: null,
|
|
45895
|
+
access: "create"
|
|
45896
|
+
},
|
|
45482
45897
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
45483
45898
|
capName: "pipeline-analytics",
|
|
45484
45899
|
capScope: "device",
|
|
@@ -45917,6 +46332,12 @@ Object.freeze({
|
|
|
45917
46332
|
addonId: null,
|
|
45918
46333
|
access: "delete"
|
|
45919
46334
|
},
|
|
46335
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
46336
|
+
capName: "pipeline-orchestrator",
|
|
46337
|
+
capScope: "system",
|
|
46338
|
+
addonId: null,
|
|
46339
|
+
access: "create"
|
|
46340
|
+
},
|
|
45920
46341
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
45921
46342
|
capName: "pipeline-orchestrator",
|
|
45922
46343
|
capScope: "system",
|
|
@@ -45983,6 +46404,12 @@ Object.freeze({
|
|
|
45983
46404
|
addonId: null,
|
|
45984
46405
|
access: "create"
|
|
45985
46406
|
},
|
|
46407
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
46408
|
+
capName: "pipeline-orchestrator",
|
|
46409
|
+
capScope: "system",
|
|
46410
|
+
addonId: null,
|
|
46411
|
+
access: "create"
|
|
46412
|
+
},
|
|
45986
46413
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
45987
46414
|
capName: "pipeline-orchestrator",
|
|
45988
46415
|
capScope: "system",
|
|
@@ -48379,6 +48806,11 @@ Object.freeze({
|
|
|
48379
48806
|
}
|
|
48380
48807
|
});
|
|
48381
48808
|
Object.freeze({
|
|
48809
|
+
"accessories.getStatus": [{
|
|
48810
|
+
name: "deviceId",
|
|
48811
|
+
form: "single",
|
|
48812
|
+
optional: false
|
|
48813
|
+
}],
|
|
48382
48814
|
"accessories.setChildHidden": [{
|
|
48383
48815
|
name: "childDeviceId",
|
|
48384
48816
|
form: "single",
|
|
@@ -48398,6 +48830,11 @@ Object.freeze({
|
|
|
48398
48830
|
form: "single",
|
|
48399
48831
|
optional: false
|
|
48400
48832
|
}],
|
|
48833
|
+
"airQualitySensor.getStatus": [{
|
|
48834
|
+
name: "deviceId",
|
|
48835
|
+
form: "single",
|
|
48836
|
+
optional: false
|
|
48837
|
+
}],
|
|
48401
48838
|
"alarmPanel.arm": [{
|
|
48402
48839
|
name: "deviceId",
|
|
48403
48840
|
form: "single",
|
|
@@ -48408,11 +48845,36 @@ Object.freeze({
|
|
|
48408
48845
|
form: "single",
|
|
48409
48846
|
optional: false
|
|
48410
48847
|
}],
|
|
48848
|
+
"alarmPanel.getStatus": [{
|
|
48849
|
+
name: "deviceId",
|
|
48850
|
+
form: "single",
|
|
48851
|
+
optional: false
|
|
48852
|
+
}],
|
|
48411
48853
|
"alarmPanel.trigger": [{
|
|
48412
48854
|
name: "deviceId",
|
|
48413
48855
|
form: "single",
|
|
48414
48856
|
optional: false
|
|
48415
48857
|
}],
|
|
48858
|
+
"ambientLightSensor.getStatus": [{
|
|
48859
|
+
name: "deviceId",
|
|
48860
|
+
form: "single",
|
|
48861
|
+
optional: false
|
|
48862
|
+
}],
|
|
48863
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
48864
|
+
name: "deviceId",
|
|
48865
|
+
form: "single",
|
|
48866
|
+
optional: false
|
|
48867
|
+
}],
|
|
48868
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
48869
|
+
name: "deviceId",
|
|
48870
|
+
form: "single",
|
|
48871
|
+
optional: false
|
|
48872
|
+
}],
|
|
48873
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
48874
|
+
name: "deviceId",
|
|
48875
|
+
form: "single",
|
|
48876
|
+
optional: false
|
|
48877
|
+
}],
|
|
48416
48878
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
48417
48879
|
name: "deviceId",
|
|
48418
48880
|
form: "single",
|
|
@@ -48453,16 +48915,36 @@ Object.freeze({
|
|
|
48453
48915
|
form: "single",
|
|
48454
48916
|
optional: false
|
|
48455
48917
|
}],
|
|
48918
|
+
"automationControl.getStatus": [{
|
|
48919
|
+
name: "deviceId",
|
|
48920
|
+
form: "single",
|
|
48921
|
+
optional: false
|
|
48922
|
+
}],
|
|
48456
48923
|
"automationControl.trigger": [{
|
|
48457
48924
|
name: "deviceId",
|
|
48458
48925
|
form: "single",
|
|
48459
48926
|
optional: false
|
|
48460
48927
|
}],
|
|
48928
|
+
"battery.getStatus": [{
|
|
48929
|
+
name: "deviceId",
|
|
48930
|
+
form: "single",
|
|
48931
|
+
optional: false
|
|
48932
|
+
}],
|
|
48461
48933
|
"battery.wakeForStream": [{
|
|
48462
48934
|
name: "deviceId",
|
|
48463
48935
|
form: "single",
|
|
48464
48936
|
optional: false
|
|
48465
48937
|
}],
|
|
48938
|
+
"binary.getStatus": [{
|
|
48939
|
+
name: "deviceId",
|
|
48940
|
+
form: "single",
|
|
48941
|
+
optional: false
|
|
48942
|
+
}],
|
|
48943
|
+
"brightness.getStatus": [{
|
|
48944
|
+
name: "deviceId",
|
|
48945
|
+
form: "single",
|
|
48946
|
+
optional: false
|
|
48947
|
+
}],
|
|
48466
48948
|
"brightness.setBrightness": [{
|
|
48467
48949
|
name: "deviceId",
|
|
48468
48950
|
form: "single",
|
|
@@ -48478,6 +48960,26 @@ Object.freeze({
|
|
|
48478
48960
|
form: "single",
|
|
48479
48961
|
optional: false
|
|
48480
48962
|
}],
|
|
48963
|
+
"cameraCredentials.getStatus": [{
|
|
48964
|
+
name: "deviceId",
|
|
48965
|
+
form: "single",
|
|
48966
|
+
optional: false
|
|
48967
|
+
}],
|
|
48968
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
48969
|
+
name: "deviceId",
|
|
48970
|
+
form: "single",
|
|
48971
|
+
optional: false
|
|
48972
|
+
}],
|
|
48973
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
48974
|
+
name: "deviceId",
|
|
48975
|
+
form: "single",
|
|
48976
|
+
optional: false
|
|
48977
|
+
}],
|
|
48978
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
48979
|
+
name: "deviceId",
|
|
48980
|
+
form: "single",
|
|
48981
|
+
optional: false
|
|
48982
|
+
}],
|
|
48481
48983
|
"cameraGridLayout.getLayout": [{
|
|
48482
48984
|
name: "deviceId",
|
|
48483
48985
|
form: "single",
|
|
@@ -48493,6 +48995,21 @@ Object.freeze({
|
|
|
48493
48995
|
form: "single",
|
|
48494
48996
|
optional: false
|
|
48495
48997
|
}],
|
|
48998
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
48999
|
+
name: "deviceId",
|
|
49000
|
+
form: "single",
|
|
49001
|
+
optional: false
|
|
49002
|
+
}],
|
|
49003
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
49004
|
+
name: "deviceId",
|
|
49005
|
+
form: "single",
|
|
49006
|
+
optional: false
|
|
49007
|
+
}],
|
|
49008
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
49009
|
+
name: "deviceId",
|
|
49010
|
+
form: "single",
|
|
49011
|
+
optional: false
|
|
49012
|
+
}],
|
|
48496
49013
|
"cameraStreams.getBrokerStreams": [{
|
|
48497
49014
|
name: "deviceId",
|
|
48498
49015
|
form: "single",
|
|
@@ -48518,6 +49035,16 @@ Object.freeze({
|
|
|
48518
49035
|
form: "single",
|
|
48519
49036
|
optional: false
|
|
48520
49037
|
}],
|
|
49038
|
+
"carbonMonoxide.getStatus": [{
|
|
49039
|
+
name: "deviceId",
|
|
49040
|
+
form: "single",
|
|
49041
|
+
optional: false
|
|
49042
|
+
}],
|
|
49043
|
+
"climateControl.getStatus": [{
|
|
49044
|
+
name: "deviceId",
|
|
49045
|
+
form: "single",
|
|
49046
|
+
optional: false
|
|
49047
|
+
}],
|
|
48521
49048
|
"climateControl.setFanMode": [{
|
|
48522
49049
|
name: "deviceId",
|
|
48523
49050
|
form: "single",
|
|
@@ -48558,16 +49085,41 @@ Object.freeze({
|
|
|
48558
49085
|
form: "single",
|
|
48559
49086
|
optional: false
|
|
48560
49087
|
}],
|
|
49088
|
+
"color.getStatus": [{
|
|
49089
|
+
name: "deviceId",
|
|
49090
|
+
form: "single",
|
|
49091
|
+
optional: false
|
|
49092
|
+
}],
|
|
48561
49093
|
"color.setColor": [{
|
|
48562
49094
|
name: "deviceId",
|
|
48563
49095
|
form: "single",
|
|
48564
49096
|
optional: false
|
|
48565
49097
|
}],
|
|
49098
|
+
"connectivity.getStatus": [{
|
|
49099
|
+
name: "deviceId",
|
|
49100
|
+
form: "single",
|
|
49101
|
+
optional: false
|
|
49102
|
+
}],
|
|
49103
|
+
"consumables.getStatus": [{
|
|
49104
|
+
name: "deviceId",
|
|
49105
|
+
form: "single",
|
|
49106
|
+
optional: false
|
|
49107
|
+
}],
|
|
48566
49108
|
"consumables.reset": [{
|
|
48567
49109
|
name: "deviceId",
|
|
48568
49110
|
form: "single",
|
|
48569
49111
|
optional: false
|
|
48570
49112
|
}],
|
|
49113
|
+
"contact.getStatus": [{
|
|
49114
|
+
name: "deviceId",
|
|
49115
|
+
form: "single",
|
|
49116
|
+
optional: false
|
|
49117
|
+
}],
|
|
49118
|
+
"control.getStatus": [{
|
|
49119
|
+
name: "deviceId",
|
|
49120
|
+
form: "single",
|
|
49121
|
+
optional: false
|
|
49122
|
+
}],
|
|
48571
49123
|
"control.setValue": [{
|
|
48572
49124
|
name: "deviceId",
|
|
48573
49125
|
form: "single",
|
|
@@ -48578,6 +49130,11 @@ Object.freeze({
|
|
|
48578
49130
|
form: "single",
|
|
48579
49131
|
optional: false
|
|
48580
49132
|
}],
|
|
49133
|
+
"cover.getStatus": [{
|
|
49134
|
+
name: "deviceId",
|
|
49135
|
+
form: "single",
|
|
49136
|
+
optional: false
|
|
49137
|
+
}],
|
|
48581
49138
|
"cover.open": [{
|
|
48582
49139
|
name: "deviceId",
|
|
48583
49140
|
form: "single",
|
|
@@ -48603,6 +49160,11 @@ Object.freeze({
|
|
|
48603
49160
|
form: "single",
|
|
48604
49161
|
optional: false
|
|
48605
49162
|
}],
|
|
49163
|
+
"dayNight.getStatus": [{
|
|
49164
|
+
name: "deviceId",
|
|
49165
|
+
form: "single",
|
|
49166
|
+
optional: false
|
|
49167
|
+
}],
|
|
48606
49168
|
"dayNight.setSettings": [{
|
|
48607
49169
|
name: "deviceId",
|
|
48608
49170
|
form: "single",
|
|
@@ -48613,11 +49175,31 @@ Object.freeze({
|
|
|
48613
49175
|
form: "single",
|
|
48614
49176
|
optional: true
|
|
48615
49177
|
}],
|
|
49178
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49179
|
+
name: "deviceId",
|
|
49180
|
+
form: "single",
|
|
49181
|
+
optional: false
|
|
49182
|
+
}],
|
|
49183
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
49184
|
+
name: "deviceId",
|
|
49185
|
+
form: "single",
|
|
49186
|
+
optional: false
|
|
49187
|
+
}],
|
|
49188
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
49189
|
+
name: "deviceId",
|
|
49190
|
+
form: "single",
|
|
49191
|
+
optional: false
|
|
49192
|
+
}],
|
|
48616
49193
|
"deviceAdminLink.getAdminLink": [{
|
|
48617
49194
|
name: "deviceId",
|
|
48618
49195
|
form: "single",
|
|
48619
49196
|
optional: false
|
|
48620
49197
|
}],
|
|
49198
|
+
"deviceAdoption.getStatus": [{
|
|
49199
|
+
name: "deviceId",
|
|
49200
|
+
form: "single",
|
|
49201
|
+
optional: false
|
|
49202
|
+
}],
|
|
48621
49203
|
"deviceAdoption.release": [{
|
|
48622
49204
|
name: "camDeviceId",
|
|
48623
49205
|
form: "single",
|
|
@@ -48633,6 +49215,11 @@ Object.freeze({
|
|
|
48633
49215
|
form: "single",
|
|
48634
49216
|
optional: false
|
|
48635
49217
|
}],
|
|
49218
|
+
"deviceDiscovery.getStatus": [{
|
|
49219
|
+
name: "deviceId",
|
|
49220
|
+
form: "single",
|
|
49221
|
+
optional: false
|
|
49222
|
+
}],
|
|
48636
49223
|
"deviceDiscovery.listDiscovered": [{
|
|
48637
49224
|
name: "deviceId",
|
|
48638
49225
|
form: "single",
|
|
@@ -48652,6 +49239,21 @@ Object.freeze({
|
|
|
48652
49239
|
form: "single",
|
|
48653
49240
|
optional: false
|
|
48654
49241
|
}],
|
|
49242
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
49243
|
+
name: "deviceId",
|
|
49244
|
+
form: "single",
|
|
49245
|
+
optional: false
|
|
49246
|
+
}],
|
|
49247
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
49248
|
+
name: "deviceId",
|
|
49249
|
+
form: "single",
|
|
49250
|
+
optional: false
|
|
49251
|
+
}],
|
|
49252
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
49253
|
+
name: "deviceId",
|
|
49254
|
+
form: "single",
|
|
49255
|
+
optional: false
|
|
49256
|
+
}],
|
|
48655
49257
|
"deviceExtension.listCandidates": [{
|
|
48656
49258
|
name: "deviceId",
|
|
48657
49259
|
form: "single",
|
|
@@ -49000,6 +49602,26 @@ Object.freeze({
|
|
|
49000
49602
|
form: "single",
|
|
49001
49603
|
optional: false
|
|
49002
49604
|
}],
|
|
49605
|
+
"deviceStatus.getStatus": [{
|
|
49606
|
+
name: "deviceId",
|
|
49607
|
+
form: "single",
|
|
49608
|
+
optional: false
|
|
49609
|
+
}],
|
|
49610
|
+
"doorbell.getStatus": [{
|
|
49611
|
+
name: "deviceId",
|
|
49612
|
+
form: "single",
|
|
49613
|
+
optional: false
|
|
49614
|
+
}],
|
|
49615
|
+
"enumSensor.getStatus": [{
|
|
49616
|
+
name: "deviceId",
|
|
49617
|
+
form: "single",
|
|
49618
|
+
optional: false
|
|
49619
|
+
}],
|
|
49620
|
+
"eventEmitter.getStatus": [{
|
|
49621
|
+
name: "deviceId",
|
|
49622
|
+
form: "single",
|
|
49623
|
+
optional: false
|
|
49624
|
+
}],
|
|
49003
49625
|
"faceGallery.getFaceByTrack": [{
|
|
49004
49626
|
name: "deviceId",
|
|
49005
49627
|
form: "single",
|
|
@@ -49014,6 +49636,11 @@ Object.freeze({
|
|
|
49014
49636
|
form: "array",
|
|
49015
49637
|
optional: true
|
|
49016
49638
|
}],
|
|
49639
|
+
"fanControl.getStatus": [{
|
|
49640
|
+
name: "deviceId",
|
|
49641
|
+
form: "single",
|
|
49642
|
+
optional: false
|
|
49643
|
+
}],
|
|
49017
49644
|
"fanControl.setDirection": [{
|
|
49018
49645
|
name: "deviceId",
|
|
49019
49646
|
form: "single",
|
|
@@ -49034,6 +49661,26 @@ Object.freeze({
|
|
|
49034
49661
|
form: "single",
|
|
49035
49662
|
optional: false
|
|
49036
49663
|
}],
|
|
49664
|
+
"featureProbe.getStatus": [{
|
|
49665
|
+
name: "deviceId",
|
|
49666
|
+
form: "single",
|
|
49667
|
+
optional: false
|
|
49668
|
+
}],
|
|
49669
|
+
"flood.getStatus": [{
|
|
49670
|
+
name: "deviceId",
|
|
49671
|
+
form: "single",
|
|
49672
|
+
optional: false
|
|
49673
|
+
}],
|
|
49674
|
+
"gas.getStatus": [{
|
|
49675
|
+
name: "deviceId",
|
|
49676
|
+
form: "single",
|
|
49677
|
+
optional: false
|
|
49678
|
+
}],
|
|
49679
|
+
"humidifier.getStatus": [{
|
|
49680
|
+
name: "deviceId",
|
|
49681
|
+
form: "single",
|
|
49682
|
+
optional: false
|
|
49683
|
+
}],
|
|
49037
49684
|
"humidifier.setMode": [{
|
|
49038
49685
|
name: "deviceId",
|
|
49039
49686
|
form: "single",
|
|
@@ -49049,11 +49696,26 @@ Object.freeze({
|
|
|
49049
49696
|
form: "single",
|
|
49050
49697
|
optional: false
|
|
49051
49698
|
}],
|
|
49699
|
+
"humiditySensor.getStatus": [{
|
|
49700
|
+
name: "deviceId",
|
|
49701
|
+
form: "single",
|
|
49702
|
+
optional: false
|
|
49703
|
+
}],
|
|
49704
|
+
"image.getStatus": [{
|
|
49705
|
+
name: "deviceId",
|
|
49706
|
+
form: "single",
|
|
49707
|
+
optional: false
|
|
49708
|
+
}],
|
|
49052
49709
|
"imageSettings.getOptions": [{
|
|
49053
49710
|
name: "deviceId",
|
|
49054
49711
|
form: "single",
|
|
49055
49712
|
optional: false
|
|
49056
49713
|
}],
|
|
49714
|
+
"imageSettings.getStatus": [{
|
|
49715
|
+
name: "deviceId",
|
|
49716
|
+
form: "single",
|
|
49717
|
+
optional: false
|
|
49718
|
+
}],
|
|
49057
49719
|
"imageSettings.setSettings": [{
|
|
49058
49720
|
name: "deviceId",
|
|
49059
49721
|
form: "single",
|
|
@@ -49064,6 +49726,11 @@ Object.freeze({
|
|
|
49064
49726
|
form: "single",
|
|
49065
49727
|
optional: false
|
|
49066
49728
|
}],
|
|
49729
|
+
"intercom.getStatus": [{
|
|
49730
|
+
name: "deviceId",
|
|
49731
|
+
form: "single",
|
|
49732
|
+
optional: false
|
|
49733
|
+
}],
|
|
49067
49734
|
"intercom.handleAnswer": [{
|
|
49068
49735
|
name: "deviceId",
|
|
49069
49736
|
form: "single",
|
|
@@ -49094,6 +49761,11 @@ Object.freeze({
|
|
|
49094
49761
|
form: "single",
|
|
49095
49762
|
optional: false
|
|
49096
49763
|
}],
|
|
49764
|
+
"lawnMowerControl.getStatus": [{
|
|
49765
|
+
name: "deviceId",
|
|
49766
|
+
form: "single",
|
|
49767
|
+
optional: false
|
|
49768
|
+
}],
|
|
49097
49769
|
"lawnMowerControl.pause": [{
|
|
49098
49770
|
name: "deviceId",
|
|
49099
49771
|
form: "single",
|
|
@@ -49104,6 +49776,11 @@ Object.freeze({
|
|
|
49104
49776
|
form: "single",
|
|
49105
49777
|
optional: false
|
|
49106
49778
|
}],
|
|
49779
|
+
"lockControl.getStatus": [{
|
|
49780
|
+
name: "deviceId",
|
|
49781
|
+
form: "single",
|
|
49782
|
+
optional: false
|
|
49783
|
+
}],
|
|
49107
49784
|
"lockControl.lock": [{
|
|
49108
49785
|
name: "deviceId",
|
|
49109
49786
|
form: "single",
|
|
@@ -49119,6 +49796,11 @@ Object.freeze({
|
|
|
49119
49796
|
form: "single",
|
|
49120
49797
|
optional: false
|
|
49121
49798
|
}],
|
|
49799
|
+
"mediaPlayer.getStatus": [{
|
|
49800
|
+
name: "deviceId",
|
|
49801
|
+
form: "single",
|
|
49802
|
+
optional: false
|
|
49803
|
+
}],
|
|
49122
49804
|
"mediaPlayer.next": [{
|
|
49123
49805
|
name: "deviceId",
|
|
49124
49806
|
form: "single",
|
|
@@ -49179,6 +49861,11 @@ Object.freeze({
|
|
|
49179
49861
|
form: "single",
|
|
49180
49862
|
optional: false
|
|
49181
49863
|
}],
|
|
49864
|
+
"motion.getStatus": [{
|
|
49865
|
+
name: "deviceId",
|
|
49866
|
+
form: "single",
|
|
49867
|
+
optional: false
|
|
49868
|
+
}],
|
|
49182
49869
|
"motion.isDetected": [{
|
|
49183
49870
|
name: "deviceId",
|
|
49184
49871
|
form: "single",
|
|
@@ -49189,11 +49876,31 @@ Object.freeze({
|
|
|
49189
49876
|
form: "single",
|
|
49190
49877
|
optional: false
|
|
49191
49878
|
}],
|
|
49879
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
49880
|
+
name: "deviceId",
|
|
49881
|
+
form: "single",
|
|
49882
|
+
optional: false
|
|
49883
|
+
}],
|
|
49884
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
49885
|
+
name: "deviceId",
|
|
49886
|
+
form: "single",
|
|
49887
|
+
optional: false
|
|
49888
|
+
}],
|
|
49889
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
49890
|
+
name: "deviceId",
|
|
49891
|
+
form: "single",
|
|
49892
|
+
optional: false
|
|
49893
|
+
}],
|
|
49192
49894
|
"motionDetection.removeCamera": [{
|
|
49193
49895
|
name: "deviceId",
|
|
49194
49896
|
form: "single",
|
|
49195
49897
|
optional: false
|
|
49196
49898
|
}],
|
|
49899
|
+
"motionTrigger.getStatus": [{
|
|
49900
|
+
name: "deviceId",
|
|
49901
|
+
form: "single",
|
|
49902
|
+
optional: false
|
|
49903
|
+
}],
|
|
49197
49904
|
"motionTrigger.setMotionTrigger": [{
|
|
49198
49905
|
name: "deviceId",
|
|
49199
49906
|
form: "single",
|
|
@@ -49204,6 +49911,11 @@ Object.freeze({
|
|
|
49204
49911
|
form: "single",
|
|
49205
49912
|
optional: false
|
|
49206
49913
|
}],
|
|
49914
|
+
"motionZones.getStatus": [{
|
|
49915
|
+
name: "deviceId",
|
|
49916
|
+
form: "single",
|
|
49917
|
+
optional: false
|
|
49918
|
+
}],
|
|
49207
49919
|
"motionZones.setZone": [{
|
|
49208
49920
|
name: "deviceId",
|
|
49209
49921
|
form: "single",
|
|
@@ -49214,6 +49926,11 @@ Object.freeze({
|
|
|
49214
49926
|
form: "single",
|
|
49215
49927
|
optional: false
|
|
49216
49928
|
}],
|
|
49929
|
+
"nativeObjectDetection.getStatus": [{
|
|
49930
|
+
name: "deviceId",
|
|
49931
|
+
form: "single",
|
|
49932
|
+
optional: false
|
|
49933
|
+
}],
|
|
49217
49934
|
"nativeObjectDetection.setEnabled": [{
|
|
49218
49935
|
name: "deviceId",
|
|
49219
49936
|
form: "single",
|
|
@@ -49229,6 +49946,11 @@ Object.freeze({
|
|
|
49229
49946
|
form: "single",
|
|
49230
49947
|
optional: false
|
|
49231
49948
|
}],
|
|
49949
|
+
"navigation.getStatus": [{
|
|
49950
|
+
name: "deviceId",
|
|
49951
|
+
form: "single",
|
|
49952
|
+
optional: false
|
|
49953
|
+
}],
|
|
49232
49954
|
"navigation.goToPoint": [{
|
|
49233
49955
|
name: "deviceId",
|
|
49234
49956
|
form: "single",
|
|
@@ -49274,6 +49996,11 @@ Object.freeze({
|
|
|
49274
49996
|
form: "single",
|
|
49275
49997
|
optional: false
|
|
49276
49998
|
}],
|
|
49999
|
+
"networkLink.getStatus": [{
|
|
50000
|
+
name: "deviceId",
|
|
50001
|
+
form: "single",
|
|
50002
|
+
optional: false
|
|
50003
|
+
}],
|
|
49277
50004
|
"networkQuality.getDeviceStats": [{
|
|
49278
50005
|
name: "deviceId",
|
|
49279
50006
|
form: "single",
|
|
@@ -49284,6 +50011,11 @@ Object.freeze({
|
|
|
49284
50011
|
form: "single",
|
|
49285
50012
|
optional: false
|
|
49286
50013
|
}],
|
|
50014
|
+
"notificationRules.getAlarmSensors": [{
|
|
50015
|
+
name: "deviceIds",
|
|
50016
|
+
form: "array",
|
|
50017
|
+
optional: false
|
|
50018
|
+
}],
|
|
49287
50019
|
"notificationRules.setDeviceMuted": [{
|
|
49288
50020
|
name: "deviceId",
|
|
49289
50021
|
form: "single",
|
|
@@ -49294,11 +50026,26 @@ Object.freeze({
|
|
|
49294
50026
|
form: "single",
|
|
49295
50027
|
optional: false
|
|
49296
50028
|
}],
|
|
50029
|
+
"notifier.getStatus": [{
|
|
50030
|
+
name: "deviceId",
|
|
50031
|
+
form: "single",
|
|
50032
|
+
optional: false
|
|
50033
|
+
}],
|
|
49297
50034
|
"notifier.send": [{
|
|
49298
50035
|
name: "deviceId",
|
|
49299
50036
|
form: "single",
|
|
49300
50037
|
optional: false
|
|
49301
50038
|
}],
|
|
50039
|
+
"numericSensor.getStatus": [{
|
|
50040
|
+
name: "deviceId",
|
|
50041
|
+
form: "single",
|
|
50042
|
+
optional: false
|
|
50043
|
+
}],
|
|
50044
|
+
"osd.getStatus": [{
|
|
50045
|
+
name: "deviceId",
|
|
50046
|
+
form: "single",
|
|
50047
|
+
optional: false
|
|
50048
|
+
}],
|
|
49302
50049
|
"osd.setOverlay": [{
|
|
49303
50050
|
name: "deviceId",
|
|
49304
50051
|
form: "single",
|
|
@@ -49358,6 +50105,11 @@ Object.freeze({
|
|
|
49358
50105
|
form: "single",
|
|
49359
50106
|
optional: false
|
|
49360
50107
|
}],
|
|
50108
|
+
"petFeeder.getStatus": [{
|
|
50109
|
+
name: "deviceId",
|
|
50110
|
+
form: "single",
|
|
50111
|
+
optional: false
|
|
50112
|
+
}],
|
|
49361
50113
|
"petFeeder.markFoodReplenished": [{
|
|
49362
50114
|
name: "deviceId",
|
|
49363
50115
|
form: "single",
|
|
@@ -49393,6 +50145,16 @@ Object.freeze({
|
|
|
49393
50145
|
form: "single",
|
|
49394
50146
|
optional: false
|
|
49395
50147
|
}],
|
|
50148
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
50149
|
+
name: "deviceId",
|
|
50150
|
+
form: "single",
|
|
50151
|
+
optional: false
|
|
50152
|
+
}],
|
|
50153
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
50154
|
+
name: "deviceId",
|
|
50155
|
+
form: "single",
|
|
50156
|
+
optional: false
|
|
50157
|
+
}],
|
|
49396
50158
|
"pipelineAnalytics.clearTracks": [{
|
|
49397
50159
|
name: "deviceId",
|
|
49398
50160
|
form: "single",
|
|
@@ -49428,6 +50190,16 @@ Object.freeze({
|
|
|
49428
50190
|
form: "single",
|
|
49429
50191
|
optional: false
|
|
49430
50192
|
}],
|
|
50193
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
50194
|
+
name: "deviceId",
|
|
50195
|
+
form: "single",
|
|
50196
|
+
optional: false
|
|
50197
|
+
}],
|
|
50198
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
50199
|
+
name: "deviceId",
|
|
50200
|
+
form: "single",
|
|
50201
|
+
optional: false
|
|
50202
|
+
}],
|
|
49431
50203
|
"pipelineAnalytics.getEventDensity": [{
|
|
49432
50204
|
name: "deviceId",
|
|
49433
50205
|
form: "single",
|
|
@@ -49543,6 +50315,11 @@ Object.freeze({
|
|
|
49543
50315
|
form: "single",
|
|
49544
50316
|
optional: false
|
|
49545
50317
|
}],
|
|
50318
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
50319
|
+
name: "deviceId",
|
|
50320
|
+
form: "single",
|
|
50321
|
+
optional: false
|
|
50322
|
+
}],
|
|
49546
50323
|
"pipelineAnalytics.listTracks": [{
|
|
49547
50324
|
name: "deviceId",
|
|
49548
50325
|
form: "single",
|
|
@@ -49613,6 +50390,16 @@ Object.freeze({
|
|
|
49613
50390
|
form: "single",
|
|
49614
50391
|
optional: false
|
|
49615
50392
|
}],
|
|
50393
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
50394
|
+
name: "deviceId",
|
|
50395
|
+
form: "single",
|
|
50396
|
+
optional: false
|
|
50397
|
+
}],
|
|
50398
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
50399
|
+
name: "deviceId",
|
|
50400
|
+
form: "single",
|
|
50401
|
+
optional: false
|
|
50402
|
+
}],
|
|
49616
50403
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
49617
50404
|
name: "deviceId",
|
|
49618
50405
|
form: "single",
|
|
@@ -49628,6 +50415,11 @@ Object.freeze({
|
|
|
49628
50415
|
form: "single",
|
|
49629
50416
|
optional: true
|
|
49630
50417
|
}],
|
|
50418
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
50419
|
+
name: "deviceId",
|
|
50420
|
+
form: "single",
|
|
50421
|
+
optional: false
|
|
50422
|
+
}],
|
|
49631
50423
|
"pipelineOrchestrator.assignAudio": [{
|
|
49632
50424
|
name: "deviceId",
|
|
49633
50425
|
form: "single",
|
|
@@ -49673,6 +50465,16 @@ Object.freeze({
|
|
|
49673
50465
|
form: "single",
|
|
49674
50466
|
optional: false
|
|
49675
50467
|
}],
|
|
50468
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
50469
|
+
name: "deviceId",
|
|
50470
|
+
form: "single",
|
|
50471
|
+
optional: false
|
|
50472
|
+
}],
|
|
50473
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
50474
|
+
name: "deviceId",
|
|
50475
|
+
form: "single",
|
|
50476
|
+
optional: false
|
|
50477
|
+
}],
|
|
49676
50478
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
49677
50479
|
name: "deviceId",
|
|
49678
50480
|
form: "single",
|
|
@@ -49683,6 +50485,11 @@ Object.freeze({
|
|
|
49683
50485
|
form: "single",
|
|
49684
50486
|
optional: false
|
|
49685
50487
|
}],
|
|
50488
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
50489
|
+
name: "deviceId",
|
|
50490
|
+
form: "single",
|
|
50491
|
+
optional: false
|
|
50492
|
+
}],
|
|
49686
50493
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
49687
50494
|
name: "deviceId",
|
|
49688
50495
|
form: "single",
|
|
@@ -49693,6 +50500,11 @@ Object.freeze({
|
|
|
49693
50500
|
form: "single",
|
|
49694
50501
|
optional: false
|
|
49695
50502
|
}],
|
|
50503
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
50504
|
+
name: "deviceId",
|
|
50505
|
+
form: "single",
|
|
50506
|
+
optional: false
|
|
50507
|
+
}],
|
|
49696
50508
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
49697
50509
|
name: "deviceId",
|
|
49698
50510
|
form: "single",
|
|
@@ -49783,11 +50595,31 @@ Object.freeze({
|
|
|
49783
50595
|
form: "single",
|
|
49784
50596
|
optional: true
|
|
49785
50597
|
}],
|
|
50598
|
+
"powerMeter.getStatus": [{
|
|
50599
|
+
name: "deviceId",
|
|
50600
|
+
form: "single",
|
|
50601
|
+
optional: false
|
|
50602
|
+
}],
|
|
50603
|
+
"presence.getStatus": [{
|
|
50604
|
+
name: "deviceId",
|
|
50605
|
+
form: "single",
|
|
50606
|
+
optional: false
|
|
50607
|
+
}],
|
|
50608
|
+
"pressureSensor.getStatus": [{
|
|
50609
|
+
name: "deviceId",
|
|
50610
|
+
form: "single",
|
|
50611
|
+
optional: false
|
|
50612
|
+
}],
|
|
49786
50613
|
"privacyMask.getOptions": [{
|
|
49787
50614
|
name: "deviceId",
|
|
49788
50615
|
form: "single",
|
|
49789
50616
|
optional: false
|
|
49790
50617
|
}],
|
|
50618
|
+
"privacyMask.getStatus": [{
|
|
50619
|
+
name: "deviceId",
|
|
50620
|
+
form: "single",
|
|
50621
|
+
optional: false
|
|
50622
|
+
}],
|
|
49791
50623
|
"privacyMask.setAudioEnabled": [{
|
|
49792
50624
|
name: "deviceId",
|
|
49793
50625
|
form: "single",
|
|
@@ -49838,6 +50670,11 @@ Object.freeze({
|
|
|
49838
50670
|
form: "single",
|
|
49839
50671
|
optional: false
|
|
49840
50672
|
}],
|
|
50673
|
+
"ptz.getStatus": [{
|
|
50674
|
+
name: "deviceId",
|
|
50675
|
+
form: "single",
|
|
50676
|
+
optional: false
|
|
50677
|
+
}],
|
|
49841
50678
|
"ptz.goHome": [{
|
|
49842
50679
|
name: "deviceId",
|
|
49843
50680
|
form: "single",
|
|
@@ -49928,6 +50765,11 @@ Object.freeze({
|
|
|
49928
50765
|
form: "single",
|
|
49929
50766
|
optional: false
|
|
49930
50767
|
}],
|
|
50768
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
50769
|
+
name: "deviceId",
|
|
50770
|
+
form: "single",
|
|
50771
|
+
optional: false
|
|
50772
|
+
}],
|
|
49931
50773
|
"recordingArchive.deleteFootprint": [{
|
|
49932
50774
|
name: "deviceId",
|
|
49933
50775
|
form: "single",
|
|
@@ -49948,6 +50790,21 @@ Object.freeze({
|
|
|
49948
50790
|
form: "single",
|
|
49949
50791
|
optional: false
|
|
49950
50792
|
}],
|
|
50793
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
50794
|
+
name: "deviceId",
|
|
50795
|
+
form: "single",
|
|
50796
|
+
optional: false
|
|
50797
|
+
}],
|
|
50798
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
50799
|
+
name: "deviceId",
|
|
50800
|
+
form: "single",
|
|
50801
|
+
optional: false
|
|
50802
|
+
}],
|
|
50803
|
+
"recordingArchive.getStatus": [{
|
|
50804
|
+
name: "deviceId",
|
|
50805
|
+
form: "single",
|
|
50806
|
+
optional: false
|
|
50807
|
+
}],
|
|
49951
50808
|
"recordingArchive.listOpsLog": [{
|
|
49952
50809
|
name: "deviceId",
|
|
49953
50810
|
form: "single",
|
|
@@ -50033,6 +50890,11 @@ Object.freeze({
|
|
|
50033
50890
|
form: "single",
|
|
50034
50891
|
optional: false
|
|
50035
50892
|
}],
|
|
50893
|
+
"recordingOnboard.getStatus": [{
|
|
50894
|
+
name: "deviceId",
|
|
50895
|
+
form: "single",
|
|
50896
|
+
optional: false
|
|
50897
|
+
}],
|
|
50036
50898
|
"recordingOnboard.setSettings": [{
|
|
50037
50899
|
name: "deviceId",
|
|
50038
50900
|
form: "single",
|
|
@@ -50063,6 +50925,11 @@ Object.freeze({
|
|
|
50063
50925
|
form: "single",
|
|
50064
50926
|
optional: false
|
|
50065
50927
|
}],
|
|
50928
|
+
"sceneMonitor.getStatus": [{
|
|
50929
|
+
name: "deviceId",
|
|
50930
|
+
form: "single",
|
|
50931
|
+
optional: false
|
|
50932
|
+
}],
|
|
50066
50933
|
"sceneMonitor.listScenes": [{
|
|
50067
50934
|
name: "deviceId",
|
|
50068
50935
|
form: "single",
|
|
@@ -50088,6 +50955,11 @@ Object.freeze({
|
|
|
50088
50955
|
form: "single",
|
|
50089
50956
|
optional: false
|
|
50090
50957
|
}],
|
|
50958
|
+
"scriptRunner.getStatus": [{
|
|
50959
|
+
name: "deviceId",
|
|
50960
|
+
form: "single",
|
|
50961
|
+
optional: false
|
|
50962
|
+
}],
|
|
50091
50963
|
"scriptRunner.run": [{
|
|
50092
50964
|
name: "deviceId",
|
|
50093
50965
|
form: "single",
|
|
@@ -50098,11 +50970,31 @@ Object.freeze({
|
|
|
50098
50970
|
form: "single",
|
|
50099
50971
|
optional: false
|
|
50100
50972
|
}],
|
|
50973
|
+
"smoke.getStatus": [{
|
|
50974
|
+
name: "deviceId",
|
|
50975
|
+
form: "single",
|
|
50976
|
+
optional: false
|
|
50977
|
+
}],
|
|
50978
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
50979
|
+
name: "deviceId",
|
|
50980
|
+
form: "single",
|
|
50981
|
+
optional: false
|
|
50982
|
+
}],
|
|
50101
50983
|
"snapshot.getDebugState": [{
|
|
50102
50984
|
name: "deviceId",
|
|
50103
50985
|
form: "single",
|
|
50104
50986
|
optional: false
|
|
50105
50987
|
}],
|
|
50988
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
50989
|
+
name: "deviceId",
|
|
50990
|
+
form: "single",
|
|
50991
|
+
optional: false
|
|
50992
|
+
}],
|
|
50993
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
50994
|
+
name: "deviceId",
|
|
50995
|
+
form: "single",
|
|
50996
|
+
optional: false
|
|
50997
|
+
}],
|
|
50106
50998
|
"snapshot.getSnapshot": [{
|
|
50107
50999
|
name: "deviceId",
|
|
50108
51000
|
form: "single",
|
|
@@ -50119,6 +51011,11 @@ Object.freeze({
|
|
|
50119
51011
|
form: "array",
|
|
50120
51012
|
optional: false
|
|
50121
51013
|
}],
|
|
51014
|
+
"snapshot.getStatus": [{
|
|
51015
|
+
name: "deviceId",
|
|
51016
|
+
form: "single",
|
|
51017
|
+
optional: false
|
|
51018
|
+
}],
|
|
50122
51019
|
"snapshot.invalidateCache": [{
|
|
50123
51020
|
name: "deviceId",
|
|
50124
51021
|
form: "single",
|
|
@@ -50129,6 +51026,11 @@ Object.freeze({
|
|
|
50129
51026
|
form: "single",
|
|
50130
51027
|
optional: false
|
|
50131
51028
|
}],
|
|
51029
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
51030
|
+
name: "deviceId",
|
|
51031
|
+
form: "single",
|
|
51032
|
+
optional: false
|
|
51033
|
+
}],
|
|
50132
51034
|
"streamBroker.assignProfile": [{
|
|
50133
51035
|
name: "deviceId",
|
|
50134
51036
|
form: "single",
|
|
@@ -50144,6 +51046,16 @@ Object.freeze({
|
|
|
50144
51046
|
form: "single",
|
|
50145
51047
|
optional: false
|
|
50146
51048
|
}],
|
|
51049
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
51050
|
+
name: "deviceId",
|
|
51051
|
+
form: "single",
|
|
51052
|
+
optional: false
|
|
51053
|
+
}],
|
|
51054
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
51055
|
+
name: "deviceId",
|
|
51056
|
+
form: "single",
|
|
51057
|
+
optional: false
|
|
51058
|
+
}],
|
|
50147
51059
|
"streamBroker.getStreamWithCodec": [{
|
|
50148
51060
|
name: "deviceId",
|
|
50149
51061
|
form: "single",
|
|
@@ -50204,16 +51116,46 @@ Object.freeze({
|
|
|
50204
51116
|
form: "single",
|
|
50205
51117
|
optional: false
|
|
50206
51118
|
}],
|
|
51119
|
+
"streamParams.getStatus": [{
|
|
51120
|
+
name: "deviceId",
|
|
51121
|
+
form: "single",
|
|
51122
|
+
optional: false
|
|
51123
|
+
}],
|
|
50207
51124
|
"streamParams.setProfile": [{
|
|
50208
51125
|
name: "deviceId",
|
|
50209
51126
|
form: "single",
|
|
50210
51127
|
optional: false
|
|
50211
51128
|
}],
|
|
51129
|
+
"switch.getStatus": [{
|
|
51130
|
+
name: "deviceId",
|
|
51131
|
+
form: "single",
|
|
51132
|
+
optional: false
|
|
51133
|
+
}],
|
|
50212
51134
|
"switch.setState": [{
|
|
50213
51135
|
name: "deviceId",
|
|
50214
51136
|
form: "single",
|
|
50215
51137
|
optional: false
|
|
50216
51138
|
}],
|
|
51139
|
+
"tamper.getStatus": [{
|
|
51140
|
+
name: "deviceId",
|
|
51141
|
+
form: "single",
|
|
51142
|
+
optional: false
|
|
51143
|
+
}],
|
|
51144
|
+
"temperatureSensor.getStatus": [{
|
|
51145
|
+
name: "deviceId",
|
|
51146
|
+
form: "single",
|
|
51147
|
+
optional: false
|
|
51148
|
+
}],
|
|
51149
|
+
"update.getStatus": [{
|
|
51150
|
+
name: "deviceId",
|
|
51151
|
+
form: "single",
|
|
51152
|
+
optional: false
|
|
51153
|
+
}],
|
|
51154
|
+
"vacuumControl.getStatus": [{
|
|
51155
|
+
name: "deviceId",
|
|
51156
|
+
form: "single",
|
|
51157
|
+
optional: false
|
|
51158
|
+
}],
|
|
50217
51159
|
"vacuumControl.locate": [{
|
|
50218
51160
|
name: "deviceId",
|
|
50219
51161
|
form: "single",
|
|
@@ -50249,6 +51191,11 @@ Object.freeze({
|
|
|
50249
51191
|
form: "single",
|
|
50250
51192
|
optional: false
|
|
50251
51193
|
}],
|
|
51194
|
+
"valve.getStatus": [{
|
|
51195
|
+
name: "deviceId",
|
|
51196
|
+
form: "single",
|
|
51197
|
+
optional: false
|
|
51198
|
+
}],
|
|
50252
51199
|
"valve.open": [{
|
|
50253
51200
|
name: "deviceId",
|
|
50254
51201
|
form: "single",
|
|
@@ -50264,6 +51211,11 @@ Object.freeze({
|
|
|
50264
51211
|
form: "single",
|
|
50265
51212
|
optional: false
|
|
50266
51213
|
}],
|
|
51214
|
+
"vibration.getStatus": [{
|
|
51215
|
+
name: "deviceId",
|
|
51216
|
+
form: "single",
|
|
51217
|
+
optional: false
|
|
51218
|
+
}],
|
|
50267
51219
|
"videoclips.dialClipStream": [{
|
|
50268
51220
|
name: "deviceId",
|
|
50269
51221
|
form: "single",
|
|
@@ -50299,6 +51251,11 @@ Object.freeze({
|
|
|
50299
51251
|
form: "single",
|
|
50300
51252
|
optional: false
|
|
50301
51253
|
}],
|
|
51254
|
+
"waterHeater.getStatus": [{
|
|
51255
|
+
name: "deviceId",
|
|
51256
|
+
form: "single",
|
|
51257
|
+
optional: false
|
|
51258
|
+
}],
|
|
50302
51259
|
"waterHeater.setAway": [{
|
|
50303
51260
|
name: "deviceId",
|
|
50304
51261
|
form: "single",
|
|
@@ -50314,6 +51271,11 @@ Object.freeze({
|
|
|
50314
51271
|
form: "single",
|
|
50315
51272
|
optional: false
|
|
50316
51273
|
}],
|
|
51274
|
+
"weather.getStatus": [{
|
|
51275
|
+
name: "deviceId",
|
|
51276
|
+
form: "single",
|
|
51277
|
+
optional: false
|
|
51278
|
+
}],
|
|
50317
51279
|
"webrtcSession.addIceCandidate": [{
|
|
50318
51280
|
name: "deviceId",
|
|
50319
51281
|
form: "single",
|
|
@@ -50839,6 +51801,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
50839
51801
|
systemEventKinds: [...SUMMARISABLE],
|
|
50840
51802
|
systemEventDeliveries: ["summary"]
|
|
50841
51803
|
},
|
|
51804
|
+
{
|
|
51805
|
+
name: "summarySection",
|
|
51806
|
+
label: "Summary: this section",
|
|
51807
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
51808
|
+
example: "Batterie scariche",
|
|
51809
|
+
group: "system",
|
|
51810
|
+
families: ["rule"],
|
|
51811
|
+
fields: [...RULE_TEXT],
|
|
51812
|
+
kinds: ["system"],
|
|
51813
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
51814
|
+
systemEventDeliveries: ["summary"]
|
|
51815
|
+
},
|
|
50842
51816
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
50843
51817
|
name: v.name,
|
|
50844
51818
|
label: v.label,
|
|
@@ -50915,6 +51889,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
50915
51889
|
[...RULE_TEXT],
|
|
50916
51890
|
...STATE_SUMMARY_VARS
|
|
50917
51891
|
];
|
|
51892
|
+
new Set([
|
|
51893
|
+
"disarmed",
|
|
51894
|
+
"armed_home",
|
|
51895
|
+
"armed_away",
|
|
51896
|
+
"armed_night",
|
|
51897
|
+
"armed_vacation",
|
|
51898
|
+
"armed_custom_bypass",
|
|
51899
|
+
"arming",
|
|
51900
|
+
"disarming",
|
|
51901
|
+
"pending",
|
|
51902
|
+
"triggered",
|
|
51903
|
+
"open",
|
|
51904
|
+
"opening",
|
|
51905
|
+
"closing",
|
|
51906
|
+
"closed",
|
|
51907
|
+
"stopped",
|
|
51908
|
+
"locked",
|
|
51909
|
+
"unlocked",
|
|
51910
|
+
"locking",
|
|
51911
|
+
"unlocking",
|
|
51912
|
+
"jammed",
|
|
51913
|
+
"on",
|
|
51914
|
+
"off",
|
|
51915
|
+
"home",
|
|
51916
|
+
"not_home",
|
|
51917
|
+
"matched",
|
|
51918
|
+
"diverged",
|
|
51919
|
+
"unknown",
|
|
51920
|
+
"latched",
|
|
51921
|
+
"live"
|
|
51922
|
+
]);
|
|
50918
51923
|
/**
|
|
50919
51924
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
50920
51925
|
*
|
|
@@ -51008,7 +52013,7 @@ var PreviewTextField = string$2().max(200);
|
|
|
51008
52013
|
* Whether the notification's preview is a STILL or a short animation.
|
|
51009
52014
|
*
|
|
51010
52015
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
51011
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
52016
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
51012
52017
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
51013
52018
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
51014
52019
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -51146,6 +52151,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
51146
52151
|
createdAt: number(),
|
|
51147
52152
|
updatedAt: number()
|
|
51148
52153
|
});
|
|
52154
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
51149
52155
|
object({
|
|
51150
52156
|
/**
|
|
51151
52157
|
* Fraction of the box's own size added on EACH side before cutting.
|