@camstack/addon-osd-manager 0.1.153 → 0.1.155

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-Bi_uB8oT.mjs → MotionZonesSettings-DHyaxzBi.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-DuzJnDoQ.mjs → PrivacyMaskSettings-D7EH_wl3.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-CnpHHB8l.mjs → SceneMonitorEditor-CO6VwdkE.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BD9qu2T3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-B3v0K7b1.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-1qxETV_o.mjs +26 -0
  7. package/dist/{hostInit-Bo6e-m_F.mjs → hostInit-B3sHUn3j.mjs} +2 -2
  8. package/dist/index.js +169 -81
  9. package/dist/index.mjs +169 -81
  10. package/dist/{player-overlays-CPVNj3Th.mjs → player-overlays-CTsQBdl8.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-CmW26rtV.mjs → responsive-BPw6Y2I0.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-BP0Z6F7z.mjs → scene-monitor-copy-DNkKk6vF.mjs} +1 -1
  14. package/dist/{square-CaTP7VKX.mjs → square-BPzhX8Pc.mjs} +1 -1
  15. package/dist/{trash-2-IrsDpmSJ.mjs → trash-2-DemFUbcB.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DLXGJNFv.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-BUQgSy9b.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DhxFiL0z.mjs +0 -26
package/dist/index.mjs CHANGED
@@ -7519,7 +7519,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
7519
7519
  return DeviceRole;
7520
7520
  }({});
7521
7521
  //#endregion
7522
- //#region ../types/dist/composition-43aqsZQj.mjs
7522
+ //#region ../types/dist/composition-D7ULvLdD.mjs
7523
7523
  /**
7524
7524
  * The ffmpeg build every CamStack node downloads, per platform and arch.
7525
7525
  *
@@ -7573,20 +7573,20 @@ function portable(target) {
7573
7573
  }
7574
7574
  portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
7575
7575
  /**
7576
- * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
7577
- * valutatore puro del suo FRONTE.
7576
+ * THE table "which boolean of this device type counts as HIGH", and the
7577
+ * pure evaluator of its EDGE.
7578
7578
  *
7579
- * UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
7580
- * trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
7581
- * sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
7582
- * le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
7583
- * Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
7584
- * sensore fa suonare il campanello ma non registra" — è esattamente D62.
7579
+ * ONE table for everyone who asks "is this device HIGH?": the
7580
+ * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
7581
+ * sensor markers, the orchestrator's camera-sensors bridge and
7582
+ * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
7583
+ * A second copy would diverge at the first cap added, and the symptom — "the
7584
+ * sensor rings the doorbell but does not record" — is exactly D62.
7585
7585
  *
7586
- * ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
7587
- * due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
7588
- * regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
7589
- * booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
7586
+ * ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
7587
+ * two must not be unified: that one answers "what is the state WORD for a
7588
+ * rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
7589
+ * boolean's EDGE counts". Deliberately different vocabularies.
7590
7590
  */
7591
7591
  /**
7592
7592
  * Known binary / switch source caps → the boolean slice field whose
@@ -9193,22 +9193,22 @@ var CLASS_MAP_MACRO_TARGETS = [
9193
9193
  "package"
9194
9194
  ];
9195
9195
  /**
9196
- * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
9197
- * un operatore può selezionare.
9196
+ * The FIRST-LEVEL macro classes: those an object detector emits and that
9197
+ * an operator can select.
9198
9198
  *
9199
- * Sono le tre offerte dallo step `object-detection`
9199
+ * They are the three offered by the `object-detection` step
9200
9200
  * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
9201
- * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
9202
- * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
9203
- * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
9204
- * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
9201
+ * `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
9202
+ * `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
9203
+ * `package-detection`, whose enablement is driven by zones, and offering the
9204
+ * same word twice has already made an operator turn on the COCO proxy
9205
9205
  * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
9206
9206
  *
9207
- * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
9208
- * dello step e una seconda volta come union `FirstLevelMacro`
9209
- * (`types/detection.ts`); una terza copia per il trigger di registrazione
9210
- * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
9211
- * successiva.
9207
+ * ONE list. Before today the same three were hand-written in the step's offer
9208
+ * and a second time as the union `FirstLevelMacro`
9209
+ * (`types/detection.ts`); a third copy for the recording trigger
9210
+ * (`RecordingTriggers.objectClasses`) would have made the later divergence
9211
+ * invisible.
9212
9212
  */
