@camstack/addon-provider-dreame 0.2.119 → 0.2.120
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 +892 -325
- package/dist/addon.mjs +892 -325
- package/package.json +1 -3
package/dist/addon.js
CHANGED
|
@@ -52902,7 +52902,7 @@ var DreameCameraStream = class extends TypedEmitter {
|
|
|
52902
52902
|
}
|
|
52903
52903
|
};
|
|
52904
52904
|
//#endregion
|
|
52905
|
-
//#region ../types/dist/event-category-
|
|
52905
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
52906
52906
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
52907
52907
|
EventCategory["SystemBoot"] = "system.boot";
|
|
52908
52908
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -53435,6 +53435,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
53435
53435
|
*/
|
|
53436
53436
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
53437
53437
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
53438
|
+
/**
|
|
53439
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
53440
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
53441
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
53442
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
53443
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
53444
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
53445
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
53446
|
+
*/
|
|
53438
53447
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
53439
53448
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
53440
53449
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -58273,7 +58282,7 @@ var ZodIssueCode = {
|
|
|
58273
58282
|
var ZodFirstPartyTypeKind;
|
|
58274
58283
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58275
58284
|
//#endregion
|
|
58276
|
-
//#region ../types/dist/sleep-
|
|
58285
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
58277
58286
|
/**
|
|
58278
58287
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58279
58288
|
* window to float samples (D455).
|
|
@@ -60316,7 +60325,7 @@ function errMsg(err) {
|
|
|
60316
60325
|
return String(err);
|
|
60317
60326
|
}
|
|
60318
60327
|
//#endregion
|
|
60319
|
-
//#region ../types/dist/composition-
|
|
60328
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
60320
60329
|
/**
|
|
60321
60330
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
60322
60331
|
*
|
|
@@ -60370,21 +60379,20 @@ function portable(target) {
|
|
|
60370
60379
|
}
|
|
60371
60380
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
60372
60381
|
/**
|
|
60373
|
-
*
|
|
60374
|
-
*
|
|
60382
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
60383
|
+
* pure evaluator of its EDGE.
|
|
60375
60384
|
*
|
|
60376
|
-
*
|
|
60377
|
-
*
|
|
60378
|
-
*
|
|
60379
|
-
*
|
|
60380
|
-
*
|
|
60381
|
-
*
|
|
60382
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
60385
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
60386
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
60387
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
60388
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
60389
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
60390
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
60383
60391
|
*
|
|
60384
|
-
* ⚠
|
|
60385
|
-
*
|
|
60386
|
-
*
|
|
60387
|
-
*
|
|
60392
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
60393
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
60394
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
60395
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
60388
60396
|
*/
|
|
60389
60397
|
/**
|
|
60390
60398
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -61993,22 +62001,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
61993
62001
|
"package"
|
|
61994
62002
|
];
|
|
61995
62003
|
/**
|
|
61996
|
-
*
|
|
61997
|
-
*
|
|
62004
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
62005
|
+
* an operator can select.
|
|
61998
62006
|
*
|
|
61999
|
-
*
|
|
62007
|
+
* They are the three offered by the `object-detection` step
|
|
62000
62008
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
62001
|
-
* `enabledMacroClasses`). `package`
|
|
62002
|
-
* `MACRO_LABELS` —
|
|
62003
|
-
* `package-detection`,
|
|
62004
|
-
*
|
|
62009
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
62010
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
62011
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
62012
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
62005
62013
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
62006
62014
|
*
|
|
62007
|
-
*
|
|
62008
|
-
*
|
|
62009
|
-
* (`types/detection.ts`);
|
|
62010
|
-
* (`RecordingTriggers.objectClasses`)
|
|
62011
|
-
*
|
|
62015
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
62016
|
+
* and a second time as the union `FirstLevelMacro`
|
|
62017
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
62018
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
62019
|
+
* invisible.
|
|
62012
62020
|
*/
|
|
62013
62021
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
62014
62022
|
"person",
|
|
@@ -62073,17 +62081,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
62073
62081
|
"on-device-decision"
|
|
62074
62082
|
]);
|
|
62075
62083
|
/**
|
|
62076
|
-
*
|
|
62077
|
-
*
|
|
62084
|
+
* The macro classes that can open a recording window — the same
|
|
62085
|
+
* three offered by the `object-detection` step, from ONE list
|
|
62078
62086
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
62079
62087
|
*/
|
|
62080
62088
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
62081
62089
|
/**
|
|
62082
|
-
* True
|
|
62090
|
+
* True when `values` does not repeat an element.
|
|
62083
62091
|
*
|
|
62084
|
-
*
|
|
62085
|
-
*
|
|
62086
|
-
*
|
|
62092
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
62093
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
62094
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
62087
62095
|
*/
|
|
62088
62096
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
62089
62097
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -62091,34 +62099,34 @@ var RecordingTriggersSchema = object({
|
|
|
62091
62099
|
motion: boolean().optional(),
|
|
62092
62100
|
audioThresholdDbfs: number().optional(),
|
|
62093
62101
|
/**
|
|
62094
|
-
*
|
|
62095
|
-
*
|
|
62096
|
-
*
|
|
62097
|
-
*
|
|
62102
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
62103
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
62104
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
62105
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
62098
62106
|
*
|
|
62099
|
-
*
|
|
62100
|
-
*
|
|
62101
|
-
* `minConfidence<Macro>`
|
|
62102
|
-
* (`source: 'onboard'`)
|
|
62103
|
-
*
|
|
62107
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
62108
|
+
* those that went through `enabledMacroClasses`, the
|
|
62109
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
62110
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
62111
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
62104
62112
|
*/
|
|
62105
62113
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
62106
62114
|
/**
|
|
62107
|
-
*
|
|
62108
|
-
*
|
|
62115
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
62116
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
62109
62117
|
* `objectClasses`.
|
|
62110
62118
|
*
|
|
62111
|
-
*
|
|
62112
|
-
*
|
|
62113
|
-
*
|
|
62114
|
-
*
|
|
62115
|
-
* device (D12) —
|
|
62119
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
62120
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
62121
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
62122
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
62123
|
+
* device (D12) — never a global list of caps.
|
|
62116
62124
|
*
|
|
62117
|
-
*
|
|
62118
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
62119
|
-
*
|
|
62120
|
-
*
|
|
62121
|
-
*
|
|
62125
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
62126
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
62127
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
62128
|
+
* the level: a contact found already open at runner restart does not
|
|
62129
|
+
* record.
|
|
62122
62130
|
*/
|
|
62123
62131
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
62124
62132
|
});
|
|
@@ -63195,7 +63203,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
63195
63203
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
63196
63204
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
63197
63205
|
* over the values is the exact defect
|
|
63198
|
-
* `docs/design/plans/2026-08-26-
|
|
63206
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
63199
63207
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
63200
63208
|
*
|
|
63201
63209
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -64906,7 +64914,7 @@ var BrokerStatusEnum = _enum([
|
|
|
64906
64914
|
"unreachable",
|
|
64907
64915
|
"error"
|
|
64908
64916
|
]);
|
|
64909
|
-
var BrokerInfoSchema
|
|
64917
|
+
var BrokerInfoSchema = object({
|
|
64910
64918
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
64911
64919
|
id: string(),
|
|
64912
64920
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -65039,7 +65047,7 @@ var GetStateInputSchema = object({
|
|
|
65039
65047
|
* HA: entity_id (returns the cached entity state). */
|
|
65040
65048
|
key: string()
|
|
65041
65049
|
});
|
|
65042
|
-
method(ListInputSchema, array(BrokerInfoSchema
|
|
65050
|
+
method(ListInputSchema, array(BrokerInfoSchema)), method(GetInputSchema, BrokerInfoSchema.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
|
|
65043
65051
|
kind: "mutation",
|
|
65044
65052
|
auth: "admin"
|
|
65045
65053
|
}), method(RemoveInputSchema, _void(), {
|
|
@@ -66750,7 +66758,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
66750
66758
|
*
|
|
66751
66759
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
66752
66760
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
66753
|
-
* (`docs/design/2026-08-26-
|
|
66761
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
66754
66762
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
66755
66763
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
66756
66764
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -67630,7 +67638,17 @@ var SiteZoneSchema = object({
|
|
|
67630
67638
|
var ProviderStatusSchema = object({
|
|
67631
67639
|
connected: boolean(),
|
|
67632
67640
|
deviceCount: number(),
|
|
67633
|
-
error: string().optional()
|
|
67641
|
+
error: string().optional(),
|
|
67642
|
+
/**
|
|
67643
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
67644
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
67645
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
67646
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
67647
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
67648
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
67649
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
67650
|
+
*/
|
|
67651
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
67634
67652
|
});
|
|
67635
67653
|
object({
|
|
67636
67654
|
externalId: string(),
|
|
@@ -68509,109 +68527,10 @@ method(object({
|
|
|
68509
68527
|
deviceIds: array(number()).readonly(),
|
|
68510
68528
|
caps: array(string()).readonly().optional()
|
|
68511
68529
|
}), record(string(), record(string(), unknown().nullable())));
|
|
68512
|
-
|
|
68513
|
-
|
|
68514
|
-
* name (same pattern as `snapshot`):
|
|
68515
|
-
*
|
|
68516
|
-
* - **Native** providers: registered per-device by device-driver
|
|
68517
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
68518
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
68519
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
68520
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
68521
|
-
* ring; status tracks the last press and a pressCount since start
|
|
68522
|
-
* (diagnostic).
|
|
68523
|
-
*
|
|
68524
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
68525
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
68526
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
68527
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
68528
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
68529
|
-
* device + trigger in the per-device settings.
|
|
68530
|
-
*
|
|
68531
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
68532
|
-
* — subscribers listening at the camera level receive ring events
|
|
68533
|
-
* with `via[]` populated. No code on the parent needed.
|
|
68534
|
-
*/
|
|
68535
|
-
var DoorbellStatusSchema = object({
|
|
68536
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
68537
|
-
lastPressedAt: number().nullable(),
|
|
68538
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
68539
|
-
pressCountSinceStart: number()
|
|
68540
|
-
});
|
|
68541
|
-
var DoorbellPressEventSchema = object({
|
|
68542
|
-
deviceId: number(),
|
|
68543
|
-
timestamp: number()
|
|
68544
|
-
});
|
|
68545
|
-
/**
|
|
68546
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
68547
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
68548
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
68549
|
-
*/
|
|
68550
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
68551
|
-
/**
|
|
68552
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
68553
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
68554
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
68555
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
68556
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
68557
|
-
* reports it, it never writes it.
|
|
68558
|
-
*/
|
|
68559
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
68560
|
-
id: "doorbell-source",
|
|
68561
|
-
label: "Doorbell trigger devices",
|
|
68562
|
-
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.",
|
|
68563
|
-
shape: "association",
|
|
68564
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
68565
|
-
sourceCaps: SOURCE_CAPS,
|
|
68566
|
-
cardinality: "many",
|
|
68567
|
-
value: DoorbellSourceSlotValueSchema
|
|
68568
|
-
};
|
|
68569
|
-
var doorbellCapability = {
|
|
68570
|
-
name: "doorbell",
|
|
68571
|
-
scope: "device",
|
|
68572
|
-
deviceNative: true,
|
|
68573
|
-
mode: "singleton",
|
|
68574
|
-
kind: "wrapper",
|
|
68575
|
-
defaultActive: false,
|
|
68576
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
68577
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
68578
|
-
methods: {},
|
|
68579
|
-
events: {
|
|
68580
|
-
/**
|
|
68581
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
68582
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
68583
|
-
* release/duration — it's a pulse.
|
|
68584
|
-
*/
|
|
68585
|
-
onPressed: {
|
|
68586
|
-
data: DoorbellPressEventSchema,
|
|
68587
|
-
fromState: {
|
|
68588
|
-
field: "lastPressedAt",
|
|
68589
|
-
on: "advance"
|
|
68590
|
-
}
|
|
68591
|
-
} },
|
|
68592
|
-
status: {
|
|
68593
|
-
schema: DoorbellStatusSchema,
|
|
68594
|
-
kind: "push"
|
|
68595
|
-
},
|
|
68596
|
-
/**
|
|
68597
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
68598
|
-
* Mirrored by the kernel and readable via
|
|
68599
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
68600
|
-
* without subscribing.
|
|
68601
|
-
*/
|
|
68602
|
-
runtimeState: DoorbellStatusSchema,
|
|
68603
|
-
/**
|
|
68604
|
-
* 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.
|
|
68605
|
-
*
|
|
68606
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
68607
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
68608
|
-
*/
|
|
68609
|
-
durability: "restored"
|
|
68610
|
-
};
|
|
68611
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
68612
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
68530
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
68531
|
+
DeviceType.Camera;
|
|
68613
68532
|
/** A slot's editable value, discriminated on `slot`. */
|
|
68614
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
68533
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
68615
68534
|
DeviceType.Camera;
|
|
68616
68535
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
68617
68536
|
state: literal("unreachable"),
|
|
@@ -68648,10 +68567,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
68648
68567
|
});
|
|
68649
68568
|
/**
|
|
68650
68569
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
68651
|
-
* reported read-only, named, never written through this contract (D62).
|
|
68652
|
-
*
|
|
68653
|
-
*
|
|
68654
|
-
* `unknown` means the gate could
|
|
68570
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
68571
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
68572
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
68573
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
68574
|
+
* not be read; it is not "inactive" (D315).
|
|
68655
68575
|
*/
|
|
68656
68576
|
var ExtensionSlotActivationSchema = object({
|
|
68657
68577
|
state: _enum([
|
|
@@ -68667,7 +68587,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
68667
68587
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
68668
68588
|
slotRef: string(),
|
|
68669
68589
|
slot: ExtensionSlotIdSchema,
|
|
68670
|
-
/** Names the store written (D62), e.g. `
|
|
68590
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
68671
68591
|
authority: string(),
|
|
68672
68592
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
68673
68593
|
value: ExtensionSlotValueSchema,
|
|
@@ -68945,7 +68865,7 @@ method(object({
|
|
|
68945
68865
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
68946
68866
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
68947
68867
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
68948
|
-
* ricontrolliamo tutti questi punti"
|
|
68868
|
+
* 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
|
|
68949
68869
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
68950
68870
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
68951
68871
|
* be READ.
|
|
@@ -70321,7 +70241,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
70321
70241
|
"unreachable",
|
|
70322
70242
|
"tls-error"
|
|
70323
70243
|
]);
|
|
70324
|
-
var BrokerInfoSchema = object({
|
|
70244
|
+
var BrokerInfoSchema$1 = object({
|
|
70325
70245
|
id: string(),
|
|
70326
70246
|
name: string(),
|
|
70327
70247
|
url: string(),
|
|
@@ -70384,7 +70304,7 @@ var StatusSchema = object({
|
|
|
70384
70304
|
brokerCount: number(),
|
|
70385
70305
|
embeddedRunning: boolean()
|
|
70386
70306
|
});
|
|
70387
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
70307
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
70388
70308
|
kind: "mutation",
|
|
70389
70309
|
auth: "admin"
|
|
70390
70310
|
}), method(IdInputSchema, _void(), {
|
|
@@ -72598,78 +72518,16 @@ var NcRuleInputSchema = object({
|
|
|
72598
72518
|
*/
|
|
72599
72519
|
confirm: NcConfirmSchema.optional(),
|
|
72600
72520
|
/**
|
|
72601
|
-
*
|
|
72602
|
-
*
|
|
72603
|
-
*
|
|
72604
|
-
*
|
|
72605
|
-
*
|
|
72606
|
-
*
|
|
72607
|
-
*
|
|
72608
|
-
*
|
|
72609
|
-
*
|
|
72610
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
72611
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
72612
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
72613
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
72614
|
-
*
|
|
72615
|
-
* | value | what happens |
|
|
72616
|
-
* | --- | --- |
|
|
72617
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
72618
|
-
* | 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) |
|
|
72619
|
-
*
|
|
72620
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
72621
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
72622
|
-
* rule authored before this field meant.
|
|
72623
|
-
*
|
|
72624
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
72625
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
72626
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
72627
|
-
* be satisfied, because a closed track carries no crossing.
|
|
72521
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
72522
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
72523
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
72524
|
+
* the rule matched, with one mosaic tile per subject.
|
|
72525
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
72526
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
72527
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
72528
|
+
* path does not run Zod defaults.
|
|
72628
72529
|
*/
|
|
72629
|
-
|
|
72630
|
-
/**
|
|
72631
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
72632
|
-
*
|
|
72633
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
72634
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
72635
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
72636
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
72637
|
-
* notification with an updated one naming everybody. The push carries the
|
|
72638
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
72639
|
-
*
|
|
72640
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
72641
|
-
*
|
|
72642
|
-
* ### Why an idle cutoff and not a window
|
|
72643
|
-
*
|
|
72644
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
72645
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
72646
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
72647
|
-
* 30 s is a widely shipped value for the same decision.
|
|
72648
|
-
*
|
|
72649
|
-
* ### What it replaces
|
|
72650
|
-
*
|
|
72651
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
72652
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
72653
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
72654
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
72655
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
72656
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
72657
|
-
* throttled by the window its own first member spent.
|
|
72658
|
-
*
|
|
72659
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
72660
|
-
*
|
|
72661
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
72662
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
72663
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
72664
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
72665
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
72666
|
-
* path. Neither combination fires twice for one subject.
|
|
72667
|
-
*
|
|
72668
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
72669
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
72670
|
-
* field existed.
|
|
72671
|
-
*/
|
|
72672
|
-
groupIdleSec: number().int().min(0).max(600).optional()
|
|
72530
|
+
groupingSec: number().int().min(5).max(60).optional()
|
|
72673
72531
|
});
|
|
72674
72532
|
/**
|
|
72675
72533
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -72717,9 +72575,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
72717
72575
|
"targetUsers",
|
|
72718
72576
|
"snoozeOptions",
|
|
72719
72577
|
"snoozeAllowGlobal",
|
|
72720
|
-
"waitForEnhancement",
|
|
72721
72578
|
"actions",
|
|
72722
72579
|
"confirm",
|
|
72580
|
+
"groupingSec",
|
|
72581
|
+
"waitForEnhancement",
|
|
72723
72582
|
"groupIdleSec"
|
|
72724
72583
|
]);
|
|
72725
72584
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -72741,9 +72600,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
72741
72600
|
*/
|
|
72742
72601
|
disabledTargetIds: array(string()).default([])
|
|
72743
72602
|
});
|
|
72603
|
+
/**
|
|
72604
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
72605
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
72606
|
+
* job is not an open state, and the alarm stays instant.
|
|
72607
|
+
*/
|
|
72608
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
72609
|
+
"device-state",
|
|
72610
|
+
"streams",
|
|
72611
|
+
"battery",
|
|
72612
|
+
"consumables",
|
|
72613
|
+
"tanks",
|
|
72614
|
+
"detection-blind",
|
|
72615
|
+
"nodes",
|
|
72616
|
+
"addons",
|
|
72617
|
+
"updates"
|
|
72618
|
+
]);
|
|
72744
72619
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
72745
72620
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
72746
|
-
id:
|
|
72621
|
+
id: NcStateSummarySectionIdSchema,
|
|
72747
72622
|
status: _enum(["read", "unavailable"]),
|
|
72748
72623
|
items: number().int().nonnegative(),
|
|
72749
72624
|
reason: string().optional()
|
|
@@ -72753,7 +72628,7 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
72753
72628
|
* a `rule` split (no `section`), one section's on a `section` split.
|
|
72754
72629
|
*/
|
|
72755
72630
|
var NcStateSummaryPreviewRowSchema = object({
|
|
72756
|
-
section:
|
|
72631
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
72757
72632
|
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
72758
72633
|
title: string(),
|
|
72759
72634
|
text: string(),
|
|
@@ -73190,6 +73065,29 @@ object({
|
|
|
73190
73065
|
firstAt: number(),
|
|
73191
73066
|
lastAt: number()
|
|
73192
73067
|
});
|
|
73068
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
73069
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
73070
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
73071
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
73072
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
73073
|
+
mode: AlarmArmModeSchema,
|
|
73074
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
73075
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
73076
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
73077
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
73078
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
73079
|
+
mode: AlarmArmModeSchema,
|
|
73080
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
73081
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
73082
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
73083
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
73084
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
73085
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
73086
|
+
mode: AlarmArmModeSchema,
|
|
73087
|
+
deviceId: number().int().positive(),
|
|
73088
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
73089
|
+
nonBlocking: boolean()
|
|
73090
|
+
});
|
|
73193
73091
|
/**
|
|
73194
73092
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
73195
73093
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -73198,10 +73096,10 @@ object({
|
|
|
73198
73096
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
73199
73097
|
mode: AlarmArmModeSchema,
|
|
73200
73098
|
deviceIds: array(number().int()).max(200)
|
|
73201
|
-
})).max(8).refine(
|
|
73099
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
73202
73100
|
/**
|
|
73203
|
-
* The three durations
|
|
73204
|
-
* transitions, and which openings each mode tolerates.
|
|
73101
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
73102
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
73205
73103
|
*
|
|
73206
73104
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
73207
73105
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -73211,15 +73109,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
73211
73109
|
*/
|
|
73212
73110
|
var NcAlarmSettingsSchema = object({
|
|
73213
73111
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
73214
|
-
exitDelaySec:
|
|
73112
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
73215
73113
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
73216
|
-
entryDelaySec:
|
|
73114
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
73217
73115
|
/**
|
|
73218
73116
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
73219
73117
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
73220
73118
|
* existed, and therefore what an untouched install keeps doing.
|
|
73221
73119
|
*/
|
|
73222
|
-
triggeredDurationSec:
|
|
73120
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
73223
73121
|
/**
|
|
73224
73122
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
73225
73123
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -73242,17 +73140,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
73242
73140
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
73243
73141
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
73244
73142
|
*/
|
|
73245
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
73143
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
73144
|
+
/**
|
|
73145
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
73146
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
73147
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
73148
|
+
*/
|
|
73149
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
73246
73150
|
});
|
|
73247
73151
|
/**
|
|
73248
73152
|
* Every field optional — a tab edits one control at a time.
|
|
73249
73153
|
*
|
|
73250
|
-
* `nonBlocking`
|
|
73251
|
-
* remove an inner `.default()`, so a patch that never
|
|
73252
|
-
* parse to `
|
|
73253
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
73154
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
73155
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
73156
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
73157
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
73158
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
73254
73159
|
*/
|
|
73255
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
73160
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
73161
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
73162
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
73163
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
73164
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
73165
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
73166
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
73256
73167
|
/**
|
|
73257
73168
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
73258
73169
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -73352,6 +73263,28 @@ var NcAlarmConfigSchema = object({
|
|
|
73352
73263
|
*/
|
|
73353
73264
|
live: NcAlarmLiveSchema.optional()
|
|
73354
73265
|
});
|
|
73266
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
73267
|
+
"open",
|
|
73268
|
+
"closed",
|
|
73269
|
+
"unknown",
|
|
73270
|
+
"not-opening"
|
|
73271
|
+
]);
|
|
73272
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
73273
|
+
var NcAlarmSensorStateSchema = object({
|
|
73274
|
+
deviceId: number().int().positive(),
|
|
73275
|
+
reading: NcAlarmSensorReadingSchema,
|
|
73276
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
73277
|
+
state: string().nullable(),
|
|
73278
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
73279
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
73280
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
73281
|
+
online: boolean().nullable()
|
|
73282
|
+
});
|
|
73283
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
73284
|
+
var NcAlarmSensorsSchema = object({
|
|
73285
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
73286
|
+
readAt: number().int().nonnegative()
|
|
73287
|
+
});
|
|
73355
73288
|
/**
|
|
73356
73289
|
* ONE rule's demand on ONE camera's clip ring.
|
|
73357
73290
|
*
|
|
@@ -73442,7 +73375,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
73442
73375
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
73443
73376
|
kind: "mutation",
|
|
73444
73377
|
auth: "admin"
|
|
73445
|
-
});
|
|
73378
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
73446
73379
|
/**
|
|
73447
73380
|
* Zod schemas for persisted record types.
|
|
73448
73381
|
*
|
|
@@ -73789,12 +73722,26 @@ var CameraSensorRefSchema = object({
|
|
|
73789
73722
|
function cameraSensorRefKey(ref) {
|
|
73790
73723
|
return `${ref.addonId}/${ref.stableId}`;
|
|
73791
73724
|
}
|
|
73792
|
-
/**
|
|
73793
|
-
|
|
73794
|
-
|
|
73795
|
-
|
|
73796
|
-
|
|
73797
|
-
|
|
73725
|
+
/**
|
|
73726
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
73727
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
73728
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
73729
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
73730
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
73731
|
+
*/
|
|
73732
|
+
var CameraSensorModeSchema = _enum([
|
|
73733
|
+
"in-addition",
|
|
73734
|
+
"confirm",
|
|
73735
|
+
"replace"
|
|
73736
|
+
]);
|
|
73737
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
73738
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
73739
|
+
/**
|
|
73740
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
73741
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
73742
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
73743
|
+
*/
|
|
73744
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
73798
73745
|
const seen = /* @__PURE__ */ new Set();
|
|
73799
73746
|
value.sensors.forEach((ref, index) => {
|
|
73800
73747
|
const key = cameraSensorRefKey(ref);
|
|
@@ -73806,39 +73753,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
73806
73753
|
seen.add(key);
|
|
73807
73754
|
});
|
|
73808
73755
|
});
|
|
73809
|
-
|
|
73756
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
73757
|
+
var AttachmentFields = {
|
|
73810
73758
|
addonId: string(),
|
|
73811
|
-
stableId: string()
|
|
73759
|
+
stableId: string(),
|
|
73760
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
73812
73761
|
};
|
|
73813
73762
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
73814
73763
|
object({
|
|
73815
|
-
...
|
|
73764
|
+
...AttachmentFields,
|
|
73816
73765
|
state: literal("ready"),
|
|
73817
73766
|
deviceId: number(),
|
|
73818
73767
|
name: string(),
|
|
73819
73768
|
caps: array(string()).readonly()
|
|
73820
73769
|
}),
|
|
73821
73770
|
object({
|
|
73822
|
-
...
|
|
73771
|
+
...AttachmentFields,
|
|
73823
73772
|
state: literal("offline"),
|
|
73824
73773
|
deviceId: number(),
|
|
73825
73774
|
name: string(),
|
|
73826
73775
|
reason: _enum(["offline", "disabled"])
|
|
73827
73776
|
}),
|
|
73828
73777
|
object({
|
|
73829
|
-
...
|
|
73778
|
+
...AttachmentFields,
|
|
73830
73779
|
state: literal("missing"),
|
|
73831
73780
|
reason: string()
|
|
73832
73781
|
}),
|
|
73833
73782
|
object({
|
|
73834
|
-
...
|
|
73783
|
+
...AttachmentFields,
|
|
73835
73784
|
state: literal("unsupported"),
|
|
73836
73785
|
deviceId: number(),
|
|
73837
73786
|
name: string(),
|
|
73838
73787
|
reason: string()
|
|
73839
73788
|
}),
|
|
73840
73789
|
object({
|
|
73841
|
-
...
|
|
73790
|
+
...AttachmentFields,
|
|
73842
73791
|
state: literal("unreadable"),
|
|
73843
73792
|
reason: string()
|
|
73844
73793
|
})
|
|
@@ -73851,17 +73800,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
73851
73800
|
* say.
|
|
73852
73801
|
*/
|
|
73853
73802
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
73803
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
73804
|
+
var CameraOwnMotionSchema = _enum([
|
|
73805
|
+
"always",
|
|
73806
|
+
"when-confirmed",
|
|
73807
|
+
"never"
|
|
73808
|
+
]);
|
|
73809
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
73810
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
73811
|
+
/**
|
|
73812
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
73813
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
73814
|
+
* so a view of the camera's own row reads this.
|
|
73815
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
73816
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
73817
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
73818
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
73819
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
73820
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
73821
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
73822
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
73823
|
+
*/
|
|
73824
|
+
var CameraRawLevelSchema = object({
|
|
73825
|
+
detected: boolean(),
|
|
73826
|
+
atMs: number()
|
|
73827
|
+
});
|
|
73854
73828
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
73855
|
-
object({
|
|
73829
|
+
object({
|
|
73830
|
+
state: literal("not-configured"),
|
|
73831
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
73832
|
+
}),
|
|
73856
73833
|
object({
|
|
73857
73834
|
state: literal("unreadable"),
|
|
73858
|
-
reason: string()
|
|
73835
|
+
reason: string(),
|
|
73836
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
73859
73837
|
}),
|
|
73860
73838
|
object({
|
|
73861
73839
|
state: literal("configured"),
|
|
73862
|
-
|
|
73840
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
73863
73841
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
73864
|
-
|
|
73842
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
73843
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
73844
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
73845
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
73865
73846
|
})
|
|
73866
73847
|
]);
|
|
73867
73848
|
Object.freeze({
|
|
@@ -74546,14 +74527,14 @@ var TrackSchema = object({
|
|
|
74546
74527
|
* `derive-returned-null tile=standin`,
|
|
74547
74528
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
74548
74529
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
74549
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
74530
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
74550
74531
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
74551
74532
|
*
|
|
74552
74533
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
74553
74534
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
74554
74535
|
* while its key frame missed carried no reason at all — three of the four
|
|
74555
74536
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
74556
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
74537
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
74557
74538
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
74558
74539
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
74559
74540
|
* tile ended up being.
|
|
@@ -74640,7 +74621,7 @@ var MotionEventSchema = object({
|
|
|
74640
74621
|
/**
|
|
74641
74622
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
74642
74623
|
* first entry is always `0`) of every genuine off→on transition the
|
|
74643
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
74624
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
74644
74625
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
74645
74626
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
74646
74627
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -75164,6 +75145,7 @@ var KeyEventSchema = object({
|
|
|
75164
75145
|
bestEventId: string(),
|
|
75165
75146
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
75166
75147
|
windowMs: number().optional(),
|
|
75148
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
75167
75149
|
...TrackFlagFields,
|
|
75168
75150
|
...TrackRetrainFields
|
|
75169
75151
|
});
|
|
@@ -77092,8 +77074,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
77092
77074
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
77093
77075
|
* analyzer providers) running on decoded frames in this runner.
|
|
77094
77076
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
77095
|
-
* analytics). The provider emits ProviderMotion
|
|
77096
|
-
*
|
|
77077
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
77078
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
77079
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
77080
|
+
* `reportMotion`.
|
|
77097
77081
|
*/
|
|
77098
77082
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
77099
77083
|
/**
|
|
@@ -77270,7 +77254,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
77270
77254
|
hasGpu: boolean(),
|
|
77271
77255
|
inferenceBackend: string().optional(),
|
|
77272
77256
|
cpuCores: number().optional()
|
|
77273
|
-
})
|
|
77257
|
+
}),
|
|
77258
|
+
/**
|
|
77259
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
77260
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
77261
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
77262
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
77263
|
+
* writers.
|
|
77264
|
+
*/
|
|
77265
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
77274
77266
|
});
|
|
77275
77267
|
/**
|
|
77276
77268
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -79935,7 +79927,7 @@ var ClipPlaybackSchema = object({
|
|
|
79935
79927
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
79936
79928
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
79937
79929
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
79938
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
79930
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
79939
79931
|
* D558 "Considered and not taken").
|
|
79940
79932
|
*/
|
|
79941
79933
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -80196,7 +80188,7 @@ DeviceType.Camera, method(object({
|
|
|
80196
80188
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
80197
80189
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
80198
80190
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
80199
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
80191
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
80200
80192
|
* nothing to filter out of it.
|
|
80201
80193
|
*/
|
|
80202
80194
|
provider: string().min(1)
|
|
@@ -82816,6 +82808,70 @@ onStatusChanged: { data: object({
|
|
|
82816
82808
|
* whether persisting is worth a SQLite commit. */
|
|
82817
82809
|
volatileStateFields: ["lastChangedAt"]
|
|
82818
82810
|
};
|
|
82811
|
+
var DoorbellStatusSchema = object({
|
|
82812
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
82813
|
+
lastPressedAt: number().nullable(),
|
|
82814
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
82815
|
+
pressCountSinceStart: number()
|
|
82816
|
+
});
|
|
82817
|
+
var DoorbellPressEventSchema = object({
|
|
82818
|
+
deviceId: number(),
|
|
82819
|
+
timestamp: number()
|
|
82820
|
+
});
|
|
82821
|
+
/**
|
|
82822
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
82823
|
+
* they are the same cap:
|
|
82824
|
+
*
|
|
82825
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
82826
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
82827
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
82828
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
82829
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
82830
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
82831
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
82832
|
+
* from that field's advance (`fromState`).
|
|
82833
|
+
*
|
|
82834
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
82835
|
+
*/
|
|
82836
|
+
var doorbellCapability = {
|
|
82837
|
+
name: "doorbell",
|
|
82838
|
+
scope: "device",
|
|
82839
|
+
deviceNative: true,
|
|
82840
|
+
mode: "singleton",
|
|
82841
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
82842
|
+
methods: {},
|
|
82843
|
+
events: {
|
|
82844
|
+
/**
|
|
82845
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
82846
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
82847
|
+
* release/duration — it's a pulse.
|
|
82848
|
+
*/
|
|
82849
|
+
onPressed: {
|
|
82850
|
+
data: DoorbellPressEventSchema,
|
|
82851
|
+
fromState: {
|
|
82852
|
+
field: "lastPressedAt",
|
|
82853
|
+
on: "advance"
|
|
82854
|
+
}
|
|
82855
|
+
} },
|
|
82856
|
+
status: {
|
|
82857
|
+
schema: DoorbellStatusSchema,
|
|
82858
|
+
kind: "push"
|
|
82859
|
+
},
|
|
82860
|
+
/**
|
|
82861
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
82862
|
+
* Mirrored by the kernel and readable via
|
|
82863
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
82864
|
+
* without subscribing.
|
|
82865
|
+
*/
|
|
82866
|
+
runtimeState: DoorbellStatusSchema,
|
|
82867
|
+
/**
|
|
82868
|
+
* 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.
|
|
82869
|
+
*
|
|
82870
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
82871
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
82872
|
+
*/
|
|
82873
|
+
durability: "restored"
|
|
82874
|
+
};
|
|
82819
82875
|
/**
|
|
82820
82876
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
82821
82877
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -84960,9 +85016,9 @@ var MotionStatusSchema = object({
|
|
|
84960
85016
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
84961
85017
|
lastDetectedAt: number().nullable(),
|
|
84962
85018
|
/**
|
|
84963
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
84964
|
-
* `null` while false and on every `Sensor`
|
|
84965
|
-
* constant's doc for the one-authority rule.
|
|
85019
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
85020
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
85021
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
84966
85022
|
*
|
|
84967
85023
|
* ## Reading this field still arms nothing
|
|
84968
85024
|
*
|
|
@@ -84980,34 +85036,31 @@ var MotionStatusSchema = object({
|
|
|
84980
85036
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
84981
85037
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
84982
85038
|
*
|
|
84983
|
-
* ## Who writes it
|
|
84984
|
-
*
|
|
84985
|
-
* - **Cameras** — the
|
|
84986
|
-
*
|
|
84987
|
-
* `
|
|
84988
|
-
* `
|
|
84989
|
-
*
|
|
84990
|
-
*
|
|
84991
|
-
* a
|
|
84992
|
-
*
|
|
84993
|
-
*
|
|
84994
|
-
*
|
|
84995
|
-
*
|
|
84996
|
-
*
|
|
84997
|
-
*
|
|
84998
|
-
*
|
|
84999
|
-
*
|
|
85000
|
-
*
|
|
85001
|
-
* `
|
|
85002
|
-
*
|
|
85003
|
-
*
|
|
85004
|
-
*
|
|
85005
|
-
*
|
|
85006
|
-
*
|
|
85007
|
-
*
|
|
85008
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
85009
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
85010
|
-
* "sole writer" wording without also removing the other writers.
|
|
85039
|
+
* ## Who writes it (D696)
|
|
85040
|
+
*
|
|
85041
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
85042
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
85043
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
85044
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
85045
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
85046
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
85047
|
+
* that never sends a clear falls one window after its last `true`.
|
|
85048
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
85049
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
85050
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
85051
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
85052
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
85053
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
85054
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
85055
|
+
* system's own state change. That is the sensor's own fact.
|
|
85056
|
+
*
|
|
85057
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
85058
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
85059
|
+
*
|
|
85060
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
85061
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
85062
|
+
* it, every provider seeded it at boot, and every session left it
|
|
85063
|
+
* `detected: true` after its detach.
|
|
85011
85064
|
*/
|
|
85012
85065
|
autoClearAfterMs: number().nullable()
|
|
85013
85066
|
});
|
|
@@ -85079,11 +85132,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
85079
85132
|
*/
|
|
85080
85133
|
runtimeState: MotionStatusSchema,
|
|
85081
85134
|
/**
|
|
85082
|
-
* Runtime-state durability: **session** —
|
|
85135
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
85083
85136
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
85084
85137
|
* frozen until the next one instead of being corrected. The next edge
|
|
85085
|
-
* re-publishes the real state
|
|
85086
|
-
*
|
|
85138
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
85139
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
85140
|
+
* `autoClearAfterMs` above).
|
|
85087
85141
|
*
|
|
85088
85142
|
* See `RuntimeStateDurability`. Enforced by
|
|
85089
85143
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -87614,8 +87668,7 @@ var ptzAutotrackCapability = {
|
|
|
87614
87668
|
deviceNative: true,
|
|
87615
87669
|
mode: "singleton",
|
|
87616
87670
|
/**
|
|
87617
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
87618
|
-
* `doorbell` use:
|
|
87671
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
87619
87672
|
*
|
|
87620
87673
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
87621
87674
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -87623,7 +87676,7 @@ var ptzAutotrackCapability = {
|
|
|
87623
87676
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
87624
87677
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
87625
87678
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
87626
|
-
* the bindings UI
|
|
87679
|
+
* the bindings UI.
|
|
87627
87680
|
*
|
|
87628
87681
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
87629
87682
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -88298,7 +88351,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
88298
88351
|
/**
|
|
88299
88352
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
88300
88353
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
88301
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
88354
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
88302
88355
|
* a replay needs several seconds of native pixels, not one frame.
|
|
88303
88356
|
*
|
|
88304
88357
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -91662,6 +91715,7 @@ var zoneRulesCapability = {
|
|
|
91662
91715
|
*/
|
|
91663
91716
|
durability: "restored"
|
|
91664
91717
|
};
|
|
91718
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
91665
91719
|
/**
|
|
91666
91720
|
* Accessory device helpers — shared across drivers.
|
|
91667
91721
|
*
|
|
@@ -92721,13 +92775,14 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
92721
92775
|
async getStatus() {
|
|
92722
92776
|
const all = await this.ctx.kernel.devices?.getAll() ?? [];
|
|
92723
92777
|
const summary = this.restoreFailureSummary();
|
|
92724
|
-
|
|
92778
|
+
const base = {
|
|
92725
92779
|
connected: true,
|
|
92726
|
-
deviceCount: all.length
|
|
92780
|
+
deviceCount: all.length,
|
|
92781
|
+
motionSliceWriter: "orchestrator"
|
|
92727
92782
|
};
|
|
92783
|
+
if (summary === null) return base;
|
|
92728
92784
|
return {
|
|
92729
|
-
|
|
92730
|
-
deviceCount: all.length,
|
|
92785
|
+
...base,
|
|
92731
92786
|
error: summary
|
|
92732
92787
|
};
|
|
92733
92788
|
}
|
|
@@ -98163,6 +98218,12 @@ Object.freeze({
|
|
|
98163
98218
|
addonId: null,
|
|
98164
98219
|
access: "view"
|
|
98165
98220
|
},
|
|
98221
|
+
"notificationRules.getAlarmSensors": {
|
|
98222
|
+
capName: "notification-rules",
|
|
98223
|
+
capScope: "system",
|
|
98224
|
+
addonId: null,
|
|
98225
|
+
access: "view"
|
|
98226
|
+
},
|
|
98166
98227
|
"notificationRules.getClipRetentionAsks": {
|
|
98167
98228
|
capName: "notification-rules",
|
|
98168
98229
|
capScope: "system",
|
|
@@ -101741,6 +101802,11 @@ Object.freeze({
|
|
|
101741
101802
|
}
|
|
101742
101803
|
});
|
|
101743
101804
|
Object.freeze({
|
|
101805
|
+
"accessories.getStatus": [{
|
|
101806
|
+
name: "deviceId",
|
|
101807
|
+
form: "single",
|
|
101808
|
+
optional: false
|
|
101809
|
+
}],
|
|
101744
101810
|
"accessories.setChildHidden": [{
|
|
101745
101811
|
name: "childDeviceId",
|
|
101746
101812
|
form: "single",
|
|
@@ -101760,6 +101826,11 @@ Object.freeze({
|
|
|
101760
101826
|
form: "single",
|
|
101761
101827
|
optional: false
|
|
101762
101828
|
}],
|
|
101829
|
+
"airQualitySensor.getStatus": [{
|
|
101830
|
+
name: "deviceId",
|
|
101831
|
+
form: "single",
|
|
101832
|
+
optional: false
|
|
101833
|
+
}],
|
|
101763
101834
|
"alarmPanel.arm": [{
|
|
101764
101835
|
name: "deviceId",
|
|
101765
101836
|
form: "single",
|
|
@@ -101770,11 +101841,36 @@ Object.freeze({
|
|
|
101770
101841
|
form: "single",
|
|
101771
101842
|
optional: false
|
|
101772
101843
|
}],
|
|
101844
|
+
"alarmPanel.getStatus": [{
|
|
101845
|
+
name: "deviceId",
|
|
101846
|
+
form: "single",
|
|
101847
|
+
optional: false
|
|
101848
|
+
}],
|
|
101773
101849
|
"alarmPanel.trigger": [{
|
|
101774
101850
|
name: "deviceId",
|
|
101775
101851
|
form: "single",
|
|
101776
101852
|
optional: false
|
|
101777
101853
|
}],
|
|
101854
|
+
"ambientLightSensor.getStatus": [{
|
|
101855
|
+
name: "deviceId",
|
|
101856
|
+
form: "single",
|
|
101857
|
+
optional: false
|
|
101858
|
+
}],
|
|
101859
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
101860
|
+
name: "deviceId",
|
|
101861
|
+
form: "single",
|
|
101862
|
+
optional: false
|
|
101863
|
+
}],
|
|
101864
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
101865
|
+
name: "deviceId",
|
|
101866
|
+
form: "single",
|
|
101867
|
+
optional: false
|
|
101868
|
+
}],
|
|
101869
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
101870
|
+
name: "deviceId",
|
|
101871
|
+
form: "single",
|
|
101872
|
+
optional: false
|
|
101873
|
+
}],
|
|
101778
101874
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
101779
101875
|
name: "deviceId",
|
|
101780
101876
|
form: "single",
|
|
@@ -101815,16 +101911,36 @@ Object.freeze({
|
|
|
101815
101911
|
form: "single",
|
|
101816
101912
|
optional: false
|
|
101817
101913
|
}],
|
|
101914
|
+
"automationControl.getStatus": [{
|
|
101915
|
+
name: "deviceId",
|
|
101916
|
+
form: "single",
|
|
101917
|
+
optional: false
|
|
101918
|
+
}],
|
|
101818
101919
|
"automationControl.trigger": [{
|
|
101819
101920
|
name: "deviceId",
|
|
101820
101921
|
form: "single",
|
|
101821
101922
|
optional: false
|
|
101822
101923
|
}],
|
|
101924
|
+
"battery.getStatus": [{
|
|
101925
|
+
name: "deviceId",
|
|
101926
|
+
form: "single",
|
|
101927
|
+
optional: false
|
|
101928
|
+
}],
|
|
101823
101929
|
"battery.wakeForStream": [{
|
|
101824
101930
|
name: "deviceId",
|
|
101825
101931
|
form: "single",
|
|
101826
101932
|
optional: false
|
|
101827
101933
|
}],
|
|
101934
|
+
"binary.getStatus": [{
|
|
101935
|
+
name: "deviceId",
|
|
101936
|
+
form: "single",
|
|
101937
|
+
optional: false
|
|
101938
|
+
}],
|
|
101939
|
+
"brightness.getStatus": [{
|
|
101940
|
+
name: "deviceId",
|
|
101941
|
+
form: "single",
|
|
101942
|
+
optional: false
|
|
101943
|
+
}],
|
|
101828
101944
|
"brightness.setBrightness": [{
|
|
101829
101945
|
name: "deviceId",
|
|
101830
101946
|
form: "single",
|
|
@@ -101840,6 +101956,26 @@ Object.freeze({
|
|
|
101840
101956
|
form: "single",
|
|
101841
101957
|
optional: false
|
|
101842
101958
|
}],
|
|
101959
|
+
"cameraCredentials.getStatus": [{
|
|
101960
|
+
name: "deviceId",
|
|
101961
|
+
form: "single",
|
|
101962
|
+
optional: false
|
|
101963
|
+
}],
|
|
101964
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
101965
|
+
name: "deviceId",
|
|
101966
|
+
form: "single",
|
|
101967
|
+
optional: false
|
|
101968
|
+
}],
|
|
101969
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
101970
|
+
name: "deviceId",
|
|
101971
|
+
form: "single",
|
|
101972
|
+
optional: false
|
|
101973
|
+
}],
|
|
101974
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
101975
|
+
name: "deviceId",
|
|
101976
|
+
form: "single",
|
|
101977
|
+
optional: false
|
|
101978
|
+
}],
|
|
101843
101979
|
"cameraGridLayout.getLayout": [{
|
|
101844
101980
|
name: "deviceId",
|
|
101845
101981
|
form: "single",
|
|
@@ -101855,6 +101991,21 @@ Object.freeze({
|
|
|
101855
101991
|
form: "single",
|
|
101856
101992
|
optional: false
|
|
101857
101993
|
}],
|
|
101994
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
101995
|
+
name: "deviceId",
|
|
101996
|
+
form: "single",
|
|
101997
|
+
optional: false
|
|
101998
|
+
}],
|
|
101999
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
102000
|
+
name: "deviceId",
|
|
102001
|
+
form: "single",
|
|
102002
|
+
optional: false
|
|
102003
|
+
}],
|
|
102004
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
102005
|
+
name: "deviceId",
|
|
102006
|
+
form: "single",
|
|
102007
|
+
optional: false
|
|
102008
|
+
}],
|
|
101858
102009
|
"cameraStreams.getBrokerStreams": [{
|
|
101859
102010
|
name: "deviceId",
|
|
101860
102011
|
form: "single",
|
|
@@ -101880,6 +102031,16 @@ Object.freeze({
|
|
|
101880
102031
|
form: "single",
|
|
101881
102032
|
optional: false
|
|
101882
102033
|
}],
|
|
102034
|
+
"carbonMonoxide.getStatus": [{
|
|
102035
|
+
name: "deviceId",
|
|
102036
|
+
form: "single",
|
|
102037
|
+
optional: false
|
|
102038
|
+
}],
|
|
102039
|
+
"climateControl.getStatus": [{
|
|
102040
|
+
name: "deviceId",
|
|
102041
|
+
form: "single",
|
|
102042
|
+
optional: false
|
|
102043
|
+
}],
|
|
101883
102044
|
"climateControl.setFanMode": [{
|
|
101884
102045
|
name: "deviceId",
|
|
101885
102046
|
form: "single",
|
|
@@ -101920,16 +102081,41 @@ Object.freeze({
|
|
|
101920
102081
|
form: "single",
|
|
101921
102082
|
optional: false
|
|
101922
102083
|
}],
|
|
102084
|
+
"color.getStatus": [{
|
|
102085
|
+
name: "deviceId",
|
|
102086
|
+
form: "single",
|
|
102087
|
+
optional: false
|
|
102088
|
+
}],
|
|
101923
102089
|
"color.setColor": [{
|
|
101924
102090
|
name: "deviceId",
|
|
101925
102091
|
form: "single",
|
|
101926
102092
|
optional: false
|
|
101927
102093
|
}],
|
|
102094
|
+
"connectivity.getStatus": [{
|
|
102095
|
+
name: "deviceId",
|
|
102096
|
+
form: "single",
|
|
102097
|
+
optional: false
|
|
102098
|
+
}],
|
|
102099
|
+
"consumables.getStatus": [{
|
|
102100
|
+
name: "deviceId",
|
|
102101
|
+
form: "single",
|
|
102102
|
+
optional: false
|
|
102103
|
+
}],
|
|
101928
102104
|
"consumables.reset": [{
|
|
101929
102105
|
name: "deviceId",
|
|
101930
102106
|
form: "single",
|
|
101931
102107
|
optional: false
|
|
101932
102108
|
}],
|
|
102109
|
+
"contact.getStatus": [{
|
|
102110
|
+
name: "deviceId",
|
|
102111
|
+
form: "single",
|
|
102112
|
+
optional: false
|
|
102113
|
+
}],
|
|
102114
|
+
"control.getStatus": [{
|
|
102115
|
+
name: "deviceId",
|
|
102116
|
+
form: "single",
|
|
102117
|
+
optional: false
|
|
102118
|
+
}],
|
|
101933
102119
|
"control.setValue": [{
|
|
101934
102120
|
name: "deviceId",
|
|
101935
102121
|
form: "single",
|
|
@@ -101940,6 +102126,11 @@ Object.freeze({
|
|
|
101940
102126
|
form: "single",
|
|
101941
102127
|
optional: false
|
|
101942
102128
|
}],
|
|
102129
|
+
"cover.getStatus": [{
|
|
102130
|
+
name: "deviceId",
|
|
102131
|
+
form: "single",
|
|
102132
|
+
optional: false
|
|
102133
|
+
}],
|
|
101943
102134
|
"cover.open": [{
|
|
101944
102135
|
name: "deviceId",
|
|
101945
102136
|
form: "single",
|
|
@@ -101965,6 +102156,11 @@ Object.freeze({
|
|
|
101965
102156
|
form: "single",
|
|
101966
102157
|
optional: false
|
|
101967
102158
|
}],
|
|
102159
|
+
"dayNight.getStatus": [{
|
|
102160
|
+
name: "deviceId",
|
|
102161
|
+
form: "single",
|
|
102162
|
+
optional: false
|
|
102163
|
+
}],
|
|
101968
102164
|
"dayNight.setSettings": [{
|
|
101969
102165
|
name: "deviceId",
|
|
101970
102166
|
form: "single",
|
|
@@ -101975,11 +102171,31 @@ Object.freeze({
|
|
|
101975
102171
|
form: "single",
|
|
101976
102172
|
optional: true
|
|
101977
102173
|
}],
|
|
102174
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
102175
|
+
name: "deviceId",
|
|
102176
|
+
form: "single",
|
|
102177
|
+
optional: false
|
|
102178
|
+
}],
|
|
102179
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
102180
|
+
name: "deviceId",
|
|
102181
|
+
form: "single",
|
|
102182
|
+
optional: false
|
|
102183
|
+
}],
|
|
102184
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
102185
|
+
name: "deviceId",
|
|
102186
|
+
form: "single",
|
|
102187
|
+
optional: false
|
|
102188
|
+
}],
|
|
101978
102189
|
"deviceAdminLink.getAdminLink": [{
|
|
101979
102190
|
name: "deviceId",
|
|
101980
102191
|
form: "single",
|
|
101981
102192
|
optional: false
|
|
101982
102193
|
}],
|
|
102194
|
+
"deviceAdoption.getStatus": [{
|
|
102195
|
+
name: "deviceId",
|
|
102196
|
+
form: "single",
|
|
102197
|
+
optional: false
|
|
102198
|
+
}],
|
|
101983
102199
|
"deviceAdoption.release": [{
|
|
101984
102200
|
name: "camDeviceId",
|
|
101985
102201
|
form: "single",
|
|
@@ -101995,6 +102211,11 @@ Object.freeze({
|
|
|
101995
102211
|
form: "single",
|
|
101996
102212
|
optional: false
|
|
101997
102213
|
}],
|
|
102214
|
+
"deviceDiscovery.getStatus": [{
|
|
102215
|
+
name: "deviceId",
|
|
102216
|
+
form: "single",
|
|
102217
|
+
optional: false
|
|
102218
|
+
}],
|
|
101998
102219
|
"deviceDiscovery.listDiscovered": [{
|
|
101999
102220
|
name: "deviceId",
|
|
102000
102221
|
form: "single",
|
|
@@ -102014,6 +102235,21 @@ Object.freeze({
|
|
|
102014
102235
|
form: "single",
|
|
102015
102236
|
optional: false
|
|
102016
102237
|
}],
|
|
102238
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
102239
|
+
name: "deviceId",
|
|
102240
|
+
form: "single",
|
|
102241
|
+
optional: false
|
|
102242
|
+
}],
|
|
102243
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
102244
|
+
name: "deviceId",
|
|
102245
|
+
form: "single",
|
|
102246
|
+
optional: false
|
|
102247
|
+
}],
|
|
102248
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
102249
|
+
name: "deviceId",
|
|
102250
|
+
form: "single",
|
|
102251
|
+
optional: false
|
|
102252
|
+
}],
|
|
102017
102253
|
"deviceExtension.listCandidates": [{
|
|
102018
102254
|
name: "deviceId",
|
|
102019
102255
|
form: "single",
|
|
@@ -102362,6 +102598,26 @@ Object.freeze({
|
|
|
102362
102598
|
form: "single",
|
|
102363
102599
|
optional: false
|
|
102364
102600
|
}],
|
|
102601
|
+
"deviceStatus.getStatus": [{
|
|
102602
|
+
name: "deviceId",
|
|
102603
|
+
form: "single",
|
|
102604
|
+
optional: false
|
|
102605
|
+
}],
|
|
102606
|
+
"doorbell.getStatus": [{
|
|
102607
|
+
name: "deviceId",
|
|
102608
|
+
form: "single",
|
|
102609
|
+
optional: false
|
|
102610
|
+
}],
|
|
102611
|
+
"enumSensor.getStatus": [{
|
|
102612
|
+
name: "deviceId",
|
|
102613
|
+
form: "single",
|
|
102614
|
+
optional: false
|
|
102615
|
+
}],
|
|
102616
|
+
"eventEmitter.getStatus": [{
|
|
102617
|
+
name: "deviceId",
|
|
102618
|
+
form: "single",
|
|
102619
|
+
optional: false
|
|
102620
|
+
}],
|
|
102365
102621
|
"faceGallery.getFaceByTrack": [{
|
|
102366
102622
|
name: "deviceId",
|
|
102367
102623
|
form: "single",
|
|
@@ -102376,6 +102632,11 @@ Object.freeze({
|
|
|
102376
102632
|
form: "array",
|
|
102377
102633
|
optional: true
|
|
102378
102634
|
}],
|
|
102635
|
+
"fanControl.getStatus": [{
|
|
102636
|
+
name: "deviceId",
|
|
102637
|
+
form: "single",
|
|
102638
|
+
optional: false
|
|
102639
|
+
}],
|
|
102379
102640
|
"fanControl.setDirection": [{
|
|
102380
102641
|
name: "deviceId",
|
|
102381
102642
|
form: "single",
|
|
@@ -102396,6 +102657,26 @@ Object.freeze({
|
|
|
102396
102657
|
form: "single",
|
|
102397
102658
|
optional: false
|
|
102398
102659
|
}],
|
|
102660
|
+
"featureProbe.getStatus": [{
|
|
102661
|
+
name: "deviceId",
|
|
102662
|
+
form: "single",
|
|
102663
|
+
optional: false
|
|
102664
|
+
}],
|
|
102665
|
+
"flood.getStatus": [{
|
|
102666
|
+
name: "deviceId",
|
|
102667
|
+
form: "single",
|
|
102668
|
+
optional: false
|
|
102669
|
+
}],
|
|
102670
|
+
"gas.getStatus": [{
|
|
102671
|
+
name: "deviceId",
|
|
102672
|
+
form: "single",
|
|
102673
|
+
optional: false
|
|
102674
|
+
}],
|
|
102675
|
+
"humidifier.getStatus": [{
|
|
102676
|
+
name: "deviceId",
|
|
102677
|
+
form: "single",
|
|
102678
|
+
optional: false
|
|
102679
|
+
}],
|
|
102399
102680
|
"humidifier.setMode": [{
|
|
102400
102681
|
name: "deviceId",
|
|
102401
102682
|
form: "single",
|
|
@@ -102411,11 +102692,26 @@ Object.freeze({
|
|
|
102411
102692
|
form: "single",
|
|
102412
102693
|
optional: false
|
|
102413
102694
|
}],
|
|
102695
|
+
"humiditySensor.getStatus": [{
|
|
102696
|
+
name: "deviceId",
|
|
102697
|
+
form: "single",
|
|
102698
|
+
optional: false
|
|
102699
|
+
}],
|
|
102700
|
+
"image.getStatus": [{
|
|
102701
|
+
name: "deviceId",
|
|
102702
|
+
form: "single",
|
|
102703
|
+
optional: false
|
|
102704
|
+
}],
|
|
102414
102705
|
"imageSettings.getOptions": [{
|
|
102415
102706
|
name: "deviceId",
|
|
102416
102707
|
form: "single",
|
|
102417
102708
|
optional: false
|
|
102418
102709
|
}],
|
|
102710
|
+
"imageSettings.getStatus": [{
|
|
102711
|
+
name: "deviceId",
|
|
102712
|
+
form: "single",
|
|
102713
|
+
optional: false
|
|
102714
|
+
}],
|
|
102419
102715
|
"imageSettings.setSettings": [{
|
|
102420
102716
|
name: "deviceId",
|
|
102421
102717
|
form: "single",
|
|
@@ -102426,6 +102722,11 @@ Object.freeze({
|
|
|
102426
102722
|
form: "single",
|
|
102427
102723
|
optional: false
|
|
102428
102724
|
}],
|
|
102725
|
+
"intercom.getStatus": [{
|
|
102726
|
+
name: "deviceId",
|
|
102727
|
+
form: "single",
|
|
102728
|
+
optional: false
|
|
102729
|
+
}],
|
|
102429
102730
|
"intercom.handleAnswer": [{
|
|
102430
102731
|
name: "deviceId",
|
|
102431
102732
|
form: "single",
|
|
@@ -102456,6 +102757,11 @@ Object.freeze({
|
|
|
102456
102757
|
form: "single",
|
|
102457
102758
|
optional: false
|
|
102458
102759
|
}],
|
|
102760
|
+
"lawnMowerControl.getStatus": [{
|
|
102761
|
+
name: "deviceId",
|
|
102762
|
+
form: "single",
|
|
102763
|
+
optional: false
|
|
102764
|
+
}],
|
|
102459
102765
|
"lawnMowerControl.pause": [{
|
|
102460
102766
|
name: "deviceId",
|
|
102461
102767
|
form: "single",
|
|
@@ -102466,6 +102772,11 @@ Object.freeze({
|
|
|
102466
102772
|
form: "single",
|
|
102467
102773
|
optional: false
|
|
102468
102774
|
}],
|
|
102775
|
+
"lockControl.getStatus": [{
|
|
102776
|
+
name: "deviceId",
|
|
102777
|
+
form: "single",
|
|
102778
|
+
optional: false
|
|
102779
|
+
}],
|
|
102469
102780
|
"lockControl.lock": [{
|
|
102470
102781
|
name: "deviceId",
|
|
102471
102782
|
form: "single",
|
|
@@ -102481,6 +102792,11 @@ Object.freeze({
|
|
|
102481
102792
|
form: "single",
|
|
102482
102793
|
optional: false
|
|
102483
102794
|
}],
|
|
102795
|
+
"mediaPlayer.getStatus": [{
|
|
102796
|
+
name: "deviceId",
|
|
102797
|
+
form: "single",
|
|
102798
|
+
optional: false
|
|
102799
|
+
}],
|
|
102484
102800
|
"mediaPlayer.next": [{
|
|
102485
102801
|
name: "deviceId",
|
|
102486
102802
|
form: "single",
|
|
@@ -102541,6 +102857,11 @@ Object.freeze({
|
|
|
102541
102857
|
form: "single",
|
|
102542
102858
|
optional: false
|
|
102543
102859
|
}],
|
|
102860
|
+
"motion.getStatus": [{
|
|
102861
|
+
name: "deviceId",
|
|
102862
|
+
form: "single",
|
|
102863
|
+
optional: false
|
|
102864
|
+
}],
|
|
102544
102865
|
"motion.isDetected": [{
|
|
102545
102866
|
name: "deviceId",
|
|
102546
102867
|
form: "single",
|
|
@@ -102551,11 +102872,31 @@ Object.freeze({
|
|
|
102551
102872
|
form: "single",
|
|
102552
102873
|
optional: false
|
|
102553
102874
|
}],
|
|
102875
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
102876
|
+
name: "deviceId",
|
|
102877
|
+
form: "single",
|
|
102878
|
+
optional: false
|
|
102879
|
+
}],
|
|
102880
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
102881
|
+
name: "deviceId",
|
|
102882
|
+
form: "single",
|
|
102883
|
+
optional: false
|
|
102884
|
+
}],
|
|
102885
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
102886
|
+
name: "deviceId",
|
|
102887
|
+
form: "single",
|
|
102888
|
+
optional: false
|
|
102889
|
+
}],
|
|
102554
102890
|
"motionDetection.removeCamera": [{
|
|
102555
102891
|
name: "deviceId",
|
|
102556
102892
|
form: "single",
|
|
102557
102893
|
optional: false
|
|
102558
102894
|
}],
|
|
102895
|
+
"motionTrigger.getStatus": [{
|
|
102896
|
+
name: "deviceId",
|
|
102897
|
+
form: "single",
|
|
102898
|
+
optional: false
|
|
102899
|
+
}],
|
|
102559
102900
|
"motionTrigger.setMotionTrigger": [{
|
|
102560
102901
|
name: "deviceId",
|
|
102561
102902
|
form: "single",
|
|
@@ -102566,6 +102907,11 @@ Object.freeze({
|
|
|
102566
102907
|
form: "single",
|
|
102567
102908
|
optional: false
|
|
102568
102909
|
}],
|
|
102910
|
+
"motionZones.getStatus": [{
|
|
102911
|
+
name: "deviceId",
|
|
102912
|
+
form: "single",
|
|
102913
|
+
optional: false
|
|
102914
|
+
}],
|
|
102569
102915
|
"motionZones.setZone": [{
|
|
102570
102916
|
name: "deviceId",
|
|
102571
102917
|
form: "single",
|
|
@@ -102576,6 +102922,11 @@ Object.freeze({
|
|
|
102576
102922
|
form: "single",
|
|
102577
102923
|
optional: false
|
|
102578
102924
|
}],
|
|
102925
|
+
"nativeObjectDetection.getStatus": [{
|
|
102926
|
+
name: "deviceId",
|
|
102927
|
+
form: "single",
|
|
102928
|
+
optional: false
|
|
102929
|
+
}],
|
|
102579
102930
|
"nativeObjectDetection.setEnabled": [{
|
|
102580
102931
|
name: "deviceId",
|
|
102581
102932
|
form: "single",
|
|
@@ -102591,6 +102942,11 @@ Object.freeze({
|
|
|
102591
102942
|
form: "single",
|
|
102592
102943
|
optional: false
|
|
102593
102944
|
}],
|
|
102945
|
+
"navigation.getStatus": [{
|
|
102946
|
+
name: "deviceId",
|
|
102947
|
+
form: "single",
|
|
102948
|
+
optional: false
|
|
102949
|
+
}],
|
|
102594
102950
|
"navigation.goToPoint": [{
|
|
102595
102951
|
name: "deviceId",
|
|
102596
102952
|
form: "single",
|
|
@@ -102636,6 +102992,11 @@ Object.freeze({
|
|
|
102636
102992
|
form: "single",
|
|
102637
102993
|
optional: false
|
|
102638
102994
|
}],
|
|
102995
|
+
"networkLink.getStatus": [{
|
|
102996
|
+
name: "deviceId",
|
|
102997
|
+
form: "single",
|
|
102998
|
+
optional: false
|
|
102999
|
+
}],
|
|
102639
103000
|
"networkQuality.getDeviceStats": [{
|
|
102640
103001
|
name: "deviceId",
|
|
102641
103002
|
form: "single",
|
|
@@ -102646,6 +103007,11 @@ Object.freeze({
|
|
|
102646
103007
|
form: "single",
|
|
102647
103008
|
optional: false
|
|
102648
103009
|
}],
|
|
103010
|
+
"notificationRules.getAlarmSensors": [{
|
|
103011
|
+
name: "deviceIds",
|
|
103012
|
+
form: "array",
|
|
103013
|
+
optional: false
|
|
103014
|
+
}],
|
|
102649
103015
|
"notificationRules.setDeviceMuted": [{
|
|
102650
103016
|
name: "deviceId",
|
|
102651
103017
|
form: "single",
|
|
@@ -102656,11 +103022,26 @@ Object.freeze({
|
|
|
102656
103022
|
form: "single",
|
|
102657
103023
|
optional: false
|
|
102658
103024
|
}],
|
|
103025
|
+
"notifier.getStatus": [{
|
|
103026
|
+
name: "deviceId",
|
|
103027
|
+
form: "single",
|
|
103028
|
+
optional: false
|
|
103029
|
+
}],
|
|
102659
103030
|
"notifier.send": [{
|
|
102660
103031
|
name: "deviceId",
|
|
102661
103032
|
form: "single",
|
|
102662
103033
|
optional: false
|
|
102663
103034
|
}],
|
|
103035
|
+
"numericSensor.getStatus": [{
|
|
103036
|
+
name: "deviceId",
|
|
103037
|
+
form: "single",
|
|
103038
|
+
optional: false
|
|
103039
|
+
}],
|
|
103040
|
+
"osd.getStatus": [{
|
|
103041
|
+
name: "deviceId",
|
|
103042
|
+
form: "single",
|
|
103043
|
+
optional: false
|
|
103044
|
+
}],
|
|
102664
103045
|
"osd.setOverlay": [{
|
|
102665
103046
|
name: "deviceId",
|
|
102666
103047
|
form: "single",
|
|
@@ -102720,6 +103101,11 @@ Object.freeze({
|
|
|
102720
103101
|
form: "single",
|
|
102721
103102
|
optional: false
|
|
102722
103103
|
}],
|
|
103104
|
+
"petFeeder.getStatus": [{
|
|
103105
|
+
name: "deviceId",
|
|
103106
|
+
form: "single",
|
|
103107
|
+
optional: false
|
|
103108
|
+
}],
|
|
102723
103109
|
"petFeeder.markFoodReplenished": [{
|
|
102724
103110
|
name: "deviceId",
|
|
102725
103111
|
form: "single",
|
|
@@ -102755,6 +103141,11 @@ Object.freeze({
|
|
|
102755
103141
|
form: "single",
|
|
102756
103142
|
optional: false
|
|
102757
103143
|
}],
|
|
103144
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
103145
|
+
name: "deviceId",
|
|
103146
|
+
form: "single",
|
|
103147
|
+
optional: false
|
|
103148
|
+
}],
|
|
102758
103149
|
"pipelineAnalytics.clearTrackRelation": [{
|
|
102759
103150
|
name: "deviceId",
|
|
102760
103151
|
form: "single",
|
|
@@ -102795,6 +103186,16 @@ Object.freeze({
|
|
|
102795
103186
|
form: "single",
|
|
102796
103187
|
optional: false
|
|
102797
103188
|
}],
|
|
103189
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
103190
|
+
name: "deviceId",
|
|
103191
|
+
form: "single",
|
|
103192
|
+
optional: false
|
|
103193
|
+
}],
|
|
103194
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
103195
|
+
name: "deviceId",
|
|
103196
|
+
form: "single",
|
|
103197
|
+
optional: false
|
|
103198
|
+
}],
|
|
102798
103199
|
"pipelineAnalytics.getEventDensity": [{
|
|
102799
103200
|
name: "deviceId",
|
|
102800
103201
|
form: "single",
|
|
@@ -103010,6 +103411,11 @@ Object.freeze({
|
|
|
103010
103411
|
form: "single",
|
|
103011
103412
|
optional: true
|
|
103012
103413
|
}],
|
|
103414
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
103415
|
+
name: "deviceId",
|
|
103416
|
+
form: "single",
|
|
103417
|
+
optional: false
|
|
103418
|
+
}],
|
|
103013
103419
|
"pipelineOrchestrator.assignAudio": [{
|
|
103014
103420
|
name: "deviceId",
|
|
103015
103421
|
form: "single",
|
|
@@ -103055,6 +103461,16 @@ Object.freeze({
|
|
|
103055
103461
|
form: "single",
|
|
103056
103462
|
optional: false
|
|
103057
103463
|
}],
|
|
103464
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
103465
|
+
name: "deviceId",
|
|
103466
|
+
form: "single",
|
|
103467
|
+
optional: false
|
|
103468
|
+
}],
|
|
103469
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
103470
|
+
name: "deviceId",
|
|
103471
|
+
form: "single",
|
|
103472
|
+
optional: false
|
|
103473
|
+
}],
|
|
103058
103474
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
103059
103475
|
name: "deviceId",
|
|
103060
103476
|
form: "single",
|
|
@@ -103175,11 +103591,31 @@ Object.freeze({
|
|
|
103175
103591
|
form: "single",
|
|
103176
103592
|
optional: true
|
|
103177
103593
|
}],
|
|
103594
|
+
"powerMeter.getStatus": [{
|
|
103595
|
+
name: "deviceId",
|
|
103596
|
+
form: "single",
|
|
103597
|
+
optional: false
|
|
103598
|
+
}],
|
|
103599
|
+
"presence.getStatus": [{
|
|
103600
|
+
name: "deviceId",
|
|
103601
|
+
form: "single",
|
|
103602
|
+
optional: false
|
|
103603
|
+
}],
|
|
103604
|
+
"pressureSensor.getStatus": [{
|
|
103605
|
+
name: "deviceId",
|
|
103606
|
+
form: "single",
|
|
103607
|
+
optional: false
|
|
103608
|
+
}],
|
|
103178
103609
|
"privacyMask.getOptions": [{
|
|
103179
103610
|
name: "deviceId",
|
|
103180
103611
|
form: "single",
|
|
103181
103612
|
optional: false
|
|
103182
103613
|
}],
|
|
103614
|
+
"privacyMask.getStatus": [{
|
|
103615
|
+
name: "deviceId",
|
|
103616
|
+
form: "single",
|
|
103617
|
+
optional: false
|
|
103618
|
+
}],
|
|
103183
103619
|
"privacyMask.setAudioEnabled": [{
|
|
103184
103620
|
name: "deviceId",
|
|
103185
103621
|
form: "single",
|
|
@@ -103230,6 +103666,11 @@ Object.freeze({
|
|
|
103230
103666
|
form: "single",
|
|
103231
103667
|
optional: false
|
|
103232
103668
|
}],
|
|
103669
|
+
"ptz.getStatus": [{
|
|
103670
|
+
name: "deviceId",
|
|
103671
|
+
form: "single",
|
|
103672
|
+
optional: false
|
|
103673
|
+
}],
|
|
103233
103674
|
"ptz.goHome": [{
|
|
103234
103675
|
name: "deviceId",
|
|
103235
103676
|
form: "single",
|
|
@@ -103320,6 +103761,11 @@ Object.freeze({
|
|
|
103320
103761
|
form: "single",
|
|
103321
103762
|
optional: false
|
|
103322
103763
|
}],
|
|
103764
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
103765
|
+
name: "deviceId",
|
|
103766
|
+
form: "single",
|
|
103767
|
+
optional: false
|
|
103768
|
+
}],
|
|
103323
103769
|
"recordingArchive.deleteFootprint": [{
|
|
103324
103770
|
name: "deviceId",
|
|
103325
103771
|
form: "single",
|
|
@@ -103340,6 +103786,21 @@ Object.freeze({
|
|
|
103340
103786
|
form: "single",
|
|
103341
103787
|
optional: false
|
|
103342
103788
|
}],
|
|
103789
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
103790
|
+
name: "deviceId",
|
|
103791
|
+
form: "single",
|
|
103792
|
+
optional: false
|
|
103793
|
+
}],
|
|
103794
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
103795
|
+
name: "deviceId",
|
|
103796
|
+
form: "single",
|
|
103797
|
+
optional: false
|
|
103798
|
+
}],
|
|
103799
|
+
"recordingArchive.getStatus": [{
|
|
103800
|
+
name: "deviceId",
|
|
103801
|
+
form: "single",
|
|
103802
|
+
optional: false
|
|
103803
|
+
}],
|
|
103343
103804
|
"recordingArchive.listOpsLog": [{
|
|
103344
103805
|
name: "deviceId",
|
|
103345
103806
|
form: "single",
|
|
@@ -103425,6 +103886,11 @@ Object.freeze({
|
|
|
103425
103886
|
form: "single",
|
|
103426
103887
|
optional: false
|
|
103427
103888
|
}],
|
|
103889
|
+
"recordingOnboard.getStatus": [{
|
|
103890
|
+
name: "deviceId",
|
|
103891
|
+
form: "single",
|
|
103892
|
+
optional: false
|
|
103893
|
+
}],
|
|
103428
103894
|
"recordingOnboard.setSettings": [{
|
|
103429
103895
|
name: "deviceId",
|
|
103430
103896
|
form: "single",
|
|
@@ -103455,6 +103921,11 @@ Object.freeze({
|
|
|
103455
103921
|
form: "single",
|
|
103456
103922
|
optional: false
|
|
103457
103923
|
}],
|
|
103924
|
+
"sceneMonitor.getStatus": [{
|
|
103925
|
+
name: "deviceId",
|
|
103926
|
+
form: "single",
|
|
103927
|
+
optional: false
|
|
103928
|
+
}],
|
|
103458
103929
|
"sceneMonitor.listScenes": [{
|
|
103459
103930
|
name: "deviceId",
|
|
103460
103931
|
form: "single",
|
|
@@ -103480,6 +103951,11 @@ Object.freeze({
|
|
|
103480
103951
|
form: "single",
|
|
103481
103952
|
optional: false
|
|
103482
103953
|
}],
|
|
103954
|
+
"scriptRunner.getStatus": [{
|
|
103955
|
+
name: "deviceId",
|
|
103956
|
+
form: "single",
|
|
103957
|
+
optional: false
|
|
103958
|
+
}],
|
|
103483
103959
|
"scriptRunner.run": [{
|
|
103484
103960
|
name: "deviceId",
|
|
103485
103961
|
form: "single",
|
|
@@ -103490,11 +103966,31 @@ Object.freeze({
|
|
|
103490
103966
|
form: "single",
|
|
103491
103967
|
optional: false
|
|
103492
103968
|
}],
|
|
103969
|
+
"smoke.getStatus": [{
|
|
103970
|
+
name: "deviceId",
|
|
103971
|
+
form: "single",
|
|
103972
|
+
optional: false
|
|
103973
|
+
}],
|
|
103974
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
103975
|
+
name: "deviceId",
|
|
103976
|
+
form: "single",
|
|
103977
|
+
optional: false
|
|
103978
|
+
}],
|
|
103493
103979
|
"snapshot.getDebugState": [{
|
|
103494
103980
|
name: "deviceId",
|
|
103495
103981
|
form: "single",
|
|
103496
103982
|
optional: false
|
|
103497
103983
|
}],
|
|
103984
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
103985
|
+
name: "deviceId",
|
|
103986
|
+
form: "single",
|
|
103987
|
+
optional: false
|
|
103988
|
+
}],
|
|
103989
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
103990
|
+
name: "deviceId",
|
|
103991
|
+
form: "single",
|
|
103992
|
+
optional: false
|
|
103993
|
+
}],
|
|
103498
103994
|
"snapshot.getSnapshot": [{
|
|
103499
103995
|
name: "deviceId",
|
|
103500
103996
|
form: "single",
|
|
@@ -103511,6 +104007,11 @@ Object.freeze({
|
|
|
103511
104007
|
form: "array",
|
|
103512
104008
|
optional: false
|
|
103513
104009
|
}],
|
|
104010
|
+
"snapshot.getStatus": [{
|
|
104011
|
+
name: "deviceId",
|
|
104012
|
+
form: "single",
|
|
104013
|
+
optional: false
|
|
104014
|
+
}],
|
|
103514
104015
|
"snapshot.invalidateCache": [{
|
|
103515
104016
|
name: "deviceId",
|
|
103516
104017
|
form: "single",
|
|
@@ -103521,6 +104022,11 @@ Object.freeze({
|
|
|
103521
104022
|
form: "single",
|
|
103522
104023
|
optional: false
|
|
103523
104024
|
}],
|
|
104025
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
104026
|
+
name: "deviceId",
|
|
104027
|
+
form: "single",
|
|
104028
|
+
optional: false
|
|
104029
|
+
}],
|
|
103524
104030
|
"streamBroker.assignProfile": [{
|
|
103525
104031
|
name: "deviceId",
|
|
103526
104032
|
form: "single",
|
|
@@ -103536,6 +104042,16 @@ Object.freeze({
|
|
|
103536
104042
|
form: "single",
|
|
103537
104043
|
optional: false
|
|
103538
104044
|
}],
|
|
104045
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
104046
|
+
name: "deviceId",
|
|
104047
|
+
form: "single",
|
|
104048
|
+
optional: false
|
|
104049
|
+
}],
|
|
104050
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
104051
|
+
name: "deviceId",
|
|
104052
|
+
form: "single",
|
|
104053
|
+
optional: false
|
|
104054
|
+
}],
|
|
103539
104055
|
"streamBroker.getStreamWithCodec": [{
|
|
103540
104056
|
name: "deviceId",
|
|
103541
104057
|
form: "single",
|
|
@@ -103596,16 +104112,46 @@ Object.freeze({
|
|
|
103596
104112
|
form: "single",
|
|
103597
104113
|
optional: false
|
|
103598
104114
|
}],
|
|
104115
|
+
"streamParams.getStatus": [{
|
|
104116
|
+
name: "deviceId",
|
|
104117
|
+
form: "single",
|
|
104118
|
+
optional: false
|
|
104119
|
+
}],
|
|
103599
104120
|
"streamParams.setProfile": [{
|
|
103600
104121
|
name: "deviceId",
|
|
103601
104122
|
form: "single",
|
|
103602
104123
|
optional: false
|
|
103603
104124
|
}],
|
|
104125
|
+
"switch.getStatus": [{
|
|
104126
|
+
name: "deviceId",
|
|
104127
|
+
form: "single",
|
|
104128
|
+
optional: false
|
|
104129
|
+
}],
|
|
103604
104130
|
"switch.setState": [{
|
|
103605
104131
|
name: "deviceId",
|
|
103606
104132
|
form: "single",
|
|
103607
104133
|
optional: false
|
|
103608
104134
|
}],
|
|
104135
|
+
"tamper.getStatus": [{
|
|
104136
|
+
name: "deviceId",
|
|
104137
|
+
form: "single",
|
|
104138
|
+
optional: false
|
|
104139
|
+
}],
|
|
104140
|
+
"temperatureSensor.getStatus": [{
|
|
104141
|
+
name: "deviceId",
|
|
104142
|
+
form: "single",
|
|
104143
|
+
optional: false
|
|
104144
|
+
}],
|
|
104145
|
+
"update.getStatus": [{
|
|
104146
|
+
name: "deviceId",
|
|
104147
|
+
form: "single",
|
|
104148
|
+
optional: false
|
|
104149
|
+
}],
|
|
104150
|
+
"vacuumControl.getStatus": [{
|
|
104151
|
+
name: "deviceId",
|
|
104152
|
+
form: "single",
|
|
104153
|
+
optional: false
|
|
104154
|
+
}],
|
|
103609
104155
|
"vacuumControl.locate": [{
|
|
103610
104156
|
name: "deviceId",
|
|
103611
104157
|
form: "single",
|
|
@@ -103641,6 +104187,11 @@ Object.freeze({
|
|
|
103641
104187
|
form: "single",
|
|
103642
104188
|
optional: false
|
|
103643
104189
|
}],
|
|
104190
|
+
"valve.getStatus": [{
|
|
104191
|
+
name: "deviceId",
|
|
104192
|
+
form: "single",
|
|
104193
|
+
optional: false
|
|
104194
|
+
}],
|
|
103644
104195
|
"valve.open": [{
|
|
103645
104196
|
name: "deviceId",
|
|
103646
104197
|
form: "single",
|
|
@@ -103656,6 +104207,11 @@ Object.freeze({
|
|
|
103656
104207
|
form: "single",
|
|
103657
104208
|
optional: false
|
|
103658
104209
|
}],
|
|
104210
|
+
"vibration.getStatus": [{
|
|
104211
|
+
name: "deviceId",
|
|
104212
|
+
form: "single",
|
|
104213
|
+
optional: false
|
|
104214
|
+
}],
|
|
103659
104215
|
"videoclips.dialClipStream": [{
|
|
103660
104216
|
name: "deviceId",
|
|
103661
104217
|
form: "single",
|
|
@@ -103691,6 +104247,11 @@ Object.freeze({
|
|
|
103691
104247
|
form: "single",
|
|
103692
104248
|
optional: false
|
|
103693
104249
|
}],
|
|
104250
|
+
"waterHeater.getStatus": [{
|
|
104251
|
+
name: "deviceId",
|
|
104252
|
+
form: "single",
|
|
104253
|
+
optional: false
|
|
104254
|
+
}],
|
|
103694
104255
|
"waterHeater.setAway": [{
|
|
103695
104256
|
name: "deviceId",
|
|
103696
104257
|
form: "single",
|
|
@@ -103706,6 +104267,11 @@ Object.freeze({
|
|
|
103706
104267
|
form: "single",
|
|
103707
104268
|
optional: false
|
|
103708
104269
|
}],
|
|
104270
|
+
"weather.getStatus": [{
|
|
104271
|
+
name: "deviceId",
|
|
104272
|
+
form: "single",
|
|
104273
|
+
optional: false
|
|
104274
|
+
}],
|
|
103709
104275
|
"webrtcSession.addIceCandidate": [{
|
|
103710
104276
|
name: "deviceId",
|
|
103711
104277
|
form: "single",
|
|
@@ -104443,7 +105009,7 @@ var PreviewTextField = string().max(200);
|
|
|
104443
105009
|
* Whether the notification's preview is a STILL or a short animation.
|
|
104444
105010
|
*
|
|
104445
105011
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
104446
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
105012
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
104447
105013
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
104448
105014
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
104449
105015
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -104581,6 +105147,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
104581
105147
|
createdAt: number(),
|
|
104582
105148
|
updatedAt: number()
|
|
104583
105149
|
});
|
|
105150
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
104584
105151
|
object({
|
|
104585
105152
|
/**
|
|
104586
105153
|
* Fraction of the box's own size added on EACH side before cutting.
|