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