@camstack/addon-provider-homeassistant 1.2.151 → 1.2.153

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.
@@ -7481,7 +7481,7 @@ function errMsg(err) {
7481
7481
  return String(err);
7482
7482
  }
7483
7483
  //#endregion
7484
- //#region ../types/dist/composition-43aqsZQj.mjs
7484
+ //#region ../types/dist/composition-Bzr7GwgP.mjs
7485
7485
  /**
7486
7486
  * The ffmpeg build every CamStack node downloads, per platform and arch.
7487
7487
  *
@@ -7535,20 +7535,20 @@ function portable(target) {
7535
7535
  }
7536
7536
  portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
7537
7537
  /**
7538
- * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
7539
- * valutatore puro del suo FRONTE.
7538
+ * THE table "which boolean of this device type counts as HIGH", and the
7539
+ * pure evaluator of its EDGE.
7540
7540
  *
7541
- * UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
7542
- * trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
7543
- * sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
7544
- * le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
7545
- * Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
7546
- * sensore fa suonare il campanello ma non registra" — è esattamente D62.
7541
+ * ONE table for everyone who asks "is this device HIGH?": the
7542
+ * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
7543
+ * sensor markers, the orchestrator's camera-sensors bridge and
7544
+ * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
7545
+ * A second copy would diverge at the first cap added, and the symptom — "the
7546
+ * sensor rings the doorbell but does not record" — is exactly D62.
7547
7547
  *
7548
- * ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
7549
- * due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
7550
- * regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
7551
- * booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
7548
+ * ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
7549
+ * two must not be unified: that one answers "what is the state WORD for a
7550
+ * rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
7551
+ * boolean's EDGE counts". Deliberately different vocabularies.
7552
7552
  */
7553
7553
  /**
7554
7554
  * Known binary / switch source caps → the boolean slice field whose
@@ -7569,6 +7569,8 @@ var SOURCE_CAP_ACTIVE_FIELD = {
7569
7569
  vibration: "detected",
7570
7570
  tamper: "tampered"
7571
7571
  };
7572
+ /** Cap names whose presence in a device's bindings qualify it as a source. */
7573
+ var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
7572
7574
  /**
7573
7575
  * Error types for the safe expression engine. Two distinct classes so callers
7574
7576
  * can tell a compile-time (grammar) failure from a runtime (evaluation)
@@ -9299,22 +9301,22 @@ var CLASS_MAP_MACRO_TARGETS = [
9299
9301
  "package"
9300
9302
  ];
9301
9303
  /**
9302
- * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
9303
- * un operatore può selezionare.
9304
+ * The FIRST-LEVEL macro classes: those an object detector emits and that
9305
+ * an operator can select.
9304
9306
  *
9305
- * Sono le tre offerte dallo step `object-detection`
9307
+ * They are the three offered by the `object-detection` step
9306
9308
  * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
9307
- * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
9308
- * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
9309
- * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
9310
- * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
9309
+ * `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
9310
+ * `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
9311
+ * `package-detection`, whose enablement is driven by zones, and offering the
9312
+ * same word twice has already made an operator turn on the COCO proxy
9311
9313
  * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
9312
9314
  *
9313
- * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
9314
- * dello step e una seconda volta come union `FirstLevelMacro`
9315
- * (`types/detection.ts`); una terza copia per il trigger di registrazione
9316
- * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
9317
- * successiva.
9315
+ * ONE list. Before today the same three were hand-written in the step's offer
9316
+ * and a second time as the union `FirstLevelMacro`
9317
+ * (`types/detection.ts`); a third copy for the recording trigger
9318
+ * (`RecordingTriggers.objectClasses`) would have made the later divergence
9319
+ * invisible.
9318
9320
  */
