@camstack/addon-matter-broker 0.2.116 → 0.2.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +893 -326
- package/dist/addon.mjs +893 -326
- package/package.json +1 -3
package/dist/addon.js
CHANGED
|
@@ -13,7 +13,7 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
13
13
|
let node_net = require("node:net");
|
|
14
14
|
let node_dgram = require("node:dgram");
|
|
15
15
|
node_dgram = require_esm.__toESM(node_dgram, 1);
|
|
16
|
-
//#region ../types/dist/event-category-
|
|
16
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
17
17
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
18
18
|
EventCategory["SystemBoot"] = "system.boot";
|
|
19
19
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -546,6 +546,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
546
546
|
*/
|
|
547
547
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
548
548
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
549
|
+
/**
|
|
550
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
551
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
552
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
553
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
554
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
555
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
556
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
557
|
+
*/
|
|
549
558
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
550
559
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
551
560
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5384,7 +5393,7 @@ var ZodIssueCode = {
|
|
|
5384
5393
|
var ZodFirstPartyTypeKind;
|
|
5385
5394
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5386
5395
|
//#endregion
|
|
5387
|
-
//#region ../types/dist/sleep-
|
|
5396
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5388
5397
|
/**
|
|
5389
5398
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5390
5399
|
* window to float samples (D455).
|
|
@@ -7427,7 +7436,7 @@ function errMsg(err) {
|
|
|
7427
7436
|
return String(err);
|
|
7428
7437
|
}
|
|
7429
7438
|
//#endregion
|
|
7430
|
-
//#region ../types/dist/composition-
|
|
7439
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
7431
7440
|
/**
|
|
7432
7441
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7433
7442
|
*
|
|
@@ -7481,21 +7490,20 @@ function portable(target) {
|
|
|
7481
7490
|
}
|
|
7482
7491
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7483
7492
|
/**
|
|
7484
|
-
*
|
|
7485
|
-
*
|
|
7493
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7494
|
+
* pure evaluator of its EDGE.
|
|
7486
7495
|
*
|
|
7487
|
-
*
|
|
7488
|
-
*
|
|
7489
|
-
*
|
|
7490
|
-
*
|
|
7491
|
-
*
|
|
7492
|
-
*
|
|
7493
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7496
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7497
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7498
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7499
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7500
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7501
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7494
7502
|
*
|
|
7495
|
-
* ⚠
|
|
7496
|
-
*
|
|
7497
|
-
*
|
|
7498
|
-
*
|
|
7503
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7504
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7505
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7506
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7499
7507
|
*/
|
|
7500
7508
|
/**
|
|
7501
7509
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -9104,22 +9112,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
9104
9112
|
"package"
|
|
9105
9113
|
];
|
|
9106
9114
|
/**
|
|
9107
|
-
*
|
|
9108
|
-
*
|
|
9115
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9116
|
+
* an operator can select.
|
|
9109
9117
|
*
|
|
9110
|
-
*
|
|
9118
|
+
* They are the three offered by the `object-detection` step
|
|
9111
9119
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
9112
|
-
* `enabledMacroClasses`). `package`
|
|
9113
|
-
* `MACRO_LABELS` —
|
|
9114
|
-
* `package-detection`,
|
|
9115
|
-
*
|
|
9120
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9121
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9122
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9123
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
9116
9124
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
9117
9125
|
*
|
|
9118
|
-
*
|
|
9119
|
-
*
|
|
9120
|
-
* (`types/detection.ts`);
|
|
9121
|
-
* (`RecordingTriggers.objectClasses`)
|
|
9122
|
-
*
|
|
9126
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9127
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9128
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9129
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9130
|
+
* invisible.
|
|
9123
9131
|
*/
|
|
9124
9132
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
9125
9133
|
"person",
|
|
@@ -9184,17 +9192,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9184
9192
|
"on-device-decision"
|
|
9185
9193
|
]);
|
|
9186
9194
|
/**
|
|
9187
|
-
*
|
|
9188
|
-
*
|
|
9195
|
+
* The macro classes that can open a recording window — the same
|
|
9196
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9189
9197
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9190
9198
|
*/
|
|
9191
9199
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9192
9200
|
/**
|
|
9193
|
-
* True
|
|
9201
|
+
* True when `values` does not repeat an element.
|
|
9194
9202
|
*
|
|
9195
|
-
*
|
|
9196
|
-
*
|
|
9197
|
-
*
|
|
9203
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9204
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9205
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9198
9206
|
*/
|
|
9199
9207
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9200
9208
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9202,34 +9210,34 @@ var RecordingTriggersSchema = object({
|
|
|
9202
9210
|
motion: boolean().optional(),
|
|
9203
9211
|
audioThresholdDbfs: number().optional(),
|
|
9204
9212
|
/**
|
|
9205
|
-
*
|
|
9206
|
-
*
|
|
9207
|
-
*
|
|
9208
|
-
*
|
|
9213
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9214
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9215
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9216
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9209
9217
|
*
|
|
9210
|
-
*
|
|
9211
|
-
*
|
|
9212
|
-
* `minConfidence<Macro>`
|
|
9213
|
-
* (`source: 'onboard'`)
|
|
9214
|
-
*
|
|
9218
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9219
|
+
* those that went through `enabledMacroClasses`, the
|
|
9220
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9221
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9222
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9215
9223
|
*/
|
|
9216
9224
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9217
9225
|
/**
|
|
9218
|
-
*
|
|
9219
|
-
*
|
|
9226
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9227
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9220
9228
|
* `objectClasses`.
|
|
9221
9229
|
*
|
|
9222
|
-
*
|
|
9223
|
-
*
|
|
9224
|
-
*
|
|
9225
|
-
*
|
|
9226
|
-
* device (D12) —
|
|
9230
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9231
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9232
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9233
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9234
|
+
* device (D12) — never a global list of caps.
|
|
9227
9235
|
*
|
|
9228
|
-
*
|
|
9229
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9230
|
-
*
|
|
9231
|
-
*
|
|
9232
|
-
*
|
|
9236
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9237
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9238
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9239
|
+
* the level: a contact found already open at runner restart does not
|
|
9240
|
+
* record.
|
|
9233
9241
|
*/
|
|
9234
9242
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9235
9243
|
});
|
|
@@ -10306,7 +10314,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10306
10314
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10307
10315
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10308
10316
|
* over the values is the exact defect
|
|
10309
|
-
* `docs/design/plans/2026-08-26-
|
|
10317
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10310
10318
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10311
10319
|
*
|
|
10312
10320
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -12017,7 +12025,7 @@ var BrokerStatusEnum = _enum([
|
|
|
12017
12025
|
"unreachable",
|
|
12018
12026
|
"error"
|
|
12019
12027
|
]);
|
|
12020
|
-
var BrokerInfoSchema
|
|
12028
|
+
var BrokerInfoSchema = object({
|
|
12021
12029
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
12022
12030
|
id: string$2(),
|
|
12023
12031
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -12160,8 +12168,8 @@ var brokerCapability = {
|
|
|
12160
12168
|
kind: "poll"
|
|
12161
12169
|
},
|
|
12162
12170
|
methods: {
|
|
12163
|
-
list: method(ListInputSchema, array(BrokerInfoSchema
|
|
12164
|
-
get: method(GetInputSchema, BrokerInfoSchema
|
|
12171
|
+
list: method(ListInputSchema, array(BrokerInfoSchema)),
|
|
12172
|
+
get: method(GetInputSchema, BrokerInfoSchema.nullable()),
|
|
12165
12173
|
/** Enumerate which addon provides which broker kind(s) for the
|
|
12166
12174
|
* unified create picker. The auto-mount fans this array across
|
|
12167
12175
|
* every registered `broker` provider (array-output method), so the
|
|
@@ -13910,7 +13918,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13910
13918
|
*
|
|
13911
13919
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13912
13920
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13913
|
-
* (`docs/design/2026-08-26-
|
|
13921
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13914
13922
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13915
13923
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13916
13924
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14790,7 +14798,17 @@ var SiteZoneSchema = object({
|
|
|
14790
14798
|
var ProviderStatusSchema = object({
|
|
14791
14799
|
connected: boolean(),
|
|
14792
14800
|
deviceCount: number(),
|
|
14793
|
-
error: string$2().optional()
|
|
14801
|
+
error: string$2().optional(),
|
|
14802
|
+
/**
|
|
14803
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14804
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14805
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14806
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14807
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14808
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14809
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14810
|
+
*/
|
|
14811
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
14794
14812
|
});
|
|
14795
14813
|
object({
|
|
14796
14814
|
externalId: string$2(),
|
|
@@ -15669,109 +15687,10 @@ method(object({
|
|
|
15669
15687
|
deviceIds: array(number()).readonly(),
|
|
15670
15688
|
caps: array(string$2()).readonly().optional()
|
|
15671
15689
|
}), record(string$2(), record(string$2(), unknown().nullable())));
|
|
15672
|
-
|
|
15673
|
-
|
|
15674
|
-
* name (same pattern as `snapshot`):
|
|
15675
|
-
*
|
|
15676
|
-
* - **Native** providers: registered per-device by device-driver
|
|
15677
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
15678
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
15679
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
15680
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
15681
|
-
* ring; status tracks the last press and a pressCount since start
|
|
15682
|
-
* (diagnostic).
|
|
15683
|
-
*
|
|
15684
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
15685
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
15686
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
15687
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
15688
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
15689
|
-
* device + trigger in the per-device settings.
|
|
15690
|
-
*
|
|
15691
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
15692
|
-
* — subscribers listening at the camera level receive ring events
|
|
15693
|
-
* with `via[]` populated. No code on the parent needed.
|
|
15694
|
-
*/
|
|
15695
|
-
var DoorbellStatusSchema = object({
|
|
15696
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15697
|
-
lastPressedAt: number().nullable(),
|
|
15698
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15699
|
-
pressCountSinceStart: number()
|
|
15700
|
-
});
|
|
15701
|
-
var DoorbellPressEventSchema = object({
|
|
15702
|
-
deviceId: number(),
|
|
15703
|
-
timestamp: number()
|
|
15704
|
-
});
|
|
15705
|
-
/**
|
|
15706
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15707
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15708
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15709
|
-
*/
|
|
15710
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15711
|
-
/**
|
|
15712
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
15713
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
15714
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
15715
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
15716
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
15717
|
-
* reports it, it never writes it.
|
|
15718
|
-
*/
|
|
15719
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
15720
|
-
id: "doorbell-source",
|
|
15721
|
-
label: "Doorbell trigger devices",
|
|
15722
|
-
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.",
|
|
15723
|
-
shape: "association",
|
|
15724
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
15725
|
-
sourceCaps: SOURCE_CAPS,
|
|
15726
|
-
cardinality: "many",
|
|
15727
|
-
value: DoorbellSourceSlotValueSchema
|
|
15728
|
-
};
|
|
15729
|
-
var doorbellCapability = {
|
|
15730
|
-
name: "doorbell",
|
|
15731
|
-
scope: "device",
|
|
15732
|
-
deviceNative: true,
|
|
15733
|
-
mode: "singleton",
|
|
15734
|
-
kind: "wrapper",
|
|
15735
|
-
defaultActive: false,
|
|
15736
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
15737
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
15738
|
-
methods: {},
|
|
15739
|
-
events: {
|
|
15740
|
-
/**
|
|
15741
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
15742
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
15743
|
-
* release/duration — it's a pulse.
|
|
15744
|
-
*/
|
|
15745
|
-
onPressed: {
|
|
15746
|
-
data: DoorbellPressEventSchema,
|
|
15747
|
-
fromState: {
|
|
15748
|
-
field: "lastPressedAt",
|
|
15749
|
-
on: "advance"
|
|
15750
|
-
}
|
|
15751
|
-
} },
|
|
15752
|
-
status: {
|
|
15753
|
-
schema: DoorbellStatusSchema,
|
|
15754
|
-
kind: "push"
|
|
15755
|
-
},
|
|
15756
|
-
/**
|
|
15757
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
15758
|
-
* Mirrored by the kernel and readable via
|
|
15759
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
15760
|
-
* without subscribing.
|
|
15761
|
-
*/
|
|
15762
|
-
runtimeState: DoorbellStatusSchema,
|
|
15763
|
-
/**
|
|
15764
|
-
* 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.
|
|
15765
|
-
*
|
|
15766
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
15767
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
15768
|
-
*/
|
|
15769
|
-
durability: "restored"
|
|
15770
|
-
};
|
|
15771
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15772
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
15690
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
15691
|
+
DeviceType.Camera;
|
|
15773
15692
|
/** A slot's editable value, discriminated on `slot`. */
|
|
15774
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
15693
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15775
15694
|
DeviceType.Camera;
|
|
15776
15695
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15777
15696
|
state: literal("unreachable"),
|
|
@@ -15808,10 +15727,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
15808
15727
|
});
|
|
15809
15728
|
/**
|
|
15810
15729
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15811
|
-
* reported read-only, named, never written through this contract (D62).
|
|
15812
|
-
*
|
|
15813
|
-
*
|
|
15814
|
-
* `unknown` means the gate could
|
|
15730
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
15731
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
15732
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
15733
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
15734
|
+
* not be read; it is not "inactive" (D315).
|
|
15815
15735
|
*/
|
|
15816
15736
|
var ExtensionSlotActivationSchema = object({
|
|
15817
15737
|
state: _enum([
|
|
@@ -15827,7 +15747,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
15827
15747
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15828
15748
|
slotRef: string$2(),
|
|
15829
15749
|
slot: ExtensionSlotIdSchema,
|
|
15830
|
-
/** Names the store written (D62), e.g. `
|
|
15750
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
15831
15751
|
authority: string$2(),
|
|
15832
15752
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15833
15753
|
value: ExtensionSlotValueSchema,
|
|
@@ -16105,7 +16025,7 @@ method(object({
|
|
|
16105
16025
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
16106
16026
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
16107
16027
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
16108
|
-
* ricontrolliamo tutti questi punti"
|
|
16028
|
+
* ricontrolliamo tutti questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]. Reading them meant grepping Loki and
|
|
16109
16029
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
16110
16030
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
16111
16031
|
* be READ.
|
|
@@ -17481,7 +17401,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
17481
17401
|
"unreachable",
|
|
17482
17402
|
"tls-error"
|
|
17483
17403
|
]);
|
|
17484
|
-
var BrokerInfoSchema = object({
|
|
17404
|
+
var BrokerInfoSchema$1 = object({
|
|
17485
17405
|
id: string$2(),
|
|
17486
17406
|
name: string$2(),
|
|
17487
17407
|
url: string$2(),
|
|
@@ -17544,7 +17464,7 @@ var StatusSchema = object({
|
|
|
17544
17464
|
brokerCount: number(),
|
|
17545
17465
|
embeddedRunning: boolean()
|
|
17546
17466
|
});
|
|
17547
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17467
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17548
17468
|
kind: "mutation",
|
|
17549
17469
|
auth: "admin"
|
|
17550
17470
|
}), method(IdInputSchema, _void(), {
|
|
@@ -19758,78 +19678,16 @@ var NcRuleInputSchema = object({
|
|
|
19758
19678
|
*/
|
|
19759
19679
|
confirm: NcConfirmSchema.optional(),
|
|
19760
19680
|
/**
|
|
19761
|
-
*
|
|
19762
|
-
*
|
|
19763
|
-
*
|
|
19764
|
-
*
|
|
19765
|
-
*
|
|
19766
|
-
*
|
|
19767
|
-
*
|
|
19768
|
-
*
|
|
19769
|
-
*
|
|
19770
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
19771
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
19772
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
19773
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
19774
|
-
*
|
|
19775
|
-
* | value | what happens |
|
|
19776
|
-
* | --- | --- |
|
|
19777
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
19778
|
-
* | 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) |
|
|
19779
|
-
*
|
|
19780
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19781
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
19782
|
-
* rule authored before this field meant.
|
|
19783
|
-
*
|
|
19784
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
19785
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
19786
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
19787
|
-
* be satisfied, because a closed track carries no crossing.
|
|
19788
|
-
*/
|
|
19789
|
-
waitForEnhancement: boolean().optional(),
|
|
19790
|
-
/**
|
|
19791
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
19792
|
-
*
|
|
19793
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
19794
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
19795
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
19796
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
19797
|
-
* notification with an updated one naming everybody. The push carries the
|
|
19798
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
19799
|
-
*
|
|
19800
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
19801
|
-
*
|
|
19802
|
-
* ### Why an idle cutoff and not a window
|
|
19803
|
-
*
|
|
19804
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19805
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19806
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19807
|
-
* 30 s is a widely shipped value for the same decision.
|
|
19808
|
-
*
|
|
19809
|
-
* ### What it replaces
|
|
19810
|
-
*
|
|
19811
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
19812
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
19813
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
19814
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
19815
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
19816
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
19817
|
-
* throttled by the window its own first member spent.
|
|
19818
|
-
*
|
|
19819
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
19820
|
-
*
|
|
19821
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
19822
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
19823
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
19824
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
19825
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
19826
|
-
* path. Neither combination fires twice for one subject.
|
|
19827
|
-
*
|
|
19828
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19829
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
19830
|
-
* field existed.
|
|
19681
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
19682
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
19683
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
19684
|
+
* the rule matched, with one mosaic tile per subject.
|
|
19685
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
19686
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
19687
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
19688
|
+
* path does not run Zod defaults.
|
|
19831
19689
|
*/
|
|
19832
|
-
|
|
19690
|
+
groupingSec: number().int().min(5).max(60).optional()
|
|
19833
19691
|
});
|
|
19834
19692
|
/**
|
|
19835
19693
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -19877,9 +19735,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
19877
19735
|
"targetUsers",
|
|
19878
19736
|
"snoozeOptions",
|
|
19879
19737
|
"snoozeAllowGlobal",
|
|
19880
|
-
"waitForEnhancement",
|
|
19881
19738
|
"actions",
|
|
19882
19739
|
"confirm",
|
|
19740
|
+
"groupingSec",
|
|
19741
|
+
"waitForEnhancement",
|
|
19883
19742
|
"groupIdleSec"
|
|
19884
19743
|
]);
|
|
19885
19744
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -19901,9 +19760,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19901
19760
|
*/
|
|
19902
19761
|
disabledTargetIds: array(string$2()).default([])
|
|
19903
19762
|
});
|
|
19763
|
+
/**
|
|
19764
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
19765
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
19766
|
+
* job is not an open state, and the alarm stays instant.
|
|
19767
|
+
*/
|
|
19768
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
19769
|
+
"device-state",
|
|
19770
|
+
"streams",
|
|
19771
|
+
"battery",
|
|
19772
|
+
"consumables",
|
|
19773
|
+
"tanks",
|
|
19774
|
+
"detection-blind",
|
|
19775
|
+
"nodes",
|
|
19776
|
+
"addons",
|
|
19777
|
+
"updates"
|
|
19778
|
+
]);
|
|
19904
19779
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
19905
19780
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
19906
|
-
id:
|
|
19781
|
+
id: NcStateSummarySectionIdSchema,
|
|
19907
19782
|
status: _enum(["read", "unavailable"]),
|
|
19908
19783
|
items: number().int().nonnegative(),
|
|
19909
19784
|
reason: string$2().optional()
|
|
@@ -19913,7 +19788,7 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19913
19788
|
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19914
19789
|
*/
|
|
19915
19790
|
var NcStateSummaryPreviewRowSchema = object({
|
|
19916
|
-
section:
|
|
19791
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
19917
19792
|
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19918
19793
|
title: string$2(),
|
|
19919
19794
|
text: string$2(),
|
|
@@ -20350,6 +20225,29 @@ object({
|
|
|
20350
20225
|
firstAt: number(),
|
|
20351
20226
|
lastAt: number()
|
|
20352
20227
|
});
|
|
20228
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
20229
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
20230
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
20231
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
20232
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
20233
|
+
mode: AlarmArmModeSchema,
|
|
20234
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20235
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20236
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
20237
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20238
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20239
|
+
mode: AlarmArmModeSchema,
|
|
20240
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20241
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20242
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
20243
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20244
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20245
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
20246
|
+
mode: AlarmArmModeSchema,
|
|
20247
|
+
deviceId: number().int().positive(),
|
|
20248
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
20249
|
+
nonBlocking: boolean()
|
|
20250
|
+
});
|
|
20353
20251
|
/**
|
|
20354
20252
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
20355
20253
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -20358,10 +20256,10 @@ object({
|
|
|
20358
20256
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
20359
20257
|
mode: AlarmArmModeSchema,
|
|
20360
20258
|
deviceIds: array(number().int()).max(200)
|
|
20361
|
-
})).max(8).refine(
|
|
20259
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
20362
20260
|
/**
|
|
20363
|
-
* The three durations
|
|
20364
|
-
* transitions, and which openings each mode tolerates.
|
|
20261
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
20262
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
20365
20263
|
*
|
|
20366
20264
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
20367
20265
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -20371,15 +20269,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
20371
20269
|
*/
|
|
20372
20270
|
var NcAlarmSettingsSchema = object({
|
|
20373
20271
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
20374
|
-
exitDelaySec:
|
|
20272
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
20375
20273
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
20376
|
-
entryDelaySec:
|
|
20274
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
20377
20275
|
/**
|
|
20378
20276
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
20379
20277
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
20380
20278
|
* existed, and therefore what an untouched install keeps doing.
|
|
20381
20279
|
*/
|
|
20382
|
-
triggeredDurationSec:
|
|
20280
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
20383
20281
|
/**
|
|
20384
20282
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
20385
20283
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -20402,17 +20300,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
20402
20300
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
20403
20301
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
20404
20302
|
*/
|
|
20405
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
20303
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
20304
|
+
/**
|
|
20305
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
20306
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
20307
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
20308
|
+
*/
|
|
20309
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
20406
20310
|
});
|
|
20407
20311
|
/**
|
|
20408
20312
|
* Every field optional — a tab edits one control at a time.
|
|
20409
20313
|
*
|
|
20410
|
-
* `nonBlocking`
|
|
20411
|
-
* remove an inner `.default()`, so a patch that never
|
|
20412
|
-
* parse to `
|
|
20413
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
20314
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
20315
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
20316
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
20317
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
20318
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
20414
20319
|
*/
|
|
20415
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20320
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20321
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
20322
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
20323
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
20324
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
20325
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
20326
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
20416
20327
|
/**
|
|
20417
20328
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
20418
20329
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -20512,6 +20423,28 @@ var NcAlarmConfigSchema = object({
|
|
|
20512
20423
|
*/
|
|
20513
20424
|
live: NcAlarmLiveSchema.optional()
|
|
20514
20425
|
});
|
|
20426
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
20427
|
+
"open",
|
|
20428
|
+
"closed",
|
|
20429
|
+
"unknown",
|
|
20430
|
+
"not-opening"
|
|
20431
|
+
]);
|
|
20432
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
20433
|
+
var NcAlarmSensorStateSchema = object({
|
|
20434
|
+
deviceId: number().int().positive(),
|
|
20435
|
+
reading: NcAlarmSensorReadingSchema,
|
|
20436
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
20437
|
+
state: string$2().nullable(),
|
|
20438
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
20439
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
20440
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
20441
|
+
online: boolean().nullable()
|
|
20442
|
+
});
|
|
20443
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
20444
|
+
var NcAlarmSensorsSchema = object({
|
|
20445
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
20446
|
+
readAt: number().int().nonnegative()
|
|
20447
|
+
});
|
|
20515
20448
|
/**
|
|
20516
20449
|
* ONE rule's demand on ONE camera's clip ring.
|
|
20517
20450
|
*
|
|
@@ -20602,7 +20535,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
20602
20535
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
20603
20536
|
kind: "mutation",
|
|
20604
20537
|
auth: "admin"
|
|
20605
|
-
});
|
|
20538
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
20606
20539
|
/**
|
|
20607
20540
|
* Zod schemas for persisted record types.
|
|
20608
20541
|
*
|
|
@@ -20949,12 +20882,26 @@ var CameraSensorRefSchema = object({
|
|
|
20949
20882
|
function cameraSensorRefKey(ref) {
|
|
20950
20883
|
return `${ref.addonId}/${ref.stableId}`;
|
|
20951
20884
|
}
|
|
20952
|
-
/**
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20885
|
+
/**
|
|
20886
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
20887
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
20888
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
20889
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
20890
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
20891
|
+
*/
|
|
20892
|
+
var CameraSensorModeSchema = _enum([
|
|
20893
|
+
"in-addition",
|
|
20894
|
+
"confirm",
|
|
20895
|
+
"replace"
|
|
20896
|
+
]);
|
|
20897
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
20898
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
20899
|
+
/**
|
|
20900
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
20901
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
20902
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
20903
|
+
*/
|
|
20904
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
20958
20905
|
const seen = /* @__PURE__ */ new Set();
|
|
20959
20906
|
value.sensors.forEach((ref, index) => {
|
|
20960
20907
|
const key = cameraSensorRefKey(ref);
|
|
@@ -20966,39 +20913,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
20966
20913
|
seen.add(key);
|
|
20967
20914
|
});
|
|
20968
20915
|
});
|
|
20969
|
-
|
|
20916
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
20917
|
+
var AttachmentFields = {
|
|
20970
20918
|
addonId: string$2(),
|
|
20971
|
-
stableId: string$2()
|
|
20919
|
+
stableId: string$2(),
|
|
20920
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
20972
20921
|
};
|
|
20973
20922
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
20974
20923
|
object({
|
|
20975
|
-
...
|
|
20924
|
+
...AttachmentFields,
|
|
20976
20925
|
state: literal("ready"),
|
|
20977
20926
|
deviceId: number(),
|
|
20978
20927
|
name: string$2(),
|
|
20979
20928
|
caps: array(string$2()).readonly()
|
|
20980
20929
|
}),
|
|
20981
20930
|
object({
|
|
20982
|
-
...
|
|
20931
|
+
...AttachmentFields,
|
|
20983
20932
|
state: literal("offline"),
|
|
20984
20933
|
deviceId: number(),
|
|
20985
20934
|
name: string$2(),
|
|
20986
20935
|
reason: _enum(["offline", "disabled"])
|
|
20987
20936
|
}),
|
|
20988
20937
|
object({
|
|
20989
|
-
...
|
|
20938
|
+
...AttachmentFields,
|
|
20990
20939
|
state: literal("missing"),
|
|
20991
20940
|
reason: string$2()
|
|
20992
20941
|
}),
|
|
20993
20942
|
object({
|
|
20994
|
-
...
|
|
20943
|
+
...AttachmentFields,
|
|
20995
20944
|
state: literal("unsupported"),
|
|
20996
20945
|
deviceId: number(),
|
|
20997
20946
|
name: string$2(),
|
|
20998
20947
|
reason: string$2()
|
|
20999
20948
|
}),
|
|
21000
20949
|
object({
|
|
21001
|
-
...
|
|
20950
|
+
...AttachmentFields,
|
|
21002
20951
|
state: literal("unreadable"),
|
|
21003
20952
|
reason: string$2()
|
|
21004
20953
|
})
|
|
@@ -21011,17 +20960,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
21011
20960
|
* say.
|
|
21012
20961
|
*/
|
|
21013
20962
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
20963
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
20964
|
+
var CameraOwnMotionSchema = _enum([
|
|
20965
|
+
"always",
|
|
20966
|
+
"when-confirmed",
|
|
20967
|
+
"never"
|
|
20968
|
+
]);
|
|
20969
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
20970
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
20971
|
+
/**
|
|
20972
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
20973
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
20974
|
+
* so a view of the camera's own row reads this.
|
|
20975
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
20976
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
20977
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
20978
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
20979
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
20980
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
20981
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
20982
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
20983
|
+
*/
|
|
20984
|
+
var CameraRawLevelSchema = object({
|
|
20985
|
+
detected: boolean(),
|
|
20986
|
+
atMs: number()
|
|
20987
|
+
});
|
|
21014
20988
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
21015
|
-
object({
|
|
20989
|
+
object({
|
|
20990
|
+
state: literal("not-configured"),
|
|
20991
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20992
|
+
}),
|
|
21016
20993
|
object({
|
|
21017
20994
|
state: literal("unreadable"),
|
|
21018
|
-
reason: string$2()
|
|
20995
|
+
reason: string$2(),
|
|
20996
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
21019
20997
|
}),
|
|
21020
20998
|
object({
|
|
21021
20999
|
state: literal("configured"),
|
|
21022
|
-
|
|
21000
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
21023
21001
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
21024
|
-
|
|
21002
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
21003
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
21004
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
21005
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
21025
21006
|
})
|
|
21026
21007
|
]);
|
|
21027
21008
|
Object.freeze({
|
|
@@ -21706,14 +21687,14 @@ var TrackSchema = object({
|
|
|
21706
21687
|
* `derive-returned-null tile=standin`,
|
|
21707
21688
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
21708
21689
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
21709
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
21690
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
21710
21691
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
21711
21692
|
*
|
|
21712
21693
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
21713
21694
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
21714
21695
|
* while its key frame missed carried no reason at all — three of the four
|
|
21715
21696
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
21716
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
21697
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
21717
21698
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
21718
21699
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
21719
21700
|
* tile ended up being.
|
|
@@ -21800,7 +21781,7 @@ var MotionEventSchema = object({
|
|
|
21800
21781
|
/**
|
|
21801
21782
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
21802
21783
|
* first entry is always `0`) of every genuine off→on transition the
|
|
21803
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
21784
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
21804
21785
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
21805
21786
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
21806
21787
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -22324,6 +22305,7 @@ var KeyEventSchema = object({
|
|
|
22324
22305
|
bestEventId: string$2(),
|
|
22325
22306
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
22326
22307
|
windowMs: number().optional(),
|
|
22308
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
22327
22309
|
...TrackFlagFields,
|
|
22328
22310
|
...TrackRetrainFields
|
|
22329
22311
|
});
|
|
@@ -24252,8 +24234,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
24252
24234
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
24253
24235
|
* analyzer providers) running on decoded frames in this runner.
|
|
24254
24236
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
24255
|
-
* analytics). The provider emits ProviderMotion
|
|
24256
|
-
*
|
|
24237
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
24238
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
24239
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
24240
|
+
* `reportMotion`.
|
|
24257
24241
|
*/
|
|
24258
24242
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24259
24243
|
/**
|
|
@@ -24430,7 +24414,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24430
24414
|
hasGpu: boolean(),
|
|
24431
24415
|
inferenceBackend: string$2().optional(),
|
|
24432
24416
|
cpuCores: number().optional()
|
|
24433
|
-
})
|
|
24417
|
+
}),
|
|
24418
|
+
/**
|
|
24419
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
24420
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
24421
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
24422
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
24423
|
+
* writers.
|
|
24424
|
+
*/
|
|
24425
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
24434
24426
|
});
|
|
24435
24427
|
/**
|
|
24436
24428
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -27095,7 +27087,7 @@ var ClipPlaybackSchema = object({
|
|
|
27095
27087
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
27096
27088
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
27097
27089
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
27098
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
27090
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
27099
27091
|
* D558 "Considered and not taken").
|
|
27100
27092
|
*/
|
|
27101
27093
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -27356,7 +27348,7 @@ DeviceType.Camera, method(object({
|
|
|
27356
27348
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
27357
27349
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
27358
27350
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
27359
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
27351
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
27360
27352
|
* nothing to filter out of it.
|
|
27361
27353
|
*/
|
|
27362
27354
|
provider: string$2().min(1)
|
|
@@ -29968,6 +29960,70 @@ onStatusChanged: { data: object({
|
|
|
29968
29960
|
* whether persisting is worth a SQLite commit. */
|
|
29969
29961
|
volatileStateFields: ["lastChangedAt"]
|
|
29970
29962
|
};
|
|
29963
|
+
var DoorbellStatusSchema = object({
|
|
29964
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
29965
|
+
lastPressedAt: number().nullable(),
|
|
29966
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
29967
|
+
pressCountSinceStart: number()
|
|
29968
|
+
});
|
|
29969
|
+
var DoorbellPressEventSchema = object({
|
|
29970
|
+
deviceId: number(),
|
|
29971
|
+
timestamp: number()
|
|
29972
|
+
});
|
|
29973
|
+
/**
|
|
29974
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
29975
|
+
* they are the same cap:
|
|
29976
|
+
*
|
|
29977
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
29978
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
29979
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
29980
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
29981
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
29982
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
29983
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
29984
|
+
* from that field's advance (`fromState`).
|
|
29985
|
+
*
|
|
29986
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
29987
|
+
*/
|
|
29988
|
+
var doorbellCapability = {
|
|
29989
|
+
name: "doorbell",
|
|
29990
|
+
scope: "device",
|
|
29991
|
+
deviceNative: true,
|
|
29992
|
+
mode: "singleton",
|
|
29993
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
29994
|
+
methods: {},
|
|
29995
|
+
events: {
|
|
29996
|
+
/**
|
|
29997
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
29998
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
29999
|
+
* release/duration — it's a pulse.
|
|
30000
|
+
*/
|
|
30001
|
+
onPressed: {
|
|
30002
|
+
data: DoorbellPressEventSchema,
|
|
30003
|
+
fromState: {
|
|
30004
|
+
field: "lastPressedAt",
|
|
30005
|
+
on: "advance"
|
|
30006
|
+
}
|
|
30007
|
+
} },
|
|
30008
|
+
status: {
|
|
30009
|
+
schema: DoorbellStatusSchema,
|
|
30010
|
+
kind: "push"
|
|
30011
|
+
},
|
|
30012
|
+
/**
|
|
30013
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
30014
|
+
* Mirrored by the kernel and readable via
|
|
30015
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
30016
|
+
* without subscribing.
|
|
30017
|
+
*/
|
|
30018
|
+
runtimeState: DoorbellStatusSchema,
|
|
30019
|
+
/**
|
|
30020
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
30021
|
+
*
|
|
30022
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30023
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30024
|
+
*/
|
|
30025
|
+
durability: "restored"
|
|
30026
|
+
};
|
|
29971
30027
|
/**
|
|
29972
30028
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
29973
30029
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -32112,9 +32168,9 @@ var MotionStatusSchema = object({
|
|
|
32112
32168
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
32113
32169
|
lastDetectedAt: number().nullable(),
|
|
32114
32170
|
/**
|
|
32115
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
32116
|
-
* `null` while false and on every `Sensor`
|
|
32117
|
-
* constant's doc for the one-authority rule.
|
|
32171
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
32172
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
32173
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
32118
32174
|
*
|
|
32119
32175
|
* ## Reading this field still arms nothing
|
|
32120
32176
|
*
|
|
@@ -32132,34 +32188,31 @@ var MotionStatusSchema = object({
|
|
|
32132
32188
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
32133
32189
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
32134
32190
|
*
|
|
32135
|
-
* ## Who writes it
|
|
32136
|
-
*
|
|
32137
|
-
* - **Cameras** — the
|
|
32138
|
-
*
|
|
32139
|
-
* `
|
|
32140
|
-
* `
|
|
32141
|
-
*
|
|
32142
|
-
*
|
|
32143
|
-
* a
|
|
32144
|
-
*
|
|
32145
|
-
*
|
|
32146
|
-
*
|
|
32147
|
-
*
|
|
32148
|
-
*
|
|
32149
|
-
*
|
|
32150
|
-
*
|
|
32151
|
-
*
|
|
32152
|
-
*
|
|
32153
|
-
* `
|
|
32154
|
-
*
|
|
32155
|
-
*
|
|
32156
|
-
*
|
|
32157
|
-
*
|
|
32158
|
-
*
|
|
32159
|
-
*
|
|
32160
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
32161
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
32162
|
-
* "sole writer" wording without also removing the other writers.
|
|
32191
|
+
* ## Who writes it (D696)
|
|
32192
|
+
*
|
|
32193
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
32194
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
32195
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
32196
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
32197
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
32198
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
32199
|
+
* that never sends a clear falls one window after its last `true`.
|
|
32200
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
32201
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32202
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32203
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32204
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
32205
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32206
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
32207
|
+
* system's own state change. That is the sensor's own fact.
|
|
32208
|
+
*
|
|
32209
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
32210
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
32211
|
+
*
|
|
32212
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
32213
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
32214
|
+
* it, every provider seeded it at boot, and every session left it
|
|
32215
|
+
* `detected: true` after its detach.
|
|
32163
32216
|
*/
|
|
32164
32217
|
autoClearAfterMs: number().nullable()
|
|
32165
32218
|
});
|
|
@@ -32231,11 +32284,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
32231
32284
|
*/
|
|
32232
32285
|
runtimeState: MotionStatusSchema,
|
|
32233
32286
|
/**
|
|
32234
|
-
* Runtime-state durability: **session** —
|
|
32287
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
32235
32288
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
32236
32289
|
* frozen until the next one instead of being corrected. The next edge
|
|
32237
|
-
* re-publishes the real state
|
|
32238
|
-
*
|
|
32290
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
32291
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
32292
|
+
* `autoClearAfterMs` above).
|
|
32239
32293
|
*
|
|
32240
32294
|
* See `RuntimeStateDurability`. Enforced by
|
|
32241
32295
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -34618,8 +34672,7 @@ var ptzAutotrackCapability = {
|
|
|
34618
34672
|
deviceNative: true,
|
|
34619
34673
|
mode: "singleton",
|
|
34620
34674
|
/**
|
|
34621
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
34622
|
-
* `doorbell` use:
|
|
34675
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
34623
34676
|
*
|
|
34624
34677
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
34625
34678
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -34627,7 +34680,7 @@ var ptzAutotrackCapability = {
|
|
|
34627
34680
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
34628
34681
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
34629
34682
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
34630
|
-
* the bindings UI
|
|
34683
|
+
* the bindings UI.
|
|
34631
34684
|
*
|
|
34632
34685
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
34633
34686
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -35302,7 +35355,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
35302
35355
|
/**
|
|
35303
35356
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
35304
35357
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
35305
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
35358
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
35306
35359
|
* a replay needs several seconds of native pixels, not one frame.
|
|
35307
35360
|
*
|
|
35308
35361
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -38666,6 +38719,7 @@ var zoneRulesCapability = {
|
|
|
38666
38719
|
*/
|
|
38667
38720
|
durability: "restored"
|
|
38668
38721
|
};
|
|
38722
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
38669
38723
|
/**
|
|
38670
38724
|
* Accessory device helpers — shared across drivers.
|
|
38671
38725
|
*
|
|
@@ -39725,13 +39779,14 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
39725
39779
|
async getStatus() {
|
|
39726
39780
|
const all = await this.ctx.kernel.devices?.getAll() ?? [];
|
|
39727
39781
|
const summary = this.restoreFailureSummary();
|
|
39728
|
-
|
|
39782
|
+
const base = {
|
|
39729
39783
|
connected: true,
|
|
39730
|
-
deviceCount: all.length
|
|
39784
|
+
deviceCount: all.length,
|
|
39785
|
+
motionSliceWriter: "orchestrator"
|
|
39731
39786
|
};
|
|
39787
|
+
if (summary === null) return base;
|
|
39732
39788
|
return {
|
|
39733
|
-
|
|
39734
|
-
deviceCount: all.length,
|
|
39789
|
+
...base,
|
|
39735
39790
|
error: summary
|
|
39736
39791
|
};
|
|
39737
39792
|
}
|
|
@@ -45167,6 +45222,12 @@ Object.freeze({
|
|
|
45167
45222
|
addonId: null,
|
|
45168
45223
|
access: "view"
|
|
45169
45224
|
},
|
|
45225
|
+
"notificationRules.getAlarmSensors": {
|
|
45226
|
+
capName: "notification-rules",
|
|
45227
|
+
capScope: "system",
|
|
45228
|
+
addonId: null,
|
|
45229
|
+
access: "view"
|
|
45230
|
+
},
|
|
45170
45231
|
"notificationRules.getClipRetentionAsks": {
|
|
45171
45232
|
capName: "notification-rules",
|
|
45172
45233
|
capScope: "system",
|
|
@@ -48745,6 +48806,11 @@ Object.freeze({
|
|
|
48745
48806
|
}
|
|
48746
48807
|
});
|
|
48747
48808
|
Object.freeze({
|
|
48809
|
+
"accessories.getStatus": [{
|
|
48810
|
+
name: "deviceId",
|
|
48811
|
+
form: "single",
|
|
48812
|
+
optional: false
|
|
48813
|
+
}],
|
|
48748
48814
|
"accessories.setChildHidden": [{
|
|
48749
48815
|
name: "childDeviceId",
|
|
48750
48816
|
form: "single",
|
|
@@ -48764,6 +48830,11 @@ Object.freeze({
|
|
|
48764
48830
|
form: "single",
|
|
48765
48831
|
optional: false
|
|
48766
48832
|
}],
|
|
48833
|
+
"airQualitySensor.getStatus": [{
|
|
48834
|
+
name: "deviceId",
|
|
48835
|
+
form: "single",
|
|
48836
|
+
optional: false
|
|
48837
|
+
}],
|
|
48767
48838
|
"alarmPanel.arm": [{
|
|
48768
48839
|
name: "deviceId",
|
|
48769
48840
|
form: "single",
|
|
@@ -48774,11 +48845,36 @@ Object.freeze({
|
|
|
48774
48845
|
form: "single",
|
|
48775
48846
|
optional: false
|
|
48776
48847
|
}],
|
|
48848
|
+
"alarmPanel.getStatus": [{
|
|
48849
|
+
name: "deviceId",
|
|
48850
|
+
form: "single",
|
|
48851
|
+
optional: false
|
|
48852
|
+
}],
|
|
48777
48853
|
"alarmPanel.trigger": [{
|
|
48778
48854
|
name: "deviceId",
|
|
48779
48855
|
form: "single",
|
|
48780
48856
|
optional: false
|
|
48781
48857
|
}],
|
|
48858
|
+
"ambientLightSensor.getStatus": [{
|
|
48859
|
+
name: "deviceId",
|
|
48860
|
+
form: "single",
|
|
48861
|
+
optional: false
|
|
48862
|
+
}],
|
|
48863
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
48864
|
+
name: "deviceId",
|
|
48865
|
+
form: "single",
|
|
48866
|
+
optional: false
|
|
48867
|
+
}],
|
|
48868
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
48869
|
+
name: "deviceId",
|
|
48870
|
+
form: "single",
|
|
48871
|
+
optional: false
|
|
48872
|
+
}],
|
|
48873
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
48874
|
+
name: "deviceId",
|
|
48875
|
+
form: "single",
|
|
48876
|
+
optional: false
|
|
48877
|
+
}],
|
|
48782
48878
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
48783
48879
|
name: "deviceId",
|
|
48784
48880
|
form: "single",
|
|
@@ -48819,16 +48915,36 @@ Object.freeze({
|
|
|
48819
48915
|
form: "single",
|
|
48820
48916
|
optional: false
|
|
48821
48917
|
}],
|
|
48918
|
+
"automationControl.getStatus": [{
|
|
48919
|
+
name: "deviceId",
|
|
48920
|
+
form: "single",
|
|
48921
|
+
optional: false
|
|
48922
|
+
}],
|
|
48822
48923
|
"automationControl.trigger": [{
|
|
48823
48924
|
name: "deviceId",
|
|
48824
48925
|
form: "single",
|
|
48825
48926
|
optional: false
|
|
48826
48927
|
}],
|
|
48928
|
+
"battery.getStatus": [{
|
|
48929
|
+
name: "deviceId",
|
|
48930
|
+
form: "single",
|
|
48931
|
+
optional: false
|
|
48932
|
+
}],
|
|
48827
48933
|
"battery.wakeForStream": [{
|
|
48828
48934
|
name: "deviceId",
|
|
48829
48935
|
form: "single",
|
|
48830
48936
|
optional: false
|
|
48831
48937
|
}],
|
|
48938
|
+
"binary.getStatus": [{
|
|
48939
|
+
name: "deviceId",
|
|
48940
|
+
form: "single",
|
|
48941
|
+
optional: false
|
|
48942
|
+
}],
|
|
48943
|
+
"brightness.getStatus": [{
|
|
48944
|
+
name: "deviceId",
|
|
48945
|
+
form: "single",
|
|
48946
|
+
optional: false
|
|
48947
|
+
}],
|
|
48832
48948
|
"brightness.setBrightness": [{
|
|
48833
48949
|
name: "deviceId",
|
|
48834
48950
|
form: "single",
|
|
@@ -48844,6 +48960,26 @@ Object.freeze({
|
|
|
48844
48960
|
form: "single",
|
|
48845
48961
|
optional: false
|
|
48846
48962
|
}],
|
|
48963
|
+
"cameraCredentials.getStatus": [{
|
|
48964
|
+
name: "deviceId",
|
|
48965
|
+
form: "single",
|
|
48966
|
+
optional: false
|
|
48967
|
+
}],
|
|
48968
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
48969
|
+
name: "deviceId",
|
|
48970
|
+
form: "single",
|
|
48971
|
+
optional: false
|
|
48972
|
+
}],
|
|
48973
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
48974
|
+
name: "deviceId",
|
|
48975
|
+
form: "single",
|
|
48976
|
+
optional: false
|
|
48977
|
+
}],
|
|
48978
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
48979
|
+
name: "deviceId",
|
|
48980
|
+
form: "single",
|
|
48981
|
+
optional: false
|
|
48982
|
+
}],
|
|
48847
48983
|
"cameraGridLayout.getLayout": [{
|
|
48848
48984
|
name: "deviceId",
|
|
48849
48985
|
form: "single",
|
|
@@ -48859,6 +48995,21 @@ Object.freeze({
|
|
|
48859
48995
|
form: "single",
|
|
48860
48996
|
optional: false
|
|
48861
48997
|
}],
|
|
48998
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
48999
|
+
name: "deviceId",
|
|
49000
|
+
form: "single",
|
|
49001
|
+
optional: false
|
|
49002
|
+
}],
|
|
49003
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
49004
|
+
name: "deviceId",
|
|
49005
|
+
form: "single",
|
|
49006
|
+
optional: false
|
|
49007
|
+
}],
|
|
49008
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
49009
|
+
name: "deviceId",
|
|
49010
|
+
form: "single",
|
|
49011
|
+
optional: false
|
|
49012
|
+
}],
|
|
48862
49013
|
"cameraStreams.getBrokerStreams": [{
|
|
48863
49014
|
name: "deviceId",
|
|
48864
49015
|
form: "single",
|
|
@@ -48884,6 +49035,16 @@ Object.freeze({
|
|
|
48884
49035
|
form: "single",
|
|
48885
49036
|
optional: false
|
|
48886
49037
|
}],
|
|
49038
|
+
"carbonMonoxide.getStatus": [{
|
|
49039
|
+
name: "deviceId",
|
|
49040
|
+
form: "single",
|
|
49041
|
+
optional: false
|
|
49042
|
+
}],
|
|
49043
|
+
"climateControl.getStatus": [{
|
|
49044
|
+
name: "deviceId",
|
|
49045
|
+
form: "single",
|
|
49046
|
+
optional: false
|
|
49047
|
+
}],
|
|
48887
49048
|
"climateControl.setFanMode": [{
|
|
48888
49049
|
name: "deviceId",
|
|
48889
49050
|
form: "single",
|
|
@@ -48924,16 +49085,41 @@ Object.freeze({
|
|
|
48924
49085
|
form: "single",
|
|
48925
49086
|
optional: false
|
|
48926
49087
|
}],
|
|
49088
|
+
"color.getStatus": [{
|
|
49089
|
+
name: "deviceId",
|
|
49090
|
+
form: "single",
|
|
49091
|
+
optional: false
|
|
49092
|
+
}],
|
|
48927
49093
|
"color.setColor": [{
|
|
48928
49094
|
name: "deviceId",
|
|
48929
49095
|
form: "single",
|
|
48930
49096
|
optional: false
|
|
48931
49097
|
}],
|
|
49098
|
+
"connectivity.getStatus": [{
|
|
49099
|
+
name: "deviceId",
|
|
49100
|
+
form: "single",
|
|
49101
|
+
optional: false
|
|
49102
|
+
}],
|
|
49103
|
+
"consumables.getStatus": [{
|
|
49104
|
+
name: "deviceId",
|
|
49105
|
+
form: "single",
|
|
49106
|
+
optional: false
|
|
49107
|
+
}],
|
|
48932
49108
|
"consumables.reset": [{
|
|
48933
49109
|
name: "deviceId",
|
|
48934
49110
|
form: "single",
|
|
48935
49111
|
optional: false
|
|
48936
49112
|
}],
|
|
49113
|
+
"contact.getStatus": [{
|
|
49114
|
+
name: "deviceId",
|
|
49115
|
+
form: "single",
|
|
49116
|
+
optional: false
|
|
49117
|
+
}],
|
|
49118
|
+
"control.getStatus": [{
|
|
49119
|
+
name: "deviceId",
|
|
49120
|
+
form: "single",
|
|
49121
|
+
optional: false
|
|
49122
|
+
}],
|
|
48937
49123
|
"control.setValue": [{
|
|
48938
49124
|
name: "deviceId",
|
|
48939
49125
|
form: "single",
|
|
@@ -48944,6 +49130,11 @@ Object.freeze({
|
|
|
48944
49130
|
form: "single",
|
|
48945
49131
|
optional: false
|
|
48946
49132
|
}],
|
|
49133
|
+
"cover.getStatus": [{
|
|
49134
|
+
name: "deviceId",
|
|
49135
|
+
form: "single",
|
|
49136
|
+
optional: false
|
|
49137
|
+
}],
|
|
48947
49138
|
"cover.open": [{
|
|
48948
49139
|
name: "deviceId",
|
|
48949
49140
|
form: "single",
|
|
@@ -48969,6 +49160,11 @@ Object.freeze({
|
|
|
48969
49160
|
form: "single",
|
|
48970
49161
|
optional: false
|
|
48971
49162
|
}],
|
|
49163
|
+
"dayNight.getStatus": [{
|
|
49164
|
+
name: "deviceId",
|
|
49165
|
+
form: "single",
|
|
49166
|
+
optional: false
|
|
49167
|
+
}],
|
|
48972
49168
|
"dayNight.setSettings": [{
|
|
48973
49169
|
name: "deviceId",
|
|
48974
49170
|
form: "single",
|
|
@@ -48979,11 +49175,31 @@ Object.freeze({
|
|
|
48979
49175
|
form: "single",
|
|
48980
49176
|
optional: true
|
|
48981
49177
|
}],
|
|
49178
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49179
|
+
name: "deviceId",
|
|
49180
|
+
form: "single",
|
|
49181
|
+
optional: false
|
|
49182
|
+
}],
|
|
49183
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
49184
|
+
name: "deviceId",
|
|
49185
|
+
form: "single",
|
|
49186
|
+
optional: false
|
|
49187
|
+
}],
|
|
49188
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
49189
|
+
name: "deviceId",
|
|
49190
|
+
form: "single",
|
|
49191
|
+
optional: false
|
|
49192
|
+
}],
|
|
48982
49193
|
"deviceAdminLink.getAdminLink": [{
|
|
48983
49194
|
name: "deviceId",
|
|
48984
49195
|
form: "single",
|
|
48985
49196
|
optional: false
|
|
48986
49197
|
}],
|
|
49198
|
+
"deviceAdoption.getStatus": [{
|
|
49199
|
+
name: "deviceId",
|
|
49200
|
+
form: "single",
|
|
49201
|
+
optional: false
|
|
49202
|
+
}],
|
|
48987
49203
|
"deviceAdoption.release": [{
|
|
48988
49204
|
name: "camDeviceId",
|
|
48989
49205
|
form: "single",
|
|
@@ -48999,6 +49215,11 @@ Object.freeze({
|
|
|
48999
49215
|
form: "single",
|
|
49000
49216
|
optional: false
|
|
49001
49217
|
}],
|
|
49218
|
+
"deviceDiscovery.getStatus": [{
|
|
49219
|
+
name: "deviceId",
|
|
49220
|
+
form: "single",
|
|
49221
|
+
optional: false
|
|
49222
|
+
}],
|
|
49002
49223
|
"deviceDiscovery.listDiscovered": [{
|
|
49003
49224
|
name: "deviceId",
|
|
49004
49225
|
form: "single",
|
|
@@ -49018,6 +49239,21 @@ Object.freeze({
|
|
|
49018
49239
|
form: "single",
|
|
49019
49240
|
optional: false
|
|
49020
49241
|
}],
|
|
49242
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
49243
|
+
name: "deviceId",
|
|
49244
|
+
form: "single",
|
|
49245
|
+
optional: false
|
|
49246
|
+
}],
|
|
49247
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
49248
|
+
name: "deviceId",
|
|
49249
|
+
form: "single",
|
|
49250
|
+
optional: false
|
|
49251
|
+
}],
|
|
49252
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
49253
|
+
name: "deviceId",
|
|
49254
|
+
form: "single",
|
|
49255
|
+
optional: false
|
|
49256
|
+
}],
|
|
49021
49257
|
"deviceExtension.listCandidates": [{
|
|
49022
49258
|
name: "deviceId",
|
|
49023
49259
|
form: "single",
|
|
@@ -49366,6 +49602,26 @@ Object.freeze({
|
|
|
49366
49602
|
form: "single",
|
|
49367
49603
|
optional: false
|
|
49368
49604
|
}],
|
|
49605
|
+
"deviceStatus.getStatus": [{
|
|
49606
|
+
name: "deviceId",
|
|
49607
|
+
form: "single",
|
|
49608
|
+
optional: false
|
|
49609
|
+
}],
|
|
49610
|
+
"doorbell.getStatus": [{
|
|
49611
|
+
name: "deviceId",
|
|
49612
|
+
form: "single",
|
|
49613
|
+
optional: false
|
|
49614
|
+
}],
|
|
49615
|
+
"enumSensor.getStatus": [{
|
|
49616
|
+
name: "deviceId",
|
|
49617
|
+
form: "single",
|
|
49618
|
+
optional: false
|
|
49619
|
+
}],
|
|
49620
|
+
"eventEmitter.getStatus": [{
|
|
49621
|
+
name: "deviceId",
|
|
49622
|
+
form: "single",
|
|
49623
|
+
optional: false
|
|
49624
|
+
}],
|
|
49369
49625
|
"faceGallery.getFaceByTrack": [{
|
|
49370
49626
|
name: "deviceId",
|
|
49371
49627
|
form: "single",
|
|
@@ -49380,6 +49636,11 @@ Object.freeze({
|
|
|
49380
49636
|
form: "array",
|
|
49381
49637
|
optional: true
|
|
49382
49638
|
}],
|
|
49639
|
+
"fanControl.getStatus": [{
|
|
49640
|
+
name: "deviceId",
|
|
49641
|
+
form: "single",
|
|
49642
|
+
optional: false
|
|
49643
|
+
}],
|
|
49383
49644
|
"fanControl.setDirection": [{
|
|
49384
49645
|
name: "deviceId",
|
|
49385
49646
|
form: "single",
|
|
@@ -49400,6 +49661,26 @@ Object.freeze({
|
|
|
49400
49661
|
form: "single",
|
|
49401
49662
|
optional: false
|
|
49402
49663
|
}],
|
|
49664
|
+
"featureProbe.getStatus": [{
|
|
49665
|
+
name: "deviceId",
|
|
49666
|
+
form: "single",
|
|
49667
|
+
optional: false
|
|
49668
|
+
}],
|
|
49669
|
+
"flood.getStatus": [{
|
|
49670
|
+
name: "deviceId",
|
|
49671
|
+
form: "single",
|
|
49672
|
+
optional: false
|
|
49673
|
+
}],
|
|
49674
|
+
"gas.getStatus": [{
|
|
49675
|
+
name: "deviceId",
|
|
49676
|
+
form: "single",
|
|
49677
|
+
optional: false
|
|
49678
|
+
}],
|
|
49679
|
+
"humidifier.getStatus": [{
|
|
49680
|
+
name: "deviceId",
|
|
49681
|
+
form: "single",
|
|
49682
|
+
optional: false
|
|
49683
|
+
}],
|
|
49403
49684
|
"humidifier.setMode": [{
|
|
49404
49685
|
name: "deviceId",
|
|
49405
49686
|
form: "single",
|
|
@@ -49415,11 +49696,26 @@ Object.freeze({
|
|
|
49415
49696
|
form: "single",
|
|
49416
49697
|
optional: false
|
|
49417
49698
|
}],
|
|
49699
|
+
"humiditySensor.getStatus": [{
|
|
49700
|
+
name: "deviceId",
|
|
49701
|
+
form: "single",
|
|
49702
|
+
optional: false
|
|
49703
|
+
}],
|
|
49704
|
+
"image.getStatus": [{
|
|
49705
|
+
name: "deviceId",
|
|
49706
|
+
form: "single",
|
|
49707
|
+
optional: false
|
|
49708
|
+
}],
|
|
49418
49709
|
"imageSettings.getOptions": [{
|
|
49419
49710
|
name: "deviceId",
|
|
49420
49711
|
form: "single",
|
|
49421
49712
|
optional: false
|
|
49422
49713
|
}],
|
|
49714
|
+
"imageSettings.getStatus": [{
|
|
49715
|
+
name: "deviceId",
|
|
49716
|
+
form: "single",
|
|
49717
|
+
optional: false
|
|
49718
|
+
}],
|
|
49423
49719
|
"imageSettings.setSettings": [{
|
|
49424
49720
|
name: "deviceId",
|
|
49425
49721
|
form: "single",
|
|
@@ -49430,6 +49726,11 @@ Object.freeze({
|
|
|
49430
49726
|
form: "single",
|
|
49431
49727
|
optional: false
|
|
49432
49728
|
}],
|
|
49729
|
+
"intercom.getStatus": [{
|
|
49730
|
+
name: "deviceId",
|
|
49731
|
+
form: "single",
|
|
49732
|
+
optional: false
|
|
49733
|
+
}],
|
|
49433
49734
|
"intercom.handleAnswer": [{
|
|
49434
49735
|
name: "deviceId",
|
|
49435
49736
|
form: "single",
|
|
@@ -49460,6 +49761,11 @@ Object.freeze({
|
|
|
49460
49761
|
form: "single",
|
|
49461
49762
|
optional: false
|
|
49462
49763
|
}],
|
|
49764
|
+
"lawnMowerControl.getStatus": [{
|
|
49765
|
+
name: "deviceId",
|
|
49766
|
+
form: "single",
|
|
49767
|
+
optional: false
|
|
49768
|
+
}],
|
|
49463
49769
|
"lawnMowerControl.pause": [{
|
|
49464
49770
|
name: "deviceId",
|
|
49465
49771
|
form: "single",
|
|
@@ -49470,6 +49776,11 @@ Object.freeze({
|
|
|
49470
49776
|
form: "single",
|
|
49471
49777
|
optional: false
|
|
49472
49778
|
}],
|
|
49779
|
+
"lockControl.getStatus": [{
|
|
49780
|
+
name: "deviceId",
|
|
49781
|
+
form: "single",
|
|
49782
|
+
optional: false
|
|
49783
|
+
}],
|
|
49473
49784
|
"lockControl.lock": [{
|
|
49474
49785
|
name: "deviceId",
|
|
49475
49786
|
form: "single",
|
|
@@ -49485,6 +49796,11 @@ Object.freeze({
|
|
|
49485
49796
|
form: "single",
|
|
49486
49797
|
optional: false
|
|
49487
49798
|
}],
|
|
49799
|
+
"mediaPlayer.getStatus": [{
|
|
49800
|
+
name: "deviceId",
|
|
49801
|
+
form: "single",
|
|
49802
|
+
optional: false
|
|
49803
|
+
}],
|
|
49488
49804
|
"mediaPlayer.next": [{
|
|
49489
49805
|
name: "deviceId",
|
|
49490
49806
|
form: "single",
|
|
@@ -49545,6 +49861,11 @@ Object.freeze({
|
|
|
49545
49861
|
form: "single",
|
|
49546
49862
|
optional: false
|
|
49547
49863
|
}],
|
|
49864
|
+
"motion.getStatus": [{
|
|
49865
|
+
name: "deviceId",
|
|
49866
|
+
form: "single",
|
|
49867
|
+
optional: false
|
|
49868
|
+
}],
|
|
49548
49869
|
"motion.isDetected": [{
|
|
49549
49870
|
name: "deviceId",
|
|
49550
49871
|
form: "single",
|
|
@@ -49555,11 +49876,31 @@ Object.freeze({
|
|
|
49555
49876
|
form: "single",
|
|
49556
49877
|
optional: false
|
|
49557
49878
|
}],
|
|
49879
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
49880
|
+
name: "deviceId",
|
|
49881
|
+
form: "single",
|
|
49882
|
+
optional: false
|
|
49883
|
+
}],
|
|
49884
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
49885
|
+
name: "deviceId",
|
|
49886
|
+
form: "single",
|
|
49887
|
+
optional: false
|
|
49888
|
+
}],
|
|
49889
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
49890
|
+
name: "deviceId",
|
|
49891
|
+
form: "single",
|
|
49892
|
+
optional: false
|
|
49893
|
+
}],
|
|
49558
49894
|
"motionDetection.removeCamera": [{
|
|
49559
49895
|
name: "deviceId",
|
|
49560
49896
|
form: "single",
|
|
49561
49897
|
optional: false
|
|
49562
49898
|
}],
|
|
49899
|
+
"motionTrigger.getStatus": [{
|
|
49900
|
+
name: "deviceId",
|
|
49901
|
+
form: "single",
|
|
49902
|
+
optional: false
|
|
49903
|
+
}],
|
|
49563
49904
|
"motionTrigger.setMotionTrigger": [{
|
|
49564
49905
|
name: "deviceId",
|
|
49565
49906
|
form: "single",
|
|
@@ -49570,6 +49911,11 @@ Object.freeze({
|
|
|
49570
49911
|
form: "single",
|
|
49571
49912
|
optional: false
|
|
49572
49913
|
}],
|
|
49914
|
+
"motionZones.getStatus": [{
|
|
49915
|
+
name: "deviceId",
|
|
49916
|
+
form: "single",
|
|
49917
|
+
optional: false
|
|
49918
|
+
}],
|
|
49573
49919
|
"motionZones.setZone": [{
|
|
49574
49920
|
name: "deviceId",
|
|
49575
49921
|
form: "single",
|
|
@@ -49580,6 +49926,11 @@ Object.freeze({
|
|
|
49580
49926
|
form: "single",
|
|
49581
49927
|
optional: false
|
|
49582
49928
|
}],
|
|
49929
|
+
"nativeObjectDetection.getStatus": [{
|
|
49930
|
+
name: "deviceId",
|
|
49931
|
+
form: "single",
|
|
49932
|
+
optional: false
|
|
49933
|
+
}],
|
|
49583
49934
|
"nativeObjectDetection.setEnabled": [{
|
|
49584
49935
|
name: "deviceId",
|
|
49585
49936
|
form: "single",
|
|
@@ -49595,6 +49946,11 @@ Object.freeze({
|
|
|
49595
49946
|
form: "single",
|
|
49596
49947
|
optional: false
|
|
49597
49948
|
}],
|
|
49949
|
+
"navigation.getStatus": [{
|
|
49950
|
+
name: "deviceId",
|
|
49951
|
+
form: "single",
|
|
49952
|
+
optional: false
|
|
49953
|
+
}],
|
|
49598
49954
|
"navigation.goToPoint": [{
|
|
49599
49955
|
name: "deviceId",
|
|
49600
49956
|
form: "single",
|
|
@@ -49640,6 +49996,11 @@ Object.freeze({
|
|
|
49640
49996
|
form: "single",
|
|
49641
49997
|
optional: false
|
|
49642
49998
|
}],
|
|
49999
|
+
"networkLink.getStatus": [{
|
|
50000
|
+
name: "deviceId",
|
|
50001
|
+
form: "single",
|
|
50002
|
+
optional: false
|
|
50003
|
+
}],
|
|
49643
50004
|
"networkQuality.getDeviceStats": [{
|
|
49644
50005
|
name: "deviceId",
|
|
49645
50006
|
form: "single",
|
|
@@ -49650,6 +50011,11 @@ Object.freeze({
|
|
|
49650
50011
|
form: "single",
|
|
49651
50012
|
optional: false
|
|
49652
50013
|
}],
|
|
50014
|
+
"notificationRules.getAlarmSensors": [{
|
|
50015
|
+
name: "deviceIds",
|
|
50016
|
+
form: "array",
|
|
50017
|
+
optional: false
|
|
50018
|
+
}],
|
|
49653
50019
|
"notificationRules.setDeviceMuted": [{
|
|
49654
50020
|
name: "deviceId",
|
|
49655
50021
|
form: "single",
|
|
@@ -49660,11 +50026,26 @@ Object.freeze({
|
|
|
49660
50026
|
form: "single",
|
|
49661
50027
|
optional: false
|
|
49662
50028
|
}],
|
|
50029
|
+
"notifier.getStatus": [{
|
|
50030
|
+
name: "deviceId",
|
|
50031
|
+
form: "single",
|
|
50032
|
+
optional: false
|
|
50033
|
+
}],
|
|
49663
50034
|
"notifier.send": [{
|
|
49664
50035
|
name: "deviceId",
|
|
49665
50036
|
form: "single",
|
|
49666
50037
|
optional: false
|
|
49667
50038
|
}],
|
|
50039
|
+
"numericSensor.getStatus": [{
|
|
50040
|
+
name: "deviceId",
|
|
50041
|
+
form: "single",
|
|
50042
|
+
optional: false
|
|
50043
|
+
}],
|
|
50044
|
+
"osd.getStatus": [{
|
|
50045
|
+
name: "deviceId",
|
|
50046
|
+
form: "single",
|
|
50047
|
+
optional: false
|
|
50048
|
+
}],
|
|
49668
50049
|
"osd.setOverlay": [{
|
|
49669
50050
|
name: "deviceId",
|
|
49670
50051
|
form: "single",
|
|
@@ -49724,6 +50105,11 @@ Object.freeze({
|
|
|
49724
50105
|
form: "single",
|
|
49725
50106
|
optional: false
|
|
49726
50107
|
}],
|
|
50108
|
+
"petFeeder.getStatus": [{
|
|
50109
|
+
name: "deviceId",
|
|
50110
|
+
form: "single",
|
|
50111
|
+
optional: false
|
|
50112
|
+
}],
|
|
49727
50113
|
"petFeeder.markFoodReplenished": [{
|
|
49728
50114
|
name: "deviceId",
|
|
49729
50115
|
form: "single",
|
|
@@ -49759,6 +50145,11 @@ Object.freeze({
|
|
|
49759
50145
|
form: "single",
|
|
49760
50146
|
optional: false
|
|
49761
50147
|
}],
|
|
50148
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
50149
|
+
name: "deviceId",
|
|
50150
|
+
form: "single",
|
|
50151
|
+
optional: false
|
|
50152
|
+
}],
|
|
49762
50153
|
"pipelineAnalytics.clearTrackRelation": [{
|
|
49763
50154
|
name: "deviceId",
|
|
49764
50155
|
form: "single",
|
|
@@ -49799,6 +50190,16 @@ Object.freeze({
|
|
|
49799
50190
|
form: "single",
|
|
49800
50191
|
optional: false
|
|
49801
50192
|
}],
|
|
50193
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
50194
|
+
name: "deviceId",
|
|
50195
|
+
form: "single",
|
|
50196
|
+
optional: false
|
|
50197
|
+
}],
|
|
50198
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
50199
|
+
name: "deviceId",
|
|
50200
|
+
form: "single",
|
|
50201
|
+
optional: false
|
|
50202
|
+
}],
|
|
49802
50203
|
"pipelineAnalytics.getEventDensity": [{
|
|
49803
50204
|
name: "deviceId",
|
|
49804
50205
|
form: "single",
|
|
@@ -50014,6 +50415,11 @@ Object.freeze({
|
|
|
50014
50415
|
form: "single",
|
|
50015
50416
|
optional: true
|
|
50016
50417
|
}],
|
|
50418
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
50419
|
+
name: "deviceId",
|
|
50420
|
+
form: "single",
|
|
50421
|
+
optional: false
|
|
50422
|
+
}],
|
|
50017
50423
|
"pipelineOrchestrator.assignAudio": [{
|
|
50018
50424
|
name: "deviceId",
|
|
50019
50425
|
form: "single",
|
|
@@ -50059,6 +50465,16 @@ Object.freeze({
|
|
|
50059
50465
|
form: "single",
|
|
50060
50466
|
optional: false
|
|
50061
50467
|
}],
|
|
50468
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
50469
|
+
name: "deviceId",
|
|
50470
|
+
form: "single",
|
|
50471
|
+
optional: false
|
|
50472
|
+
}],
|
|
50473
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
50474
|
+
name: "deviceId",
|
|
50475
|
+
form: "single",
|
|
50476
|
+
optional: false
|
|
50477
|
+
}],
|
|
50062
50478
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
50063
50479
|
name: "deviceId",
|
|
50064
50480
|
form: "single",
|
|
@@ -50179,11 +50595,31 @@ Object.freeze({
|
|
|
50179
50595
|
form: "single",
|
|
50180
50596
|
optional: true
|
|
50181
50597
|
}],
|
|
50598
|
+
"powerMeter.getStatus": [{
|
|
50599
|
+
name: "deviceId",
|
|
50600
|
+
form: "single",
|
|
50601
|
+
optional: false
|
|
50602
|
+
}],
|
|
50603
|
+
"presence.getStatus": [{
|
|
50604
|
+
name: "deviceId",
|
|
50605
|
+
form: "single",
|
|
50606
|
+
optional: false
|
|
50607
|
+
}],
|
|
50608
|
+
"pressureSensor.getStatus": [{
|
|
50609
|
+
name: "deviceId",
|
|
50610
|
+
form: "single",
|
|
50611
|
+
optional: false
|
|
50612
|
+
}],
|
|
50182
50613
|
"privacyMask.getOptions": [{
|
|
50183
50614
|
name: "deviceId",
|
|
50184
50615
|
form: "single",
|
|
50185
50616
|
optional: false
|
|
50186
50617
|
}],
|
|
50618
|
+
"privacyMask.getStatus": [{
|
|
50619
|
+
name: "deviceId",
|
|
50620
|
+
form: "single",
|
|
50621
|
+
optional: false
|
|
50622
|
+
}],
|
|
50187
50623
|
"privacyMask.setAudioEnabled": [{
|
|
50188
50624
|
name: "deviceId",
|
|
50189
50625
|
form: "single",
|
|
@@ -50234,6 +50670,11 @@ Object.freeze({
|
|
|
50234
50670
|
form: "single",
|
|
50235
50671
|
optional: false
|
|
50236
50672
|
}],
|
|
50673
|
+
"ptz.getStatus": [{
|
|
50674
|
+
name: "deviceId",
|
|
50675
|
+
form: "single",
|
|
50676
|
+
optional: false
|
|
50677
|
+
}],
|
|
50237
50678
|
"ptz.goHome": [{
|
|
50238
50679
|
name: "deviceId",
|
|
50239
50680
|
form: "single",
|
|
@@ -50324,6 +50765,11 @@ Object.freeze({
|
|
|
50324
50765
|
form: "single",
|
|
50325
50766
|
optional: false
|
|
50326
50767
|
}],
|
|
50768
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
50769
|
+
name: "deviceId",
|
|
50770
|
+
form: "single",
|
|
50771
|
+
optional: false
|
|
50772
|
+
}],
|
|
50327
50773
|
"recordingArchive.deleteFootprint": [{
|
|
50328
50774
|
name: "deviceId",
|
|
50329
50775
|
form: "single",
|
|
@@ -50344,6 +50790,21 @@ Object.freeze({
|
|
|
50344
50790
|
form: "single",
|
|
50345
50791
|
optional: false
|
|
50346
50792
|
}],
|
|
50793
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
50794
|
+
name: "deviceId",
|
|
50795
|
+
form: "single",
|
|
50796
|
+
optional: false
|
|
50797
|
+
}],
|
|
50798
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
50799
|
+
name: "deviceId",
|
|
50800
|
+
form: "single",
|
|
50801
|
+
optional: false
|
|
50802
|
+
}],
|
|
50803
|
+
"recordingArchive.getStatus": [{
|
|
50804
|
+
name: "deviceId",
|
|
50805
|
+
form: "single",
|
|
50806
|
+
optional: false
|
|
50807
|
+
}],
|
|
50347
50808
|
"recordingArchive.listOpsLog": [{
|
|
50348
50809
|
name: "deviceId",
|
|
50349
50810
|
form: "single",
|
|
@@ -50429,6 +50890,11 @@ Object.freeze({
|
|
|
50429
50890
|
form: "single",
|
|
50430
50891
|
optional: false
|
|
50431
50892
|
}],
|
|
50893
|
+
"recordingOnboard.getStatus": [{
|
|
50894
|
+
name: "deviceId",
|
|
50895
|
+
form: "single",
|
|
50896
|
+
optional: false
|
|
50897
|
+
}],
|
|
50432
50898
|
"recordingOnboard.setSettings": [{
|
|
50433
50899
|
name: "deviceId",
|
|
50434
50900
|
form: "single",
|
|
@@ -50459,6 +50925,11 @@ Object.freeze({
|
|
|
50459
50925
|
form: "single",
|
|
50460
50926
|
optional: false
|
|
50461
50927
|
}],
|
|
50928
|
+
"sceneMonitor.getStatus": [{
|
|
50929
|
+
name: "deviceId",
|
|
50930
|
+
form: "single",
|
|
50931
|
+
optional: false
|
|
50932
|
+
}],
|
|
50462
50933
|
"sceneMonitor.listScenes": [{
|
|
50463
50934
|
name: "deviceId",
|
|
50464
50935
|
form: "single",
|
|
@@ -50484,6 +50955,11 @@ Object.freeze({
|
|
|
50484
50955
|
form: "single",
|
|
50485
50956
|
optional: false
|
|
50486
50957
|
}],
|
|
50958
|
+
"scriptRunner.getStatus": [{
|
|
50959
|
+
name: "deviceId",
|
|
50960
|
+
form: "single",
|
|
50961
|
+
optional: false
|
|
50962
|
+
}],
|
|
50487
50963
|
"scriptRunner.run": [{
|
|
50488
50964
|
name: "deviceId",
|
|
50489
50965
|
form: "single",
|
|
@@ -50494,11 +50970,31 @@ Object.freeze({
|
|
|
50494
50970
|
form: "single",
|
|
50495
50971
|
optional: false
|
|
50496
50972
|
}],
|
|
50973
|
+
"smoke.getStatus": [{
|
|
50974
|
+
name: "deviceId",
|
|
50975
|
+
form: "single",
|
|
50976
|
+
optional: false
|
|
50977
|
+
}],
|
|
50978
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
50979
|
+
name: "deviceId",
|
|
50980
|
+
form: "single",
|
|
50981
|
+
optional: false
|
|
50982
|
+
}],
|
|
50497
50983
|
"snapshot.getDebugState": [{
|
|
50498
50984
|
name: "deviceId",
|
|
50499
50985
|
form: "single",
|
|
50500
50986
|
optional: false
|
|
50501
50987
|
}],
|
|
50988
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
50989
|
+
name: "deviceId",
|
|
50990
|
+
form: "single",
|
|
50991
|
+
optional: false
|
|
50992
|
+
}],
|
|
50993
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
50994
|
+
name: "deviceId",
|
|
50995
|
+
form: "single",
|
|
50996
|
+
optional: false
|
|
50997
|
+
}],
|
|
50502
50998
|
"snapshot.getSnapshot": [{
|
|
50503
50999
|
name: "deviceId",
|
|
50504
51000
|
form: "single",
|
|
@@ -50515,6 +51011,11 @@ Object.freeze({
|
|
|
50515
51011
|
form: "array",
|
|
50516
51012
|
optional: false
|
|
50517
51013
|
}],
|
|
51014
|
+
"snapshot.getStatus": [{
|
|
51015
|
+
name: "deviceId",
|
|
51016
|
+
form: "single",
|
|
51017
|
+
optional: false
|
|
51018
|
+
}],
|
|
50518
51019
|
"snapshot.invalidateCache": [{
|
|
50519
51020
|
name: "deviceId",
|
|
50520
51021
|
form: "single",
|
|
@@ -50525,6 +51026,11 @@ Object.freeze({
|
|
|
50525
51026
|
form: "single",
|
|
50526
51027
|
optional: false
|
|
50527
51028
|
}],
|
|
51029
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
51030
|
+
name: "deviceId",
|
|
51031
|
+
form: "single",
|
|
51032
|
+
optional: false
|
|
51033
|
+
}],
|
|
50528
51034
|
"streamBroker.assignProfile": [{
|
|
50529
51035
|
name: "deviceId",
|
|
50530
51036
|
form: "single",
|
|
@@ -50540,6 +51046,16 @@ Object.freeze({
|
|
|
50540
51046
|
form: "single",
|
|
50541
51047
|
optional: false
|
|
50542
51048
|
}],
|
|
51049
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
51050
|
+
name: "deviceId",
|
|
51051
|
+
form: "single",
|
|
51052
|
+
optional: false
|
|
51053
|
+
}],
|
|
51054
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
51055
|
+
name: "deviceId",
|
|
51056
|
+
form: "single",
|
|
51057
|
+
optional: false
|
|
51058
|
+
}],
|
|
50543
51059
|
"streamBroker.getStreamWithCodec": [{
|
|
50544
51060
|
name: "deviceId",
|
|
50545
51061
|
form: "single",
|
|
@@ -50600,16 +51116,46 @@ Object.freeze({
|
|
|
50600
51116
|
form: "single",
|
|
50601
51117
|
optional: false
|
|
50602
51118
|
}],
|
|
51119
|
+
"streamParams.getStatus": [{
|
|
51120
|
+
name: "deviceId",
|
|
51121
|
+
form: "single",
|
|
51122
|
+
optional: false
|
|
51123
|
+
}],
|
|
50603
51124
|
"streamParams.setProfile": [{
|
|
50604
51125
|
name: "deviceId",
|
|
50605
51126
|
form: "single",
|
|
50606
51127
|
optional: false
|
|
50607
51128
|
}],
|
|
51129
|
+
"switch.getStatus": [{
|
|
51130
|
+
name: "deviceId",
|
|
51131
|
+
form: "single",
|
|
51132
|
+
optional: false
|
|
51133
|
+
}],
|
|
50608
51134
|
"switch.setState": [{
|
|
50609
51135
|
name: "deviceId",
|
|
50610
51136
|
form: "single",
|
|
50611
51137
|
optional: false
|
|
50612
51138
|
}],
|
|
51139
|
+
"tamper.getStatus": [{
|
|
51140
|
+
name: "deviceId",
|
|
51141
|
+
form: "single",
|
|
51142
|
+
optional: false
|
|
51143
|
+
}],
|
|
51144
|
+
"temperatureSensor.getStatus": [{
|
|
51145
|
+
name: "deviceId",
|
|
51146
|
+
form: "single",
|
|
51147
|
+
optional: false
|
|
51148
|
+
}],
|
|
51149
|
+
"update.getStatus": [{
|
|
51150
|
+
name: "deviceId",
|
|
51151
|
+
form: "single",
|
|
51152
|
+
optional: false
|
|
51153
|
+
}],
|
|
51154
|
+
"vacuumControl.getStatus": [{
|
|
51155
|
+
name: "deviceId",
|
|
51156
|
+
form: "single",
|
|
51157
|
+
optional: false
|
|
51158
|
+
}],
|
|
50613
51159
|
"vacuumControl.locate": [{
|
|
50614
51160
|
name: "deviceId",
|
|
50615
51161
|
form: "single",
|
|
@@ -50645,6 +51191,11 @@ Object.freeze({
|
|
|
50645
51191
|
form: "single",
|
|
50646
51192
|
optional: false
|
|
50647
51193
|
}],
|
|
51194
|
+
"valve.getStatus": [{
|
|
51195
|
+
name: "deviceId",
|
|
51196
|
+
form: "single",
|
|
51197
|
+
optional: false
|
|
51198
|
+
}],
|
|
50648
51199
|
"valve.open": [{
|
|
50649
51200
|
name: "deviceId",
|
|
50650
51201
|
form: "single",
|
|
@@ -50660,6 +51211,11 @@ Object.freeze({
|
|
|
50660
51211
|
form: "single",
|
|
50661
51212
|
optional: false
|
|
50662
51213
|
}],
|
|
51214
|
+
"vibration.getStatus": [{
|
|
51215
|
+
name: "deviceId",
|
|
51216
|
+
form: "single",
|
|
51217
|
+
optional: false
|
|
51218
|
+
}],
|
|
50663
51219
|
"videoclips.dialClipStream": [{
|
|
50664
51220
|
name: "deviceId",
|
|
50665
51221
|
form: "single",
|
|
@@ -50695,6 +51251,11 @@ Object.freeze({
|
|
|
50695
51251
|
form: "single",
|
|
50696
51252
|
optional: false
|
|
50697
51253
|
}],
|
|
51254
|
+
"waterHeater.getStatus": [{
|
|
51255
|
+
name: "deviceId",
|
|
51256
|
+
form: "single",
|
|
51257
|
+
optional: false
|
|
51258
|
+
}],
|
|
50698
51259
|
"waterHeater.setAway": [{
|
|
50699
51260
|
name: "deviceId",
|
|
50700
51261
|
form: "single",
|
|
@@ -50710,6 +51271,11 @@ Object.freeze({
|
|
|
50710
51271
|
form: "single",
|
|
50711
51272
|
optional: false
|
|
50712
51273
|
}],
|
|
51274
|
+
"weather.getStatus": [{
|
|
51275
|
+
name: "deviceId",
|
|
51276
|
+
form: "single",
|
|
51277
|
+
optional: false
|
|
51278
|
+
}],
|
|
50713
51279
|
"webrtcSession.addIceCandidate": [{
|
|
50714
51280
|
name: "deviceId",
|
|
50715
51281
|
form: "single",
|
|
@@ -51447,7 +52013,7 @@ var PreviewTextField = string$2().max(200);
|
|
|
51447
52013
|
* Whether the notification's preview is a STILL or a short animation.
|
|
51448
52014
|
*
|
|
51449
52015
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
51450
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
52016
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
51451
52017
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
51452
52018
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
51453
52019
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -51585,6 +52151,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
51585
52151
|
createdAt: number(),
|
|
51586
52152
|
updatedAt: number()
|
|
51587
52153
|
});
|
|
52154
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
51588
52155
|
object({
|
|
51589
52156
|
/**
|
|
51590
52157
|
* Fraction of the box's own size added on EACH side before cutting.
|