@camstack/addon-model-studio 1.1.188 → 1.1.190

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.
Files changed (18) hide show
  1. package/dist/{MotionZonesSettings-C3Q6uGN6.mjs → MotionZonesSettings-FMiMjTOe.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BTYQ0naD.mjs → PrivacyMaskSettings-C54kjXje.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-Cp7WaMLv.mjs → SceneMonitorEditor-D3mHd1Bs.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DsTZQf95.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Cf8IawB4.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C8mPXBuv.mjs +26 -0
  7. package/dist/{hostInit-DdDrweKo.mjs → hostInit-BEL-_Qgx.mjs} +2 -2
  8. package/dist/model-studio.addon.js +155 -76
  9. package/dist/model-studio.addon.mjs +155 -76
  10. package/dist/{player-overlays-DKT8GX77.mjs → player-overlays-BR1a0BDm.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-DIe_729f.mjs → responsive-BoGo5jZn.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-BPMddHmu.mjs → scene-monitor-copy-0evm2MrA.mjs} +1 -1
  14. package/dist/{square-BV6C5eVN.mjs → square-NiMmxe53.mjs} +1 -1
  15. package/dist/{trash-2-pItW1ij8.mjs → trash-2-DD3Sx3hW.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-xPDjO4M6.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CCqbjc06.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-4iTjY_Pt.mjs +0 -26
@@ -8060,7 +8060,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8060
8060
  return DeviceRole;
8061
8061
  }({});
8062
8062
  //#endregion
8063
- //#region ../types/dist/composition-43aqsZQj.mjs
8063
+ //#region ../types/dist/composition-D7ULvLdD.mjs
8064
8064
  /**
8065
8065
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8066
8066
  *
@@ -8114,20 +8114,20 @@ function portable(target) {
8114
8114
  }
8115
8115
  portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
8116
8116
  /**
8117
- * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
8118
- * valutatore puro del suo FRONTE.
8117
+ * THE table "which boolean of this device type counts as HIGH", and the
8118
+ * pure evaluator of its EDGE.
8119
8119
  *
8120
- * UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
8121
- * trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
8122
- * sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
8123
- * le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
8124
- * Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
8125
- * sensore fa suonare il campanello ma non registra" — è esattamente D62.
8120
+ * ONE table for everyone who asks "is this device HIGH?": the
8121
+ * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8122
+ * sensor markers, the orchestrator's camera-sensors bridge and
8123
+ * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
8124
+ * A second copy would diverge at the first cap added, and the symptom — "the
8125
+ * sensor rings the doorbell but does not record" — is exactly D62.
8126
8126
  *
8127
- * ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
8128
- * due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
8129
- * regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
8130
- * booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
8127
+ * ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
8128
+ * two must not be unified: that one answers "what is the state WORD for a
8129
+ * rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
8130
+ * boolean's EDGE counts". Deliberately different vocabularies.
8131
8131
  */
8132
8132
  /**
8133
8133
  * Known binary / switch source caps → the boolean slice field whose
@@ -9734,22 +9734,22 @@ var CLASS_MAP_MACRO_TARGETS = [
9734
9734
  "package"
9735
9735
  ];
9736
9736
  /**
9737
- * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
9738
- * un operatore può selezionare.
9737
+ * The FIRST-LEVEL macro classes: those an object detector emits and that
9738
+ * an operator can select.
9739
9739
  *
9740
- * Sono le tre offerte dallo step `object-detection`
9740
+ * They are the three offered by the `object-detection` step
9741
9741
  * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
9742
- * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
9743
- * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
9744
- * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
9745
- * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
9742
+ * `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
9743
+ * `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
9744
+ * `package-detection`, whose enablement is driven by zones, and offering the
9745
+ * same word twice has already made an operator turn on the COCO proxy
9746
9746
  * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
9747
9747
  *
9748
- * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
9749
- * dello step e una seconda volta come union `FirstLevelMacro`
9750
- * (`types/detection.ts`); una terza copia per il trigger di registrazione
9751
- * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
9752
- * successiva.
9748
+ * ONE list. Before today the same three were hand-written in the step's offer
9749
+ * and a second time as the union `FirstLevelMacro`
9750
+ * (`types/detection.ts`); a third copy for the recording trigger
9751
+ * (`RecordingTriggers.objectClasses`) would have made the later divergence
9752
+ * invisible.
9753
9753
  */
9754
9754
  var FIRST_LEVEL_MACRO_CLASSES = [
9755
9755
  "person",
@@ -9814,17 +9814,17 @@ var RecordingStorageModeSchema = _enum([
9814
9814
  "on-device-decision"
9815
9815
  ]);
9816
9816
  /**
9817
- * Le macro classi che possono aprire una finestra di registrazione — le stesse
9818
- * tre offerte dallo step `object-detection`, da UNA lista
9817
+ * The macro classes that can open a recording window — the same
9818
+ * three offered by the `object-detection` step, from ONE list
9819
9819
  * ({@link FIRST_LEVEL_MACRO_CLASSES}).
9820
9820
  */
9821
9821
  var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
9822
9822
  /**
9823
- * True quando `values` non ripete un elemento.
9823
+ * True when `values` does not repeat an element.
9824
9824
  *
9825
- * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
9826
- * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
9827
- * conterebbe due volte le sue finestre in `segmentMissedByMs`.
9825
+ * A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
9826
+ * becomes a SOURCE in `bandTriggerSources`, and the same source twice
9827
+ * would count its windows twice in `segmentMissedByMs`.
9828
9828
  */
9829
9829
  var noDuplicates = (values) => new Set(values).size === values.length;
9830
9830
  /** Which detectors trigger an `events`-mode band. */
@@ -9832,34 +9832,34 @@ var RecordingTriggersSchema = object({
9832
9832
  motion: boolean().optional(),
9833
9833
  audioThresholdDbfs: number().optional(),
9834
9834
  /**
9835
- * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
9836
- * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
9837
- * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
9838
- * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
9835
+ * The macro classes whose detection opens a window. ABSENT = the source
9836
+ * is not listened to; an EMPTY array is rejected, because "events band, object
9837
+ * trigger on, no class" is the same shape "enabled and records
9838
+ * nothing, forever" that `eventsBandCanEverDemand` is written against.
9839
9839
  *
9840
- * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
9841
- * quelle che hanno attraversato `enabledMacroClasses`, i
9842
- * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
9843
- * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
9844
- * finestre — vedi `recorder/object-trigger.ts`.
9840
+ * The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
9841
+ * those that went through `enabledMacroClasses`, the
9842
+ * `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
9843
+ * (`source: 'onboard'`) goes through none of those gates and does NOT open
9844
+ * windows — see `recorder/object-trigger.ts`.
9845
9845
  */
9846
9846
  objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
9847
9847
  /**
9848
- * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
9849
- * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
9848
+ * The LINKED devices whose RISING EDGE opens a window. Absent = the source
9849
+ * is not listened to; an empty array is rejected for the same reason as
9850
9850
  * `objectClasses`.
9851
9851
  *
9852
- * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
9853
- * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
9854
- * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
9855
- * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9856
- * device (D12) — mai un elenco globale di cap.
9852
+ * These are SOURCE device ids, not cameras: the band names them, so the
9853
+ * hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
9854
+ * does no RPC. The OFFER from which the operator picks them is another question, and
9855
+ * is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9856
+ * device (D12) — never a global list of caps.
9857
9857
  *
9858
- * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
9859
- * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
9860
- * la stessa del campanello composto (D671). Ed è il FRONTE, non
9861
- * il livello: un contatto trovato già aperto al riavvio del runner non fa
9862
- * registrare.
9858
+ * What "high" means depends on the device TYPE and is not decided here:
9859
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
9860
+ * the same one as the composite doorbell (D671). And it is the EDGE, not
9861
+ * the level: a contact found already open at runner restart does not
9862
+ * record.
9863
9863
  */
9864
9864
  sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
9865
9865
  });
@@ -10936,7 +10936,7 @@ var DecoderSessionConfigSchema = object({
10936
10936
  * - **VALUE** — at which level, for which scope, until when. That stays ONE
10937
10937
  * thing: the logging settings document on the `system` cap. Two authorities
10938
10938
  * over the values is the exact defect
10939
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
10939
+ * `docs/design/plans/2026-08-26-per-component-logging.md` was written to
10940
10940
  * remove; re-introducing it from the cure side would be grotesque.
10941
10941
  *
10942
10942
  * Nothing in this file reads a clock, an env var or a store. The registry is
@@ -14423,7 +14423,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
14423
14423
  *
14424
14424
  * ⚠ An earlier version of this comment blamed Zod stripping, and that
14425
14425
  * was wrong — corrected 2026-08-26 after the hop map
14426
- * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
14426
+ * (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
14427
14427
  * There is **no Zod parse at all** between the door and the engine: the
14428
14428
  * dispatcher forwards the payload verbatim and UDS carries it whole. A
14429
14429
  * field declared here reaches `SqliteSettingsBackend` either way.
@@ -15179,7 +15179,17 @@ var SiteZoneSchema = object({
15179
15179
  var ProviderStatusSchema = object({
15180
15180
  connected: boolean(),
15181
15181
  deviceCount: number(),
15182
- error: string().optional()
15182
+ error: string().optional(),
15183
+ /**
15184
+ * `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
15185
+ * — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
15186
+ * which every provider bundles, so only a provider BUILT from D696-amended
15187
+ * code says it. ABSENT means an older provider that may still write it (raw
15188
+ * VMD writes, a boot seed), and the orchestrator's provider gate keeps that
15189
+ * provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
15190
+ * — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
15191
+ */
15192
+ motionSliceWriter: literal("orchestrator").optional()
15183
15193
  });
15184
15194
  object({
15185
15195
  externalId: string(),
@@ -16315,7 +16325,7 @@ method(object({
16315
16325
  * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
16316
16326
  * ends in a log line, and a log line is the thing the operator asked to stop
16317
16327
  * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
16318
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
16328
+ * 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
16319
16329
  * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
16320
16330
  * media blackout were both diagnosed. The counters stay; this is where they can
16321
16331
  * be READ.
@@ -20528,6 +20538,29 @@ object({
20528
20538
  firstAt: number(),
20529
20539
  lastAt: number()
20530
20540
  });
20541
+ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
20542
+ var NcAlarmDelaySecSchema = number().int().min(0).max(600);
20543
+ var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
20544
+ var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
20545
+ var NcAlarmModeDelaysListSchema = array(object({
20546
+ mode: AlarmArmModeSchema,
20547
+ exitDelaySec: NcAlarmDelaySecSchema.optional(),
20548
+ entryDelaySec: NcAlarmDelaySecSchema.optional(),
20549
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
20550
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20551
+ var NcAlarmModeDelaysEditListSchema = array(object({
20552
+ mode: AlarmArmModeSchema,
20553
+ exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20554
+ entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20555
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
20556
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20557
+ /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20558
+ var NcAlarmNonBlockingEditSchema = object({
20559
+ mode: AlarmArmModeSchema,
20560
+ deviceId: number().int().positive(),
20561
+ /** true = on the list (may be open, does not block); false = off the list (blocks). */
20562
+ nonBlocking: boolean()
20563
+ });
20531
20564
  /**
20532
20565
  * The per-mode lists, at most one per mode. Two lists for one mode have no
20533
20566
  * meaning a reader could agree on (union? the last one?), so they are refused
@@ -20536,10 +20569,10 @@ object({
20536
20569
  var NcAlarmNonBlockingListSchema = array(object({
20537
20570
  mode: AlarmArmModeSchema,
20538
20571
  deviceIds: array(number().int()).max(200)
20539
- })).max(8).refine((lists) => new Set(lists.map((l) => l.mode)).size === lists.length, { message: "nonBlocking: at most one list per arm mode" });
20572
+ })).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
20540
20573
  /**
20541
- * The three durations the panel's state machine runs on, who hears about its
20542
- * transitions, and which openings each mode tolerates.
20574
+ * The three durations — global, and per mode since D697 — the panel's state
20575
+ * machine runs on, who hears about its transitions, and which openings each mode tolerates.
20543
20576
  *
20544
20577
  * They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
20545
20578
  * `alarm-panel` is `deviceNative` and its other provider mirrors somebody
@@ -20549,15 +20582,15 @@ var NcAlarmNonBlockingListSchema = array(object({
20549
20582
  */
20550
20583
  var NcAlarmSettingsSchema = object({
20551
20584
  /** Grace period between arming and the mode taking effect. 0 = immediate. */
20552
- exitDelaySec: number().int().min(0).max(600),
20585
+ exitDelaySec: NcAlarmDelaySecSchema,
20553
20586
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
20554
- entryDelaySec: number().int().min(0).max(600),
20587
+ entryDelaySec: NcAlarmDelaySecSchema,
20555
20588
  /**
20556
20589
  * How long `triggered` lasts before the panel re-arms itself.
20557
20590
  * **0 = until an operator disarms it** — the behaviour before this field
20558
20591
  * existed, and therefore what an untouched install keeps doing.
20559
20592
  */
20560
- triggeredDurationSec: number().int().min(0).max(3600),
20593
+ triggeredDurationSec: NcAlarmTriggeredSecSchema,
20561
20594
  /**
20562
20595
  * Deprecated by D630 — every transition is announced. Parsed, never read;
20563
20596
  * remove after one release. Optional so an older admin's patch (which still
@@ -20580,17 +20613,30 @@ var NcAlarmSettingsSchema = object({
20580
20613
  * per mode is meaningful. Defaulted to `[]` so a blob stored before D630
20581
20614
  * parses as "every opening blocks" — the behaviour it was written under.
20582
20615
  */
20583
- nonBlocking: NcAlarmNonBlockingListSchema.default([])
20616
+ nonBlocking: NcAlarmNonBlockingListSchema.default([]),
20617
+ /**
20618
+ * Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
20619
+ * without a field, uses the global value above — so `[]`, the default, is exactly the
20620
+ * behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
20621
+ */
20622
+ modeDelays: NcAlarmModeDelaysListSchema.default([])
20584
20623
  });
20585
20624
  /**
20586
20625
  * Every field optional — a tab edits one control at a time.
20587
20626
  *
20588
- * `nonBlocking` is re-declared WITHOUT its default: `.partial()` does not
20589
- * remove an inner `.default()`, so a patch that never named the field would
20590
- * parse to `nonBlocking: []` and wipe every mode's list on an unrelated edit
20591
- * (the same trap {@link NcRulePatchSchema} documents).
20627
+ * `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
20628
+ * `.partial()` does not remove an inner `.default()`, so a patch that never
20629
+ * named the field would parse to `[]` and wipe every mode's list on an
20630
+ * unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
20631
+ * `modeDelays` means EDITS, not the stored overrides.
20592
20632
  */
20593
- var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({ nonBlocking: NcAlarmNonBlockingListSchema }).partial();
20633
+ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
20634
+ nonBlocking: NcAlarmNonBlockingListSchema,
20635
+ /** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
20636
+ modeDelays: NcAlarmModeDelaysEditListSchema,
20637
+ /** ONE membership change; the panel applies it to the list it holds at its turn. */
20638
+ nonBlockingEdit: NcAlarmNonBlockingEditSchema
20639
+ }).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
20594
20640
  /**
20595
20641
  * What one arm mode actually arms, DERIVED from the enabled rules gated on it.
20596
20642
  * Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
@@ -20690,6 +20736,28 @@ var NcAlarmConfigSchema = object({
20690
20736
  */
20691
20737
  live: NcAlarmLiveSchema.optional()
20692
20738
  });
20739
+ var NcAlarmSensorReadingSchema = _enum([
20740
+ "open",
20741
+ "closed",
20742
+ "unknown",
20743
+ "not-opening"
20744
+ ]);
20745
+ /** One device's state as the alarm reads it — the classifier the arm check uses. */
20746
+ var NcAlarmSensorStateSchema = object({
20747
+ deviceId: number().int().positive(),
20748
+ reading: NcAlarmSensorReadingSchema,
20749
+ /** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
20750
+ state: string().nullable(),
20751
+ /** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
20752
+ unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
20753
+ /** The device manager's liveness as the centre mirrors it; null = not known. */
20754
+ online: boolean().nullable()
20755
+ });
20756
+ var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
20757
+ var NcAlarmSensorsSchema = object({
20758
+ sensors: array(NcAlarmSensorStateSchema),
20759
+ readAt: number().int().nonnegative()
20760
+ });
20693
20761
  /**
20694
20762
  * ONE rule's demand on ONE camera's clip ring.
20695
20763
  *
@@ -20780,7 +20848,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
20780
20848
  }), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
20781
20849
  kind: "mutation",
20782
20850
  auth: "admin"
20783
- });
20851
+ }), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
20784
20852
  /**
20785
20853
  * Zod schemas for persisted record types.
20786
20854
  *
@@ -21932,14 +22000,14 @@ var TrackSchema = object({
21932
22000
  * `derive-returned-null tile=standin`,
21933
22001
  * `native-tile tile=native no-key-frame-at-close`, …) written at close and
21934
22002
  * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
21935
- * The operator-facing answer to "perché manca l'immagine?" on a track whose
22003
+ * The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
21936
22004
  * tile is a face/plate stand-in, a raster crop, or an icon.
21937
22005
  *
21938
22006
  * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
21939
22007
  * the TILE ranked below native, so a track whose thumbnail landed natively
21940
22008
  * while its key frame missed carried no reason at all — three of the four
21941
22009
  * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
21942
- * that shape, and their "niente ultimo" had no cause anywhere on the row.
22010
+ * that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
21943
22011
  * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
21944
22012
  * lastFrame copy source`), so its absence is now on this line whatever the
21945
22013
  * tile ended up being.
@@ -22026,7 +22094,7 @@ var MotionEventSchema = object({
22026
22094
  /**
22027
22095
  * Ms offsets from `timestamp` (the episode's own first rising edge, so the
22028
22096
  * first entry is always `0`) of every genuine off→on transition the
22029
- * episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
22097
+ * episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
22030
22098
  * push: a firmware source that keepalives at ~1 Hz for the whole burst
22031
22099
  * (Reolink, Hikvision) produces exactly one edge; a source that reports an
22032
22100
  * explicit `false` mid-episode and then resumes before the quiet window
@@ -27262,7 +27330,7 @@ var ClipPlaybackSchema = object({
27262
27330
  * **One authorised yes is one wake.** `next-natural` — take the clip the next
27263
27331
  * time the camera is awake for its own reasons — is deliberately not a member:
27264
27332
  * it was proposed, it is free on the battery, and the operator declined it on
27265
- * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."*,
27333
+ * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
27266
27334
  * D558 "Considered and not taken").
27267
27335
  */
27268
27336
  var ClipWakeSchema = _enum(["authorised"]);
@@ -27523,7 +27591,7 @@ DeviceType.Camera, method(object({
27523
27591
  * It replaced `sources?: string[]`, a VIEW filter over source ids that
27524
27592
  * assumed the answer was a fan-out over everything a camera has. The
27525
27593
  * operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
27526
- * solo"* — so the list is asked of one provider at a time and there is
27594
+ * solo"* [there is only one user] — so the list is asked of one provider at a time and there is
27527
27595
  * nothing to filter out of it.
27528
27596
  */
27529
27597
  provider: string().min(1)
@@ -33641,7 +33709,7 @@ var ReadGopBytesResultSchema = object({
33641
33709
  /**
33642
33710
  * A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
33643
33711
  * twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
33644
- * replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
33712
+ * replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
33645
33713
  * a replay needs several seconds of native pixels, not one frame.
33646
33714
  *
33647
33715
  * `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
@@ -41235,6 +41303,12 @@ Object.freeze({
41235
41303
  addonId: null,
41236
41304
  access: "view"
41237
41305
  },
41306
+ "notificationRules.getAlarmSensors": {
41307
+ capName: "notification-rules",
41308
+ capScope: "system",
41309
+ addonId: null,
41310
+ access: "view"
41311
+ },
41238
41312
  "notificationRules.getClipRetentionAsks": {
41239
41313
  capName: "notification-rules",
41240
41314
  capScope: "system",
@@ -45718,6 +45792,11 @@ Object.freeze({
45718
45792
  form: "single",
45719
45793
  optional: false
45720
45794
  }],
45795
+ "notificationRules.getAlarmSensors": [{
45796
+ name: "deviceIds",
45797
+ form: "array",
45798
+ optional: false
45799
+ }],
45721
45800
  "notificationRules.setDeviceMuted": [{
45722
45801
  name: "deviceId",
45723
45802
  form: "single",
@@ -47515,7 +47594,7 @@ var PreviewTextField = string().max(200);
47515
47594
  * Whether the notification's preview is a STILL or a short animation.
47516
47595
  *
47517
47596
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
47518
- * rule)"* — the other rules already offer an animated preview, and a ten-hour
47597
+ * rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
47519
47598
  * night reads better as three seconds of motion than as one frame of it. Both
47520
47599
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
47521
47600
  * simply applies it to a dozen frames sampled across the render and assembles