@camstack/addon-provider-homematic 1.2.122 → 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 +893 -326
- package/dist/addon.mjs +893 -326
- package/package.json +1 -3
package/dist/addon.js
CHANGED
|
@@ -8,7 +8,7 @@ let http = require("http");
|
|
|
8
8
|
let crypto$1 = require("crypto");
|
|
9
9
|
let fs_promises = require("fs/promises");
|
|
10
10
|
let path = require("path");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -541,6 +541,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
541
541
|
*/
|
|
542
542
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
543
543
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
544
|
+
/**
|
|
545
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
546
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
547
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
548
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
549
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
550
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
551
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
552
|
+
*/
|
|
544
553
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
545
554
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
546
555
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5379,7 +5388,7 @@ var ZodIssueCode = {
|
|
|
5379
5388
|
var ZodFirstPartyTypeKind;
|
|
5380
5389
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5381
5390
|
//#endregion
|
|
5382
|
-
//#region ../types/dist/sleep-
|
|
5391
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5383
5392
|
/**
|
|
5384
5393
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5385
5394
|
* window to float samples (D455).
|
|
@@ -7422,7 +7431,7 @@ function errMsg(err) {
|
|
|
7422
7431
|
return String(err);
|
|
7423
7432
|
}
|
|
7424
7433
|
//#endregion
|
|
7425
|
-
//#region ../types/dist/composition-
|
|
7434
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
7426
7435
|
/**
|
|
7427
7436
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7428
7437
|
*
|
|
@@ -7476,21 +7485,20 @@ function portable(target) {
|
|
|
7476
7485
|
}
|
|
7477
7486
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7478
7487
|
/**
|
|
7479
|
-
*
|
|
7480
|
-
*
|
|
7488
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7489
|
+
* pure evaluator of its EDGE.
|
|
7481
7490
|
*
|
|
7482
|
-
*
|
|
7483
|
-
*
|
|
7484
|
-
*
|
|
7485
|
-
*
|
|
7486
|
-
*
|
|
7487
|
-
*
|
|
7488
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7491
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7492
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7493
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7494
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7495
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7496
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7489
7497
|
*
|
|
7490
|
-
* ⚠
|
|
7491
|
-
*
|
|
7492
|
-
*
|
|
7493
|
-
*
|
|
7498
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7499
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7500
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7501
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7494
7502
|
*/
|
|
7495
7503
|
/**
|
|
7496
7504
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -9099,22 +9107,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
9099
9107
|
"package"
|
|
9100
9108
|
];
|
|
9101
9109
|
/**
|
|
9102
|
-
*
|
|
9103
|
-
*
|
|
9110
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9111
|
+
* an operator can select.
|
|
9104
9112
|
*
|
|
9105
|
-
*
|
|
9113
|
+
* They are the three offered by the `object-detection` step
|
|
9106
9114
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
9107
|
-
* `enabledMacroClasses`). `package`
|
|
9108
|
-
* `MACRO_LABELS` —
|
|
9109
|
-
* `package-detection`,
|
|
9110
|
-
*
|
|
9115
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9116
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9117
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9118
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
9111
9119
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
9112
9120
|
*
|
|
9113
|
-
*
|
|
9114
|
-
*
|
|
9115
|
-
* (`types/detection.ts`);
|
|
9116
|
-
* (`RecordingTriggers.objectClasses`)
|
|
9117
|
-
*
|
|
9121
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9122
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9123
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9124
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9125
|
+
* invisible.
|
|
9118
9126
|
*/
|
|
9119
9127
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
9120
9128
|
"person",
|
|
@@ -9179,17 +9187,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9179
9187
|
"on-device-decision"
|
|
9180
9188
|
]);
|
|
9181
9189
|
/**
|
|
9182
|
-
*
|
|
9183
|
-
*
|
|
9190
|
+
* The macro classes that can open a recording window — the same
|
|
9191
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9184
9192
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9185
9193
|
*/
|
|
9186
9194
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9187
9195
|
/**
|
|
9188
|
-
* True
|
|
9196
|
+
* True when `values` does not repeat an element.
|
|
9189
9197
|
*
|
|
9190
|
-
*
|
|
9191
|
-
*
|
|
9192
|
-
*
|
|
9198
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9199
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9200
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9193
9201
|
*/
|
|
9194
9202
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9195
9203
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9197,34 +9205,34 @@ var RecordingTriggersSchema = object({
|
|
|
9197
9205
|
motion: boolean().optional(),
|
|
9198
9206
|
audioThresholdDbfs: number().optional(),
|
|
9199
9207
|
/**
|
|
9200
|
-
*
|
|
9201
|
-
*
|
|
9202
|
-
*
|
|
9203
|
-
*
|
|
9208
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9209
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9210
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9211
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9204
9212
|
*
|
|
9205
|
-
*
|
|
9206
|
-
*
|
|
9207
|
-
* `minConfidence<Macro>`
|
|
9208
|
-
* (`source: 'onboard'`)
|
|
9209
|
-
*
|
|
9213
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9214
|
+
* those that went through `enabledMacroClasses`, the
|
|
9215
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9216
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9217
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9210
9218
|
*/
|
|
9211
9219
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9212
9220
|
/**
|
|
9213
|
-
*
|
|
9214
|
-
*
|
|
9221
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9222
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9215
9223
|
* `objectClasses`.
|
|
9216
9224
|
*
|
|
9217
|
-
*
|
|
9218
|
-
*
|
|
9219
|
-
*
|
|
9220
|
-
*
|
|
9221
|
-
* device (D12) —
|
|
9225
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9226
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9227
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9228
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9229
|
+
* device (D12) — never a global list of caps.
|
|
9222
9230
|
*
|
|
9223
|
-
*
|
|
9224
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9225
|
-
*
|
|
9226
|
-
*
|
|
9227
|
-
*
|
|
9231
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9232
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9233
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9234
|
+
* the level: a contact found already open at runner restart does not
|
|
9235
|
+
* record.
|
|
9228
9236
|
*/
|
|
9229
9237
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9230
9238
|
});
|
|
@@ -10301,7 +10309,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10301
10309
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10302
10310
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10303
10311
|
* over the values is the exact defect
|
|
10304
|
-
* `docs/design/plans/2026-08-26-
|
|
10312
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10305
10313
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10306
10314
|
*
|
|
10307
10315
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -12012,7 +12020,7 @@ var BrokerStatusEnum = _enum([
|
|
|
12012
12020
|
"unreachable",
|
|
12013
12021
|
"error"
|
|
12014
12022
|
]);
|
|
12015
|
-
var BrokerInfoSchema
|
|
12023
|
+
var BrokerInfoSchema = object({
|
|
12016
12024
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
12017
12025
|
id: string(),
|
|
12018
12026
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -12155,8 +12163,8 @@ var brokerCapability = {
|
|
|
12155
12163
|
kind: "poll"
|
|
12156
12164
|
},
|
|
12157
12165
|
methods: {
|
|
12158
|
-
list: method(ListInputSchema, array(BrokerInfoSchema
|
|
12159
|
-
get: method(GetInputSchema, BrokerInfoSchema
|
|
12166
|
+
list: method(ListInputSchema, array(BrokerInfoSchema)),
|
|
12167
|
+
get: method(GetInputSchema, BrokerInfoSchema.nullable()),
|
|
12160
12168
|
/** Enumerate which addon provides which broker kind(s) for the
|
|
12161
12169
|
* unified create picker. The auto-mount fans this array across
|
|
12162
12170
|
* every registered `broker` provider (array-output method), so the
|
|
@@ -13905,7 +13913,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13905
13913
|
*
|
|
13906
13914
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13907
13915
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13908
|
-
* (`docs/design/2026-08-26-
|
|
13916
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13909
13917
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13910
13918
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13911
13919
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14898,7 +14906,17 @@ var SiteZoneSchema = object({
|
|
|
14898
14906
|
var ProviderStatusSchema = object({
|
|
14899
14907
|
connected: boolean(),
|
|
14900
14908
|
deviceCount: number(),
|
|
14901
|
-
error: string().optional()
|
|
14909
|
+
error: string().optional(),
|
|
14910
|
+
/**
|
|
14911
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14912
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14913
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14914
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14915
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14916
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14917
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14918
|
+
*/
|
|
14919
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
14902
14920
|
});
|
|
14903
14921
|
object({
|
|
14904
14922
|
externalId: string(),
|
|
@@ -15777,109 +15795,10 @@ method(object({
|
|
|
15777
15795
|
deviceIds: array(number()).readonly(),
|
|
15778
15796
|
caps: array(string()).readonly().optional()
|
|
15779
15797
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
* name (same pattern as `snapshot`):
|
|
15783
|
-
*
|
|
15784
|
-
* - **Native** providers: registered per-device by device-driver
|
|
15785
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
15786
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
15787
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
15788
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
15789
|
-
* ring; status tracks the last press and a pressCount since start
|
|
15790
|
-
* (diagnostic).
|
|
15791
|
-
*
|
|
15792
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
15793
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
15794
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
15795
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
15796
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
15797
|
-
* device + trigger in the per-device settings.
|
|
15798
|
-
*
|
|
15799
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
15800
|
-
* — subscribers listening at the camera level receive ring events
|
|
15801
|
-
* with `via[]` populated. No code on the parent needed.
|
|
15802
|
-
*/
|
|
15803
|
-
var DoorbellStatusSchema = object({
|
|
15804
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15805
|
-
lastPressedAt: number().nullable(),
|
|
15806
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15807
|
-
pressCountSinceStart: number()
|
|
15808
|
-
});
|
|
15809
|
-
var DoorbellPressEventSchema = object({
|
|
15810
|
-
deviceId: number(),
|
|
15811
|
-
timestamp: number()
|
|
15812
|
-
});
|
|
15813
|
-
/**
|
|
15814
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15815
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15816
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15817
|
-
*/
|
|
15818
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15819
|
-
/**
|
|
15820
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
15821
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
15822
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
15823
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
15824
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
15825
|
-
* reports it, it never writes it.
|
|
15826
|
-
*/
|
|
15827
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
15828
|
-
id: "doorbell-source",
|
|
15829
|
-
label: "Doorbell trigger devices",
|
|
15830
|
-
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.",
|
|
15831
|
-
shape: "association",
|
|
15832
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
15833
|
-
sourceCaps: SOURCE_CAPS,
|
|
15834
|
-
cardinality: "many",
|
|
15835
|
-
value: DoorbellSourceSlotValueSchema
|
|
15836
|
-
};
|
|
15837
|
-
var doorbellCapability = {
|
|
15838
|
-
name: "doorbell",
|
|
15839
|
-
scope: "device",
|
|
15840
|
-
deviceNative: true,
|
|
15841
|
-
mode: "singleton",
|
|
15842
|
-
kind: "wrapper",
|
|
15843
|
-
defaultActive: false,
|
|
15844
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
15845
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
15846
|
-
methods: {},
|
|
15847
|
-
events: {
|
|
15848
|
-
/**
|
|
15849
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
15850
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
15851
|
-
* release/duration — it's a pulse.
|
|
15852
|
-
*/
|
|
15853
|
-
onPressed: {
|
|
15854
|
-
data: DoorbellPressEventSchema,
|
|
15855
|
-
fromState: {
|
|
15856
|
-
field: "lastPressedAt",
|
|
15857
|
-
on: "advance"
|
|
15858
|
-
}
|
|
15859
|
-
} },
|
|
15860
|
-
status: {
|
|
15861
|
-
schema: DoorbellStatusSchema,
|
|
15862
|
-
kind: "push"
|
|
15863
|
-
},
|
|
15864
|
-
/**
|
|
15865
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
15866
|
-
* Mirrored by the kernel and readable via
|
|
15867
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
15868
|
-
* without subscribing.
|
|
15869
|
-
*/
|
|
15870
|
-
runtimeState: DoorbellStatusSchema,
|
|
15871
|
-
/**
|
|
15872
|
-
* 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.
|
|
15873
|
-
*
|
|
15874
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
15875
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
15876
|
-
*/
|
|
15877
|
-
durability: "restored"
|
|
15878
|
-
};
|
|
15879
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15880
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
15798
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
15799
|
+
DeviceType.Camera;
|
|
15881
15800
|
/** A slot's editable value, discriminated on `slot`. */
|
|
15882
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
15801
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15883
15802
|
DeviceType.Camera;
|
|
15884
15803
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15885
15804
|
state: literal("unreachable"),
|
|
@@ -15916,10 +15835,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
15916
15835
|
});
|
|
15917
15836
|
/**
|
|
15918
15837
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15919
|
-
* reported read-only, named, never written through this contract (D62).
|
|
15920
|
-
*
|
|
15921
|
-
*
|
|
15922
|
-
* `unknown` means the gate could
|
|
15838
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
15839
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
15840
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
15841
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
15842
|
+
* not be read; it is not "inactive" (D315).
|
|
15923
15843
|
*/
|
|
15924
15844
|
var ExtensionSlotActivationSchema = object({
|
|
15925
15845
|
state: _enum([
|
|
@@ -15935,7 +15855,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
15935
15855
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15936
15856
|
slotRef: string(),
|
|
15937
15857
|
slot: ExtensionSlotIdSchema,
|
|
15938
|
-
/** Names the store written (D62), e.g. `
|
|
15858
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
15939
15859
|
authority: string(),
|
|
15940
15860
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15941
15861
|
value: ExtensionSlotValueSchema,
|
|
@@ -16213,7 +16133,7 @@ method(object({
|
|
|
16213
16133
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
16214
16134
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
16215
16135
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
16216
|
-
* ricontrolliamo tutti questi punti"
|
|
16136
|
+
* ricontrolliamo tutti questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]. Reading them meant grepping Loki and
|
|
16217
16137
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
16218
16138
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
16219
16139
|
* be READ.
|
|
@@ -17589,7 +17509,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
17589
17509
|
"unreachable",
|
|
17590
17510
|
"tls-error"
|
|
17591
17511
|
]);
|
|
17592
|
-
var BrokerInfoSchema = object({
|
|
17512
|
+
var BrokerInfoSchema$1 = object({
|
|
17593
17513
|
id: string(),
|
|
17594
17514
|
name: string(),
|
|
17595
17515
|
url: string(),
|
|
@@ -17652,7 +17572,7 @@ var StatusSchema = object({
|
|
|
17652
17572
|
brokerCount: number(),
|
|
17653
17573
|
embeddedRunning: boolean()
|
|
17654
17574
|
});
|
|
17655
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17575
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17656
17576
|
kind: "mutation",
|
|
17657
17577
|
auth: "admin"
|
|
17658
17578
|
}), method(IdInputSchema, _void(), {
|
|
@@ -19866,78 +19786,16 @@ var NcRuleInputSchema = object({
|
|
|
19866
19786
|
*/
|
|
19867
19787
|
confirm: NcConfirmSchema.optional(),
|
|
19868
19788
|
/**
|
|
19869
|
-
*
|
|
19870
|
-
*
|
|
19871
|
-
*
|
|
19872
|
-
*
|
|
19873
|
-
*
|
|
19874
|
-
*
|
|
19875
|
-
*
|
|
19876
|
-
*
|
|
19877
|
-
*
|
|
19878
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
19879
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
19880
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
19881
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
19882
|
-
*
|
|
19883
|
-
* | value | what happens |
|
|
19884
|
-
* | --- | --- |
|
|
19885
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
19886
|
-
* | 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) |
|
|
19887
|
-
*
|
|
19888
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19889
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
19890
|
-
* rule authored before this field meant.
|
|
19891
|
-
*
|
|
19892
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
19893
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
19894
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
19895
|
-
* be satisfied, because a closed track carries no crossing.
|
|
19789
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
19790
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
19791
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
19792
|
+
* the rule matched, with one mosaic tile per subject.
|
|
19793
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
19794
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
19795
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
19796
|
+
* path does not run Zod defaults.
|
|
19896
19797
|
*/
|
|
19897
|
-
|
|
19898
|
-
/**
|
|
19899
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
19900
|
-
*
|
|
19901
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
19902
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
19903
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
19904
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
19905
|
-
* notification with an updated one naming everybody. The push carries the
|
|
19906
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
19907
|
-
*
|
|
19908
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
19909
|
-
*
|
|
19910
|
-
* ### Why an idle cutoff and not a window
|
|
19911
|
-
*
|
|
19912
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19913
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19914
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19915
|
-
* 30 s is a widely shipped value for the same decision.
|
|
19916
|
-
*
|
|
19917
|
-
* ### What it replaces
|
|
19918
|
-
*
|
|
19919
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
19920
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
19921
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
19922
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
19923
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
19924
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
19925
|
-
* throttled by the window its own first member spent.
|
|
19926
|
-
*
|
|
19927
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
19928
|
-
*
|
|
19929
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
19930
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
19931
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
19932
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
19933
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
19934
|
-
* path. Neither combination fires twice for one subject.
|
|
19935
|
-
*
|
|
19936
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19937
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
19938
|
-
* field existed.
|
|
19939
|
-
*/
|
|
19940
|
-
groupIdleSec: number().int().min(0).max(600).optional()
|
|
19798
|
+
groupingSec: number().int().min(5).max(60).optional()
|
|
19941
19799
|
});
|
|
19942
19800
|
/**
|
|
19943
19801
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -19985,9 +19843,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
19985
19843
|
"targetUsers",
|
|
19986
19844
|
"snoozeOptions",
|
|
19987
19845
|
"snoozeAllowGlobal",
|
|
19988
|
-
"waitForEnhancement",
|
|
19989
19846
|
"actions",
|
|
19990
19847
|
"confirm",
|
|
19848
|
+
"groupingSec",
|
|
19849
|
+
"waitForEnhancement",
|
|
19991
19850
|
"groupIdleSec"
|
|
19992
19851
|
]);
|
|
19993
19852
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -20009,9 +19868,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
20009
19868
|
*/
|
|
20010
19869
|
disabledTargetIds: array(string()).default([])
|
|
20011
19870
|
});
|
|
19871
|
+
/**
|
|
19872
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
19873
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
19874
|
+
* job is not an open state, and the alarm stays instant.
|
|
19875
|
+
*/
|
|
19876
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
19877
|
+
"device-state",
|
|
19878
|
+
"streams",
|
|
19879
|
+
"battery",
|
|
19880
|
+
"consumables",
|
|
19881
|
+
"tanks",
|
|
19882
|
+
"detection-blind",
|
|
19883
|
+
"nodes",
|
|
19884
|
+
"addons",
|
|
19885
|
+
"updates"
|
|
19886
|
+
]);
|
|
20012
19887
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
20013
19888
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
20014
|
-
id:
|
|
19889
|
+
id: NcStateSummarySectionIdSchema,
|
|
20015
19890
|
status: _enum(["read", "unavailable"]),
|
|
20016
19891
|
items: number().int().nonnegative(),
|
|
20017
19892
|
reason: string().optional()
|
|
@@ -20021,7 +19896,7 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
20021
19896
|
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20022
19897
|
*/
|
|
20023
19898
|
var NcStateSummaryPreviewRowSchema = object({
|
|
20024
|
-
section:
|
|
19899
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
20025
19900
|
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20026
19901
|
title: string(),
|
|
20027
19902
|
text: string(),
|
|
@@ -20458,6 +20333,29 @@ object({
|
|
|
20458
20333
|
firstAt: number(),
|
|
20459
20334
|
lastAt: number()
|
|
20460
20335
|
});
|
|
20336
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
20337
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
20338
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
20339
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
20340
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
20341
|
+
mode: AlarmArmModeSchema,
|
|
20342
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20343
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20344
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
20345
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20346
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20347
|
+
mode: AlarmArmModeSchema,
|
|
20348
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20349
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20350
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
20351
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20352
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20353
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
20354
|
+
mode: AlarmArmModeSchema,
|
|
20355
|
+
deviceId: number().int().positive(),
|
|
20356
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
20357
|
+
nonBlocking: boolean()
|
|
20358
|
+
});
|
|
20461
20359
|
/**
|
|
20462
20360
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
20463
20361
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -20466,10 +20364,10 @@ object({
|
|
|
20466
20364
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
20467
20365
|
mode: AlarmArmModeSchema,
|
|
20468
20366
|
deviceIds: array(number().int()).max(200)
|
|
20469
|
-
})).max(8).refine(
|
|
20367
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
20470
20368
|
/**
|
|
20471
|
-
* The three durations
|
|
20472
|
-
* transitions, and which openings each mode tolerates.
|
|
20369
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
20370
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
20473
20371
|
*
|
|
20474
20372
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
20475
20373
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -20479,15 +20377,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
20479
20377
|
*/
|
|
20480
20378
|
var NcAlarmSettingsSchema = object({
|
|
20481
20379
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
20482
|
-
exitDelaySec:
|
|
20380
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
20483
20381
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
20484
|
-
entryDelaySec:
|
|
20382
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
20485
20383
|
/**
|
|
20486
20384
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
20487
20385
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
20488
20386
|
* existed, and therefore what an untouched install keeps doing.
|
|
20489
20387
|
*/
|
|
20490
|
-
triggeredDurationSec:
|
|
20388
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
20491
20389
|
/**
|
|
20492
20390
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
20493
20391
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -20510,17 +20408,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
20510
20408
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
20511
20409
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
20512
20410
|
*/
|
|
20513
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
20411
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
20412
|
+
/**
|
|
20413
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
20414
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
20415
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
20416
|
+
*/
|
|
20417
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
20514
20418
|
});
|
|
20515
20419
|
/**
|
|
20516
20420
|
* Every field optional — a tab edits one control at a time.
|
|
20517
20421
|
*
|
|
20518
|
-
* `nonBlocking`
|
|
20519
|
-
* remove an inner `.default()`, so a patch that never
|
|
20520
|
-
* parse to `
|
|
20521
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
20422
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
20423
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
20424
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
20425
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
20426
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
20522
20427
|
*/
|
|
20523
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20428
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20429
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
20430
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
20431
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
20432
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
20433
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
20434
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
20524
20435
|
/**
|
|
20525
20436
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
20526
20437
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -20620,6 +20531,28 @@ var NcAlarmConfigSchema = object({
|
|
|
20620
20531
|
*/
|
|
20621
20532
|
live: NcAlarmLiveSchema.optional()
|
|
20622
20533
|
});
|
|
20534
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
20535
|
+
"open",
|
|
20536
|
+
"closed",
|
|
20537
|
+
"unknown",
|
|
20538
|
+
"not-opening"
|
|
20539
|
+
]);
|
|
20540
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
20541
|
+
var NcAlarmSensorStateSchema = object({
|
|
20542
|
+
deviceId: number().int().positive(),
|
|
20543
|
+
reading: NcAlarmSensorReadingSchema,
|
|
20544
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
20545
|
+
state: string().nullable(),
|
|
20546
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
20547
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
20548
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
20549
|
+
online: boolean().nullable()
|
|
20550
|
+
});
|
|
20551
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
20552
|
+
var NcAlarmSensorsSchema = object({
|
|
20553
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
20554
|
+
readAt: number().int().nonnegative()
|
|
20555
|
+
});
|
|
20623
20556
|
/**
|
|
20624
20557
|
* ONE rule's demand on ONE camera's clip ring.
|
|
20625
20558
|
*
|
|
@@ -20710,7 +20643,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
20710
20643
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
20711
20644
|
kind: "mutation",
|
|
20712
20645
|
auth: "admin"
|
|
20713
|
-
});
|
|
20646
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
20714
20647
|
/**
|
|
20715
20648
|
* Zod schemas for persisted record types.
|
|
20716
20649
|
*
|
|
@@ -21057,12 +20990,26 @@ var CameraSensorRefSchema = object({
|
|
|
21057
20990
|
function cameraSensorRefKey(ref) {
|
|
21058
20991
|
return `${ref.addonId}/${ref.stableId}`;
|
|
21059
20992
|
}
|
|
21060
|
-
/**
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
20993
|
+
/**
|
|
20994
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
20995
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
20996
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
20997
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
20998
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
20999
|
+
*/
|
|
21000
|
+
var CameraSensorModeSchema = _enum([
|
|
21001
|
+
"in-addition",
|
|
21002
|
+
"confirm",
|
|
21003
|
+
"replace"
|
|
21004
|
+
]);
|
|
21005
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
21006
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
21007
|
+
/**
|
|
21008
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
21009
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
21010
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
21011
|
+
*/
|
|
21012
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
21066
21013
|
const seen = /* @__PURE__ */ new Set();
|
|
21067
21014
|
value.sensors.forEach((ref, index) => {
|
|
21068
21015
|
const key = cameraSensorRefKey(ref);
|
|
@@ -21074,39 +21021,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
21074
21021
|
seen.add(key);
|
|
21075
21022
|
});
|
|
21076
21023
|
});
|
|
21077
|
-
|
|
21024
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
21025
|
+
var AttachmentFields = {
|
|
21078
21026
|
addonId: string(),
|
|
21079
|
-
stableId: string()
|
|
21027
|
+
stableId: string(),
|
|
21028
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
21080
21029
|
};
|
|
21081
21030
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
21082
21031
|
object({
|
|
21083
|
-
...
|
|
21032
|
+
...AttachmentFields,
|
|
21084
21033
|
state: literal("ready"),
|
|
21085
21034
|
deviceId: number(),
|
|
21086
21035
|
name: string(),
|
|
21087
21036
|
caps: array(string()).readonly()
|
|
21088
21037
|
}),
|
|
21089
21038
|
object({
|
|
21090
|
-
...
|
|
21039
|
+
...AttachmentFields,
|
|
21091
21040
|
state: literal("offline"),
|
|
21092
21041
|
deviceId: number(),
|
|
21093
21042
|
name: string(),
|
|
21094
21043
|
reason: _enum(["offline", "disabled"])
|
|
21095
21044
|
}),
|
|
21096
21045
|
object({
|
|
21097
|
-
...
|
|
21046
|
+
...AttachmentFields,
|
|
21098
21047
|
state: literal("missing"),
|
|
21099
21048
|
reason: string()
|
|
21100
21049
|
}),
|
|
21101
21050
|
object({
|
|
21102
|
-
...
|
|
21051
|
+
...AttachmentFields,
|
|
21103
21052
|
state: literal("unsupported"),
|
|
21104
21053
|
deviceId: number(),
|
|
21105
21054
|
name: string(),
|
|
21106
21055
|
reason: string()
|
|
21107
21056
|
}),
|
|
21108
21057
|
object({
|
|
21109
|
-
...
|
|
21058
|
+
...AttachmentFields,
|
|
21110
21059
|
state: literal("unreadable"),
|
|
21111
21060
|
reason: string()
|
|
21112
21061
|
})
|
|
@@ -21119,17 +21068,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
21119
21068
|
* say.
|
|
21120
21069
|
*/
|
|
21121
21070
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
21071
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
21072
|
+
var CameraOwnMotionSchema = _enum([
|
|
21073
|
+
"always",
|
|
21074
|
+
"when-confirmed",
|
|
21075
|
+
"never"
|
|
21076
|
+
]);
|
|
21077
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
21078
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
21079
|
+
/**
|
|
21080
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
21081
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
21082
|
+
* so a view of the camera's own row reads this.
|
|
21083
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
21084
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
21085
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
21086
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
21087
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
21088
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
21089
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
21090
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
21091
|
+
*/
|
|
21092
|
+
var CameraRawLevelSchema = object({
|
|
21093
|
+
detected: boolean(),
|
|
21094
|
+
atMs: number()
|
|
21095
|
+
});
|
|
21122
21096
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
21123
|
-
object({
|
|
21097
|
+
object({
|
|
21098
|
+
state: literal("not-configured"),
|
|
21099
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
21100
|
+
}),
|
|
21124
21101
|
object({
|
|
21125
21102
|
state: literal("unreadable"),
|
|
21126
|
-
reason: string()
|
|
21103
|
+
reason: string(),
|
|
21104
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
21127
21105
|
}),
|
|
21128
21106
|
object({
|
|
21129
21107
|
state: literal("configured"),
|
|
21130
|
-
|
|
21108
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
21131
21109
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
21132
|
-
|
|
21110
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
21111
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
21112
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
21113
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
21133
21114
|
})
|
|
21134
21115
|
]);
|
|
21135
21116
|
Object.freeze({
|
|
@@ -21814,14 +21795,14 @@ var TrackSchema = object({
|
|
|
21814
21795
|
* `derive-returned-null tile=standin`,
|
|
21815
21796
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
21816
21797
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
21817
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
21798
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
21818
21799
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
21819
21800
|
*
|
|
21820
21801
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
21821
21802
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
21822
21803
|
* while its key frame missed carried no reason at all — three of the four
|
|
21823
21804
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
21824
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
21805
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
21825
21806
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
21826
21807
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
21827
21808
|
* tile ended up being.
|
|
@@ -21908,7 +21889,7 @@ var MotionEventSchema = object({
|
|
|
21908
21889
|
/**
|
|
21909
21890
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
21910
21891
|
* first entry is always `0`) of every genuine off→on transition the
|
|
21911
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
21892
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
21912
21893
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
21913
21894
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
21914
21895
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -22432,6 +22413,7 @@ var KeyEventSchema = object({
|
|
|
22432
22413
|
bestEventId: string(),
|
|
22433
22414
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
22434
22415
|
windowMs: number().optional(),
|
|
22416
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
22435
22417
|
...TrackFlagFields,
|
|
22436
22418
|
...TrackRetrainFields
|
|
22437
22419
|
});
|
|
@@ -24360,8 +24342,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
24360
24342
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
24361
24343
|
* analyzer providers) running on decoded frames in this runner.
|
|
24362
24344
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
24363
|
-
* analytics). The provider emits ProviderMotion
|
|
24364
|
-
*
|
|
24345
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
24346
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
24347
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
24348
|
+
* `reportMotion`.
|
|
24365
24349
|
*/
|
|
24366
24350
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24367
24351
|
/**
|
|
@@ -24538,7 +24522,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24538
24522
|
hasGpu: boolean(),
|
|
24539
24523
|
inferenceBackend: string().optional(),
|
|
24540
24524
|
cpuCores: number().optional()
|
|
24541
|
-
})
|
|
24525
|
+
}),
|
|
24526
|
+
/**
|
|
24527
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
24528
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
24529
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
24530
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
24531
|
+
* writers.
|
|
24532
|
+
*/
|
|
24533
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
24542
24534
|
});
|
|
24543
24535
|
/**
|
|
24544
24536
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -27203,7 +27195,7 @@ var ClipPlaybackSchema = object({
|
|
|
27203
27195
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
27204
27196
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
27205
27197
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
27206
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
27198
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
27207
27199
|
* D558 "Considered and not taken").
|
|
27208
27200
|
*/
|
|
27209
27201
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -27464,7 +27456,7 @@ DeviceType.Camera, method(object({
|
|
|
27464
27456
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
27465
27457
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
27466
27458
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
27467
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
27459
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
27468
27460
|
* nothing to filter out of it.
|
|
27469
27461
|
*/
|
|
27470
27462
|
provider: string().min(1)
|
|
@@ -30059,6 +30051,70 @@ onStatusChanged: { data: object({
|
|
|
30059
30051
|
* whether persisting is worth a SQLite commit. */
|
|
30060
30052
|
volatileStateFields: ["lastChangedAt"]
|
|
30061
30053
|
};
|
|
30054
|
+
var DoorbellStatusSchema = object({
|
|
30055
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
30056
|
+
lastPressedAt: number().nullable(),
|
|
30057
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
30058
|
+
pressCountSinceStart: number()
|
|
30059
|
+
});
|
|
30060
|
+
var DoorbellPressEventSchema = object({
|
|
30061
|
+
deviceId: number(),
|
|
30062
|
+
timestamp: number()
|
|
30063
|
+
});
|
|
30064
|
+
/**
|
|
30065
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
30066
|
+
* they are the same cap:
|
|
30067
|
+
*
|
|
30068
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
30069
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
30070
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
30071
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
30072
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
30073
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
30074
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
30075
|
+
* from that field's advance (`fromState`).
|
|
30076
|
+
*
|
|
30077
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
30078
|
+
*/
|
|
30079
|
+
var doorbellCapability = {
|
|
30080
|
+
name: "doorbell",
|
|
30081
|
+
scope: "device",
|
|
30082
|
+
deviceNative: true,
|
|
30083
|
+
mode: "singleton",
|
|
30084
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
30085
|
+
methods: {},
|
|
30086
|
+
events: {
|
|
30087
|
+
/**
|
|
30088
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
30089
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
30090
|
+
* release/duration — it's a pulse.
|
|
30091
|
+
*/
|
|
30092
|
+
onPressed: {
|
|
30093
|
+
data: DoorbellPressEventSchema,
|
|
30094
|
+
fromState: {
|
|
30095
|
+
field: "lastPressedAt",
|
|
30096
|
+
on: "advance"
|
|
30097
|
+
}
|
|
30098
|
+
} },
|
|
30099
|
+
status: {
|
|
30100
|
+
schema: DoorbellStatusSchema,
|
|
30101
|
+
kind: "push"
|
|
30102
|
+
},
|
|
30103
|
+
/**
|
|
30104
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
30105
|
+
* Mirrored by the kernel and readable via
|
|
30106
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
30107
|
+
* without subscribing.
|
|
30108
|
+
*/
|
|
30109
|
+
runtimeState: DoorbellStatusSchema,
|
|
30110
|
+
/**
|
|
30111
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
30112
|
+
*
|
|
30113
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30114
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30115
|
+
*/
|
|
30116
|
+
durability: "restored"
|
|
30117
|
+
};
|
|
30062
30118
|
/**
|
|
30063
30119
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
30064
30120
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -32203,9 +32259,9 @@ var MotionStatusSchema = object({
|
|
|
32203
32259
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
32204
32260
|
lastDetectedAt: number().nullable(),
|
|
32205
32261
|
/**
|
|
32206
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
32207
|
-
* `null` while false and on every `Sensor`
|
|
32208
|
-
* constant's doc for the one-authority rule.
|
|
32262
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
32263
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
32264
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
32209
32265
|
*
|
|
32210
32266
|
* ## Reading this field still arms nothing
|
|
32211
32267
|
*
|
|
@@ -32223,34 +32279,31 @@ var MotionStatusSchema = object({
|
|
|
32223
32279
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
32224
32280
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
32225
32281
|
*
|
|
32226
|
-
* ## Who writes it
|
|
32227
|
-
*
|
|
32228
|
-
* - **Cameras** — the
|
|
32229
|
-
*
|
|
32230
|
-
* `
|
|
32231
|
-
* `
|
|
32232
|
-
*
|
|
32233
|
-
*
|
|
32234
|
-
* a
|
|
32235
|
-
*
|
|
32236
|
-
*
|
|
32237
|
-
*
|
|
32238
|
-
*
|
|
32239
|
-
*
|
|
32240
|
-
*
|
|
32241
|
-
*
|
|
32242
|
-
*
|
|
32243
|
-
*
|
|
32244
|
-
* `
|
|
32245
|
-
*
|
|
32246
|
-
*
|
|
32247
|
-
*
|
|
32248
|
-
*
|
|
32249
|
-
*
|
|
32250
|
-
*
|
|
32251
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
32252
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
32253
|
-
* "sole writer" wording without also removing the other writers.
|
|
32282
|
+
* ## Who writes it (D696)
|
|
32283
|
+
*
|
|
32284
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
32285
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
32286
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
32287
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
32288
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
32289
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
32290
|
+
* that never sends a clear falls one window after its last `true`.
|
|
32291
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
32292
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32293
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32294
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32295
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
32296
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32297
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
32298
|
+
* system's own state change. That is the sensor's own fact.
|
|
32299
|
+
*
|
|
32300
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
32301
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
32302
|
+
*
|
|
32303
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
32304
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
32305
|
+
* it, every provider seeded it at boot, and every session left it
|
|
32306
|
+
* `detected: true` after its detach.
|
|
32254
32307
|
*/
|
|
32255
32308
|
autoClearAfterMs: number().nullable()
|
|
32256
32309
|
});
|
|
@@ -32322,11 +32375,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
32322
32375
|
*/
|
|
32323
32376
|
runtimeState: MotionStatusSchema,
|
|
32324
32377
|
/**
|
|
32325
|
-
* Runtime-state durability: **session** —
|
|
32378
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
32326
32379
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
32327
32380
|
* frozen until the next one instead of being corrected. The next edge
|
|
32328
|
-
* re-publishes the real state
|
|
32329
|
-
*
|
|
32381
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
32382
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
32383
|
+
* `autoClearAfterMs` above).
|
|
32330
32384
|
*
|
|
32331
32385
|
* See `RuntimeStateDurability`. Enforced by
|
|
32332
32386
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -34709,8 +34763,7 @@ var ptzAutotrackCapability = {
|
|
|
34709
34763
|
deviceNative: true,
|
|
34710
34764
|
mode: "singleton",
|
|
34711
34765
|
/**
|
|
34712
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
34713
|
-
* `doorbell` use:
|
|
34766
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
34714
34767
|
*
|
|
34715
34768
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
34716
34769
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -34718,7 +34771,7 @@ var ptzAutotrackCapability = {
|
|
|
34718
34771
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
34719
34772
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
34720
34773
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
34721
|
-
* the bindings UI
|
|
34774
|
+
* the bindings UI.
|
|
34722
34775
|
*
|
|
34723
34776
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
34724
34777
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -35393,7 +35446,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
35393
35446
|
/**
|
|
35394
35447
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
35395
35448
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
35396
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
35449
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
35397
35450
|
* a replay needs several seconds of native pixels, not one frame.
|
|
35398
35451
|
*
|
|
35399
35452
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -38757,6 +38810,7 @@ var zoneRulesCapability = {
|
|
|
38757
38810
|
*/
|
|
38758
38811
|
durability: "restored"
|
|
38759
38812
|
};
|
|
38813
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
38760
38814
|
/**
|
|
38761
38815
|
* Accessory device helpers — shared across drivers.
|
|
38762
38816
|
*
|
|
@@ -39816,13 +39870,14 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
39816
39870
|
async getStatus() {
|
|
39817
39871
|
const all = await this.ctx.kernel.devices?.getAll() ?? [];
|
|
39818
39872
|
const summary = this.restoreFailureSummary();
|
|
39819
|
-
|
|
39873
|
+
const base = {
|
|
39820
39874
|
connected: true,
|
|
39821
|
-
deviceCount: all.length
|
|
39875
|
+
deviceCount: all.length,
|
|
39876
|
+
motionSliceWriter: "orchestrator"
|
|
39822
39877
|
};
|
|
39878
|
+
if (summary === null) return base;
|
|
39823
39879
|
return {
|
|
39824
|
-
|
|
39825
|
-
deviceCount: all.length,
|
|
39880
|
+
...base,
|
|
39826
39881
|
error: summary
|
|
39827
39882
|
};
|
|
39828
39883
|
}
|
|
@@ -45258,6 +45313,12 @@ Object.freeze({
|
|
|
45258
45313
|
addonId: null,
|
|
45259
45314
|
access: "view"
|
|
45260
45315
|
},
|
|
45316
|
+
"notificationRules.getAlarmSensors": {
|
|
45317
|
+
capName: "notification-rules",
|
|
45318
|
+
capScope: "system",
|
|
45319
|
+
addonId: null,
|
|
45320
|
+
access: "view"
|
|
45321
|
+
},
|
|
45261
45322
|
"notificationRules.getClipRetentionAsks": {
|
|
45262
45323
|
capName: "notification-rules",
|
|
45263
45324
|
capScope: "system",
|
|
@@ -48836,6 +48897,11 @@ Object.freeze({
|
|
|
48836
48897
|
}
|
|
48837
48898
|
});
|
|
48838
48899
|
Object.freeze({
|
|
48900
|
+
"accessories.getStatus": [{
|
|
48901
|
+
name: "deviceId",
|
|
48902
|
+
form: "single",
|
|
48903
|
+
optional: false
|
|
48904
|
+
}],
|
|
48839
48905
|
"accessories.setChildHidden": [{
|
|
48840
48906
|
name: "childDeviceId",
|
|
48841
48907
|
form: "single",
|
|
@@ -48855,6 +48921,11 @@ Object.freeze({
|
|
|
48855
48921
|
form: "single",
|
|
48856
48922
|
optional: false
|
|
48857
48923
|
}],
|
|
48924
|
+
"airQualitySensor.getStatus": [{
|
|
48925
|
+
name: "deviceId",
|
|
48926
|
+
form: "single",
|
|
48927
|
+
optional: false
|
|
48928
|
+
}],
|
|
48858
48929
|
"alarmPanel.arm": [{
|
|
48859
48930
|
name: "deviceId",
|
|
48860
48931
|
form: "single",
|
|
@@ -48865,11 +48936,36 @@ Object.freeze({
|
|
|
48865
48936
|
form: "single",
|
|
48866
48937
|
optional: false
|
|
48867
48938
|
}],
|
|
48939
|
+
"alarmPanel.getStatus": [{
|
|
48940
|
+
name: "deviceId",
|
|
48941
|
+
form: "single",
|
|
48942
|
+
optional: false
|
|
48943
|
+
}],
|
|
48868
48944
|
"alarmPanel.trigger": [{
|
|
48869
48945
|
name: "deviceId",
|
|
48870
48946
|
form: "single",
|
|
48871
48947
|
optional: false
|
|
48872
48948
|
}],
|
|
48949
|
+
"ambientLightSensor.getStatus": [{
|
|
48950
|
+
name: "deviceId",
|
|
48951
|
+
form: "single",
|
|
48952
|
+
optional: false
|
|
48953
|
+
}],
|
|
48954
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
48955
|
+
name: "deviceId",
|
|
48956
|
+
form: "single",
|
|
48957
|
+
optional: false
|
|
48958
|
+
}],
|
|
48959
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
48960
|
+
name: "deviceId",
|
|
48961
|
+
form: "single",
|
|
48962
|
+
optional: false
|
|
48963
|
+
}],
|
|
48964
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
48965
|
+
name: "deviceId",
|
|
48966
|
+
form: "single",
|
|
48967
|
+
optional: false
|
|
48968
|
+
}],
|
|
48873
48969
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
48874
48970
|
name: "deviceId",
|
|
48875
48971
|
form: "single",
|
|
@@ -48910,16 +49006,36 @@ Object.freeze({
|
|
|
48910
49006
|
form: "single",
|
|
48911
49007
|
optional: false
|
|
48912
49008
|
}],
|
|
49009
|
+
"automationControl.getStatus": [{
|
|
49010
|
+
name: "deviceId",
|
|
49011
|
+
form: "single",
|
|
49012
|
+
optional: false
|
|
49013
|
+
}],
|
|
48913
49014
|
"automationControl.trigger": [{
|
|
48914
49015
|
name: "deviceId",
|
|
48915
49016
|
form: "single",
|
|
48916
49017
|
optional: false
|
|
48917
49018
|
}],
|
|
49019
|
+
"battery.getStatus": [{
|
|
49020
|
+
name: "deviceId",
|
|
49021
|
+
form: "single",
|
|
49022
|
+
optional: false
|
|
49023
|
+
}],
|
|
48918
49024
|
"battery.wakeForStream": [{
|
|
48919
49025
|
name: "deviceId",
|
|
48920
49026
|
form: "single",
|
|
48921
49027
|
optional: false
|
|
48922
49028
|
}],
|
|
49029
|
+
"binary.getStatus": [{
|
|
49030
|
+
name: "deviceId",
|
|
49031
|
+
form: "single",
|
|
49032
|
+
optional: false
|
|
49033
|
+
}],
|
|
49034
|
+
"brightness.getStatus": [{
|
|
49035
|
+
name: "deviceId",
|
|
49036
|
+
form: "single",
|
|
49037
|
+
optional: false
|
|
49038
|
+
}],
|
|
48923
49039
|
"brightness.setBrightness": [{
|
|
48924
49040
|
name: "deviceId",
|
|
48925
49041
|
form: "single",
|
|
@@ -48935,6 +49051,26 @@ Object.freeze({
|
|
|
48935
49051
|
form: "single",
|
|
48936
49052
|
optional: false
|
|
48937
49053
|
}],
|
|
49054
|
+
"cameraCredentials.getStatus": [{
|
|
49055
|
+
name: "deviceId",
|
|
49056
|
+
form: "single",
|
|
49057
|
+
optional: false
|
|
49058
|
+
}],
|
|
49059
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
49060
|
+
name: "deviceId",
|
|
49061
|
+
form: "single",
|
|
49062
|
+
optional: false
|
|
49063
|
+
}],
|
|
49064
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
49065
|
+
name: "deviceId",
|
|
49066
|
+
form: "single",
|
|
49067
|
+
optional: false
|
|
49068
|
+
}],
|
|
49069
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
49070
|
+
name: "deviceId",
|
|
49071
|
+
form: "single",
|
|
49072
|
+
optional: false
|
|
49073
|
+
}],
|
|
48938
49074
|
"cameraGridLayout.getLayout": [{
|
|
48939
49075
|
name: "deviceId",
|
|
48940
49076
|
form: "single",
|
|
@@ -48950,6 +49086,21 @@ Object.freeze({
|
|
|
48950
49086
|
form: "single",
|
|
48951
49087
|
optional: false
|
|
48952
49088
|
}],
|
|
49089
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
49090
|
+
name: "deviceId",
|
|
49091
|
+
form: "single",
|
|
49092
|
+
optional: false
|
|
49093
|
+
}],
|
|
49094
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
49095
|
+
name: "deviceId",
|
|
49096
|
+
form: "single",
|
|
49097
|
+
optional: false
|
|
49098
|
+
}],
|
|
49099
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
49100
|
+
name: "deviceId",
|
|
49101
|
+
form: "single",
|
|
49102
|
+
optional: false
|
|
49103
|
+
}],
|
|
48953
49104
|
"cameraStreams.getBrokerStreams": [{
|
|
48954
49105
|
name: "deviceId",
|
|
48955
49106
|
form: "single",
|
|
@@ -48975,6 +49126,16 @@ Object.freeze({
|
|
|
48975
49126
|
form: "single",
|
|
48976
49127
|
optional: false
|
|
48977
49128
|
}],
|
|
49129
|
+
"carbonMonoxide.getStatus": [{
|
|
49130
|
+
name: "deviceId",
|
|
49131
|
+
form: "single",
|
|
49132
|
+
optional: false
|
|
49133
|
+
}],
|
|
49134
|
+
"climateControl.getStatus": [{
|
|
49135
|
+
name: "deviceId",
|
|
49136
|
+
form: "single",
|
|
49137
|
+
optional: false
|
|
49138
|
+
}],
|
|
48978
49139
|
"climateControl.setFanMode": [{
|
|
48979
49140
|
name: "deviceId",
|
|
48980
49141
|
form: "single",
|
|
@@ -49015,16 +49176,41 @@ Object.freeze({
|
|
|
49015
49176
|
form: "single",
|
|
49016
49177
|
optional: false
|
|
49017
49178
|
}],
|
|
49179
|
+
"color.getStatus": [{
|
|
49180
|
+
name: "deviceId",
|
|
49181
|
+
form: "single",
|
|
49182
|
+
optional: false
|
|
49183
|
+
}],
|
|
49018
49184
|
"color.setColor": [{
|
|
49019
49185
|
name: "deviceId",
|
|
49020
49186
|
form: "single",
|
|
49021
49187
|
optional: false
|
|
49022
49188
|
}],
|
|
49189
|
+
"connectivity.getStatus": [{
|
|
49190
|
+
name: "deviceId",
|
|
49191
|
+
form: "single",
|
|
49192
|
+
optional: false
|
|
49193
|
+
}],
|
|
49194
|
+
"consumables.getStatus": [{
|
|
49195
|
+
name: "deviceId",
|
|
49196
|
+
form: "single",
|
|
49197
|
+
optional: false
|
|
49198
|
+
}],
|
|
49023
49199
|
"consumables.reset": [{
|
|
49024
49200
|
name: "deviceId",
|
|
49025
49201
|
form: "single",
|
|
49026
49202
|
optional: false
|
|
49027
49203
|
}],
|
|
49204
|
+
"contact.getStatus": [{
|
|
49205
|
+
name: "deviceId",
|
|
49206
|
+
form: "single",
|
|
49207
|
+
optional: false
|
|
49208
|
+
}],
|
|
49209
|
+
"control.getStatus": [{
|
|
49210
|
+
name: "deviceId",
|
|
49211
|
+
form: "single",
|
|
49212
|
+
optional: false
|
|
49213
|
+
}],
|
|
49028
49214
|
"control.setValue": [{
|
|
49029
49215
|
name: "deviceId",
|
|
49030
49216
|
form: "single",
|
|
@@ -49035,6 +49221,11 @@ Object.freeze({
|
|
|
49035
49221
|
form: "single",
|
|
49036
49222
|
optional: false
|
|
49037
49223
|
}],
|
|
49224
|
+
"cover.getStatus": [{
|
|
49225
|
+
name: "deviceId",
|
|
49226
|
+
form: "single",
|
|
49227
|
+
optional: false
|
|
49228
|
+
}],
|
|
49038
49229
|
"cover.open": [{
|
|
49039
49230
|
name: "deviceId",
|
|
49040
49231
|
form: "single",
|
|
@@ -49060,6 +49251,11 @@ Object.freeze({
|
|
|
49060
49251
|
form: "single",
|
|
49061
49252
|
optional: false
|
|
49062
49253
|
}],
|
|
49254
|
+
"dayNight.getStatus": [{
|
|
49255
|
+
name: "deviceId",
|
|
49256
|
+
form: "single",
|
|
49257
|
+
optional: false
|
|
49258
|
+
}],
|
|
49063
49259
|
"dayNight.setSettings": [{
|
|
49064
49260
|
name: "deviceId",
|
|
49065
49261
|
form: "single",
|
|
@@ -49070,11 +49266,31 @@ Object.freeze({
|
|
|
49070
49266
|
form: "single",
|
|
49071
49267
|
optional: true
|
|
49072
49268
|
}],
|
|
49269
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49270
|
+
name: "deviceId",
|
|
49271
|
+
form: "single",
|
|
49272
|
+
optional: false
|
|
49273
|
+
}],
|
|
49274
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
49275
|
+
name: "deviceId",
|
|
49276
|
+
form: "single",
|
|
49277
|
+
optional: false
|
|
49278
|
+
}],
|
|
49279
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
49280
|
+
name: "deviceId",
|
|
49281
|
+
form: "single",
|
|
49282
|
+
optional: false
|
|
49283
|
+
}],
|
|
49073
49284
|
"deviceAdminLink.getAdminLink": [{
|
|
49074
49285
|
name: "deviceId",
|
|
49075
49286
|
form: "single",
|
|
49076
49287
|
optional: false
|
|
49077
49288
|
}],
|
|
49289
|
+
"deviceAdoption.getStatus": [{
|
|
49290
|
+
name: "deviceId",
|
|
49291
|
+
form: "single",
|
|
49292
|
+
optional: false
|
|
49293
|
+
}],
|
|
49078
49294
|
"deviceAdoption.release": [{
|
|
49079
49295
|
name: "camDeviceId",
|
|
49080
49296
|
form: "single",
|
|
@@ -49090,6 +49306,11 @@ Object.freeze({
|
|
|
49090
49306
|
form: "single",
|
|
49091
49307
|
optional: false
|
|
49092
49308
|
}],
|
|
49309
|
+
"deviceDiscovery.getStatus": [{
|
|
49310
|
+
name: "deviceId",
|
|
49311
|
+
form: "single",
|
|
49312
|
+
optional: false
|
|
49313
|
+
}],
|
|
49093
49314
|
"deviceDiscovery.listDiscovered": [{
|
|
49094
49315
|
name: "deviceId",
|
|
49095
49316
|
form: "single",
|
|
@@ -49109,6 +49330,21 @@ Object.freeze({
|
|
|
49109
49330
|
form: "single",
|
|
49110
49331
|
optional: false
|
|
49111
49332
|
}],
|
|
49333
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
49334
|
+
name: "deviceId",
|
|
49335
|
+
form: "single",
|
|
49336
|
+
optional: false
|
|
49337
|
+
}],
|
|
49338
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
49339
|
+
name: "deviceId",
|
|
49340
|
+
form: "single",
|
|
49341
|
+
optional: false
|
|
49342
|
+
}],
|
|
49343
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
49344
|
+
name: "deviceId",
|
|
49345
|
+
form: "single",
|
|
49346
|
+
optional: false
|
|
49347
|
+
}],
|
|
49112
49348
|
"deviceExtension.listCandidates": [{
|
|
49113
49349
|
name: "deviceId",
|
|
49114
49350
|
form: "single",
|
|
@@ -49457,6 +49693,26 @@ Object.freeze({
|
|
|
49457
49693
|
form: "single",
|
|
49458
49694
|
optional: false
|
|
49459
49695
|
}],
|
|
49696
|
+
"deviceStatus.getStatus": [{
|
|
49697
|
+
name: "deviceId",
|
|
49698
|
+
form: "single",
|
|
49699
|
+
optional: false
|
|
49700
|
+
}],
|
|
49701
|
+
"doorbell.getStatus": [{
|
|
49702
|
+
name: "deviceId",
|
|
49703
|
+
form: "single",
|
|
49704
|
+
optional: false
|
|
49705
|
+
}],
|
|
49706
|
+
"enumSensor.getStatus": [{
|
|
49707
|
+
name: "deviceId",
|
|
49708
|
+
form: "single",
|
|
49709
|
+
optional: false
|
|
49710
|
+
}],
|
|
49711
|
+
"eventEmitter.getStatus": [{
|
|
49712
|
+
name: "deviceId",
|
|
49713
|
+
form: "single",
|
|
49714
|
+
optional: false
|
|
49715
|
+
}],
|
|
49460
49716
|
"faceGallery.getFaceByTrack": [{
|
|
49461
49717
|
name: "deviceId",
|
|
49462
49718
|
form: "single",
|
|
@@ -49471,6 +49727,11 @@ Object.freeze({
|
|
|
49471
49727
|
form: "array",
|
|
49472
49728
|
optional: true
|
|
49473
49729
|
}],
|
|
49730
|
+
"fanControl.getStatus": [{
|
|
49731
|
+
name: "deviceId",
|
|
49732
|
+
form: "single",
|
|
49733
|
+
optional: false
|
|
49734
|
+
}],
|
|
49474
49735
|
"fanControl.setDirection": [{
|
|
49475
49736
|
name: "deviceId",
|
|
49476
49737
|
form: "single",
|
|
@@ -49491,6 +49752,26 @@ Object.freeze({
|
|
|
49491
49752
|
form: "single",
|
|
49492
49753
|
optional: false
|
|
49493
49754
|
}],
|
|
49755
|
+
"featureProbe.getStatus": [{
|
|
49756
|
+
name: "deviceId",
|
|
49757
|
+
form: "single",
|
|
49758
|
+
optional: false
|
|
49759
|
+
}],
|
|
49760
|
+
"flood.getStatus": [{
|
|
49761
|
+
name: "deviceId",
|
|
49762
|
+
form: "single",
|
|
49763
|
+
optional: false
|
|
49764
|
+
}],
|
|
49765
|
+
"gas.getStatus": [{
|
|
49766
|
+
name: "deviceId",
|
|
49767
|
+
form: "single",
|
|
49768
|
+
optional: false
|
|
49769
|
+
}],
|
|
49770
|
+
"humidifier.getStatus": [{
|
|
49771
|
+
name: "deviceId",
|
|
49772
|
+
form: "single",
|
|
49773
|
+
optional: false
|
|
49774
|
+
}],
|
|
49494
49775
|
"humidifier.setMode": [{
|
|
49495
49776
|
name: "deviceId",
|
|
49496
49777
|
form: "single",
|
|
@@ -49506,11 +49787,26 @@ Object.freeze({
|
|
|
49506
49787
|
form: "single",
|
|
49507
49788
|
optional: false
|
|
49508
49789
|
}],
|
|
49790
|
+
"humiditySensor.getStatus": [{
|
|
49791
|
+
name: "deviceId",
|
|
49792
|
+
form: "single",
|
|
49793
|
+
optional: false
|
|
49794
|
+
}],
|
|
49795
|
+
"image.getStatus": [{
|
|
49796
|
+
name: "deviceId",
|
|
49797
|
+
form: "single",
|
|
49798
|
+
optional: false
|
|
49799
|
+
}],
|
|
49509
49800
|
"imageSettings.getOptions": [{
|
|
49510
49801
|
name: "deviceId",
|
|
49511
49802
|
form: "single",
|
|
49512
49803
|
optional: false
|
|
49513
49804
|
}],
|
|
49805
|
+
"imageSettings.getStatus": [{
|
|
49806
|
+
name: "deviceId",
|
|
49807
|
+
form: "single",
|
|
49808
|
+
optional: false
|
|
49809
|
+
}],
|
|
49514
49810
|
"imageSettings.setSettings": [{
|
|
49515
49811
|
name: "deviceId",
|
|
49516
49812
|
form: "single",
|
|
@@ -49521,6 +49817,11 @@ Object.freeze({
|
|
|
49521
49817
|
form: "single",
|
|
49522
49818
|
optional: false
|
|
49523
49819
|
}],
|
|
49820
|
+
"intercom.getStatus": [{
|
|
49821
|
+
name: "deviceId",
|
|
49822
|
+
form: "single",
|
|
49823
|
+
optional: false
|
|
49824
|
+
}],
|
|
49524
49825
|
"intercom.handleAnswer": [{
|
|
49525
49826
|
name: "deviceId",
|
|
49526
49827
|
form: "single",
|
|
@@ -49551,6 +49852,11 @@ Object.freeze({
|
|
|
49551
49852
|
form: "single",
|
|
49552
49853
|
optional: false
|
|
49553
49854
|
}],
|
|
49855
|
+
"lawnMowerControl.getStatus": [{
|
|
49856
|
+
name: "deviceId",
|
|
49857
|
+
form: "single",
|
|
49858
|
+
optional: false
|
|
49859
|
+
}],
|
|
49554
49860
|
"lawnMowerControl.pause": [{
|
|
49555
49861
|
name: "deviceId",
|
|
49556
49862
|
form: "single",
|
|
@@ -49561,6 +49867,11 @@ Object.freeze({
|
|
|
49561
49867
|
form: "single",
|
|
49562
49868
|
optional: false
|
|
49563
49869
|
}],
|
|
49870
|
+
"lockControl.getStatus": [{
|
|
49871
|
+
name: "deviceId",
|
|
49872
|
+
form: "single",
|
|
49873
|
+
optional: false
|
|
49874
|
+
}],
|
|
49564
49875
|
"lockControl.lock": [{
|
|
49565
49876
|
name: "deviceId",
|
|
49566
49877
|
form: "single",
|
|
@@ -49576,6 +49887,11 @@ Object.freeze({
|
|
|
49576
49887
|
form: "single",
|
|
49577
49888
|
optional: false
|
|
49578
49889
|
}],
|
|
49890
|
+
"mediaPlayer.getStatus": [{
|
|
49891
|
+
name: "deviceId",
|
|
49892
|
+
form: "single",
|
|
49893
|
+
optional: false
|
|
49894
|
+
}],
|
|
49579
49895
|
"mediaPlayer.next": [{
|
|
49580
49896
|
name: "deviceId",
|
|
49581
49897
|
form: "single",
|
|
@@ -49636,6 +49952,11 @@ Object.freeze({
|
|
|
49636
49952
|
form: "single",
|
|
49637
49953
|
optional: false
|
|
49638
49954
|
}],
|
|
49955
|
+
"motion.getStatus": [{
|
|
49956
|
+
name: "deviceId",
|
|
49957
|
+
form: "single",
|
|
49958
|
+
optional: false
|
|
49959
|
+
}],
|
|
49639
49960
|
"motion.isDetected": [{
|
|
49640
49961
|
name: "deviceId",
|
|
49641
49962
|
form: "single",
|
|
@@ -49646,11 +49967,31 @@ Object.freeze({
|
|
|
49646
49967
|
form: "single",
|
|
49647
49968
|
optional: false
|
|
49648
49969
|
}],
|
|
49970
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
49971
|
+
name: "deviceId",
|
|
49972
|
+
form: "single",
|
|
49973
|
+
optional: false
|
|
49974
|
+
}],
|
|
49975
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
49976
|
+
name: "deviceId",
|
|
49977
|
+
form: "single",
|
|
49978
|
+
optional: false
|
|
49979
|
+
}],
|
|
49980
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
49981
|
+
name: "deviceId",
|
|
49982
|
+
form: "single",
|
|
49983
|
+
optional: false
|
|
49984
|
+
}],
|
|
49649
49985
|
"motionDetection.removeCamera": [{
|
|
49650
49986
|
name: "deviceId",
|
|
49651
49987
|
form: "single",
|
|
49652
49988
|
optional: false
|
|
49653
49989
|
}],
|
|
49990
|
+
"motionTrigger.getStatus": [{
|
|
49991
|
+
name: "deviceId",
|
|
49992
|
+
form: "single",
|
|
49993
|
+
optional: false
|
|
49994
|
+
}],
|
|
49654
49995
|
"motionTrigger.setMotionTrigger": [{
|
|
49655
49996
|
name: "deviceId",
|
|
49656
49997
|
form: "single",
|
|
@@ -49661,6 +50002,11 @@ Object.freeze({
|
|
|
49661
50002
|
form: "single",
|
|
49662
50003
|
optional: false
|
|
49663
50004
|
}],
|
|
50005
|
+
"motionZones.getStatus": [{
|
|
50006
|
+
name: "deviceId",
|
|
50007
|
+
form: "single",
|
|
50008
|
+
optional: false
|
|
50009
|
+
}],
|
|
49664
50010
|
"motionZones.setZone": [{
|
|
49665
50011
|
name: "deviceId",
|
|
49666
50012
|
form: "single",
|
|
@@ -49671,6 +50017,11 @@ Object.freeze({
|
|
|
49671
50017
|
form: "single",
|
|
49672
50018
|
optional: false
|
|
49673
50019
|
}],
|
|
50020
|
+
"nativeObjectDetection.getStatus": [{
|
|
50021
|
+
name: "deviceId",
|
|
50022
|
+
form: "single",
|
|
50023
|
+
optional: false
|
|
50024
|
+
}],
|
|
49674
50025
|
"nativeObjectDetection.setEnabled": [{
|
|
49675
50026
|
name: "deviceId",
|
|
49676
50027
|
form: "single",
|
|
@@ -49686,6 +50037,11 @@ Object.freeze({
|
|
|
49686
50037
|
form: "single",
|
|
49687
50038
|
optional: false
|
|
49688
50039
|
}],
|
|
50040
|
+
"navigation.getStatus": [{
|
|
50041
|
+
name: "deviceId",
|
|
50042
|
+
form: "single",
|
|
50043
|
+
optional: false
|
|
50044
|
+
}],
|
|
49689
50045
|
"navigation.goToPoint": [{
|
|
49690
50046
|
name: "deviceId",
|
|
49691
50047
|
form: "single",
|
|
@@ -49731,6 +50087,11 @@ Object.freeze({
|
|
|
49731
50087
|
form: "single",
|
|
49732
50088
|
optional: false
|
|
49733
50089
|
}],
|
|
50090
|
+
"networkLink.getStatus": [{
|
|
50091
|
+
name: "deviceId",
|
|
50092
|
+
form: "single",
|
|
50093
|
+
optional: false
|
|
50094
|
+
}],
|
|
49734
50095
|
"networkQuality.getDeviceStats": [{
|
|
49735
50096
|
name: "deviceId",
|
|
49736
50097
|
form: "single",
|
|
@@ -49741,6 +50102,11 @@ Object.freeze({
|
|
|
49741
50102
|
form: "single",
|
|
49742
50103
|
optional: false
|
|
49743
50104
|
}],
|
|
50105
|
+
"notificationRules.getAlarmSensors": [{
|
|
50106
|
+
name: "deviceIds",
|
|
50107
|
+
form: "array",
|
|
50108
|
+
optional: false
|
|
50109
|
+
}],
|
|
49744
50110
|
"notificationRules.setDeviceMuted": [{
|
|
49745
50111
|
name: "deviceId",
|
|
49746
50112
|
form: "single",
|
|
@@ -49751,11 +50117,26 @@ Object.freeze({
|
|
|
49751
50117
|
form: "single",
|
|
49752
50118
|
optional: false
|
|
49753
50119
|
}],
|
|
50120
|
+
"notifier.getStatus": [{
|
|
50121
|
+
name: "deviceId",
|
|
50122
|
+
form: "single",
|
|
50123
|
+
optional: false
|
|
50124
|
+
}],
|
|
49754
50125
|
"notifier.send": [{
|
|
49755
50126
|
name: "deviceId",
|
|
49756
50127
|
form: "single",
|
|
49757
50128
|
optional: false
|
|
49758
50129
|
}],
|
|
50130
|
+
"numericSensor.getStatus": [{
|
|
50131
|
+
name: "deviceId",
|
|
50132
|
+
form: "single",
|
|
50133
|
+
optional: false
|
|
50134
|
+
}],
|
|
50135
|
+
"osd.getStatus": [{
|
|
50136
|
+
name: "deviceId",
|
|
50137
|
+
form: "single",
|
|
50138
|
+
optional: false
|
|
50139
|
+
}],
|
|
49759
50140
|
"osd.setOverlay": [{
|
|
49760
50141
|
name: "deviceId",
|
|
49761
50142
|
form: "single",
|
|
@@ -49815,6 +50196,11 @@ Object.freeze({
|
|
|
49815
50196
|
form: "single",
|
|
49816
50197
|
optional: false
|
|
49817
50198
|
}],
|
|
50199
|
+
"petFeeder.getStatus": [{
|
|
50200
|
+
name: "deviceId",
|
|
50201
|
+
form: "single",
|
|
50202
|
+
optional: false
|
|
50203
|
+
}],
|
|
49818
50204
|
"petFeeder.markFoodReplenished": [{
|
|
49819
50205
|
name: "deviceId",
|
|
49820
50206
|
form: "single",
|
|
@@ -49850,6 +50236,11 @@ Object.freeze({
|
|
|
49850
50236
|
form: "single",
|
|
49851
50237
|
optional: false
|
|
49852
50238
|
}],
|
|
50239
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
50240
|
+
name: "deviceId",
|
|
50241
|
+
form: "single",
|
|
50242
|
+
optional: false
|
|
50243
|
+
}],
|
|
49853
50244
|
"pipelineAnalytics.clearTrackRelation": [{
|
|
49854
50245
|
name: "deviceId",
|
|
49855
50246
|
form: "single",
|
|
@@ -49890,6 +50281,16 @@ Object.freeze({
|
|
|
49890
50281
|
form: "single",
|
|
49891
50282
|
optional: false
|
|
49892
50283
|
}],
|
|
50284
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
50285
|
+
name: "deviceId",
|
|
50286
|
+
form: "single",
|
|
50287
|
+
optional: false
|
|
50288
|
+
}],
|
|
50289
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
50290
|
+
name: "deviceId",
|
|
50291
|
+
form: "single",
|
|
50292
|
+
optional: false
|
|
50293
|
+
}],
|
|
49893
50294
|
"pipelineAnalytics.getEventDensity": [{
|
|
49894
50295
|
name: "deviceId",
|
|
49895
50296
|
form: "single",
|
|
@@ -50105,6 +50506,11 @@ Object.freeze({
|
|
|
50105
50506
|
form: "single",
|
|
50106
50507
|
optional: true
|
|
50107
50508
|
}],
|
|
50509
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
50510
|
+
name: "deviceId",
|
|
50511
|
+
form: "single",
|
|
50512
|
+
optional: false
|
|
50513
|
+
}],
|
|
50108
50514
|
"pipelineOrchestrator.assignAudio": [{
|
|
50109
50515
|
name: "deviceId",
|
|
50110
50516
|
form: "single",
|
|
@@ -50150,6 +50556,16 @@ Object.freeze({
|
|
|
50150
50556
|
form: "single",
|
|
50151
50557
|
optional: false
|
|
50152
50558
|
}],
|
|
50559
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
50560
|
+
name: "deviceId",
|
|
50561
|
+
form: "single",
|
|
50562
|
+
optional: false
|
|
50563
|
+
}],
|
|
50564
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
50565
|
+
name: "deviceId",
|
|
50566
|
+
form: "single",
|
|
50567
|
+
optional: false
|
|
50568
|
+
}],
|
|
50153
50569
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
50154
50570
|
name: "deviceId",
|
|
50155
50571
|
form: "single",
|
|
@@ -50270,11 +50686,31 @@ Object.freeze({
|
|
|
50270
50686
|
form: "single",
|
|
50271
50687
|
optional: true
|
|
50272
50688
|
}],
|
|
50689
|
+
"powerMeter.getStatus": [{
|
|
50690
|
+
name: "deviceId",
|
|
50691
|
+
form: "single",
|
|
50692
|
+
optional: false
|
|
50693
|
+
}],
|
|
50694
|
+
"presence.getStatus": [{
|
|
50695
|
+
name: "deviceId",
|
|
50696
|
+
form: "single",
|
|
50697
|
+
optional: false
|
|
50698
|
+
}],
|
|
50699
|
+
"pressureSensor.getStatus": [{
|
|
50700
|
+
name: "deviceId",
|
|
50701
|
+
form: "single",
|
|
50702
|
+
optional: false
|
|
50703
|
+
}],
|
|
50273
50704
|
"privacyMask.getOptions": [{
|
|
50274
50705
|
name: "deviceId",
|
|
50275
50706
|
form: "single",
|
|
50276
50707
|
optional: false
|
|
50277
50708
|
}],
|
|
50709
|
+
"privacyMask.getStatus": [{
|
|
50710
|
+
name: "deviceId",
|
|
50711
|
+
form: "single",
|
|
50712
|
+
optional: false
|
|
50713
|
+
}],
|
|
50278
50714
|
"privacyMask.setAudioEnabled": [{
|
|
50279
50715
|
name: "deviceId",
|
|
50280
50716
|
form: "single",
|
|
@@ -50325,6 +50761,11 @@ Object.freeze({
|
|
|
50325
50761
|
form: "single",
|
|
50326
50762
|
optional: false
|
|
50327
50763
|
}],
|
|
50764
|
+
"ptz.getStatus": [{
|
|
50765
|
+
name: "deviceId",
|
|
50766
|
+
form: "single",
|
|
50767
|
+
optional: false
|
|
50768
|
+
}],
|
|
50328
50769
|
"ptz.goHome": [{
|
|
50329
50770
|
name: "deviceId",
|
|
50330
50771
|
form: "single",
|
|
@@ -50415,6 +50856,11 @@ Object.freeze({
|
|
|
50415
50856
|
form: "single",
|
|
50416
50857
|
optional: false
|
|
50417
50858
|
}],
|
|
50859
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
50860
|
+
name: "deviceId",
|
|
50861
|
+
form: "single",
|
|
50862
|
+
optional: false
|
|
50863
|
+
}],
|
|
50418
50864
|
"recordingArchive.deleteFootprint": [{
|
|
50419
50865
|
name: "deviceId",
|
|
50420
50866
|
form: "single",
|
|
@@ -50435,6 +50881,21 @@ Object.freeze({
|
|
|
50435
50881
|
form: "single",
|
|
50436
50882
|
optional: false
|
|
50437
50883
|
}],
|
|
50884
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
50885
|
+
name: "deviceId",
|
|
50886
|
+
form: "single",
|
|
50887
|
+
optional: false
|
|
50888
|
+
}],
|
|
50889
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
50890
|
+
name: "deviceId",
|
|
50891
|
+
form: "single",
|
|
50892
|
+
optional: false
|
|
50893
|
+
}],
|
|
50894
|
+
"recordingArchive.getStatus": [{
|
|
50895
|
+
name: "deviceId",
|
|
50896
|
+
form: "single",
|
|
50897
|
+
optional: false
|
|
50898
|
+
}],
|
|
50438
50899
|
"recordingArchive.listOpsLog": [{
|
|
50439
50900
|
name: "deviceId",
|
|
50440
50901
|
form: "single",
|
|
@@ -50520,6 +50981,11 @@ Object.freeze({
|
|
|
50520
50981
|
form: "single",
|
|
50521
50982
|
optional: false
|
|
50522
50983
|
}],
|
|
50984
|
+
"recordingOnboard.getStatus": [{
|
|
50985
|
+
name: "deviceId",
|
|
50986
|
+
form: "single",
|
|
50987
|
+
optional: false
|
|
50988
|
+
}],
|
|
50523
50989
|
"recordingOnboard.setSettings": [{
|
|
50524
50990
|
name: "deviceId",
|
|
50525
50991
|
form: "single",
|
|
@@ -50550,6 +51016,11 @@ Object.freeze({
|
|
|
50550
51016
|
form: "single",
|
|
50551
51017
|
optional: false
|
|
50552
51018
|
}],
|
|
51019
|
+
"sceneMonitor.getStatus": [{
|
|
51020
|
+
name: "deviceId",
|
|
51021
|
+
form: "single",
|
|
51022
|
+
optional: false
|
|
51023
|
+
}],
|
|
50553
51024
|
"sceneMonitor.listScenes": [{
|
|
50554
51025
|
name: "deviceId",
|
|
50555
51026
|
form: "single",
|
|
@@ -50575,6 +51046,11 @@ Object.freeze({
|
|
|
50575
51046
|
form: "single",
|
|
50576
51047
|
optional: false
|
|
50577
51048
|
}],
|
|
51049
|
+
"scriptRunner.getStatus": [{
|
|
51050
|
+
name: "deviceId",
|
|
51051
|
+
form: "single",
|
|
51052
|
+
optional: false
|
|
51053
|
+
}],
|
|
50578
51054
|
"scriptRunner.run": [{
|
|
50579
51055
|
name: "deviceId",
|
|
50580
51056
|
form: "single",
|
|
@@ -50585,11 +51061,31 @@ Object.freeze({
|
|
|
50585
51061
|
form: "single",
|
|
50586
51062
|
optional: false
|
|
50587
51063
|
}],
|
|
51064
|
+
"smoke.getStatus": [{
|
|
51065
|
+
name: "deviceId",
|
|
51066
|
+
form: "single",
|
|
51067
|
+
optional: false
|
|
51068
|
+
}],
|
|
51069
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
51070
|
+
name: "deviceId",
|
|
51071
|
+
form: "single",
|
|
51072
|
+
optional: false
|
|
51073
|
+
}],
|
|
50588
51074
|
"snapshot.getDebugState": [{
|
|
50589
51075
|
name: "deviceId",
|
|
50590
51076
|
form: "single",
|
|
50591
51077
|
optional: false
|
|
50592
51078
|
}],
|
|
51079
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
51080
|
+
name: "deviceId",
|
|
51081
|
+
form: "single",
|
|
51082
|
+
optional: false
|
|
51083
|
+
}],
|
|
51084
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
51085
|
+
name: "deviceId",
|
|
51086
|
+
form: "single",
|
|
51087
|
+
optional: false
|
|
51088
|
+
}],
|
|
50593
51089
|
"snapshot.getSnapshot": [{
|
|
50594
51090
|
name: "deviceId",
|
|
50595
51091
|
form: "single",
|
|
@@ -50606,6 +51102,11 @@ Object.freeze({
|
|
|
50606
51102
|
form: "array",
|
|
50607
51103
|
optional: false
|
|
50608
51104
|
}],
|
|
51105
|
+
"snapshot.getStatus": [{
|
|
51106
|
+
name: "deviceId",
|
|
51107
|
+
form: "single",
|
|
51108
|
+
optional: false
|
|
51109
|
+
}],
|
|
50609
51110
|
"snapshot.invalidateCache": [{
|
|
50610
51111
|
name: "deviceId",
|
|
50611
51112
|
form: "single",
|
|
@@ -50616,6 +51117,11 @@ Object.freeze({
|
|
|
50616
51117
|
form: "single",
|
|
50617
51118
|
optional: false
|
|
50618
51119
|
}],
|
|
51120
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
51121
|
+
name: "deviceId",
|
|
51122
|
+
form: "single",
|
|
51123
|
+
optional: false
|
|
51124
|
+
}],
|
|
50619
51125
|
"streamBroker.assignProfile": [{
|
|
50620
51126
|
name: "deviceId",
|
|
50621
51127
|
form: "single",
|
|
@@ -50631,6 +51137,16 @@ Object.freeze({
|
|
|
50631
51137
|
form: "single",
|
|
50632
51138
|
optional: false
|
|
50633
51139
|
}],
|
|
51140
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
51141
|
+
name: "deviceId",
|
|
51142
|
+
form: "single",
|
|
51143
|
+
optional: false
|
|
51144
|
+
}],
|
|
51145
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
51146
|
+
name: "deviceId",
|
|
51147
|
+
form: "single",
|
|
51148
|
+
optional: false
|
|
51149
|
+
}],
|
|
50634
51150
|
"streamBroker.getStreamWithCodec": [{
|
|
50635
51151
|
name: "deviceId",
|
|
50636
51152
|
form: "single",
|
|
@@ -50691,16 +51207,46 @@ Object.freeze({
|
|
|
50691
51207
|
form: "single",
|
|
50692
51208
|
optional: false
|
|
50693
51209
|
}],
|
|
51210
|
+
"streamParams.getStatus": [{
|
|
51211
|
+
name: "deviceId",
|
|
51212
|
+
form: "single",
|
|
51213
|
+
optional: false
|
|
51214
|
+
}],
|
|
50694
51215
|
"streamParams.setProfile": [{
|
|
50695
51216
|
name: "deviceId",
|
|
50696
51217
|
form: "single",
|
|
50697
51218
|
optional: false
|
|
50698
51219
|
}],
|
|
51220
|
+
"switch.getStatus": [{
|
|
51221
|
+
name: "deviceId",
|
|
51222
|
+
form: "single",
|
|
51223
|
+
optional: false
|
|
51224
|
+
}],
|
|
50699
51225
|
"switch.setState": [{
|
|
50700
51226
|
name: "deviceId",
|
|
50701
51227
|
form: "single",
|
|
50702
51228
|
optional: false
|
|
50703
51229
|
}],
|
|
51230
|
+
"tamper.getStatus": [{
|
|
51231
|
+
name: "deviceId",
|
|
51232
|
+
form: "single",
|
|
51233
|
+
optional: false
|
|
51234
|
+
}],
|
|
51235
|
+
"temperatureSensor.getStatus": [{
|
|
51236
|
+
name: "deviceId",
|
|
51237
|
+
form: "single",
|
|
51238
|
+
optional: false
|
|
51239
|
+
}],
|
|
51240
|
+
"update.getStatus": [{
|
|
51241
|
+
name: "deviceId",
|
|
51242
|
+
form: "single",
|
|
51243
|
+
optional: false
|
|
51244
|
+
}],
|
|
51245
|
+
"vacuumControl.getStatus": [{
|
|
51246
|
+
name: "deviceId",
|
|
51247
|
+
form: "single",
|
|
51248
|
+
optional: false
|
|
51249
|
+
}],
|
|
50704
51250
|
"vacuumControl.locate": [{
|
|
50705
51251
|
name: "deviceId",
|
|
50706
51252
|
form: "single",
|
|
@@ -50736,6 +51282,11 @@ Object.freeze({
|
|
|
50736
51282
|
form: "single",
|
|
50737
51283
|
optional: false
|
|
50738
51284
|
}],
|
|
51285
|
+
"valve.getStatus": [{
|
|
51286
|
+
name: "deviceId",
|
|
51287
|
+
form: "single",
|
|
51288
|
+
optional: false
|
|
51289
|
+
}],
|
|
50739
51290
|
"valve.open": [{
|
|
50740
51291
|
name: "deviceId",
|
|
50741
51292
|
form: "single",
|
|
@@ -50751,6 +51302,11 @@ Object.freeze({
|
|
|
50751
51302
|
form: "single",
|
|
50752
51303
|
optional: false
|
|
50753
51304
|
}],
|
|
51305
|
+
"vibration.getStatus": [{
|
|
51306
|
+
name: "deviceId",
|
|
51307
|
+
form: "single",
|
|
51308
|
+
optional: false
|
|
51309
|
+
}],
|
|
50754
51310
|
"videoclips.dialClipStream": [{
|
|
50755
51311
|
name: "deviceId",
|
|
50756
51312
|
form: "single",
|
|
@@ -50786,6 +51342,11 @@ Object.freeze({
|
|
|
50786
51342
|
form: "single",
|
|
50787
51343
|
optional: false
|
|
50788
51344
|
}],
|
|
51345
|
+
"waterHeater.getStatus": [{
|
|
51346
|
+
name: "deviceId",
|
|
51347
|
+
form: "single",
|
|
51348
|
+
optional: false
|
|
51349
|
+
}],
|
|
50789
51350
|
"waterHeater.setAway": [{
|
|
50790
51351
|
name: "deviceId",
|
|
50791
51352
|
form: "single",
|
|
@@ -50801,6 +51362,11 @@ Object.freeze({
|
|
|
50801
51362
|
form: "single",
|
|
50802
51363
|
optional: false
|
|
50803
51364
|
}],
|
|
51365
|
+
"weather.getStatus": [{
|
|
51366
|
+
name: "deviceId",
|
|
51367
|
+
form: "single",
|
|
51368
|
+
optional: false
|
|
51369
|
+
}],
|
|
50804
51370
|
"webrtcSession.addIceCandidate": [{
|
|
50805
51371
|
name: "deviceId",
|
|
50806
51372
|
form: "single",
|
|
@@ -51538,7 +52104,7 @@ var PreviewTextField = string().max(200);
|
|
|
51538
52104
|
* Whether the notification's preview is a STILL or a short animation.
|
|
51539
52105
|
*
|
|
51540
52106
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
51541
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
52107
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
51542
52108
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
51543
52109
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
51544
52110
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -51676,6 +52242,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
51676
52242
|
createdAt: number(),
|
|
51677
52243
|
updatedAt: number()
|
|
51678
52244
|
});
|
|
52245
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
51679
52246
|
object({
|
|
51680
52247
|
/**
|
|
51681
52248
|
* Fraction of the box's own size added on EACH side before cutting.
|