@camstack/addon-model-studio 1.1.44 → 1.1.46
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-BQmeOC6s.mjs → MotionZonesSettings-DatYL4fO.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-MznS24IR.mjs → PrivacyMaskSettings-B-voWing.mjs} +4 -4
- package/dist/{SceneMonitorEditor-slpx5RVW.mjs → SceneMonitorEditor-B9pWKzVY.mjs} +3 -3
- package/dist/_stub.js +336 -336
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DLIAvBWe.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DuCWAiYv.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-hvsEgbZS.mjs +26 -0
- package/dist/{hostInit-B-Aii0wU.mjs → hostInit-NwYsxI8A.mjs} +3 -3
- package/dist/model-studio.addon.js +572 -61
- package/dist/model-studio.addon.mjs +572 -61
- package/dist/{player-overlays-ZV106hch.mjs → player-overlays-BpSi3fah.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-BWcJ76VI.mjs → responsive-CpGiOR9P.mjs} +1 -1
- package/dist/{square-DK5dno3H.mjs → square-BuNcSEVL.mjs} +1 -1
- package/dist/{trash-2-B9ZCrm5O.mjs → trash-2-DgoF37KH.mjs} +1 -1
- package/dist/{use-device-snapshot-_PNv-X_c.mjs → use-device-snapshot-pFUT6-FP.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-0gBx_lhr.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-Ddkj3KLy.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dz7eB41h.mjs +0 -26
|
@@ -8165,6 +8165,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
8165
8165
|
/** Max rows returned, newest-first. */
|
|
8166
8166
|
limit: number().int().min(1).max(1e3).optional()
|
|
8167
8167
|
});
|
|
8168
|
+
var LabelDefinitionSchema = object({
|
|
8169
|
+
id: string(),
|
|
8170
|
+
name: string(),
|
|
8171
|
+
category: string().optional(),
|
|
8172
|
+
description: string().optional(),
|
|
8173
|
+
icon: string().optional()
|
|
8174
|
+
});
|
|
8175
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
8176
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
8177
|
+
"person",
|
|
8178
|
+
"vehicle",
|
|
8179
|
+
"animal",
|
|
8180
|
+
"package"
|
|
8181
|
+
];
|
|
8182
|
+
/**
|
|
8183
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
8184
|
+
* un operatore può selezionare.
|
|
8185
|
+
*
|
|
8186
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
8187
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
8188
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
8189
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
8190
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
8191
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
8192
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
8193
|
+
*
|
|
8194
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
8195
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
8196
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
8197
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
8198
|
+
* successiva.
|
|
8199
|
+
*/
|
|
8200
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
8201
|
+
"person",
|
|
8202
|
+
"vehicle",
|
|
8203
|
+
"animal"
|
|
8204
|
+
];
|
|
8205
|
+
/**
|
|
8206
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8207
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8208
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8209
|
+
* detection pipeline executor actually routes.
|
|
8210
|
+
*
|
|
8211
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8212
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8213
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8214
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8215
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8216
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8217
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8218
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8219
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8220
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8221
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8222
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8223
|
+
*/
|
|
8224
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8225
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
8226
|
+
preserveOriginal: boolean()
|
|
8227
|
+
});
|
|
8168
8228
|
/**
|
|
8169
8229
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
8170
8230
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -8187,10 +8247,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
8187
8247
|
"events",
|
|
8188
8248
|
"continuous"
|
|
8189
8249
|
]);
|
|
8250
|
+
/**
|
|
8251
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
8252
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
8253
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
8254
|
+
*/
|
|
8255
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
8256
|
+
/**
|
|
8257
|
+
* True quando `values` non ripete un elemento.
|
|
8258
|
+
*
|
|
8259
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
8260
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
8261
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
8262
|
+
*/
|
|
8263
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
8190
8264
|
/** Which detectors trigger an `events`-mode band. */
|
|
8191
8265
|
var RecordingTriggersSchema = object({
|
|
8192
8266
|
motion: boolean().optional(),
|
|
8193
|
-
audioThresholdDbfs: number().optional()
|
|
8267
|
+
audioThresholdDbfs: number().optional(),
|
|
8268
|
+
/**
|
|
8269
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
8270
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
8271
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
8272
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
8273
|
+
*
|
|
8274
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
8275
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
8276
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
8277
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
8278
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
8279
|
+
*/
|
|
8280
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
8281
|
+
/**
|
|
8282
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
8283
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
8284
|
+
* `objectClasses`.
|
|
8285
|
+
*
|
|
8286
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
8287
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
8288
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
8289
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
8290
|
+
* device (D12) — mai un elenco globale di cap.
|
|
8291
|
+
*
|
|
8292
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
8293
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
8294
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
8295
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8296
|
+
* registrare.
|
|
8297
|
+
*/
|
|
8298
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8194
8299
|
});
|
|
8195
8300
|
/**
|
|
8196
8301
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8642,41 +8747,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8642
8747
|
*/
|
|
8643
8748
|
debug: boolean().optional()
|
|
8644
8749
|
});
|
|
8645
|
-
var LabelDefinitionSchema = object({
|
|
8646
|
-
id: string(),
|
|
8647
|
-
name: string(),
|
|
8648
|
-
category: string().optional(),
|
|
8649
|
-
description: string().optional(),
|
|
8650
|
-
icon: string().optional()
|
|
8651
|
-
});
|
|
8652
|
-
/**
|
|
8653
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8654
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8655
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8656
|
-
* detection pipeline executor actually routes.
|
|
8657
|
-
*
|
|
8658
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8659
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8660
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8661
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8662
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8663
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8664
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8665
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8666
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8667
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8668
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8669
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8670
|
-
*/
|
|
8671
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8672
|
-
mapping: record(string(), _enum([
|
|
8673
|
-
"person",
|
|
8674
|
-
"vehicle",
|
|
8675
|
-
"animal",
|
|
8676
|
-
"package"
|
|
8677
|
-
])),
|
|
8678
|
-
preserveOriginal: boolean()
|
|
8679
|
-
});
|
|
8680
8750
|
var MODEL_FORMATS = [
|
|
8681
8751
|
"onnx",
|
|
8682
8752
|
"coreml",
|
|
@@ -16181,7 +16251,23 @@ var NcHistoryEntrySchema = object({
|
|
|
16181
16251
|
updatedAt: number(),
|
|
16182
16252
|
/** Failure detail — present on a `dead` row. */
|
|
16183
16253
|
error: string().optional(),
|
|
16184
|
-
subject: NcHistorySubjectSchema
|
|
16254
|
+
subject: NcHistorySubjectSchema,
|
|
16255
|
+
/**
|
|
16256
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
16257
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
16258
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
16259
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
16260
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
16261
|
+
*
|
|
16262
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
16263
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
16264
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
16265
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
16266
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
16267
|
+
* Assistant export) must render as "no image right now", never as a
|
|
16268
|
+
* broken link.
|
|
16269
|
+
*/
|
|
16270
|
+
artifactIds: array(string().min(1)).optional()
|
|
16185
16271
|
});
|
|
16186
16272
|
/**
|
|
16187
16273
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -16408,7 +16494,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
16408
16494
|
}), method(object({}), object({
|
|
16409
16495
|
catalog: array(NcConditionDescriptorSchema),
|
|
16410
16496
|
taxonomy: NcTaxonomySchema.optional()
|
|
16411
|
-
})), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" }), method(object({}), object({ snoozes: array(NcSnoozeSchema) }), { caller: "required" }), method(object({ snooze: NcSnoozeInputSchema }), object({ snooze: NcSnoozeSchema }), {
|
|
16497
|
+
})), method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" }), method(object({ artifactId: string().min(1) }), object({ url: string().nullable() }), { auth: "admin" }), method(object({}), object({ snoozes: array(NcSnoozeSchema) }), { caller: "required" }), method(object({ snooze: NcSnoozeInputSchema }), object({ snooze: NcSnoozeSchema }), {
|
|
16412
16498
|
kind: "mutation",
|
|
16413
16499
|
caller: "required"
|
|
16414
16500
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -21496,7 +21582,7 @@ var lifecycleJobSchema = object({
|
|
|
21496
21582
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21497
21583
|
* as every other cap.
|
|
21498
21584
|
*/
|
|
21499
|
-
var LogLevelSchema$
|
|
21585
|
+
var LogLevelSchema$2 = _enum([
|
|
21500
21586
|
"debug",
|
|
21501
21587
|
"info",
|
|
21502
21588
|
"warn",
|
|
@@ -21703,7 +21789,7 @@ var CustomActionInputSchema = object({
|
|
|
21703
21789
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21704
21790
|
addonId: string(),
|
|
21705
21791
|
limit: number().min(1).max(500).default(100),
|
|
21706
|
-
level: LogLevelSchema$
|
|
21792
|
+
level: LogLevelSchema$2.optional()
|
|
21707
21793
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21708
21794
|
packageName: string(),
|
|
21709
21795
|
version: string().optional()
|
|
@@ -21801,7 +21887,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21801
21887
|
auth: "admin"
|
|
21802
21888
|
}), method(object({
|
|
21803
21889
|
addonId: string(),
|
|
21804
|
-
level: LogLevelSchema$
|
|
21890
|
+
level: LogLevelSchema$2.optional()
|
|
21805
21891
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21806
21892
|
object({
|
|
21807
21893
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22795,6 +22881,35 @@ var FaceFilterEnum = _enum([
|
|
|
22795
22881
|
"identified",
|
|
22796
22882
|
"all"
|
|
22797
22883
|
]);
|
|
22884
|
+
/**
|
|
22885
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22886
|
+
*
|
|
22887
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22888
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22889
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22890
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22891
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22892
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22893
|
+
*
|
|
22894
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22895
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22896
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22897
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22898
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22899
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22900
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22901
|
+
* backend's NULL-collation accident.
|
|
22902
|
+
*/
|
|
22903
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22904
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22905
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22906
|
+
* never leaves the server. */
|
|
22907
|
+
var FaceClusterSchema = object({
|
|
22908
|
+
faceIds: array(string()).readonly(),
|
|
22909
|
+
representativeFaceId: string(),
|
|
22910
|
+
size: number().int(),
|
|
22911
|
+
cohesion: number()
|
|
22912
|
+
});
|
|
22798
22913
|
var MediaFileLiteSchema$1 = object({
|
|
22799
22914
|
key: string(),
|
|
22800
22915
|
kind: string(),
|
|
@@ -22841,24 +22956,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22841
22956
|
kind: "mutation",
|
|
22842
22957
|
auth: "admin"
|
|
22843
22958
|
}), method(object({
|
|
22844
|
-
/**
|
|
22959
|
+
/**
|
|
22960
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22961
|
+
*
|
|
22962
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22963
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22964
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22965
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22966
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22967
|
+
*/
|
|
22845
22968
|
deviceId: number().int().optional(),
|
|
22969
|
+
/**
|
|
22970
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22971
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22972
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22973
|
+
* about to discard).
|
|
22974
|
+
*
|
|
22975
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22976
|
+
* "every camera". A request for no devices is a request, not an
|
|
22977
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22978
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22979
|
+
*
|
|
22980
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22981
|
+
*/
|
|
22982
|
+
deviceIds: array(number().int()).optional(),
|
|
22846
22983
|
limit: number().int().positive().optional(),
|
|
22847
22984
|
filter: FaceFilterEnum.optional(),
|
|
22848
22985
|
/**
|
|
22849
|
-
*
|
|
22850
|
-
*
|
|
22986
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22987
|
+
* Absent means no lower bound.
|
|
22988
|
+
*/
|
|
22989
|
+
since: number().int().optional(),
|
|
22990
|
+
/**
|
|
22991
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22992
|
+
* Absent means no upper bound.
|
|
22993
|
+
*/
|
|
22994
|
+
until: number().int().optional(),
|
|
22995
|
+
/**
|
|
22996
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22997
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22998
|
+
* that does not ask.
|
|
22851
22999
|
*
|
|
22852
|
-
*
|
|
22853
|
-
*
|
|
22854
|
-
* the browser cache the images.
|
|
23000
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23001
|
+
* does under `'suggestionConfidence'`.
|
|
22855
23002
|
*
|
|
22856
|
-
*
|
|
22857
|
-
*
|
|
22858
|
-
*
|
|
22859
|
-
*
|
|
22860
|
-
*
|
|
22861
|
-
|
|
23003
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
23004
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
23005
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
23006
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
23007
|
+
* with {@link since} / {@link until}.
|
|
23008
|
+
*/
|
|
23009
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
23010
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
23011
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
23012
|
+
/**
|
|
23013
|
+
* Inline the base64 crop on every row.
|
|
23014
|
+
*
|
|
23015
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
23016
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
23017
|
+
* this for every gallery, and which records why the inline shape had
|
|
23018
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
23019
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
23020
|
+
* that describes the old design reads as permission to rely on it.
|
|
23021
|
+
*
|
|
23022
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
23023
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
23024
|
+
* cached and ETagged.
|
|
22862
23025
|
*/
|
|
22863
23026
|
includeCrops: boolean().optional()
|
|
22864
23027
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22894,13 +23057,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22894
23057
|
}), method(object({
|
|
22895
23058
|
threshold: number().min(0).max(1).optional(),
|
|
22896
23059
|
minClusterSize: number().int().min(2).optional(),
|
|
22897
|
-
|
|
22898
|
-
|
|
22899
|
-
|
|
22900
|
-
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
|
|
23060
|
+
/**
|
|
23061
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
23062
|
+
* which read as though it bounded the work — it never did.
|
|
23063
|
+
*
|
|
23064
|
+
* Wins over {@link limit} when both are sent.
|
|
23065
|
+
*/
|
|
23066
|
+
maxClusters: number().int().positive().optional(),
|
|
23067
|
+
/**
|
|
23068
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
23069
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
23070
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
23071
|
+
*/
|
|
23072
|
+
limit: number().int().positive().optional(),
|
|
23073
|
+
/**
|
|
23074
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
23075
|
+
* POOL, not the result.
|
|
23076
|
+
*
|
|
23077
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
23078
|
+
* used to read every unassigned face on the hub no matter what the
|
|
23079
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
23080
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
23081
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
23082
|
+
*
|
|
23083
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
23084
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
23085
|
+
* sample it randomly.
|
|
23086
|
+
*
|
|
23087
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
23088
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
23089
|
+
* unbounded scan can never come back as the table grows.
|
|
23090
|
+
*/
|
|
23091
|
+
maxFacesScanned: number().int().positive().optional()
|
|
23092
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22904
23093
|
/**
|
|
22905
23094
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22906
23095
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25700,6 +25889,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
25700
25889
|
/** Media ms the returned fragment covers. */
|
|
25701
25890
|
gopDurMs: number()
|
|
25702
25891
|
});
|
|
25892
|
+
/**
|
|
25893
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
25894
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
25895
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
25896
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
25897
|
+
*
|
|
25898
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
25899
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
25900
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
25901
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
25902
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
25903
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
25904
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
25905
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
25906
|
+
* bytes nothing has proven decodable.
|
|
25907
|
+
*/
|
|
25908
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
25909
|
+
kind: literal("ok"),
|
|
25910
|
+
data: _instanceof(Uint8Array),
|
|
25911
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
25912
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
25913
|
+
gopStartMs: number(),
|
|
25914
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
25915
|
+
gopDurMs: number(),
|
|
25916
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
25917
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
25918
|
+
reachesRequestedEnd: boolean()
|
|
25919
|
+
}), object({
|
|
25920
|
+
kind: literal("spans-multiple-segments"),
|
|
25921
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
25922
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
25923
|
+
segmentEndMs: number()
|
|
25924
|
+
})]);
|
|
25703
25925
|
method(object({
|
|
25704
25926
|
deviceId: number(),
|
|
25705
25927
|
fromMs: number(),
|
|
@@ -25750,6 +25972,15 @@ method(object({
|
|
|
25750
25972
|
}), ReadGopBytesResultSchema, {
|
|
25751
25973
|
kind: "query",
|
|
25752
25974
|
auth: "admin"
|
|
25975
|
+
}), method(object({
|
|
25976
|
+
deviceId: number(),
|
|
25977
|
+
profile: string(),
|
|
25978
|
+
startMs: number(),
|
|
25979
|
+
fromMs: number(),
|
|
25980
|
+
toMs: number()
|
|
25981
|
+
}), ReadWindowBytesResultSchema, {
|
|
25982
|
+
kind: "query",
|
|
25983
|
+
auth: "admin"
|
|
25753
25984
|
}), method(object({
|
|
25754
25985
|
deviceId: number(),
|
|
25755
25986
|
config: RecordingConfigSchema
|
|
@@ -26581,6 +26812,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
26581
26812
|
latitude: number().min(-90).max(90),
|
|
26582
26813
|
longitude: number().min(-180).max(180)
|
|
26583
26814
|
}).nullable();
|
|
26815
|
+
/**
|
|
26816
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26817
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26818
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26819
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26820
|
+
*/
|
|
26821
|
+
var RequestCensusGroupSchema = object({
|
|
26822
|
+
procedure: string(),
|
|
26823
|
+
userAgent: string(),
|
|
26824
|
+
ip: string(),
|
|
26825
|
+
principal: string(),
|
|
26826
|
+
calls: number(),
|
|
26827
|
+
perMin: number()
|
|
26828
|
+
});
|
|
26829
|
+
/**
|
|
26830
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26831
|
+
*
|
|
26832
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26833
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26834
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26835
|
+
*/
|
|
26836
|
+
var RequestCensusProcedureSchema = object({
|
|
26837
|
+
procedure: string(),
|
|
26838
|
+
calls: number(),
|
|
26839
|
+
perMin: number()
|
|
26840
|
+
});
|
|
26841
|
+
/**
|
|
26842
|
+
* The census as an operator sees it.
|
|
26843
|
+
*
|
|
26844
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26845
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26846
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26847
|
+
* like one that succeeded.
|
|
26848
|
+
*/
|
|
26849
|
+
var RequestCensusStatusSchema = object({
|
|
26850
|
+
armed: boolean(),
|
|
26851
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26852
|
+
elapsedMs: number(),
|
|
26853
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26854
|
+
windowMs: number(),
|
|
26855
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26856
|
+
armedUntilMs: number(),
|
|
26857
|
+
httpRequests: number(),
|
|
26858
|
+
batchedRequests: number(),
|
|
26859
|
+
/**
|
|
26860
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26861
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26862
|
+
* the number comparable with a store-side call count.
|
|
26863
|
+
*/
|
|
26864
|
+
procedureCalls: number(),
|
|
26865
|
+
/**
|
|
26866
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26867
|
+
* transport resolves one context per connection - but the number that says
|
|
26868
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26869
|
+
*/
|
|
26870
|
+
wsConnections: number(),
|
|
26871
|
+
distinctGroups: number(),
|
|
26872
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26873
|
+
* cardinality bound. */
|
|
26874
|
+
unattributedCalls: number(),
|
|
26875
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26876
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26877
|
+
}).extend({ persisted: boolean() });
|
|
26878
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26879
|
+
var LogLevelSchema$1 = _enum([
|
|
26880
|
+
"debug",
|
|
26881
|
+
"info",
|
|
26882
|
+
"warn",
|
|
26883
|
+
"error"
|
|
26884
|
+
]);
|
|
26885
|
+
/**
|
|
26886
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26887
|
+
*
|
|
26888
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26889
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26890
|
+
*/
|
|
26891
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26892
|
+
/**
|
|
26893
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26894
|
+
* layer that carries an explicit value wins.
|
|
26895
|
+
*
|
|
26896
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26897
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26898
|
+
* grow later would force every consumer of this document to change with it.
|
|
26899
|
+
* Nothing returns `component` today.
|
|
26900
|
+
*/
|
|
26901
|
+
var LoggingScopeKindSchema = _enum([
|
|
26902
|
+
"cluster",
|
|
26903
|
+
"node",
|
|
26904
|
+
"component"
|
|
26905
|
+
]);
|
|
26906
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26907
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26908
|
+
"default",
|
|
26909
|
+
"cluster",
|
|
26910
|
+
"node",
|
|
26911
|
+
"component"
|
|
26912
|
+
]);
|
|
26913
|
+
/**
|
|
26914
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26915
|
+
*
|
|
26916
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26917
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26918
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26919
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26920
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26921
|
+
*/
|
|
26922
|
+
var LoggingLevelLayerSchema = object({
|
|
26923
|
+
scope: LoggingScopeKindSchema,
|
|
26924
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26925
|
+
nodeId: string().nullable(),
|
|
26926
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26927
|
+
level: LogLevelSchema$1.nullable()
|
|
26928
|
+
});
|
|
26929
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26930
|
+
var LoggingEffectiveSchema = object({
|
|
26931
|
+
level: LogLevelSchema$1,
|
|
26932
|
+
levelSource: LoggingLevelSourceSchema
|
|
26933
|
+
});
|
|
26934
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26935
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26936
|
+
/**
|
|
26937
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26938
|
+
*
|
|
26939
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26940
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26941
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26942
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26943
|
+
*/
|
|
26944
|
+
var DiagnosticWindowSchema = object({
|
|
26945
|
+
id: DiagnosticIdSchema,
|
|
26946
|
+
armed: boolean(),
|
|
26947
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26948
|
+
armedUntilMs: number(),
|
|
26949
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26950
|
+
remainingMs: number(),
|
|
26951
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26952
|
+
* i.e. whether this window would survive a restart. */
|
|
26953
|
+
persisted: boolean()
|
|
26954
|
+
});
|
|
26955
|
+
/**
|
|
26956
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26957
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26958
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26959
|
+
*/
|
|
26960
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26961
|
+
id: DiagnosticIdSchema,
|
|
26962
|
+
armMs: number().int().min(0),
|
|
26963
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26964
|
+
reportEveryMs: number().int().positive().optional()
|
|
26965
|
+
});
|
|
26966
|
+
/**
|
|
26967
|
+
* A PATCH, and patches MERGE.
|
|
26968
|
+
*
|
|
26969
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26970
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26971
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26972
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26973
|
+
* turns into an erased one.
|
|
26974
|
+
*/
|
|
26975
|
+
var LoggingSettingsPatchSchema = object({
|
|
26976
|
+
/**
|
|
26977
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26978
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26979
|
+
*/
|
|
26980
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26981
|
+
/**
|
|
26982
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26983
|
+
* keeps running — a patch is never a full replacement.
|
|
26984
|
+
*/
|
|
26985
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26986
|
+
});
|
|
26987
|
+
/**
|
|
26988
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26989
|
+
*
|
|
26990
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26991
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26992
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26993
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26994
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26995
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26996
|
+
* layer selector needs a name the transport does not already own.
|
|
26997
|
+
*/
|
|
26998
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26999
|
+
var SetLoggingSettingsInputSchema = object({
|
|
27000
|
+
scopeNodeId: string().optional(),
|
|
27001
|
+
patch: LoggingSettingsPatchSchema
|
|
27002
|
+
});
|
|
27003
|
+
/**
|
|
27004
|
+
* The whole document, as read and as returned after every write.
|
|
27005
|
+
*
|
|
27006
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
27007
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
27008
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
27009
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
27010
|
+
* survive a restart.
|
|
27011
|
+
*/
|
|
27012
|
+
var LoggingSettingsStateSchema = object({
|
|
27013
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
27014
|
+
scopeNodeId: string().nullable(),
|
|
27015
|
+
effective: LoggingEffectiveSchema,
|
|
27016
|
+
explicit: LoggingExplicitSchema,
|
|
27017
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
27018
|
+
persisted: boolean()
|
|
27019
|
+
});
|
|
26584
27020
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
26585
27021
|
kind: "mutation",
|
|
26586
27022
|
auth: "admin"
|
|
@@ -26593,6 +27029,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26593
27029
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26594
27030
|
kind: "mutation",
|
|
26595
27031
|
auth: "admin"
|
|
27032
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27033
|
+
kind: "mutation",
|
|
27034
|
+
auth: "admin"
|
|
26596
27035
|
});
|
|
26597
27036
|
object({
|
|
26598
27037
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -30168,6 +30607,12 @@ Object.freeze({
|
|
|
30168
30607
|
addonId: null,
|
|
30169
30608
|
access: "view"
|
|
30170
30609
|
},
|
|
30610
|
+
"notificationRules.resolveArtifactUrl": {
|
|
30611
|
+
capName: "notification-rules",
|
|
30612
|
+
capScope: "system",
|
|
30613
|
+
addonId: null,
|
|
30614
|
+
access: "view"
|
|
30615
|
+
},
|
|
30171
30616
|
"notificationRules.setAlarmConfig": {
|
|
30172
30617
|
capName: "notification-rules",
|
|
30173
30618
|
capScope: "system",
|
|
@@ -31572,6 +32017,12 @@ Object.freeze({
|
|
|
31572
32017
|
addonId: null,
|
|
31573
32018
|
access: "view"
|
|
31574
32019
|
},
|
|
32020
|
+
"recording.readWindowBytes": {
|
|
32021
|
+
capName: "recording",
|
|
32022
|
+
capScope: "system",
|
|
32023
|
+
addonId: null,
|
|
32024
|
+
access: "view"
|
|
32025
|
+
},
|
|
31575
32026
|
"recording.refreshStorageLocationsForMigration": {
|
|
31576
32027
|
capName: "recording",
|
|
31577
32028
|
capScope: "system",
|
|
@@ -32412,6 +32863,18 @@ Object.freeze({
|
|
|
32412
32863
|
addonId: null,
|
|
32413
32864
|
access: "create"
|
|
32414
32865
|
},
|
|
32866
|
+
"system.getLoggingSettings": {
|
|
32867
|
+
capName: "system",
|
|
32868
|
+
capScope: "system",
|
|
32869
|
+
addonId: null,
|
|
32870
|
+
access: "view"
|
|
32871
|
+
},
|
|
32872
|
+
"system.getRequestCensus": {
|
|
32873
|
+
capName: "system",
|
|
32874
|
+
capScope: "system",
|
|
32875
|
+
addonId: null,
|
|
32876
|
+
access: "view"
|
|
32877
|
+
},
|
|
32415
32878
|
"system.getRetentionConfig": {
|
|
32416
32879
|
capName: "system",
|
|
32417
32880
|
capScope: "system",
|
|
@@ -32442,6 +32905,12 @@ Object.freeze({
|
|
|
32442
32905
|
addonId: null,
|
|
32443
32906
|
access: "view"
|
|
32444
32907
|
},
|
|
32908
|
+
"system.setLoggingSettings": {
|
|
32909
|
+
capName: "system",
|
|
32910
|
+
capScope: "system",
|
|
32911
|
+
addonId: null,
|
|
32912
|
+
access: "create"
|
|
32913
|
+
},
|
|
32445
32914
|
"system.setRetentionConfig": {
|
|
32446
32915
|
capName: "system",
|
|
32447
32916
|
capScope: "system",
|
|
@@ -33597,6 +34066,10 @@ Object.freeze({
|
|
|
33597
34066
|
name: "deviceId",
|
|
33598
34067
|
form: "single",
|
|
33599
34068
|
optional: true
|
|
34069
|
+
}, {
|
|
34070
|
+
name: "deviceIds",
|
|
34071
|
+
form: "array",
|
|
34072
|
+
optional: true
|
|
33600
34073
|
}],
|
|
33601
34074
|
"fanControl.setDirection": [{
|
|
33602
34075
|
name: "deviceId",
|
|
@@ -34402,6 +34875,11 @@ Object.freeze({
|
|
|
34402
34875
|
form: "single",
|
|
34403
34876
|
optional: false
|
|
34404
34877
|
}],
|
|
34878
|
+
"recording.readWindowBytes": [{
|
|
34879
|
+
name: "deviceId",
|
|
34880
|
+
form: "single",
|
|
34881
|
+
optional: false
|
|
34882
|
+
}],
|
|
34405
34883
|
"recording.relocateFootage": [{
|
|
34406
34884
|
name: "deviceId",
|
|
34407
34885
|
form: "single",
|
|
@@ -35202,7 +35680,38 @@ object({
|
|
|
35202
35680
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
35203
35681
|
* reproduce that.
|
|
35204
35682
|
*/
|
|
35205
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35683
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35684
|
+
/**
|
|
35685
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35686
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35687
|
+
* subject tiles, on frames that detected something.
|
|
35688
|
+
*
|
|
35689
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35690
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35691
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35692
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35693
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35694
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35695
|
+
*
|
|
35696
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35697
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35698
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35699
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35700
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35701
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35702
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35703
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35704
|
+
* whole shape exists to avoid.
|
|
35705
|
+
*
|
|
35706
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35707
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35708
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35709
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35710
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35711
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35712
|
+
* nothing.
|
|
35713
|
+
*/
|
|
35714
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
35206
35715
|
});
|
|
35207
35716
|
/**
|
|
35208
35717
|
* The values in force when the operator has set nothing.
|
|
@@ -35218,12 +35727,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
35218
35727
|
budgetMb: 1024,
|
|
35219
35728
|
activityMs: 15e3,
|
|
35220
35729
|
tileBudgetMb: 64,
|
|
35730
|
+
sceneBudgetMb: 48,
|
|
35221
35731
|
admission: "inferred"
|
|
35222
35732
|
};
|
|
35223
35733
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
35224
35734
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
35225
35735
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
35226
35736
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35737
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
35227
35738
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
35228
35739
|
var MB = 1024 * 1024;
|
|
35229
35740
|
1024 * MB, 3072 * MB;
|