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