9319
9321
  var FIRST_LEVEL_MACRO_CLASSES = [
9320
9322
  "person",
@@ -9379,17 +9381,17 @@ var RecordingStorageModeSchema = _enum([
9379
9381
  "on-device-decision"
9380
9382
  ]);
9381
9383
  /**
9382
- * Le macro classi che possono aprire una finestra di registrazione — le stesse
9383
- * tre offerte dallo step `object-detection`, da UNA lista
9384
+ * The macro classes that can open a recording window — the same
9385
+ * three offered by the `object-detection` step, from ONE list
9384
9386
  * ({@link FIRST_LEVEL_MACRO_CLASSES}).
9385
9387
  */
9386
9388
  var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
9387
9389
  /**
9388
- * True quando `values` non ripete un elemento.
9390
+ * True when `values` does not repeat an element.
9389
9391
  *
9390
- * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
9391
- * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
9392
- * conterebbe due volte le sue finestre in `segmentMissedByMs`.
9392
+ * A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
9393
+ * becomes a SOURCE in `bandTriggerSources`, and the same source twice
9394
+ * would count its windows twice in `segmentMissedByMs`.
9393
9395
  */
9394
9396
  var noDuplicates = (values) => new Set(values).size === values.length;
9395
9397
  /** Which detectors trigger an `events`-mode band. */
@@ -9397,34 +9399,34 @@ var RecordingTriggersSchema = object({
9397
9399
  motion: boolean().optional(),
9398
9400
  audioThresholdDbfs: number().optional(),
9399
9401
  /**
9400
- * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
9401
- * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
9402
- * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
9403
- * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
9402
+ * The macro classes whose detection opens a window. ABSENT = the source
9403
+ * is not listened to; an EMPTY array is rejected, because "events band, object
9404
+ * trigger on, no class" is the same shape "enabled and records
9405
+ * nothing, forever" that `eventsBandCanEverDemand` is written against.
9404
9406
  *
9405
- * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
9406
- * quelle che hanno attraversato `enabledMacroClasses`, i
9407
- * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
9408
- * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
9409
- * finestre — vedi `recorder/object-trigger.ts`.
9407
+ * The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
9408
+ * those that went through `enabledMacroClasses`, the
9409
+ * `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
9410
+ * (`source: 'onboard'`) goes through none of those gates and does NOT open
9411
+ * windows — see `recorder/object-trigger.ts`.
9410
9412
  */
9411
9413
  objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
9412
9414
  /**
9413
- * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
9414
- * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
9415
+ * The LINKED devices whose RISING EDGE opens a window. Absent = the source
9416
+ * is not listened to; an empty array is rejected for the same reason as
9415
9417
  * `objectClasses`.
9416
9418
  *
9417
- * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
9418
- * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
9419
- * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
9420
- * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9421
- * device (D12) — mai un elenco globale di cap.
9419
+ * These are SOURCE device ids, not cameras: the band names them, so the
9420
+ * hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
9421
+ * does no RPC. The OFFER from which the operator picks them is another question, and
9422
+ * is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9423
+ * device (D12) — never a global list of caps.
9422
9424
  *
9423
- * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
9424
- * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
9425
- * la stessa del campanello composto (D671). Ed è il FRONTE, non
9426
- * il livello: un contatto trovato già aperto al riavvio del runner non fa
9427
- * registrare.
9425
+ * What "high" means depends on the device TYPE and is not decided here:
9426
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
9427
+ * the same one as the composite doorbell (D671). And it is the EDGE, not
9428
+ * the level: a contact found already open at runner restart does not
9429
+ * record.
9428
9430
  */
9429
9431
  sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
9430
9432
  });
@@ -10501,7 +10503,7 @@ var DecoderSessionConfigSchema = object({
10501
10503
  * - **VALUE** — at which level, for which scope, until when. That stays ONE
10502
10504
  * thing: the logging settings document on the `system` cap. Two authorities
10503
10505
  * over the values is the exact defect
10504
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
10506
+ * `docs/design/plans/2026-08-26-per-component-logging.md` was written to
10505
10507
  * remove; re-introducing it from the cure side would be grotesque.
10506
10508
  *
10507
10509
  * Nothing in this file reads a clock, an env var or a store. The registry is
@@ -12231,7 +12233,7 @@ var BrokerStatusEnum = _enum([
12231
12233
  "unreachable",
12232
12234
  "error"
12233
12235
  ]);
12234
- var BrokerInfoSchema$1 = object({
12236
+ var BrokerInfoSchema = object({
12235
12237
  /** Stable broker id. Persisted; survives addon restarts. */
12236
12238
  id: string(),
12237
12239
  /** Addon id of the provider that OWNS this broker.
@@ -12374,8 +12376,8 @@ var brokerCapability = {
12374
12376
  kind: "poll"
12375
12377
  },
12376
12378
  methods: {
12377
- list: method(ListInputSchema, array(BrokerInfoSchema$1)),
12378
- get: method(GetInputSchema, BrokerInfoSchema$1.nullable()),
12379
+ list: method(ListInputSchema, array(BrokerInfoSchema)),
12380
+ get: method(GetInputSchema, BrokerInfoSchema.nullable()),
12379
12381
  /** Enumerate which addon provides which broker kind(s) for the
12380
12382
  * unified create picker. The auto-mount fans this array across
12381
12383
  * every registered `broker` provider (array-output method), so the
@@ -14124,7 +14126,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
14124
14126
  *
14125
14127
  * ⚠ An earlier version of this comment blamed Zod stripping, and that
14126
14128
  * was wrong — corrected 2026-08-26 after the hop map
14127
- * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
14129
+ * (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
14128
14130
  * There is **no Zod parse at all** between the door and the engine: the
14129
14131
  * dispatcher forwards the payload verbatim and UDS carries it whole. A
14130
14132
  * field declared here reaches `SqliteSettingsBackend` either way.
@@ -15221,7 +15223,17 @@ var SiteZoneSchema = object({
15221
15223
  var ProviderStatusSchema = object({
15222
15224
  connected: boolean(),
15223
15225
  deviceCount: number(),
15224
- error: string().optional()
15226
+ error: string().optional(),
15227
+ /**
15228
+ * `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
15229
+ * — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
15230
+ * which every provider bundles, so only a provider BUILT from D696-amended
15231
+ * code says it. ABSENT means an older provider that may still write it (raw
15232
+ * VMD writes, a boot seed), and the orchestrator's provider gate keeps that
15233
+ * provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
15234
+ * — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
15235
+ */
15236
+ motionSliceWriter: literal("orchestrator").optional()
15225
15237
  });
15226
15238
  object({
15227
15239
  externalId: string(),
@@ -16438,7 +16450,7 @@ method(object({
16438
16450
  * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
16439
16451
  * ends in a log line, and a log line is the thing the operator asked to stop
16440
16452
  * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
16441
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
16453
+ * 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
16442
16454
  * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
16443
16455
  * media blackout were both diagnosed. The counters stay; this is where they can
16444
16456
  * be READ.
@@ -17814,7 +17826,7 @@ var BrokerStatusSchema$1 = _enum([
17814
17826
  "unreachable",
17815
17827
  "tls-error"
17816
17828
  ]);
17817
- var BrokerInfoSchema = object({
17829
+ var BrokerInfoSchema$1 = object({
17818
17830
  id: string(),
17819
17831
  name: string(),
17820
17832
  url: string(),
@@ -17877,7 +17889,7 @@ var StatusSchema = object({
17877
17889
  brokerCount: number(),
17878
17890
  embeddedRunning: boolean()
17879
17891
  });
17880
- method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
17892
+ method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
17881
17893
  kind: "mutation",
17882
17894
  auth: "admin"
17883
17895
  }), method(IdInputSchema, _void(), {
@@ -20105,78 +20117,16 @@ var NcRuleInputSchema = object({
20105
20117
  */
20106
20118
  confirm: NcConfirmSchema.optional(),
20107
20119
  /**
20108
- * WAIT for face/plate recognition before saying anything.
20109
- *
20110
- * A notification's TEXT is frozen at enqueue and its media is re-resolved at
20111
- * send; the identity is neither. A face is confirmed after `confirmFrames`
20112
- * agreeing observations — p50 **11.4 s** after the track was first seen,
20113
- * measured on this hub — and an `immediate` rule enqueues on the first object
20114
- * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
20115
- * immediate path, and no amount of media re-resolution fixes a sentence.
20116
- *
20117
- * Only two honest answers exist, and this flag picks between them. It has
20118
- * effect ONLY on a rule that declares a recognition scope
20119
- * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
20120
- * other rule there is nothing to wait for and the flag is inert.
20121
- *
20122
- * | value | what happens |
20123
- * | --- | --- |
20124
- * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
20125
- * | 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) |
20126
- *
20127
- * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
20128
- * on the addon cap path, and absent has to keep meaning exactly what every
20129
- * rule authored before this field meant.
20130
- *
20131
- * The cost of `true` is stated here because the editor states it too: a rule
20132
- * that waits also inherits track-close SEMANTICS — its `zones` condition
20133
- * tests every zone the track visited and a `crossing` condition can no longer
20134
- * be satisfied, because a closed track carries no crossing.
20135
- */
20136
- waitForEnhancement: boolean().optional(),
20137
- /**
20138
- * GROUP a burst of subjects into ONE notification that grows.
20139
- *
20140
- * Seconds of quiet after the last matching subject before the burst is
20141
- * considered over. While it is open, the first subject enqueues immediately —
20142
- * **exactly as today, with no added latency** — and every real growth (a new
20143
- * subject, or a name confirmed on one already in it) REPLACES that
20144
- * notification with an updated one naming everybody. The push carries the
20145
- * group's own coalescing tag, so the phone replaces rather than stacks.
20146
- *
20147
- * `0` / absent = off, and off is today's behaviour byte for byte.
20148
- *
20149
- * ### Why an idle cutoff and not a window
20150
- *
20151
- * The measured seven-person arrival on device 590 spans 110 s with every
20152
- * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
20153
- * idle cutoff holds it as one and ends it when the arrival actually ends.
20154
- * 30 s is a widely shipped value for the same decision.
20155
- *
20156
- * ### What it replaces
20157
- *
20158
- * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
20159
- * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
20160
- * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
20161
- * track that did fire and 7 carrying a confirmed identity nobody heard about.
20162
- * A group collapses the same volume by MERGING, so the cooldown becomes a
20163
- * budget over GROUPS — which is what it always meant — and a growth is never
20164
- * throttled by the window its own first member spent.
20165
- *
20166
- * ### Interaction with {@link waitForEnhancement}
20167
- *
20168
- * They compose, and the order matters. `waitForEnhancement` defers the rule to
20169
- * TRACK CLOSE, so with both set the group is opened by the first member to
20170
- * CLOSE — already carrying its name — and grows as later members close. That
20171
- * is later, and complete. With grouping alone the group opens on the first
20172
- * object event and picks up names as they are confirmed, through the growth
20173
- * path. Neither combination fires twice for one subject.
20174
- *
20175
- * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
20176
- * on the addon cap path, so absent must keep meaning what it meant before this
20177
- * field existed.
20120
+ * IMMEDIATE GROUPED (D692): the first matching subject opens a window of this many
20121
+ * seconds; the rule sends ONE message when the window closes — early, once every
20122
+ * subject in it is final, never before {@link NC_GROUPING_MIN_SEC} — naming everybody
20123
+ * the rule matched, with one mosaic tile per subject.
20124
+ * Absent = plain immediate (one message per track, at the first match).
20125
+ * Only an `immediate` DETECTION rule may carry it (`ruleGroupingApplies`, enforced on
20126
+ * save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
20127
+ * path does not run Zod defaults.
20178
20128
  */
20179
- groupIdleSec: number().int().min(0).max(600).optional()
20129
+ groupingSec: number().int().min(5).max(60).optional()
20180
20130
  });
20181
20131
  /**
20182
20132
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -20224,9 +20174,10 @@ var NcRuleClearableKeySchema = _enum([
20224
20174
  "targetUsers",
20225
20175
  "snoozeOptions",
20226
20176
  "snoozeAllowGlobal",
20227
- "waitForEnhancement",
20228
20177
  "actions",
20229
20178
  "confirm",
20179
+ "groupingSec",
20180
+ "waitForEnhancement",
20230
20181
  "groupIdleSec"
20231
20182
  ]);
20232
20183
  var NcRuleUpdateInputSchema = object({
@@ -20248,9 +20199,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20248
20199
  */
20249
20200
  disabledTargetIds: array(string()).default([])
20250
20201
  });
20202
+ /**
20203
+ * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20204
+ * still-true state. `backups-exports` and `alarm` are not sections — a completed
20205
+ * job is not an open state, and the alarm stays instant.
20206
+ */
20207
+ var NcStateSummarySectionIdSchema = _enum([
20208
+ "device-state",
20209
+ "streams",
20210
+ "battery",
20211
+ "consumables",
20212
+ "tanks",
20213
+ "detection-blind",
20214
+ "nodes",
20215
+ "addons",
20216
+ "updates"
20217
+ ]);
20251
20218
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
20252
20219
  var NcStateSummaryPreviewSectionSchema = object({
20253
- id: string(),
20220
+ id: NcStateSummarySectionIdSchema,
20254
20221
  status: _enum(["read", "unavailable"]),
20255
20222
  items: number().int().nonnegative(),
20256
20223
  reason: string().optional()
@@ -20260,7 +20227,7 @@ var NcStateSummaryPreviewSectionSchema = object({
20260
20227
  * a `rule` split (no `section`), one section's on a `section` split.
20261
20228
  */
20262
20229
  var NcStateSummaryPreviewRowSchema = object({
20263
- section: string().optional(),
20230
+ section: NcStateSummarySectionIdSchema.optional(),
20264
20231
  /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
20265
20232
  title: string(),
20266
20233
  text: string(),
@@ -20697,6 +20664,29 @@ object({
20697
20664
  firstAt: number(),
20698
20665
  lastAt: number()
20699
20666
  });
20667
+ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
20668
+ var NcAlarmDelaySecSchema = number().int().min(0).max(600);
20669
+ var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
20670
+ var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
20671
+ var NcAlarmModeDelaysListSchema = array(object({
20672
+ mode: AlarmArmModeSchema,
20673
+ exitDelaySec: NcAlarmDelaySecSchema.optional(),
20674
+ entryDelaySec: NcAlarmDelaySecSchema.optional(),
20675
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
20676
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20677
+ var NcAlarmModeDelaysEditListSchema = array(object({
20678
+ mode: AlarmArmModeSchema,
20679
+ exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20680
+ entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20681
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
20682
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20683
+ /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20684
+ var NcAlarmNonBlockingEditSchema = object({
20685
+ mode: AlarmArmModeSchema,
20686
+ deviceId: number().int().positive(),
20687
+ /** true = on the list (may be open, does not block); false = off the list (blocks). */
20688
+ nonBlocking: boolean()
20689
+ });
20700
20690
  /**
20701
20691
  * The per-mode lists, at most one per mode. Two lists for one mode have no
20702
20692
  * meaning a reader could agree on (union? the last one?), so they are refused
@@ -20705,10 +20695,10 @@ object({
20705
20695
  var NcAlarmNonBlockingListSchema = array(object({
20706
20696
  mode: AlarmArmModeSchema,
20707
20697
  deviceIds: array(number().int()).max(200)
20708
- })).max(8).refine((lists) => new Set(lists.map((l) => l.mode)).size === lists.length, { message: "nonBlocking: at most one list per arm mode" });
20698
+ })).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
20709
20699
  /**
20710
- * The three durations the panel's state machine runs on, who hears about its
20711
- * transitions, and which openings each mode tolerates.
20700
+ * The three durations — global, and per mode since D697 — the panel's state
20701
+ * machine runs on, who hears about its transitions, and which openings each mode tolerates.
20712
20702
  *
20713
20703
  * They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
20714
20704
  * `alarm-panel` is `deviceNative` and its other provider mirrors somebody
@@ -20718,15 +20708,15 @@ var NcAlarmNonBlockingListSchema = array(object({
20718
20708
  */
20719
20709
  var NcAlarmSettingsSchema = object({
20720
20710
  /** Grace period between arming and the mode taking effect. 0 = immediate. */
20721
- exitDelaySec: number().int().min(0).max(600),
20711
+ exitDelaySec: NcAlarmDelaySecSchema,
20722
20712
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
20723
- entryDelaySec: number().int().min(0).max(600),
20713
+ entryDelaySec: NcAlarmDelaySecSchema,
20724
20714
  /**
20725
20715
  * How long `triggered` lasts before the panel re-arms itself.
20726
20716
  * **0 = until an operator disarms it** — the behaviour before this field
20727
20717
  * existed, and therefore what an untouched install keeps doing.
20728
20718
  */
20729
- triggeredDurationSec: number().int().min(0).max(3600),
20719
+ triggeredDurationSec: NcAlarmTriggeredSecSchema,
20730
20720
  /**
20731
20721
  * Deprecated by D630 — every transition is announced. Parsed, never read;
20732
20722
  * remove after one release. Optional so an older admin's patch (which still
@@ -20749,17 +20739,30 @@ var NcAlarmSettingsSchema = object({
20749
20739
  * per mode is meaningful. Defaulted to `[]` so a blob stored before D630
20750
20740
  * parses as "every opening blocks" — the behaviour it was written under.
20751
20741
  */
20752
- nonBlocking: NcAlarmNonBlockingListSchema.default([])
20742
+ nonBlocking: NcAlarmNonBlockingListSchema.default([]),
20743
+ /**
20744
+ * Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
20745
+ * without a field, uses the global value above — so `[]`, the default, is exactly the
20746
+ * behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
20747
+ */
20748
+ modeDelays: NcAlarmModeDelaysListSchema.default([])
20753
20749
  });
20754
20750
  /**
20755
20751
  * Every field optional — a tab edits one control at a time.
20756
20752
  *
20757
- * `nonBlocking` is re-declared WITHOUT its default: `.partial()` does not
20758
- * remove an inner `.default()`, so a patch that never named the field would
20759
- * parse to `nonBlocking: []` and wipe every mode's list on an unrelated edit
20760
- * (the same trap {@link NcRulePatchSchema} documents).
20753
+ * `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
20754
+ * `.partial()` does not remove an inner `.default()`, so a patch that never
20755
+ * named the field would parse to `[]` and wipe every mode's list on an
20756
+ * unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
20757
+ * `modeDelays` means EDITS, not the stored overrides.
20761
20758
  */
20762
- var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({ nonBlocking: NcAlarmNonBlockingListSchema }).partial();
20759
+ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
20760
+ nonBlocking: NcAlarmNonBlockingListSchema,
20761
+ /** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
20762
+ modeDelays: NcAlarmModeDelaysEditListSchema,
20763
+ /** ONE membership change; the panel applies it to the list it holds at its turn. */
20764
+ nonBlockingEdit: NcAlarmNonBlockingEditSchema
20765
+ }).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
20763
20766
  /**
20764
20767
  * What one arm mode actually arms, DERIVED from the enabled rules gated on it.
20765
20768
  * Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
@@ -20859,6 +20862,28 @@ var NcAlarmConfigSchema = object({
20859
20862
  */
20860
20863
  live: NcAlarmLiveSchema.optional()
20861
20864
  });
20865
+ var NcAlarmSensorReadingSchema = _enum([
20866
+ "open",
20867
+ "closed",
20868
+ "unknown",
20869
+ "not-opening"
20870
+ ]);
20871
+ /** One device's state as the alarm reads it — the classifier the arm check uses. */
20872
+ var NcAlarmSensorStateSchema = object({
20873
+ deviceId: number().int().positive(),
20874
+ reading: NcAlarmSensorReadingSchema,
20875
+ /** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
20876
+ state: string().nullable(),
20877
+ /** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
20878
+ unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
20879
+ /** The device manager's liveness as the centre mirrors it; null = not known. */
20880
+ online: boolean().nullable()
20881
+ });
20882
+ var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
20883
+ var NcAlarmSensorsSchema = object({
20884
+ sensors: array(NcAlarmSensorStateSchema),
20885
+ readAt: number().int().nonnegative()
20886
+ });
20862
20887
  /**
20863
20888
  * ONE rule's demand on ONE camera's clip ring.
20864
20889
  *
@@ -20949,7 +20974,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
20949
20974
  }), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
20950
20975
  kind: "mutation",
20951
20976
  auth: "admin"
20952
- });
20977
+ }), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
20953
20978
  /**
20954
20979
  * Zod schemas for persisted record types.
20955
20980
  *
@@ -22117,14 +22142,14 @@ var TrackSchema = object({
22117
22142
  * `derive-returned-null tile=standin`,
22118
22143
  * `native-tile tile=native no-key-frame-at-close`, …) written at close and
22119
22144
  * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
22120
- * The operator-facing answer to "perché manca l'immagine?" on a track whose
22145
+ * The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
22121
22146
  * tile is a face/plate stand-in, a raster crop, or an icon.
22122
22147
  *
22123
22148
  * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
22124
22149
  * the TILE ranked below native, so a track whose thumbnail landed natively
22125
22150
  * while its key frame missed carried no reason at all — three of the four
22126
22151
  * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
22127
- * that shape, and their "niente ultimo" had no cause anywhere on the row.
22152
+ * that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
22128
22153
  * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
22129
22154
  * lastFrame copy source`), so its absence is now on this line whatever the
22130
22155
  * tile ended up being.
@@ -22211,7 +22236,7 @@ var MotionEventSchema = object({
22211
22236
  /**
22212
22237
  * Ms offsets from `timestamp` (the episode's own first rising edge, so the
22213
22238
  * first entry is always `0`) of every genuine off→on transition the
22214
- * episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
22239
+ * episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
22215
22240
  * push: a firmware source that keepalives at ~1 Hz for the whole burst
22216
22241
  * (Reolink, Hikvision) produces exactly one edge; a source that reports an
22217
22242
  * explicit `false` mid-episode and then resumes before the quiet window
@@ -22735,6 +22760,7 @@ var KeyEventSchema = object({
22735
22760
  bestEventId: string(),
22736
22761
  /** Track lifetime in ms (lastSeen - firstSeen). */
22737
22762
  windowMs: number().optional(),
22763
+ audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
22738
22764
  ...TrackFlagFields,
22739
22765
  ...TrackRetrainFields
22740
22766
  });
@@ -27516,7 +27542,7 @@ var ClipPlaybackSchema = object({
27516
27542
  * **One authorised yes is one wake.** `next-natural` — take the clip the next
27517
27543
  * time the camera is awake for its own reasons — is deliberately not a member:
27518
27544
  * it was proposed, it is free on the battery, and the operator declined it on
27519
- * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."*,
27545
+ * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
27520
27546
  * D558 "Considered and not taken").
27521
27547
  */
27522
27548
  var ClipWakeSchema = _enum(["authorised"]);
@@ -27777,7 +27803,7 @@ DeviceType.Camera, method(object({
27777
27803
  * It replaced `sources?: string[]`, a VIEW filter over source ids that
27778
27804
  * assumed the answer was a fan-out over everything a camera has. The
27779
27805
  * operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
27780
- * solo"* — so the list is asked of one provider at a time and there is
27806
+ * solo"* [there is only one user] — so the list is asked of one provider at a time and there is
27781
27807
  * nothing to filter out of it.
27782
27808
  */
27783
27809
  provider: string().min(1)
@@ -35856,7 +35882,7 @@ var ReadGopBytesResultSchema = object({
35856
35882
  /**
35857
35883
  * A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
35858
35884
  * twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
35859
- * replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
35885
+ * replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
35860
35886
  * a replay needs several seconds of native pixels, not one frame.
35861
35887
  *
35862
35888
  * `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
@@ -39220,6 +39246,7 @@ var zoneRulesCapability = {
39220
39246
  */
39221
39247
  durability: "restored"
39222
39248
  };
39249
+ SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39223
39250
  /**
39224
39251
  * Accessory device helpers — shared across drivers.
39225
39252
  *
@@ -40279,13 +40306,14 @@ var BaseDeviceProvider = class extends BaseAddon {
40279
40306
  async getStatus() {
40280
40307
  const all = await this.ctx.kernel.devices?.getAll() ?? [];
40281
40308
  const summary = this.restoreFailureSummary();
40282
- if (summary === null) return {
40309
+ const base = {
40283
40310
  connected: true,
40284
- deviceCount: all.length
40311
+ deviceCount: all.length,
40312
+ motionSliceWriter: "orchestrator"
40285
40313
  };
40314
+ if (summary === null) return base;
40286
40315
  return {
40287
- connected: true,
40288
- deviceCount: all.length,
40316
+ ...base,
40289
40317
  error: summary
40290
40318
  };
40291
40319
  }
@@ -45721,6 +45749,12 @@ Object.freeze({
45721
45749
  addonId: null,
45722
45750
  access: "view"
45723
45751
  },
45752
+ "notificationRules.getAlarmSensors": {
45753
+ capName: "notification-rules",
45754
+ capScope: "system",
45755
+ addonId: null,
45756
+ access: "view"
45757
+ },
45724
45758
  "notificationRules.getClipRetentionAsks": {
45725
45759
  capName: "notification-rules",
45726
45760
  capScope: "system",
@@ -49299,6 +49333,11 @@ Object.freeze({
49299
49333
  }
49300
49334
  });
49301
49335
  Object.freeze({
49336
+ "accessories.getStatus": [{
49337
+ name: "deviceId",
49338
+ form: "single",
49339
+ optional: false
49340
+ }],
49302
49341
  "accessories.setChildHidden": [{
49303
49342
  name: "childDeviceId",
49304
49343
  form: "single",
@@ -49318,6 +49357,11 @@ Object.freeze({
49318
49357
  form: "single",
49319
49358
  optional: false
49320
49359
  }],
49360
+ "airQualitySensor.getStatus": [{
49361
+ name: "deviceId",
49362
+ form: "single",
49363
+ optional: false
49364
+ }],
49321
49365
  "alarmPanel.arm": [{
49322
49366
  name: "deviceId",
49323
49367
  form: "single",
@@ -49328,11 +49372,36 @@ Object.freeze({
49328
49372
  form: "single",
49329
49373
  optional: false
49330
49374
  }],
49375
+ "alarmPanel.getStatus": [{
49376
+ name: "deviceId",
49377
+ form: "single",
49378
+ optional: false
49379
+ }],
49331
49380
  "alarmPanel.trigger": [{
49332
49381
  name: "deviceId",
49333
49382
  form: "single",
49334
49383
  optional: false
49335
49384
  }],
49385
+ "ambientLightSensor.getStatus": [{
49386
+ name: "deviceId",
49387
+ form: "single",
49388
+ optional: false
49389
+ }],
49390
+ "audioAnalysis.applyDeviceSettingsPatch": [{
49391
+ name: "deviceId",
49392
+ form: "single",
49393
+ optional: false
49394
+ }],
49395
+ "audioAnalysis.getDeviceLiveContribution": [{
49396
+ name: "deviceId",
49397
+ form: "single",
49398
+ optional: false
49399
+ }],
49400
+ "audioAnalysis.getDeviceSettingsContribution": [{
49401
+ name: "deviceId",
49402
+ form: "single",
49403
+ optional: false
49404
+ }],
49336
49405
  "audioAnalysis.resolveDeviceSettings": [{
49337
49406
  name: "deviceId",
49338
49407
  form: "single",
@@ -49373,16 +49442,36 @@ Object.freeze({
49373
49442
  form: "single",
49374
49443
  optional: false
49375
49444
  }],
49445
+ "automationControl.getStatus": [{
49446
+ name: "deviceId",
49447
+ form: "single",
49448
+ optional: false
49449
+ }],
49376
49450
  "automationControl.trigger": [{
49377
49451
  name: "deviceId",
49378
49452
  form: "single",
49379
49453
  optional: false
49380
49454
  }],
49455
+ "battery.getStatus": [{
49456
+ name: "deviceId",
49457
+ form: "single",
49458
+ optional: false
49459
+ }],
49381
49460
  "battery.wakeForStream": [{
49382
49461
  name: "deviceId",
49383
49462
  form: "single",
49384
49463
  optional: false
49385
49464
  }],
49465
+ "binary.getStatus": [{
49466
+ name: "deviceId",
49467
+ form: "single",
49468
+ optional: false
49469
+ }],
49470
+ "brightness.getStatus": [{
49471
+ name: "deviceId",
49472
+ form: "single",
49473
+ optional: false
49474
+ }],
49386
49475
  "brightness.setBrightness": [{
49387
49476
  name: "deviceId",
49388
49477
  form: "single",
@@ -49398,6 +49487,26 @@ Object.freeze({
49398
49487
  form: "single",
49399
49488
  optional: false
49400
49489
  }],
49490
+ "cameraCredentials.getStatus": [{
49491
+ name: "deviceId",
49492
+ form: "single",
49493
+ optional: false
49494
+ }],
49495
+ "cameraGridLayout.applyDeviceSettingsPatch": [{
49496
+ name: "deviceId",
49497
+ form: "single",
49498
+ optional: false
49499
+ }],
49500
+ "cameraGridLayout.getDeviceLiveContribution": [{
49501
+ name: "deviceId",
49502
+ form: "single",
49503
+ optional: false
49504
+ }],
49505
+ "cameraGridLayout.getDeviceSettingsContribution": [{
49506
+ name: "deviceId",
49507
+ form: "single",
49508
+ optional: false
49509
+ }],
49401
49510
  "cameraGridLayout.getLayout": [{
49402
49511
  name: "deviceId",
49403
49512
  form: "single",
@@ -49413,6 +49522,21 @@ Object.freeze({
49413
49522
  form: "single",
49414
49523
  optional: false
49415
49524
  }],
49525
+ "cameraPipelineConfig.applyDeviceSettingsPatch": [{
49526
+ name: "deviceId",
49527
+ form: "single",
49528
+ optional: false
49529
+ }],
49530
+ "cameraPipelineConfig.getDeviceLiveContribution": [{
49531
+ name: "deviceId",
49532
+ form: "single",
49533
+ optional: false
49534
+ }],
49535
+ "cameraPipelineConfig.getDeviceSettingsContribution": [{
49536
+ name: "deviceId",
49537
+ form: "single",
49538
+ optional: false
49539
+ }],
49416
49540
  "cameraStreams.getBrokerStreams": [{
49417
49541
  name: "deviceId",
49418
49542
  form: "single",
@@ -49438,6 +49562,16 @@ Object.freeze({
49438
49562
  form: "single",
49439
49563
  optional: false
49440
49564
  }],
49565
+ "carbonMonoxide.getStatus": [{
49566
+ name: "deviceId",
49567
+ form: "single",
49568
+ optional: false
49569
+ }],
49570
+ "climateControl.getStatus": [{
49571
+ name: "deviceId",
49572
+ form: "single",
49573
+ optional: false
49574
+ }],
49441
49575
  "climateControl.setFanMode": [{
49442
49576
  name: "deviceId",
49443
49577
  form: "single",
@@ -49478,16 +49612,41 @@ Object.freeze({
49478
49612
  form: "single",
49479
49613
  optional: false
49480
49614
  }],
49615
+ "color.getStatus": [{
49616
+ name: "deviceId",
49617
+ form: "single",
49618
+ optional: false
49619
+ }],
49481
49620
  "color.setColor": [{
49482
49621
  name: "deviceId",
49483
49622
  form: "single",
49484
49623
  optional: false
49485
49624
  }],
49625
+ "connectivity.getStatus": [{
49626
+ name: "deviceId",
49627
+ form: "single",
49628
+ optional: false
49629
+ }],
49630
+ "consumables.getStatus": [{
49631
+ name: "deviceId",
49632
+ form: "single",
49633
+ optional: false
49634
+ }],
49486
49635
  "consumables.reset": [{
49487
49636
  name: "deviceId",
49488
49637
  form: "single",
49489
49638
  optional: false
49490
49639
  }],
49640
+ "contact.getStatus": [{
49641
+ name: "deviceId",
49642
+ form: "single",
49643
+ optional: false
49644
+ }],
49645
+ "control.getStatus": [{
49646
+ name: "deviceId",
49647
+ form: "single",
49648
+ optional: false
49649
+ }],
49491
49650
  "control.setValue": [{
49492
49651
  name: "deviceId",
49493
49652
  form: "single",
@@ -49498,6 +49657,11 @@ Object.freeze({
49498
49657
  form: "single",
49499
49658
  optional: false
49500
49659
  }],
49660
+ "cover.getStatus": [{
49661
+ name: "deviceId",
49662
+ form: "single",
49663
+ optional: false
49664
+ }],
49501
49665
  "cover.open": [{
49502
49666
  name: "deviceId",
49503
49667
  form: "single",
@@ -49523,6 +49687,11 @@ Object.freeze({
49523
49687
  form: "single",
49524
49688
  optional: false
49525
49689
  }],
49690
+ "dayNight.getStatus": [{
49691
+ name: "deviceId",
49692
+ form: "single",
49693
+ optional: false
49694
+ }],
49526
49695
  "dayNight.setSettings": [{
49527
49696
  name: "deviceId",
49528
49697
  form: "single",
@@ -49533,11 +49702,31 @@ Object.freeze({
49533
49702
  form: "single",
49534
49703
  optional: true
49535
49704
  }],
49705
+ "detectionPipeline.applyDeviceSettingsPatch": [{
49706
+ name: "deviceId",
49707
+ form: "single",
49708
+ optional: false
49709
+ }],
49710
+ "detectionPipeline.getDeviceLiveContribution": [{
49711
+ name: "deviceId",
49712
+ form: "single",
49713
+ optional: false
49714
+ }],
49715
+ "detectionPipeline.getDeviceSettingsContribution": [{
49716
+ name: "deviceId",
49717
+ form: "single",
49718
+ optional: false
49719
+ }],
49536
49720
  "deviceAdminLink.getAdminLink": [{
49537
49721
  name: "deviceId",
49538
49722
  form: "single",
49539
49723
  optional: false
49540
49724
  }],
49725
+ "deviceAdoption.getStatus": [{
49726
+ name: "deviceId",
49727
+ form: "single",
49728
+ optional: false
49729
+ }],
49541
49730
  "deviceAdoption.release": [{
49542
49731
  name: "camDeviceId",
49543
49732
  form: "single",
@@ -49553,6 +49742,11 @@ Object.freeze({
49553
49742
  form: "single",
49554
49743
  optional: false
49555
49744
  }],
49745
+ "deviceDiscovery.getStatus": [{
49746
+ name: "deviceId",
49747
+ form: "single",
49748
+ optional: false
49749
+ }],
49556
49750
  "deviceDiscovery.listDiscovered": [{
49557
49751
  name: "deviceId",
49558
49752
  form: "single",
@@ -49572,6 +49766,21 @@ Object.freeze({
49572
49766
  form: "single",
49573
49767
  optional: false
49574
49768
  }],
49769
+ "deviceExport.applyDeviceSettingsPatch": [{
49770
+ name: "deviceId",
49771
+ form: "single",
49772
+ optional: false
49773
+ }],
49774
+ "deviceExport.getDeviceLiveContribution": [{
49775
+ name: "deviceId",
49776
+ form: "single",
49777
+ optional: false
49778
+ }],
49779
+ "deviceExport.getDeviceSettingsContribution": [{
49780
+ name: "deviceId",
49781
+ form: "single",
49782
+ optional: false
49783
+ }],
49575
49784
  "deviceExtension.listCandidates": [{
49576
49785
  name: "deviceId",
49577
49786
  form: "single",
@@ -49920,6 +50129,26 @@ Object.freeze({
49920
50129
  form: "single",
49921
50130
  optional: false
49922
50131
  }],
50132
+ "deviceStatus.getStatus": [{
50133
+ name: "deviceId",
50134
+ form: "single",
50135
+ optional: false
50136
+ }],
50137
+ "doorbell.getStatus": [{
50138
+ name: "deviceId",
50139
+ form: "single",
50140
+ optional: false
50141
+ }],
50142
+ "enumSensor.getStatus": [{
50143
+ name: "deviceId",
50144
+ form: "single",
50145
+ optional: false
50146
+ }],
50147
+ "eventEmitter.getStatus": [{
50148
+ name: "deviceId",
50149
+ form: "single",
50150
+ optional: false
50151
+ }],
49923
50152
  "faceGallery.getFaceByTrack": [{
49924
50153
  name: "deviceId",
49925
50154
  form: "single",
@@ -49934,6 +50163,11 @@ Object.freeze({
49934
50163
  form: "array",
49935
50164
  optional: true
49936
50165
  }],
50166
+ "fanControl.getStatus": [{
50167
+ name: "deviceId",
50168
+ form: "single",
50169
+ optional: false
50170
+ }],
49937
50171
  "fanControl.setDirection": [{
49938
50172
  name: "deviceId",
49939
50173
  form: "single",
@@ -49954,6 +50188,26 @@ Object.freeze({
49954
50188
  form: "single",
49955
50189
  optional: false
49956
50190
  }],
50191
+ "featureProbe.getStatus": [{
50192
+ name: "deviceId",
50193
+ form: "single",
50194
+ optional: false
50195
+ }],
50196
+ "flood.getStatus": [{
50197
+ name: "deviceId",
50198
+ form: "single",
50199
+ optional: false
50200
+ }],
50201
+ "gas.getStatus": [{
50202
+ name: "deviceId",
50203
+ form: "single",
50204
+ optional: false
50205
+ }],
50206
+ "humidifier.getStatus": [{
50207
+ name: "deviceId",
50208
+ form: "single",
50209
+ optional: false
50210
+ }],
49957
50211
  "humidifier.setMode": [{
49958
50212
  name: "deviceId",
49959
50213
  form: "single",
@@ -49969,11 +50223,26 @@ Object.freeze({
49969
50223
  form: "single",
49970
50224
  optional: false
49971
50225
  }],
50226
+ "humiditySensor.getStatus": [{
50227
+ name: "deviceId",
50228
+ form: "single",
50229
+ optional: false
50230
+ }],
50231
+ "image.getStatus": [{
50232
+ name: "deviceId",
50233
+ form: "single",
50234
+ optional: false
50235
+ }],
49972
50236
  "imageSettings.getOptions": [{
49973
50237
  name: "deviceId",
49974
50238
  form: "single",
49975
50239
  optional: false
49976
50240
  }],
50241
+ "imageSettings.getStatus": [{
50242
+ name: "deviceId",
50243
+ form: "single",
50244
+ optional: false
50245
+ }],
49977
50246
  "imageSettings.setSettings": [{
49978
50247
  name: "deviceId",
49979
50248
  form: "single",
@@ -49984,6 +50253,11 @@ Object.freeze({
49984
50253
  form: "single",
49985
50254
  optional: false
49986
50255
  }],
50256
+ "intercom.getStatus": [{
50257
+ name: "deviceId",
50258
+ form: "single",
50259
+ optional: false
50260
+ }],
49987
50261
  "intercom.handleAnswer": [{
49988
50262
  name: "deviceId",
49989
50263
  form: "single",
@@ -50014,6 +50288,11 @@ Object.freeze({
50014
50288
  form: "single",
50015
50289
  optional: false
50016
50290
  }],
50291
+ "lawnMowerControl.getStatus": [{
50292
+ name: "deviceId",
50293
+ form: "single",
50294
+ optional: false
50295
+ }],
50017
50296
  "lawnMowerControl.pause": [{
50018
50297
  name: "deviceId",
50019
50298
  form: "single",
@@ -50024,6 +50303,11 @@ Object.freeze({
50024
50303
  form: "single",
50025
50304
  optional: false
50026
50305
  }],
50306
+ "lockControl.getStatus": [{
50307
+ name: "deviceId",
50308
+ form: "single",
50309
+ optional: false
50310
+ }],
50027
50311
  "lockControl.lock": [{
50028
50312
  name: "deviceId",
50029
50313
  form: "single",
@@ -50039,6 +50323,11 @@ Object.freeze({
50039
50323
  form: "single",
50040
50324
  optional: false
50041
50325
  }],
50326
+ "mediaPlayer.getStatus": [{
50327
+ name: "deviceId",
50328
+ form: "single",
50329
+ optional: false
50330
+ }],
50042
50331
  "mediaPlayer.next": [{
50043
50332
  name: "deviceId",
50044
50333
  form: "single",
@@ -50099,6 +50388,11 @@ Object.freeze({
50099
50388
  form: "single",
50100
50389
  optional: false
50101
50390
  }],
50391
+ "motion.getStatus": [{
50392
+ name: "deviceId",
50393
+ form: "single",
50394
+ optional: false
50395
+ }],
50102
50396
  "motion.isDetected": [{
50103
50397
  name: "deviceId",
50104
50398
  form: "single",
@@ -50109,11 +50403,31 @@ Object.freeze({
50109
50403
  form: "single",
50110
50404
  optional: false
50111
50405
  }],
50406
+ "motionDetection.applyDeviceSettingsPatch": [{
50407
+ name: "deviceId",
50408
+ form: "single",
50409
+ optional: false
50410
+ }],
50411
+ "motionDetection.getDeviceLiveContribution": [{
50412
+ name: "deviceId",
50413
+ form: "single",
50414
+ optional: false
50415
+ }],
50416
+ "motionDetection.getDeviceSettingsContribution": [{
50417
+ name: "deviceId",
50418
+ form: "single",
50419
+ optional: false
50420
+ }],
50112
50421
  "motionDetection.removeCamera": [{
50113
50422
  name: "deviceId",
50114
50423
  form: "single",
50115
50424
  optional: false
50116
50425
  }],
50426
+ "motionTrigger.getStatus": [{
50427
+ name: "deviceId",
50428
+ form: "single",
50429
+ optional: false
50430
+ }],
50117
50431
  "motionTrigger.setMotionTrigger": [{
50118
50432
  name: "deviceId",
50119
50433
  form: "single",
@@ -50124,6 +50438,11 @@ Object.freeze({
50124
50438
  form: "single",
50125
50439
  optional: false
50126
50440
  }],
50441
+ "motionZones.getStatus": [{
50442
+ name: "deviceId",
50443
+ form: "single",
50444
+ optional: false
50445
+ }],
50127
50446
  "motionZones.setZone": [{
50128
50447
  name: "deviceId",
50129
50448
  form: "single",
@@ -50134,6 +50453,11 @@ Object.freeze({
50134
50453
  form: "single",
50135
50454
  optional: false
50136
50455
  }],
50456
+ "nativeObjectDetection.getStatus": [{
50457
+ name: "deviceId",
50458
+ form: "single",
50459
+ optional: false
50460
+ }],
50137
50461
  "nativeObjectDetection.setEnabled": [{
50138
50462
  name: "deviceId",
50139
50463
  form: "single",
@@ -50149,6 +50473,11 @@ Object.freeze({
50149
50473
  form: "single",
50150
50474
  optional: false
50151
50475
  }],
50476
+ "navigation.getStatus": [{
50477
+ name: "deviceId",
50478
+ form: "single",
50479
+ optional: false
50480
+ }],
50152
50481
  "navigation.goToPoint": [{
50153
50482
  name: "deviceId",
50154
50483
  form: "single",
@@ -50194,6 +50523,11 @@ Object.freeze({
50194
50523
  form: "single",
50195
50524
  optional: false
50196
50525
  }],
50526
+ "networkLink.getStatus": [{
50527
+ name: "deviceId",
50528
+ form: "single",
50529
+ optional: false
50530
+ }],
50197
50531
  "networkQuality.getDeviceStats": [{
50198
50532
  name: "deviceId",
50199
50533
  form: "single",
@@ -50204,6 +50538,11 @@ Object.freeze({
50204
50538
  form: "single",
50205
50539
  optional: false
50206
50540
  }],
50541
+ "notificationRules.getAlarmSensors": [{
50542
+ name: "deviceIds",
50543
+ form: "array",
50544
+ optional: false
50545
+ }],
50207
50546
  "notificationRules.setDeviceMuted": [{
50208
50547
  name: "deviceId",
50209
50548
  form: "single",
@@ -50214,11 +50553,26 @@ Object.freeze({
50214
50553
  form: "single",
50215
50554
  optional: false
50216
50555
  }],
50556
+ "notifier.getStatus": [{
50557
+ name: "deviceId",
50558
+ form: "single",
50559
+ optional: false
50560
+ }],
50217
50561
  "notifier.send": [{
50218
50562
  name: "deviceId",
50219
50563
  form: "single",
50220
50564
  optional: false
50221
50565
  }],
50566
+ "numericSensor.getStatus": [{
50567
+ name: "deviceId",
50568
+ form: "single",
50569
+ optional: false
50570
+ }],
50571
+ "osd.getStatus": [{
50572
+ name: "deviceId",
50573
+ form: "single",
50574
+ optional: false
50575
+ }],
50222
50576
  "osd.setOverlay": [{
50223
50577
  name: "deviceId",
50224
50578
  form: "single",
@@ -50278,6 +50632,11 @@ Object.freeze({
50278
50632
  form: "single",
50279
50633
  optional: false
50280
50634
  }],
50635
+ "petFeeder.getStatus": [{
50636
+ name: "deviceId",
50637
+ form: "single",
50638
+ optional: false
50639
+ }],
50281
50640
  "petFeeder.markFoodReplenished": [{
50282
50641
  name: "deviceId",
50283
50642
  form: "single",
@@ -50313,6 +50672,11 @@ Object.freeze({
50313
50672
  form: "single",
50314
50673
  optional: false
50315
50674
  }],
50675
+ "pipelineAnalytics.applyDeviceSettingsPatch": [{
50676
+ name: "deviceId",
50677
+ form: "single",
50678
+ optional: false
50679
+ }],
50316
50680
  "pipelineAnalytics.clearTrackRelation": [{
50317
50681
  name: "deviceId",
50318
50682
  form: "single",
@@ -50353,6 +50717,16 @@ Object.freeze({
50353
50717
  form: "single",
50354
50718
  optional: false
50355
50719
  }],
50720
+ "pipelineAnalytics.getDeviceLiveContribution": [{
50721
+ name: "deviceId",
50722
+ form: "single",
50723
+ optional: false
50724
+ }],
50725
+ "pipelineAnalytics.getDeviceSettingsContribution": [{
50726
+ name: "deviceId",
50727
+ form: "single",
50728
+ optional: false
50729
+ }],
50356
50730
  "pipelineAnalytics.getEventDensity": [{
50357
50731
  name: "deviceId",
50358
50732
  form: "single",
@@ -50568,6 +50942,11 @@ Object.freeze({
50568
50942
  form: "single",
50569
50943
  optional: true
50570
50944
  }],
50945
+ "pipelineOrchestrator.applyDeviceSettingsPatch": [{
50946
+ name: "deviceId",
50947
+ form: "single",
50948
+ optional: false
50949
+ }],
50571
50950
  "pipelineOrchestrator.assignAudio": [{
50572
50951
  name: "deviceId",
50573
50952
  form: "single",
@@ -50613,6 +50992,16 @@ Object.freeze({
50613
50992
  form: "single",
50614
50993
  optional: false
50615
50994
  }],
50995
+ "pipelineOrchestrator.getDeviceLiveContribution": [{
50996
+ name: "deviceId",
50997
+ form: "single",
50998
+ optional: false
50999
+ }],
51000
+ "pipelineOrchestrator.getDeviceSettingsContribution": [{
51001
+ name: "deviceId",
51002
+ form: "single",
51003
+ optional: false
51004
+ }],
50616
51005
  "pipelineOrchestrator.getPipelineAssignment": [{
50617
51006
  name: "deviceId",
50618
51007
  form: "single",
@@ -50733,11 +51122,31 @@ Object.freeze({
50733
51122
  form: "single",
50734
51123
  optional: true
50735
51124
  }],
51125
+ "powerMeter.getStatus": [{
51126
+ name: "deviceId",
51127
+ form: "single",
51128
+ optional: false
51129
+ }],
51130
+ "presence.getStatus": [{
51131
+ name: "deviceId",
51132
+ form: "single",
51133
+ optional: false
51134
+ }],
51135
+ "pressureSensor.getStatus": [{
51136
+ name: "deviceId",
51137
+ form: "single",
51138
+ optional: false
51139
+ }],
50736
51140
  "privacyMask.getOptions": [{
50737
51141
  name: "deviceId",
50738
51142
  form: "single",
50739
51143
  optional: false
50740
51144
  }],
51145
+ "privacyMask.getStatus": [{
51146
+ name: "deviceId",
51147
+ form: "single",
51148
+ optional: false
51149
+ }],
50741
51150
  "privacyMask.setAudioEnabled": [{
50742
51151
  name: "deviceId",
50743
51152
  form: "single",
@@ -50788,6 +51197,11 @@ Object.freeze({
50788
51197
  form: "single",
50789
51198
  optional: false
50790
51199
  }],
51200
+ "ptz.getStatus": [{
51201
+ name: "deviceId",
51202
+ form: "single",
51203
+ optional: false
51204
+ }],
50791
51205
  "ptz.goHome": [{
50792
51206
  name: "deviceId",
50793
51207
  form: "single",
@@ -50878,6 +51292,11 @@ Object.freeze({
50878
51292
  form: "single",
50879
51293
  optional: false
50880
51294
  }],
51295
+ "recordingArchive.applyDeviceSettingsPatch": [{
51296
+ name: "deviceId",
51297
+ form: "single",
51298
+ optional: false
51299
+ }],
50881
51300
  "recordingArchive.deleteFootprint": [{
50882
51301
  name: "deviceId",
50883
51302
  form: "single",
@@ -50898,6 +51317,21 @@ Object.freeze({
50898
51317
  form: "single",
50899
51318
  optional: false
50900
51319
  }],
51320
+ "recordingArchive.getDeviceLiveContribution": [{
51321
+ name: "deviceId",
51322
+ form: "single",
51323
+ optional: false
51324
+ }],
51325
+ "recordingArchive.getDeviceSettingsContribution": [{
51326
+ name: "deviceId",
51327
+ form: "single",
51328
+ optional: false
51329
+ }],
51330
+ "recordingArchive.getStatus": [{
51331
+ name: "deviceId",
51332
+ form: "single",
51333
+ optional: false
51334
+ }],
50901
51335
  "recordingArchive.listOpsLog": [{
50902
51336
  name: "deviceId",
50903
51337
  form: "single",
@@ -50983,6 +51417,11 @@ Object.freeze({
50983
51417
  form: "single",
50984
51418
  optional: false
50985
51419
  }],
51420
+ "recordingOnboard.getStatus": [{
51421
+ name: "deviceId",
51422
+ form: "single",
51423
+ optional: false
51424
+ }],
50986
51425
  "recordingOnboard.setSettings": [{
50987
51426
  name: "deviceId",
50988
51427
  form: "single",
@@ -51013,6 +51452,11 @@ Object.freeze({
51013
51452
  form: "single",
51014
51453
  optional: false
51015
51454
  }],
51455
+ "sceneMonitor.getStatus": [{
51456
+ name: "deviceId",
51457
+ form: "single",
51458
+ optional: false
51459
+ }],
51016
51460
  "sceneMonitor.listScenes": [{
51017
51461
  name: "deviceId",
51018
51462
  form: "single",
@@ -51038,6 +51482,11 @@ Object.freeze({
51038
51482
  form: "single",
51039
51483
  optional: false
51040
51484
  }],
51485
+ "scriptRunner.getStatus": [{
51486
+ name: "deviceId",
51487
+ form: "single",
51488
+ optional: false
51489
+ }],
51041
51490
  "scriptRunner.run": [{
51042
51491
  name: "deviceId",
51043
51492
  form: "single",
@@ -51048,11 +51497,31 @@ Object.freeze({
51048
51497
  form: "single",
51049
51498
  optional: false
51050
51499
  }],
51500
+ "smoke.getStatus": [{
51501
+ name: "deviceId",
51502
+ form: "single",
51503
+ optional: false
51504
+ }],
51505
+ "snapshot.applyDeviceSettingsPatch": [{
51506
+ name: "deviceId",
51507
+ form: "single",
51508
+ optional: false
51509
+ }],
51051
51510
  "snapshot.getDebugState": [{
51052
51511
  name: "deviceId",
51053
51512
  form: "single",
51054
51513
  optional: false
51055
51514
  }],
51515
+ "snapshot.getDeviceLiveContribution": [{
51516
+ name: "deviceId",
51517
+ form: "single",
51518
+ optional: false
51519
+ }],
51520
+ "snapshot.getDeviceSettingsContribution": [{
51521
+ name: "deviceId",
51522
+ form: "single",
51523
+ optional: false
51524
+ }],
51056
51525
  "snapshot.getSnapshot": [{
51057
51526
  name: "deviceId",
51058
51527
  form: "single",
@@ -51069,6 +51538,11 @@ Object.freeze({
51069
51538
  form: "array",
51070
51539
  optional: false
51071
51540
  }],
51541
+ "snapshot.getStatus": [{
51542
+ name: "deviceId",
51543
+ form: "single",
51544
+ optional: false
51545
+ }],
51072
51546
  "snapshot.invalidateCache": [{
51073
51547
  name: "deviceId",
51074
51548
  form: "single",
@@ -51079,6 +51553,11 @@ Object.freeze({
51079
51553
  form: "single",
51080
51554
  optional: false
51081
51555
  }],
51556
+ "streamBroker.applyDeviceSettingsPatch": [{
51557
+ name: "deviceId",
51558
+ form: "single",
51559
+ optional: false
51560
+ }],
51082
51561
  "streamBroker.assignProfile": [{
51083
51562
  name: "deviceId",
51084
51563
  form: "single",
@@ -51094,6 +51573,16 @@ Object.freeze({
51094
51573
  form: "single",
51095
51574
  optional: false
51096
51575
  }],
51576
+ "streamBroker.getDeviceLiveContribution": [{
51577
+ name: "deviceId",
51578
+ form: "single",
51579
+ optional: false
51580
+ }],
51581
+ "streamBroker.getDeviceSettingsContribution": [{
51582
+ name: "deviceId",
51583
+ form: "single",
51584
+ optional: false
51585
+ }],
51097
51586
  "streamBroker.getStreamWithCodec": [{
51098
51587
  name: "deviceId",
51099
51588
  form: "single",
@@ -51154,16 +51643,46 @@ Object.freeze({
51154
51643
  form: "single",
51155
51644
  optional: false
51156
51645
  }],
51646
+ "streamParams.getStatus": [{
51647
+ name: "deviceId",
51648
+ form: "single",
51649
+ optional: false
51650
+ }],
51157
51651
  "streamParams.setProfile": [{
51158
51652
  name: "deviceId",
51159
51653
  form: "single",
51160
51654
  optional: false
51161
51655
  }],
51656
+ "switch.getStatus": [{
51657
+ name: "deviceId",
51658
+ form: "single",
51659
+ optional: false
51660
+ }],
51162
51661
  "switch.setState": [{
51163
51662
  name: "deviceId",
51164
51663
  form: "single",
51165
51664
  optional: false
51166
51665
  }],
51666
+ "tamper.getStatus": [{
51667
+ name: "deviceId",
51668
+ form: "single",
51669
+ optional: false
51670
+ }],
51671
+ "temperatureSensor.getStatus": [{
51672
+ name: "deviceId",
51673
+ form: "single",
51674
+ optional: false
51675
+ }],
51676
+ "update.getStatus": [{
51677
+ name: "deviceId",
51678
+ form: "single",
51679
+ optional: false
51680
+ }],
51681
+ "vacuumControl.getStatus": [{
51682
+ name: "deviceId",
51683
+ form: "single",
51684
+ optional: false
51685
+ }],
51167
51686
  "vacuumControl.locate": [{
51168
51687
  name: "deviceId",
51169
51688
  form: "single",
@@ -51199,6 +51718,11 @@ Object.freeze({
51199
51718
  form: "single",
51200
51719
  optional: false
51201
51720
  }],
51721
+ "valve.getStatus": [{
51722
+ name: "deviceId",
51723
+ form: "single",
51724
+ optional: false
51725
+ }],
51202
51726
  "valve.open": [{
51203
51727
  name: "deviceId",
51204
51728
  form: "single",
@@ -51214,6 +51738,11 @@ Object.freeze({
51214
51738
  form: "single",
51215
51739
  optional: false
51216
51740
  }],
51741
+ "vibration.getStatus": [{
51742
+ name: "deviceId",
51743
+ form: "single",
51744
+ optional: false
51745
+ }],
51217
51746
  "videoclips.dialClipStream": [{
51218
51747
  name: "deviceId",
51219
51748
  form: "single",
@@ -51249,6 +51778,11 @@ Object.freeze({
51249
51778
  form: "single",
51250
51779
  optional: false
51251
51780
  }],
51781
+ "waterHeater.getStatus": [{
51782
+ name: "deviceId",
51783
+ form: "single",
51784
+ optional: false
51785
+ }],
51252
51786
  "waterHeater.setAway": [{
51253
51787
  name: "deviceId",
51254
51788
  form: "single",
@@ -51264,6 +51798,11 @@ Object.freeze({
51264
51798
  form: "single",
51265
51799
  optional: false
51266
51800
  }],
51801
+ "weather.getStatus": [{
51802
+ name: "deviceId",
51803
+ form: "single",
51804
+ optional: false
51805
+ }],
51267
51806
  "webrtcSession.addIceCandidate": [{
51268
51807
  name: "deviceId",
51269
51808
  form: "single",
@@ -52208,7 +52747,7 @@ var PreviewTextField = string().max(200);
52208
52747
  * Whether the notification's preview is a STILL or a short animation.
52209
52748
  *
52210
52749
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
52211
- * rule)"* — the other rules already offer an animated preview, and a ten-hour
52750
+ * rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
52212
52751
  * night reads better as three seconds of motion than as one frame of it. Both
52213
52752
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
52214
52753
  * simply applies it to a dozen frames sampled across the render and assembles