@camstack/addon-provider-rademacher 0.2.116 → 0.2.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +892 -325
- package/dist/addon.mjs +892 -325
- package/package.json +1 -3
package/dist/addon.js
CHANGED
|
@@ -984,7 +984,7 @@ var Rademacher = class {
|
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
//#endregion
|
|
987
|
-
//#region ../types/dist/event-category-
|
|
987
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
988
988
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
989
989
|
EventCategory["SystemBoot"] = "system.boot";
|
|
990
990
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1517,6 +1517,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1517
1517
|
*/
|
|
1518
1518
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
1519
1519
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
1520
|
+
/**
|
|
1521
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
1522
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
1523
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
1524
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
1525
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
1526
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
1527
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
1528
|
+
*/
|
|
1520
1529
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
1521
1530
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
1522
1531
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -6355,7 +6364,7 @@ var ZodIssueCode = {
|
|
|
6355
6364
|
var ZodFirstPartyTypeKind;
|
|
6356
6365
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6357
6366
|
//#endregion
|
|
6358
|
-
//#region ../types/dist/sleep-
|
|
6367
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
6359
6368
|
/**
|
|
6360
6369
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6361
6370
|
* window to float samples (D455).
|
|
@@ -8398,7 +8407,7 @@ function errMsg(err) {
|
|
|
8398
8407
|
return String(err);
|
|
8399
8408
|
}
|
|
8400
8409
|
//#endregion
|
|
8401
|
-
//#region ../types/dist/composition-
|
|
8410
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
8402
8411
|
/**
|
|
8403
8412
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8404
8413
|
*
|
|
@@ -8452,21 +8461,20 @@ function portable(target) {
|
|
|
8452
8461
|
}
|
|
8453
8462
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
8454
8463
|
/**
|
|
8455
|
-
*
|
|
8456
|
-
*
|
|
8464
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
8465
|
+
* pure evaluator of its EDGE.
|
|
8457
8466
|
*
|
|
8458
|
-
*
|
|
8459
|
-
*
|
|
8460
|
-
*
|
|
8461
|
-
*
|
|
8462
|
-
*
|
|
8463
|
-
*
|
|
8464
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
8467
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
8468
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
8469
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
8470
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
8471
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
8472
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
8465
8473
|
*
|
|
8466
|
-
* ⚠
|
|
8467
|
-
*
|
|
8468
|
-
*
|
|
8469
|
-
*
|
|
8474
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
8475
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
8476
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
8477
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
8470
8478
|
*/
|
|
8471
8479
|
/**
|
|
8472
8480
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -10075,22 +10083,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
10075
10083
|
"package"
|
|
10076
10084
|
];
|
|
10077
10085
|
/**
|
|
10078
|
-
*
|
|
10079
|
-
*
|
|
10086
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
10087
|
+
* an operator can select.
|
|
10080
10088
|
*
|
|
10081
|
-
*
|
|
10089
|
+
* They are the three offered by the `object-detection` step
|
|
10082
10090
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
10083
|
-
* `enabledMacroClasses`). `package`
|
|
10084
|
-
* `MACRO_LABELS` —
|
|
10085
|
-
* `package-detection`,
|
|
10086
|
-
*
|
|
10091
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
10092
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
10093
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
10094
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
10087
10095
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
10088
10096
|
*
|
|
10089
|
-
*
|
|
10090
|
-
*
|
|
10091
|
-
* (`types/detection.ts`);
|
|
10092
|
-
* (`RecordingTriggers.objectClasses`)
|
|
10093
|
-
*
|
|
10097
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
10098
|
+
* and a second time as the union `FirstLevelMacro`
|
|
10099
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
10100
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
10101
|
+
* invisible.
|
|
10094
10102
|
*/
|
|
10095
10103
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
10096
10104
|
"person",
|
|
@@ -10155,17 +10163,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
10155
10163
|
"on-device-decision"
|
|
10156
10164
|
]);
|
|
10157
10165
|
/**
|
|
10158
|
-
*
|
|
10159
|
-
*
|
|
10166
|
+
* The macro classes that can open a recording window — the same
|
|
10167
|
+
* three offered by the `object-detection` step, from ONE list
|
|
10160
10168
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
10161
10169
|
*/
|
|
10162
10170
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
10163
10171
|
/**
|
|
10164
|
-
* True
|
|
10172
|
+
* True when `values` does not repeat an element.
|
|
10165
10173
|
*
|
|
10166
|
-
*
|
|
10167
|
-
*
|
|
10168
|
-
*
|
|
10174
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
10175
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
10176
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
10169
10177
|
*/
|
|
10170
10178
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
10171
10179
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -10173,34 +10181,34 @@ var RecordingTriggersSchema = object({
|
|
|
10173
10181
|
motion: boolean().optional(),
|
|
10174
10182
|
audioThresholdDbfs: number().optional(),
|
|
10175
10183
|
/**
|
|
10176
|
-
*
|
|
10177
|
-
*
|
|
10178
|
-
*
|
|
10179
|
-
*
|
|
10184
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
10185
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
10186
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
10187
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
10180
10188
|
*
|
|
10181
|
-
*
|
|
10182
|
-
*
|
|
10183
|
-
* `minConfidence<Macro>`
|
|
10184
|
-
* (`source: 'onboard'`)
|
|
10185
|
-
*
|
|
10189
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
10190
|
+
* those that went through `enabledMacroClasses`, the
|
|
10191
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
10192
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
10193
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
10186
10194
|
*/
|
|
10187
10195
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
10188
10196
|
/**
|
|
10189
|
-
*
|
|
10190
|
-
*
|
|
10197
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
10198
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
10191
10199
|
* `objectClasses`.
|
|
10192
10200
|
*
|
|
10193
|
-
*
|
|
10194
|
-
*
|
|
10195
|
-
*
|
|
10196
|
-
*
|
|
10197
|
-
* device (D12) —
|
|
10201
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
10202
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
10203
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
10204
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
10205
|
+
* device (D12) — never a global list of caps.
|
|
10198
10206
|
*
|
|
10199
|
-
*
|
|
10200
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
10201
|
-
*
|
|
10202
|
-
*
|
|
10203
|
-
*
|
|
10207
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
10208
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
10209
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
10210
|
+
* the level: a contact found already open at runner restart does not
|
|
10211
|
+
* record.
|
|
10204
10212
|
*/
|
|
10205
10213
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
10206
10214
|
});
|
|
@@ -11277,7 +11285,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
11277
11285
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
11278
11286
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
11279
11287
|
* over the values is the exact defect
|
|
11280
|
-
* `docs/design/plans/2026-08-26-
|
|
11288
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
11281
11289
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
11282
11290
|
*
|
|
11283
11291
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -12988,7 +12996,7 @@ var BrokerStatusEnum = _enum([
|
|
|
12988
12996
|
"unreachable",
|
|
12989
12997
|
"error"
|
|
12990
12998
|
]);
|
|
12991
|
-
var BrokerInfoSchema
|
|
12999
|
+
var BrokerInfoSchema = object({
|
|
12992
13000
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
12993
13001
|
id: string(),
|
|
12994
13002
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -13121,7 +13129,7 @@ var GetStateInputSchema = object({
|
|
|
13121
13129
|
* HA: entity_id (returns the cached entity state). */
|
|
13122
13130
|
key: string()
|
|
13123
13131
|
});
|
|
13124
|
-
method(ListInputSchema, array(BrokerInfoSchema
|
|
13132
|
+
method(ListInputSchema, array(BrokerInfoSchema)), method(GetInputSchema, BrokerInfoSchema.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
|
|
13125
13133
|
kind: "mutation",
|
|
13126
13134
|
auth: "admin"
|
|
13127
13135
|
}), method(RemoveInputSchema, _void(), {
|
|
@@ -14832,7 +14840,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
14832
14840
|
*
|
|
14833
14841
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
14834
14842
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
14835
|
-
* (`docs/design/2026-08-26-
|
|
14843
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
14836
14844
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
14837
14845
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
14838
14846
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -15808,7 +15816,17 @@ var SiteZoneSchema = object({
|
|
|
15808
15816
|
var ProviderStatusSchema = object({
|
|
15809
15817
|
connected: boolean(),
|
|
15810
15818
|
deviceCount: number(),
|
|
15811
|
-
error: string().optional()
|
|
15819
|
+
error: string().optional(),
|
|
15820
|
+
/**
|
|
15821
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
15822
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
15823
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
15824
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
15825
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
15826
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
15827
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
15828
|
+
*/
|
|
15829
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
15812
15830
|
});
|
|
15813
15831
|
object({
|
|
15814
15832
|
externalId: string(),
|
|
@@ -16687,109 +16705,10 @@ method(object({
|
|
|
16687
16705
|
deviceIds: array(number()).readonly(),
|
|
16688
16706
|
caps: array(string()).readonly().optional()
|
|
16689
16707
|
}), record(string(), record(string(), unknown().nullable())));
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
* name (same pattern as `snapshot`):
|
|
16693
|
-
*
|
|
16694
|
-
* - **Native** providers: registered per-device by device-driver
|
|
16695
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
16696
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
16697
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
16698
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
16699
|
-
* ring; status tracks the last press and a pressCount since start
|
|
16700
|
-
* (diagnostic).
|
|
16701
|
-
*
|
|
16702
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
16703
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
16704
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
16705
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
16706
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
16707
|
-
* device + trigger in the per-device settings.
|
|
16708
|
-
*
|
|
16709
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
16710
|
-
* — subscribers listening at the camera level receive ring events
|
|
16711
|
-
* with `via[]` populated. No code on the parent needed.
|
|
16712
|
-
*/
|
|
16713
|
-
var DoorbellStatusSchema = object({
|
|
16714
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16715
|
-
lastPressedAt: number().nullable(),
|
|
16716
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16717
|
-
pressCountSinceStart: number()
|
|
16718
|
-
});
|
|
16719
|
-
var DoorbellPressEventSchema = object({
|
|
16720
|
-
deviceId: number(),
|
|
16721
|
-
timestamp: number()
|
|
16722
|
-
});
|
|
16723
|
-
/**
|
|
16724
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16725
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16726
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16727
|
-
*/
|
|
16728
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16729
|
-
/**
|
|
16730
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
16731
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
16732
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
16733
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
16734
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
16735
|
-
* reports it, it never writes it.
|
|
16736
|
-
*/
|
|
16737
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
16738
|
-
id: "doorbell-source",
|
|
16739
|
-
label: "Doorbell trigger devices",
|
|
16740
|
-
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.",
|
|
16741
|
-
shape: "association",
|
|
16742
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
16743
|
-
sourceCaps: SOURCE_CAPS,
|
|
16744
|
-
cardinality: "many",
|
|
16745
|
-
value: DoorbellSourceSlotValueSchema
|
|
16746
|
-
};
|
|
16747
|
-
var doorbellCapability = {
|
|
16748
|
-
name: "doorbell",
|
|
16749
|
-
scope: "device",
|
|
16750
|
-
deviceNative: true,
|
|
16751
|
-
mode: "singleton",
|
|
16752
|
-
kind: "wrapper",
|
|
16753
|
-
defaultActive: false,
|
|
16754
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
16755
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
16756
|
-
methods: {},
|
|
16757
|
-
events: {
|
|
16758
|
-
/**
|
|
16759
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
16760
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
16761
|
-
* release/duration — it's a pulse.
|
|
16762
|
-
*/
|
|
16763
|
-
onPressed: {
|
|
16764
|
-
data: DoorbellPressEventSchema,
|
|
16765
|
-
fromState: {
|
|
16766
|
-
field: "lastPressedAt",
|
|
16767
|
-
on: "advance"
|
|
16768
|
-
}
|
|
16769
|
-
} },
|
|
16770
|
-
status: {
|
|
16771
|
-
schema: DoorbellStatusSchema,
|
|
16772
|
-
kind: "push"
|
|
16773
|
-
},
|
|
16774
|
-
/**
|
|
16775
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
16776
|
-
* Mirrored by the kernel and readable via
|
|
16777
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
16778
|
-
* without subscribing.
|
|
16779
|
-
*/
|
|
16780
|
-
runtimeState: DoorbellStatusSchema,
|
|
16781
|
-
/**
|
|
16782
|
-
* 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.
|
|
16783
|
-
*
|
|
16784
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
16785
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
16786
|
-
*/
|
|
16787
|
-
durability: "restored"
|
|
16788
|
-
};
|
|
16789
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16790
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
16708
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
16709
|
+
DeviceType.Camera;
|
|
16791
16710
|
/** A slot's editable value, discriminated on `slot`. */
|
|
16792
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
16711
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16793
16712
|
DeviceType.Camera;
|
|
16794
16713
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16795
16714
|
state: literal("unreachable"),
|
|
@@ -16826,10 +16745,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
16826
16745
|
});
|
|
16827
16746
|
/**
|
|
16828
16747
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16829
|
-
* reported read-only, named, never written through this contract (D62).
|
|
16830
|
-
*
|
|
16831
|
-
*
|
|
16832
|
-
* `unknown` means the gate could
|
|
16748
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
16749
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
16750
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
16751
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
16752
|
+
* not be read; it is not "inactive" (D315).
|
|
16833
16753
|
*/
|
|
16834
16754
|
var ExtensionSlotActivationSchema = object({
|
|
16835
16755
|
state: _enum([
|
|
@@ -16845,7 +16765,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
16845
16765
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16846
16766
|
slotRef: string(),
|
|
16847
16767
|
slot: ExtensionSlotIdSchema,
|
|
16848
|
-
/** Names the store written (D62), e.g. `
|
|
16768
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
16849
16769
|
authority: string(),
|
|
16850
16770
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16851
16771
|
value: ExtensionSlotValueSchema,
|
|
@@ -17123,7 +17043,7 @@ method(object({
|
|
|
17123
17043
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
17124
17044
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
17125
17045
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
17126
|
-
* ricontrolliamo tutti questi punti"
|
|
17046
|
+
* 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
|
|
17127
17047
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
17128
17048
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
17129
17049
|
* be READ.
|
|
@@ -18499,7 +18419,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
18499
18419
|
"unreachable",
|
|
18500
18420
|
"tls-error"
|
|
18501
18421
|
]);
|
|
18502
|
-
var BrokerInfoSchema = object({
|
|
18422
|
+
var BrokerInfoSchema$1 = object({
|
|
18503
18423
|
id: string(),
|
|
18504
18424
|
name: string(),
|
|
18505
18425
|
url: string(),
|
|
@@ -18562,7 +18482,7 @@ var StatusSchema = object({
|
|
|
18562
18482
|
brokerCount: number(),
|
|
18563
18483
|
embeddedRunning: boolean()
|
|
18564
18484
|
});
|
|
18565
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
18485
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
18566
18486
|
kind: "mutation",
|
|
18567
18487
|
auth: "admin"
|
|
18568
18488
|
}), method(IdInputSchema, _void(), {
|
|
@@ -20776,78 +20696,16 @@ var NcRuleInputSchema = object({
|
|
|
20776
20696
|
*/
|
|
20777
20697
|
confirm: NcConfirmSchema.optional(),
|
|
20778
20698
|
/**
|
|
20779
|
-
*
|
|
20780
|
-
*
|
|
20781
|
-
*
|
|
20782
|
-
*
|
|
20783
|
-
*
|
|
20784
|
-
*
|
|
20785
|
-
*
|
|
20786
|
-
*
|
|
20787
|
-
*
|
|
20788
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
20789
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
20790
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
20791
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
20792
|
-
*
|
|
20793
|
-
* | value | what happens |
|
|
20794
|
-
* | --- | --- |
|
|
20795
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
20796
|
-
* | 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) |
|
|
20797
|
-
*
|
|
20798
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
20799
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
20800
|
-
* rule authored before this field meant.
|
|
20801
|
-
*
|
|
20802
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
20803
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
20804
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
20805
|
-
* be satisfied, because a closed track carries no crossing.
|
|
20699
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
20700
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
20701
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
20702
|
+
* the rule matched, with one mosaic tile per subject.
|
|
20703
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
20704
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
20705
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
20706
|
+
* path does not run Zod defaults.
|
|
20806
20707
|
*/
|
|
20807
|
-
|
|
20808
|
-
/**
|
|
20809
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
20810
|
-
*
|
|
20811
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
20812
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
20813
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
20814
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
20815
|
-
* notification with an updated one naming everybody. The push carries the
|
|
20816
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
20817
|
-
*
|
|
20818
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
20819
|
-
*
|
|
20820
|
-
* ### Why an idle cutoff and not a window
|
|
20821
|
-
*
|
|
20822
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
20823
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
20824
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
20825
|
-
* 30 s is a widely shipped value for the same decision.
|
|
20826
|
-
*
|
|
20827
|
-
* ### What it replaces
|
|
20828
|
-
*
|
|
20829
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
20830
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
20831
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
20832
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
20833
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
20834
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
20835
|
-
* throttled by the window its own first member spent.
|
|
20836
|
-
*
|
|
20837
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
20838
|
-
*
|
|
20839
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
20840
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
20841
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
20842
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
20843
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
20844
|
-
* path. Neither combination fires twice for one subject.
|
|
20845
|
-
*
|
|
20846
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
20847
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
20848
|
-
* field existed.
|
|
20849
|
-
*/
|
|
20850
|
-
groupIdleSec: number().int().min(0).max(600).optional()
|
|
20708
|
+
groupingSec: number().int().min(5).max(60).optional()
|
|
20851
20709
|
});
|
|
20852
20710
|
/**
|
|
20853
20711
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -20895,9 +20753,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
20895
20753
|
"targetUsers",
|
|
20896
20754
|
"snoozeOptions",
|
|
20897
20755
|
"snoozeAllowGlobal",
|
|
20898
|
-
"waitForEnhancement",
|
|
20899
20756
|
"actions",
|
|
20900
20757
|
"confirm",
|
|
20758
|
+
"groupingSec",
|
|
20759
|
+
"waitForEnhancement",
|
|
20901
20760
|
"groupIdleSec"
|
|
20902
20761
|
]);
|
|
20903
20762
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -20919,9 +20778,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
20919
20778
|
*/
|
|
20920
20779
|
disabledTargetIds: array(string()).default([])
|
|
20921
20780
|
});
|
|
20781
|
+
/**
|
|
20782
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
20783
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
20784
|
+
* job is not an open state, and the alarm stays instant.
|
|
20785
|
+
*/
|
|
20786
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
20787
|
+
"device-state",
|
|
20788
|
+
"streams",
|
|
20789
|
+
"battery",
|
|
20790
|
+
"consumables",
|
|
20791
|
+
"tanks",
|
|
20792
|
+
"detection-blind",
|
|
20793
|
+
"nodes",
|
|
20794
|
+
"addons",
|
|
20795
|
+
"updates"
|
|
20796
|
+
]);
|
|
20922
20797
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
20923
20798
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
20924
|
-
id:
|
|
20799
|
+
id: NcStateSummarySectionIdSchema,
|
|
20925
20800
|
status: _enum(["read", "unavailable"]),
|
|
20926
20801
|
items: number().int().nonnegative(),
|
|
20927
20802
|
reason: string().optional()
|
|
@@ -20931,7 +20806,7 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
20931
20806
|
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20932
20807
|
*/
|
|
20933
20808
|
var NcStateSummaryPreviewRowSchema = object({
|
|
20934
|
-
section:
|
|
20809
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
20935
20810
|
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20936
20811
|
title: string(),
|
|
20937
20812
|
text: string(),
|
|
@@ -21368,6 +21243,29 @@ object({
|
|
|
21368
21243
|
firstAt: number(),
|
|
21369
21244
|
lastAt: number()
|
|
21370
21245
|
});
|
|
21246
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
21247
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
21248
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
21249
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
21250
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
21251
|
+
mode: AlarmArmModeSchema,
|
|
21252
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
21253
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
21254
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
21255
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
21256
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
21257
|
+
mode: AlarmArmModeSchema,
|
|
21258
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
21259
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
21260
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
21261
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
21262
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
21263
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
21264
|
+
mode: AlarmArmModeSchema,
|
|
21265
|
+
deviceId: number().int().positive(),
|
|
21266
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
21267
|
+
nonBlocking: boolean()
|
|
21268
|
+
});
|
|
21371
21269
|
/**
|
|
21372
21270
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
21373
21271
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -21376,10 +21274,10 @@ object({
|
|
|
21376
21274
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
21377
21275
|
mode: AlarmArmModeSchema,
|
|
21378
21276
|
deviceIds: array(number().int()).max(200)
|
|
21379
|
-
})).max(8).refine(
|
|
21277
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
21380
21278
|
/**
|
|
21381
|
-
* The three durations
|
|
21382
|
-
* transitions, and which openings each mode tolerates.
|
|
21279
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
21280
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
21383
21281
|
*
|
|
21384
21282
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
21385
21283
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -21389,15 +21287,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
21389
21287
|
*/
|
|
21390
21288
|
var NcAlarmSettingsSchema = object({
|
|
21391
21289
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
21392
|
-
exitDelaySec:
|
|
21290
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
21393
21291
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
21394
|
-
entryDelaySec:
|
|
21292
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
21395
21293
|
/**
|
|
21396
21294
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
21397
21295
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
21398
21296
|
* existed, and therefore what an untouched install keeps doing.
|
|
21399
21297
|
*/
|
|
21400
|
-
triggeredDurationSec:
|
|
21298
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
21401
21299
|
/**
|
|
21402
21300
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
21403
21301
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -21420,17 +21318,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
21420
21318
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
21421
21319
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
21422
21320
|
*/
|
|
21423
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
21321
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
21322
|
+
/**
|
|
21323
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
21324
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
21325
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
21326
|
+
*/
|
|
21327
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
21424
21328
|
});
|
|
21425
21329
|
/**
|
|
21426
21330
|
* Every field optional — a tab edits one control at a time.
|
|
21427
21331
|
*
|
|
21428
|
-
* `nonBlocking`
|
|
21429
|
-
* remove an inner `.default()`, so a patch that never
|
|
21430
|
-
* parse to `
|
|
21431
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
21332
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
21333
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
21334
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
21335
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
21336
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
21432
21337
|
*/
|
|
21433
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
21338
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
21339
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
21340
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
21341
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
21342
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
21343
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
21344
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
21434
21345
|
/**
|
|
21435
21346
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
21436
21347
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -21530,6 +21441,28 @@ var NcAlarmConfigSchema = object({
|
|
|
21530
21441
|
*/
|
|
21531
21442
|
live: NcAlarmLiveSchema.optional()
|
|
21532
21443
|
});
|
|
21444
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
21445
|
+
"open",
|
|
21446
|
+
"closed",
|
|
21447
|
+
"unknown",
|
|
21448
|
+
"not-opening"
|
|
21449
|
+
]);
|
|
21450
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
21451
|
+
var NcAlarmSensorStateSchema = object({
|
|
21452
|
+
deviceId: number().int().positive(),
|
|
21453
|
+
reading: NcAlarmSensorReadingSchema,
|
|
21454
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
21455
|
+
state: string().nullable(),
|
|
21456
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
21457
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
21458
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
21459
|
+
online: boolean().nullable()
|
|
21460
|
+
});
|
|
21461
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
21462
|
+
var NcAlarmSensorsSchema = object({
|
|
21463
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
21464
|
+
readAt: number().int().nonnegative()
|
|
21465
|
+
});
|
|
21533
21466
|
/**
|
|
21534
21467
|
* ONE rule's demand on ONE camera's clip ring.
|
|
21535
21468
|
*
|
|
@@ -21620,7 +21553,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
21620
21553
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
21621
21554
|
kind: "mutation",
|
|
21622
21555
|
auth: "admin"
|
|
21623
|
-
});
|
|
21556
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
21624
21557
|
/**
|
|
21625
21558
|
* Zod schemas for persisted record types.
|
|
21626
21559
|
*
|
|
@@ -21967,12 +21900,26 @@ var CameraSensorRefSchema = object({
|
|
|
21967
21900
|
function cameraSensorRefKey(ref) {
|
|
21968
21901
|
return `${ref.addonId}/${ref.stableId}`;
|
|
21969
21902
|
}
|
|
21970
|
-
/**
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
|
|
21974
|
-
|
|
21975
|
-
|
|
21903
|
+
/**
|
|
21904
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
21905
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
21906
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
21907
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
21908
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
21909
|
+
*/
|
|
21910
|
+
var CameraSensorModeSchema = _enum([
|
|
21911
|
+
"in-addition",
|
|
21912
|
+
"confirm",
|
|
21913
|
+
"replace"
|
|
21914
|
+
]);
|
|
21915
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
21916
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
21917
|
+
/**
|
|
21918
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
21919
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
21920
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
21921
|
+
*/
|
|
21922
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
21976
21923
|
const seen = /* @__PURE__ */ new Set();
|
|
21977
21924
|
value.sensors.forEach((ref, index) => {
|
|
21978
21925
|
const key = cameraSensorRefKey(ref);
|
|
@@ -21984,39 +21931,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
21984
21931
|
seen.add(key);
|
|
21985
21932
|
});
|
|
21986
21933
|
});
|
|
21987
|
-
|
|
21934
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
21935
|
+
var AttachmentFields = {
|
|
21988
21936
|
addonId: string(),
|
|
21989
|
-
stableId: string()
|
|
21937
|
+
stableId: string(),
|
|
21938
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
21990
21939
|
};
|
|
21991
21940
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
21992
21941
|
object({
|
|
21993
|
-
...
|
|
21942
|
+
...AttachmentFields,
|
|
21994
21943
|
state: literal("ready"),
|
|
21995
21944
|
deviceId: number(),
|
|
21996
21945
|
name: string(),
|
|
21997
21946
|
caps: array(string()).readonly()
|
|
21998
21947
|
}),
|
|
21999
21948
|
object({
|
|
22000
|
-
...
|
|
21949
|
+
...AttachmentFields,
|
|
22001
21950
|
state: literal("offline"),
|
|
22002
21951
|
deviceId: number(),
|
|
22003
21952
|
name: string(),
|
|
22004
21953
|
reason: _enum(["offline", "disabled"])
|
|
22005
21954
|
}),
|
|
22006
21955
|
object({
|
|
22007
|
-
...
|
|
21956
|
+
...AttachmentFields,
|
|
22008
21957
|
state: literal("missing"),
|
|
22009
21958
|
reason: string()
|
|
22010
21959
|
}),
|
|
22011
21960
|
object({
|
|
22012
|
-
...
|
|
21961
|
+
...AttachmentFields,
|
|
22013
21962
|
state: literal("unsupported"),
|
|
22014
21963
|
deviceId: number(),
|
|
22015
21964
|
name: string(),
|
|
22016
21965
|
reason: string()
|
|
22017
21966
|
}),
|
|
22018
21967
|
object({
|
|
22019
|
-
...
|
|
21968
|
+
...AttachmentFields,
|
|
22020
21969
|
state: literal("unreadable"),
|
|
22021
21970
|
reason: string()
|
|
22022
21971
|
})
|
|
@@ -22029,17 +21978,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
22029
21978
|
* say.
|
|
22030
21979
|
*/
|
|
22031
21980
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
21981
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
21982
|
+
var CameraOwnMotionSchema = _enum([
|
|
21983
|
+
"always",
|
|
21984
|
+
"when-confirmed",
|
|
21985
|
+
"never"
|
|
21986
|
+
]);
|
|
21987
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
21988
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
21989
|
+
/**
|
|
21990
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
21991
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
21992
|
+
* so a view of the camera's own row reads this.
|
|
21993
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
21994
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
21995
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
21996
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
21997
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
21998
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
21999
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
22000
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
22001
|
+
*/
|
|
22002
|
+
var CameraRawLevelSchema = object({
|
|
22003
|
+
detected: boolean(),
|
|
22004
|
+
atMs: number()
|
|
22005
|
+
});
|
|
22032
22006
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
22033
|
-
object({
|
|
22007
|
+
object({
|
|
22008
|
+
state: literal("not-configured"),
|
|
22009
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
22010
|
+
}),
|
|
22034
22011
|
object({
|
|
22035
22012
|
state: literal("unreadable"),
|
|
22036
|
-
reason: string()
|
|
22013
|
+
reason: string(),
|
|
22014
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
22037
22015
|
}),
|
|
22038
22016
|
object({
|
|
22039
22017
|
state: literal("configured"),
|
|
22040
|
-
|
|
22018
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
22041
22019
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
22042
|
-
|
|
22020
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
22021
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
22022
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
22023
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
22043
22024
|
})
|
|
22044
22025
|
]);
|
|
22045
22026
|
Object.freeze({
|
|
@@ -22724,14 +22705,14 @@ var TrackSchema = object({
|
|
|
22724
22705
|
* `derive-returned-null tile=standin`,
|
|
22725
22706
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
22726
22707
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
22727
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
22708
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
22728
22709
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
22729
22710
|
*
|
|
22730
22711
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
22731
22712
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
22732
22713
|
* while its key frame missed carried no reason at all — three of the four
|
|
22733
22714
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
22734
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
22715
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
22735
22716
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
22736
22717
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
22737
22718
|
* tile ended up being.
|
|
@@ -22818,7 +22799,7 @@ var MotionEventSchema = object({
|
|
|
22818
22799
|
/**
|
|
22819
22800
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
22820
22801
|
* first entry is always `0`) of every genuine off→on transition the
|
|
22821
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
22802
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
22822
22803
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
22823
22804
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
22824
22805
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -23342,6 +23323,7 @@ var KeyEventSchema = object({
|
|
|
23342
23323
|
bestEventId: string(),
|
|
23343
23324
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
23344
23325
|
windowMs: number().optional(),
|
|
23326
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
23345
23327
|
...TrackFlagFields,
|
|
23346
23328
|
...TrackRetrainFields
|
|
23347
23329
|
});
|
|
@@ -25270,8 +25252,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
25270
25252
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
25271
25253
|
* analyzer providers) running on decoded frames in this runner.
|
|
25272
25254
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
25273
|
-
* analytics). The provider emits ProviderMotion
|
|
25274
|
-
*
|
|
25255
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
25256
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
25257
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
25258
|
+
* `reportMotion`.
|
|
25275
25259
|
*/
|
|
25276
25260
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
25277
25261
|
/**
|
|
@@ -25448,7 +25432,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
25448
25432
|
hasGpu: boolean(),
|
|
25449
25433
|
inferenceBackend: string().optional(),
|
|
25450
25434
|
cpuCores: number().optional()
|
|
25451
|
-
})
|
|
25435
|
+
}),
|
|
25436
|
+
/**
|
|
25437
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
25438
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
25439
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
25440
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
25441
|
+
* writers.
|
|
25442
|
+
*/
|
|
25443
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
25452
25444
|
});
|
|
25453
25445
|
/**
|
|
25454
25446
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -28113,7 +28105,7 @@ var ClipPlaybackSchema = object({
|
|
|
28113
28105
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
28114
28106
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
28115
28107
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
28116
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
28108
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
28117
28109
|
* D558 "Considered and not taken").
|
|
28118
28110
|
*/
|
|
28119
28111
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -28374,7 +28366,7 @@ DeviceType.Camera, method(object({
|
|
|
28374
28366
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
28375
28367
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
28376
28368
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
28377
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
28369
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
28378
28370
|
* nothing to filter out of it.
|
|
28379
28371
|
*/
|
|
28380
28372
|
provider: string().min(1)
|
|
@@ -30969,6 +30961,70 @@ onStatusChanged: { data: object({
|
|
|
30969
30961
|
* whether persisting is worth a SQLite commit. */
|
|
30970
30962
|
volatileStateFields: ["lastChangedAt"]
|
|
30971
30963
|
};
|
|
30964
|
+
var DoorbellStatusSchema = object({
|
|
30965
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
30966
|
+
lastPressedAt: number().nullable(),
|
|
30967
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
30968
|
+
pressCountSinceStart: number()
|
|
30969
|
+
});
|
|
30970
|
+
var DoorbellPressEventSchema = object({
|
|
30971
|
+
deviceId: number(),
|
|
30972
|
+
timestamp: number()
|
|
30973
|
+
});
|
|
30974
|
+
/**
|
|
30975
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
30976
|
+
* they are the same cap:
|
|
30977
|
+
*
|
|
30978
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
30979
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
30980
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
30981
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
30982
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
30983
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
30984
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
30985
|
+
* from that field's advance (`fromState`).
|
|
30986
|
+
*
|
|
30987
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
30988
|
+
*/
|
|
30989
|
+
var doorbellCapability = {
|
|
30990
|
+
name: "doorbell",
|
|
30991
|
+
scope: "device",
|
|
30992
|
+
deviceNative: true,
|
|
30993
|
+
mode: "singleton",
|
|
30994
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
30995
|
+
methods: {},
|
|
30996
|
+
events: {
|
|
30997
|
+
/**
|
|
30998
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
30999
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
31000
|
+
* release/duration — it's a pulse.
|
|
31001
|
+
*/
|
|
31002
|
+
onPressed: {
|
|
31003
|
+
data: DoorbellPressEventSchema,
|
|
31004
|
+
fromState: {
|
|
31005
|
+
field: "lastPressedAt",
|
|
31006
|
+
on: "advance"
|
|
31007
|
+
}
|
|
31008
|
+
} },
|
|
31009
|
+
status: {
|
|
31010
|
+
schema: DoorbellStatusSchema,
|
|
31011
|
+
kind: "push"
|
|
31012
|
+
},
|
|
31013
|
+
/**
|
|
31014
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
31015
|
+
* Mirrored by the kernel and readable via
|
|
31016
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
31017
|
+
* without subscribing.
|
|
31018
|
+
*/
|
|
31019
|
+
runtimeState: DoorbellStatusSchema,
|
|
31020
|
+
/**
|
|
31021
|
+
* 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.
|
|
31022
|
+
*
|
|
31023
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31024
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31025
|
+
*/
|
|
31026
|
+
durability: "restored"
|
|
31027
|
+
};
|
|
30972
31028
|
/**
|
|
30973
31029
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
30974
31030
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -33113,9 +33169,9 @@ var MotionStatusSchema = object({
|
|
|
33113
33169
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
33114
33170
|
lastDetectedAt: number().nullable(),
|
|
33115
33171
|
/**
|
|
33116
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
33117
|
-
* `null` while false and on every `Sensor`
|
|
33118
|
-
* constant's doc for the one-authority rule.
|
|
33172
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
33173
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
33174
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
33119
33175
|
*
|
|
33120
33176
|
* ## Reading this field still arms nothing
|
|
33121
33177
|
*
|
|
@@ -33133,34 +33189,31 @@ var MotionStatusSchema = object({
|
|
|
33133
33189
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
33134
33190
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
33135
33191
|
*
|
|
33136
|
-
* ## Who writes it
|
|
33137
|
-
*
|
|
33138
|
-
* - **Cameras** — the
|
|
33139
|
-
*
|
|
33140
|
-
* `
|
|
33141
|
-
* `
|
|
33142
|
-
*
|
|
33143
|
-
*
|
|
33144
|
-
* a
|
|
33145
|
-
*
|
|
33146
|
-
*
|
|
33147
|
-
*
|
|
33148
|
-
*
|
|
33149
|
-
*
|
|
33150
|
-
*
|
|
33151
|
-
*
|
|
33152
|
-
*
|
|
33153
|
-
*
|
|
33154
|
-
* `
|
|
33155
|
-
*
|
|
33156
|
-
*
|
|
33157
|
-
*
|
|
33158
|
-
*
|
|
33159
|
-
*
|
|
33160
|
-
*
|
|
33161
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
33162
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
33163
|
-
* "sole writer" wording without also removing the other writers.
|
|
33192
|
+
* ## Who writes it (D696)
|
|
33193
|
+
*
|
|
33194
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
33195
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
33196
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
33197
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
33198
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
33199
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
33200
|
+
* that never sends a clear falls one window after its last `true`.
|
|
33201
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
33202
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
33203
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
33204
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
33205
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
33206
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
33207
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
33208
|
+
* system's own state change. That is the sensor's own fact.
|
|
33209
|
+
*
|
|
33210
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
33211
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
33212
|
+
*
|
|
33213
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
33214
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
33215
|
+
* it, every provider seeded it at boot, and every session left it
|
|
33216
|
+
* `detected: true` after its detach.
|
|
33164
33217
|
*/
|
|
33165
33218
|
autoClearAfterMs: number().nullable()
|
|
33166
33219
|
});
|
|
@@ -33232,11 +33285,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
33232
33285
|
*/
|
|
33233
33286
|
runtimeState: MotionStatusSchema,
|
|
33234
33287
|
/**
|
|
33235
|
-
* Runtime-state durability: **session** —
|
|
33288
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
33236
33289
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
33237
33290
|
* frozen until the next one instead of being corrected. The next edge
|
|
33238
|
-
* re-publishes the real state
|
|
33239
|
-
*
|
|
33291
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
33292
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
33293
|
+
* `autoClearAfterMs` above).
|
|
33240
33294
|
*
|
|
33241
33295
|
* See `RuntimeStateDurability`. Enforced by
|
|
33242
33296
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -35619,8 +35673,7 @@ var ptzAutotrackCapability = {
|
|
|
35619
35673
|
deviceNative: true,
|
|
35620
35674
|
mode: "singleton",
|
|
35621
35675
|
/**
|
|
35622
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
35623
|
-
* `doorbell` use:
|
|
35676
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
35624
35677
|
*
|
|
35625
35678
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
35626
35679
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -35628,7 +35681,7 @@ var ptzAutotrackCapability = {
|
|
|
35628
35681
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
35629
35682
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
35630
35683
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
35631
|
-
* the bindings UI
|
|
35684
|
+
* the bindings UI.
|
|
35632
35685
|
*
|
|
35633
35686
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
35634
35687
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -36303,7 +36356,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
36303
36356
|
/**
|
|
36304
36357
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
36305
36358
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
36306
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
36359
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
36307
36360
|
* a replay needs several seconds of native pixels, not one frame.
|
|
36308
36361
|
*
|
|
36309
36362
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -39667,6 +39720,7 @@ var zoneRulesCapability = {
|
|
|
39667
39720
|
*/
|
|
39668
39721
|
durability: "restored"
|
|
39669
39722
|
};
|
|
39723
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39670
39724
|
/**
|
|
39671
39725
|
* Accessory device helpers — shared across drivers.
|
|
39672
39726
|
*
|
|
@@ -40726,13 +40780,14 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
40726
40780
|
async getStatus() {
|
|
40727
40781
|
const all = await this.ctx.kernel.devices?.getAll() ?? [];
|
|
40728
40782
|
const summary = this.restoreFailureSummary();
|
|
40729
|
-
|
|
40783
|
+
const base = {
|
|
40730
40784
|
connected: true,
|
|
40731
|
-
deviceCount: all.length
|
|
40785
|
+
deviceCount: all.length,
|
|
40786
|
+
motionSliceWriter: "orchestrator"
|
|
40732
40787
|
};
|
|
40788
|
+
if (summary === null) return base;
|
|
40733
40789
|
return {
|
|
40734
|
-
|
|
40735
|
-
deviceCount: all.length,
|
|
40790
|
+
...base,
|
|
40736
40791
|
error: summary
|
|
40737
40792
|
};
|
|
40738
40793
|
}
|
|
@@ -46168,6 +46223,12 @@ Object.freeze({
|
|
|
46168
46223
|
addonId: null,
|
|
46169
46224
|
access: "view"
|
|
46170
46225
|
},
|
|
46226
|
+
"notificationRules.getAlarmSensors": {
|
|
46227
|
+
capName: "notification-rules",
|
|
46228
|
+
capScope: "system",
|
|
46229
|
+
addonId: null,
|
|
46230
|
+
access: "view"
|
|
46231
|
+
},
|
|
46171
46232
|
"notificationRules.getClipRetentionAsks": {
|
|
46172
46233
|
capName: "notification-rules",
|
|
46173
46234
|
capScope: "system",
|
|
@@ -49746,6 +49807,11 @@ Object.freeze({
|
|
|
49746
49807
|
}
|
|
49747
49808
|
});
|
|
49748
49809
|
Object.freeze({
|
|
49810
|
+
"accessories.getStatus": [{
|
|
49811
|
+
name: "deviceId",
|
|
49812
|
+
form: "single",
|
|
49813
|
+
optional: false
|
|
49814
|
+
}],
|
|
49749
49815
|
"accessories.setChildHidden": [{
|
|
49750
49816
|
name: "childDeviceId",
|
|
49751
49817
|
form: "single",
|
|
@@ -49765,6 +49831,11 @@ Object.freeze({
|
|
|
49765
49831
|
form: "single",
|
|
49766
49832
|
optional: false
|
|
49767
49833
|
}],
|
|
49834
|
+
"airQualitySensor.getStatus": [{
|
|
49835
|
+
name: "deviceId",
|
|
49836
|
+
form: "single",
|
|
49837
|
+
optional: false
|
|
49838
|
+
}],
|
|
49768
49839
|
"alarmPanel.arm": [{
|
|
49769
49840
|
name: "deviceId",
|
|
49770
49841
|
form: "single",
|
|
@@ -49775,11 +49846,36 @@ Object.freeze({
|
|
|
49775
49846
|
form: "single",
|
|
49776
49847
|
optional: false
|
|
49777
49848
|
}],
|
|
49849
|
+
"alarmPanel.getStatus": [{
|
|
49850
|
+
name: "deviceId",
|
|
49851
|
+
form: "single",
|
|
49852
|
+
optional: false
|
|
49853
|
+
}],
|
|
49778
49854
|
"alarmPanel.trigger": [{
|
|
49779
49855
|
name: "deviceId",
|
|
49780
49856
|
form: "single",
|
|
49781
49857
|
optional: false
|
|
49782
49858
|
}],
|
|
49859
|
+
"ambientLightSensor.getStatus": [{
|
|
49860
|
+
name: "deviceId",
|
|
49861
|
+
form: "single",
|
|
49862
|
+
optional: false
|
|
49863
|
+
}],
|
|
49864
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
49865
|
+
name: "deviceId",
|
|
49866
|
+
form: "single",
|
|
49867
|
+
optional: false
|
|
49868
|
+
}],
|
|
49869
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
49870
|
+
name: "deviceId",
|
|
49871
|
+
form: "single",
|
|
49872
|
+
optional: false
|
|
49873
|
+
}],
|
|
49874
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
49875
|
+
name: "deviceId",
|
|
49876
|
+
form: "single",
|
|
49877
|
+
optional: false
|
|
49878
|
+
}],
|
|
49783
49879
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
49784
49880
|
name: "deviceId",
|
|
49785
49881
|
form: "single",
|
|
@@ -49820,16 +49916,36 @@ Object.freeze({
|
|
|
49820
49916
|
form: "single",
|
|
49821
49917
|
optional: false
|
|
49822
49918
|
}],
|
|
49919
|
+
"automationControl.getStatus": [{
|
|
49920
|
+
name: "deviceId",
|
|
49921
|
+
form: "single",
|
|
49922
|
+
optional: false
|
|
49923
|
+
}],
|
|
49823
49924
|
"automationControl.trigger": [{
|
|
49824
49925
|
name: "deviceId",
|
|
49825
49926
|
form: "single",
|
|
49826
49927
|
optional: false
|
|
49827
49928
|
}],
|
|
49929
|
+
"battery.getStatus": [{
|
|
49930
|
+
name: "deviceId",
|
|
49931
|
+
form: "single",
|
|
49932
|
+
optional: false
|
|
49933
|
+
}],
|
|
49828
49934
|
"battery.wakeForStream": [{
|
|
49829
49935
|
name: "deviceId",
|
|
49830
49936
|
form: "single",
|
|
49831
49937
|
optional: false
|
|
49832
49938
|
}],
|
|
49939
|
+
"binary.getStatus": [{
|
|
49940
|
+
name: "deviceId",
|
|
49941
|
+
form: "single",
|
|
49942
|
+
optional: false
|
|
49943
|
+
}],
|
|
49944
|
+
"brightness.getStatus": [{
|
|
49945
|
+
name: "deviceId",
|
|
49946
|
+
form: "single",
|
|
49947
|
+
optional: false
|
|
49948
|
+
}],
|
|
49833
49949
|
"brightness.setBrightness": [{
|
|
49834
49950
|
name: "deviceId",
|
|
49835
49951
|
form: "single",
|
|
@@ -49845,6 +49961,26 @@ Object.freeze({
|
|
|
49845
49961
|
form: "single",
|
|
49846
49962
|
optional: false
|
|
49847
49963
|
}],
|
|
49964
|
+
"cameraCredentials.getStatus": [{
|
|
49965
|
+
name: "deviceId",
|
|
49966
|
+
form: "single",
|
|
49967
|
+
optional: false
|
|
49968
|
+
}],
|
|
49969
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
49970
|
+
name: "deviceId",
|
|
49971
|
+
form: "single",
|
|
49972
|
+
optional: false
|
|
49973
|
+
}],
|
|
49974
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
49975
|
+
name: "deviceId",
|
|
49976
|
+
form: "single",
|
|
49977
|
+
optional: false
|
|
49978
|
+
}],
|
|
49979
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
49980
|
+
name: "deviceId",
|
|
49981
|
+
form: "single",
|
|
49982
|
+
optional: false
|
|
49983
|
+
}],
|
|
49848
49984
|
"cameraGridLayout.getLayout": [{
|
|
49849
49985
|
name: "deviceId",
|
|
49850
49986
|
form: "single",
|
|
@@ -49860,6 +49996,21 @@ Object.freeze({
|
|
|
49860
49996
|
form: "single",
|
|
49861
49997
|
optional: false
|
|
49862
49998
|
}],
|
|
49999
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
50000
|
+
name: "deviceId",
|
|
50001
|
+
form: "single",
|
|
50002
|
+
optional: false
|
|
50003
|
+
}],
|
|
50004
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
50005
|
+
name: "deviceId",
|
|
50006
|
+
form: "single",
|
|
50007
|
+
optional: false
|
|
50008
|
+
}],
|
|
50009
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
50010
|
+
name: "deviceId",
|
|
50011
|
+
form: "single",
|
|
50012
|
+
optional: false
|
|
50013
|
+
}],
|
|
49863
50014
|
"cameraStreams.getBrokerStreams": [{
|
|
49864
50015
|
name: "deviceId",
|
|
49865
50016
|
form: "single",
|
|
@@ -49885,6 +50036,16 @@ Object.freeze({
|
|
|
49885
50036
|
form: "single",
|
|
49886
50037
|
optional: false
|
|
49887
50038
|
}],
|
|
50039
|
+
"carbonMonoxide.getStatus": [{
|
|
50040
|
+
name: "deviceId",
|
|
50041
|
+
form: "single",
|
|
50042
|
+
optional: false
|
|
50043
|
+
}],
|
|
50044
|
+
"climateControl.getStatus": [{
|
|
50045
|
+
name: "deviceId",
|
|
50046
|
+
form: "single",
|
|
50047
|
+
optional: false
|
|
50048
|
+
}],
|
|
49888
50049
|
"climateControl.setFanMode": [{
|
|
49889
50050
|
name: "deviceId",
|
|
49890
50051
|
form: "single",
|
|
@@ -49925,16 +50086,41 @@ Object.freeze({
|
|
|
49925
50086
|
form: "single",
|
|
49926
50087
|
optional: false
|
|
49927
50088
|
}],
|
|
50089
|
+
"color.getStatus": [{
|
|
50090
|
+
name: "deviceId",
|
|
50091
|
+
form: "single",
|
|
50092
|
+
optional: false
|
|
50093
|
+
}],
|
|
49928
50094
|
"color.setColor": [{
|
|
49929
50095
|
name: "deviceId",
|
|
49930
50096
|
form: "single",
|
|
49931
50097
|
optional: false
|
|
49932
50098
|
}],
|
|
50099
|
+
"connectivity.getStatus": [{
|
|
50100
|
+
name: "deviceId",
|
|
50101
|
+
form: "single",
|
|
50102
|
+
optional: false
|
|
50103
|
+
}],
|
|
50104
|
+
"consumables.getStatus": [{
|
|
50105
|
+
name: "deviceId",
|
|
50106
|
+
form: "single",
|
|
50107
|
+
optional: false
|
|
50108
|
+
}],
|
|
49933
50109
|
"consumables.reset": [{
|
|
49934
50110
|
name: "deviceId",
|
|
49935
50111
|
form: "single",
|
|
49936
50112
|
optional: false
|
|
49937
50113
|
}],
|
|
50114
|
+
"contact.getStatus": [{
|
|
50115
|
+
name: "deviceId",
|
|
50116
|
+
form: "single",
|
|
50117
|
+
optional: false
|
|
50118
|
+
}],
|
|
50119
|
+
"control.getStatus": [{
|
|
50120
|
+
name: "deviceId",
|
|
50121
|
+
form: "single",
|
|
50122
|
+
optional: false
|
|
50123
|
+
}],
|
|
49938
50124
|
"control.setValue": [{
|
|
49939
50125
|
name: "deviceId",
|
|
49940
50126
|
form: "single",
|
|
@@ -49945,6 +50131,11 @@ Object.freeze({
|
|
|
49945
50131
|
form: "single",
|
|
49946
50132
|
optional: false
|
|
49947
50133
|
}],
|
|
50134
|
+
"cover.getStatus": [{
|
|
50135
|
+
name: "deviceId",
|
|
50136
|
+
form: "single",
|
|
50137
|
+
optional: false
|
|
50138
|
+
}],
|
|
49948
50139
|
"cover.open": [{
|
|
49949
50140
|
name: "deviceId",
|
|
49950
50141
|
form: "single",
|
|
@@ -49970,6 +50161,11 @@ Object.freeze({
|
|
|
49970
50161
|
form: "single",
|
|
49971
50162
|
optional: false
|
|
49972
50163
|
}],
|
|
50164
|
+
"dayNight.getStatus": [{
|
|
50165
|
+
name: "deviceId",
|
|
50166
|
+
form: "single",
|
|
50167
|
+
optional: false
|
|
50168
|
+
}],
|
|
49973
50169
|
"dayNight.setSettings": [{
|
|
49974
50170
|
name: "deviceId",
|
|
49975
50171
|
form: "single",
|
|
@@ -49980,11 +50176,31 @@ Object.freeze({
|
|
|
49980
50176
|
form: "single",
|
|
49981
50177
|
optional: true
|
|
49982
50178
|
}],
|
|
50179
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
50180
|
+
name: "deviceId",
|
|
50181
|
+
form: "single",
|
|
50182
|
+
optional: false
|
|
50183
|
+
}],
|
|
50184
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
50185
|
+
name: "deviceId",
|
|
50186
|
+
form: "single",
|
|
50187
|
+
optional: false
|
|
50188
|
+
}],
|
|
50189
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
50190
|
+
name: "deviceId",
|
|
50191
|
+
form: "single",
|
|
50192
|
+
optional: false
|
|
50193
|
+
}],
|
|
49983
50194
|
"deviceAdminLink.getAdminLink": [{
|
|
49984
50195
|
name: "deviceId",
|
|
49985
50196
|
form: "single",
|
|
49986
50197
|
optional: false
|
|
49987
50198
|
}],
|
|
50199
|
+
"deviceAdoption.getStatus": [{
|
|
50200
|
+
name: "deviceId",
|
|
50201
|
+
form: "single",
|
|
50202
|
+
optional: false
|
|
50203
|
+
}],
|
|
49988
50204
|
"deviceAdoption.release": [{
|
|
49989
50205
|
name: "camDeviceId",
|
|
49990
50206
|
form: "single",
|
|
@@ -50000,6 +50216,11 @@ Object.freeze({
|
|
|
50000
50216
|
form: "single",
|
|
50001
50217
|
optional: false
|
|
50002
50218
|
}],
|
|
50219
|
+
"deviceDiscovery.getStatus": [{
|
|
50220
|
+
name: "deviceId",
|
|
50221
|
+
form: "single",
|
|
50222
|
+
optional: false
|
|
50223
|
+
}],
|
|
50003
50224
|
"deviceDiscovery.listDiscovered": [{
|
|
50004
50225
|
name: "deviceId",
|
|
50005
50226
|
form: "single",
|
|
@@ -50019,6 +50240,21 @@ Object.freeze({
|
|
|
50019
50240
|
form: "single",
|
|
50020
50241
|
optional: false
|
|
50021
50242
|
}],
|
|
50243
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
50244
|
+
name: "deviceId",
|
|
50245
|
+
form: "single",
|
|
50246
|
+
optional: false
|
|
50247
|
+
}],
|
|
50248
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
50249
|
+
name: "deviceId",
|
|
50250
|
+
form: "single",
|
|
50251
|
+
optional: false
|
|
50252
|
+
}],
|
|
50253
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
50254
|
+
name: "deviceId",
|
|
50255
|
+
form: "single",
|
|
50256
|
+
optional: false
|
|
50257
|
+
}],
|
|
50022
50258
|
"deviceExtension.listCandidates": [{
|
|
50023
50259
|
name: "deviceId",
|
|
50024
50260
|
form: "single",
|
|
@@ -50367,6 +50603,26 @@ Object.freeze({
|
|
|
50367
50603
|
form: "single",
|
|
50368
50604
|
optional: false
|
|
50369
50605
|
}],
|
|
50606
|
+
"deviceStatus.getStatus": [{
|
|
50607
|
+
name: "deviceId",
|
|
50608
|
+
form: "single",
|
|
50609
|
+
optional: false
|
|
50610
|
+
}],
|
|
50611
|
+
"doorbell.getStatus": [{
|
|
50612
|
+
name: "deviceId",
|
|
50613
|
+
form: "single",
|
|
50614
|
+
optional: false
|
|
50615
|
+
}],
|
|
50616
|
+
"enumSensor.getStatus": [{
|
|
50617
|
+
name: "deviceId",
|
|
50618
|
+
form: "single",
|
|
50619
|
+
optional: false
|
|
50620
|
+
}],
|
|
50621
|
+
"eventEmitter.getStatus": [{
|
|
50622
|
+
name: "deviceId",
|
|
50623
|
+
form: "single",
|
|
50624
|
+
optional: false
|
|
50625
|
+
}],
|
|
50370
50626
|
"faceGallery.getFaceByTrack": [{
|
|
50371
50627
|
name: "deviceId",
|
|
50372
50628
|
form: "single",
|
|
@@ -50381,6 +50637,11 @@ Object.freeze({
|
|
|
50381
50637
|
form: "array",
|
|
50382
50638
|
optional: true
|
|
50383
50639
|
}],
|
|
50640
|
+
"fanControl.getStatus": [{
|
|
50641
|
+
name: "deviceId",
|
|
50642
|
+
form: "single",
|
|
50643
|
+
optional: false
|
|
50644
|
+
}],
|
|
50384
50645
|
"fanControl.setDirection": [{
|
|
50385
50646
|
name: "deviceId",
|
|
50386
50647
|
form: "single",
|
|
@@ -50401,6 +50662,26 @@ Object.freeze({
|
|
|
50401
50662
|
form: "single",
|
|
50402
50663
|
optional: false
|
|
50403
50664
|
}],
|
|
50665
|
+
"featureProbe.getStatus": [{
|
|
50666
|
+
name: "deviceId",
|
|
50667
|
+
form: "single",
|
|
50668
|
+
optional: false
|
|
50669
|
+
}],
|
|
50670
|
+
"flood.getStatus": [{
|
|
50671
|
+
name: "deviceId",
|
|
50672
|
+
form: "single",
|
|
50673
|
+
optional: false
|
|
50674
|
+
}],
|
|
50675
|
+
"gas.getStatus": [{
|
|
50676
|
+
name: "deviceId",
|
|
50677
|
+
form: "single",
|
|
50678
|
+
optional: false
|
|
50679
|
+
}],
|
|
50680
|
+
"humidifier.getStatus": [{
|
|
50681
|
+
name: "deviceId",
|
|
50682
|
+
form: "single",
|
|
50683
|
+
optional: false
|
|
50684
|
+
}],
|
|
50404
50685
|
"humidifier.setMode": [{
|
|
50405
50686
|
name: "deviceId",
|
|
50406
50687
|
form: "single",
|
|
@@ -50416,11 +50697,26 @@ Object.freeze({
|
|
|
50416
50697
|
form: "single",
|
|
50417
50698
|
optional: false
|
|
50418
50699
|
}],
|
|
50700
|
+
"humiditySensor.getStatus": [{
|
|
50701
|
+
name: "deviceId",
|
|
50702
|
+
form: "single",
|
|
50703
|
+
optional: false
|
|
50704
|
+
}],
|
|
50705
|
+
"image.getStatus": [{
|
|
50706
|
+
name: "deviceId",
|
|
50707
|
+
form: "single",
|
|
50708
|
+
optional: false
|
|
50709
|
+
}],
|
|
50419
50710
|
"imageSettings.getOptions": [{
|
|
50420
50711
|
name: "deviceId",
|
|
50421
50712
|
form: "single",
|
|
50422
50713
|
optional: false
|
|
50423
50714
|
}],
|
|
50715
|
+
"imageSettings.getStatus": [{
|
|
50716
|
+
name: "deviceId",
|
|
50717
|
+
form: "single",
|
|
50718
|
+
optional: false
|
|
50719
|
+
}],
|
|
50424
50720
|
"imageSettings.setSettings": [{
|
|
50425
50721
|
name: "deviceId",
|
|
50426
50722
|
form: "single",
|
|
@@ -50431,6 +50727,11 @@ Object.freeze({
|
|
|
50431
50727
|
form: "single",
|
|
50432
50728
|
optional: false
|
|
50433
50729
|
}],
|
|
50730
|
+
"intercom.getStatus": [{
|
|
50731
|
+
name: "deviceId",
|
|
50732
|
+
form: "single",
|
|
50733
|
+
optional: false
|
|
50734
|
+
}],
|
|
50434
50735
|
"intercom.handleAnswer": [{
|
|
50435
50736
|
name: "deviceId",
|
|
50436
50737
|
form: "single",
|
|
@@ -50461,6 +50762,11 @@ Object.freeze({
|
|
|
50461
50762
|
form: "single",
|
|
50462
50763
|
optional: false
|
|
50463
50764
|
}],
|
|
50765
|
+
"lawnMowerControl.getStatus": [{
|
|
50766
|
+
name: "deviceId",
|
|
50767
|
+
form: "single",
|
|
50768
|
+
optional: false
|
|
50769
|
+
}],
|
|
50464
50770
|
"lawnMowerControl.pause": [{
|
|
50465
50771
|
name: "deviceId",
|
|
50466
50772
|
form: "single",
|
|
@@ -50471,6 +50777,11 @@ Object.freeze({
|
|
|
50471
50777
|
form: "single",
|
|
50472
50778
|
optional: false
|
|
50473
50779
|
}],
|
|
50780
|
+
"lockControl.getStatus": [{
|
|
50781
|
+
name: "deviceId",
|
|
50782
|
+
form: "single",
|
|
50783
|
+
optional: false
|
|
50784
|
+
}],
|
|
50474
50785
|
"lockControl.lock": [{
|
|
50475
50786
|
name: "deviceId",
|
|
50476
50787
|
form: "single",
|
|
@@ -50486,6 +50797,11 @@ Object.freeze({
|
|
|
50486
50797
|
form: "single",
|
|
50487
50798
|
optional: false
|
|
50488
50799
|
}],
|
|
50800
|
+
"mediaPlayer.getStatus": [{
|
|
50801
|
+
name: "deviceId",
|
|
50802
|
+
form: "single",
|
|
50803
|
+
optional: false
|
|
50804
|
+
}],
|
|
50489
50805
|
"mediaPlayer.next": [{
|
|
50490
50806
|
name: "deviceId",
|
|
50491
50807
|
form: "single",
|
|
@@ -50546,6 +50862,11 @@ Object.freeze({
|
|
|
50546
50862
|
form: "single",
|
|
50547
50863
|
optional: false
|
|
50548
50864
|
}],
|
|
50865
|
+
"motion.getStatus": [{
|
|
50866
|
+
name: "deviceId",
|
|
50867
|
+
form: "single",
|
|
50868
|
+
optional: false
|
|
50869
|
+
}],
|
|
50549
50870
|
"motion.isDetected": [{
|
|
50550
50871
|
name: "deviceId",
|
|
50551
50872
|
form: "single",
|
|
@@ -50556,11 +50877,31 @@ Object.freeze({
|
|
|
50556
50877
|
form: "single",
|
|
50557
50878
|
optional: false
|
|
50558
50879
|
}],
|
|
50880
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
50881
|
+
name: "deviceId",
|
|
50882
|
+
form: "single",
|
|
50883
|
+
optional: false
|
|
50884
|
+
}],
|
|
50885
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
50886
|
+
name: "deviceId",
|
|
50887
|
+
form: "single",
|
|
50888
|
+
optional: false
|
|
50889
|
+
}],
|
|
50890
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
50891
|
+
name: "deviceId",
|
|
50892
|
+
form: "single",
|
|
50893
|
+
optional: false
|
|
50894
|
+
}],
|
|
50559
50895
|
"motionDetection.removeCamera": [{
|
|
50560
50896
|
name: "deviceId",
|
|
50561
50897
|
form: "single",
|
|
50562
50898
|
optional: false
|
|
50563
50899
|
}],
|
|
50900
|
+
"motionTrigger.getStatus": [{
|
|
50901
|
+
name: "deviceId",
|
|
50902
|
+
form: "single",
|
|
50903
|
+
optional: false
|
|
50904
|
+
}],
|
|
50564
50905
|
"motionTrigger.setMotionTrigger": [{
|
|
50565
50906
|
name: "deviceId",
|
|
50566
50907
|
form: "single",
|
|
@@ -50571,6 +50912,11 @@ Object.freeze({
|
|
|
50571
50912
|
form: "single",
|
|
50572
50913
|
optional: false
|
|
50573
50914
|
}],
|
|
50915
|
+
"motionZones.getStatus": [{
|
|
50916
|
+
name: "deviceId",
|
|
50917
|
+
form: "single",
|
|
50918
|
+
optional: false
|
|
50919
|
+
}],
|
|
50574
50920
|
"motionZones.setZone": [{
|
|
50575
50921
|
name: "deviceId",
|
|
50576
50922
|
form: "single",
|
|
@@ -50581,6 +50927,11 @@ Object.freeze({
|
|
|
50581
50927
|
form: "single",
|
|
50582
50928
|
optional: false
|
|
50583
50929
|
}],
|
|
50930
|
+
"nativeObjectDetection.getStatus": [{
|
|
50931
|
+
name: "deviceId",
|
|
50932
|
+
form: "single",
|
|
50933
|
+
optional: false
|
|
50934
|
+
}],
|
|
50584
50935
|
"nativeObjectDetection.setEnabled": [{
|
|
50585
50936
|
name: "deviceId",
|
|
50586
50937
|
form: "single",
|
|
@@ -50596,6 +50947,11 @@ Object.freeze({
|
|
|
50596
50947
|
form: "single",
|
|
50597
50948
|
optional: false
|
|
50598
50949
|
}],
|
|
50950
|
+
"navigation.getStatus": [{
|
|
50951
|
+
name: "deviceId",
|
|
50952
|
+
form: "single",
|
|
50953
|
+
optional: false
|
|
50954
|
+
}],
|
|
50599
50955
|
"navigation.goToPoint": [{
|
|
50600
50956
|
name: "deviceId",
|
|
50601
50957
|
form: "single",
|
|
@@ -50641,6 +50997,11 @@ Object.freeze({
|
|
|
50641
50997
|
form: "single",
|
|
50642
50998
|
optional: false
|
|
50643
50999
|
}],
|
|
51000
|
+
"networkLink.getStatus": [{
|
|
51001
|
+
name: "deviceId",
|
|
51002
|
+
form: "single",
|
|
51003
|
+
optional: false
|
|
51004
|
+
}],
|
|
50644
51005
|
"networkQuality.getDeviceStats": [{
|
|
50645
51006
|
name: "deviceId",
|
|
50646
51007
|
form: "single",
|
|
@@ -50651,6 +51012,11 @@ Object.freeze({
|
|
|
50651
51012
|
form: "single",
|
|
50652
51013
|
optional: false
|
|
50653
51014
|
}],
|
|
51015
|
+
"notificationRules.getAlarmSensors": [{
|
|
51016
|
+
name: "deviceIds",
|
|
51017
|
+
form: "array",
|
|
51018
|
+
optional: false
|
|
51019
|
+
}],
|
|
50654
51020
|
"notificationRules.setDeviceMuted": [{
|
|
50655
51021
|
name: "deviceId",
|
|
50656
51022
|
form: "single",
|
|
@@ -50661,11 +51027,26 @@ Object.freeze({
|
|
|
50661
51027
|
form: "single",
|
|
50662
51028
|
optional: false
|
|
50663
51029
|
}],
|
|
51030
|
+
"notifier.getStatus": [{
|
|
51031
|
+
name: "deviceId",
|
|
51032
|
+
form: "single",
|
|
51033
|
+
optional: false
|
|
51034
|
+
}],
|
|
50664
51035
|
"notifier.send": [{
|
|
50665
51036
|
name: "deviceId",
|
|
50666
51037
|
form: "single",
|
|
50667
51038
|
optional: false
|
|
50668
51039
|
}],
|
|
51040
|
+
"numericSensor.getStatus": [{
|
|
51041
|
+
name: "deviceId",
|
|
51042
|
+
form: "single",
|
|
51043
|
+
optional: false
|
|
51044
|
+
}],
|
|
51045
|
+
"osd.getStatus": [{
|
|
51046
|
+
name: "deviceId",
|
|
51047
|
+
form: "single",
|
|
51048
|
+
optional: false
|
|
51049
|
+
}],
|
|
50669
51050
|
"osd.setOverlay": [{
|
|
50670
51051
|
name: "deviceId",
|
|
50671
51052
|
form: "single",
|
|
@@ -50725,6 +51106,11 @@ Object.freeze({
|
|
|
50725
51106
|
form: "single",
|
|
50726
51107
|
optional: false
|
|
50727
51108
|
}],
|
|
51109
|
+
"petFeeder.getStatus": [{
|
|
51110
|
+
name: "deviceId",
|
|
51111
|
+
form: "single",
|
|
51112
|
+
optional: false
|
|
51113
|
+
}],
|
|
50728
51114
|
"petFeeder.markFoodReplenished": [{
|
|
50729
51115
|
name: "deviceId",
|
|
50730
51116
|
form: "single",
|
|
@@ -50760,6 +51146,11 @@ Object.freeze({
|
|
|
50760
51146
|
form: "single",
|
|
50761
51147
|
optional: false
|
|
50762
51148
|
}],
|
|
51149
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
51150
|
+
name: "deviceId",
|
|
51151
|
+
form: "single",
|
|
51152
|
+
optional: false
|
|
51153
|
+
}],
|
|
50763
51154
|
"pipelineAnalytics.clearTrackRelation": [{
|
|
50764
51155
|
name: "deviceId",
|
|
50765
51156
|
form: "single",
|
|
@@ -50800,6 +51191,16 @@ Object.freeze({
|
|
|
50800
51191
|
form: "single",
|
|
50801
51192
|
optional: false
|
|
50802
51193
|
}],
|
|
51194
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
51195
|
+
name: "deviceId",
|
|
51196
|
+
form: "single",
|
|
51197
|
+
optional: false
|
|
51198
|
+
}],
|
|
51199
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
51200
|
+
name: "deviceId",
|
|
51201
|
+
form: "single",
|
|
51202
|
+
optional: false
|
|
51203
|
+
}],
|
|
50803
51204
|
"pipelineAnalytics.getEventDensity": [{
|
|
50804
51205
|
name: "deviceId",
|
|
50805
51206
|
form: "single",
|
|
@@ -51015,6 +51416,11 @@ Object.freeze({
|
|
|
51015
51416
|
form: "single",
|
|
51016
51417
|
optional: true
|
|
51017
51418
|
}],
|
|
51419
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
51420
|
+
name: "deviceId",
|
|
51421
|
+
form: "single",
|
|
51422
|
+
optional: false
|
|
51423
|
+
}],
|
|
51018
51424
|
"pipelineOrchestrator.assignAudio": [{
|
|
51019
51425
|
name: "deviceId",
|
|
51020
51426
|
form: "single",
|
|
@@ -51060,6 +51466,16 @@ Object.freeze({
|
|
|
51060
51466
|
form: "single",
|
|
51061
51467
|
optional: false
|
|
51062
51468
|
}],
|
|
51469
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
51470
|
+
name: "deviceId",
|
|
51471
|
+
form: "single",
|
|
51472
|
+
optional: false
|
|
51473
|
+
}],
|
|
51474
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
51475
|
+
name: "deviceId",
|
|
51476
|
+
form: "single",
|
|
51477
|
+
optional: false
|
|
51478
|
+
}],
|
|
51063
51479
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
51064
51480
|
name: "deviceId",
|
|
51065
51481
|
form: "single",
|
|
@@ -51180,11 +51596,31 @@ Object.freeze({
|
|
|
51180
51596
|
form: "single",
|
|
51181
51597
|
optional: true
|
|
51182
51598
|
}],
|
|
51599
|
+
"powerMeter.getStatus": [{
|
|
51600
|
+
name: "deviceId",
|
|
51601
|
+
form: "single",
|
|
51602
|
+
optional: false
|
|
51603
|
+
}],
|
|
51604
|
+
"presence.getStatus": [{
|
|
51605
|
+
name: "deviceId",
|
|
51606
|
+
form: "single",
|
|
51607
|
+
optional: false
|
|
51608
|
+
}],
|
|
51609
|
+
"pressureSensor.getStatus": [{
|
|
51610
|
+
name: "deviceId",
|
|
51611
|
+
form: "single",
|
|
51612
|
+
optional: false
|
|
51613
|
+
}],
|
|
51183
51614
|
"privacyMask.getOptions": [{
|
|
51184
51615
|
name: "deviceId",
|
|
51185
51616
|
form: "single",
|
|
51186
51617
|
optional: false
|
|
51187
51618
|
}],
|
|
51619
|
+
"privacyMask.getStatus": [{
|
|
51620
|
+
name: "deviceId",
|
|
51621
|
+
form: "single",
|
|
51622
|
+
optional: false
|
|
51623
|
+
}],
|
|
51188
51624
|
"privacyMask.setAudioEnabled": [{
|
|
51189
51625
|
name: "deviceId",
|
|
51190
51626
|
form: "single",
|
|
@@ -51235,6 +51671,11 @@ Object.freeze({
|
|
|
51235
51671
|
form: "single",
|
|
51236
51672
|
optional: false
|
|
51237
51673
|
}],
|
|
51674
|
+
"ptz.getStatus": [{
|
|
51675
|
+
name: "deviceId",
|
|
51676
|
+
form: "single",
|
|
51677
|
+
optional: false
|
|
51678
|
+
}],
|
|
51238
51679
|
"ptz.goHome": [{
|
|
51239
51680
|
name: "deviceId",
|
|
51240
51681
|
form: "single",
|
|
@@ -51325,6 +51766,11 @@ Object.freeze({
|
|
|
51325
51766
|
form: "single",
|
|
51326
51767
|
optional: false
|
|
51327
51768
|
}],
|
|
51769
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
51770
|
+
name: "deviceId",
|
|
51771
|
+
form: "single",
|
|
51772
|
+
optional: false
|
|
51773
|
+
}],
|
|
51328
51774
|
"recordingArchive.deleteFootprint": [{
|
|
51329
51775
|
name: "deviceId",
|
|
51330
51776
|
form: "single",
|
|
@@ -51345,6 +51791,21 @@ Object.freeze({
|
|
|
51345
51791
|
form: "single",
|
|
51346
51792
|
optional: false
|
|
51347
51793
|
}],
|
|
51794
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
51795
|
+
name: "deviceId",
|
|
51796
|
+
form: "single",
|
|
51797
|
+
optional: false
|
|
51798
|
+
}],
|
|
51799
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
51800
|
+
name: "deviceId",
|
|
51801
|
+
form: "single",
|
|
51802
|
+
optional: false
|
|
51803
|
+
}],
|
|
51804
|
+
"recordingArchive.getStatus": [{
|
|
51805
|
+
name: "deviceId",
|
|
51806
|
+
form: "single",
|
|
51807
|
+
optional: false
|
|
51808
|
+
}],
|
|
51348
51809
|
"recordingArchive.listOpsLog": [{
|
|
51349
51810
|
name: "deviceId",
|
|
51350
51811
|
form: "single",
|
|
@@ -51430,6 +51891,11 @@ Object.freeze({
|
|
|
51430
51891
|
form: "single",
|
|
51431
51892
|
optional: false
|
|
51432
51893
|
}],
|
|
51894
|
+
"recordingOnboard.getStatus": [{
|
|
51895
|
+
name: "deviceId",
|
|
51896
|
+
form: "single",
|
|
51897
|
+
optional: false
|
|
51898
|
+
}],
|
|
51433
51899
|
"recordingOnboard.setSettings": [{
|
|
51434
51900
|
name: "deviceId",
|
|
51435
51901
|
form: "single",
|
|
@@ -51460,6 +51926,11 @@ Object.freeze({
|
|
|
51460
51926
|
form: "single",
|
|
51461
51927
|
optional: false
|
|
51462
51928
|
}],
|
|
51929
|
+
"sceneMonitor.getStatus": [{
|
|
51930
|
+
name: "deviceId",
|
|
51931
|
+
form: "single",
|
|
51932
|
+
optional: false
|
|
51933
|
+
}],
|
|
51463
51934
|
"sceneMonitor.listScenes": [{
|
|
51464
51935
|
name: "deviceId",
|
|
51465
51936
|
form: "single",
|
|
@@ -51485,6 +51956,11 @@ Object.freeze({
|
|
|
51485
51956
|
form: "single",
|
|
51486
51957
|
optional: false
|
|
51487
51958
|
}],
|
|
51959
|
+
"scriptRunner.getStatus": [{
|
|
51960
|
+
name: "deviceId",
|
|
51961
|
+
form: "single",
|
|
51962
|
+
optional: false
|
|
51963
|
+
}],
|
|
51488
51964
|
"scriptRunner.run": [{
|
|
51489
51965
|
name: "deviceId",
|
|
51490
51966
|
form: "single",
|
|
@@ -51495,11 +51971,31 @@ Object.freeze({
|
|
|
51495
51971
|
form: "single",
|
|
51496
51972
|
optional: false
|
|
51497
51973
|
}],
|
|
51974
|
+
"smoke.getStatus": [{
|
|
51975
|
+
name: "deviceId",
|
|
51976
|
+
form: "single",
|
|
51977
|
+
optional: false
|
|
51978
|
+
}],
|
|
51979
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
51980
|
+
name: "deviceId",
|
|
51981
|
+
form: "single",
|
|
51982
|
+
optional: false
|
|
51983
|
+
}],
|
|
51498
51984
|
"snapshot.getDebugState": [{
|
|
51499
51985
|
name: "deviceId",
|
|
51500
51986
|
form: "single",
|
|
51501
51987
|
optional: false
|
|
51502
51988
|
}],
|
|
51989
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
51990
|
+
name: "deviceId",
|
|
51991
|
+
form: "single",
|
|
51992
|
+
optional: false
|
|
51993
|
+
}],
|
|
51994
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
51995
|
+
name: "deviceId",
|
|
51996
|
+
form: "single",
|
|
51997
|
+
optional: false
|
|
51998
|
+
}],
|
|
51503
51999
|
"snapshot.getSnapshot": [{
|
|
51504
52000
|
name: "deviceId",
|
|
51505
52001
|
form: "single",
|
|
@@ -51516,6 +52012,11 @@ Object.freeze({
|
|
|
51516
52012
|
form: "array",
|
|
51517
52013
|
optional: false
|
|
51518
52014
|
}],
|
|
52015
|
+
"snapshot.getStatus": [{
|
|
52016
|
+
name: "deviceId",
|
|
52017
|
+
form: "single",
|
|
52018
|
+
optional: false
|
|
52019
|
+
}],
|
|
51519
52020
|
"snapshot.invalidateCache": [{
|
|
51520
52021
|
name: "deviceId",
|
|
51521
52022
|
form: "single",
|
|
@@ -51526,6 +52027,11 @@ Object.freeze({
|
|
|
51526
52027
|
form: "single",
|
|
51527
52028
|
optional: false
|
|
51528
52029
|
}],
|
|
52030
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
52031
|
+
name: "deviceId",
|
|
52032
|
+
form: "single",
|
|
52033
|
+
optional: false
|
|
52034
|
+
}],
|
|
51529
52035
|
"streamBroker.assignProfile": [{
|
|
51530
52036
|
name: "deviceId",
|
|
51531
52037
|
form: "single",
|
|
@@ -51541,6 +52047,16 @@ Object.freeze({
|
|
|
51541
52047
|
form: "single",
|
|
51542
52048
|
optional: false
|
|
51543
52049
|
}],
|
|
52050
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
52051
|
+
name: "deviceId",
|
|
52052
|
+
form: "single",
|
|
52053
|
+
optional: false
|
|
52054
|
+
}],
|
|
52055
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
52056
|
+
name: "deviceId",
|
|
52057
|
+
form: "single",
|
|
52058
|
+
optional: false
|
|
52059
|
+
}],
|
|
51544
52060
|
"streamBroker.getStreamWithCodec": [{
|
|
51545
52061
|
name: "deviceId",
|
|
51546
52062
|
form: "single",
|
|
@@ -51601,16 +52117,46 @@ Object.freeze({
|
|
|
51601
52117
|
form: "single",
|
|
51602
52118
|
optional: false
|
|
51603
52119
|
}],
|
|
52120
|
+
"streamParams.getStatus": [{
|
|
52121
|
+
name: "deviceId",
|
|
52122
|
+
form: "single",
|
|
52123
|
+
optional: false
|
|
52124
|
+
}],
|
|
51604
52125
|
"streamParams.setProfile": [{
|
|
51605
52126
|
name: "deviceId",
|
|
51606
52127
|
form: "single",
|
|
51607
52128
|
optional: false
|
|
51608
52129
|
}],
|
|
52130
|
+
"switch.getStatus": [{
|
|
52131
|
+
name: "deviceId",
|
|
52132
|
+
form: "single",
|
|
52133
|
+
optional: false
|
|
52134
|
+
}],
|
|
51609
52135
|
"switch.setState": [{
|
|
51610
52136
|
name: "deviceId",
|
|
51611
52137
|
form: "single",
|
|
51612
52138
|
optional: false
|
|
51613
52139
|
}],
|
|
52140
|
+
"tamper.getStatus": [{
|
|
52141
|
+
name: "deviceId",
|
|
52142
|
+
form: "single",
|
|
52143
|
+
optional: false
|
|
52144
|
+
}],
|
|
52145
|
+
"temperatureSensor.getStatus": [{
|
|
52146
|
+
name: "deviceId",
|
|
52147
|
+
form: "single",
|
|
52148
|
+
optional: false
|
|
52149
|
+
}],
|
|
52150
|
+
"update.getStatus": [{
|
|
52151
|
+
name: "deviceId",
|
|
52152
|
+
form: "single",
|
|
52153
|
+
optional: false
|
|
52154
|
+
}],
|
|
52155
|
+
"vacuumControl.getStatus": [{
|
|
52156
|
+
name: "deviceId",
|
|
52157
|
+
form: "single",
|
|
52158
|
+
optional: false
|
|
52159
|
+
}],
|
|
51614
52160
|
"vacuumControl.locate": [{
|
|
51615
52161
|
name: "deviceId",
|
|
51616
52162
|
form: "single",
|
|
@@ -51646,6 +52192,11 @@ Object.freeze({
|
|
|
51646
52192
|
form: "single",
|
|
51647
52193
|
optional: false
|
|
51648
52194
|
}],
|
|
52195
|
+
"valve.getStatus": [{
|
|
52196
|
+
name: "deviceId",
|
|
52197
|
+
form: "single",
|
|
52198
|
+
optional: false
|
|
52199
|
+
}],
|
|
51649
52200
|
"valve.open": [{
|
|
51650
52201
|
name: "deviceId",
|
|
51651
52202
|
form: "single",
|
|
@@ -51661,6 +52212,11 @@ Object.freeze({
|
|
|
51661
52212
|
form: "single",
|
|
51662
52213
|
optional: false
|
|
51663
52214
|
}],
|
|
52215
|
+
"vibration.getStatus": [{
|
|
52216
|
+
name: "deviceId",
|
|
52217
|
+
form: "single",
|
|
52218
|
+
optional: false
|
|
52219
|
+
}],
|
|
51664
52220
|
"videoclips.dialClipStream": [{
|
|
51665
52221
|
name: "deviceId",
|
|
51666
52222
|
form: "single",
|
|
@@ -51696,6 +52252,11 @@ Object.freeze({
|
|
|
51696
52252
|
form: "single",
|
|
51697
52253
|
optional: false
|
|
51698
52254
|
}],
|
|
52255
|
+
"waterHeater.getStatus": [{
|
|
52256
|
+
name: "deviceId",
|
|
52257
|
+
form: "single",
|
|
52258
|
+
optional: false
|
|
52259
|
+
}],
|
|
51699
52260
|
"waterHeater.setAway": [{
|
|
51700
52261
|
name: "deviceId",
|
|
51701
52262
|
form: "single",
|
|
@@ -51711,6 +52272,11 @@ Object.freeze({
|
|
|
51711
52272
|
form: "single",
|
|
51712
52273
|
optional: false
|
|
51713
52274
|
}],
|
|
52275
|
+
"weather.getStatus": [{
|
|
52276
|
+
name: "deviceId",
|
|
52277
|
+
form: "single",
|
|
52278
|
+
optional: false
|
|
52279
|
+
}],
|
|
51714
52280
|
"webrtcSession.addIceCandidate": [{
|
|
51715
52281
|
name: "deviceId",
|
|
51716
52282
|
form: "single",
|
|
@@ -52448,7 +53014,7 @@ var PreviewTextField = string().max(200);
|
|
|
52448
53014
|
* Whether the notification's preview is a STILL or a short animation.
|
|
52449
53015
|
*
|
|
52450
53016
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
52451
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
53017
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
52452
53018
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
52453
53019
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
52454
53020
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -52586,6 +53152,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
52586
53152
|
createdAt: number(),
|
|
52587
53153
|
updatedAt: number()
|
|
52588
53154
|
});
|
|
53155
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
52589
53156
|
object({
|
|
52590
53157
|
/**
|
|
52591
53158
|
* Fraction of the box's own size added on EACH side before cutting.
|