9213
9213
  var FIRST_LEVEL_MACRO_CLASSES = [
9214
9214
  "person",
@@ -9273,17 +9273,17 @@ var RecordingStorageModeSchema = _enum([
9273
9273
  "on-device-decision"
9274
9274
  ]);
9275
9275
  /**
9276
- * Le macro classi che possono aprire una finestra di registrazione — le stesse
9277
- * tre offerte dallo step `object-detection`, da UNA lista
9276
+ * The macro classes that can open a recording window — the same
9277
+ * three offered by the `object-detection` step, from ONE list
9278
9278
  * ({@link FIRST_LEVEL_MACRO_CLASSES}).
9279
9279
  */
9280
9280
  var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
9281
9281
  /**
9282
- * True quando `values` non ripete un elemento.
9282
+ * True when `values` does not repeat an element.
9283
9283
  *
9284
- * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
9285
- * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
9286
- * conterebbe due volte le sue finestre in `segmentMissedByMs`.
9284
+ * A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
9285
+ * becomes a SOURCE in `bandTriggerSources`, and the same source twice
9286
+ * would count its windows twice in `segmentMissedByMs`.
9287
9287
  */
9288
9288
  var noDuplicates = (values) => new Set(values).size === values.length;
9289
9289
  /** Which detectors trigger an `events`-mode band. */
@@ -9291,34 +9291,34 @@ var RecordingTriggersSchema = object({
9291
9291
  motion: boolean().optional(),
9292
9292
  audioThresholdDbfs: number().optional(),
9293
9293
  /**
9294
- * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
9295
- * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
9296
- * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
9297
- * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
9294
+ * The macro classes whose detection opens a window. ABSENT = the source
9295
+ * is not listened to; an EMPTY array is rejected, because "events band, object
9296
+ * trigger on, no class" is the same shape "enabled and records
9297
+ * nothing, forever" that `eventsBandCanEverDemand` is written against.
9298
9298
  *
9299
- * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
9300
- * quelle che hanno attraversato `enabledMacroClasses`, i
9301
- * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
9302
- * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
9303
- * finestre — vedi `recorder/object-trigger.ts`.
9299
+ * The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
9300
+ * those that went through `enabledMacroClasses`, the
9301
+ * `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
9302
+ * (`source: 'onboard'`) goes through none of those gates and does NOT open
9303
+ * windows — see `recorder/object-trigger.ts`.
9304
9304
  */
9305
9305
  objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
9306
9306
  /**
9307
- * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
9308
- * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
9307
+ * The LINKED devices whose RISING EDGE opens a window. Absent = the source
9308
+ * is not listened to; an empty array is rejected for the same reason as
9309
9309
  * `objectClasses`.
9310
9310
  *
9311
- * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
9312
- * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
9313
- * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
9314
- * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9315
- * device (D12) — mai un elenco globale di cap.
9311
+ * These are SOURCE device ids, not cameras: the band names them, so the
9312
+ * hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
9313
+ * does no RPC. The OFFER from which the operator picks them is another question, and
9314
+ * is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9315
+ * device (D12) — never a global list of caps.
9316
9316
  *
9317
- * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
9318
- * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
9319
- * la stessa del campanello composto (D671). Ed è il FRONTE, non
9320
- * il livello: un contatto trovato già aperto al riavvio del runner non fa
9321
- * registrare.
9317
+ * What "high" means depends on the device TYPE and is not decided here:
9318
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
9319
+ * the same one as the composite doorbell (D671). And it is the EDGE, not
9320
+ * the level: a contact found already open at runner restart does not
9321
+ * record.
9322
9322
  */
9323
9323
  sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
9324
9324
  });
@@ -10395,7 +10395,7 @@ var DecoderSessionConfigSchema = object({
10395
10395
  * - **VALUE** — at which level, for which scope, until when. That stays ONE
10396
10396
  * thing: the logging settings document on the `system` cap. Two authorities
10397
10397
  * over the values is the exact defect
10398
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
10398
+ * `docs/design/plans/2026-08-26-per-component-logging.md` was written to
10399
10399
  * remove; re-introducing it from the cure side would be grotesque.
10400
10400
  *
10401
10401
  * Nothing in this file reads a clock, an env var or a store. The registry is
@@ -15026,7 +15026,7 @@ var dataStoreProviderCapability = {
15026
15026
  *
15027
15027
  * ⚠ An earlier version of this comment blamed Zod stripping, and that
15028
15028
  * was wrong — corrected 2026-08-26 after the hop map
15029
- * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
15029
+ * (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
15030
15030
  * There is **no Zod parse at all** between the door and the engine: the
15031
15031
  * dispatcher forwards the payload verbatim and UDS carries it whole. A
15032
15032
  * field declared here reaches `SqliteSettingsBackend` either way.
@@ -15988,7 +15988,17 @@ var SiteZoneSchema = object({
15988
15988
  var ProviderStatusSchema = object({
15989
15989
  connected: boolean(),
15990
15990
  deviceCount: number(),
15991
- error: string().optional()
15991
+ error: string().optional(),
15992
+ /**
15993
+ * `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
15994
+ * — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
15995
+ * which every provider bundles, so only a provider BUILT from D696-amended
15996
+ * code says it. ABSENT means an older provider that may still write it (raw
15997
+ * VMD writes, a boot seed), and the orchestrator's provider gate keeps that
15998
+ * provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
15999
+ * — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
16000
+ */
16001
+ motionSliceWriter: literal("orchestrator").optional()
15992
16002
  });
15993
16003
  object({
15994
16004
  externalId: string(),
@@ -17179,7 +17189,7 @@ var deviceManagerCapability = {
17179
17189
  * sources could be switched off without switching off the rest (D556, then
17180
17190
  * D555's re-key by source). The operator removed the whole idea the same
17181
17191
  * day: *"tutti i providers funzionano sempre, non serve
17182
- * disattivarli/attivarli … loro vivono lì"* (D557 amended, third). A
17192
+ * disattivarli/attivarli … loro vivono lì"* [all the providers always work, there is no need to deactivate/activate them … they live there] (D557 amended, third). A
17183
17193
  * collection cap's providers are a DERIVED set — every addon that provides
17184
17194
  * the cap for this device type, computed on every read and persisted
17185
17195
  * nowhere — so there is nothing here to activate, and a verb that accepted
@@ -18017,7 +18027,7 @@ var embeddingEncoderCapability = {
18017
18027
  * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
18018
18028
  * ends in a log line, and a log line is the thing the operator asked to stop
18019
18029
  * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
18020
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
18030
+ * 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
18021
18031
  * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
18022
18032
  * media blackout were both diagnosed. The counters stay; this is where they can
18023
18033
  * be READ.
@@ -23120,6 +23130,29 @@ object({
23120
23130
  firstAt: number(),
23121
23131
  lastAt: number()
23122
23132
  });
23133
+ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
23134
+ var NcAlarmDelaySecSchema = number().int().min(0).max(600);
23135
+ var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
23136
+ var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
23137
+ var NcAlarmModeDelaysListSchema = array(object({
23138
+ mode: AlarmArmModeSchema,
23139
+ exitDelaySec: NcAlarmDelaySecSchema.optional(),
23140
+ entryDelaySec: NcAlarmDelaySecSchema.optional(),
23141
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
23142
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
23143
+ var NcAlarmModeDelaysEditListSchema = array(object({
23144
+ mode: AlarmArmModeSchema,
23145
+ exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
23146
+ entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
23147
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
23148
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
23149
+ /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
23150
+ var NcAlarmNonBlockingEditSchema = object({
23151
+ mode: AlarmArmModeSchema,
23152
+ deviceId: number().int().positive(),
23153
+ /** true = on the list (may be open, does not block); false = off the list (blocks). */
23154
+ nonBlocking: boolean()
23155
+ });
23123
23156
  /**
23124
23157
  * The per-mode lists, at most one per mode. Two lists for one mode have no
23125
23158
  * meaning a reader could agree on (union? the last one?), so they are refused
@@ -23128,10 +23161,10 @@ object({
23128
23161
  var NcAlarmNonBlockingListSchema = array(object({
23129
23162
  mode: AlarmArmModeSchema,
23130
23163
  deviceIds: array(number().int()).max(200)
23131
- })).max(8).refine((lists) => new Set(lists.map((l) => l.mode)).size === lists.length, { message: "nonBlocking: at most one list per arm mode" });
23164
+ })).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
23132
23165
  /**
23133
- * The three durations the panel's state machine runs on, who hears about its
23134
- * transitions, and which openings each mode tolerates.
23166
+ * The three durations — global, and per mode since D697 — the panel's state
23167
+ * machine runs on, who hears about its transitions, and which openings each mode tolerates.
23135
23168
  *
23136
23169
  * They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
23137
23170
  * `alarm-panel` is `deviceNative` and its other provider mirrors somebody
@@ -23141,15 +23174,15 @@ var NcAlarmNonBlockingListSchema = array(object({
23141
23174
  */
23142
23175
  var NcAlarmSettingsSchema = object({
23143
23176
  /** Grace period between arming and the mode taking effect. 0 = immediate. */
23144
- exitDelaySec: number().int().min(0).max(600),
23177
+ exitDelaySec: NcAlarmDelaySecSchema,
23145
23178
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
23146
- entryDelaySec: number().int().min(0).max(600),
23179
+ entryDelaySec: NcAlarmDelaySecSchema,
23147
23180
  /**
23148
23181
  * How long `triggered` lasts before the panel re-arms itself.
23149
23182
  * **0 = until an operator disarms it** — the behaviour before this field
23150
23183
  * existed, and therefore what an untouched install keeps doing.
23151
23184
  */
23152
- triggeredDurationSec: number().int().min(0).max(3600),
23185
+ triggeredDurationSec: NcAlarmTriggeredSecSchema,
23153
23186
  /**
23154
23187
  * Deprecated by D630 — every transition is announced. Parsed, never read;
23155
23188
  * remove after one release. Optional so an older admin's patch (which still
@@ -23172,17 +23205,30 @@ var NcAlarmSettingsSchema = object({
23172
23205
  * per mode is meaningful. Defaulted to `[]` so a blob stored before D630
23173
23206
  * parses as "every opening blocks" — the behaviour it was written under.
23174
23207
  */
23175
- nonBlocking: NcAlarmNonBlockingListSchema.default([])
23208
+ nonBlocking: NcAlarmNonBlockingListSchema.default([]),
23209
+ /**
23210
+ * Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
23211
+ * without a field, uses the global value above — so `[]`, the default, is exactly the
23212
+ * behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
23213
+ */
23214
+ modeDelays: NcAlarmModeDelaysListSchema.default([])
23176
23215
  });
23177
23216
  /**
23178
23217
  * Every field optional — a tab edits one control at a time.
23179
23218
  *
23180
- * `nonBlocking` is re-declared WITHOUT its default: `.partial()` does not
23181
- * remove an inner `.default()`, so a patch that never named the field would
23182
- * parse to `nonBlocking: []` and wipe every mode's list on an unrelated edit
23183
- * (the same trap {@link NcRulePatchSchema} documents).
23219
+ * `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
23220
+ * `.partial()` does not remove an inner `.default()`, so a patch that never
23221
+ * named the field would parse to `[]` and wipe every mode's list on an
23222
+ * unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
23223
+ * `modeDelays` means EDITS, not the stored overrides.
23184
23224
  */
23185
- var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({ nonBlocking: NcAlarmNonBlockingListSchema }).partial();
23225
+ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
23226
+ nonBlocking: NcAlarmNonBlockingListSchema,
23227
+ /** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
23228
+ modeDelays: NcAlarmModeDelaysEditListSchema,
23229
+ /** ONE membership change; the panel applies it to the list it holds at its turn. */
23230
+ nonBlockingEdit: NcAlarmNonBlockingEditSchema
23231
+ }).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
23186
23232
  /**
23187
23233
  * What one arm mode actually arms, DERIVED from the enabled rules gated on it.
23188
23234
  * Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
@@ -23282,6 +23328,28 @@ var NcAlarmConfigSchema = object({
23282
23328
  */
23283
23329
  live: NcAlarmLiveSchema.optional()
23284
23330
  });
23331
+ var NcAlarmSensorReadingSchema = _enum([
23332
+ "open",
23333
+ "closed",
23334
+ "unknown",
23335
+ "not-opening"
23336
+ ]);
23337
+ /** One device's state as the alarm reads it — the classifier the arm check uses. */
23338
+ var NcAlarmSensorStateSchema = object({
23339
+ deviceId: number().int().positive(),
23340
+ reading: NcAlarmSensorReadingSchema,
23341
+ /** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
23342
+ state: string().nullable(),
23343
+ /** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
23344
+ unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
23345
+ /** The device manager's liveness as the centre mirrors it; null = not known. */
23346
+ online: boolean().nullable()
23347
+ });
23348
+ var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
23349
+ var NcAlarmSensorsSchema = object({
23350
+ sensors: array(NcAlarmSensorStateSchema),
23351
+ readAt: number().int().nonnegative()
23352
+ });
23285
23353
  /**
23286
23354
  * ONE rule's demand on ONE camera's clip ring.
23287
23355
  *
@@ -23523,8 +23591,9 @@ var notificationRulesCapability = {
23523
23591
  */
23524
23592
  getAlarmConfig: method(object({}), NcAlarmConfigSchema, { auth: "admin" }),
23525
23593
  /**
23526
- * Patch the settings (durations, recipients, per-mode non-blocking lists;
23527
- * `announceArm` is accepted and ignored — D630). Returns the WHOLE config,
23594
+ * Patch the settings (durations — global and per mode —, recipients,
23595
+ * per-mode non-blocking lists or one membership edit; `announceArm` is
23596
+ * accepted and ignored — D630). Returns the WHOLE config,
23528
23597
  * coverage and `live` included, so a
23529
23598
  * client never has to guess what the server settled on — the panel clamps
23530
23599
  * and normalises, and a form that re-rendered from its own input would
@@ -23533,7 +23602,15 @@ var notificationRulesCapability = {
23533
23602
  setAlarmConfig: method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
23534
23603
  kind: "mutation",
23535
23604
  auth: "admin"
23536
- })
23605
+ }),
23606
+ /**
23607
+ * The CURRENT state of each asked device as the alarm reads it (D697) — open, closed,
23608
+ * unknown (why) or not an opening, plus liveness. Classified by the same table the arm
23609
+ * check uses (`alarm-openings.ts`), so the editor and the arm can never disagree. The
23610
+ * caller names the ids (the household openings it already holds); at most
23611
+ * `NC_ALARM_SENSORS_MAX`.
23612
+ */
23613
+ getAlarmSensors: method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" })
23537
23614
  }
23538
23615
  };
23539
23616
  /**
@@ -24703,14 +24780,14 @@ var TrackSchema = object({
24703
24780
  * `derive-returned-null tile=standin`,
24704
24781
  * `native-tile tile=native no-key-frame-at-close`, …) written at close and
24705
24782
  * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
24706
- * The operator-facing answer to "perché manca l'immagine?" on a track whose
24783
+ * The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
24707
24784
  * tile is a face/plate stand-in, a raster crop, or an icon.
24708
24785
  *
24709
24786
  * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
24710
24787
  * the TILE ranked below native, so a track whose thumbnail landed natively
24711
24788
  * while its key frame missed carried no reason at all — three of the four
24712
24789
  * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
24713
- * that shape, and their "niente ultimo" had no cause anywhere on the row.
24790
+ * that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
24714
24791
  * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
24715
24792
  * lastFrame copy source`), so its absence is now on this line whatever the
24716
24793
  * tile ended up being.
@@ -24797,7 +24874,7 @@ var MotionEventSchema = object({
24797
24874
  /**
24798
24875
  * Ms offsets from `timestamp` (the episode's own first rising edge, so the
24799
24876
  * first entry is always `0`) of every genuine off→on transition the
24800
- * episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
24877
+ * episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
24801
24878
  * push: a firmware source that keepalives at ~1 Hz for the whole burst
24802
24879
  * (Reolink, Hikvision) produces exactly one edge; a source that reports an
24803
24880
  * explicit `false` mid-episode and then resumes before the quiet window
@@ -32005,7 +32082,7 @@ var ClipPlaybackSchema = object({
32005
32082
  * **One authorised yes is one wake.** `next-natural` — take the clip the next
32006
32083
  * time the camera is awake for its own reasons — is deliberately not a member:
32007
32084
  * it was proposed, it is free on the battery, and the operator declined it on
32008
- * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."*,
32085
+ * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
32009
32086
  * D558 "Considered and not taken").
32010
32087
  */
32011
32088
  var ClipWakeSchema = _enum(["authorised"]);
@@ -32250,7 +32327,7 @@ var videoclipsCapability = {
32250
32327
  * **It is a SECTION of the Recording tab, at the end of it — not a tab of
32251
32328
  * its own.** It shipped as a `clips` top-tab and the operator rejected the
32252
32329
  * placement: *"utilizzerei la stessa tab recordings, lì abbiamo già tutto il
32253
- * necessario, una nuova sezione alla fine per le clips"*. The Recording tab
32330
+ * necessario, una nuova sezione alla fine per le clips"* [I would use the same recordings tab, there we already have everything necessary, a new section at the end for the clips]. The Recording tab
32254
32331
  * already holds the recorder's panel, the schedule bands and the unified
32255
32332
  * retention policy; footage the camera itself holds is the same question,
32256
32333
  * asked of a different store. `order: 100` puts it after all of them with
@@ -32311,7 +32388,7 @@ var videoclipsCapability = {
32311
32388
  * It replaced `sources?: string[]`, a VIEW filter over source ids that
32312
32389
  * assumed the answer was a fan-out over everything a camera has. The
32313
32390
  * operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
32314
- * solo"* — so the list is asked of one provider at a time and there is
32391
+ * solo"* [there is only one user] — so the list is asked of one provider at a time and there is
32315
32392
  * nothing to filter out of it.
32316
32393
  */
32317
32394
  provider: string().min(1)
@@ -41452,7 +41529,7 @@ var ReadGopBytesResultSchema = object({
41452
41529
  /**
41453
41530
  * A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
41454
41531
  * twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
41455
- * replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
41532
+ * replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
41456
41533
  * a replay needs several seconds of native pixels, not one frame.
41457
41534
  *
41458
41535
  * `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
@@ -44060,7 +44137,7 @@ var systemCapability = {
44060
44137
  *
44061
44138
  * This is the surface the operator asked for on 2026-08-28 (*"possiamo
44062
44139
  * armare questi errori intanto? Così al prossimo giro ricontrolliamo tutti
44063
- * questi punti"*). Before it, four live failure modes could only be counted
44140
+ * questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]). Before it, four live failure modes could only be counted
44064
44141
  * by grepping Loki and hand-correlating timestamps, which is exactly how a
44065
44142
  * 22% thumbnail gap and a 3-hour media blackout were diagnosed — twice.
44066
44143
  *
@@ -50426,6 +50503,12 @@ Object.freeze({
50426
50503
  addonId: null,
50427
50504
  access: "view"
50428
50505
  },
50506
+ "notificationRules.getAlarmSensors": {
50507
+ capName: "notification-rules",
50508
+ capScope: "system",
50509
+ addonId: null,
50510
+ access: "view"
50511
+ },
50429
50512
  "notificationRules.getClipRetentionAsks": {
50430
50513
  capName: "notification-rules",
50431
50514
  capScope: "system",
@@ -54909,6 +54992,11 @@ Object.freeze({
54909
54992
  form: "single",
54910
54993
  optional: false
54911
54994
  }],
54995
+ "notificationRules.getAlarmSensors": [{
54996
+ name: "deviceIds",
54997
+ form: "array",
54998
+ optional: false
54999
+ }],
54912
55000
  "notificationRules.setDeviceMuted": [{
54913
55001
  name: "deviceId",
54914
55002
  form: "single",
@@ -56786,7 +56874,7 @@ var PreviewTextField = string().max(200);
56786
56874
  * Whether the notification's preview is a STILL or a short animation.
56787
56875
  *
56788
56876
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
56789
- * rule)"* — the other rules already offer an animated preview, and a ten-hour
56877
+ * rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
56790
56878
  * night reads better as three seconds of motion than as one frame of it. Both
56791
56879
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
56792
56880
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
2
- import { o as i, s as a } from "./responsive-CmW26rtV.mjs";
2
+ import { o as i, s as a } from "./responsive-BPw6Y2I0.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
4
4
  var l = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DLXGJNFv.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-BUQgSy9b.mjs";
2
2
  export { t as get, e as init };
@@ -1,6 +1,6 @@
1
1
  import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
2
2
  import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
3
- import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DhxFiL0z.mjs";
3
+ import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-1qxETV_o.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
5
  l();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
@@ -1,5 +1,5 @@
1
1
  import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
2
- import { s as i } from "./responsive-CmW26rtV.mjs";
2
+ import { s as i } from "./responsive-BPw6Y2I0.mjs";
3
3
  var a = i("camera", [["path", {
4
4
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
5
5
  key: "18u6gg"
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-CmW26rtV.mjs";
1
+ import { s as e } from "./responsive-BPw6Y2I0.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-CmW26rtV.mjs";
1
+ import { s as e } from "./responsive-BPw6Y2I0.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BD9qu2T3.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-B3v0K7b1.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-osd-manager",
3
- "version": "0.1.153",
3
+ "version": "0.1.155",
4
4
  "description": "Binds camera on-screen-display slots to live state and recognitions",
5
5
  "keywords": [
6
6
  "camstack",