@camstack/addon-ai 0.4.128 → 0.4.130
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 +834 -232
- package/dist/addon.mjs +834 -232
- package/package.json +1 -3
package/dist/addon.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
}) : target, mod));
|
|
44
44
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
45
45
|
//#endregion
|
|
46
|
-
//#region ../types/dist/event-category-
|
|
46
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
47
47
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
48
48
|
EventCategory["SystemBoot"] = "system.boot";
|
|
49
49
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -576,6 +576,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
576
576
|
*/
|
|
577
577
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
578
578
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
579
|
+
/**
|
|
580
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
581
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
582
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
583
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
584
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
585
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
586
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
587
|
+
*/
|
|
579
588
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
580
589
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
581
590
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5561,7 +5570,7 @@ function number(params) {
|
|
|
5561
5570
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
5562
5571
|
}
|
|
5563
5572
|
//#endregion
|
|
5564
|
-
//#region ../types/dist/sleep-
|
|
5573
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5565
5574
|
/**
|
|
5566
5575
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5567
5576
|
* window to float samples (D455).
|
|
@@ -7649,7 +7658,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7649
7658
|
return DeviceRole;
|
|
7650
7659
|
}({});
|
|
7651
7660
|
//#endregion
|
|
7652
|
-
//#region ../types/dist/composition-
|
|
7661
|
+
//#region ../types/dist/composition-Bzr7GwgP.mjs
|
|
7653
7662
|
/**
|
|
7654
7663
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7655
7664
|
*
|
|
@@ -7703,21 +7712,20 @@ function portable(target) {
|
|
|
7703
7712
|
}
|
|
7704
7713
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7705
7714
|
/**
|
|
7706
|
-
*
|
|
7707
|
-
*
|
|
7715
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7716
|
+
* pure evaluator of its EDGE.
|
|
7708
7717
|
*
|
|
7709
|
-
*
|
|
7710
|
-
*
|
|
7711
|
-
*
|
|
7712
|
-
*
|
|
7713
|
-
*
|
|
7714
|
-
*
|
|
7715
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7718
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7719
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7720
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7721
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7722
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7723
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7716
7724
|
*
|
|
7717
|
-
* ⚠
|
|
7718
|
-
*
|
|
7719
|
-
*
|
|
7720
|
-
*
|
|
7725
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7726
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7727
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7728
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7721
7729
|
*/
|
|
7722
7730
|
/**
|
|
7723
7731
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -7738,6 +7746,8 @@ var SOURCE_CAP_ACTIVE_FIELD = {
|
|
|
7738
7746
|
vibration: "detected",
|
|
7739
7747
|
tamper: "tampered"
|
|
7740
7748
|
};
|
|
7749
|
+
/** Cap names whose presence in a device's bindings qualify it as a source. */
|
|
7750
|
+
var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
|
|
7741
7751
|
/**
|
|
7742
7752
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7743
7753
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
@@ -9324,22 +9334,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
9324
9334
|
"package"
|
|
9325
9335
|
];
|
|
9326
9336
|
/**
|
|
9327
|
-
*
|
|
9328
|
-
*
|
|
9337
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9338
|
+
* an operator can select.
|
|
9329
9339
|
*
|
|
9330
|
-
*
|
|
9340
|
+
* They are the three offered by the `object-detection` step
|
|
9331
9341
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
9332
|
-
* `enabledMacroClasses`). `package`
|
|
9333
|
-
* `MACRO_LABELS` —
|
|
9334
|
-
* `package-detection`,
|
|
9335
|
-
*
|
|
9342
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9343
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9344
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9345
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
9336
9346
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
9337
9347
|
*
|
|
9338
|
-
*
|
|
9339
|
-
*
|
|
9340
|
-
* (`types/detection.ts`);
|
|
9341
|
-
* (`RecordingTriggers.objectClasses`)
|
|
9342
|
-
*
|
|
9348
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9349
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9350
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9351
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9352
|
+
* invisible.
|
|
9343
9353
|
*/
|
|
9344
9354
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
9345
9355
|
"person",
|
|
@@ -9404,17 +9414,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9404
9414
|
"on-device-decision"
|
|
9405
9415
|
]);
|
|
9406
9416
|
/**
|
|
9407
|
-
*
|
|
9408
|
-
*
|
|
9417
|
+
* The macro classes that can open a recording window — the same
|
|
9418
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9409
9419
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9410
9420
|
*/
|
|
9411
9421
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9412
9422
|
/**
|
|
9413
|
-
* True
|
|
9423
|
+
* True when `values` does not repeat an element.
|
|
9414
9424
|
*
|
|
9415
|
-
*
|
|
9416
|
-
*
|
|
9417
|
-
*
|
|
9425
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9426
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9427
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9418
9428
|
*/
|
|
9419
9429
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9420
9430
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9422,34 +9432,34 @@ var RecordingTriggersSchema = object({
|
|
|
9422
9432
|
motion: boolean().optional(),
|
|
9423
9433
|
audioThresholdDbfs: number$1().optional(),
|
|
9424
9434
|
/**
|
|
9425
|
-
*
|
|
9426
|
-
*
|
|
9427
|
-
*
|
|
9428
|
-
*
|
|
9435
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9436
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9437
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9438
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9429
9439
|
*
|
|
9430
|
-
*
|
|
9431
|
-
*
|
|
9432
|
-
* `minConfidence<Macro>`
|
|
9433
|
-
* (`source: 'onboard'`)
|
|
9434
|
-
*
|
|
9440
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9441
|
+
* those that went through `enabledMacroClasses`, the
|
|
9442
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9443
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9444
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9435
9445
|
*/
|
|
9436
9446
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9437
9447
|
/**
|
|
9438
|
-
*
|
|
9439
|
-
*
|
|
9448
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9449
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9440
9450
|
* `objectClasses`.
|
|
9441
9451
|
*
|
|
9442
|
-
*
|
|
9443
|
-
*
|
|
9444
|
-
*
|
|
9445
|
-
*
|
|
9446
|
-
* device (D12) —
|
|
9452
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9453
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9454
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9455
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9456
|
+
* device (D12) — never a global list of caps.
|
|
9447
9457
|
*
|
|
9448
|
-
*
|
|
9449
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9450
|
-
*
|
|
9451
|
-
*
|
|
9452
|
-
*
|
|
9458
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9459
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9460
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9461
|
+
* the level: a contact found already open at runner restart does not
|
|
9462
|
+
* record.
|
|
9453
9463
|
*/
|
|
9454
9464
|
sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9455
9465
|
});
|
|
@@ -10526,7 +10536,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10526
10536
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10527
10537
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10528
10538
|
* over the values is the exact defect
|
|
10529
|
-
* `docs/design/plans/2026-08-26-
|
|
10539
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10530
10540
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10531
10541
|
*
|
|
10532
10542
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -12237,7 +12247,7 @@ var BrokerStatusEnum = _enum([
|
|
|
12237
12247
|
"unreachable",
|
|
12238
12248
|
"error"
|
|
12239
12249
|
]);
|
|
12240
|
-
var BrokerInfoSchema
|
|
12250
|
+
var BrokerInfoSchema = object({
|
|
12241
12251
|
/** Stable broker id. Persisted; survives addon restarts. */
|
|
12242
12252
|
id: string(),
|
|
12243
12253
|
/** Addon id of the provider that OWNS this broker.
|
|
@@ -12370,7 +12380,7 @@ var GetStateInputSchema = object({
|
|
|
12370
12380
|
* HA: entity_id (returns the cached entity state). */
|
|
12371
12381
|
key: string()
|
|
12372
12382
|
});
|
|
12373
|
-
method(ListInputSchema, array(BrokerInfoSchema
|
|
12383
|
+
method(ListInputSchema, array(BrokerInfoSchema)), method(GetInputSchema, BrokerInfoSchema.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
|
|
12374
12384
|
kind: "mutation",
|
|
12375
12385
|
auth: "admin"
|
|
12376
12386
|
}), method(RemoveInputSchema, _void(), {
|
|
@@ -13979,7 +13989,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13979
13989
|
*
|
|
13980
13990
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13981
13991
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13982
|
-
* (`docs/design/2026-08-26-
|
|
13992
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13983
13993
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13984
13994
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13985
13995
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14735,7 +14745,17 @@ var SiteZoneSchema = object({
|
|
|
14735
14745
|
var ProviderStatusSchema = object({
|
|
14736
14746
|
connected: boolean(),
|
|
14737
14747
|
deviceCount: number$1(),
|
|
14738
|
-
error: string().optional()
|
|
14748
|
+
error: string().optional(),
|
|
14749
|
+
/**
|
|
14750
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14751
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14752
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14753
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14754
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14755
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14756
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14757
|
+
*/
|
|
14758
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
14739
14759
|
});
|
|
14740
14760
|
object({
|
|
14741
14761
|
externalId: string(),
|
|
@@ -15533,28 +15553,10 @@ method(object({
|
|
|
15533
15553
|
deviceIds: array(number$1()).readonly(),
|
|
15534
15554
|
caps: array(string()).readonly().optional()
|
|
15535
15555
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15536
|
-
|
|
15537
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15538
|
-
lastPressedAt: number$1().nullable(),
|
|
15539
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15540
|
-
pressCountSinceStart: number$1()
|
|
15541
|
-
});
|
|
15542
|
-
object({
|
|
15543
|
-
deviceId: number$1(),
|
|
15544
|
-
timestamp: number$1()
|
|
15545
|
-
});
|
|
15546
|
-
/**
|
|
15547
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15548
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15549
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15550
|
-
*/
|
|
15551
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number$1().int().positive()) });
|
|
15556
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
15552
15557
|
DeviceType.Camera;
|
|
15553
|
-
DeviceType.Button, DeviceType.Camera;
|
|
15554
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15555
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
15556
15558
|
/** A slot's editable value, discriminated on `slot`. */
|
|
15557
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
15559
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15558
15560
|
DeviceType.Camera;
|
|
15559
15561
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15560
15562
|
state: literal("unreachable"),
|
|
@@ -15591,10 +15593,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
15591
15593
|
});
|
|
15592
15594
|
/**
|
|
15593
15595
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15594
|
-
* reported read-only, named, never written through this contract (D62).
|
|
15595
|
-
*
|
|
15596
|
-
*
|
|
15597
|
-
* `unknown` means the gate could
|
|
15596
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
15597
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
15598
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
15599
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
15600
|
+
* not be read; it is not "inactive" (D315).
|
|
15598
15601
|
*/
|
|
15599
15602
|
var ExtensionSlotActivationSchema = object({
|
|
15600
15603
|
state: _enum([
|
|
@@ -15610,7 +15613,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
15610
15613
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15611
15614
|
slotRef: string(),
|
|
15612
15615
|
slot: ExtensionSlotIdSchema,
|
|
15613
|
-
/** Names the store written (D62), e.g. `
|
|
15616
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
15614
15617
|
authority: string(),
|
|
15615
15618
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15616
15619
|
value: ExtensionSlotValueSchema,
|
|
@@ -15888,7 +15891,7 @@ method(object({
|
|
|
15888
15891
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
15889
15892
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
15890
15893
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
15891
|
-
* ricontrolliamo tutti questi punti"
|
|
15894
|
+
* 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
|
|
15892
15895
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
15893
15896
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
15894
15897
|
* be READ.
|
|
@@ -17372,7 +17375,7 @@ var BrokerStatusSchema$1 = _enum([
|
|
|
17372
17375
|
"unreachable",
|
|
17373
17376
|
"tls-error"
|
|
17374
17377
|
]);
|
|
17375
|
-
var BrokerInfoSchema = object({
|
|
17378
|
+
var BrokerInfoSchema$1 = object({
|
|
17376
17379
|
id: string(),
|
|
17377
17380
|
name: string(),
|
|
17378
17381
|
url: string(),
|
|
@@ -17435,7 +17438,7 @@ var StatusSchema = object({
|
|
|
17435
17438
|
brokerCount: number$1(),
|
|
17436
17439
|
embeddedRunning: boolean()
|
|
17437
17440
|
});
|
|
17438
|
-
method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17441
|
+
method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
17439
17442
|
kind: "mutation",
|
|
17440
17443
|
auth: "admin"
|
|
17441
17444
|
}), method(IdInputSchema, _void(), {
|
|
@@ -19611,78 +19614,16 @@ var NcRuleInputSchema = object({
|
|
|
19611
19614
|
*/
|
|
19612
19615
|
confirm: NcConfirmSchema.optional(),
|
|
19613
19616
|
/**
|
|
19614
|
-
*
|
|
19615
|
-
*
|
|
19616
|
-
*
|
|
19617
|
-
*
|
|
19618
|
-
*
|
|
19619
|
-
*
|
|
19620
|
-
*
|
|
19621
|
-
*
|
|
19622
|
-
*
|
|
19623
|
-
* Only two honest answers exist, and this flag picks between them. It has
|
|
19624
|
-
* effect ONLY on a rule that declares a recognition scope
|
|
19625
|
-
* ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
|
|
19626
|
-
* other rule there is nothing to wait for and the flag is inert.
|
|
19627
|
-
*
|
|
19628
|
-
* | value | what happens |
|
|
19629
|
-
* | --- | --- |
|
|
19630
|
-
* | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
|
|
19631
|
-
* | 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) |
|
|
19632
|
-
*
|
|
19633
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19634
|
-
* on the addon cap path, and absent has to keep meaning exactly what every
|
|
19635
|
-
* rule authored before this field meant.
|
|
19636
|
-
*
|
|
19637
|
-
* The cost of `true` is stated here because the editor states it too: a rule
|
|
19638
|
-
* that waits also inherits track-close SEMANTICS — its `zones` condition
|
|
19639
|
-
* tests every zone the track visited and a `crossing` condition can no longer
|
|
19640
|
-
* be satisfied, because a closed track carries no crossing.
|
|
19641
|
-
*/
|
|
19642
|
-
waitForEnhancement: boolean().optional(),
|
|
19643
|
-
/**
|
|
19644
|
-
* GROUP a burst of subjects into ONE notification that grows.
|
|
19645
|
-
*
|
|
19646
|
-
* Seconds of quiet after the last matching subject before the burst is
|
|
19647
|
-
* considered over. While it is open, the first subject enqueues immediately —
|
|
19648
|
-
* **exactly as today, with no added latency** — and every real growth (a new
|
|
19649
|
-
* subject, or a name confirmed on one already in it) REPLACES that
|
|
19650
|
-
* notification with an updated one naming everybody. The push carries the
|
|
19651
|
-
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
19652
|
-
*
|
|
19653
|
-
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
19654
|
-
*
|
|
19655
|
-
* ### Why an idle cutoff and not a window
|
|
19656
|
-
*
|
|
19657
|
-
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19658
|
-
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19659
|
-
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19660
|
-
* 30 s is a widely shipped value for the same decision.
|
|
19661
|
-
*
|
|
19662
|
-
* ### What it replaces
|
|
19663
|
-
*
|
|
19664
|
-
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
19665
|
-
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
19666
|
-
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
19667
|
-
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
19668
|
-
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
19669
|
-
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
19670
|
-
* throttled by the window its own first member spent.
|
|
19671
|
-
*
|
|
19672
|
-
* ### Interaction with {@link waitForEnhancement}
|
|
19673
|
-
*
|
|
19674
|
-
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
19675
|
-
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
19676
|
-
* CLOSE — already carrying its name — and grows as later members close. That
|
|
19677
|
-
* is later, and complete. With grouping alone the group opens on the first
|
|
19678
|
-
* object event and picks up names as they are confirmed, through the growth
|
|
19679
|
-
* path. Neither combination fires twice for one subject.
|
|
19680
|
-
*
|
|
19681
|
-
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
19682
|
-
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
19683
|
-
* field existed.
|
|
19617
|
+
* IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
|
|
19618
|
+
* seconds; the rule sends ONE message when the window closes — early, once every
|
|
19619
|
+
* subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
|
|
19620
|
+
* the rule matched, with one mosaic tile per subject.
|
|
19621
|
+
* Absent = plain immediate (one message per track, at the first match).
|
|
19622
|
+
* Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
|
|
19623
|
+
* save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
|
|
19624
|
+
* path does not run Zod defaults.
|
|
19684
19625
|
*/
|
|
19685
|
-
|
|
19626
|
+
groupingSec: number$1().int().min(5).max(60).optional()
|
|
19686
19627
|
});
|
|
19687
19628
|
/**
|
|
19688
19629
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -19730,9 +19671,10 @@ var NcRuleClearableKeySchema = _enum([
|
|
|
19730
19671
|
"targetUsers",
|
|
19731
19672
|
"snoozeOptions",
|
|
19732
19673
|
"snoozeAllowGlobal",
|
|
19733
|
-
"waitForEnhancement",
|
|
19734
19674
|
"actions",
|
|
19735
19675
|
"confirm",
|
|
19676
|
+
"groupingSec",
|
|
19677
|
+
"waitForEnhancement",
|
|
19736
19678
|
"groupIdleSec"
|
|
19737
19679
|
]);
|
|
19738
19680
|
var NcRuleUpdateInputSchema = object({
|
|
@@ -19754,9 +19696,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19754
19696
|
*/
|
|
19755
19697
|
disabledTargetIds: array(string()).default([])
|
|
19756
19698
|
});
|
|
19699
|
+
/**
|
|
19700
|
+
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
|
|
19701
|
+
* still-true state. `backups-exports` and `alarm` are not sections — a completed
|
|
19702
|
+
* job is not an open state, and the alarm stays instant.
|
|
19703
|
+
*/
|
|
19704
|
+
var NcStateSummarySectionIdSchema = _enum([
|
|
19705
|
+
"device-state",
|
|
19706
|
+
"streams",
|
|
19707
|
+
"battery",
|
|
19708
|
+
"consumables",
|
|
19709
|
+
"tanks",
|
|
19710
|
+
"detection-blind",
|
|
19711
|
+
"nodes",
|
|
19712
|
+
"addons",
|
|
19713
|
+
"updates"
|
|
19714
|
+
]);
|
|
19757
19715
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
19758
19716
|
var NcStateSummaryPreviewSectionSchema = object({
|
|
19759
|
-
id:
|
|
19717
|
+
id: NcStateSummarySectionIdSchema,
|
|
19760
19718
|
status: _enum(["read", "unavailable"]),
|
|
19761
19719
|
items: number$1().int().nonnegative(),
|
|
19762
19720
|
reason: string().optional()
|
|
@@ -19766,7 +19724,7 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
19766
19724
|
* a `rule` split (no `section`), one section's on a `section` split.
|
|
19767
19725
|
*/
|
|
19768
19726
|
var NcStateSummaryPreviewRowSchema = object({
|
|
19769
|
-
section:
|
|
19727
|
+
section: NcStateSummarySectionIdSchema.optional(),
|
|
19770
19728
|
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
19771
19729
|
title: string(),
|
|
19772
19730
|
text: string(),
|
|
@@ -20203,6 +20161,29 @@ object({
|
|
|
20203
20161
|
firstAt: number$1(),
|
|
20204
20162
|
lastAt: number$1()
|
|
20205
20163
|
});
|
|
20164
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
20165
|
+
var NcAlarmDelaySecSchema = number$1().int().min(0).max(600);
|
|
20166
|
+
var NcAlarmTriggeredSecSchema = number$1().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
20167
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
20168
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
20169
|
+
mode: AlarmArmModeSchema,
|
|
20170
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20171
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
20172
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
20173
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20174
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20175
|
+
mode: AlarmArmModeSchema,
|
|
20176
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20177
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
20178
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
20179
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20180
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20181
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
20182
|
+
mode: AlarmArmModeSchema,
|
|
20183
|
+
deviceId: number$1().int().positive(),
|
|
20184
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
20185
|
+
nonBlocking: boolean()
|
|
20186
|
+
});
|
|
20206
20187
|
/**
|
|
20207
20188
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
20208
20189
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -20211,10 +20192,10 @@ object({
|
|
|
20211
20192
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
20212
20193
|
mode: AlarmArmModeSchema,
|
|
20213
20194
|
deviceIds: array(number$1().int()).max(200)
|
|
20214
|
-
})).max(8).refine(
|
|
20195
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
20215
20196
|
/**
|
|
20216
|
-
* The three durations
|
|
20217
|
-
* transitions, and which openings each mode tolerates.
|
|
20197
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
20198
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
20218
20199
|
*
|
|
20219
20200
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
20220
20201
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -20224,15 +20205,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
20224
20205
|
*/
|
|
20225
20206
|
var NcAlarmSettingsSchema = object({
|
|
20226
20207
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
20227
|
-
exitDelaySec:
|
|
20208
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
20228
20209
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
20229
|
-
entryDelaySec:
|
|
20210
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
20230
20211
|
/**
|
|
20231
20212
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
20232
20213
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
20233
20214
|
* existed, and therefore what an untouched install keeps doing.
|
|
20234
20215
|
*/
|
|
20235
|
-
triggeredDurationSec:
|
|
20216
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
20236
20217
|
/**
|
|
20237
20218
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
20238
20219
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -20255,17 +20236,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
20255
20236
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
20256
20237
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
20257
20238
|
*/
|
|
20258
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
20239
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
20240
|
+
/**
|
|
20241
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
20242
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
20243
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
20244
|
+
*/
|
|
20245
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
20259
20246
|
});
|
|
20260
20247
|
/**
|
|
20261
20248
|
* Every field optional — a tab edits one control at a time.
|
|
20262
20249
|
*
|
|
20263
|
-
* `nonBlocking`
|
|
20264
|
-
* remove an inner `.default()`, so a patch that never
|
|
20265
|
-
* parse to `
|
|
20266
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
20250
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
20251
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
20252
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
20253
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
20254
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
20267
20255
|
*/
|
|
20268
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20256
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
20257
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
20258
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
20259
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
20260
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
20261
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
20262
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
20269
20263
|
/**
|
|
20270
20264
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
20271
20265
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -20365,6 +20359,28 @@ var NcAlarmConfigSchema = object({
|
|
|
20365
20359
|
*/
|
|
20366
20360
|
live: NcAlarmLiveSchema.optional()
|
|
20367
20361
|
});
|
|
20362
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
20363
|
+
"open",
|
|
20364
|
+
"closed",
|
|
20365
|
+
"unknown",
|
|
20366
|
+
"not-opening"
|
|
20367
|
+
]);
|
|
20368
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
20369
|
+
var NcAlarmSensorStateSchema = object({
|
|
20370
|
+
deviceId: number$1().int().positive(),
|
|
20371
|
+
reading: NcAlarmSensorReadingSchema,
|
|
20372
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
20373
|
+
state: string().nullable(),
|
|
20374
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
20375
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
20376
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
20377
|
+
online: boolean().nullable()
|
|
20378
|
+
});
|
|
20379
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number$1().int().positive()).max(500) });
|
|
20380
|
+
var NcAlarmSensorsSchema = object({
|
|
20381
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
20382
|
+
readAt: number$1().int().nonnegative()
|
|
20383
|
+
});
|
|
20368
20384
|
/**
|
|
20369
20385
|
* ONE rule's demand on ONE camera's clip ring.
|
|
20370
20386
|
*
|
|
@@ -20455,7 +20471,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
20455
20471
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
20456
20472
|
kind: "mutation",
|
|
20457
20473
|
auth: "admin"
|
|
20458
|
-
});
|
|
20474
|
+
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
20459
20475
|
/**
|
|
20460
20476
|
* Zod schemas for persisted record types.
|
|
20461
20477
|
*
|
|
@@ -20802,12 +20818,26 @@ var CameraSensorRefSchema = object({
|
|
|
20802
20818
|
function cameraSensorRefKey(ref) {
|
|
20803
20819
|
return `${ref.addonId}/${ref.stableId}`;
|
|
20804
20820
|
}
|
|
20805
|
-
/**
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
|
|
20809
|
-
|
|
20810
|
-
|
|
20821
|
+
/**
|
|
20822
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
20823
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
20824
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
20825
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
20826
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
20827
|
+
*/
|
|
20828
|
+
var CameraSensorModeSchema = _enum([
|
|
20829
|
+
"in-addition",
|
|
20830
|
+
"confirm",
|
|
20831
|
+
"replace"
|
|
20832
|
+
]);
|
|
20833
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
20834
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
20835
|
+
/**
|
|
20836
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
20837
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
20838
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
20839
|
+
*/
|
|
20840
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
20811
20841
|
const seen = /* @__PURE__ */ new Set();
|
|
20812
20842
|
value.sensors.forEach((ref, index) => {
|
|
20813
20843
|
const key = cameraSensorRefKey(ref);
|
|
@@ -20819,39 +20849,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
20819
20849
|
seen.add(key);
|
|
20820
20850
|
});
|
|
20821
20851
|
});
|
|
20822
|
-
|
|
20852
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
20853
|
+
var AttachmentFields = {
|
|
20823
20854
|
addonId: string(),
|
|
20824
|
-
stableId: string()
|
|
20855
|
+
stableId: string(),
|
|
20856
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
20825
20857
|
};
|
|
20826
20858
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
20827
20859
|
object({
|
|
20828
|
-
...
|
|
20860
|
+
...AttachmentFields,
|
|
20829
20861
|
state: literal("ready"),
|
|
20830
20862
|
deviceId: number$1(),
|
|
20831
20863
|
name: string(),
|
|
20832
20864
|
caps: array(string()).readonly()
|
|
20833
20865
|
}),
|
|
20834
20866
|
object({
|
|
20835
|
-
...
|
|
20867
|
+
...AttachmentFields,
|
|
20836
20868
|
state: literal("offline"),
|
|
20837
20869
|
deviceId: number$1(),
|
|
20838
20870
|
name: string(),
|
|
20839
20871
|
reason: _enum(["offline", "disabled"])
|
|
20840
20872
|
}),
|
|
20841
20873
|
object({
|
|
20842
|
-
...
|
|
20874
|
+
...AttachmentFields,
|
|
20843
20875
|
state: literal("missing"),
|
|
20844
20876
|
reason: string()
|
|
20845
20877
|
}),
|
|
20846
20878
|
object({
|
|
20847
|
-
...
|
|
20879
|
+
...AttachmentFields,
|
|
20848
20880
|
state: literal("unsupported"),
|
|
20849
20881
|
deviceId: number$1(),
|
|
20850
20882
|
name: string(),
|
|
20851
20883
|
reason: string()
|
|
20852
20884
|
}),
|
|
20853
20885
|
object({
|
|
20854
|
-
...
|
|
20886
|
+
...AttachmentFields,
|
|
20855
20887
|
state: literal("unreadable"),
|
|
20856
20888
|
reason: string()
|
|
20857
20889
|
})
|
|
@@ -20864,17 +20896,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
20864
20896
|
* say.
|
|
20865
20897
|
*/
|
|
20866
20898
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
20899
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
20900
|
+
var CameraOwnMotionSchema = _enum([
|
|
20901
|
+
"always",
|
|
20902
|
+
"when-confirmed",
|
|
20903
|
+
"never"
|
|
20904
|
+
]);
|
|
20905
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
20906
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
20907
|
+
/**
|
|
20908
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
20909
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
20910
|
+
* so a view of the camera's own row reads this.
|
|
20911
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
20912
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
20913
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
20914
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
20915
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
20916
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
20917
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
20918
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
20919
|
+
*/
|
|
20920
|
+
var CameraRawLevelSchema = object({
|
|
20921
|
+
detected: boolean(),
|
|
20922
|
+
atMs: number$1()
|
|
20923
|
+
});
|
|
20867
20924
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
20868
|
-
object({
|
|
20925
|
+
object({
|
|
20926
|
+
state: literal("not-configured"),
|
|
20927
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20928
|
+
}),
|
|
20869
20929
|
object({
|
|
20870
20930
|
state: literal("unreadable"),
|
|
20871
|
-
reason: string()
|
|
20931
|
+
reason: string(),
|
|
20932
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20872
20933
|
}),
|
|
20873
20934
|
object({
|
|
20874
20935
|
state: literal("configured"),
|
|
20875
|
-
|
|
20936
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
20876
20937
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
20877
|
-
|
|
20938
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
20939
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
20940
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
20941
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
20878
20942
|
})
|
|
20879
20943
|
]);
|
|
20880
20944
|
Object.freeze({
|
|
@@ -21559,14 +21623,14 @@ var TrackSchema = object({
|
|
|
21559
21623
|
* `derive-returned-null tile=standin`,
|
|
21560
21624
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
21561
21625
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
21562
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
21626
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
21563
21627
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
21564
21628
|
*
|
|
21565
21629
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
21566
21630
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
21567
21631
|
* while its key frame missed carried no reason at all — three of the four
|
|
21568
21632
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
21569
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
21633
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
21570
21634
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
21571
21635
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
21572
21636
|
* tile ended up being.
|
|
@@ -21653,7 +21717,7 @@ var MotionEventSchema = object({
|
|
|
21653
21717
|
/**
|
|
21654
21718
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
21655
21719
|
* first entry is always `0`) of every genuine off→on transition the
|
|
21656
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
21720
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
21657
21721
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
21658
21722
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
21659
21723
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -22177,6 +22241,7 @@ var KeyEventSchema = object({
|
|
|
22177
22241
|
bestEventId: string(),
|
|
22178
22242
|
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
22179
22243
|
windowMs: number$1().optional(),
|
|
22244
|
+
audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
|
|
22180
22245
|
...TrackFlagFields,
|
|
22181
22246
|
...TrackRetrainFields
|
|
22182
22247
|
});
|
|
@@ -24065,8 +24130,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
24065
24130
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
24066
24131
|
* analyzer providers) running on decoded frames in this runner.
|
|
24067
24132
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
24068
|
-
* analytics). The provider emits ProviderMotion
|
|
24069
|
-
*
|
|
24133
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
24134
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
24135
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
24136
|
+
* `reportMotion`.
|
|
24070
24137
|
*/
|
|
24071
24138
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24072
24139
|
/**
|
|
@@ -24243,7 +24310,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24243
24310
|
hasGpu: boolean(),
|
|
24244
24311
|
inferenceBackend: string().optional(),
|
|
24245
24312
|
cpuCores: number$1().optional()
|
|
24246
|
-
})
|
|
24313
|
+
}),
|
|
24314
|
+
/**
|
|
24315
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
24316
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
24317
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
24318
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
24319
|
+
* writers.
|
|
24320
|
+
*/
|
|
24321
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
24247
24322
|
});
|
|
24248
24323
|
/**
|
|
24249
24324
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -26879,7 +26954,7 @@ var ClipPlaybackSchema = object({
|
|
|
26879
26954
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
26880
26955
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
26881
26956
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
26882
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
26957
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
26883
26958
|
* D558 "Considered and not taken").
|
|
26884
26959
|
*/
|
|
26885
26960
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -27140,7 +27215,7 @@ DeviceType.Camera, method(object({
|
|
|
27140
27215
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
27141
27216
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
27142
27217
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
27143
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
27218
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
27144
27219
|
* nothing to filter out of it.
|
|
27145
27220
|
*/
|
|
27146
27221
|
provider: string().min(1)
|
|
@@ -29084,6 +29159,17 @@ object({
|
|
|
29084
29159
|
deviceId: number$1(),
|
|
29085
29160
|
status: DeviceStatusSchema
|
|
29086
29161
|
});
|
|
29162
|
+
object({
|
|
29163
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
29164
|
+
lastPressedAt: number$1().nullable(),
|
|
29165
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
29166
|
+
pressCountSinceStart: number$1()
|
|
29167
|
+
});
|
|
29168
|
+
object({
|
|
29169
|
+
deviceId: number$1(),
|
|
29170
|
+
timestamp: number$1()
|
|
29171
|
+
});
|
|
29172
|
+
DeviceType.Button, DeviceType.Camera;
|
|
29087
29173
|
/**
|
|
29088
29174
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
29089
29175
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -30728,9 +30814,9 @@ object({
|
|
|
30728
30814
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
30729
30815
|
lastDetectedAt: number$1().nullable(),
|
|
30730
30816
|
/**
|
|
30731
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
30732
|
-
* `null` while false and on every `Sensor`
|
|
30733
|
-
* constant's doc for the one-authority rule.
|
|
30817
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
30818
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
30819
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
30734
30820
|
*
|
|
30735
30821
|
* ## Reading this field still arms nothing
|
|
30736
30822
|
*
|
|
@@ -30748,38 +30834,41 @@ object({
|
|
|
30748
30834
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
30749
30835
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
30750
30836
|
*
|
|
30751
|
-
* ## Who writes it
|
|
30837
|
+
* ## Who writes it (D696)
|
|
30752
30838
|
*
|
|
30753
|
-
* - **Cameras** — the
|
|
30754
|
-
*
|
|
30755
|
-
* `
|
|
30756
|
-
* `
|
|
30757
|
-
*
|
|
30758
|
-
*
|
|
30759
|
-
* a
|
|
30760
|
-
*
|
|
30761
|
-
*
|
|
30762
|
-
*
|
|
30839
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
30840
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
30841
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
30842
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
30843
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
30844
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
30845
|
+
* that never sends a clear falls one window after its last `true`.
|
|
30846
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
30847
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
30848
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
30849
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
30850
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
30851
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
30852
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
30853
|
+
* system's own state change. That is the sensor's own fact.
|
|
30763
30854
|
*
|
|
30764
|
-
*
|
|
30855
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
30856
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
30765
30857
|
*
|
|
30766
|
-
*
|
|
30767
|
-
*
|
|
30768
|
-
*
|
|
30769
|
-
* `
|
|
30770
|
-
* Hikvision's comment says why: it read THIS docblock, agreed the
|
|
30771
|
-
* runner is canonical, and wrote anyway to avoid per-tick churn. So
|
|
30772
|
-
* two authorities can disagree about one slice, which this repo
|
|
30773
|
-
* forbids, and the doc said otherwise — which is worse than saying
|
|
30774
|
-
* nothing, because it reads as verification.
|
|
30775
|
-
*
|
|
30776
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
30777
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
30778
|
-
* "sole writer" wording without also removing the other writers.
|
|
30858
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
30859
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
30860
|
+
* it, every provider seeded it at boot, and every session left it
|
|
30861
|
+
* `detected: true` after its detach.
|
|
30779
30862
|
*/
|
|
30780
30863
|
autoClearAfterMs: number$1().nullable()
|
|
30781
30864
|
});
|
|
30782
|
-
|
|
30865
|
+
/**
|
|
30866
|
+
* Payload of `motion.onMotionChanged` event + the corresponding bus
|
|
30867
|
+
* event `EventCategory.MotionOnMotionChanged`. Single source of truth
|
|
30868
|
+
* — both the cap event surface and the bus payload type alias to this
|
|
30869
|
+
* schema.
|
|
30870
|
+
*/
|
|
30871
|
+
var MotionOnMotionChangedDataSchema = object({
|
|
30783
30872
|
deviceId: number$1(),
|
|
30784
30873
|
detected: boolean(),
|
|
30785
30874
|
timestamp: number$1(),
|
|
@@ -33244,7 +33333,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
33244
33333
|
/**
|
|
33245
33334
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
33246
33335
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
33247
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
33336
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
33248
33337
|
* a replay needs several seconds of native pixels, not one frame.
|
|
33249
33338
|
*
|
|
33250
33339
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -35860,6 +35949,7 @@ DeviceType.Camera, method(object({
|
|
|
35860
35949
|
detection: array(ZoneRuleSchema).readonly(),
|
|
35861
35950
|
package: array(ZoneRuleSchema).readonly()
|
|
35862
35951
|
});
|
|
35952
|
+
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
35863
35953
|
/**
|
|
35864
35954
|
* Accessory device helpers — shared across drivers.
|
|
35865
35955
|
*
|
|
@@ -40838,6 +40928,12 @@ Object.freeze({
|
|
|
40838
40928
|
addonId: null,
|
|
40839
40929
|
access: "view"
|
|
40840
40930
|
},
|
|
40931
|
+
"notificationRules.getAlarmSensors": {
|
|
40932
|
+
capName: "notification-rules",
|
|
40933
|
+
capScope: "system",
|
|
40934
|
+
addonId: null,
|
|
40935
|
+
access: "view"
|
|
40936
|
+
},
|
|
40841
40937
|
"notificationRules.getClipRetentionAsks": {
|
|
40842
40938
|
capName: "notification-rules",
|
|
40843
40939
|
capScope: "system",
|
|
@@ -44416,6 +44512,11 @@ Object.freeze({
|
|
|
44416
44512
|
}
|
|
44417
44513
|
});
|
|
44418
44514
|
Object.freeze({
|
|
44515
|
+
"accessories.getStatus": [{
|
|
44516
|
+
name: "deviceId",
|
|
44517
|
+
form: "single",
|
|
44518
|
+
optional: false
|
|
44519
|
+
}],
|
|
44419
44520
|
"accessories.setChildHidden": [{
|
|
44420
44521
|
name: "childDeviceId",
|
|
44421
44522
|
form: "single",
|
|
@@ -44435,6 +44536,11 @@ Object.freeze({
|
|
|
44435
44536
|
form: "single",
|
|
44436
44537
|
optional: false
|
|
44437
44538
|
}],
|
|
44539
|
+
"airQualitySensor.getStatus": [{
|
|
44540
|
+
name: "deviceId",
|
|
44541
|
+
form: "single",
|
|
44542
|
+
optional: false
|
|
44543
|
+
}],
|
|
44438
44544
|
"alarmPanel.arm": [{
|
|
44439
44545
|
name: "deviceId",
|
|
44440
44546
|
form: "single",
|
|
@@ -44445,11 +44551,36 @@ Object.freeze({
|
|
|
44445
44551
|
form: "single",
|
|
44446
44552
|
optional: false
|
|
44447
44553
|
}],
|
|
44554
|
+
"alarmPanel.getStatus": [{
|
|
44555
|
+
name: "deviceId",
|
|
44556
|
+
form: "single",
|
|
44557
|
+
optional: false
|
|
44558
|
+
}],
|
|
44448
44559
|
"alarmPanel.trigger": [{
|
|
44449
44560
|
name: "deviceId",
|
|
44450
44561
|
form: "single",
|
|
44451
44562
|
optional: false
|
|
44452
44563
|
}],
|
|
44564
|
+
"ambientLightSensor.getStatus": [{
|
|
44565
|
+
name: "deviceId",
|
|
44566
|
+
form: "single",
|
|
44567
|
+
optional: false
|
|
44568
|
+
}],
|
|
44569
|
+
"audioAnalysis.applyDeviceSettingsPatch": [{
|
|
44570
|
+
name: "deviceId",
|
|
44571
|
+
form: "single",
|
|
44572
|
+
optional: false
|
|
44573
|
+
}],
|
|
44574
|
+
"audioAnalysis.getDeviceLiveContribution": [{
|
|
44575
|
+
name: "deviceId",
|
|
44576
|
+
form: "single",
|
|
44577
|
+
optional: false
|
|
44578
|
+
}],
|
|
44579
|
+
"audioAnalysis.getDeviceSettingsContribution": [{
|
|
44580
|
+
name: "deviceId",
|
|
44581
|
+
form: "single",
|
|
44582
|
+
optional: false
|
|
44583
|
+
}],
|
|
44453
44584
|
"audioAnalysis.resolveDeviceSettings": [{
|
|
44454
44585
|
name: "deviceId",
|
|
44455
44586
|
form: "single",
|
|
@@ -44490,16 +44621,36 @@ Object.freeze({
|
|
|
44490
44621
|
form: "single",
|
|
44491
44622
|
optional: false
|
|
44492
44623
|
}],
|
|
44624
|
+
"automationControl.getStatus": [{
|
|
44625
|
+
name: "deviceId",
|
|
44626
|
+
form: "single",
|
|
44627
|
+
optional: false
|
|
44628
|
+
}],
|
|
44493
44629
|
"automationControl.trigger": [{
|
|
44494
44630
|
name: "deviceId",
|
|
44495
44631
|
form: "single",
|
|
44496
44632
|
optional: false
|
|
44497
44633
|
}],
|
|
44634
|
+
"battery.getStatus": [{
|
|
44635
|
+
name: "deviceId",
|
|
44636
|
+
form: "single",
|
|
44637
|
+
optional: false
|
|
44638
|
+
}],
|
|
44498
44639
|
"battery.wakeForStream": [{
|
|
44499
44640
|
name: "deviceId",
|
|
44500
44641
|
form: "single",
|
|
44501
44642
|
optional: false
|
|
44502
44643
|
}],
|
|
44644
|
+
"binary.getStatus": [{
|
|
44645
|
+
name: "deviceId",
|
|
44646
|
+
form: "single",
|
|
44647
|
+
optional: false
|
|
44648
|
+
}],
|
|
44649
|
+
"brightness.getStatus": [{
|
|
44650
|
+
name: "deviceId",
|
|
44651
|
+
form: "single",
|
|
44652
|
+
optional: false
|
|
44653
|
+
}],
|
|
44503
44654
|
"brightness.setBrightness": [{
|
|
44504
44655
|
name: "deviceId",
|
|
44505
44656
|
form: "single",
|
|
@@ -44515,6 +44666,26 @@ Object.freeze({
|
|
|
44515
44666
|
form: "single",
|
|
44516
44667
|
optional: false
|
|
44517
44668
|
}],
|
|
44669
|
+
"cameraCredentials.getStatus": [{
|
|
44670
|
+
name: "deviceId",
|
|
44671
|
+
form: "single",
|
|
44672
|
+
optional: false
|
|
44673
|
+
}],
|
|
44674
|
+
"cameraGridLayout.applyDeviceSettingsPatch": [{
|
|
44675
|
+
name: "deviceId",
|
|
44676
|
+
form: "single",
|
|
44677
|
+
optional: false
|
|
44678
|
+
}],
|
|
44679
|
+
"cameraGridLayout.getDeviceLiveContribution": [{
|
|
44680
|
+
name: "deviceId",
|
|
44681
|
+
form: "single",
|
|
44682
|
+
optional: false
|
|
44683
|
+
}],
|
|
44684
|
+
"cameraGridLayout.getDeviceSettingsContribution": [{
|
|
44685
|
+
name: "deviceId",
|
|
44686
|
+
form: "single",
|
|
44687
|
+
optional: false
|
|
44688
|
+
}],
|
|
44518
44689
|
"cameraGridLayout.getLayout": [{
|
|
44519
44690
|
name: "deviceId",
|
|
44520
44691
|
form: "single",
|
|
@@ -44530,6 +44701,21 @@ Object.freeze({
|
|
|
44530
44701
|
form: "single",
|
|
44531
44702
|
optional: false
|
|
44532
44703
|
}],
|
|
44704
|
+
"cameraPipelineConfig.applyDeviceSettingsPatch": [{
|
|
44705
|
+
name: "deviceId",
|
|
44706
|
+
form: "single",
|
|
44707
|
+
optional: false
|
|
44708
|
+
}],
|
|
44709
|
+
"cameraPipelineConfig.getDeviceLiveContribution": [{
|
|
44710
|
+
name: "deviceId",
|
|
44711
|
+
form: "single",
|
|
44712
|
+
optional: false
|
|
44713
|
+
}],
|
|
44714
|
+
"cameraPipelineConfig.getDeviceSettingsContribution": [{
|
|
44715
|
+
name: "deviceId",
|
|
44716
|
+
form: "single",
|
|
44717
|
+
optional: false
|
|
44718
|
+
}],
|
|
44533
44719
|
"cameraStreams.getBrokerStreams": [{
|
|
44534
44720
|
name: "deviceId",
|
|
44535
44721
|
form: "single",
|
|
@@ -44555,6 +44741,16 @@ Object.freeze({
|
|
|
44555
44741
|
form: "single",
|
|
44556
44742
|
optional: false
|
|
44557
44743
|
}],
|
|
44744
|
+
"carbonMonoxide.getStatus": [{
|
|
44745
|
+
name: "deviceId",
|
|
44746
|
+
form: "single",
|
|
44747
|
+
optional: false
|
|
44748
|
+
}],
|
|
44749
|
+
"climateControl.getStatus": [{
|
|
44750
|
+
name: "deviceId",
|
|
44751
|
+
form: "single",
|
|
44752
|
+
optional: false
|
|
44753
|
+
}],
|
|
44558
44754
|
"climateControl.setFanMode": [{
|
|
44559
44755
|
name: "deviceId",
|
|
44560
44756
|
form: "single",
|
|
@@ -44595,16 +44791,41 @@ Object.freeze({
|
|
|
44595
44791
|
form: "single",
|
|
44596
44792
|
optional: false
|
|
44597
44793
|
}],
|
|
44794
|
+
"color.getStatus": [{
|
|
44795
|
+
name: "deviceId",
|
|
44796
|
+
form: "single",
|
|
44797
|
+
optional: false
|
|
44798
|
+
}],
|
|
44598
44799
|
"color.setColor": [{
|
|
44599
44800
|
name: "deviceId",
|
|
44600
44801
|
form: "single",
|
|
44601
44802
|
optional: false
|
|
44602
44803
|
}],
|
|
44804
|
+
"connectivity.getStatus": [{
|
|
44805
|
+
name: "deviceId",
|
|
44806
|
+
form: "single",
|
|
44807
|
+
optional: false
|
|
44808
|
+
}],
|
|
44809
|
+
"consumables.getStatus": [{
|
|
44810
|
+
name: "deviceId",
|
|
44811
|
+
form: "single",
|
|
44812
|
+
optional: false
|
|
44813
|
+
}],
|
|
44603
44814
|
"consumables.reset": [{
|
|
44604
44815
|
name: "deviceId",
|
|
44605
44816
|
form: "single",
|
|
44606
44817
|
optional: false
|
|
44607
44818
|
}],
|
|
44819
|
+
"contact.getStatus": [{
|
|
44820
|
+
name: "deviceId",
|
|
44821
|
+
form: "single",
|
|
44822
|
+
optional: false
|
|
44823
|
+
}],
|
|
44824
|
+
"control.getStatus": [{
|
|
44825
|
+
name: "deviceId",
|
|
44826
|
+
form: "single",
|
|
44827
|
+
optional: false
|
|
44828
|
+
}],
|
|
44608
44829
|
"control.setValue": [{
|
|
44609
44830
|
name: "deviceId",
|
|
44610
44831
|
form: "single",
|
|
@@ -44615,6 +44836,11 @@ Object.freeze({
|
|
|
44615
44836
|
form: "single",
|
|
44616
44837
|
optional: false
|
|
44617
44838
|
}],
|
|
44839
|
+
"cover.getStatus": [{
|
|
44840
|
+
name: "deviceId",
|
|
44841
|
+
form: "single",
|
|
44842
|
+
optional: false
|
|
44843
|
+
}],
|
|
44618
44844
|
"cover.open": [{
|
|
44619
44845
|
name: "deviceId",
|
|
44620
44846
|
form: "single",
|
|
@@ -44640,6 +44866,11 @@ Object.freeze({
|
|
|
44640
44866
|
form: "single",
|
|
44641
44867
|
optional: false
|
|
44642
44868
|
}],
|
|
44869
|
+
"dayNight.getStatus": [{
|
|
44870
|
+
name: "deviceId",
|
|
44871
|
+
form: "single",
|
|
44872
|
+
optional: false
|
|
44873
|
+
}],
|
|
44643
44874
|
"dayNight.setSettings": [{
|
|
44644
44875
|
name: "deviceId",
|
|
44645
44876
|
form: "single",
|
|
@@ -44650,11 +44881,31 @@ Object.freeze({
|
|
|
44650
44881
|
form: "single",
|
|
44651
44882
|
optional: true
|
|
44652
44883
|
}],
|
|
44884
|
+
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
44885
|
+
name: "deviceId",
|
|
44886
|
+
form: "single",
|
|
44887
|
+
optional: false
|
|
44888
|
+
}],
|
|
44889
|
+
"detectionPipeline.getDeviceLiveContribution": [{
|
|
44890
|
+
name: "deviceId",
|
|
44891
|
+
form: "single",
|
|
44892
|
+
optional: false
|
|
44893
|
+
}],
|
|
44894
|
+
"detectionPipeline.getDeviceSettingsContribution": [{
|
|
44895
|
+
name: "deviceId",
|
|
44896
|
+
form: "single",
|
|
44897
|
+
optional: false
|
|
44898
|
+
}],
|
|
44653
44899
|
"deviceAdminLink.getAdminLink": [{
|
|
44654
44900
|
name: "deviceId",
|
|
44655
44901
|
form: "single",
|
|
44656
44902
|
optional: false
|
|
44657
44903
|
}],
|
|
44904
|
+
"deviceAdoption.getStatus": [{
|
|
44905
|
+
name: "deviceId",
|
|
44906
|
+
form: "single",
|
|
44907
|
+
optional: false
|
|
44908
|
+
}],
|
|
44658
44909
|
"deviceAdoption.release": [{
|
|
44659
44910
|
name: "camDeviceId",
|
|
44660
44911
|
form: "single",
|
|
@@ -44670,6 +44921,11 @@ Object.freeze({
|
|
|
44670
44921
|
form: "single",
|
|
44671
44922
|
optional: false
|
|
44672
44923
|
}],
|
|
44924
|
+
"deviceDiscovery.getStatus": [{
|
|
44925
|
+
name: "deviceId",
|
|
44926
|
+
form: "single",
|
|
44927
|
+
optional: false
|
|
44928
|
+
}],
|
|
44673
44929
|
"deviceDiscovery.listDiscovered": [{
|
|
44674
44930
|
name: "deviceId",
|
|
44675
44931
|
form: "single",
|
|
@@ -44689,6 +44945,21 @@ Object.freeze({
|
|
|
44689
44945
|
form: "single",
|
|
44690
44946
|
optional: false
|
|
44691
44947
|
}],
|
|
44948
|
+
"deviceExport.applyDeviceSettingsPatch": [{
|
|
44949
|
+
name: "deviceId",
|
|
44950
|
+
form: "single",
|
|
44951
|
+
optional: false
|
|
44952
|
+
}],
|
|
44953
|
+
"deviceExport.getDeviceLiveContribution": [{
|
|
44954
|
+
name: "deviceId",
|
|
44955
|
+
form: "single",
|
|
44956
|
+
optional: false
|
|
44957
|
+
}],
|
|
44958
|
+
"deviceExport.getDeviceSettingsContribution": [{
|
|
44959
|
+
name: "deviceId",
|
|
44960
|
+
form: "single",
|
|
44961
|
+
optional: false
|
|
44962
|
+
}],
|
|
44692
44963
|
"deviceExtension.listCandidates": [{
|
|
44693
44964
|
name: "deviceId",
|
|
44694
44965
|
form: "single",
|
|
@@ -45037,6 +45308,26 @@ Object.freeze({
|
|
|
45037
45308
|
form: "single",
|
|
45038
45309
|
optional: false
|
|
45039
45310
|
}],
|
|
45311
|
+
"deviceStatus.getStatus": [{
|
|
45312
|
+
name: "deviceId",
|
|
45313
|
+
form: "single",
|
|
45314
|
+
optional: false
|
|
45315
|
+
}],
|
|
45316
|
+
"doorbell.getStatus": [{
|
|
45317
|
+
name: "deviceId",
|
|
45318
|
+
form: "single",
|
|
45319
|
+
optional: false
|
|
45320
|
+
}],
|
|
45321
|
+
"enumSensor.getStatus": [{
|
|
45322
|
+
name: "deviceId",
|
|
45323
|
+
form: "single",
|
|
45324
|
+
optional: false
|
|
45325
|
+
}],
|
|
45326
|
+
"eventEmitter.getStatus": [{
|
|
45327
|
+
name: "deviceId",
|
|
45328
|
+
form: "single",
|
|
45329
|
+
optional: false
|
|
45330
|
+
}],
|
|
45040
45331
|
"faceGallery.getFaceByTrack": [{
|
|
45041
45332
|
name: "deviceId",
|
|
45042
45333
|
form: "single",
|
|
@@ -45051,6 +45342,11 @@ Object.freeze({
|
|
|
45051
45342
|
form: "array",
|
|
45052
45343
|
optional: true
|
|
45053
45344
|
}],
|
|
45345
|
+
"fanControl.getStatus": [{
|
|
45346
|
+
name: "deviceId",
|
|
45347
|
+
form: "single",
|
|
45348
|
+
optional: false
|
|
45349
|
+
}],
|
|
45054
45350
|
"fanControl.setDirection": [{
|
|
45055
45351
|
name: "deviceId",
|
|
45056
45352
|
form: "single",
|
|
@@ -45071,6 +45367,26 @@ Object.freeze({
|
|
|
45071
45367
|
form: "single",
|
|
45072
45368
|
optional: false
|
|
45073
45369
|
}],
|
|
45370
|
+
"featureProbe.getStatus": [{
|
|
45371
|
+
name: "deviceId",
|
|
45372
|
+
form: "single",
|
|
45373
|
+
optional: false
|
|
45374
|
+
}],
|
|
45375
|
+
"flood.getStatus": [{
|
|
45376
|
+
name: "deviceId",
|
|
45377
|
+
form: "single",
|
|
45378
|
+
optional: false
|
|
45379
|
+
}],
|
|
45380
|
+
"gas.getStatus": [{
|
|
45381
|
+
name: "deviceId",
|
|
45382
|
+
form: "single",
|
|
45383
|
+
optional: false
|
|
45384
|
+
}],
|
|
45385
|
+
"humidifier.getStatus": [{
|
|
45386
|
+
name: "deviceId",
|
|
45387
|
+
form: "single",
|
|
45388
|
+
optional: false
|
|
45389
|
+
}],
|
|
45074
45390
|
"humidifier.setMode": [{
|
|
45075
45391
|
name: "deviceId",
|
|
45076
45392
|
form: "single",
|
|
@@ -45086,11 +45402,26 @@ Object.freeze({
|
|
|
45086
45402
|
form: "single",
|
|
45087
45403
|
optional: false
|
|
45088
45404
|
}],
|
|
45405
|
+
"humiditySensor.getStatus": [{
|
|
45406
|
+
name: "deviceId",
|
|
45407
|
+
form: "single",
|
|
45408
|
+
optional: false
|
|
45409
|
+
}],
|
|
45410
|
+
"image.getStatus": [{
|
|
45411
|
+
name: "deviceId",
|
|
45412
|
+
form: "single",
|
|
45413
|
+
optional: false
|
|
45414
|
+
}],
|
|
45089
45415
|
"imageSettings.getOptions": [{
|
|
45090
45416
|
name: "deviceId",
|
|
45091
45417
|
form: "single",
|
|
45092
45418
|
optional: false
|
|
45093
45419
|
}],
|
|
45420
|
+
"imageSettings.getStatus": [{
|
|
45421
|
+
name: "deviceId",
|
|
45422
|
+
form: "single",
|
|
45423
|
+
optional: false
|
|
45424
|
+
}],
|
|
45094
45425
|
"imageSettings.setSettings": [{
|
|
45095
45426
|
name: "deviceId",
|
|
45096
45427
|
form: "single",
|
|
@@ -45101,6 +45432,11 @@ Object.freeze({
|
|
|
45101
45432
|
form: "single",
|
|
45102
45433
|
optional: false
|
|
45103
45434
|
}],
|
|
45435
|
+
"intercom.getStatus": [{
|
|
45436
|
+
name: "deviceId",
|
|
45437
|
+
form: "single",
|
|
45438
|
+
optional: false
|
|
45439
|
+
}],
|
|
45104
45440
|
"intercom.handleAnswer": [{
|
|
45105
45441
|
name: "deviceId",
|
|
45106
45442
|
form: "single",
|
|
@@ -45131,6 +45467,11 @@ Object.freeze({
|
|
|
45131
45467
|
form: "single",
|
|
45132
45468
|
optional: false
|
|
45133
45469
|
}],
|
|
45470
|
+
"lawnMowerControl.getStatus": [{
|
|
45471
|
+
name: "deviceId",
|
|
45472
|
+
form: "single",
|
|
45473
|
+
optional: false
|
|
45474
|
+
}],
|
|
45134
45475
|
"lawnMowerControl.pause": [{
|
|
45135
45476
|
name: "deviceId",
|
|
45136
45477
|
form: "single",
|
|
@@ -45141,6 +45482,11 @@ Object.freeze({
|
|
|
45141
45482
|
form: "single",
|
|
45142
45483
|
optional: false
|
|
45143
45484
|
}],
|
|
45485
|
+
"lockControl.getStatus": [{
|
|
45486
|
+
name: "deviceId",
|
|
45487
|
+
form: "single",
|
|
45488
|
+
optional: false
|
|
45489
|
+
}],
|
|
45144
45490
|
"lockControl.lock": [{
|
|
45145
45491
|
name: "deviceId",
|
|
45146
45492
|
form: "single",
|
|
@@ -45156,6 +45502,11 @@ Object.freeze({
|
|
|
45156
45502
|
form: "single",
|
|
45157
45503
|
optional: false
|
|
45158
45504
|
}],
|
|
45505
|
+
"mediaPlayer.getStatus": [{
|
|
45506
|
+
name: "deviceId",
|
|
45507
|
+
form: "single",
|
|
45508
|
+
optional: false
|
|
45509
|
+
}],
|
|
45159
45510
|
"mediaPlayer.next": [{
|
|
45160
45511
|
name: "deviceId",
|
|
45161
45512
|
form: "single",
|
|
@@ -45216,6 +45567,11 @@ Object.freeze({
|
|
|
45216
45567
|
form: "single",
|
|
45217
45568
|
optional: false
|
|
45218
45569
|
}],
|
|
45570
|
+
"motion.getStatus": [{
|
|
45571
|
+
name: "deviceId",
|
|
45572
|
+
form: "single",
|
|
45573
|
+
optional: false
|
|
45574
|
+
}],
|
|
45219
45575
|
"motion.isDetected": [{
|
|
45220
45576
|
name: "deviceId",
|
|
45221
45577
|
form: "single",
|
|
@@ -45226,11 +45582,31 @@ Object.freeze({
|
|
|
45226
45582
|
form: "single",
|
|
45227
45583
|
optional: false
|
|
45228
45584
|
}],
|
|
45585
|
+
"motionDetection.applyDeviceSettingsPatch": [{
|
|
45586
|
+
name: "deviceId",
|
|
45587
|
+
form: "single",
|
|
45588
|
+
optional: false
|
|
45589
|
+
}],
|
|
45590
|
+
"motionDetection.getDeviceLiveContribution": [{
|
|
45591
|
+
name: "deviceId",
|
|
45592
|
+
form: "single",
|
|
45593
|
+
optional: false
|
|
45594
|
+
}],
|
|
45595
|
+
"motionDetection.getDeviceSettingsContribution": [{
|
|
45596
|
+
name: "deviceId",
|
|
45597
|
+
form: "single",
|
|
45598
|
+
optional: false
|
|
45599
|
+
}],
|
|
45229
45600
|
"motionDetection.removeCamera": [{
|
|
45230
45601
|
name: "deviceId",
|
|
45231
45602
|
form: "single",
|
|
45232
45603
|
optional: false
|
|
45233
45604
|
}],
|
|
45605
|
+
"motionTrigger.getStatus": [{
|
|
45606
|
+
name: "deviceId",
|
|
45607
|
+
form: "single",
|
|
45608
|
+
optional: false
|
|
45609
|
+
}],
|
|
45234
45610
|
"motionTrigger.setMotionTrigger": [{
|
|
45235
45611
|
name: "deviceId",
|
|
45236
45612
|
form: "single",
|
|
@@ -45241,6 +45617,11 @@ Object.freeze({
|
|
|
45241
45617
|
form: "single",
|
|
45242
45618
|
optional: false
|
|
45243
45619
|
}],
|
|
45620
|
+
"motionZones.getStatus": [{
|
|
45621
|
+
name: "deviceId",
|
|
45622
|
+
form: "single",
|
|
45623
|
+
optional: false
|
|
45624
|
+
}],
|
|
45244
45625
|
"motionZones.setZone": [{
|
|
45245
45626
|
name: "deviceId",
|
|
45246
45627
|
form: "single",
|
|
@@ -45251,6 +45632,11 @@ Object.freeze({
|
|
|
45251
45632
|
form: "single",
|
|
45252
45633
|
optional: false
|
|
45253
45634
|
}],
|
|
45635
|
+
"nativeObjectDetection.getStatus": [{
|
|
45636
|
+
name: "deviceId",
|
|
45637
|
+
form: "single",
|
|
45638
|
+
optional: false
|
|
45639
|
+
}],
|
|
45254
45640
|
"nativeObjectDetection.setEnabled": [{
|
|
45255
45641
|
name: "deviceId",
|
|
45256
45642
|
form: "single",
|
|
@@ -45266,6 +45652,11 @@ Object.freeze({
|
|
|
45266
45652
|
form: "single",
|
|
45267
45653
|
optional: false
|
|
45268
45654
|
}],
|
|
45655
|
+
"navigation.getStatus": [{
|
|
45656
|
+
name: "deviceId",
|
|
45657
|
+
form: "single",
|
|
45658
|
+
optional: false
|
|
45659
|
+
}],
|
|
45269
45660
|
"navigation.goToPoint": [{
|
|
45270
45661
|
name: "deviceId",
|
|
45271
45662
|
form: "single",
|
|
@@ -45311,6 +45702,11 @@ Object.freeze({
|
|
|
45311
45702
|
form: "single",
|
|
45312
45703
|
optional: false
|
|
45313
45704
|
}],
|
|
45705
|
+
"networkLink.getStatus": [{
|
|
45706
|
+
name: "deviceId",
|
|
45707
|
+
form: "single",
|
|
45708
|
+
optional: false
|
|
45709
|
+
}],
|
|
45314
45710
|
"networkQuality.getDeviceStats": [{
|
|
45315
45711
|
name: "deviceId",
|
|
45316
45712
|
form: "single",
|
|
@@ -45321,6 +45717,11 @@ Object.freeze({
|
|
|
45321
45717
|
form: "single",
|
|
45322
45718
|
optional: false
|
|
45323
45719
|
}],
|
|
45720
|
+
"notificationRules.getAlarmSensors": [{
|
|
45721
|
+
name: "deviceIds",
|
|
45722
|
+
form: "array",
|
|
45723
|
+
optional: false
|
|
45724
|
+
}],
|
|
45324
45725
|
"notificationRules.setDeviceMuted": [{
|
|
45325
45726
|
name: "deviceId",
|
|
45326
45727
|
form: "single",
|
|
@@ -45331,11 +45732,26 @@ Object.freeze({
|
|
|
45331
45732
|
form: "single",
|
|
45332
45733
|
optional: false
|
|
45333
45734
|
}],
|
|
45735
|
+
"notifier.getStatus": [{
|
|
45736
|
+
name: "deviceId",
|
|
45737
|
+
form: "single",
|
|
45738
|
+
optional: false
|
|
45739
|
+
}],
|
|
45334
45740
|
"notifier.send": [{
|
|
45335
45741
|
name: "deviceId",
|
|
45336
45742
|
form: "single",
|
|
45337
45743
|
optional: false
|
|
45338
45744
|
}],
|
|
45745
|
+
"numericSensor.getStatus": [{
|
|
45746
|
+
name: "deviceId",
|
|
45747
|
+
form: "single",
|
|
45748
|
+
optional: false
|
|
45749
|
+
}],
|
|
45750
|
+
"osd.getStatus": [{
|
|
45751
|
+
name: "deviceId",
|
|
45752
|
+
form: "single",
|
|
45753
|
+
optional: false
|
|
45754
|
+
}],
|
|
45339
45755
|
"osd.setOverlay": [{
|
|
45340
45756
|
name: "deviceId",
|
|
45341
45757
|
form: "single",
|
|
@@ -45395,6 +45811,11 @@ Object.freeze({
|
|
|
45395
45811
|
form: "single",
|
|
45396
45812
|
optional: false
|
|
45397
45813
|
}],
|
|
45814
|
+
"petFeeder.getStatus": [{
|
|
45815
|
+
name: "deviceId",
|
|
45816
|
+
form: "single",
|
|
45817
|
+
optional: false
|
|
45818
|
+
}],
|
|
45398
45819
|
"petFeeder.markFoodReplenished": [{
|
|
45399
45820
|
name: "deviceId",
|
|
45400
45821
|
form: "single",
|
|
@@ -45430,6 +45851,11 @@ Object.freeze({
|
|
|
45430
45851
|
form: "single",
|
|
45431
45852
|
optional: false
|
|
45432
45853
|
}],
|
|
45854
|
+
"pipelineAnalytics.applyDeviceSettingsPatch": [{
|
|
45855
|
+
name: "deviceId",
|
|
45856
|
+
form: "single",
|
|
45857
|
+
optional: false
|
|
45858
|
+
}],
|
|
45433
45859
|
"pipelineAnalytics.clearTrackRelation": [{
|
|
45434
45860
|
name: "deviceId",
|
|
45435
45861
|
form: "single",
|
|
@@ -45470,6 +45896,16 @@ Object.freeze({
|
|
|
45470
45896
|
form: "single",
|
|
45471
45897
|
optional: false
|
|
45472
45898
|
}],
|
|
45899
|
+
"pipelineAnalytics.getDeviceLiveContribution": [{
|
|
45900
|
+
name: "deviceId",
|
|
45901
|
+
form: "single",
|
|
45902
|
+
optional: false
|
|
45903
|
+
}],
|
|
45904
|
+
"pipelineAnalytics.getDeviceSettingsContribution": [{
|
|
45905
|
+
name: "deviceId",
|
|
45906
|
+
form: "single",
|
|
45907
|
+
optional: false
|
|
45908
|
+
}],
|
|
45473
45909
|
"pipelineAnalytics.getEventDensity": [{
|
|
45474
45910
|
name: "deviceId",
|
|
45475
45911
|
form: "single",
|
|
@@ -45685,6 +46121,11 @@ Object.freeze({
|
|
|
45685
46121
|
form: "single",
|
|
45686
46122
|
optional: true
|
|
45687
46123
|
}],
|
|
46124
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": [{
|
|
46125
|
+
name: "deviceId",
|
|
46126
|
+
form: "single",
|
|
46127
|
+
optional: false
|
|
46128
|
+
}],
|
|
45688
46129
|
"pipelineOrchestrator.assignAudio": [{
|
|
45689
46130
|
name: "deviceId",
|
|
45690
46131
|
form: "single",
|
|
@@ -45730,6 +46171,16 @@ Object.freeze({
|
|
|
45730
46171
|
form: "single",
|
|
45731
46172
|
optional: false
|
|
45732
46173
|
}],
|
|
46174
|
+
"pipelineOrchestrator.getDeviceLiveContribution": [{
|
|
46175
|
+
name: "deviceId",
|
|
46176
|
+
form: "single",
|
|
46177
|
+
optional: false
|
|
46178
|
+
}],
|
|
46179
|
+
"pipelineOrchestrator.getDeviceSettingsContribution": [{
|
|
46180
|
+
name: "deviceId",
|
|
46181
|
+
form: "single",
|
|
46182
|
+
optional: false
|
|
46183
|
+
}],
|
|
45733
46184
|
"pipelineOrchestrator.getPipelineAssignment": [{
|
|
45734
46185
|
name: "deviceId",
|
|
45735
46186
|
form: "single",
|
|
@@ -45850,11 +46301,31 @@ Object.freeze({
|
|
|
45850
46301
|
form: "single",
|
|
45851
46302
|
optional: true
|
|
45852
46303
|
}],
|
|
46304
|
+
"powerMeter.getStatus": [{
|
|
46305
|
+
name: "deviceId",
|
|
46306
|
+
form: "single",
|
|
46307
|
+
optional: false
|
|
46308
|
+
}],
|
|
46309
|
+
"presence.getStatus": [{
|
|
46310
|
+
name: "deviceId",
|
|
46311
|
+
form: "single",
|
|
46312
|
+
optional: false
|
|
46313
|
+
}],
|
|
46314
|
+
"pressureSensor.getStatus": [{
|
|
46315
|
+
name: "deviceId",
|
|
46316
|
+
form: "single",
|
|
46317
|
+
optional: false
|
|
46318
|
+
}],
|
|
45853
46319
|
"privacyMask.getOptions": [{
|
|
45854
46320
|
name: "deviceId",
|
|
45855
46321
|
form: "single",
|
|
45856
46322
|
optional: false
|
|
45857
46323
|
}],
|
|
46324
|
+
"privacyMask.getStatus": [{
|
|
46325
|
+
name: "deviceId",
|
|
46326
|
+
form: "single",
|
|
46327
|
+
optional: false
|
|
46328
|
+
}],
|
|
45858
46329
|
"privacyMask.setAudioEnabled": [{
|
|
45859
46330
|
name: "deviceId",
|
|
45860
46331
|
form: "single",
|
|
@@ -45905,6 +46376,11 @@ Object.freeze({
|
|
|
45905
46376
|
form: "single",
|
|
45906
46377
|
optional: false
|
|
45907
46378
|
}],
|
|
46379
|
+
"ptz.getStatus": [{
|
|
46380
|
+
name: "deviceId",
|
|
46381
|
+
form: "single",
|
|
46382
|
+
optional: false
|
|
46383
|
+
}],
|
|
45908
46384
|
"ptz.goHome": [{
|
|
45909
46385
|
name: "deviceId",
|
|
45910
46386
|
form: "single",
|
|
@@ -45995,6 +46471,11 @@ Object.freeze({
|
|
|
45995
46471
|
form: "single",
|
|
45996
46472
|
optional: false
|
|
45997
46473
|
}],
|
|
46474
|
+
"recordingArchive.applyDeviceSettingsPatch": [{
|
|
46475
|
+
name: "deviceId",
|
|
46476
|
+
form: "single",
|
|
46477
|
+
optional: false
|
|
46478
|
+
}],
|
|
45998
46479
|
"recordingArchive.deleteFootprint": [{
|
|
45999
46480
|
name: "deviceId",
|
|
46000
46481
|
form: "single",
|
|
@@ -46015,6 +46496,21 @@ Object.freeze({
|
|
|
46015
46496
|
form: "single",
|
|
46016
46497
|
optional: false
|
|
46017
46498
|
}],
|
|
46499
|
+
"recordingArchive.getDeviceLiveContribution": [{
|
|
46500
|
+
name: "deviceId",
|
|
46501
|
+
form: "single",
|
|
46502
|
+
optional: false
|
|
46503
|
+
}],
|
|
46504
|
+
"recordingArchive.getDeviceSettingsContribution": [{
|
|
46505
|
+
name: "deviceId",
|
|
46506
|
+
form: "single",
|
|
46507
|
+
optional: false
|
|
46508
|
+
}],
|
|
46509
|
+
"recordingArchive.getStatus": [{
|
|
46510
|
+
name: "deviceId",
|
|
46511
|
+
form: "single",
|
|
46512
|
+
optional: false
|
|
46513
|
+
}],
|
|
46018
46514
|
"recordingArchive.listOpsLog": [{
|
|
46019
46515
|
name: "deviceId",
|
|
46020
46516
|
form: "single",
|
|
@@ -46100,6 +46596,11 @@ Object.freeze({
|
|
|
46100
46596
|
form: "single",
|
|
46101
46597
|
optional: false
|
|
46102
46598
|
}],
|
|
46599
|
+
"recordingOnboard.getStatus": [{
|
|
46600
|
+
name: "deviceId",
|
|
46601
|
+
form: "single",
|
|
46602
|
+
optional: false
|
|
46603
|
+
}],
|
|
46103
46604
|
"recordingOnboard.setSettings": [{
|
|
46104
46605
|
name: "deviceId",
|
|
46105
46606
|
form: "single",
|
|
@@ -46130,6 +46631,11 @@ Object.freeze({
|
|
|
46130
46631
|
form: "single",
|
|
46131
46632
|
optional: false
|
|
46132
46633
|
}],
|
|
46634
|
+
"sceneMonitor.getStatus": [{
|
|
46635
|
+
name: "deviceId",
|
|
46636
|
+
form: "single",
|
|
46637
|
+
optional: false
|
|
46638
|
+
}],
|
|
46133
46639
|
"sceneMonitor.listScenes": [{
|
|
46134
46640
|
name: "deviceId",
|
|
46135
46641
|
form: "single",
|
|
@@ -46155,6 +46661,11 @@ Object.freeze({
|
|
|
46155
46661
|
form: "single",
|
|
46156
46662
|
optional: false
|
|
46157
46663
|
}],
|
|
46664
|
+
"scriptRunner.getStatus": [{
|
|
46665
|
+
name: "deviceId",
|
|
46666
|
+
form: "single",
|
|
46667
|
+
optional: false
|
|
46668
|
+
}],
|
|
46158
46669
|
"scriptRunner.run": [{
|
|
46159
46670
|
name: "deviceId",
|
|
46160
46671
|
form: "single",
|
|
@@ -46165,11 +46676,31 @@ Object.freeze({
|
|
|
46165
46676
|
form: "single",
|
|
46166
46677
|
optional: false
|
|
46167
46678
|
}],
|
|
46679
|
+
"smoke.getStatus": [{
|
|
46680
|
+
name: "deviceId",
|
|
46681
|
+
form: "single",
|
|
46682
|
+
optional: false
|
|
46683
|
+
}],
|
|
46684
|
+
"snapshot.applyDeviceSettingsPatch": [{
|
|
46685
|
+
name: "deviceId",
|
|
46686
|
+
form: "single",
|
|
46687
|
+
optional: false
|
|
46688
|
+
}],
|
|
46168
46689
|
"snapshot.getDebugState": [{
|
|
46169
46690
|
name: "deviceId",
|
|
46170
46691
|
form: "single",
|
|
46171
46692
|
optional: false
|
|
46172
46693
|
}],
|
|
46694
|
+
"snapshot.getDeviceLiveContribution": [{
|
|
46695
|
+
name: "deviceId",
|
|
46696
|
+
form: "single",
|
|
46697
|
+
optional: false
|
|
46698
|
+
}],
|
|
46699
|
+
"snapshot.getDeviceSettingsContribution": [{
|
|
46700
|
+
name: "deviceId",
|
|
46701
|
+
form: "single",
|
|
46702
|
+
optional: false
|
|
46703
|
+
}],
|
|
46173
46704
|
"snapshot.getSnapshot": [{
|
|
46174
46705
|
name: "deviceId",
|
|
46175
46706
|
form: "single",
|
|
@@ -46186,6 +46717,11 @@ Object.freeze({
|
|
|
46186
46717
|
form: "array",
|
|
46187
46718
|
optional: false
|
|
46188
46719
|
}],
|
|
46720
|
+
"snapshot.getStatus": [{
|
|
46721
|
+
name: "deviceId",
|
|
46722
|
+
form: "single",
|
|
46723
|
+
optional: false
|
|
46724
|
+
}],
|
|
46189
46725
|
"snapshot.invalidateCache": [{
|
|
46190
46726
|
name: "deviceId",
|
|
46191
46727
|
form: "single",
|
|
@@ -46196,6 +46732,11 @@ Object.freeze({
|
|
|
46196
46732
|
form: "single",
|
|
46197
46733
|
optional: false
|
|
46198
46734
|
}],
|
|
46735
|
+
"streamBroker.applyDeviceSettingsPatch": [{
|
|
46736
|
+
name: "deviceId",
|
|
46737
|
+
form: "single",
|
|
46738
|
+
optional: false
|
|
46739
|
+
}],
|
|
46199
46740
|
"streamBroker.assignProfile": [{
|
|
46200
46741
|
name: "deviceId",
|
|
46201
46742
|
form: "single",
|
|
@@ -46211,6 +46752,16 @@ Object.freeze({
|
|
|
46211
46752
|
form: "single",
|
|
46212
46753
|
optional: false
|
|
46213
46754
|
}],
|
|
46755
|
+
"streamBroker.getDeviceLiveContribution": [{
|
|
46756
|
+
name: "deviceId",
|
|
46757
|
+
form: "single",
|
|
46758
|
+
optional: false
|
|
46759
|
+
}],
|
|
46760
|
+
"streamBroker.getDeviceSettingsContribution": [{
|
|
46761
|
+
name: "deviceId",
|
|
46762
|
+
form: "single",
|
|
46763
|
+
optional: false
|
|
46764
|
+
}],
|
|
46214
46765
|
"streamBroker.getStreamWithCodec": [{
|
|
46215
46766
|
name: "deviceId",
|
|
46216
46767
|
form: "single",
|
|
@@ -46271,16 +46822,46 @@ Object.freeze({
|
|
|
46271
46822
|
form: "single",
|
|
46272
46823
|
optional: false
|
|
46273
46824
|
}],
|
|
46825
|
+
"streamParams.getStatus": [{
|
|
46826
|
+
name: "deviceId",
|
|
46827
|
+
form: "single",
|
|
46828
|
+
optional: false
|
|
46829
|
+
}],
|
|
46274
46830
|
"streamParams.setProfile": [{
|
|
46275
46831
|
name: "deviceId",
|
|
46276
46832
|
form: "single",
|
|
46277
46833
|
optional: false
|
|
46278
46834
|
}],
|
|
46835
|
+
"switch.getStatus": [{
|
|
46836
|
+
name: "deviceId",
|
|
46837
|
+
form: "single",
|
|
46838
|
+
optional: false
|
|
46839
|
+
}],
|
|
46279
46840
|
"switch.setState": [{
|
|
46280
46841
|
name: "deviceId",
|
|
46281
46842
|
form: "single",
|
|
46282
46843
|
optional: false
|
|
46283
46844
|
}],
|
|
46845
|
+
"tamper.getStatus": [{
|
|
46846
|
+
name: "deviceId",
|
|
46847
|
+
form: "single",
|
|
46848
|
+
optional: false
|
|
46849
|
+
}],
|
|
46850
|
+
"temperatureSensor.getStatus": [{
|
|
46851
|
+
name: "deviceId",
|
|
46852
|
+
form: "single",
|
|
46853
|
+
optional: false
|
|
46854
|
+
}],
|
|
46855
|
+
"update.getStatus": [{
|
|
46856
|
+
name: "deviceId",
|
|
46857
|
+
form: "single",
|
|
46858
|
+
optional: false
|
|
46859
|
+
}],
|
|
46860
|
+
"vacuumControl.getStatus": [{
|
|
46861
|
+
name: "deviceId",
|
|
46862
|
+
form: "single",
|
|
46863
|
+
optional: false
|
|
46864
|
+
}],
|
|
46284
46865
|
"vacuumControl.locate": [{
|
|
46285
46866
|
name: "deviceId",
|
|
46286
46867
|
form: "single",
|
|
@@ -46316,6 +46897,11 @@ Object.freeze({
|
|
|
46316
46897
|
form: "single",
|
|
46317
46898
|
optional: false
|
|
46318
46899
|
}],
|
|
46900
|
+
"valve.getStatus": [{
|
|
46901
|
+
name: "deviceId",
|
|
46902
|
+
form: "single",
|
|
46903
|
+
optional: false
|
|
46904
|
+
}],
|
|
46319
46905
|
"valve.open": [{
|
|
46320
46906
|
name: "deviceId",
|
|
46321
46907
|
form: "single",
|
|
@@ -46331,6 +46917,11 @@ Object.freeze({
|
|
|
46331
46917
|
form: "single",
|
|
46332
46918
|
optional: false
|
|
46333
46919
|
}],
|
|
46920
|
+
"vibration.getStatus": [{
|
|
46921
|
+
name: "deviceId",
|
|
46922
|
+
form: "single",
|
|
46923
|
+
optional: false
|
|
46924
|
+
}],
|
|
46334
46925
|
"videoclips.dialClipStream": [{
|
|
46335
46926
|
name: "deviceId",
|
|
46336
46927
|
form: "single",
|
|
@@ -46366,6 +46957,11 @@ Object.freeze({
|
|
|
46366
46957
|
form: "single",
|
|
46367
46958
|
optional: false
|
|
46368
46959
|
}],
|
|
46960
|
+
"waterHeater.getStatus": [{
|
|
46961
|
+
name: "deviceId",
|
|
46962
|
+
form: "single",
|
|
46963
|
+
optional: false
|
|
46964
|
+
}],
|
|
46369
46965
|
"waterHeater.setAway": [{
|
|
46370
46966
|
name: "deviceId",
|
|
46371
46967
|
form: "single",
|
|
@@ -46381,6 +46977,11 @@ Object.freeze({
|
|
|
46381
46977
|
form: "single",
|
|
46382
46978
|
optional: false
|
|
46383
46979
|
}],
|
|
46980
|
+
"weather.getStatus": [{
|
|
46981
|
+
name: "deviceId",
|
|
46982
|
+
form: "single",
|
|
46983
|
+
optional: false
|
|
46984
|
+
}],
|
|
46384
46985
|
"webrtcSession.addIceCandidate": [{
|
|
46385
46986
|
name: "deviceId",
|
|
46386
46987
|
form: "single",
|
|
@@ -47118,7 +47719,7 @@ var PreviewTextField = string().max(200);
|
|
|
47118
47719
|
* Whether the notification's preview is a STILL or a short animation.
|
|
47119
47720
|
*
|
|
47120
47721
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
47121
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
47722
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
47122
47723
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
47123
47724
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
47124
47725
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -47256,6 +47857,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
47256
47857
|
createdAt: number$1(),
|
|
47257
47858
|
updatedAt: number$1()
|
|
47258
47859
|
});
|
|
47860
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
47259
47861
|
object({
|
|
47260
47862
|
/**
|
|
47261
47863
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -83024,7 +83626,7 @@ function messagesFor(request) {
|
|
|
83024
83626
|
* `RetryError` is the wrapper the library returns when the attempts are spent;
|
|
83025
83627
|
* the interesting error is the LAST one inside it, so the envelope is unwrapped
|
|
83026
83628
|
* before anything is classified (§2.3, "chi classifica gli errori deve
|
|
83027
|
-
* scartare l'involucro").
|
|
83629
|
+
* scartare l'involucro" [whoever classifies errors must discard the envelope]).
|
|
83028
83630
|
*/
|
|
83029
83631
|
function mapLibraryError(error) {
|
|
83030
83632
|
if (RetryError.isInstance(error)) {
|