@camstack/addon-provider-homematic 1.2.121 → 1.2.123
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
|
@@ -8,7 +8,7 @@ let http = require("http");
|
|
|
8
8
|
let crypto$1 = require("crypto");
|
|
9
9
|
let fs_promises = require("fs/promises");
|
|
10
10
|
let path = require("path");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -541,6 +541,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
541
541
|
*/
|
|
542
542
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
543
543
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
544
|
+
/**
|
|
545
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
546
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
547
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
548
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
549
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
550
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
551
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
552
|
+
*/
|
|
544
553
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
545
554
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
546
555
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5379,7 +5388,7 @@ var ZodIssueCode = {
|
|
|
5379
5388
|
var ZodFirstPartyTypeKind;
|
|
5380
5389
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5381
5390
|
//#endregion
|
|
5382
|
-
//#region ../types/dist/sleep-
|
|
5391
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5383
5392
|
/**
|
|
5384
5393
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5385
5394
|
* window to float samples (D455).
|
|
@@ -7422,23 +7431,74 @@ function errMsg(err) {
|
|
|
7422
7431
|
return String(err);
|
|
7423
7432
|
}
|
|
7424
7433
|
//#endregion
|
|
7425
|
-
//#region ../types/dist/composition-
|
|
7434
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
7435
|
+
/**
|
|
7436
|
+
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7437
|
+
*
|
|
7438
|
+
* ## Why a download, on every node, including the container
|
|
7439
|
+
*
|
|
7440
|
+
* The version of ffmpeg used to be CODE: baked into the image, changeable only
|
|
7441
|
+
* by rebuilding and rolling it. Now it is DATA — this file states the release,
|
|
7442
|
+
* and a node that boots with a different one downloads it. Changing ffmpeg is a
|
|
7443
|
+
* framework bump, not an image rebuild.
|
|
7444
|
+
*
|
|
7445
|
+
* It also settles the licence question by removing it. FFmpeg's licence is
|
|
7446
|
+
* chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
|
|
7447
|
+
* (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
|
|
7448
|
+
* makes the result undistributable. These are GPL v3 builds, and we do not
|
|
7449
|
+
* distribute them: the user's own node fetches the archive from the project
|
|
7450
|
+
* that publishes it, so we convey no GPL work and inherit none of the
|
|
7451
|
+
* obligations that come with conveying one. That is the whole reason the image
|
|
7452
|
+
* no longer installs ffmpeg at all — not a technical preference.
|
|
7453
|
+
*
|
|
7454
|
+
* ## Why jellyfin-ffmpeg
|
|
7455
|
+
*
|
|
7456
|
+
* One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
|
|
7457
|
+
* from one release, with the widest hardware surface of anything maintained:
|
|
7458
|
+
* VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
|
|
7459
|
+
* MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
|
|
7460
|
+
* so the binary is not linked against a driver stack it may not find.
|
|
7461
|
+
*
|
|
7462
|
+
* **What it still needs from the host, measured 2026-09-19.** On the Unraid
|
|
7463
|
+
* HOST, which has no libva, `-vaapi_device` aborts the process outright —
|
|
7464
|
+
* `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
|
|
7465
|
+
* "Assertion in generated code"' failed`. Inside our container, which installs
|
|
7466
|
+
* libva plus the iHD driver, the same command encodes: verified end to end with
|
|
7467
|
+
* `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
|
|
7468
|
+
* KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
|
|
7469
|
+
*
|
|
7470
|
+
* ## Why each artifact carries a checksum and a claim
|
|
7471
|
+
*
|
|
7472
|
+
* The download is now the only source, so `sha256` is verified before anything
|
|
7473
|
+
* is extracted — jellyfin publishes no checksums on its release assets, so
|
|
7474
|
+
* these are ours, taken at the version bump. And `expectedHwaccels` is what the
|
|
7475
|
+
* build is supposed to be able to do: a binary that probes short of its own
|
|
7476
|
+
* claim is a source that changed under us, which is precisely what went
|
|
7477
|
+
* unnoticed for months when a static build turned out to carry no VAAPI at all
|
|
7478
|
+
* (D536).
|
|
7479
|
+
*/
|
|
7480
|
+
/** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
|
|
7481
|
+
var FFMPEG_RELEASE = "8.1.2-5";
|
|
7482
|
+
var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
|
|
7483
|
+
function portable(target) {
|
|
7484
|
+
return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
|
|
7485
|
+
}
|
|
7486
|
+
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7426
7487
|
/**
|
|
7427
|
-
*
|
|
7428
|
-
*
|
|
7488
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7489
|
+
* pure evaluator of its EDGE.
|
|
7429
7490
|
*
|
|
7430
|
-
*
|
|
7431
|
-
*
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7434
|
-
*
|
|
7435
|
-
*
|
|
7436
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7491
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7492
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7493
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7494
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7495
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7496
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7437
7497
|
*
|
|
7438
|
-
* ⚠
|
|
7439
|
-
*
|
|
7440
|
-
*
|
|
7441
|
-
*
|
|
7498
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7499
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7500
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7501
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7442
7502
|
*/
|
|
7443
7503
|
/**
|
|
7444
7504
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -8896,6 +8956,82 @@ var ArchivedDebugNoteQueryInputSchema = object({
|
|
|
8896
8956
|
/** Max rows returned, newest-first. */
|
|
8897
8957
|
limit: number().int().min(1).max(1e3).optional()
|
|
8898
8958
|
});
|
|
8959
|
+
var TrackRelationKindSchema = _enum(["same-subject", "different-subjects"]);
|
|
8960
|
+
var TrackSideSchema = _enum(["before", "after"]);
|
|
8961
|
+
var TrackPurityValueSchema = _enum(["mixed", "not-a-subject"]);
|
|
8962
|
+
var TrackRelationSchema = object({
|
|
8963
|
+
id: string(),
|
|
8964
|
+
deviceId: number().int(),
|
|
8965
|
+
leftTrackId: string(),
|
|
8966
|
+
rightTrackId: string(),
|
|
8967
|
+
leftSide: TrackSideSchema.nullable(),
|
|
8968
|
+
rightSide: TrackSideSchema.nullable(),
|
|
8969
|
+
relation: TrackRelationKindSchema,
|
|
8970
|
+
presence: literal("continuous").nullable(),
|
|
8971
|
+
leftStartedAt: number().int().nullable(),
|
|
8972
|
+
rightStartedAt: number().int().nullable(),
|
|
8973
|
+
createdAt: number().int(),
|
|
8974
|
+
updatedAt: number().int(),
|
|
8975
|
+
author: string().nullable()
|
|
8976
|
+
});
|
|
8977
|
+
var TrackPuritySchema = object({
|
|
8978
|
+
id: string(),
|
|
8979
|
+
deviceId: number().int(),
|
|
8980
|
+
sourceTrackId: string(),
|
|
8981
|
+
purity: TrackPurityValueSchema,
|
|
8982
|
+
switchAtMs: number().int().nullable(),
|
|
8983
|
+
startedAt: number().int().nullable(),
|
|
8984
|
+
createdAt: number().int(),
|
|
8985
|
+
updatedAt: number().int(),
|
|
8986
|
+
author: string().nullable()
|
|
8987
|
+
});
|
|
8988
|
+
var SetTrackRelationInputSchema = object({
|
|
8989
|
+
deviceId: number().int(),
|
|
8990
|
+
trackId: string().min(1),
|
|
8991
|
+
otherTrackId: string().min(1),
|
|
8992
|
+
relation: TrackRelationKindSchema,
|
|
8993
|
+
presence: literal("continuous").optional(),
|
|
8994
|
+
trackSide: TrackSideSchema.optional(),
|
|
8995
|
+
otherSide: TrackSideSchema.optional()
|
|
8996
|
+
});
|
|
8997
|
+
var ClearTrackRelationInputSchema = object({
|
|
8998
|
+
deviceId: number().int(),
|
|
8999
|
+
trackId: string().min(1),
|
|
9000
|
+
otherTrackId: string().min(1)
|
|
9001
|
+
});
|
|
9002
|
+
var ClearTrackRelationResultSchema = object({ cleared: boolean() });
|
|
9003
|
+
var SetTrackPurityInputSchema = object({
|
|
9004
|
+
deviceId: number().int(),
|
|
9005
|
+
trackId: string().min(1),
|
|
9006
|
+
purity: _enum([
|
|
9007
|
+
"pure",
|
|
9008
|
+
"mixed",
|
|
9009
|
+
"not-a-subject"
|
|
9010
|
+
]),
|
|
9011
|
+
switchAtMs: number().int().optional()
|
|
9012
|
+
});
|
|
9013
|
+
/** `null` when `pure` cleared the row. */
|
|
9014
|
+
var SetTrackPurityResultSchema = object({ purity: TrackPuritySchema.nullable() });
|
|
9015
|
+
var ListTrackRelationsInputSchema = object({
|
|
9016
|
+
deviceId: number().int(),
|
|
9017
|
+
trackId: string().optional(),
|
|
9018
|
+
since: number().int().optional(),
|
|
9019
|
+
until: number().int().optional(),
|
|
9020
|
+
limit: number().int().min(1).max(5e3).optional()
|
|
9021
|
+
});
|
|
9022
|
+
var ListTrackRelationsResultSchema = object({
|
|
9023
|
+
relations: array(TrackRelationSchema).readonly(),
|
|
9024
|
+
purities: array(TrackPuritySchema).readonly(),
|
|
9025
|
+
truncated: boolean()
|
|
9026
|
+
});
|
|
9027
|
+
_enum([
|
|
9028
|
+
"unknown-track",
|
|
9029
|
+
"cross-device",
|
|
9030
|
+
"self-relation",
|
|
9031
|
+
"contradiction",
|
|
9032
|
+
"switch-outside-track",
|
|
9033
|
+
"switch-needs-mixed"
|
|
9034
|
+
]);
|
|
8899
9035
|
/**
|
|
8900
9036
|
* Ops-log — the durable, append-only operations audit shared by the
|
|
8901
9037
|
* recordings and events management surfaces.
|
|
@@ -8971,22 +9107,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
8971
9107
|
"package"
|
|
8972
9108
|
];
|
|
8973
9109
|
/**
|
|
8974
|
-
*
|
|
8975
|
-
*
|
|
9110
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9111
|
+
* an operator can select.
|
|
8976
9112
|
*
|
|
8977
|
-
*
|
|
9113
|
+
* They are the three offered by the `object-detection` step
|
|
8978
9114
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
8979
|
-
* `enabledMacroClasses`). `package`
|
|
8980
|
-
* `MACRO_LABELS` —
|
|
8981
|
-
* `package-detection`,
|
|
8982
|
-
*
|
|
9115
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9116
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9117
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9118
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
8983
9119
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
8984
9120
|
*
|
|
8985
|
-
*
|
|
8986
|
-
*
|
|
8987
|
-
* (`types/detection.ts`);
|
|
8988
|
-
* (`RecordingTriggers.objectClasses`)
|
|
8989
|
-
*
|
|
9121
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9122
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9123
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9124
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9125
|
+
* invisible.
|
|
8990
9126
|
*/
|
|
8991
9127
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
8992
9128
|
"person",
|
|
@@ -9051,17 +9187,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9051
9187
|
"on-device-decision"
|
|
9052
9188
|
]);
|
|
9053
9189
|
/**
|
|
9054
|
-
*
|
|
9055
|
-
*
|
|
9190
|
+
* The macro classes that can open a recording window — the same
|
|
9191
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9056
9192
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9057
9193
|
*/
|
|
9058
9194
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9059
9195
|
/**
|
|
9060
|
-
* True
|
|
9196
|
+
* True when `values` does not repeat an element.
|
|
9061
9197
|
*
|
|
9062
|
-
*
|
|
9063
|
-
*
|
|
9064
|
-
*
|
|
9198
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9199
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9200
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9065
9201
|
*/
|
|
9066
9202
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9067
9203
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9069,34 +9205,34 @@ var RecordingTriggersSchema = object({
|
|
|
9069
9205
|
motion: boolean().optional(),
|
|
9070
9206
|
audioThresholdDbfs: number().optional(),
|
|
9071
9207
|
/**
|
|
9072
|
-
*
|
|
9073
|
-
*
|
|
9074
|
-
*
|
|
9075
|
-
*
|
|
9208
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9209
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9210
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9211
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9076
9212
|
*
|
|
9077
|
-
*
|
|
9078
|
-
*
|
|
9079
|
-
* `minConfidence<Macro>`
|
|
9080
|
-
* (`source: 'onboard'`)
|
|
9081
|
-
*
|
|
9213
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9214
|
+
* those that went through `enabledMacroClasses`, the
|
|
9215
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9216
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9217
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9082
9218
|
*/
|
|
9083
9219
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9084
9220
|
/**
|
|
9085
|
-
*
|
|
9086
|
-
*
|
|
9221
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9222
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9087
9223
|
* `objectClasses`.
|
|
9088
9224
|
*
|
|
9089
|
-
*
|
|
9090
|
-
*
|
|
9091
|
-
*
|
|
9092
|
-
*
|
|
9093
|
-
* device (D12) —
|
|
9225
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9226
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9227
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9228
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9229
|
+
* device (D12) — never a global list of caps.
|
|
9094
9230
|
*
|
|
9095
|
-
*
|
|
9096
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9097
|
-
*
|
|
9098
|
-
*
|
|
9099
|
-
*
|
|
9231
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9232
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9233
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9234
|
+
* the level: a contact found already open at runner restart does not
|
|
9235
|
+
* record.
|
|
9100
9236
|
*/
|
|
9101
9237
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9102
9238
|
});
|
|
@@ -10173,7 +10309,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10173
10309
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10174
10310
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10175
10311
|
* over the values is the exact defect
|
|
10176
|
-
* `docs/design/plans/2026-08-26-
|
|
10312
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10177
10313
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10178
10314
|
*
|
|
10179
10315
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -11449,6 +11585,68 @@ method(object({
|
|
|
11449
11585
|
password: string()
|
|
11450
11586
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11451
11587
|
/**
|
|
11588
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11589
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11590
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11591
|
+
* generous because a timeout fails the whole backup run.
|
|
11592
|
+
*/
|
|
11593
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11594
|
+
/**
|
|
11595
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11596
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11597
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11598
|
+
* owner's host.
|
|
11599
|
+
*/
|
|
11600
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11601
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11602
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11603
|
+
name: string(),
|
|
11604
|
+
rows: number().int().nonnegative()
|
|
11605
|
+
});
|
|
11606
|
+
/**
|
|
11607
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11608
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11609
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11610
|
+
* archiving something it cannot place.
|
|
11611
|
+
*/
|
|
11612
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11613
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11614
|
+
livePath: string(),
|
|
11615
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11616
|
+
snapshotPath: string(),
|
|
11617
|
+
sizeBytes: number().int().nonnegative(),
|
|
11618
|
+
pageCount: number().int().nonnegative(),
|
|
11619
|
+
pageSize: number().int().positive(),
|
|
11620
|
+
/**
|
|
11621
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11622
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11623
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11624
|
+
*/
|
|
11625
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11626
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11627
|
+
copyMs: number().nonnegative(),
|
|
11628
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11629
|
+
verifyMs: number().nonnegative(),
|
|
11630
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11631
|
+
takenAt: number()
|
|
11632
|
+
});
|
|
11633
|
+
/**
|
|
11634
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11635
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11636
|
+
* data dir), because an archive outlives the host that made it.
|
|
11637
|
+
*/
|
|
11638
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11639
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11640
|
+
livePath: string(),
|
|
11641
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11642
|
+
snapshotPath: string()
|
|
11643
|
+
});
|
|
11644
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11645
|
+
kind: "mutation",
|
|
11646
|
+
auth: "admin",
|
|
11647
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11648
|
+
});
|
|
11649
|
+
/**
|
|
11452
11650
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11453
11651
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11454
11652
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11559,7 +11757,12 @@ var ArchiveManifestSchema = object({
|
|
|
11559
11757
|
locations: array(string()),
|
|
11560
11758
|
entries: array(ArchiveEntrySchema),
|
|
11561
11759
|
totalBytes: number(),
|
|
11562
|
-
totalFiles: number()
|
|
11760
|
+
totalFiles: number(),
|
|
11761
|
+
/**
|
|
11762
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11763
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11764
|
+
*/
|
|
11765
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11563
11766
|
});
|
|
11564
11767
|
var LocationStatSchema = object({
|
|
11565
11768
|
name: string(),
|
|
@@ -11817,7 +12020,7 @@ var BrokerStatusEnum = _enum([
|
|
|
11817
12020
|
"unreachable",
|
|
11818
12021
|
"error"
|
|
11819
12022
|
]);
|
|
11820
|
-
var BrokerInfoSchema
|
|
12023
|
+
var BrokerInfoSchema = object({
|
|
11821
12024
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
11822
12025
|
id: string(),
|
|
11823
12026
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -11960,8 +12163,8 @@ var brokerCapability = {
|
|
|
11960
12163
|
kind: "poll"
|
|
11961
12164
|
},
|
|
11962
12165
|
methods: {
|
|
11963
|
-
list: method(ListInputSchema, array(BrokerInfoSchema
|
|
11964
|
-
get: method(GetInputSchema, BrokerInfoSchema
|
|
12166
|
+
list: method(ListInputSchema, array(BrokerInfoSchema)),
|
|
12167
|
+
get: method(GetInputSchema, BrokerInfoSchema.nullable()),
|
|
11965
12168
|
/** Enumerate which addon provides which broker kind(s) for the
|
|
11966
12169
|
* unified create picker. The auto-mount fans this array across
|
|
11967
12170
|
* every registered `broker` provider (array-output method), so the
|
|
@@ -13134,6 +13337,116 @@ var CompositionBlockStateSchema = object({
|
|
|
13134
13337
|
reason: string().optional(),
|
|
13135
13338
|
fields: array(CompositionFieldStateSchema)
|
|
13136
13339
|
});
|
|
13340
|
+
var ComposerBlockSchema = object({
|
|
13341
|
+
id: string().min(1),
|
|
13342
|
+
name: string().min(1).max(120),
|
|
13343
|
+
enabled: boolean(),
|
|
13344
|
+
updatedAt: number(),
|
|
13345
|
+
composition: CompositionSchema
|
|
13346
|
+
});
|
|
13347
|
+
/**
|
|
13348
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13349
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13350
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13351
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13352
|
+
*/
|
|
13353
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13354
|
+
id: string().min(1),
|
|
13355
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13356
|
+
name: string().nullable(),
|
|
13357
|
+
/** The parse error, in the operator's words. */
|
|
13358
|
+
error: string()
|
|
13359
|
+
});
|
|
13360
|
+
method(object({
|
|
13361
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13362
|
+
integrationId: string().nullable(),
|
|
13363
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13364
|
+
storeLoaded: boolean(),
|
|
13365
|
+
blocks: array(ComposerBlockSchema),
|
|
13366
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13367
|
+
restartBlockIds: array(string()),
|
|
13368
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13369
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13370
|
+
}), object({
|
|
13371
|
+
blocks: array(object({
|
|
13372
|
+
blockId: string(),
|
|
13373
|
+
status: CompositionRunStatusSchema,
|
|
13374
|
+
reason: string().optional()
|
|
13375
|
+
})),
|
|
13376
|
+
/**
|
|
13377
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13378
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13379
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13380
|
+
*/
|
|
13381
|
+
acted: boolean()
|
|
13382
|
+
}), {
|
|
13383
|
+
kind: "mutation",
|
|
13384
|
+
auth: "admin"
|
|
13385
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13386
|
+
var NUMBER = {
|
|
13387
|
+
kind: "fixed",
|
|
13388
|
+
result: ["number"]
|
|
13389
|
+
};
|
|
13390
|
+
var BOOLEAN = {
|
|
13391
|
+
kind: "fixed",
|
|
13392
|
+
result: ["boolean"]
|
|
13393
|
+
};
|
|
13394
|
+
Object.freeze({
|
|
13395
|
+
min: NUMBER,
|
|
13396
|
+
max: NUMBER,
|
|
13397
|
+
abs: NUMBER,
|
|
13398
|
+
floor: NUMBER,
|
|
13399
|
+
ceil: NUMBER,
|
|
13400
|
+
sqrt: NUMBER,
|
|
13401
|
+
round: NUMBER,
|
|
13402
|
+
pow: NUMBER,
|
|
13403
|
+
clamp: NUMBER,
|
|
13404
|
+
avg: NUMBER,
|
|
13405
|
+
sum: NUMBER,
|
|
13406
|
+
age: NUMBER,
|
|
13407
|
+
convert: NUMBER,
|
|
13408
|
+
coalesce: { kind: "coalesce" },
|
|
13409
|
+
any: BOOLEAN,
|
|
13410
|
+
all: BOOLEAN,
|
|
13411
|
+
within: BOOLEAN,
|
|
13412
|
+
latest: {
|
|
13413
|
+
kind: "fixed",
|
|
13414
|
+
result: ["number", "null"]
|
|
13415
|
+
},
|
|
13416
|
+
number: {
|
|
13417
|
+
kind: "fixed",
|
|
13418
|
+
result: ["number", "null"]
|
|
13419
|
+
},
|
|
13420
|
+
rose: {
|
|
13421
|
+
kind: "fixed",
|
|
13422
|
+
result: ["number", "null"]
|
|
13423
|
+
},
|
|
13424
|
+
count: NUMBER
|
|
13425
|
+
});
|
|
13426
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
13427
|
+
/**
|
|
13428
|
+
* What a composition may BUILD on a device type (G2, D676): the caps a new
|
|
13429
|
+
* device of that type, or an existing one that lacks them, can be given. The
|
|
13430
|
+
* blockers are the validator's own refusal codes, and a spec compares this
|
|
13431
|
+
* listing with `planComposition` for every capability — the editor can never
|
|
13432
|
+
* offer a feature the save would refuse for the same reason.
|
|
13433
|
+
*/
|
|
13434
|
+
var ComposableFieldSchema = object({
|
|
13435
|
+
path: string(),
|
|
13436
|
+
kind: CompositionFieldKindSchema,
|
|
13437
|
+
nullable: boolean(),
|
|
13438
|
+
required: boolean(),
|
|
13439
|
+
enumValues: array(string()).optional()
|
|
13440
|
+
});
|
|
13441
|
+
var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
13442
|
+
cap: string(),
|
|
13443
|
+
fields: array(ComposableFieldSchema),
|
|
13444
|
+
/** Present for an item-array cap (`consumables.items`). */
|
|
13445
|
+
itemArray: object({
|
|
13446
|
+
path: string(),
|
|
13447
|
+
keyField: string()
|
|
13448
|
+
}).optional()
|
|
13449
|
+
})) });
|
|
13137
13450
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13138
13451
|
* agent is the reason placement is not fixed to the hub. */
|
|
13139
13452
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13298,7 +13611,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13298
13611
|
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13299
13612
|
addonId: string().min(1),
|
|
13300
13613
|
stableId: string().min(1)
|
|
13301
|
-
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
|
|
13614
|
+
}), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
|
|
13302
13615
|
composition: CompositionSchema,
|
|
13303
13616
|
blockId: string().optional()
|
|
13304
13617
|
}), CompositionValidationSchema, {
|
|
@@ -13306,52 +13619,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13306
13619
|
auth: "admin",
|
|
13307
13620
|
access: "view"
|
|
13308
13621
|
});
|
|
13309
|
-
var ComposerBlockSchema = object({
|
|
13310
|
-
id: string().min(1),
|
|
13311
|
-
name: string().min(1).max(120),
|
|
13312
|
-
enabled: boolean(),
|
|
13313
|
-
updatedAt: number(),
|
|
13314
|
-
composition: CompositionSchema
|
|
13315
|
-
});
|
|
13316
|
-
/**
|
|
13317
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13318
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13319
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13320
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13321
|
-
*/
|
|
13322
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13323
|
-
id: string().min(1),
|
|
13324
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13325
|
-
name: string().nullable(),
|
|
13326
|
-
/** The parse error, in the operator's words. */
|
|
13327
|
-
error: string()
|
|
13328
|
-
});
|
|
13329
|
-
method(object({
|
|
13330
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13331
|
-
integrationId: string().nullable(),
|
|
13332
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13333
|
-
storeLoaded: boolean(),
|
|
13334
|
-
blocks: array(ComposerBlockSchema),
|
|
13335
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13336
|
-
restartBlockIds: array(string()),
|
|
13337
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13338
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13339
|
-
}), object({
|
|
13340
|
-
blocks: array(object({
|
|
13341
|
-
blockId: string(),
|
|
13342
|
-
status: CompositionRunStatusSchema,
|
|
13343
|
-
reason: string().optional()
|
|
13344
|
-
})),
|
|
13345
|
-
/**
|
|
13346
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13347
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13348
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13349
|
-
*/
|
|
13350
|
-
acted: boolean()
|
|
13351
|
-
}), {
|
|
13352
|
-
kind: "mutation",
|
|
13353
|
-
auth: "admin"
|
|
13354
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13355
13622
|
/**
|
|
13356
13623
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13357
13624
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -13646,7 +13913,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13646
13913
|
*
|
|
13647
13914
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13648
13915
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13649
|
-
* (`docs/design/2026-08-26-
|
|
13916
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13650
13917
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13651
13918
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13652
13919
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14639,7 +14906,17 @@ var SiteZoneSchema = object({
|
|
|
14639
14906
|
var ProviderStatusSchema = object({
|
|
14640
14907
|
connected: boolean(),
|
|
14641
14908
|
deviceCount: number(),
|
|
14642
|
-
error: string().optional()
|
|
14909
|
+
error: string().optional(),
|
|
14910
|
+
/**
|
|
14911
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14912
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14913
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14914
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14915
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14916
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14917
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14918
|
+
*/
|
|
14919
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
14643
14920
|
});
|
|
14644
14921
|
object({
|
|
14645
14922
|
externalId: string(),
|
|
@@ -15518,6 +15795,121 @@ method(object({
|
|
|
15518
15795
|
deviceIds: array(number()).readonly(),
|
|
15519
15796
|
caps: array(string()).readonly().optional()
|
|
15520
15797
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15798
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
15799
|
+
DeviceType.Camera;
|
|
15800
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15801
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15802
|
+
DeviceType.Camera;
|
|
15803
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15804
|
+
state: literal("unreachable"),
|
|
15805
|
+
reason: string()
|
|
15806
|
+
})]);
|
|
15807
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15808
|
+
var ExtensionSourceSchema = object({
|
|
15809
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15810
|
+
source: string(),
|
|
15811
|
+
label: string(),
|
|
15812
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15813
|
+
addonId: string().optional(),
|
|
15814
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15815
|
+
});
|
|
15816
|
+
/**
|
|
15817
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15818
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15819
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15820
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15821
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15822
|
+
*/
|
|
15823
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15824
|
+
"ok",
|
|
15825
|
+
"missing",
|
|
15826
|
+
"foreign",
|
|
15827
|
+
"unavailable"
|
|
15828
|
+
]);
|
|
15829
|
+
var ExtensionSlotSourceSchema = object({
|
|
15830
|
+
deviceId: number().int(),
|
|
15831
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15832
|
+
name: string().nullable(),
|
|
15833
|
+
health: ExtensionSourceHealthSchema,
|
|
15834
|
+
detail: string().optional()
|
|
15835
|
+
});
|
|
15836
|
+
/**
|
|
15837
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15838
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
15839
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
15840
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
15841
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
15842
|
+
* not be read; it is not "inactive" (D315).
|
|
15843
|
+
*/
|
|
15844
|
+
var ExtensionSlotActivationSchema = object({
|
|
15845
|
+
state: _enum([
|
|
15846
|
+
"active",
|
|
15847
|
+
"inactive",
|
|
15848
|
+
"unknown"
|
|
15849
|
+
]),
|
|
15850
|
+
authority: string(),
|
|
15851
|
+
detail: string().optional()
|
|
15852
|
+
});
|
|
15853
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15854
|
+
state: literal("ok"),
|
|
15855
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15856
|
+
slotRef: string(),
|
|
15857
|
+
slot: ExtensionSlotIdSchema,
|
|
15858
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
15859
|
+
authority: string(),
|
|
15860
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15861
|
+
value: ExtensionSlotValueSchema,
|
|
15862
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15863
|
+
/**
|
|
15864
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15865
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15866
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15867
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15868
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15869
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15870
|
+
* older than D655.
|
|
15871
|
+
*/
|
|
15872
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15873
|
+
}), object({
|
|
15874
|
+
state: literal("unreachable"),
|
|
15875
|
+
addonId: string(),
|
|
15876
|
+
reason: string()
|
|
15877
|
+
})]);
|
|
15878
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15879
|
+
deviceId: number().int(),
|
|
15880
|
+
name: string(),
|
|
15881
|
+
type: string(),
|
|
15882
|
+
location: string().nullable(),
|
|
15883
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15884
|
+
parentName: string().nullable(),
|
|
15885
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15886
|
+
suggested: boolean(),
|
|
15887
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15888
|
+
reason: string().nullable()
|
|
15889
|
+
})) });
|
|
15890
|
+
/**
|
|
15891
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15892
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15893
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15894
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15895
|
+
*/
|
|
15896
|
+
var ExtensionSetResultSchema = object({
|
|
15897
|
+
applied: literal(true),
|
|
15898
|
+
reload: _enum([
|
|
15899
|
+
"none",
|
|
15900
|
+
"host",
|
|
15901
|
+
"parent"
|
|
15902
|
+
])
|
|
15903
|
+
});
|
|
15904
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15905
|
+
deviceId: number().int(),
|
|
15906
|
+
slotRef: string().min(1)
|
|
15907
|
+
});
|
|
15908
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15909
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15910
|
+
kind: "mutation",
|
|
15911
|
+
auth: "admin"
|
|
15912
|
+
});
|
|
15521
15913
|
/**
|
|
15522
15914
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15523
15915
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
@@ -15741,7 +16133,7 @@ method(object({
|
|
|
15741
16133
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
15742
16134
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
15743
16135
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
15744
|
-
* ricontrolliamo tutti questi punti"
|
|
16136
|
+
* 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
|
|
15745
16137
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
15746
16138
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
15747
16139
|
* be READ.
|
|
@@ -17117,7 +17509,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
17117
17509
|
"unreachable",
|
|
17118
17510
|
"tls-error"
|
|
17119
17511
|
]);
|
|
17120
|
-
var BrokerInfoSchema = object({
|
|
17512
|
+
var BrokerInfoSchema$1 = object({
|
|
17121
17513
|
id: string(),
|
|
17122
17514
|
name: string(),
|
|
17123
17515
|
url: string(),
|
|
@@ -17180,7 +17572,7 @@ var StatusSchema = object({
|
|
|
17180
17572
|
brokerCount: number(),
|
|
17181
17573
|
embeddedRunning: boolean()
|
|
17182
17574
|
});
|
|
17183
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17575
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17184
17576
|
kind: "mutation",
|
|
17185
17577
|
auth: "admin"
|
|
17186
17578
|
}), method(IdInputSchema, _void(), {
|
|
@@ -18528,17 +18920,25 @@ var NcScheduleSchema = object({
|
|
|
18528
18920
|
*/
|
|
18529
18921
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
18530
18922
|
/**
|
|
18923
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
18924
|
+
* every section; `section` = one notification per section with something to
|
|
18925
|
+
* say (an unavailable section included), each titled by its section.
|
|
18926
|
+
*/
|
|
18927
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
18928
|
+
/**
|
|
18531
18929
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
18532
18930
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
18533
18931
|
* (low batteries, consumables to replace, devices offline, updates
|
|
18534
|
-
* available, ...), after its own filters
|
|
18932
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
18933
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
18535
18934
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
18536
18935
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
18537
18936
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
18538
18937
|
*/
|
|
18539
18938
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
18540
18939
|
mode: literal("summary"),
|
|
18541
|
-
schedule: NcScheduleSchema
|
|
18940
|
+
schedule: NcScheduleSchema,
|
|
18941
|
+
split: NcStateSummarySplitSchema.optional()
|
|
18542
18942
|
})]);
|
|
18543
18943
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
18544
18944
|
var NcPlateMatcherSchema = object({
|
|
@@ -18678,8 +19078,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
|
|
|
18678
19078
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18679
19079
|
var NcZoneConditionSchema = object({
|
|
18680
19080
|
ids: array(string().min(1)).min(1),
|
|
18681
|
-
/**
|
|
18682
|
-
|
|
19081
|
+
/**
|
|
19082
|
+
* LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
|
|
19083
|
+
* is what both editors mean and all they write since D690: "all of" was
|
|
19084
|
+
* removed from the editors because on an immediate rule it asked one
|
|
19085
|
+
* detection to stand in every zone at once. Still ACCEPTED, and `all` still
|
|
19086
|
+
* evaluated, so a stored rule keeps parsing and meaning what it meant.
|
|
19087
|
+
*/
|
|
19088
|
+
match: _enum(["any", "all"]).optional()
|
|
18683
19089
|
});
|
|
18684
19090
|
/**
|
|
18685
19091
|
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
@@ -19183,10 +19589,12 @@ var NcMediaPolicySchema = object({
|
|
|
19183
19589
|
/**
|
|
19184
19590
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
19185
19591
|
* notification suppresses.
|
|
19186
|
-
* - `
|
|
19187
|
-
*
|
|
19188
|
-
*
|
|
19189
|
-
*
|
|
19592
|
+
* - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
|
|
19593
|
+
* independent window per detected class: cat→dog fires at once, cat→cat
|
|
19594
|
+
* still waits.
|
|
19595
|
+
* - `shared` — one window for the whole rule/scope: a cat silences the next
|
|
19596
|
+
* dog for `cooldownSec`. Only written when an operator picks it; it is no
|
|
19597
|
+
* longer what an unset rule means.
|
|
19190
19598
|
*
|
|
19191
19599
|
* AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
|
|
19192
19600
|
* must not be swallowed by a bark's window (the precedent this generalizes —
|
|
@@ -19201,8 +19609,11 @@ var NcThrottleSchema = object({
|
|
|
19201
19609
|
/**
|
|
19202
19610
|
* Class granularity of the cooldown key. Optional rather than defaulted:
|
|
19203
19611
|
* a Zod default does NOT run on the addon→addon cap path, so a persisted
|
|
19204
|
-
* rule authored before this field simply carries none
|
|
19205
|
-
*
|
|
19612
|
+
* rule authored before this field simply carries none. The engine used to
|
|
19613
|
+
* read absent as `shared` (D36); since 2026-10-01 it reads absent as
|
|
19614
|
+
* `per-class` — the operator's default — and only an explicit `shared`
|
|
19615
|
+
* still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
|
|
19616
|
+
* engine, and D36's dated note.
|
|
19206
19617
|
*/
|
|
19207
19618
|
granularity: NcThrottleGranularitySchema.optional()
|
|
19208
19619
|
});
|
|
@@ -19375,78 +19786,16 @@ var NcRuleInputSchema = object({
|
|
|
19375
19786
|
*/
|
|
19376
19787
|
confirm: NcConfirmSchema.optional(),
|
|
19377
19788
|
/**
|
|
19378
|
-
*
|
|
19379
|
-
*
|
|
19380
|
-
*
|
|
19381
|
-
*
|
|
19382
|
-
*
|
|
19383
|
-
*
|
|
19384
|
-
*
|
|
19385
|
-
*
|
|
19386
|
-
*
|
|
19387
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
19388
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
19389
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
19390
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
19391
|
-
*
|
|
19392
|
-
* | value | what happens |
|
|
19393
|
-
* | --- | --- |
|
|
19394
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
19395
|
-
* | 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) |
|
|
19396
|
-
*
|
|
19397
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19398
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
19399
|
-
* rule authored before this field meant.
|
|
19400
|
-
*
|
|
19401
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
19402
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
19403
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
19404
|
-
* be satisfied, because a closed track carries no crossing.
|
|
19405
|
-
*/
|
|
19406
|
-
waitForEnhancement: boolean().optional(),
|
|
19407
|
-
/**
|
|
19408
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
19409
|
-
*
|
|
19410
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
19411
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
19412
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
19413
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
19414
|
-
* notification with an updated one naming everybody. The push carries the
|
|
19415
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
19416
|
-
*
|
|
19417
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
19418
|
-
*
|
|
19419
|
-
* ### Why an idle cutoff and not a window
|
|
19420
|
-
*
|
|
19421
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19422
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19423
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19424
|
-
* 30 s is a widely shipped value for the same decision.
|
|
19425
|
-
*
|
|
19426
|
-
* ### What it replaces
|
|
19427
|
-
*
|
|
19428
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
19429
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
19430
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
19431
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
19432
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
19433
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
19434
|
-
* throttled by the window its own first member spent.
|
|
19435
|
-
*
|
|
19436
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
19437
|
-
*
|
|
19438
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
19439
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
19440
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
19441
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
19442
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
19443
|
-
* path. Neither combination fires twice for one subject.
|
|
19444
|
-
*
|
|
19445
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19446
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
19447
|
-
* field existed.
|
|
19789
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
19790
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
19791
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
19792
|
+
* the rule matched, with one mosaic tile per subject.
|
|
19793
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
19794
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
19795
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
19796
|
+
* path does not run Zod defaults.
|
|
19448
19797
|
*/
|
|
19449
|
-
|
|
19798
|
+
groupingSec: number().int().min(5).max(60).optional()
|
|
19450
19799
|
});
|
|
19451
19800
|
/**
|
|
19452
19801
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -19494,9 +19843,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
19494
19843
|
"targetUsers",
|
|
19495
19844
|
"snoozeOptions",
|
|
19496
19845
|
"snoozeAllowGlobal",
|
|
19497
|
-
"waitForEnhancement",
|
|
19498
19846
|
"actions",
|
|
19499
19847
|
"confirm",
|
|
19848
|
+
"groupingSec",
|
|
19849
|
+
"waitForEnhancement",
|
|
19500
19850
|
"groupIdleSec"
|
|
19501
19851
|
]);
|
|
19502
19852
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -19518,19 +19868,47 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19518
19868
|
*/
|
|
19519
19869
|
disabledTargetIds: array(string()).default([])
|
|
19520
19870
|
});
|
|
19871
|
+
/**
|
|
19872
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
19873
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
19874
|
+
* job is not an open state, and the alarm stays instant.
|
|
19875
|
+
*/
|
|
19876
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
19877
|
+
"device-state",
|
|
19878
|
+
"streams",
|
|
19879
|
+
"battery",
|
|
19880
|
+
"consumables",
|
|
19881
|
+
"tanks",
|
|
19882
|
+
"detection-blind",
|
|
19883
|
+
"nodes",
|
|
19884
|
+
"addons",
|
|
19885
|
+
"updates"
|
|
19886
|
+
]);
|
|
19521
19887
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
19522
19888
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
19523
|
-
id:
|
|
19889
|
+
id: NcStateSummarySectionIdSchema,
|
|
19524
19890
|
status: _enum(["read", "unavailable"]),
|
|
19525
19891
|
items: number().int().nonnegative(),
|
|
19526
19892
|
reason: string().optional()
|
|
19527
19893
|
});
|
|
19528
19894
|
/**
|
|
19895
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
19896
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19897
|
+
*/
|
|
19898
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
19899
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
19900
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19901
|
+
title: string(),
|
|
19902
|
+
text: string(),
|
|
19903
|
+
count: number().int().nonnegative()
|
|
19904
|
+
});
|
|
19905
|
+
/**
|
|
19529
19906
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
19530
19907
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
19531
19908
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
19532
19909
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
19533
|
-
* (backups & exports).
|
|
19910
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
19911
|
+
* optional, so an older hub's answer still parses.
|
|
19534
19912
|
*/
|
|
19535
19913
|
var NcStateSummaryPreviewSchema = object({
|
|
19536
19914
|
empty: boolean(),
|
|
@@ -19538,7 +19916,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
19538
19916
|
text: string(),
|
|
19539
19917
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
19540
19918
|
dropped: record(string(), number().int().nonnegative()),
|
|
19541
|
-
excludedGroups: array(string())
|
|
19919
|
+
excludedGroups: array(string()),
|
|
19920
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
19921
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
19542
19922
|
});
|
|
19543
19923
|
var NcTestResultSchema = object({
|
|
19544
19924
|
recordId: string(),
|
|
@@ -19953,6 +20333,29 @@ object({
|
|
|
19953
20333
|
firstAt: number(),
|
|
19954
20334
|
lastAt: number()
|
|
19955
20335
|
});
|
|
20336
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
20337
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
20338
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
20339
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
20340
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
20341
|
+
mode: AlarmArmModeSchema,
|
|
20342
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20343
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20344
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
20345
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20346
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20347
|
+
mode: AlarmArmModeSchema,
|
|
20348
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20349
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20350
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
20351
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20352
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20353
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
20354
|
+
mode: AlarmArmModeSchema,
|
|
20355
|
+
deviceId: number().int().positive(),
|
|
20356
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
20357
|
+
nonBlocking: boolean()
|
|
20358
|
+
});
|
|
19956
20359
|
/**
|
|
19957
20360
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
19958
20361
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -19961,10 +20364,10 @@ object({
|
|
|
19961
20364
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
19962
20365
|
mode: AlarmArmModeSchema,
|
|
19963
20366
|
deviceIds: array(number().int()).max(200)
|
|
19964
|
-
})).max(8).refine(
|
|
20367
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
19965
20368
|
/**
|
|
19966
|
-
* The three durations
|
|
19967
|
-
* transitions, and which openings each mode tolerates.
|
|
20369
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
20370
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
19968
20371
|
*
|
|
19969
20372
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
19970
20373
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -19974,15 +20377,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
19974
20377
|
*/
|
|
19975
20378
|
var NcAlarmSettingsSchema = object({
|
|
19976
20379
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
19977
|
-
exitDelaySec:
|
|
20380
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
19978
20381
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
19979
|
-
entryDelaySec:
|
|
20382
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
19980
20383
|
/**
|
|
19981
20384
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
19982
20385
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
19983
20386
|
* existed, and therefore what an untouched install keeps doing.
|
|
19984
20387
|
*/
|
|
19985
|
-
triggeredDurationSec:
|
|
20388
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
19986
20389
|
/**
|
|
19987
20390
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
19988
20391
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -20005,17 +20408,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
20005
20408
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
20006
20409
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
20007
20410
|
*/
|
|
20008
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
20411
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
20412
|
+
/**
|
|
20413
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
20414
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
20415
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
20416
|
+
*/
|
|
20417
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
20009
20418
|
});
|
|
20010
20419
|
/**
|
|
20011
20420
|
* Every field optional — a tab edits one control at a time.
|
|
20012
20421
|
*
|
|
20013
|
-
* `nonBlocking`
|
|
20014
|
-
* remove an inner `.default()`, so a patch that never
|
|
20015
|
-
* parse to `
|
|
20016
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
20422
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
20423
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
20424
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
20425
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
20426
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
20017
20427
|
*/
|
|
20018
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20428
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20429
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
20430
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
20431
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
20432
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
20433
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
20434
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
20019
20435
|
/**
|
|
20020
20436
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
20021
20437
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -20115,6 +20531,28 @@ var NcAlarmConfigSchema = object({
|
|
|
20115
20531
|
*/
|
|
20116
20532
|
live: NcAlarmLiveSchema.optional()
|
|
20117
20533
|
});
|
|
20534
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
20535
|
+
"open",
|
|
20536
|
+
"closed",
|
|
20537
|
+
"unknown",
|
|
20538
|
+
"not-opening"
|
|
20539
|
+
]);
|
|
20540
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
20541
|
+
var NcAlarmSensorStateSchema = object({
|
|
20542
|
+
deviceId: number().int().positive(),
|
|
20543
|
+
reading: NcAlarmSensorReadingSchema,
|
|
20544
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
20545
|
+
state: string().nullable(),
|
|
20546
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
20547
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
20548
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
20549
|
+
online: boolean().nullable()
|
|
20550
|
+
});
|
|
20551
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
20552
|
+
var NcAlarmSensorsSchema = object({
|
|
20553
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
20554
|
+
readAt: number().int().nonnegative()
|
|
20555
|
+
});
|
|
20118
20556
|
/**
|
|
20119
20557
|
* ONE rule's demand on ONE camera's clip ring.
|
|
20120
20558
|
*
|
|
@@ -20205,7 +20643,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
20205
20643
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
20206
20644
|
kind: "mutation",
|
|
20207
20645
|
auth: "admin"
|
|
20208
|
-
});
|
|
20646
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
20209
20647
|
/**
|
|
20210
20648
|
* Zod schemas for persisted record types.
|
|
20211
20649
|
*
|
|
@@ -20552,12 +20990,26 @@ var CameraSensorRefSchema = object({
|
|
|
20552
20990
|
function cameraSensorRefKey(ref) {
|
|
20553
20991
|
return `${ref.addonId}/${ref.stableId}`;
|
|
20554
20992
|
}
|
|
20555
|
-
/**
|
|
20556
|
-
|
|
20557
|
-
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
20993
|
+
/**
|
|
20994
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
20995
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
20996
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
20997
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
20998
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
20999
|
+
*/
|
|
21000
|
+
var CameraSensorModeSchema = _enum([
|
|
21001
|
+
"in-addition",
|
|
21002
|
+
"confirm",
|
|
21003
|
+
"replace"
|
|
21004
|
+
]);
|
|
21005
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
21006
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
21007
|
+
/**
|
|
21008
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
21009
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
21010
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
21011
|
+
*/
|
|
21012
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
20561
21013
|
const seen = /* @__PURE__ */ new Set();
|
|
20562
21014
|
value.sensors.forEach((ref, index) => {
|
|
20563
21015
|
const key = cameraSensorRefKey(ref);
|
|
@@ -20569,39 +21021,41 @@ object({
|
|
|
20569
21021
|
seen.add(key);
|
|
20570
21022
|
});
|
|
20571
21023
|
});
|
|
20572
|
-
|
|
21024
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
21025
|
+
var AttachmentFields = {
|
|
20573
21026
|
addonId: string(),
|
|
20574
|
-
stableId: string()
|
|
21027
|
+
stableId: string(),
|
|
21028
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
20575
21029
|
};
|
|
20576
21030
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
20577
21031
|
object({
|
|
20578
|
-
...
|
|
21032
|
+
...AttachmentFields,
|
|
20579
21033
|
state: literal("ready"),
|
|
20580
21034
|
deviceId: number(),
|
|
20581
21035
|
name: string(),
|
|
20582
21036
|
caps: array(string()).readonly()
|
|
20583
21037
|
}),
|
|
20584
21038
|
object({
|
|
20585
|
-
...
|
|
21039
|
+
...AttachmentFields,
|
|
20586
21040
|
state: literal("offline"),
|
|
20587
21041
|
deviceId: number(),
|
|
20588
21042
|
name: string(),
|
|
20589
21043
|
reason: _enum(["offline", "disabled"])
|
|
20590
21044
|
}),
|
|
20591
21045
|
object({
|
|
20592
|
-
...
|
|
21046
|
+
...AttachmentFields,
|
|
20593
21047
|
state: literal("missing"),
|
|
20594
21048
|
reason: string()
|
|
20595
21049
|
}),
|
|
20596
21050
|
object({
|
|
20597
|
-
...
|
|
21051
|
+
...AttachmentFields,
|
|
20598
21052
|
state: literal("unsupported"),
|
|
20599
21053
|
deviceId: number(),
|
|
20600
21054
|
name: string(),
|
|
20601
21055
|
reason: string()
|
|
20602
21056
|
}),
|
|
20603
21057
|
object({
|
|
20604
|
-
...
|
|
21058
|
+
...AttachmentFields,
|
|
20605
21059
|
state: literal("unreadable"),
|
|
20606
21060
|
reason: string()
|
|
20607
21061
|
})
|
|
@@ -20614,17 +21068,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
20614
21068
|
* say.
|
|
20615
21069
|
*/
|
|
20616
21070
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
21071
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
21072
|
+
var CameraOwnMotionSchema = _enum([
|
|
21073
|
+
"always",
|
|
21074
|
+
"when-confirmed",
|
|
21075
|
+
"never"
|
|
21076
|
+
]);
|
|
21077
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
21078
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
21079
|
+
/**
|
|
21080
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
21081
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
21082
|
+
* so a view of the camera's own row reads this.
|
|
21083
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
21084
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
21085
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
21086
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
21087
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
21088
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
21089
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
21090
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
21091
|
+
*/
|
|
21092
|
+
var CameraRawLevelSchema = object({
|
|
21093
|
+
detected: boolean(),
|
|
21094
|
+
atMs: number()
|
|
21095
|
+
});
|
|
20617
21096
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
20618
|
-
object({
|
|
21097
|
+
object({
|
|
21098
|
+
state: literal("not-configured"),
|
|
21099
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
21100
|
+
}),
|
|
20619
21101
|
object({
|
|
20620
21102
|
state: literal("unreadable"),
|
|
20621
|
-
reason: string()
|
|
21103
|
+
reason: string(),
|
|
21104
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20622
21105
|
}),
|
|
20623
21106
|
object({
|
|
20624
21107
|
state: literal("configured"),
|
|
20625
|
-
|
|
21108
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
20626
21109
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
20627
|
-
|
|
21110
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
21111
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
21112
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
21113
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
20628
21114
|
})
|
|
20629
21115
|
]);
|
|
20630
21116
|
Object.freeze({
|
|
@@ -21309,14 +21795,14 @@ var TrackSchema = object({
|
|
|
21309
21795
|
* `derive-returned-null tile=standin`,
|
|
21310
21796
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
21311
21797
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
21312
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
21798
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
21313
21799
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
21314
21800
|
*
|
|
21315
21801
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
21316
21802
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
21317
21803
|
* while its key frame missed carried no reason at all — three of the four
|
|
21318
21804
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
21319
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
21805
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
21320
21806
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
21321
21807
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
21322
21808
|
* tile ended up being.
|
|
@@ -21403,7 +21889,7 @@ var MotionEventSchema = object({
|
|
|
21403
21889
|
/**
|
|
21404
21890
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
21405
21891
|
* first entry is always `0`) of every genuine off→on transition the
|
|
21406
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
21892
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
21407
21893
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
21408
21894
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
21409
21895
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -21927,6 +22413,7 @@ var KeyEventSchema = object({
|
|
|
21927
22413
|
bestEventId: string(),
|
|
21928
22414
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
21929
22415
|
windowMs: number().optional(),
|
|
22416
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
21930
22417
|
...TrackFlagFields,
|
|
21931
22418
|
...TrackRetrainFields
|
|
21932
22419
|
});
|
|
@@ -22459,7 +22946,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22459
22946
|
trackIds: array(string()).min(1)
|
|
22460
22947
|
}), object({
|
|
22461
22948
|
deleted: number().int(),
|
|
22462
|
-
failed: array(string()).readonly()
|
|
22949
|
+
failed: array(string()).readonly(),
|
|
22950
|
+
sparedMediaIds: array(number().int()).readonly().optional()
|
|
22463
22951
|
}), {
|
|
22464
22952
|
kind: "mutation",
|
|
22465
22953
|
auth: "admin"
|
|
@@ -22468,7 +22956,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22468
22956
|
deviceId: number(),
|
|
22469
22957
|
trackId: string(),
|
|
22470
22958
|
flags: TrackFlagsPatchSchema
|
|
22471
|
-
}), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(BirthDecisionQueryInputSchema, array(BirthDecisionRecordSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
|
|
22959
|
+
}), 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, {
|
|
22472
22960
|
kind: "query",
|
|
22473
22961
|
auth: "admin"
|
|
22474
22962
|
}), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
|
|
@@ -23854,8 +24342,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
23854
24342
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
23855
24343
|
* analyzer providers) running on decoded frames in this runner.
|
|
23856
24344
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
23857
|
-
* analytics). The provider emits ProviderMotion
|
|
23858
|
-
*
|
|
24345
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
24346
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
24347
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
24348
|
+
* `reportMotion`.
|
|
23859
24349
|
*/
|
|
23860
24350
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
23861
24351
|
/**
|
|
@@ -24032,7 +24522,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24032
24522
|
hasGpu: boolean(),
|
|
24033
24523
|
inferenceBackend: string().optional(),
|
|
24034
24524
|
cpuCores: number().optional()
|
|
24035
|
-
})
|
|
24525
|
+
}),
|
|
24526
|
+
/**
|
|
24527
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
24528
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
24529
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
24530
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
24531
|
+
* writers.
|
|
24532
|
+
*/
|
|
24533
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
24036
24534
|
});
|
|
24037
24535
|
/**
|
|
24038
24536
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -24666,7 +25164,64 @@ var NodeInferenceDevicesSchema = object({
|
|
|
24666
25164
|
reachable: boolean(),
|
|
24667
25165
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
24668
25166
|
});
|
|
24669
|
-
|
|
25167
|
+
/**
|
|
25168
|
+
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
25169
|
+
*
|
|
25170
|
+
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
25171
|
+
* device lifecycle events, queries each runner's capacity + hardware
|
|
25172
|
+
* profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
|
|
25173
|
+
* appropriate runner instances. Persists assignments via the multi-level
|
|
25174
|
+
* settings store so they survive hub restarts.
|
|
25175
|
+
*
|
|
25176
|
+
* Strictly the control plane: never sees a frame, never calls inference,
|
|
25177
|
+
* never drains queues. The runner does that work locally on each agent.
|
|
25178
|
+
*/
|
|
25179
|
+
/**
|
|
25180
|
+
* The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
|
|
25181
|
+
* camera's attached sensors (D672). `config: null` removes the attachment —
|
|
25182
|
+
* the camera reads `not-configured` again, never `unreadable`.
|
|
25183
|
+
*/
|
|
25184
|
+
var SetCameraSensorsInputSchema = object({
|
|
25185
|
+
deviceId: number().int().nonnegative(),
|
|
25186
|
+
/** `null` removes the attachment: the camera goes back to `not-configured`. */
|
|
25187
|
+
config: CameraSensorsConfigSchema.nullable()
|
|
25188
|
+
});
|
|
25189
|
+
/**
|
|
25190
|
+
* Why an early occupancy look (D691) was not scheduled.
|
|
25191
|
+
*
|
|
25192
|
+
* - `unknown-camera` — no session was ever dispatched for it, so there is no
|
|
25193
|
+
* node and no config to attach a burst with.
|
|
25194
|
+
* - `out-of-range` — the ask is negative or further out than the orchestrator
|
|
25195
|
+
* will hold a timer for; the parked-object cadence is the answer there.
|
|
25196
|
+
* - `no-burst-producer` — this build has no burst producer at all.
|
|
25197
|
+
* - `already-looked` — this camera's ONE early look since its last session has
|
|
25198
|
+
* been spent. A look's own burst can re-arm a flickering flip, and a look
|
|
25199
|
+
* per arm would chain a burst every ~30 s forever (review H2); the next
|
|
25200
|
+
* real session re-arms the budget.
|
|
25201
|
+
*/
|
|
25202
|
+
var OccupancyLookRefusalSchema = _enum([
|
|
25203
|
+
"unknown-camera",
|
|
25204
|
+
"out-of-range",
|
|
25205
|
+
"no-burst-producer",
|
|
25206
|
+
"already-looked"
|
|
25207
|
+
]);
|
|
25208
|
+
method(object({
|
|
25209
|
+
deviceId: number().int().nonnegative(),
|
|
25210
|
+
/** How long from NOW until the pending flip's sustain window ends. RELATIVE,
|
|
25211
|
+
* so the caller's clock and the orchestrator's never have to agree. */
|
|
25212
|
+
afterMs: number().finite(),
|
|
25213
|
+
/** Why, for the log. */
|
|
25214
|
+
reason: string()
|
|
25215
|
+
}), object({
|
|
25216
|
+
scheduled: boolean(),
|
|
25217
|
+
/** When `scheduled`: how long until the burst is dialled. */
|
|
25218
|
+
dueInMs: number().optional(),
|
|
25219
|
+
/** When not `scheduled`: why. */
|
|
25220
|
+
refusedBecause: OccupancyLookRefusalSchema.optional()
|
|
25221
|
+
}), {
|
|
25222
|
+
kind: "mutation",
|
|
25223
|
+
auth: "admin"
|
|
25224
|
+
}), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
24670
25225
|
kind: "mutation",
|
|
24671
25226
|
auth: "admin"
|
|
24672
25227
|
}), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
|
|
@@ -24820,7 +25375,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
|
|
|
24820
25375
|
}), CameraSwitchGroupSchema, {
|
|
24821
25376
|
kind: "mutation",
|
|
24822
25377
|
auth: "admin"
|
|
24823
|
-
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(
|
|
25378
|
+
}), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
|
|
25379
|
+
kind: "mutation",
|
|
25380
|
+
auth: "admin"
|
|
25381
|
+
}), method(_void(), DiskReconcileJobSchema, {
|
|
24824
25382
|
kind: "mutation",
|
|
24825
25383
|
auth: "admin"
|
|
24826
25384
|
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
@@ -26637,7 +27195,7 @@ var ClipPlaybackSchema = object({
|
|
|
26637
27195
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
26638
27196
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
26639
27197
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
26640
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
27198
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
26641
27199
|
* D558 "Considered and not taken").
|
|
26642
27200
|
*/
|
|
26643
27201
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -26898,7 +27456,7 @@ DeviceType.Camera, method(object({
|
|
|
26898
27456
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
26899
27457
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
26900
27458
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
26901
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
27459
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
26902
27460
|
* nothing to filter out of it.
|
|
26903
27461
|
*/
|
|
26904
27462
|
provider: string().min(1)
|
|
@@ -27026,219 +27584,6 @@ DeviceType.Camera, method(object({
|
|
|
27026
27584
|
auth: "protected"
|
|
27027
27585
|
});
|
|
27028
27586
|
/**
|
|
27029
|
-
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
27030
|
-
* name (same pattern as `snapshot`):
|
|
27031
|
-
*
|
|
27032
|
-
* - **Native** providers: registered per-device by device-driver
|
|
27033
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
27034
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
27035
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
27036
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
27037
|
-
* ring; status tracks the last press and a pressCount since start
|
|
27038
|
-
* (diagnostic).
|
|
27039
|
-
*
|
|
27040
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
27041
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
27042
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
27043
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
27044
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
27045
|
-
* device + trigger in the per-device settings.
|
|
27046
|
-
*
|
|
27047
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
27048
|
-
* — subscribers listening at the camera level receive ring events
|
|
27049
|
-
* with `via[]` populated. No code on the parent needed.
|
|
27050
|
-
*/
|
|
27051
|
-
var DoorbellStatusSchema = object({
|
|
27052
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
27053
|
-
lastPressedAt: number().nullable(),
|
|
27054
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
27055
|
-
pressCountSinceStart: number()
|
|
27056
|
-
});
|
|
27057
|
-
var DoorbellPressEventSchema = object({
|
|
27058
|
-
deviceId: number(),
|
|
27059
|
-
timestamp: number()
|
|
27060
|
-
});
|
|
27061
|
-
/**
|
|
27062
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
27063
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
27064
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
27065
|
-
*/
|
|
27066
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
27067
|
-
/**
|
|
27068
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
27069
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
27070
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
27071
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
27072
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
27073
|
-
* reports it, it never writes it.
|
|
27074
|
-
*/
|
|
27075
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
27076
|
-
id: "doorbell-source",
|
|
27077
|
-
label: "Doorbell trigger devices",
|
|
27078
|
-
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.",
|
|
27079
|
-
shape: "association",
|
|
27080
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
27081
|
-
sourceCaps: SOURCE_CAPS,
|
|
27082
|
-
cardinality: "many",
|
|
27083
|
-
value: DoorbellSourceSlotValueSchema
|
|
27084
|
-
};
|
|
27085
|
-
var doorbellCapability = {
|
|
27086
|
-
name: "doorbell",
|
|
27087
|
-
scope: "device",
|
|
27088
|
-
deviceNative: true,
|
|
27089
|
-
mode: "singleton",
|
|
27090
|
-
kind: "wrapper",
|
|
27091
|
-
defaultActive: false,
|
|
27092
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
27093
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
27094
|
-
methods: {},
|
|
27095
|
-
events: {
|
|
27096
|
-
/**
|
|
27097
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
27098
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
27099
|
-
* release/duration — it's a pulse.
|
|
27100
|
-
*/
|
|
27101
|
-
onPressed: {
|
|
27102
|
-
data: DoorbellPressEventSchema,
|
|
27103
|
-
fromState: {
|
|
27104
|
-
field: "lastPressedAt",
|
|
27105
|
-
on: "advance"
|
|
27106
|
-
}
|
|
27107
|
-
} },
|
|
27108
|
-
status: {
|
|
27109
|
-
schema: DoorbellStatusSchema,
|
|
27110
|
-
kind: "push"
|
|
27111
|
-
},
|
|
27112
|
-
/**
|
|
27113
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
27114
|
-
* Mirrored by the kernel and readable via
|
|
27115
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
27116
|
-
* without subscribing.
|
|
27117
|
-
*/
|
|
27118
|
-
runtimeState: DoorbellStatusSchema,
|
|
27119
|
-
/**
|
|
27120
|
-
* 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.
|
|
27121
|
-
*
|
|
27122
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
27123
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
27124
|
-
*/
|
|
27125
|
-
durability: "restored"
|
|
27126
|
-
};
|
|
27127
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
27128
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
27129
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
27130
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
27131
|
-
DeviceType.Camera;
|
|
27132
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
27133
|
-
state: literal("unreachable"),
|
|
27134
|
-
reason: string()
|
|
27135
|
-
})]);
|
|
27136
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
27137
|
-
var ExtensionSourceSchema = object({
|
|
27138
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
27139
|
-
source: string(),
|
|
27140
|
-
label: string(),
|
|
27141
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
27142
|
-
addonId: string().optional(),
|
|
27143
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
27144
|
-
});
|
|
27145
|
-
/**
|
|
27146
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
27147
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
27148
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
27149
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
27150
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
27151
|
-
*/
|
|
27152
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
27153
|
-
"ok",
|
|
27154
|
-
"missing",
|
|
27155
|
-
"foreign",
|
|
27156
|
-
"unavailable"
|
|
27157
|
-
]);
|
|
27158
|
-
var ExtensionSlotSourceSchema = object({
|
|
27159
|
-
deviceId: number().int(),
|
|
27160
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
27161
|
-
name: string().nullable(),
|
|
27162
|
-
health: ExtensionSourceHealthSchema,
|
|
27163
|
-
detail: string().optional()
|
|
27164
|
-
});
|
|
27165
|
-
/**
|
|
27166
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
27167
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
27168
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
27169
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
27170
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
27171
|
-
*/
|
|
27172
|
-
var ExtensionSlotActivationSchema = object({
|
|
27173
|
-
state: _enum([
|
|
27174
|
-
"active",
|
|
27175
|
-
"inactive",
|
|
27176
|
-
"unknown"
|
|
27177
|
-
]),
|
|
27178
|
-
authority: string(),
|
|
27179
|
-
detail: string().optional()
|
|
27180
|
-
});
|
|
27181
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
27182
|
-
state: literal("ok"),
|
|
27183
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
27184
|
-
slotRef: string(),
|
|
27185
|
-
slot: ExtensionSlotIdSchema,
|
|
27186
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
27187
|
-
authority: string(),
|
|
27188
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
27189
|
-
value: ExtensionSlotValueSchema,
|
|
27190
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
27191
|
-
/**
|
|
27192
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
27193
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
27194
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
27195
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
27196
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
27197
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
27198
|
-
* older than D655.
|
|
27199
|
-
*/
|
|
27200
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
27201
|
-
}), object({
|
|
27202
|
-
state: literal("unreachable"),
|
|
27203
|
-
addonId: string(),
|
|
27204
|
-
reason: string()
|
|
27205
|
-
})]);
|
|
27206
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
27207
|
-
deviceId: number().int(),
|
|
27208
|
-
name: string(),
|
|
27209
|
-
type: string(),
|
|
27210
|
-
location: string().nullable(),
|
|
27211
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
27212
|
-
parentName: string().nullable(),
|
|
27213
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
27214
|
-
suggested: boolean(),
|
|
27215
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
27216
|
-
reason: string().nullable()
|
|
27217
|
-
})) });
|
|
27218
|
-
/**
|
|
27219
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
27220
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
27221
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
27222
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
27223
|
-
*/
|
|
27224
|
-
var ExtensionSetResultSchema = object({
|
|
27225
|
-
applied: literal(true),
|
|
27226
|
-
reload: _enum([
|
|
27227
|
-
"none",
|
|
27228
|
-
"host",
|
|
27229
|
-
"parent"
|
|
27230
|
-
])
|
|
27231
|
-
});
|
|
27232
|
-
var ExtensionSlotRefInputSchema = object({
|
|
27233
|
-
deviceId: number().int(),
|
|
27234
|
-
slotRef: string().min(1)
|
|
27235
|
-
});
|
|
27236
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
27237
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
27238
|
-
kind: "mutation",
|
|
27239
|
-
auth: "admin"
|
|
27240
|
-
});
|
|
27241
|
-
/**
|
|
27242
27587
|
* Optional client-side hints sent at session creation to help the provider
|
|
27243
27588
|
* pick the best native source. All fields optional — a viewer that knows
|
|
27244
27589
|
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
@@ -29706,6 +30051,70 @@ onStatusChanged: { data: object({
|
|
|
29706
30051
|
* whether persisting is worth a SQLite commit. */
|
|
29707
30052
|
volatileStateFields: ["lastChangedAt"]
|
|
29708
30053
|
};
|
|
30054
|
+
var DoorbellStatusSchema = object({
|
|
30055
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
30056
|
+
lastPressedAt: number().nullable(),
|
|
30057
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
30058
|
+
pressCountSinceStart: number()
|
|
30059
|
+
});
|
|
30060
|
+
var DoorbellPressEventSchema = object({
|
|
30061
|
+
deviceId: number(),
|
|
30062
|
+
timestamp: number()
|
|
30063
|
+
});
|
|
30064
|
+
/**
|
|
30065
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
30066
|
+
* they are the same cap:
|
|
30067
|
+
*
|
|
30068
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
30069
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
30070
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
30071
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
30072
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
30073
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
30074
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
30075
|
+
* from that field's advance (`fromState`).
|
|
30076
|
+
*
|
|
30077
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
30078
|
+
*/
|
|
30079
|
+
var doorbellCapability = {
|
|
30080
|
+
name: "doorbell",
|
|
30081
|
+
scope: "device",
|
|
30082
|
+
deviceNative: true,
|
|
30083
|
+
mode: "singleton",
|
|
30084
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
30085
|
+
methods: {},
|
|
30086
|
+
events: {
|
|
30087
|
+
/**
|
|
30088
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
30089
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
30090
|
+
* release/duration — it's a pulse.
|
|
30091
|
+
*/
|
|
30092
|
+
onPressed: {
|
|
30093
|
+
data: DoorbellPressEventSchema,
|
|
30094
|
+
fromState: {
|
|
30095
|
+
field: "lastPressedAt",
|
|
30096
|
+
on: "advance"
|
|
30097
|
+
}
|
|
30098
|
+
} },
|
|
30099
|
+
status: {
|
|
30100
|
+
schema: DoorbellStatusSchema,
|
|
30101
|
+
kind: "push"
|
|
30102
|
+
},
|
|
30103
|
+
/**
|
|
30104
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
30105
|
+
* Mirrored by the kernel and readable via
|
|
30106
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
30107
|
+
* without subscribing.
|
|
30108
|
+
*/
|
|
30109
|
+
runtimeState: DoorbellStatusSchema,
|
|
30110
|
+
/**
|
|
30111
|
+
* 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.
|
|
30112
|
+
*
|
|
30113
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30114
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30115
|
+
*/
|
|
30116
|
+
durability: "restored"
|
|
30117
|
+
};
|
|
29709
30118
|
/**
|
|
29710
30119
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
29711
30120
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -31850,9 +32259,9 @@ var MotionStatusSchema = object({
|
|
|
31850
32259
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
31851
32260
|
lastDetectedAt: number().nullable(),
|
|
31852
32261
|
/**
|
|
31853
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
31854
|
-
* `null` while false and on every `Sensor`
|
|
31855
|
-
* constant's doc for the one-authority rule.
|
|
32262
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
32263
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
32264
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
31856
32265
|
*
|
|
31857
32266
|
* ## Reading this field still arms nothing
|
|
31858
32267
|
*
|
|
@@ -31870,34 +32279,31 @@ var MotionStatusSchema = object({
|
|
|
31870
32279
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
31871
32280
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
31872
32281
|
*
|
|
31873
|
-
* ## Who writes it
|
|
31874
|
-
*
|
|
31875
|
-
* - **Cameras** — the
|
|
31876
|
-
*
|
|
31877
|
-
* `
|
|
31878
|
-
* `
|
|
31879
|
-
*
|
|
31880
|
-
*
|
|
31881
|
-
* a
|
|
31882
|
-
*
|
|
31883
|
-
*
|
|
31884
|
-
*
|
|
31885
|
-
*
|
|
31886
|
-
*
|
|
31887
|
-
*
|
|
31888
|
-
*
|
|
31889
|
-
*
|
|
31890
|
-
*
|
|
31891
|
-
* `
|
|
31892
|
-
*
|
|
31893
|
-
*
|
|
31894
|
-
*
|
|
31895
|
-
*
|
|
31896
|
-
*
|
|
31897
|
-
*
|
|
31898
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
31899
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
31900
|
-
* "sole writer" wording without also removing the other writers.
|
|
32282
|
+
* ## Who writes it (D696)
|
|
32283
|
+
*
|
|
32284
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
32285
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
32286
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
32287
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
32288
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
32289
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
32290
|
+
* that never sends a clear falls one window after its last `true`.
|
|
32291
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
32292
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32293
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32294
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32295
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
32296
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32297
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
32298
|
+
* system's own state change. That is the sensor's own fact.
|
|
32299
|
+
*
|
|
32300
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
32301
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
32302
|
+
*
|
|
32303
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
32304
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
32305
|
+
* it, every provider seeded it at boot, and every session left it
|
|
32306
|
+
* `detected: true` after its detach.
|
|
31901
32307
|
*/
|
|
31902
32308
|
autoClearAfterMs: number().nullable()
|
|
31903
32309
|
});
|
|
@@ -31969,11 +32375,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
31969
32375
|
*/
|
|
31970
32376
|
runtimeState: MotionStatusSchema,
|
|
31971
32377
|
/**
|
|
31972
|
-
* Runtime-state durability: **session** —
|
|
32378
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
31973
32379
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
31974
32380
|
* frozen until the next one instead of being corrected. The next edge
|
|
31975
|
-
* re-publishes the real state
|
|
31976
|
-
*
|
|
32381
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
32382
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
32383
|
+
* `autoClearAfterMs` above).
|
|
31977
32384
|
*
|
|
31978
32385
|
* See `RuntimeStateDurability`. Enforced by
|
|
31979
32386
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -34356,8 +34763,7 @@ var ptzAutotrackCapability = {
|
|
|
34356
34763
|
deviceNative: true,
|
|
34357
34764
|
mode: "singleton",
|
|
34358
34765
|
/**
|
|
34359
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
34360
|
-
* `doorbell` use:
|
|
34766
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
34361
34767
|
*
|
|
34362
34768
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
34363
34769
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -34365,7 +34771,7 @@ var ptzAutotrackCapability = {
|
|
|
34365
34771
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
34366
34772
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
34367
34773
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
34368
|
-
* the bindings UI
|
|
34774
|
+
* the bindings UI.
|
|
34369
34775
|
*
|
|
34370
34776
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
34371
34777
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -35040,7 +35446,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
35040
35446
|
/**
|
|
35041
35447
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
35042
35448
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
35043
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
35449
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
35044
35450
|
* a replay needs several seconds of native pixels, not one frame.
|
|
35045
35451
|
*
|
|
35046
35452
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -38404,47 +38810,7 @@ var zoneRulesCapability = {
|
|
|
38404
38810
|
*/
|
|
38405
38811
|
durability: "restored"
|
|
38406
38812
|
};
|
|
38407
|
-
|
|
38408
|
-
kind: "fixed",
|
|
38409
|
-
result: ["number"]
|
|
38410
|
-
};
|
|
38411
|
-
var BOOLEAN = {
|
|
38412
|
-
kind: "fixed",
|
|
38413
|
-
result: ["boolean"]
|
|
38414
|
-
};
|
|
38415
|
-
Object.freeze({
|
|
38416
|
-
min: NUMBER,
|
|
38417
|
-
max: NUMBER,
|
|
38418
|
-
abs: NUMBER,
|
|
38419
|
-
floor: NUMBER,
|
|
38420
|
-
ceil: NUMBER,
|
|
38421
|
-
sqrt: NUMBER,
|
|
38422
|
-
round: NUMBER,
|
|
38423
|
-
pow: NUMBER,
|
|
38424
|
-
clamp: NUMBER,
|
|
38425
|
-
avg: NUMBER,
|
|
38426
|
-
sum: NUMBER,
|
|
38427
|
-
age: NUMBER,
|
|
38428
|
-
convert: NUMBER,
|
|
38429
|
-
coalesce: { kind: "coalesce" },
|
|
38430
|
-
any: BOOLEAN,
|
|
38431
|
-
all: BOOLEAN,
|
|
38432
|
-
within: BOOLEAN,
|
|
38433
|
-
latest: {
|
|
38434
|
-
kind: "fixed",
|
|
38435
|
-
result: ["number", "null"]
|
|
38436
|
-
},
|
|
38437
|
-
number: {
|
|
38438
|
-
kind: "fixed",
|
|
38439
|
-
result: ["number", "null"]
|
|
38440
|
-
},
|
|
38441
|
-
rose: {
|
|
38442
|
-
kind: "fixed",
|
|
38443
|
-
result: ["number", "null"]
|
|
38444
|
-
},
|
|
38445
|
-
count: NUMBER
|
|
38446
|
-
});
|
|
38447
|
-
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
38813
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
38448
38814
|
/**
|
|
38449
38815
|
* Accessory device helpers — shared across drivers.
|
|
38450
38816
|
*
|
|
@@ -39504,13 +39870,14 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
39504
39870
|
async getStatus() {
|
|
39505
39871
|
const all = await this.ctx.kernel.devices?.getAll() ?? [];
|
|
39506
39872
|
const summary = this.restoreFailureSummary();
|
|
39507
|
-
|
|
39873
|
+
const base = {
|
|
39508
39874
|
connected: true,
|
|
39509
|
-
deviceCount: all.length
|
|
39875
|
+
deviceCount: all.length,
|
|
39876
|
+
motionSliceWriter: "orchestrator"
|
|
39510
39877
|
};
|
|
39878
|
+
if (summary === null) return base;
|
|
39511
39879
|
return {
|
|
39512
|
-
|
|
39513
|
-
deviceCount: all.length,
|
|
39880
|
+
...base,
|
|
39514
39881
|
error: summary
|
|
39515
39882
|
};
|
|
39516
39883
|
}
|
|
@@ -42390,6 +42757,12 @@ Object.freeze({
|
|
|
42390
42757
|
addonId: null,
|
|
42391
42758
|
access: "view"
|
|
42392
42759
|
},
|
|
42760
|
+
"coreBlocks.listComposableCaps": {
|
|
42761
|
+
capName: "core-blocks",
|
|
42762
|
+
capScope: "system",
|
|
42763
|
+
addonId: null,
|
|
42764
|
+
access: "view"
|
|
42765
|
+
},
|
|
42393
42766
|
"coreBlocks.listCompositions": {
|
|
42394
42767
|
capName: "core-blocks",
|
|
42395
42768
|
capScope: "system",
|
|
@@ -42468,6 +42841,18 @@ Object.freeze({
|
|
|
42468
42841
|
addonId: null,
|
|
42469
42842
|
access: "view"
|
|
42470
42843
|
},
|
|
42844
|
+
"databaseSnapshot.listDatabases": {
|
|
42845
|
+
capName: "database-snapshot",
|
|
42846
|
+
capScope: "system",
|
|
42847
|
+
addonId: null,
|
|
42848
|
+
access: "view"
|
|
42849
|
+
},
|
|
42850
|
+
"databaseSnapshot.writeSnapshot": {
|
|
42851
|
+
capName: "database-snapshot",
|
|
42852
|
+
capScope: "system",
|
|
42853
|
+
addonId: null,
|
|
42854
|
+
access: "create"
|
|
42855
|
+
},
|
|
42471
42856
|
"dataStoreProvider.aggregate": {
|
|
42472
42857
|
capName: "data-store-provider",
|
|
42473
42858
|
capScope: "system",
|
|
@@ -44928,6 +45313,12 @@ Object.freeze({
|
|
|
44928
45313
|
addonId: null,
|
|
44929
45314
|
access: "view"
|
|
44930
45315
|
},
|
|
45316
|
+
"notificationRules.getAlarmSensors": {
|
|
45317
|
+
capName: "notification-rules",
|
|
45318
|
+
capScope: "system",
|
|
45319
|
+
addonId: null,
|
|
45320
|
+
access: "view"
|
|
45321
|
+
},
|
|
44931
45322
|
"notificationRules.getClipRetentionAsks": {
|
|
44932
45323
|
capName: "notification-rules",
|
|
44933
45324
|
capScope: "system",
|
|
@@ -45204,6 +45595,12 @@ Object.freeze({
|
|
|
45204
45595
|
addonId: null,
|
|
45205
45596
|
access: "create"
|
|
45206
45597
|
},
|
|
45598
|
+
"pipelineAnalytics.clearTrackRelation": {
|
|
45599
|
+
capName: "pipeline-analytics",
|
|
45600
|
+
capScope: "device",
|
|
45601
|
+
addonId: null,
|
|
45602
|
+
access: "delete"
|
|
45603
|
+
},
|
|
45207
45604
|
"pipelineAnalytics.clearTracks": {
|
|
45208
45605
|
capName: "pipeline-analytics",
|
|
45209
45606
|
capScope: "device",
|
|
@@ -45456,6 +45853,12 @@ Object.freeze({
|
|
|
45456
45853
|
addonId: null,
|
|
45457
45854
|
access: "view"
|
|
45458
45855
|
},
|
|
45856
|
+
"pipelineAnalytics.listTrackRelations": {
|
|
45857
|
+
capName: "pipeline-analytics",
|
|
45858
|
+
capScope: "device",
|
|
45859
|
+
addonId: null,
|
|
45860
|
+
access: "view"
|
|
45861
|
+
},
|
|
45459
45862
|
"pipelineAnalytics.listTracks": {
|
|
45460
45863
|
capName: "pipeline-analytics",
|
|
45461
45864
|
capScope: "device",
|
|
@@ -45570,6 +45973,18 @@ Object.freeze({
|
|
|
45570
45973
|
addonId: null,
|
|
45571
45974
|
access: "create"
|
|
45572
45975
|
},
|
|
45976
|
+
"pipelineAnalytics.setTrackPurity": {
|
|
45977
|
+
capName: "pipeline-analytics",
|
|
45978
|
+
capScope: "device",
|
|
45979
|
+
addonId: null,
|
|
45980
|
+
access: "create"
|
|
45981
|
+
},
|
|
45982
|
+
"pipelineAnalytics.setTrackRelation": {
|
|
45983
|
+
capName: "pipeline-analytics",
|
|
45984
|
+
capScope: "device",
|
|
45985
|
+
addonId: null,
|
|
45986
|
+
access: "create"
|
|
45987
|
+
},
|
|
45573
45988
|
"pipelineAnalytics.startStorageMigrationMove": {
|
|
45574
45989
|
capName: "pipeline-analytics",
|
|
45575
45990
|
capScope: "device",
|
|
@@ -46008,6 +46423,12 @@ Object.freeze({
|
|
|
46008
46423
|
addonId: null,
|
|
46009
46424
|
access: "delete"
|
|
46010
46425
|
},
|
|
46426
|
+
"pipelineOrchestrator.requestOccupancyLook": {
|
|
46427
|
+
capName: "pipeline-orchestrator",
|
|
46428
|
+
capScope: "system",
|
|
46429
|
+
addonId: null,
|
|
46430
|
+
access: "create"
|
|
46431
|
+
},
|
|
46011
46432
|
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
46012
46433
|
capName: "pipeline-orchestrator",
|
|
46013
46434
|
capScope: "system",
|
|
@@ -46074,6 +46495,12 @@ Object.freeze({
|
|
|
46074
46495
|
addonId: null,
|
|
46075
46496
|
access: "create"
|
|
46076
46497
|
},
|
|
46498
|
+
"pipelineOrchestrator.setCameraSensors": {
|
|
46499
|
+
capName: "pipeline-orchestrator",
|
|
46500
|
+
capScope: "system",
|
|
46501
|
+
addonId: null,
|
|
46502
|
+
access: "create"
|
|
46503
|
+
},
|
|
46077
46504
|
"pipelineOrchestrator.setCameraStepOverride": {
|
|
46078
46505
|
capName: "pipeline-orchestrator",
|
|
46079
46506
|
capScope: "system",
|
|
@@ -48470,6 +48897,11 @@ Object.freeze({
|
|
|
48470
48897
|
}
|
|
48471
48898
|
});
|
|
48472
48899
|
Object.freeze({
|
|
48900
|
+
"accessories.getStatus": [{
|
|
48901
|
+
name: "deviceId",
|
|
48902
|
+
form: "single",
|
|
48903
|
+
optional: false
|
|
48904
|
+
}],
|
|
48473
48905
|
"accessories.setChildHidden": [{
|
|
48474
48906
|
name: "childDeviceId",
|
|
48475
48907
|
form: "single",
|
|
@@ -48489,6 +48921,11 @@ Object.freeze({
|
|
|
48489
48921
|
form: "single",
|
|
48490
48922
|
optional: false
|
|
48491
48923
|
}],
|
|
48924
|
+
"airQualitySensor.getStatus": [{
|
|
48925
|
+
name: "deviceId",
|
|
48926
|
+
form: "single",
|
|
48927
|
+
optional: false
|
|
48928
|
+
}],
|
|
48492
48929
|
"alarmPanel.arm": [{
|
|
48493
48930
|
name: "deviceId",
|
|
48494
48931
|
form: "single",
|
|
@@ -48499,11 +48936,36 @@ Object.freeze({
|
|
|
48499
48936
|
form: "single",
|
|
48500
48937
|
optional: false
|
|
48501
48938
|
}],
|
|
48939
|
+
"alarmPanel.getStatus": [{
|
|
48940
|
+
name: "deviceId",
|
|
48941
|
+
form: "single",
|
|
48942
|
+
optional: false
|
|
48943
|
+
}],
|
|
48502
48944
|
"alarmPanel.trigger": [{
|
|
48503
48945
|
name: "deviceId",
|
|
48504
48946
|
form: "single",
|
|
48505
48947
|
optional: false
|
|
48506
48948
|
}],
|
|
48949
|
+
"ambientLightSensor.getStatus": [{
|
|
48950
|
+
name: "deviceId",
|
|
48951
|
+
form: "single",
|
|
48952
|
+
optional: false
|
|
48953
|
+
}],
|
|
48954
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
48955
|
+
name: "deviceId",
|
|
48956
|
+
form: "single",
|
|
48957
|
+
optional: false
|
|
48958
|
+
}],
|
|
48959
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
48960
|
+
name: "deviceId",
|
|
48961
|
+
form: "single",
|
|
48962
|
+
optional: false
|
|
48963
|
+
}],
|
|
48964
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
48965
|
+
name: "deviceId",
|
|
48966
|
+
form: "single",
|
|
48967
|
+
optional: false
|
|
48968
|
+
}],
|
|
48507
48969
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
48508
48970
|
name: "deviceId",
|
|
48509
48971
|
form: "single",
|
|
@@ -48544,16 +49006,36 @@ Object.freeze({
|
|
|
48544
49006
|
form: "single",
|
|
48545
49007
|
optional: false
|
|
48546
49008
|
}],
|
|
49009
|
+
"automationControl.getStatus": [{
|
|
49010
|
+
name: "deviceId",
|
|
49011
|
+
form: "single",
|
|
49012
|
+
optional: false
|
|
49013
|
+
}],
|
|
48547
49014
|
"automationControl.trigger": [{
|
|
48548
49015
|
name: "deviceId",
|
|
48549
49016
|
form: "single",
|
|
48550
49017
|
optional: false
|
|
48551
49018
|
}],
|
|
49019
|
+
"battery.getStatus": [{
|
|
49020
|
+
name: "deviceId",
|
|
49021
|
+
form: "single",
|
|
49022
|
+
optional: false
|
|
49023
|
+
}],
|
|
48552
49024
|
"battery.wakeForStream": [{
|
|
48553
49025
|
name: "deviceId",
|
|
48554
49026
|
form: "single",
|
|
48555
49027
|
optional: false
|
|
48556
49028
|
}],
|
|
49029
|
+
"binary.getStatus": [{
|
|
49030
|
+
name: "deviceId",
|
|
49031
|
+
form: "single",
|
|
49032
|
+
optional: false
|
|
49033
|
+
}],
|
|
49034
|
+
"brightness.getStatus": [{
|
|
49035
|
+
name: "deviceId",
|
|
49036
|
+
form: "single",
|
|
49037
|
+
optional: false
|
|
49038
|
+
}],
|
|
48557
49039
|
"brightness.setBrightness": [{
|
|
48558
49040
|
name: "deviceId",
|
|
48559
49041
|
form: "single",
|
|
@@ -48569,6 +49051,26 @@ Object.freeze({
|
|
|
48569
49051
|
form: "single",
|
|
48570
49052
|
optional: false
|
|
48571
49053
|
}],
|
|
49054
|
+
"cameraCredentials.getStatus": [{
|
|
49055
|
+
name: "deviceId",
|
|
49056
|
+
form: "single",
|
|
49057
|
+
optional: false
|
|
49058
|
+
}],
|
|
49059
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
49060
|
+
name: "deviceId",
|
|
49061
|
+
form: "single",
|
|
49062
|
+
optional: false
|
|
49063
|
+
}],
|
|
49064
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
49065
|
+
name: "deviceId",
|
|
49066
|
+
form: "single",
|
|
49067
|
+
optional: false
|
|
49068
|
+
}],
|
|
49069
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
49070
|
+
name: "deviceId",
|
|
49071
|
+
form: "single",
|
|
49072
|
+
optional: false
|
|
49073
|
+
}],
|
|
48572
49074
|
"cameraGridLayout.getLayout": [{
|
|
48573
49075
|
name: "deviceId",
|
|
48574
49076
|
form: "single",
|
|
@@ -48584,6 +49086,21 @@ Object.freeze({
|
|
|
48584
49086
|
form: "single",
|
|
48585
49087
|
optional: false
|
|
48586
49088
|
}],
|
|
49089
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
49090
|
+
name: "deviceId",
|
|
49091
|
+
form: "single",
|
|
49092
|
+
optional: false
|
|
49093
|
+
}],
|
|
49094
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
49095
|
+
name: "deviceId",
|
|
49096
|
+
form: "single",
|
|
49097
|
+
optional: false
|
|
49098
|
+
}],
|
|
49099
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
49100
|
+
name: "deviceId",
|
|
49101
|
+
form: "single",
|
|
49102
|
+
optional: false
|
|
49103
|
+
}],
|
|
48587
49104
|
"cameraStreams.getBrokerStreams": [{
|
|
48588
49105
|
name: "deviceId",
|
|
48589
49106
|
form: "single",
|
|
@@ -48609,6 +49126,16 @@ Object.freeze({
|
|
|
48609
49126
|
form: "single",
|
|
48610
49127
|
optional: false
|
|
48611
49128
|
}],
|
|
49129
|
+
"carbonMonoxide.getStatus": [{
|
|
49130
|
+
name: "deviceId",
|
|
49131
|
+
form: "single",
|
|
49132
|
+
optional: false
|
|
49133
|
+
}],
|
|
49134
|
+
"climateControl.getStatus": [{
|
|
49135
|
+
name: "deviceId",
|
|
49136
|
+
form: "single",
|
|
49137
|
+
optional: false
|
|
49138
|
+
}],
|
|
48612
49139
|
"climateControl.setFanMode": [{
|
|
48613
49140
|
name: "deviceId",
|
|
48614
49141
|
form: "single",
|
|
@@ -48649,16 +49176,41 @@ Object.freeze({
|
|
|
48649
49176
|
form: "single",
|
|
48650
49177
|
optional: false
|
|
48651
49178
|
}],
|
|
49179
|
+
"color.getStatus": [{
|
|
49180
|
+
name: "deviceId",
|
|
49181
|
+
form: "single",
|
|
49182
|
+
optional: false
|
|
49183
|
+
}],
|
|
48652
49184
|
"color.setColor": [{
|
|
48653
49185
|
name: "deviceId",
|
|
48654
49186
|
form: "single",
|
|
48655
49187
|
optional: false
|
|
48656
49188
|
}],
|
|
49189
|
+
"connectivity.getStatus": [{
|
|
49190
|
+
name: "deviceId",
|
|
49191
|
+
form: "single",
|
|
49192
|
+
optional: false
|
|
49193
|
+
}],
|
|
49194
|
+
"consumables.getStatus": [{
|
|
49195
|
+
name: "deviceId",
|
|
49196
|
+
form: "single",
|
|
49197
|
+
optional: false
|
|
49198
|
+
}],
|
|
48657
49199
|
"consumables.reset": [{
|
|
48658
49200
|
name: "deviceId",
|
|
48659
49201
|
form: "single",
|
|
48660
49202
|
optional: false
|
|
48661
49203
|
}],
|
|
49204
|
+
"contact.getStatus": [{
|
|
49205
|
+
name: "deviceId",
|
|
49206
|
+
form: "single",
|
|
49207
|
+
optional: false
|
|
49208
|
+
}],
|
|
49209
|
+
"control.getStatus": [{
|
|
49210
|
+
name: "deviceId",
|
|
49211
|
+
form: "single",
|
|
49212
|
+
optional: false
|
|
49213
|
+
}],
|
|
48662
49214
|
"control.setValue": [{
|
|
48663
49215
|
name: "deviceId",
|
|
48664
49216
|
form: "single",
|
|
@@ -48669,6 +49221,11 @@ Object.freeze({
|
|
|
48669
49221
|
form: "single",
|
|
48670
49222
|
optional: false
|
|
48671
49223
|
}],
|
|
49224
|
+
"cover.getStatus": [{
|
|
49225
|
+
name: "deviceId",
|
|
49226
|
+
form: "single",
|
|
49227
|
+
optional: false
|
|
49228
|
+
}],
|
|
48672
49229
|
"cover.open": [{
|
|
48673
49230
|
name: "deviceId",
|
|
48674
49231
|
form: "single",
|
|
@@ -48694,6 +49251,11 @@ Object.freeze({
|
|
|
48694
49251
|
form: "single",
|
|
48695
49252
|
optional: false
|
|
48696
49253
|
}],
|
|
49254
|
+
"dayNight.getStatus": [{
|
|
49255
|
+
name: "deviceId",
|
|
49256
|
+
form: "single",
|
|
49257
|
+
optional: false
|
|
49258
|
+
}],
|
|
48697
49259
|
"dayNight.setSettings": [{
|
|
48698
49260
|
name: "deviceId",
|
|
48699
49261
|
form: "single",
|
|
@@ -48704,11 +49266,31 @@ Object.freeze({
|
|
|
48704
49266
|
form: "single",
|
|
48705
49267
|
optional: true
|
|
48706
49268
|
}],
|
|
49269
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49270
|
+
name: "deviceId",
|
|
49271
|
+
form: "single",
|
|
49272
|
+
optional: false
|
|
49273
|
+
}],
|
|
49274
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
49275
|
+
name: "deviceId",
|
|
49276
|
+
form: "single",
|
|
49277
|
+
optional: false
|
|
49278
|
+
}],
|
|
49279
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
49280
|
+
name: "deviceId",
|
|
49281
|
+
form: "single",
|
|
49282
|
+
optional: false
|
|
49283
|
+
}],
|
|
48707
49284
|
"deviceAdminLink.getAdminLink": [{
|
|
48708
49285
|
name: "deviceId",
|
|
48709
49286
|
form: "single",
|
|
48710
49287
|
optional: false
|
|
48711
49288
|
}],
|
|
49289
|
+
"deviceAdoption.getStatus": [{
|
|
49290
|
+
name: "deviceId",
|
|
49291
|
+
form: "single",
|
|
49292
|
+
optional: false
|
|
49293
|
+
}],
|
|
48712
49294
|
"deviceAdoption.release": [{
|
|
48713
49295
|
name: "camDeviceId",
|
|
48714
49296
|
form: "single",
|
|
@@ -48724,6 +49306,11 @@ Object.freeze({
|
|
|
48724
49306
|
form: "single",
|
|
48725
49307
|
optional: false
|
|
48726
49308
|
}],
|
|
49309
|
+
"deviceDiscovery.getStatus": [{
|
|
49310
|
+
name: "deviceId",
|
|
49311
|
+
form: "single",
|
|
49312
|
+
optional: false
|
|
49313
|
+
}],
|
|
48727
49314
|
"deviceDiscovery.listDiscovered": [{
|
|
48728
49315
|
name: "deviceId",
|
|
48729
49316
|
form: "single",
|
|
@@ -48743,6 +49330,21 @@ Object.freeze({
|
|
|
48743
49330
|
form: "single",
|
|
48744
49331
|
optional: false
|
|
48745
49332
|
}],
|
|
49333
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
49334
|
+
name: "deviceId",
|
|
49335
|
+
form: "single",
|
|
49336
|
+
optional: false
|
|
49337
|
+
}],
|
|
49338
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
49339
|
+
name: "deviceId",
|
|
49340
|
+
form: "single",
|
|
49341
|
+
optional: false
|
|
49342
|
+
}],
|
|
49343
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
49344
|
+
name: "deviceId",
|
|
49345
|
+
form: "single",
|
|
49346
|
+
optional: false
|
|
49347
|
+
}],
|
|
48746
49348
|
"deviceExtension.listCandidates": [{
|
|
48747
49349
|
name: "deviceId",
|
|
48748
49350
|
form: "single",
|
|
@@ -49091,6 +49693,26 @@ Object.freeze({
|
|
|
49091
49693
|
form: "single",
|
|
49092
49694
|
optional: false
|
|
49093
49695
|
}],
|
|
49696
|
+
"deviceStatus.getStatus": [{
|
|
49697
|
+
name: "deviceId",
|
|
49698
|
+
form: "single",
|
|
49699
|
+
optional: false
|
|
49700
|
+
}],
|
|
49701
|
+
"doorbell.getStatus": [{
|
|
49702
|
+
name: "deviceId",
|
|
49703
|
+
form: "single",
|
|
49704
|
+
optional: false
|
|
49705
|
+
}],
|
|
49706
|
+
"enumSensor.getStatus": [{
|
|
49707
|
+
name: "deviceId",
|
|
49708
|
+
form: "single",
|
|
49709
|
+
optional: false
|
|
49710
|
+
}],
|
|
49711
|
+
"eventEmitter.getStatus": [{
|
|
49712
|
+
name: "deviceId",
|
|
49713
|
+
form: "single",
|
|
49714
|
+
optional: false
|
|
49715
|
+
}],
|
|
49094
49716
|
"faceGallery.getFaceByTrack": [{
|
|
49095
49717
|
name: "deviceId",
|
|
49096
49718
|
form: "single",
|
|
@@ -49105,6 +49727,11 @@ Object.freeze({
|
|
|
49105
49727
|
form: "array",
|
|
49106
49728
|
optional: true
|
|
49107
49729
|
}],
|
|
49730
|
+
"fanControl.getStatus": [{
|
|
49731
|
+
name: "deviceId",
|
|
49732
|
+
form: "single",
|
|
49733
|
+
optional: false
|
|
49734
|
+
}],
|
|
49108
49735
|
"fanControl.setDirection": [{
|
|
49109
49736
|
name: "deviceId",
|
|
49110
49737
|
form: "single",
|
|
@@ -49125,6 +49752,26 @@ Object.freeze({
|
|
|
49125
49752
|
form: "single",
|
|
49126
49753
|
optional: false
|
|
49127
49754
|
}],
|
|
49755
|
+
"featureProbe.getStatus": [{
|
|
49756
|
+
name: "deviceId",
|
|
49757
|
+
form: "single",
|
|
49758
|
+
optional: false
|
|
49759
|
+
}],
|
|
49760
|
+
"flood.getStatus": [{
|
|
49761
|
+
name: "deviceId",
|
|
49762
|
+
form: "single",
|
|
49763
|
+
optional: false
|
|
49764
|
+
}],
|
|
49765
|
+
"gas.getStatus": [{
|
|
49766
|
+
name: "deviceId",
|
|
49767
|
+
form: "single",
|
|
49768
|
+
optional: false
|
|
49769
|
+
}],
|
|
49770
|
+
"humidifier.getStatus": [{
|
|
49771
|
+
name: "deviceId",
|
|
49772
|
+
form: "single",
|
|
49773
|
+
optional: false
|
|
49774
|
+
}],
|
|
49128
49775
|
"humidifier.setMode": [{
|
|
49129
49776
|
name: "deviceId",
|
|
49130
49777
|
form: "single",
|
|
@@ -49140,11 +49787,26 @@ Object.freeze({
|
|
|
49140
49787
|
form: "single",
|
|
49141
49788
|
optional: false
|
|
49142
49789
|
}],
|
|
49790
|
+
"humiditySensor.getStatus": [{
|
|
49791
|
+
name: "deviceId",
|
|
49792
|
+
form: "single",
|
|
49793
|
+
optional: false
|
|
49794
|
+
}],
|
|
49795
|
+
"image.getStatus": [{
|
|
49796
|
+
name: "deviceId",
|
|
49797
|
+
form: "single",
|
|
49798
|
+
optional: false
|
|
49799
|
+
}],
|
|
49143
49800
|
"imageSettings.getOptions": [{
|
|
49144
49801
|
name: "deviceId",
|
|
49145
49802
|
form: "single",
|
|
49146
49803
|
optional: false
|
|
49147
49804
|
}],
|
|
49805
|
+
"imageSettings.getStatus": [{
|
|
49806
|
+
name: "deviceId",
|
|
49807
|
+
form: "single",
|
|
49808
|
+
optional: false
|
|
49809
|
+
}],
|
|
49148
49810
|
"imageSettings.setSettings": [{
|
|
49149
49811
|
name: "deviceId",
|
|
49150
49812
|
form: "single",
|
|
@@ -49155,6 +49817,11 @@ Object.freeze({
|
|
|
49155
49817
|
form: "single",
|
|
49156
49818
|
optional: false
|
|
49157
49819
|
}],
|
|
49820
|
+
"intercom.getStatus": [{
|
|
49821
|
+
name: "deviceId",
|
|
49822
|
+
form: "single",
|
|
49823
|
+
optional: false
|
|
49824
|
+
}],
|
|
49158
49825
|
"intercom.handleAnswer": [{
|
|
49159
49826
|
name: "deviceId",
|
|
49160
49827
|
form: "single",
|
|
@@ -49185,6 +49852,11 @@ Object.freeze({
|
|
|
49185
49852
|
form: "single",
|
|
49186
49853
|
optional: false
|
|
49187
49854
|
}],
|
|
49855
|
+
"lawnMowerControl.getStatus": [{
|
|
49856
|
+
name: "deviceId",
|
|
49857
|
+
form: "single",
|
|
49858
|
+
optional: false
|
|
49859
|
+
}],
|
|
49188
49860
|
"lawnMowerControl.pause": [{
|
|
49189
49861
|
name: "deviceId",
|
|
49190
49862
|
form: "single",
|
|
@@ -49195,6 +49867,11 @@ Object.freeze({
|
|
|
49195
49867
|
form: "single",
|
|
49196
49868
|
optional: false
|
|
49197
49869
|
}],
|
|
49870
|
+
"lockControl.getStatus": [{
|
|
49871
|
+
name: "deviceId",
|
|
49872
|
+
form: "single",
|
|
49873
|
+
optional: false
|
|
49874
|
+
}],
|
|
49198
49875
|
"lockControl.lock": [{
|
|
49199
49876
|
name: "deviceId",
|
|
49200
49877
|
form: "single",
|
|
@@ -49210,6 +49887,11 @@ Object.freeze({
|
|
|
49210
49887
|
form: "single",
|
|
49211
49888
|
optional: false
|
|
49212
49889
|
}],
|
|
49890
|
+
"mediaPlayer.getStatus": [{
|
|
49891
|
+
name: "deviceId",
|
|
49892
|
+
form: "single",
|
|
49893
|
+
optional: false
|
|
49894
|
+
}],
|
|
49213
49895
|
"mediaPlayer.next": [{
|
|
49214
49896
|
name: "deviceId",
|
|
49215
49897
|
form: "single",
|
|
@@ -49270,6 +49952,11 @@ Object.freeze({
|
|
|
49270
49952
|
form: "single",
|
|
49271
49953
|
optional: false
|
|
49272
49954
|
}],
|
|
49955
|
+
"motion.getStatus": [{
|
|
49956
|
+
name: "deviceId",
|
|
49957
|
+
form: "single",
|
|
49958
|
+
optional: false
|
|
49959
|
+
}],
|
|
49273
49960
|
"motion.isDetected": [{
|
|
49274
49961
|
name: "deviceId",
|
|
49275
49962
|
form: "single",
|
|
@@ -49280,11 +49967,31 @@ Object.freeze({
|
|
|
49280
49967
|
form: "single",
|
|
49281
49968
|
optional: false
|
|
49282
49969
|
}],
|
|
49970
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
49971
|
+
name: "deviceId",
|
|
49972
|
+
form: "single",
|
|
49973
|
+
optional: false
|
|
49974
|
+
}],
|
|
49975
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
49976
|
+
name: "deviceId",
|
|
49977
|
+
form: "single",
|
|
49978
|
+
optional: false
|
|
49979
|
+
}],
|
|
49980
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
49981
|
+
name: "deviceId",
|
|
49982
|
+
form: "single",
|
|
49983
|
+
optional: false
|
|
49984
|
+
}],
|
|
49283
49985
|
"motionDetection.removeCamera": [{
|
|
49284
49986
|
name: "deviceId",
|
|
49285
49987
|
form: "single",
|
|
49286
49988
|
optional: false
|
|
49287
49989
|
}],
|
|
49990
|
+
"motionTrigger.getStatus": [{
|
|
49991
|
+
name: "deviceId",
|
|
49992
|
+
form: "single",
|
|
49993
|
+
optional: false
|
|
49994
|
+
}],
|
|
49288
49995
|
"motionTrigger.setMotionTrigger": [{
|
|
49289
49996
|
name: "deviceId",
|
|
49290
49997
|
form: "single",
|
|
@@ -49295,6 +50002,11 @@ Object.freeze({
|
|
|
49295
50002
|
form: "single",
|
|
49296
50003
|
optional: false
|
|
49297
50004
|
}],
|
|
50005
|
+
"motionZones.getStatus": [{
|
|
50006
|
+
name: "deviceId",
|
|
50007
|
+
form: "single",
|
|
50008
|
+
optional: false
|
|
50009
|
+
}],
|
|
49298
50010
|
"motionZones.setZone": [{
|
|
49299
50011
|
name: "deviceId",
|
|
49300
50012
|
form: "single",
|
|
@@ -49305,6 +50017,11 @@ Object.freeze({
|
|
|
49305
50017
|
form: "single",
|
|
49306
50018
|
optional: false
|
|
49307
50019
|
}],
|
|
50020
|
+
"nativeObjectDetection.getStatus": [{
|
|
50021
|
+
name: "deviceId",
|
|
50022
|
+
form: "single",
|
|
50023
|
+
optional: false
|
|
50024
|
+
}],
|
|
49308
50025
|
"nativeObjectDetection.setEnabled": [{
|
|
49309
50026
|
name: "deviceId",
|
|
49310
50027
|
form: "single",
|
|
@@ -49320,6 +50037,11 @@ Object.freeze({
|
|
|
49320
50037
|
form: "single",
|
|
49321
50038
|
optional: false
|
|
49322
50039
|
}],
|
|
50040
|
+
"navigation.getStatus": [{
|
|
50041
|
+
name: "deviceId",
|
|
50042
|
+
form: "single",
|
|
50043
|
+
optional: false
|
|
50044
|
+
}],
|
|
49323
50045
|
"navigation.goToPoint": [{
|
|
49324
50046
|
name: "deviceId",
|
|
49325
50047
|
form: "single",
|
|
@@ -49365,6 +50087,11 @@ Object.freeze({
|
|
|
49365
50087
|
form: "single",
|
|
49366
50088
|
optional: false
|
|
49367
50089
|
}],
|
|
50090
|
+
"networkLink.getStatus": [{
|
|
50091
|
+
name: "deviceId",
|
|
50092
|
+
form: "single",
|
|
50093
|
+
optional: false
|
|
50094
|
+
}],
|
|
49368
50095
|
"networkQuality.getDeviceStats": [{
|
|
49369
50096
|
name: "deviceId",
|
|
49370
50097
|
form: "single",
|
|
@@ -49375,6 +50102,11 @@ Object.freeze({
|
|
|
49375
50102
|
form: "single",
|
|
49376
50103
|
optional: false
|
|
49377
50104
|
}],
|
|
50105
|
+
"notificationRules.getAlarmSensors": [{
|
|
50106
|
+
name: "deviceIds",
|
|
50107
|
+
form: "array",
|
|
50108
|
+
optional: false
|
|
50109
|
+
}],
|
|
49378
50110
|
"notificationRules.setDeviceMuted": [{
|
|
49379
50111
|
name: "deviceId",
|
|
49380
50112
|
form: "single",
|
|
@@ -49385,11 +50117,26 @@ Object.freeze({
|
|
|
49385
50117
|
form: "single",
|
|
49386
50118
|
optional: false
|
|
49387
50119
|
}],
|
|
50120
|
+
"notifier.getStatus": [{
|
|
50121
|
+
name: "deviceId",
|
|
50122
|
+
form: "single",
|
|
50123
|
+
optional: false
|
|
50124
|
+
}],
|
|
49388
50125
|
"notifier.send": [{
|
|
49389
50126
|
name: "deviceId",
|
|
49390
50127
|
form: "single",
|
|
49391
50128
|
optional: false
|
|
49392
50129
|
}],
|
|
50130
|
+
"numericSensor.getStatus": [{
|
|
50131
|
+
name: "deviceId",
|
|
50132
|
+
form: "single",
|
|
50133
|
+
optional: false
|
|
50134
|
+
}],
|
|
50135
|
+
"osd.getStatus": [{
|
|
50136
|
+
name: "deviceId",
|
|
50137
|
+
form: "single",
|
|
50138
|
+
optional: false
|
|
50139
|
+
}],
|
|
49393
50140
|
"osd.setOverlay": [{
|
|
49394
50141
|
name: "deviceId",
|
|
49395
50142
|
form: "single",
|
|
@@ -49449,6 +50196,11 @@ Object.freeze({
|
|
|
49449
50196
|
form: "single",
|
|
49450
50197
|
optional: false
|
|
49451
50198
|
}],
|
|
50199
|
+
"petFeeder.getStatus": [{
|
|
50200
|
+
name: "deviceId",
|
|
50201
|
+
form: "single",
|
|
50202
|
+
optional: false
|
|
50203
|
+
}],
|
|
49452
50204
|
"petFeeder.markFoodReplenished": [{
|
|
49453
50205
|
name: "deviceId",
|
|
49454
50206
|
form: "single",
|
|
@@ -49484,6 +50236,16 @@ Object.freeze({
|
|
|
49484
50236
|
form: "single",
|
|
49485
50237
|
optional: false
|
|
49486
50238
|
}],
|
|
50239
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
50240
|
+
name: "deviceId",
|
|
50241
|
+
form: "single",
|
|
50242
|
+
optional: false
|
|
50243
|
+
}],
|
|
50244
|
+
"pipelineAnalytics.clearTrackRelation": [{
|
|
50245
|
+
name: "deviceId",
|
|
50246
|
+
form: "single",
|
|
50247
|
+
optional: false
|
|
50248
|
+
}],
|
|
49487
50249
|
"pipelineAnalytics.clearTracks": [{
|
|
49488
50250
|
name: "deviceId",
|
|
49489
50251
|
form: "single",
|
|
@@ -49519,6 +50281,16 @@ Object.freeze({
|
|
|
49519
50281
|
form: "single",
|
|
49520
50282
|
optional: false
|
|
49521
50283
|
}],
|
|
50284
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
50285
|
+
name: "deviceId",
|
|
50286
|
+
form: "single",
|
|
50287
|
+
optional: false
|
|
50288
|
+
}],
|
|
50289
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
50290
|
+
name: "deviceId",
|
|
50291
|
+
form: "single",
|
|
50292
|
+
optional: false
|
|
50293
|
+
}],
|
|
49522
50294
|
"pipelineAnalytics.getEventDensity": [{
|
|
49523
50295
|
name: "deviceId",
|
|
49524
50296
|
form: "single",
|
|
@@ -49634,6 +50406,11 @@ Object.freeze({
|
|
|
49634
50406
|
form: "single",
|
|
49635
50407
|
optional: false
|
|
49636
50408
|
}],
|
|
50409
|
+
"pipelineAnalytics.listTrackRelations": [{
|
|
50410
|
+
name: "deviceId",
|
|
50411
|
+
form: "single",
|
|
50412
|
+
optional: false
|
|
50413
|
+
}],
|
|
49637
50414
|
"pipelineAnalytics.listTracks": [{
|
|
49638
50415
|
name: "deviceId",
|
|
49639
50416
|
form: "single",
|
|
@@ -49704,6 +50481,16 @@ Object.freeze({
|
|
|
49704
50481
|
form: "single",
|
|
49705
50482
|
optional: false
|
|
49706
50483
|
}],
|
|
50484
|
+
"pipelineAnalytics.setTrackPurity": [{
|
|
50485
|
+
name: "deviceId",
|
|
50486
|
+
form: "single",
|
|
50487
|
+
optional: false
|
|
50488
|
+
}],
|
|
50489
|
+
"pipelineAnalytics.setTrackRelation": [{
|
|
50490
|
+
name: "deviceId",
|
|
50491
|
+
form: "single",
|
|
50492
|
+
optional: false
|
|
50493
|
+
}],
|
|
49707
50494
|
"pipelineAnalytics.wipeAllAnalytics": [{
|
|
49708
50495
|
name: "deviceId",
|
|
49709
50496
|
form: "single",
|
|
@@ -49719,6 +50506,11 @@ Object.freeze({
|
|
|
49719
50506
|
form: "single",
|
|
49720
50507
|
optional: true
|
|
49721
50508
|
}],
|
|
50509
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
50510
|
+
name: "deviceId",
|
|
50511
|
+
form: "single",
|
|
50512
|
+
optional: false
|
|
50513
|
+
}],
|
|
49722
50514
|
"pipelineOrchestrator.assignAudio": [{
|
|
49723
50515
|
name: "deviceId",
|
|
49724
50516
|
form: "single",
|
|
@@ -49764,6 +50556,16 @@ Object.freeze({
|
|
|
49764
50556
|
form: "single",
|
|
49765
50557
|
optional: false
|
|
49766
50558
|
}],
|
|
50559
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
50560
|
+
name: "deviceId",
|
|
50561
|
+
form: "single",
|
|
50562
|
+
optional: false
|
|
50563
|
+
}],
|
|
50564
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
50565
|
+
name: "deviceId",
|
|
50566
|
+
form: "single",
|
|
50567
|
+
optional: false
|
|
50568
|
+
}],
|
|
49767
50569
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
49768
50570
|
name: "deviceId",
|
|
49769
50571
|
form: "single",
|
|
@@ -49774,6 +50576,11 @@ Object.freeze({
|
|
|
49774
50576
|
form: "single",
|
|
49775
50577
|
optional: false
|
|
49776
50578
|
}],
|
|
50579
|
+
"pipelineOrchestrator.requestOccupancyLook": [{
|
|
50580
|
+
name: "deviceId",
|
|
50581
|
+
form: "single",
|
|
50582
|
+
optional: false
|
|
50583
|
+
}],
|
|
49777
50584
|
"pipelineOrchestrator.resolvePipeline": [{
|
|
49778
50585
|
name: "deviceId",
|
|
49779
50586
|
form: "single",
|
|
@@ -49784,6 +50591,11 @@ Object.freeze({
|
|
|
49784
50591
|
form: "single",
|
|
49785
50592
|
optional: false
|
|
49786
50593
|
}],
|
|
50594
|
+
"pipelineOrchestrator.setCameraSensors": [{
|
|
50595
|
+
name: "deviceId",
|
|
50596
|
+
form: "single",
|
|
50597
|
+
optional: false
|
|
50598
|
+
}],
|
|
49787
50599
|
"pipelineOrchestrator.setCameraStepOverride": [{
|
|
49788
50600
|
name: "deviceId",
|
|
49789
50601
|
form: "single",
|
|
@@ -49874,11 +50686,31 @@ Object.freeze({
|
|
|
49874
50686
|
form: "single",
|
|
49875
50687
|
optional: true
|
|
49876
50688
|
}],
|
|
50689
|
+
"powerMeter.getStatus": [{
|
|
50690
|
+
name: "deviceId",
|
|
50691
|
+
form: "single",
|
|
50692
|
+
optional: false
|
|
50693
|
+
}],
|
|
50694
|
+
"presence.getStatus": [{
|
|
50695
|
+
name: "deviceId",
|
|
50696
|
+
form: "single",
|
|
50697
|
+
optional: false
|
|
50698
|
+
}],
|
|
50699
|
+
"pressureSensor.getStatus": [{
|
|
50700
|
+
name: "deviceId",
|
|
50701
|
+
form: "single",
|
|
50702
|
+
optional: false
|
|
50703
|
+
}],
|
|
49877
50704
|
"privacyMask.getOptions": [{
|
|
49878
50705
|
name: "deviceId",
|
|
49879
50706
|
form: "single",
|
|
49880
50707
|
optional: false
|
|
49881
50708
|
}],
|
|
50709
|
+
"privacyMask.getStatus": [{
|
|
50710
|
+
name: "deviceId",
|
|
50711
|
+
form: "single",
|
|
50712
|
+
optional: false
|
|
50713
|
+
}],
|
|
49882
50714
|
"privacyMask.setAudioEnabled": [{
|
|
49883
50715
|
name: "deviceId",
|
|
49884
50716
|
form: "single",
|
|
@@ -49929,6 +50761,11 @@ Object.freeze({
|
|
|
49929
50761
|
form: "single",
|
|
49930
50762
|
optional: false
|
|
49931
50763
|
}],
|
|
50764
|
+
"ptz.getStatus": [{
|
|
50765
|
+
name: "deviceId",
|
|
50766
|
+
form: "single",
|
|
50767
|
+
optional: false
|
|
50768
|
+
}],
|
|
49932
50769
|
"ptz.goHome": [{
|
|
49933
50770
|
name: "deviceId",
|
|
49934
50771
|
form: "single",
|
|
@@ -50019,6 +50856,11 @@ Object.freeze({
|
|
|
50019
50856
|
form: "single",
|
|
50020
50857
|
optional: false
|
|
50021
50858
|
}],
|
|
50859
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
50860
|
+
name: "deviceId",
|
|
50861
|
+
form: "single",
|
|
50862
|
+
optional: false
|
|
50863
|
+
}],
|
|
50022
50864
|
"recordingArchive.deleteFootprint": [{
|
|
50023
50865
|
name: "deviceId",
|
|
50024
50866
|
form: "single",
|
|
@@ -50039,6 +50881,21 @@ Object.freeze({
|
|
|
50039
50881
|
form: "single",
|
|
50040
50882
|
optional: false
|
|
50041
50883
|
}],
|
|
50884
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
50885
|
+
name: "deviceId",
|
|
50886
|
+
form: "single",
|
|
50887
|
+
optional: false
|
|
50888
|
+
}],
|
|
50889
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
50890
|
+
name: "deviceId",
|
|
50891
|
+
form: "single",
|
|
50892
|
+
optional: false
|
|
50893
|
+
}],
|
|
50894
|
+
"recordingArchive.getStatus": [{
|
|
50895
|
+
name: "deviceId",
|
|
50896
|
+
form: "single",
|
|
50897
|
+
optional: false
|
|
50898
|
+
}],
|
|
50042
50899
|
"recordingArchive.listOpsLog": [{
|
|
50043
50900
|
name: "deviceId",
|
|
50044
50901
|
form: "single",
|
|
@@ -50124,6 +50981,11 @@ Object.freeze({
|
|
|
50124
50981
|
form: "single",
|
|
50125
50982
|
optional: false
|
|
50126
50983
|
}],
|
|
50984
|
+
"recordingOnboard.getStatus": [{
|
|
50985
|
+
name: "deviceId",
|
|
50986
|
+
form: "single",
|
|
50987
|
+
optional: false
|
|
50988
|
+
}],
|
|
50127
50989
|
"recordingOnboard.setSettings": [{
|
|
50128
50990
|
name: "deviceId",
|
|
50129
50991
|
form: "single",
|
|
@@ -50154,6 +51016,11 @@ Object.freeze({
|
|
|
50154
51016
|
form: "single",
|
|
50155
51017
|
optional: false
|
|
50156
51018
|
}],
|
|
51019
|
+
"sceneMonitor.getStatus": [{
|
|
51020
|
+
name: "deviceId",
|
|
51021
|
+
form: "single",
|
|
51022
|
+
optional: false
|
|
51023
|
+
}],
|
|
50157
51024
|
"sceneMonitor.listScenes": [{
|
|
50158
51025
|
name: "deviceId",
|
|
50159
51026
|
form: "single",
|
|
@@ -50179,6 +51046,11 @@ Object.freeze({
|
|
|
50179
51046
|
form: "single",
|
|
50180
51047
|
optional: false
|
|
50181
51048
|
}],
|
|
51049
|
+
"scriptRunner.getStatus": [{
|
|
51050
|
+
name: "deviceId",
|
|
51051
|
+
form: "single",
|
|
51052
|
+
optional: false
|
|
51053
|
+
}],
|
|
50182
51054
|
"scriptRunner.run": [{
|
|
50183
51055
|
name: "deviceId",
|
|
50184
51056
|
form: "single",
|
|
@@ -50189,11 +51061,31 @@ Object.freeze({
|
|
|
50189
51061
|
form: "single",
|
|
50190
51062
|
optional: false
|
|
50191
51063
|
}],
|
|
51064
|
+
"smoke.getStatus": [{
|
|
51065
|
+
name: "deviceId",
|
|
51066
|
+
form: "single",
|
|
51067
|
+
optional: false
|
|
51068
|
+
}],
|
|
51069
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
51070
|
+
name: "deviceId",
|
|
51071
|
+
form: "single",
|
|
51072
|
+
optional: false
|
|
51073
|
+
}],
|
|
50192
51074
|
"snapshot.getDebugState": [{
|
|
50193
51075
|
name: "deviceId",
|
|
50194
51076
|
form: "single",
|
|
50195
51077
|
optional: false
|
|
50196
51078
|
}],
|
|
51079
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
51080
|
+
name: "deviceId",
|
|
51081
|
+
form: "single",
|
|
51082
|
+
optional: false
|
|
51083
|
+
}],
|
|
51084
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
51085
|
+
name: "deviceId",
|
|
51086
|
+
form: "single",
|
|
51087
|
+
optional: false
|
|
51088
|
+
}],
|
|
50197
51089
|
"snapshot.getSnapshot": [{
|
|
50198
51090
|
name: "deviceId",
|
|
50199
51091
|
form: "single",
|
|
@@ -50210,6 +51102,11 @@ Object.freeze({
|
|
|
50210
51102
|
form: "array",
|
|
50211
51103
|
optional: false
|
|
50212
51104
|
}],
|
|
51105
|
+
"snapshot.getStatus": [{
|
|
51106
|
+
name: "deviceId",
|
|
51107
|
+
form: "single",
|
|
51108
|
+
optional: false
|
|
51109
|
+
}],
|
|
50213
51110
|
"snapshot.invalidateCache": [{
|
|
50214
51111
|
name: "deviceId",
|
|
50215
51112
|
form: "single",
|
|
@@ -50220,6 +51117,11 @@ Object.freeze({
|
|
|
50220
51117
|
form: "single",
|
|
50221
51118
|
optional: false
|
|
50222
51119
|
}],
|
|
51120
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
51121
|
+
name: "deviceId",
|
|
51122
|
+
form: "single",
|
|
51123
|
+
optional: false
|
|
51124
|
+
}],
|
|
50223
51125
|
"streamBroker.assignProfile": [{
|
|
50224
51126
|
name: "deviceId",
|
|
50225
51127
|
form: "single",
|
|
@@ -50235,6 +51137,16 @@ Object.freeze({
|
|
|
50235
51137
|
form: "single",
|
|
50236
51138
|
optional: false
|
|
50237
51139
|
}],
|
|
51140
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
51141
|
+
name: "deviceId",
|
|
51142
|
+
form: "single",
|
|
51143
|
+
optional: false
|
|
51144
|
+
}],
|
|
51145
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
51146
|
+
name: "deviceId",
|
|
51147
|
+
form: "single",
|
|
51148
|
+
optional: false
|
|
51149
|
+
}],
|
|
50238
51150
|
"streamBroker.getStreamWithCodec": [{
|
|
50239
51151
|
name: "deviceId",
|
|
50240
51152
|
form: "single",
|
|
@@ -50295,16 +51207,46 @@ Object.freeze({
|
|
|
50295
51207
|
form: "single",
|
|
50296
51208
|
optional: false
|
|
50297
51209
|
}],
|
|
51210
|
+
"streamParams.getStatus": [{
|
|
51211
|
+
name: "deviceId",
|
|
51212
|
+
form: "single",
|
|
51213
|
+
optional: false
|
|
51214
|
+
}],
|
|
50298
51215
|
"streamParams.setProfile": [{
|
|
50299
51216
|
name: "deviceId",
|
|
50300
51217
|
form: "single",
|
|
50301
51218
|
optional: false
|
|
50302
51219
|
}],
|
|
51220
|
+
"switch.getStatus": [{
|
|
51221
|
+
name: "deviceId",
|
|
51222
|
+
form: "single",
|
|
51223
|
+
optional: false
|
|
51224
|
+
}],
|
|
50303
51225
|
"switch.setState": [{
|
|
50304
51226
|
name: "deviceId",
|
|
50305
51227
|
form: "single",
|
|
50306
51228
|
optional: false
|
|
50307
51229
|
}],
|
|
51230
|
+
"tamper.getStatus": [{
|
|
51231
|
+
name: "deviceId",
|
|
51232
|
+
form: "single",
|
|
51233
|
+
optional: false
|
|
51234
|
+
}],
|
|
51235
|
+
"temperatureSensor.getStatus": [{
|
|
51236
|
+
name: "deviceId",
|
|
51237
|
+
form: "single",
|
|
51238
|
+
optional: false
|
|
51239
|
+
}],
|
|
51240
|
+
"update.getStatus": [{
|
|
51241
|
+
name: "deviceId",
|
|
51242
|
+
form: "single",
|
|
51243
|
+
optional: false
|
|
51244
|
+
}],
|
|
51245
|
+
"vacuumControl.getStatus": [{
|
|
51246
|
+
name: "deviceId",
|
|
51247
|
+
form: "single",
|
|
51248
|
+
optional: false
|
|
51249
|
+
}],
|
|
50308
51250
|
"vacuumControl.locate": [{
|
|
50309
51251
|
name: "deviceId",
|
|
50310
51252
|
form: "single",
|
|
@@ -50340,6 +51282,11 @@ Object.freeze({
|
|
|
50340
51282
|
form: "single",
|
|
50341
51283
|
optional: false
|
|
50342
51284
|
}],
|
|
51285
|
+
"valve.getStatus": [{
|
|
51286
|
+
name: "deviceId",
|
|
51287
|
+
form: "single",
|
|
51288
|
+
optional: false
|
|
51289
|
+
}],
|
|
50343
51290
|
"valve.open": [{
|
|
50344
51291
|
name: "deviceId",
|
|
50345
51292
|
form: "single",
|
|
@@ -50355,6 +51302,11 @@ Object.freeze({
|
|
|
50355
51302
|
form: "single",
|
|
50356
51303
|
optional: false
|
|
50357
51304
|
}],
|
|
51305
|
+
"vibration.getStatus": [{
|
|
51306
|
+
name: "deviceId",
|
|
51307
|
+
form: "single",
|
|
51308
|
+
optional: false
|
|
51309
|
+
}],
|
|
50358
51310
|
"videoclips.dialClipStream": [{
|
|
50359
51311
|
name: "deviceId",
|
|
50360
51312
|
form: "single",
|
|
@@ -50390,6 +51342,11 @@ Object.freeze({
|
|
|
50390
51342
|
form: "single",
|
|
50391
51343
|
optional: false
|
|
50392
51344
|
}],
|
|
51345
|
+
"waterHeater.getStatus": [{
|
|
51346
|
+
name: "deviceId",
|
|
51347
|
+
form: "single",
|
|
51348
|
+
optional: false
|
|
51349
|
+
}],
|
|
50393
51350
|
"waterHeater.setAway": [{
|
|
50394
51351
|
name: "deviceId",
|
|
50395
51352
|
form: "single",
|
|
@@ -50405,6 +51362,11 @@ Object.freeze({
|
|
|
50405
51362
|
form: "single",
|
|
50406
51363
|
optional: false
|
|
50407
51364
|
}],
|
|
51365
|
+
"weather.getStatus": [{
|
|
51366
|
+
name: "deviceId",
|
|
51367
|
+
form: "single",
|
|
51368
|
+
optional: false
|
|
51369
|
+
}],
|
|
50408
51370
|
"webrtcSession.addIceCandidate": [{
|
|
50409
51371
|
name: "deviceId",
|
|
50410
51372
|
form: "single",
|
|
@@ -50930,6 +51892,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
50930
51892
|
systemEventKinds: [...SUMMARISABLE],
|
|
50931
51893
|
systemEventDeliveries: ["summary"]
|
|
50932
51894
|
},
|
|
51895
|
+
{
|
|
51896
|
+
name: "summarySection",
|
|
51897
|
+
label: "Summary: this section",
|
|
51898
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
51899
|
+
example: "Batterie scariche",
|
|
51900
|
+
group: "system",
|
|
51901
|
+
families: ["rule"],
|
|
51902
|
+
fields: [...RULE_TEXT],
|
|
51903
|
+
kinds: ["system"],
|
|
51904
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
51905
|
+
systemEventDeliveries: ["summary"]
|
|
51906
|
+
},
|
|
50933
51907
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
50934
51908
|
name: v.name,
|
|
50935
51909
|
label: v.label,
|
|
@@ -51006,6 +51980,37 @@ var STATE_SUMMARY_VARS = [
|
|
|
51006
51980
|
[...RULE_TEXT],
|
|
51007
51981
|
...STATE_SUMMARY_VARS
|
|
51008
51982
|
];
|
|
51983
|
+
new Set([
|
|
51984
|
+
"disarmed",
|
|
51985
|
+
"armed_home",
|
|
51986
|
+
"armed_away",
|
|
51987
|
+
"armed_night",
|
|
51988
|
+
"armed_vacation",
|
|
51989
|
+
"armed_custom_bypass",
|
|
51990
|
+
"arming",
|
|
51991
|
+
"disarming",
|
|
51992
|
+
"pending",
|
|
51993
|
+
"triggered",
|
|
51994
|
+
"open",
|
|
51995
|
+
"opening",
|
|
51996
|
+
"closing",
|
|
51997
|
+
"closed",
|
|
51998
|
+
"stopped",
|
|
51999
|
+
"locked",
|
|
52000
|
+
"unlocked",
|
|
52001
|
+
"locking",
|
|
52002
|
+
"unlocking",
|
|
52003
|
+
"jammed",
|
|
52004
|
+
"on",
|
|
52005
|
+
"off",
|
|
52006
|
+
"home",
|
|
52007
|
+
"not_home",
|
|
52008
|
+
"matched",
|
|
52009
|
+
"diverged",
|
|
52010
|
+
"unknown",
|
|
52011
|
+
"latched",
|
|
52012
|
+
"live"
|
|
52013
|
+
]);
|
|
51009
52014
|
/**
|
|
51010
52015
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
51011
52016
|
*
|
|
@@ -51099,7 +52104,7 @@ var PreviewTextField = string().max(200);
|
|
|
51099
52104
|
* Whether the notification's preview is a STILL or a short animation.
|
|
51100
52105
|
*
|
|
51101
52106
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
51102
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
52107
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
51103
52108
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
51104
52109
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
51105
52110
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -51237,6 +52242,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
51237
52242
|
createdAt: number(),
|
|
51238
52243
|
updatedAt: number()
|
|
51239
52244
|
});
|
|
52245
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
51240
52246
|
object({
|
|
51241
52247
|
/**
|
|
51242
52248
|
* Fraction of the box's own size added on EACH side before cutting.
|