@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
@@ -8039,7 +8039,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8039
8039
  return DeviceRole;
8040
8040
  }({});
8041
8041
  //#endregion
8042
- //#region ../types/dist/composition-43aqsZQj.mjs
8042
+ //#region ../types/dist/composition-D7ULvLdD.mjs
8043
8043
  /**
8044
8044
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8045
8045
  *
@@ -8093,20 +8093,20 @@ function portable(target) {
8093
8093
  }
8094
8094
  portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
8095
8095
  /**
8096
- * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
8097
- * valutatore puro del suo FRONTE.
8096
+ * THE table "which boolean of this device type counts as HIGH", and the
8097
+ * pure evaluator of its EDGE.
8098
8098
  *
8099
- * UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
8100
- * trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
8101
- * sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
8102
- * le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
8103
- * Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
8104
- * sensore fa suonare il campanello ma non registra" — è esattamente D62.
8099
+ * ONE table for everyone who asks "is this device HIGH?": the
8100
+ * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8101
+ * sensor markers, the orchestrator's camera-sensors bridge and
8102
+ * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
8103
+ * A second copy would diverge at the first cap added, and the symptom — "the
8104
+ * sensor rings the doorbell but does not record" — is exactly D62.
8105
8105
  *
8106
- * ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
8107
- * due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
8108
- * regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
8109
- * booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
8106
+ * ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
8107
+ * two must not be unified: that one answers "what is the state WORD for a
8108
+ * rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
8109
+ * boolean's EDGE counts". Deliberately different vocabularies.
8110
8110
  */
8111
8111
  /**
8112
8112
  * Known binary / switch source caps → the boolean slice field whose
@@ -9713,22 +9713,22 @@ var CLASS_MAP_MACRO_TARGETS = [
9713
9713
  "package"
9714
9714
  ];
9715
9715
  /**
9716
- * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
9717
- * un operatore può selezionare.
9716
+ * The FIRST-LEVEL macro classes: those an object detector emits and that
9717
+ * an operator can select.
9718
9718
  *
9719
- * Sono le tre offerte dallo step `object-detection`
9719
+ * They are the three offered by the `object-detection` step
9720
9720
  * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
9721
- * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
9722
- * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
9723
- * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
9724
- * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
9721
+ * `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
9722
+ * `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
9723
+ * `package-detection`, whose enablement is driven by zones, and offering the
9724
+ * same word twice has already made an operator turn on the COCO proxy
9725
9725
  * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
9726
9726
  *
9727
- * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
9728
- * dello step e una seconda volta come union `FirstLevelMacro`
9729
- * (`types/detection.ts`); una terza copia per il trigger di registrazione
9730
- * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
9731
- * successiva.
9727
+ * ONE list. Before today the same three were hand-written in the step's offer
9728
+ * and a second time as the union `FirstLevelMacro`
9729
+ * (`types/detection.ts`); a third copy for the recording trigger
9730
+ * (`RecordingTriggers.objectClasses`) would have made the later divergence
9731
+ * invisible.
9732
9732
  */
