@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.
- package/dist/{MotionZonesSettings-Bi_uB8oT.mjs → MotionZonesSettings-DHyaxzBi.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-DuzJnDoQ.mjs → PrivacyMaskSettings-D7EH_wl3.mjs} +4 -4
- package/dist/{SceneMonitorEditor-CnpHHB8l.mjs → SceneMonitorEditor-CO6VwdkE.mjs} +3 -3
- package/dist/_stub.js +10 -10
- 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
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-1qxETV_o.mjs +26 -0
- package/dist/{hostInit-Bo6e-m_F.mjs → hostInit-B3sHUn3j.mjs} +2 -2
- package/dist/index.js +169 -81
- package/dist/index.mjs +169 -81
- package/dist/{player-overlays-CPVNj3Th.mjs → player-overlays-CTsQBdl8.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-CmW26rtV.mjs → responsive-BPw6Y2I0.mjs} +1 -1
- package/dist/{scene-monitor-copy-BP0Z6F7z.mjs → scene-monitor-copy-DNkKk6vF.mjs} +1 -1
- package/dist/{square-CaTP7VKX.mjs → square-BPzhX8Pc.mjs} +1 -1
- package/dist/{trash-2-IrsDpmSJ.mjs → trash-2-DemFUbcB.mjs} +1 -1
- 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
- package/package.json +1 -1
- 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.js
CHANGED
|
@@ -7523,7 +7523,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7523
7523
|
return DeviceRole;
|
|
7524
7524
|
}({});
|
|
7525
7525
|
//#endregion
|
|
7526
|
-
//#region ../types/dist/composition-
|
|
7526
|
+
//#region ../types/dist/composition-D7ULvLdD.mjs
|
|
7527
7527
|
/**
|
|
7528
7528
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7529
7529
|
*
|
|
@@ -7577,20 +7577,20 @@ function portable(target) {
|
|
|
7577
7577
|
}
|
|
7578
7578
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7579
7579
|
/**
|
|
7580
|
-
*
|
|
7581
|
-
*
|
|
7580
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7581
|
+
* pure evaluator of its EDGE.
|
|
7582
7582
|
*
|
|
7583
|
-
*
|
|
7584
|
-
*
|
|
7585
|
-
*
|
|
7586
|
-
*
|
|
7587
|
-
*
|
|
7588
|
-
*
|
|
7583
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7584
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7585
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7586
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7587
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7588
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7589
7589
|
*
|
|
7590
|
-
* ⚠
|
|
7591
|
-
*
|
|
7592
|
-
*
|
|
7593
|
-
*
|
|
7590
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7591
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7592
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7593
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7594
7594
|
*/
|
|
7595
7595
|
/**
|
|
7596
7596
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -9197,22 +9197,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
9197
9197
|
"package"
|
|
9198
9198
|
];
|
|
9199
9199
|
/**
|
|
9200
|
-
*
|
|
9201
|
-
*
|
|
9200
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9201
|
+
* an operator can select.
|
|
9202
9202
|
*
|
|
9203
|
-
*
|
|
9203
|
+
* They are the three offered by the `object-detection` step
|
|
9204
9204
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
9205
|
-
* `enabledMacroClasses`). `package`
|
|
9206
|
-
* `MACRO_LABELS` —
|
|
9207
|
-
* `package-detection`,
|
|
9208
|
-
*
|
|
9205
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9206
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9207
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9208
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
9209
9209
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
9210
9210
|
*
|
|
9211
|
-
*
|
|
9212
|
-
*
|
|
9213
|
-
* (`types/detection.ts`);
|
|
9214
|
-
* (`RecordingTriggers.objectClasses`)
|
|
9215
|
-
*
|
|
9211
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9212
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9213
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9214
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9215
|
+
* invisible.
|
|
9216
9216
|
*/
|
|
9217
9217
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
9218
9218
|
"person",
|
|
@@ -9277,17 +9277,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9277
9277
|
"on-device-decision"
|
|
9278
9278
|
]);
|
|
9279
9279
|
/**
|
|
9280
|
-
*
|
|
9281
|
-
*
|
|
9280
|
+
* The macro classes that can open a recording window — the same
|
|
9281
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9282
9282
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9283
9283
|
*/
|
|
9284
9284
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9285
9285
|
/**
|
|
9286
|
-
* True
|
|
9286
|
+
* True when `values` does not repeat an element.
|
|
9287
9287
|
*
|
|
9288
|
-
*
|
|
9289
|
-
*
|
|
9290
|
-
*
|
|
9288
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9289
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9290
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9291
9291
|
*/
|
|
9292
9292
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9293
9293
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9295,34 +9295,34 @@ var RecordingTriggersSchema = object({
|
|
|
9295
9295
|
motion: boolean().optional(),
|
|
9296
9296
|
audioThresholdDbfs: number().optional(),
|
|
9297
9297
|
/**
|
|
9298
|
-
*
|
|
9299
|
-
*
|
|
9300
|
-
*
|
|
9301
|
-
*
|
|
9298
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9299
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9300
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9301
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9302
9302
|
*
|
|
9303
|
-
*
|
|
9304
|
-
*
|
|
9305
|
-
* `minConfidence<Macro>`
|
|
9306
|
-
* (`source: 'onboard'`)
|
|
9307
|
-
*
|
|
9303
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9304
|
+
* those that went through `enabledMacroClasses`, the
|
|
9305
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9306
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9307
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9308
9308
|
*/
|
|
9309
9309
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9310
9310
|
/**
|
|
9311
|
-
*
|
|
9312
|
-
*
|
|
9311
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9312
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9313
9313
|
* `objectClasses`.
|
|
9314
9314
|
*
|
|
9315
|
-
*
|
|
9316
|
-
*
|
|
9317
|
-
*
|
|
9318
|
-
*
|
|
9319
|
-
* device (D12) —
|
|
9315
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9316
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9317
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9318
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9319
|
+
* device (D12) — never a global list of caps.
|
|
9320
9320
|
*
|
|
9321
|
-
*
|
|
9322
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9323
|
-
*
|
|
9324
|
-
*
|
|
9325
|
-
*
|
|
9321
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9322
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9323
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9324
|
+
* the level: a contact found already open at runner restart does not
|
|
9325
|
+
* record.
|
|
9326
9326
|
*/
|
|
9327
9327
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9328
9328
|
});
|
|
@@ -10399,7 +10399,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10399
10399
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10400
10400
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10401
10401
|
* over the values is the exact defect
|
|
10402
|
-
* `docs/design/plans/2026-08-26-
|
|
10402
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10403
10403
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10404
10404
|
*
|
|
10405
10405
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -15030,7 +15030,7 @@ var dataStoreProviderCapability = {
|
|
|
15030
15030
|
*
|
|
15031
15031
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
15032
15032
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
15033
|
-
* (`docs/design/2026-08-26-
|
|
15033
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
15034
15034
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
15035
15035
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
15036
15036
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -15992,7 +15992,17 @@ var SiteZoneSchema = object({
|
|
|
15992
15992
|
var ProviderStatusSchema = object({
|
|
15993
15993
|
connected: boolean(),
|
|
15994
15994
|
deviceCount: number(),
|
|
15995
|
-
error: string().optional()
|
|
15995
|
+
error: string().optional(),
|
|
15996
|
+
/**
|
|
15997
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
15998
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
15999
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
16000
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
16001
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
16002
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
16003
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
16004
|
+
*/
|
|
16005
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
15996
16006
|
});
|
|
15997
16007
|
object({
|
|
15998
16008
|
externalId: string(),
|
|
@@ -17183,7 +17193,7 @@ var deviceManagerCapability = {
|
|
|
17183
17193
|
* sources could be switched off without switching off the rest (D556, then
|
|
17184
17194
|
* D555's re-key by source). The operator removed the whole idea the same
|
|
17185
17195
|
* day: *"tutti i providers funzionano sempre, non serve
|
|
17186
|
-
* disattivarli/attivarli … loro vivono lì"* (D557 amended, third). A
|
|
17196
|
+
* 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
|
|
17187
17197
|
* collection cap's providers are a DERIVED set — every addon that provides
|
|
17188
17198
|
* the cap for this device type, computed on every read and persisted
|
|
17189
17199
|
* nowhere — so there is nothing here to activate, and a verb that accepted
|
|
@@ -18021,7 +18031,7 @@ var embeddingEncoderCapability = {
|
|
|
18021
18031
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
18022
18032
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
18023
18033
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
18024
|
-
* ricontrolliamo tutti questi punti"
|
|
18034
|
+
* 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
|
|
18025
18035
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
18026
18036
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
18027
18037
|
* be READ.
|
|
@@ -23124,6 +23134,29 @@ object({
|
|
|
23124
23134
|
firstAt: number(),
|
|
23125
23135
|
lastAt: number()
|
|
23126
23136
|
});
|
|
23137
|
+
var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
|
|
23138
|
+
var NcAlarmDelaySecSchema = number().int().min(0).max(600);
|
|
23139
|
+
var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
|
|
23140
|
+
var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
|
|
23141
|
+
var NcAlarmModeDelaysListSchema = array(object({
|
|
23142
|
+
mode: AlarmArmModeSchema,
|
|
23143
|
+
exitDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
23144
|
+
entryDelaySec: NcAlarmDelaySecSchema.optional(),
|
|
23145
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
|
|
23146
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
23147
|
+
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
23148
|
+
mode: AlarmArmModeSchema,
|
|
23149
|
+
exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
23150
|
+
entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
|
|
23151
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
|
|
23152
|
+
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
23153
|
+
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
23154
|
+
var NcAlarmNonBlockingEditSchema = object({
|
|
23155
|
+
mode: AlarmArmModeSchema,
|
|
23156
|
+
deviceId: number().int().positive(),
|
|
23157
|
+
/** true = on the list (may be open, does not block); false = off the list (blocks). */
|
|
23158
|
+
nonBlocking: boolean()
|
|
23159
|
+
});
|
|
23127
23160
|
/**
|
|
23128
23161
|
* The per-mode lists, at most one per mode. Two lists for one mode have no
|
|
23129
23162
|
* meaning a reader could agree on (union? the last one?), so they are refused
|
|
@@ -23132,10 +23165,10 @@ object({
|
|
|
23132
23165
|
var NcAlarmNonBlockingListSchema = array(object({
|
|
23133
23166
|
mode: AlarmArmModeSchema,
|
|
23134
23167
|
deviceIds: array(number().int()).max(200)
|
|
23135
|
-
})).max(8).refine(
|
|
23168
|
+
})).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
|
|
23136
23169
|
/**
|
|
23137
|
-
* The three durations
|
|
23138
|
-
* transitions, and which openings each mode tolerates.
|
|
23170
|
+
* The three durations — global, and per mode since D697 — the panel's state
|
|
23171
|
+
* machine runs on, who hears about its transitions, and which openings each mode tolerates.
|
|
23139
23172
|
*
|
|
23140
23173
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
23141
23174
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -23145,15 +23178,15 @@ var NcAlarmNonBlockingListSchema = array(object({
|
|
|
23145
23178
|
*/
|
|
23146
23179
|
var NcAlarmSettingsSchema = object({
|
|
23147
23180
|
/** Grace period between arming and the mode taking effect. 0 = immediate. */
|
|
23148
|
-
exitDelaySec:
|
|
23181
|
+
exitDelaySec: NcAlarmDelaySecSchema,
|
|
23149
23182
|
/** Grace period between a trigger and the alarm firing. 0 = immediate. */
|
|
23150
|
-
entryDelaySec:
|
|
23183
|
+
entryDelaySec: NcAlarmDelaySecSchema,
|
|
23151
23184
|
/**
|
|
23152
23185
|
* How long `triggered` lasts before the panel re-arms itself.
|
|
23153
23186
|
* **0 = until an operator disarms it** — the behaviour before this field
|
|
23154
23187
|
* existed, and therefore what an untouched install keeps doing.
|
|
23155
23188
|
*/
|
|
23156
|
-
triggeredDurationSec:
|
|
23189
|
+
triggeredDurationSec: NcAlarmTriggeredSecSchema,
|
|
23157
23190
|
/**
|
|
23158
23191
|
* Deprecated by D630 — every transition is announced. Parsed, never read;
|
|
23159
23192
|
* remove after one release. Optional so an older admin's patch (which still
|
|
@@ -23176,17 +23209,30 @@ var NcAlarmSettingsSchema = object({
|
|
|
23176
23209
|
* per mode is meaningful. Defaulted to `[]` so a blob stored before D630
|
|
23177
23210
|
* parses as "every opening blocks" — the behaviour it was written under.
|
|
23178
23211
|
*/
|
|
23179
|
-
nonBlocking: NcAlarmNonBlockingListSchema.default([])
|
|
23212
|
+
nonBlocking: NcAlarmNonBlockingListSchema.default([]),
|
|
23213
|
+
/**
|
|
23214
|
+
* Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
|
|
23215
|
+
* without a field, uses the global value above — so `[]`, the default, is exactly the
|
|
23216
|
+
* behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
|
|
23217
|
+
*/
|
|
23218
|
+
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
23180
23219
|
});
|
|
23181
23220
|
/**
|
|
23182
23221
|
* Every field optional — a tab edits one control at a time.
|
|
23183
23222
|
*
|
|
23184
|
-
* `nonBlocking`
|
|
23185
|
-
* remove an inner `.default()`, so a patch that never
|
|
23186
|
-
* parse to `
|
|
23187
|
-
* (the same trap {@link NcRulePatchSchema} documents).
|
|
23223
|
+
* `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
|
|
23224
|
+
* `.partial()` does not remove an inner `.default()`, so a patch that never
|
|
23225
|
+
* named the field would parse to `[]` and wipe every mode's list on an
|
|
23226
|
+
* unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
|
|
23227
|
+
* `modeDelays` means EDITS, not the stored overrides.
|
|
23188
23228
|
*/
|
|
23189
|
-
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
23229
|
+
var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
|
|
23230
|
+
nonBlocking: NcAlarmNonBlockingListSchema,
|
|
23231
|
+
/** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
|
|
23232
|
+
modeDelays: NcAlarmModeDelaysEditListSchema,
|
|
23233
|
+
/** ONE membership change; the panel applies it to the list it holds at its turn. */
|
|
23234
|
+
nonBlockingEdit: NcAlarmNonBlockingEditSchema
|
|
23235
|
+
}).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
|
|
23190
23236
|
/**
|
|
23191
23237
|
* What one arm mode actually arms, DERIVED from the enabled rules gated on it.
|
|
23192
23238
|
* Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
|
|
@@ -23286,6 +23332,28 @@ var NcAlarmConfigSchema = object({
|
|
|
23286
23332
|
*/
|
|
23287
23333
|
live: NcAlarmLiveSchema.optional()
|
|
23288
23334
|
});
|
|
23335
|
+
var NcAlarmSensorReadingSchema = _enum([
|
|
23336
|
+
"open",
|
|
23337
|
+
"closed",
|
|
23338
|
+
"unknown",
|
|
23339
|
+
"not-opening"
|
|
23340
|
+
]);
|
|
23341
|
+
/** One device's state as the alarm reads it — the classifier the arm check uses. */
|
|
23342
|
+
var NcAlarmSensorStateSchema = object({
|
|
23343
|
+
deviceId: number().int().positive(),
|
|
23344
|
+
reading: NcAlarmSensorReadingSchema,
|
|
23345
|
+
/** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
|
|
23346
|
+
state: string().nullable(),
|
|
23347
|
+
/** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
|
|
23348
|
+
unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
|
|
23349
|
+
/** The device manager's liveness as the centre mirrors it; null = not known. */
|
|
23350
|
+
online: boolean().nullable()
|
|
23351
|
+
});
|
|
23352
|
+
var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
|
|
23353
|
+
var NcAlarmSensorsSchema = object({
|
|
23354
|
+
sensors: array(NcAlarmSensorStateSchema),
|
|
23355
|
+
readAt: number().int().nonnegative()
|
|
23356
|
+
});
|
|
23289
23357
|
/**
|
|
23290
23358
|
* ONE rule's demand on ONE camera's clip ring.
|
|
23291
23359
|
*
|
|
@@ -23527,8 +23595,9 @@ var notificationRulesCapability = {
|
|
|
23527
23595
|
*/
|
|
23528
23596
|
getAlarmConfig: method(object({}), NcAlarmConfigSchema, { auth: "admin" }),
|
|
23529
23597
|
/**
|
|
23530
|
-
* Patch the settings (durations
|
|
23531
|
-
*
|
|
23598
|
+
* Patch the settings (durations — global and per mode —, recipients,
|
|
23599
|
+
* per-mode non-blocking lists or one membership edit; `announceArm` is
|
|
23600
|
+
* accepted and ignored — D630). Returns the WHOLE config,
|
|
23532
23601
|
* coverage and `live` included, so a
|
|
23533
23602
|
* client never has to guess what the server settled on — the panel clamps
|
|
23534
23603
|
* and normalises, and a form that re-rendered from its own input would
|
|
@@ -23537,7 +23606,15 @@ var notificationRulesCapability = {
|
|
|
23537
23606
|
setAlarmConfig: method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
23538
23607
|
kind: "mutation",
|
|
23539
23608
|
auth: "admin"
|
|
23540
|
-
})
|
|
23609
|
+
}),
|
|
23610
|
+
/**
|
|
23611
|
+
* The CURRENT state of each asked device as the alarm reads it (D697) — open, closed,
|
|
23612
|
+
* unknown (why) or not an opening, plus liveness. Classified by the same table the arm
|
|
23613
|
+
* check uses (`alarm-openings.ts`), so the editor and the arm can never disagree. The
|
|
23614
|
+
* caller names the ids (the household openings it already holds); at most
|
|
23615
|
+
* `NC_ALARM_SENSORS_MAX`.
|
|
23616
|
+
*/
|
|
23617
|
+
getAlarmSensors: method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" })
|
|
23541
23618
|
}
|
|
23542
23619
|
};
|
|
23543
23620
|
/**
|
|
@@ -24707,14 +24784,14 @@ var TrackSchema = object({
|
|
|
24707
24784
|
* `derive-returned-null tile=standin`,
|
|
24708
24785
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
24709
24786
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
24710
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
24787
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
24711
24788
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
24712
24789
|
*
|
|
24713
24790
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
24714
24791
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
24715
24792
|
* while its key frame missed carried no reason at all — three of the four
|
|
24716
24793
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
24717
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
24794
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
24718
24795
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
24719
24796
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
24720
24797
|
* tile ended up being.
|
|
@@ -24801,7 +24878,7 @@ var MotionEventSchema = object({
|
|
|
24801
24878
|
/**
|
|
24802
24879
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
24803
24880
|
* first entry is always `0`) of every genuine off→on transition the
|
|
24804
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
24881
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
24805
24882
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
24806
24883
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
24807
24884
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -32009,7 +32086,7 @@ var ClipPlaybackSchema = object({
|
|
|
32009
32086
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
32010
32087
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
32011
32088
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
32012
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
32089
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
32013
32090
|
* D558 "Considered and not taken").
|
|
32014
32091
|
*/
|
|
32015
32092
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -32254,7 +32331,7 @@ var videoclipsCapability = {
|
|
|
32254
32331
|
* **It is a SECTION of the Recording tab, at the end of it — not a tab of
|
|
32255
32332
|
* its own.** It shipped as a `clips` top-tab and the operator rejected the
|
|
32256
32333
|
* placement: *"utilizzerei la stessa tab recordings, lì abbiamo già tutto il
|
|
32257
|
-
* necessario, una nuova sezione alla fine per le clips"
|
|
32334
|
+
* 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
|
|
32258
32335
|
* already holds the recorder's panel, the schedule bands and the unified
|
|
32259
32336
|
* retention policy; footage the camera itself holds is the same question,
|
|
32260
32337
|
* asked of a different store. `order: 100` puts it after all of them with
|
|
@@ -32315,7 +32392,7 @@ var videoclipsCapability = {
|
|
|
32315
32392
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
32316
32393
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
32317
32394
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
32318
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
32395
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
32319
32396
|
* nothing to filter out of it.
|
|
32320
32397
|
*/
|
|
32321
32398
|
provider: string().min(1)
|
|
@@ -41456,7 +41533,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
41456
41533
|
/**
|
|
41457
41534
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
41458
41535
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
41459
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
41536
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
41460
41537
|
* a replay needs several seconds of native pixels, not one frame.
|
|
41461
41538
|
*
|
|
41462
41539
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -44064,7 +44141,7 @@ var systemCapability = {
|
|
|
44064
44141
|
*
|
|
44065
44142
|
* This is the surface the operator asked for on 2026-08-28 (*"possiamo
|
|
44066
44143
|
* armare questi errori intanto? Così al prossimo giro ricontrolliamo tutti
|
|
44067
|
-
* questi punti"*). Before it, four live failure modes could only be counted
|
|
44144
|
+
* 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
|
|
44068
44145
|
* by grepping Loki and hand-correlating timestamps, which is exactly how a
|
|
44069
44146
|
* 22% thumbnail gap and a 3-hour media blackout were diagnosed — twice.
|
|
44070
44147
|
*
|
|
@@ -50430,6 +50507,12 @@ Object.freeze({
|
|
|
50430
50507
|
addonId: null,
|
|
50431
50508
|
access: "view"
|
|
50432
50509
|
},
|
|
50510
|
+
"notificationRules.getAlarmSensors": {
|
|
50511
|
+
capName: "notification-rules",
|
|
50512
|
+
capScope: "system",
|
|
50513
|
+
addonId: null,
|
|
50514
|
+
access: "view"
|
|
50515
|
+
},
|
|
50433
50516
|
"notificationRules.getClipRetentionAsks": {
|
|
50434
50517
|
capName: "notification-rules",
|
|
50435
50518
|
capScope: "system",
|
|
@@ -54913,6 +54996,11 @@ Object.freeze({
|
|
|
54913
54996
|
form: "single",
|
|
54914
54997
|
optional: false
|
|
54915
54998
|
}],
|
|
54999
|
+
"notificationRules.getAlarmSensors": [{
|
|
55000
|
+
name: "deviceIds",
|
|
55001
|
+
form: "array",
|
|
55002
|
+
optional: false
|
|
55003
|
+
}],
|
|
54916
55004
|
"notificationRules.setDeviceMuted": [{
|
|
54917
55005
|
name: "deviceId",
|
|
54918
55006
|
form: "single",
|
|
@@ -56790,7 +56878,7 @@ var PreviewTextField = string().max(200);
|
|
|
56790
56878
|
* Whether the notification's preview is a STILL or a short animation.
|
|
56791
56879
|
*
|
|
56792
56880
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
56793
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
56881
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
56794
56882
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
56795
56883
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
56796
56884
|
* simply applies it to a dozen frames sampled across the render and assembles
|