9733
9733
  var FIRST_LEVEL_MACRO_CLASSES = [
9734
9734
  "person",
@@ -9793,17 +9793,17 @@ var RecordingStorageModeSchema = _enum([
9793
9793
  "on-device-decision"
9794
9794
  ]);
9795
9795
  /**
9796
- * Le macro classi che possono aprire una finestra di registrazione — le stesse
9797
- * tre offerte dallo step `object-detection`, da UNA lista
9796
+ * The macro classes that can open a recording window — the same
9797
+ * three offered by the `object-detection` step, from ONE list
9798
9798
  * ({@link FIRST_LEVEL_MACRO_CLASSES}).
9799
9799
  */
9800
9800
  var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
9801
9801
  /**
9802
- * True quando `values` non ripete un elemento.
9802
+ * True when `values` does not repeat an element.
9803
9803
  *
9804
- * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
9805
- * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
9806
- * conterebbe due volte le sue finestre in `segmentMissedByMs`.
9804
+ * A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
9805
+ * becomes a SOURCE in `bandTriggerSources`, and the same source twice
9806
+ * would count its windows twice in `segmentMissedByMs`.
9807
9807
  */
9808
9808
  var noDuplicates = (values) => new Set(values).size === values.length;
9809
9809
  /** Which detectors trigger an `events`-mode band. */
@@ -9811,34 +9811,34 @@ var RecordingTriggersSchema = object({
9811
9811
  motion: boolean().optional(),
9812
9812
  audioThresholdDbfs: number().optional(),
9813
9813
  /**
9814
- * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
9815
- * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
9816
- * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
9817
- * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
9814
+ * The macro classes whose detection opens a window. ABSENT = the source
9815
+ * is not listened to; an EMPTY array is rejected, because "events band, object
9816
+ * trigger on, no class" is the same shape "enabled and records
9817
+ * nothing, forever" that `eventsBandCanEverDemand` is written against.
9818
9818
  *
9819
- * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
9820
- * quelle che hanno attraversato `enabledMacroClasses`, i
9821
- * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
9822
- * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
9823
- * finestre — vedi `recorder/object-trigger.ts`.
9819
+ * The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
9820
+ * those that went through `enabledMacroClasses`, the
9821
+ * `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
9822
+ * (`source: 'onboard'`) goes through none of those gates and does NOT open
9823
+ * windows — see `recorder/object-trigger.ts`.
9824
9824
  */
9825
9825
  objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
9826
9826
  /**
9827
- * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
9828
- * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
9827
+ * The LINKED devices whose RISING EDGE opens a window. Absent = the source
9828
+ * is not listened to; an empty array is rejected for the same reason as
9829
9829
  * `objectClasses`.
9830
9830
  *
9831
- * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
9832
- * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
9833
- * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
9834
- * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9835
- * device (D12) — mai un elenco globale di cap.
9831
+ * These are SOURCE device ids, not cameras: the band names them, so the
9832
+ * hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
9833
+ * does no RPC. The OFFER from which the operator picks them is another question, and
9834
+ * is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
9835
+ * device (D12) — never a global list of caps.
9836
9836
  *
9837
- * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
9838
- * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
9839
- * la stessa del campanello composto (D671). Ed è il FRONTE, non
9840
- * il livello: un contatto trovato già aperto al riavvio del runner non fa
9841
- * registrare.
9837
+ * What "high" means depends on the device TYPE and is not decided here:
9838
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
9839
+ * the same one as the composite doorbell (D671). And it is the EDGE, not
9840
+ * the level: a contact found already open at runner restart does not
9841
+ * record.
9842
9842
  */
9843
9843
  sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
9844
9844
  });
@@ -10915,7 +10915,7 @@ var DecoderSessionConfigSchema = object({
10915
10915
  * - **VALUE** — at which level, for which scope, until when. That stays ONE
10916
10916
  * thing: the logging settings document on the `system` cap. Two authorities
10917
10917
  * over the values is the exact defect
10918
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
10918
+ * `docs/design/plans/2026-08-26-per-component-logging.md` was written to
10919
10919
  * remove; re-introducing it from the cure side would be grotesque.
10920
10920
  *
10921
10921
  * Nothing in this file reads a clock, an env var or a store. The registry is
@@ -14402,7 +14402,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
14402
14402
  *
14403
14403
  * ⚠ An earlier version of this comment blamed Zod stripping, and that
14404
14404
  * was wrong — corrected 2026-08-26 after the hop map
14405
- * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
14405
+ * (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
14406
14406
  * There is **no Zod parse at all** between the door and the engine: the
14407
14407
  * dispatcher forwards the payload verbatim and UDS carries it whole. A
14408
14408
  * field declared here reaches `SqliteSettingsBackend` either way.
@@ -15158,7 +15158,17 @@ var SiteZoneSchema = object({
15158
15158
  var ProviderStatusSchema = object({
15159
15159
  connected: boolean(),
15160
15160
  deviceCount: number(),
15161
- error: string().optional()
15161
+ error: string().optional(),
15162
+ /**
15163
+ * `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
15164
+ * — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
15165
+ * which every provider bundles, so only a provider BUILT from D696-amended
15166
+ * code says it. ABSENT means an older provider that may still write it (raw
15167
+ * VMD writes, a boot seed), and the orchestrator's provider gate keeps that
15168
+ * provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
15169
+ * — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
15170
+ */
15171
+ motionSliceWriter: literal("orchestrator").optional()
15162
15172
  });
15163
15173
  object({
15164
15174
  externalId: string(),
@@ -16294,7 +16304,7 @@ method(object({
16294
16304
  * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
16295
16305
  * ends in a log line, and a log line is the thing the operator asked to stop
16296
16306
  * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
16297
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
16307
+ * 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
16298
16308
  * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
16299
16309
  * media blackout were both diagnosed. The counters stay; this is where they can
16300
16310
  * be READ.
@@ -20507,6 +20517,29 @@ object({
20507
20517
  firstAt: number(),
20508
20518
  lastAt: number()
20509
20519
  });
20520
+ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
20521
+ var NcAlarmDelaySecSchema = number().int().min(0).max(600);
20522
+ var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
20523
+ var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
20524
+ var NcAlarmModeDelaysListSchema = array(object({
20525
+ mode: AlarmArmModeSchema,
20526
+ exitDelaySec: NcAlarmDelaySecSchema.optional(),
20527
+ entryDelaySec: NcAlarmDelaySecSchema.optional(),
20528
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
20529
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20530
+ var NcAlarmModeDelaysEditListSchema = array(object({
20531
+ mode: AlarmArmModeSchema,
20532
+ exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20533
+ entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20534
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
20535
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20536
+ /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20537
+ var NcAlarmNonBlockingEditSchema = object({
20538
+ mode: AlarmArmModeSchema,
20539
+ deviceId: number().int().positive(),
20540
+ /** true = on the list (may be open, does not block); false = off the list (blocks). */
20541
+ nonBlocking: boolean()
20542
+ });
20510
20543
  /**
20511
20544
  * The per-mode lists, at most one per mode. Two lists for one mode have no
20512
20545
  * meaning a reader could agree on (union? the last one?), so they are refused
@@ -20515,10 +20548,10 @@ object({
20515
20548
  var NcAlarmNonBlockingListSchema = array(object({
20516
20549
  mode: AlarmArmModeSchema,
20517
20550
  deviceIds: array(number().int()).max(200)
20518
- })).max(8).refine((lists) => new Set(lists.map((l) => l.mode)).size === lists.length, { message: "nonBlocking: at most one list per arm mode" });
20551
+ })).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
20519
20552
  /**
20520
- * The three durations the panel's state machine runs on, who hears about its
20521
- * transitions, and which openings each mode tolerates.
20553
+ * The three durations — global, and per mode since D697 — the panel's state
20554
+ * machine runs on, who hears about its transitions, and which openings each mode tolerates.
20522
20555
  *
20523
20556
  * They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
20524
20557
  * `alarm-panel` is `deviceNative` and its other provider mirrors somebody
@@ -20528,15 +20561,15 @@ var NcAlarmNonBlockingListSchema = array(object({
20528
20561
  */
20529
20562
  var NcAlarmSettingsSchema = object({
20530
20563
  /** Grace period between arming and the mode taking effect. 0 = immediate. */
20531
- exitDelaySec: number().int().min(0).max(600),
20564
+ exitDelaySec: NcAlarmDelaySecSchema,
20532
20565
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
20533
- entryDelaySec: number().int().min(0).max(600),
20566
+ entryDelaySec: NcAlarmDelaySecSchema,
20534
20567
  /**
20535
20568
  * How long `triggered` lasts before the panel re-arms itself.
20536
20569
  * **0 = until an operator disarms it** — the behaviour before this field
20537
20570
  * existed, and therefore what an untouched install keeps doing.
20538
20571
  */
20539
- triggeredDurationSec: number().int().min(0).max(3600),
20572
+ triggeredDurationSec: NcAlarmTriggeredSecSchema,
20540
20573
  /**
20541
20574
  * Deprecated by D630 — every transition is announced. Parsed, never read;
20542
20575
  * remove after one release. Optional so an older admin's patch (which still
@@ -20559,17 +20592,30 @@ var NcAlarmSettingsSchema = object({
20559
20592
  * per mode is meaningful. Defaulted to `[]` so a blob stored before D630
20560
20593
  * parses as "every opening blocks" — the behaviour it was written under.
20561
20594
  */
20562
- nonBlocking: NcAlarmNonBlockingListSchema.default([])
20595
+ nonBlocking: NcAlarmNonBlockingListSchema.default([]),
20596
+ /**
20597
+ * Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
20598
+ * without a field, uses the global value above — so `[]`, the default, is exactly the
20599
+ * behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
20600
+ */
20601
+ modeDelays: NcAlarmModeDelaysListSchema.default([])
20563
20602
  });
20564
20603
  /**
20565
20604
  * Every field optional — a tab edits one control at a time.
20566
20605
  *
20567
- * `nonBlocking` is re-declared WITHOUT its default: `.partial()` does not
20568
- * remove an inner `.default()`, so a patch that never named the field would
20569
- * parse to `nonBlocking: []` and wipe every mode's list on an unrelated edit
20570
- * (the same trap {@link NcRulePatchSchema} documents).
20606
+ * `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
20607
+ * `.partial()` does not remove an inner `.default()`, so a patch that never
20608
+ * named the field would parse to `[]` and wipe every mode's list on an
20609
+ * unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
20610
+ * `modeDelays` means EDITS, not the stored overrides.
20571
20611
  */
20572
- var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({ nonBlocking: NcAlarmNonBlockingListSchema }).partial();
20612
+ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
20613
+ nonBlocking: NcAlarmNonBlockingListSchema,
20614
+ /** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
20615
+ modeDelays: NcAlarmModeDelaysEditListSchema,
20616
+ /** ONE membership change; the panel applies it to the list it holds at its turn. */
20617
+ nonBlockingEdit: NcAlarmNonBlockingEditSchema
20618
+ }).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
20573
20619
  /**
20574
20620
  * What one arm mode actually arms, DERIVED from the enabled rules gated on it.
20575
20621
  * Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
@@ -20669,6 +20715,28 @@ var NcAlarmConfigSchema = object({
20669
20715
  */
20670
20716
  live: NcAlarmLiveSchema.optional()
20671
20717
  });
20718
+ var NcAlarmSensorReadingSchema = _enum([
20719
+ "open",
20720
+ "closed",
20721
+ "unknown",
20722
+ "not-opening"
20723
+ ]);
20724
+ /** One device's state as the alarm reads it — the classifier the arm check uses. */
20725
+ var NcAlarmSensorStateSchema = object({
20726
+ deviceId: number().int().positive(),
20727
+ reading: NcAlarmSensorReadingSchema,
20728
+ /** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
20729
+ state: string().nullable(),
20730
+ /** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
20731
+ unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
20732
+ /** The device manager's liveness as the centre mirrors it; null = not known. */
20733
+ online: boolean().nullable()
20734
+ });
20735
+ var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
20736
+ var NcAlarmSensorsSchema = object({
20737
+ sensors: array(NcAlarmSensorStateSchema),
20738
+ readAt: number().int().nonnegative()
20739
+ });
20672
20740
  /**
20673
20741
  * ONE rule's demand on ONE camera's clip ring.
20674
20742
  *
@@ -20759,7 +20827,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
20759
20827
  }), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
20760
20828
  kind: "mutation",
20761
20829
  auth: "admin"
20762
- });
20830
+ }), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
20763
20831
  /**
20764
20832
  * Zod schemas for persisted record types.
20765
20833
  *
@@ -21911,14 +21979,14 @@ var TrackSchema = object({
21911
21979
  * `derive-returned-null tile=standin`,
21912
21980
  * `native-tile tile=native no-key-frame-at-close`, …) written at close and
21913
21981
  * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
21914
- * The operator-facing answer to "perché manca l'immagine?" on a track whose
21982
+ * The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
21915
21983
  * tile is a face/plate stand-in, a raster crop, or an icon.
21916
21984
  *
21917
21985
  * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
21918
21986
  * the TILE ranked below native, so a track whose thumbnail landed natively
21919
21987
  * while its key frame missed carried no reason at all — three of the four
21920
21988
  * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
21921
- * that shape, and their "niente ultimo" had no cause anywhere on the row.
21989
+ * that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
21922
21990
  * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
21923
21991
  * lastFrame copy source`), so its absence is now on this line whatever the
21924
21992
  * tile ended up being.
@@ -22005,7 +22073,7 @@ var MotionEventSchema = object({
22005
22073
  /**
22006
22074
  * Ms offsets from `timestamp` (the episode's own first rising edge, so the
22007
22075
  * first entry is always `0`) of every genuine off→on transition the
22008
- * episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
22076
+ * episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
22009
22077
  * push: a firmware source that keepalives at ~1 Hz for the whole burst
22010
22078
  * (Reolink, Hikvision) produces exactly one edge; a source that reports an
22011
22079
  * explicit `false` mid-episode and then resumes before the quiet window
@@ -27241,7 +27309,7 @@ var ClipPlaybackSchema = object({
27241
27309
  * **One authorised yes is one wake.** `next-natural` — take the clip the next
27242
27310
  * time the camera is awake for its own reasons — is deliberately not a member:
27243
27311
  * it was proposed, it is free on the battery, and the operator declined it on
27244
- * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."*,
27312
+ * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
27245
27313
  * D558 "Considered and not taken").
27246
27314
  */
27247
27315
  var ClipWakeSchema = _enum(["authorised"]);
@@ -27502,7 +27570,7 @@ DeviceType.Camera, method(object({
27502
27570
  * It replaced `sources?: string[]`, a VIEW filter over source ids that
27503
27571
  * assumed the answer was a fan-out over everything a camera has. The
27504
27572
  * operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
27505
- * solo"* — so the list is asked of one provider at a time and there is
27573
+ * solo"* [there is only one user] — so the list is asked of one provider at a time and there is
27506
27574
  * nothing to filter out of it.
27507
27575
  */
27508
27576
  provider: string().min(1)
@@ -33620,7 +33688,7 @@ var ReadGopBytesResultSchema = object({
33620
33688
  /**
33621
33689
  * A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
33622
33690
  * twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
33623
- * replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
33691
+ * replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
33624
33692
  * a replay needs several seconds of native pixels, not one frame.
33625
33693
  *
33626
33694
  * `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
@@ -41214,6 +41282,12 @@ Object.freeze({
41214
41282
  addonId: null,
41215
41283
  access: "view"
41216
41284
  },
41285
+ "notificationRules.getAlarmSensors": {
41286
+ capName: "notification-rules",
41287
+ capScope: "system",
41288
+ addonId: null,
41289
+ access: "view"
41290
+ },
41217
41291
  "notificationRules.getClipRetentionAsks": {
41218
41292
  capName: "notification-rules",
41219
41293
  capScope: "system",
@@ -45697,6 +45771,11 @@ Object.freeze({
45697
45771
  form: "single",
45698
45772
  optional: false
45699
45773
  }],
45774
+ "notificationRules.getAlarmSensors": [{
45775
+ name: "deviceIds",
45776
+ form: "array",
45777
+ optional: false
45778
+ }],
45700
45779
  "notificationRules.setDeviceMuted": [{
45701
45780
  name: "deviceId",
45702
45781
  form: "single",
@@ -47494,7 +47573,7 @@ var PreviewTextField = string().max(200);
47494
47573
  * Whether the notification's preview is a STILL or a short animation.
47495
47574
  *
47496
47575
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
47497
- * rule)"* — the other rules already offer an animated preview, and a ten-hour
47576
+ * rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
47498
47577
  * night reads better as three seconds of motion than as one frame of it. Both
47499
47578
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
47500
47579
  * 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_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { o as i, s as a } from "./responsive-DIe_729f.mjs";
2
+ import { o as i, s as a } from "./responsive-BoGo5jZn.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.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_model_studio_page__remoteEntry_js-xPDjO4M6.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CCqbjc06.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_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
2
  import "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
- import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-4iTjY_Pt.mjs";
3
+ import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C8mPXBuv.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_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { s as i } from "./responsive-DIe_729f.mjs";
2
+ import { s as i } from "./responsive-BoGo5jZn.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-DIe_729f.mjs";
1
+ import { s as e } from "./responsive-BoGo5jZn.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-DIe_729f.mjs";
1
+ import { s as e } from "./responsive-BoGo5jZn.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_model_studio_page-DsTZQf95.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Cf8IawB4.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-model-studio",
3
- "version": "1.1.188",
3
+ "version": "1.1.190",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",