@camstack/addon-mqtt-broker 1.2.30 → 1.2.32
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/mqtt-broker.addon.js +572 -61
- package/dist/mqtt-broker.addon.mjs +572 -61
- package/package.json +1 -1
|
@@ -7550,6 +7550,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7550
7550
|
/** Max rows returned, newest-first. */
|
|
7551
7551
|
limit: number().int().min(1).max(1e3).optional()
|
|
7552
7552
|
});
|
|
7553
|
+
var LabelDefinitionSchema = object({
|
|
7554
|
+
id: string(),
|
|
7555
|
+
name: string(),
|
|
7556
|
+
category: string().optional(),
|
|
7557
|
+
description: string().optional(),
|
|
7558
|
+
icon: string().optional()
|
|
7559
|
+
});
|
|
7560
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7561
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7562
|
+
"person",
|
|
7563
|
+
"vehicle",
|
|
7564
|
+
"animal",
|
|
7565
|
+
"package"
|
|
7566
|
+
];
|
|
7567
|
+
/**
|
|
7568
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7569
|
+
* un operatore può selezionare.
|
|
7570
|
+
*
|
|
7571
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7572
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7573
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7574
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7575
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7576
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7577
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7578
|
+
*
|
|
7579
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7580
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7581
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7582
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7583
|
+
* successiva.
|
|
7584
|
+
*/
|
|
7585
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7586
|
+
"person",
|
|
7587
|
+
"vehicle",
|
|
7588
|
+
"animal"
|
|
7589
|
+
];
|
|
7590
|
+
/**
|
|
7591
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7592
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7593
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7594
|
+
* detection pipeline executor actually routes.
|
|
7595
|
+
*
|
|
7596
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7597
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7598
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7599
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7600
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7601
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7602
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7603
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7604
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7605
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7606
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7607
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7608
|
+
*/
|
|
7609
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7610
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7611
|
+
preserveOriginal: boolean()
|
|
7612
|
+
});
|
|
7553
7613
|
/**
|
|
7554
7614
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7555
7615
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7572,10 +7632,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7572
7632
|
"events",
|
|
7573
7633
|
"continuous"
|
|
7574
7634
|
]);
|
|
7635
|
+
/**
|
|
7636
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7637
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7638
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7639
|
+
*/
|
|
7640
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7641
|
+
/**
|
|
7642
|
+
* True quando `values` non ripete un elemento.
|
|
7643
|
+
*
|
|
7644
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7645
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7646
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7647
|
+
*/
|
|
7648
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7575
7649
|
/** Which detectors trigger an `events`-mode band. */
|
|
7576
7650
|
var RecordingTriggersSchema = object({
|
|
7577
7651
|
motion: boolean().optional(),
|
|
7578
|
-
audioThresholdDbfs: number().optional()
|
|
7652
|
+
audioThresholdDbfs: number().optional(),
|
|
7653
|
+
/**
|
|
7654
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7655
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7656
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7657
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7658
|
+
*
|
|
7659
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7660
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7661
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7662
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7663
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7664
|
+
*/
|
|
7665
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7666
|
+
/**
|
|
7667
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7668
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7669
|
+
* `objectClasses`.
|
|
7670
|
+
*
|
|
7671
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7672
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7673
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7674
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7675
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7676
|
+
*
|
|
7677
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7678
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7679
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7680
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7681
|
+
* registrare.
|
|
7682
|
+
*/
|
|
7683
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7579
7684
|
});
|
|
7580
7685
|
/**
|
|
7581
7686
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8027,41 +8132,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8027
8132
|
*/
|
|
8028
8133
|
debug: boolean().optional()
|
|
8029
8134
|
});
|
|
8030
|
-
var LabelDefinitionSchema = object({
|
|
8031
|
-
id: string(),
|
|
8032
|
-
name: string(),
|
|
8033
|
-
category: string().optional(),
|
|
8034
|
-
description: string().optional(),
|
|
8035
|
-
icon: string().optional()
|
|
8036
|
-
});
|
|
8037
|
-
/**
|
|
8038
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8039
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8040
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8041
|
-
* detection pipeline executor actually routes.
|
|
8042
|
-
*
|
|
8043
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8044
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8045
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8046
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8047
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8048
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8049
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8050
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8051
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8052
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8053
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8054
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8055
|
-
*/
|
|
8056
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8057
|
-
mapping: record(string(), _enum([
|
|
8058
|
-
"person",
|
|
8059
|
-
"vehicle",
|
|
8060
|
-
"animal",
|
|
8061
|
-
"package"
|
|
8062
|
-
])),
|
|
8063
|
-
preserveOriginal: boolean()
|
|
8064
|
-
});
|
|
8065
8135
|
var MODEL_FORMATS = [
|
|
8066
8136
|
"onnx",
|
|
8067
8137
|
"coreml",
|
|
@@ -15572,7 +15642,23 @@ var NcHistoryEntrySchema = object({
|
|
|
15572
15642
|
updatedAt: number(),
|
|
15573
15643
|
/** Failure detail — present on a `dead` row. */
|
|
15574
15644
|
error: string().optional(),
|
|
15575
|
-
subject: NcHistorySubjectSchema
|
|
15645
|
+
subject: NcHistorySubjectSchema,
|
|
15646
|
+
/**
|
|
15647
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
15648
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
15649
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
15650
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
15651
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
15652
|
+
*
|
|
15653
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
15654
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
15655
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
15656
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
15657
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
15658
|
+
* Assistant export) must render as "no image right now", never as a
|
|
15659
|
+
* broken link.
|
|
15660
|
+
*/
|
|
15661
|
+
artifactIds: array(string().min(1)).optional()
|
|
15576
15662
|
});
|
|
15577
15663
|
/**
|
|
15578
15664
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -15799,7 +15885,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
15799
15885
|
}), method(object({}), object({
|
|
15800
15886
|
catalog: array(NcConditionDescriptorSchema),
|
|
15801
15887
|
taxonomy: NcTaxonomySchema.optional()
|
|
15802
|
-
})), 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 }), {
|
|
15888
|
+
})), 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 }), {
|
|
15803
15889
|
kind: "mutation",
|
|
15804
15890
|
caller: "required"
|
|
15805
15891
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -20887,7 +20973,7 @@ var lifecycleJobSchema = object({
|
|
|
20887
20973
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
20888
20974
|
* as every other cap.
|
|
20889
20975
|
*/
|
|
20890
|
-
var LogLevelSchema$
|
|
20976
|
+
var LogLevelSchema$2 = _enum([
|
|
20891
20977
|
"debug",
|
|
20892
20978
|
"info",
|
|
20893
20979
|
"warn",
|
|
@@ -21094,7 +21180,7 @@ var CustomActionInputSchema = object({
|
|
|
21094
21180
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21095
21181
|
addonId: string(),
|
|
21096
21182
|
limit: number().min(1).max(500).default(100),
|
|
21097
|
-
level: LogLevelSchema$
|
|
21183
|
+
level: LogLevelSchema$2.optional()
|
|
21098
21184
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21099
21185
|
packageName: string(),
|
|
21100
21186
|
version: string().optional()
|
|
@@ -21192,7 +21278,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21192
21278
|
auth: "admin"
|
|
21193
21279
|
}), method(object({
|
|
21194
21280
|
addonId: string(),
|
|
21195
|
-
level: LogLevelSchema$
|
|
21281
|
+
level: LogLevelSchema$2.optional()
|
|
21196
21282
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21197
21283
|
object({
|
|
21198
21284
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22186,6 +22272,35 @@ var FaceFilterEnum = _enum([
|
|
|
22186
22272
|
"identified",
|
|
22187
22273
|
"all"
|
|
22188
22274
|
]);
|
|
22275
|
+
/**
|
|
22276
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22277
|
+
*
|
|
22278
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22279
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22280
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22281
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22282
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22283
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22284
|
+
*
|
|
22285
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22286
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22287
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22288
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22289
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22290
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22291
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22292
|
+
* backend's NULL-collation accident.
|
|
22293
|
+
*/
|
|
22294
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22295
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22296
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22297
|
+
* never leaves the server. */
|
|
22298
|
+
var FaceClusterSchema = object({
|
|
22299
|
+
faceIds: array(string()).readonly(),
|
|
22300
|
+
representativeFaceId: string(),
|
|
22301
|
+
size: number().int(),
|
|
22302
|
+
cohesion: number()
|
|
22303
|
+
});
|
|
22189
22304
|
var MediaFileLiteSchema$1 = object({
|
|
22190
22305
|
key: string(),
|
|
22191
22306
|
kind: string(),
|
|
@@ -22232,24 +22347,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22232
22347
|
kind: "mutation",
|
|
22233
22348
|
auth: "admin"
|
|
22234
22349
|
}), method(object({
|
|
22235
|
-
/**
|
|
22350
|
+
/**
|
|
22351
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22352
|
+
*
|
|
22353
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22354
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22355
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22356
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22357
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22358
|
+
*/
|
|
22236
22359
|
deviceId: number().int().optional(),
|
|
22360
|
+
/**
|
|
22361
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22362
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22363
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22364
|
+
* about to discard).
|
|
22365
|
+
*
|
|
22366
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22367
|
+
* "every camera". A request for no devices is a request, not an
|
|
22368
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22369
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22370
|
+
*
|
|
22371
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22372
|
+
*/
|
|
22373
|
+
deviceIds: array(number().int()).optional(),
|
|
22237
22374
|
limit: number().int().positive().optional(),
|
|
22238
22375
|
filter: FaceFilterEnum.optional(),
|
|
22239
22376
|
/**
|
|
22240
|
-
*
|
|
22241
|
-
*
|
|
22377
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22378
|
+
* Absent means no lower bound.
|
|
22379
|
+
*/
|
|
22380
|
+
since: number().int().optional(),
|
|
22381
|
+
/**
|
|
22382
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22383
|
+
* Absent means no upper bound.
|
|
22384
|
+
*/
|
|
22385
|
+
until: number().int().optional(),
|
|
22386
|
+
/**
|
|
22387
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22388
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22389
|
+
* that does not ask.
|
|
22242
22390
|
*
|
|
22243
|
-
*
|
|
22244
|
-
*
|
|
22245
|
-
* the browser cache the images.
|
|
22391
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
22392
|
+
* does under `'suggestionConfidence'`.
|
|
22246
22393
|
*
|
|
22247
|
-
*
|
|
22248
|
-
*
|
|
22249
|
-
*
|
|
22250
|
-
*
|
|
22251
|
-
*
|
|
22252
|
-
|
|
22394
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
22395
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
22396
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
22397
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
22398
|
+
* with {@link since} / {@link until}.
|
|
22399
|
+
*/
|
|
22400
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
22401
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
22402
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
22403
|
+
/**
|
|
22404
|
+
* Inline the base64 crop on every row.
|
|
22405
|
+
*
|
|
22406
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
22407
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
22408
|
+
* this for every gallery, and which records why the inline shape had
|
|
22409
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
22410
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
22411
|
+
* that describes the old design reads as permission to rely on it.
|
|
22412
|
+
*
|
|
22413
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
22414
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
22415
|
+
* cached and ETagged.
|
|
22253
22416
|
*/
|
|
22254
22417
|
includeCrops: boolean().optional()
|
|
22255
22418
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22285,13 +22448,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22285
22448
|
}), method(object({
|
|
22286
22449
|
threshold: number().min(0).max(1).optional(),
|
|
22287
22450
|
minClusterSize: number().int().min(2).optional(),
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
|
|
22451
|
+
/**
|
|
22452
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
22453
|
+
* which read as though it bounded the work — it never did.
|
|
22454
|
+
*
|
|
22455
|
+
* Wins over {@link limit} when both are sent.
|
|
22456
|
+
*/
|
|
22457
|
+
maxClusters: number().int().positive().optional(),
|
|
22458
|
+
/**
|
|
22459
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
22460
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
22461
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
22462
|
+
*/
|
|
22463
|
+
limit: number().int().positive().optional(),
|
|
22464
|
+
/**
|
|
22465
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
22466
|
+
* POOL, not the result.
|
|
22467
|
+
*
|
|
22468
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
22469
|
+
* used to read every unassigned face on the hub no matter what the
|
|
22470
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
22471
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
22472
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
22473
|
+
*
|
|
22474
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
22475
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
22476
|
+
* sample it randomly.
|
|
22477
|
+
*
|
|
22478
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
22479
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
22480
|
+
* unbounded scan can never come back as the table grows.
|
|
22481
|
+
*/
|
|
22482
|
+
maxFacesScanned: number().int().positive().optional()
|
|
22483
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22295
22484
|
/**
|
|
22296
22485
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22297
22486
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25091,6 +25280,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
25091
25280
|
/** Media ms the returned fragment covers. */
|
|
25092
25281
|
gopDurMs: number()
|
|
25093
25282
|
});
|
|
25283
|
+
/**
|
|
25284
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
25285
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
25286
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
25287
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
25288
|
+
*
|
|
25289
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
25290
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
25291
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
25292
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
25293
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
25294
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
25295
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
25296
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
25297
|
+
* bytes nothing has proven decodable.
|
|
25298
|
+
*/
|
|
25299
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
25300
|
+
kind: literal("ok"),
|
|
25301
|
+
data: _instanceof(Uint8Array),
|
|
25302
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
25303
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
25304
|
+
gopStartMs: number(),
|
|
25305
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
25306
|
+
gopDurMs: number(),
|
|
25307
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
25308
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
25309
|
+
reachesRequestedEnd: boolean()
|
|
25310
|
+
}), object({
|
|
25311
|
+
kind: literal("spans-multiple-segments"),
|
|
25312
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
25313
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
25314
|
+
segmentEndMs: number()
|
|
25315
|
+
})]);
|
|
25094
25316
|
method(object({
|
|
25095
25317
|
deviceId: number(),
|
|
25096
25318
|
fromMs: number(),
|
|
@@ -25141,6 +25363,15 @@ method(object({
|
|
|
25141
25363
|
}), ReadGopBytesResultSchema, {
|
|
25142
25364
|
kind: "query",
|
|
25143
25365
|
auth: "admin"
|
|
25366
|
+
}), method(object({
|
|
25367
|
+
deviceId: number(),
|
|
25368
|
+
profile: string(),
|
|
25369
|
+
startMs: number(),
|
|
25370
|
+
fromMs: number(),
|
|
25371
|
+
toMs: number()
|
|
25372
|
+
}), ReadWindowBytesResultSchema, {
|
|
25373
|
+
kind: "query",
|
|
25374
|
+
auth: "admin"
|
|
25144
25375
|
}), method(object({
|
|
25145
25376
|
deviceId: number(),
|
|
25146
25377
|
config: RecordingConfigSchema
|
|
@@ -25972,6 +26203,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
25972
26203
|
latitude: number().min(-90).max(90),
|
|
25973
26204
|
longitude: number().min(-180).max(180)
|
|
25974
26205
|
}).nullable();
|
|
26206
|
+
/**
|
|
26207
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26208
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26209
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26210
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26211
|
+
*/
|
|
26212
|
+
var RequestCensusGroupSchema = object({
|
|
26213
|
+
procedure: string(),
|
|
26214
|
+
userAgent: string(),
|
|
26215
|
+
ip: string(),
|
|
26216
|
+
principal: string(),
|
|
26217
|
+
calls: number(),
|
|
26218
|
+
perMin: number()
|
|
26219
|
+
});
|
|
26220
|
+
/**
|
|
26221
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26222
|
+
*
|
|
26223
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26224
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26225
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26226
|
+
*/
|
|
26227
|
+
var RequestCensusProcedureSchema = object({
|
|
26228
|
+
procedure: string(),
|
|
26229
|
+
calls: number(),
|
|
26230
|
+
perMin: number()
|
|
26231
|
+
});
|
|
26232
|
+
/**
|
|
26233
|
+
* The census as an operator sees it.
|
|
26234
|
+
*
|
|
26235
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26236
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26237
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26238
|
+
* like one that succeeded.
|
|
26239
|
+
*/
|
|
26240
|
+
var RequestCensusStatusSchema = object({
|
|
26241
|
+
armed: boolean(),
|
|
26242
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26243
|
+
elapsedMs: number(),
|
|
26244
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26245
|
+
windowMs: number(),
|
|
26246
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26247
|
+
armedUntilMs: number(),
|
|
26248
|
+
httpRequests: number(),
|
|
26249
|
+
batchedRequests: number(),
|
|
26250
|
+
/**
|
|
26251
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26252
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26253
|
+
* the number comparable with a store-side call count.
|
|
26254
|
+
*/
|
|
26255
|
+
procedureCalls: number(),
|
|
26256
|
+
/**
|
|
26257
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26258
|
+
* transport resolves one context per connection - but the number that says
|
|
26259
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26260
|
+
*/
|
|
26261
|
+
wsConnections: number(),
|
|
26262
|
+
distinctGroups: number(),
|
|
26263
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26264
|
+
* cardinality bound. */
|
|
26265
|
+
unattributedCalls: number(),
|
|
26266
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26267
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26268
|
+
}).extend({ persisted: boolean() });
|
|
26269
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26270
|
+
var LogLevelSchema$1 = _enum([
|
|
26271
|
+
"debug",
|
|
26272
|
+
"info",
|
|
26273
|
+
"warn",
|
|
26274
|
+
"error"
|
|
26275
|
+
]);
|
|
26276
|
+
/**
|
|
26277
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26278
|
+
*
|
|
26279
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26280
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26281
|
+
*/
|
|
26282
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26283
|
+
/**
|
|
26284
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26285
|
+
* layer that carries an explicit value wins.
|
|
26286
|
+
*
|
|
26287
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26288
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26289
|
+
* grow later would force every consumer of this document to change with it.
|
|
26290
|
+
* Nothing returns `component` today.
|
|
26291
|
+
*/
|
|
26292
|
+
var LoggingScopeKindSchema = _enum([
|
|
26293
|
+
"cluster",
|
|
26294
|
+
"node",
|
|
26295
|
+
"component"
|
|
26296
|
+
]);
|
|
26297
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26298
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26299
|
+
"default",
|
|
26300
|
+
"cluster",
|
|
26301
|
+
"node",
|
|
26302
|
+
"component"
|
|
26303
|
+
]);
|
|
26304
|
+
/**
|
|
26305
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26306
|
+
*
|
|
26307
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26308
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26309
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26310
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26311
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26312
|
+
*/
|
|
26313
|
+
var LoggingLevelLayerSchema = object({
|
|
26314
|
+
scope: LoggingScopeKindSchema,
|
|
26315
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26316
|
+
nodeId: string().nullable(),
|
|
26317
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26318
|
+
level: LogLevelSchema$1.nullable()
|
|
26319
|
+
});
|
|
26320
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26321
|
+
var LoggingEffectiveSchema = object({
|
|
26322
|
+
level: LogLevelSchema$1,
|
|
26323
|
+
levelSource: LoggingLevelSourceSchema
|
|
26324
|
+
});
|
|
26325
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26326
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26327
|
+
/**
|
|
26328
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26329
|
+
*
|
|
26330
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26331
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26332
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26333
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26334
|
+
*/
|
|
26335
|
+
var DiagnosticWindowSchema = object({
|
|
26336
|
+
id: DiagnosticIdSchema,
|
|
26337
|
+
armed: boolean(),
|
|
26338
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26339
|
+
armedUntilMs: number(),
|
|
26340
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26341
|
+
remainingMs: number(),
|
|
26342
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26343
|
+
* i.e. whether this window would survive a restart. */
|
|
26344
|
+
persisted: boolean()
|
|
26345
|
+
});
|
|
26346
|
+
/**
|
|
26347
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26348
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26349
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26350
|
+
*/
|
|
26351
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26352
|
+
id: DiagnosticIdSchema,
|
|
26353
|
+
armMs: number().int().min(0),
|
|
26354
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26355
|
+
reportEveryMs: number().int().positive().optional()
|
|
26356
|
+
});
|
|
26357
|
+
/**
|
|
26358
|
+
* A PATCH, and patches MERGE.
|
|
26359
|
+
*
|
|
26360
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26361
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26362
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26363
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26364
|
+
* turns into an erased one.
|
|
26365
|
+
*/
|
|
26366
|
+
var LoggingSettingsPatchSchema = object({
|
|
26367
|
+
/**
|
|
26368
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26369
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26370
|
+
*/
|
|
26371
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26372
|
+
/**
|
|
26373
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26374
|
+
* keeps running — a patch is never a full replacement.
|
|
26375
|
+
*/
|
|
26376
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26377
|
+
});
|
|
26378
|
+
/**
|
|
26379
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26380
|
+
*
|
|
26381
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26382
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26383
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26384
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26385
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26386
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26387
|
+
* layer selector needs a name the transport does not already own.
|
|
26388
|
+
*/
|
|
26389
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26390
|
+
var SetLoggingSettingsInputSchema = object({
|
|
26391
|
+
scopeNodeId: string().optional(),
|
|
26392
|
+
patch: LoggingSettingsPatchSchema
|
|
26393
|
+
});
|
|
26394
|
+
/**
|
|
26395
|
+
* The whole document, as read and as returned after every write.
|
|
26396
|
+
*
|
|
26397
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
26398
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
26399
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
26400
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
26401
|
+
* survive a restart.
|
|
26402
|
+
*/
|
|
26403
|
+
var LoggingSettingsStateSchema = object({
|
|
26404
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
26405
|
+
scopeNodeId: string().nullable(),
|
|
26406
|
+
effective: LoggingEffectiveSchema,
|
|
26407
|
+
explicit: LoggingExplicitSchema,
|
|
26408
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
26409
|
+
persisted: boolean()
|
|
26410
|
+
});
|
|
25975
26411
|
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(), {
|
|
25976
26412
|
kind: "mutation",
|
|
25977
26413
|
auth: "admin"
|
|
@@ -25984,6 +26420,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
25984
26420
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
25985
26421
|
kind: "mutation",
|
|
25986
26422
|
auth: "admin"
|
|
26423
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26424
|
+
kind: "mutation",
|
|
26425
|
+
auth: "admin"
|
|
25987
26426
|
});
|
|
25988
26427
|
object({
|
|
25989
26428
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -29559,6 +29998,12 @@ Object.freeze({
|
|
|
29559
29998
|
addonId: null,
|
|
29560
29999
|
access: "view"
|
|
29561
30000
|
},
|
|
30001
|
+
"notificationRules.resolveArtifactUrl": {
|
|
30002
|
+
capName: "notification-rules",
|
|
30003
|
+
capScope: "system",
|
|
30004
|
+
addonId: null,
|
|
30005
|
+
access: "view"
|
|
30006
|
+
},
|
|
29562
30007
|
"notificationRules.setAlarmConfig": {
|
|
29563
30008
|
capName: "notification-rules",
|
|
29564
30009
|
capScope: "system",
|
|
@@ -30963,6 +31408,12 @@ Object.freeze({
|
|
|
30963
31408
|
addonId: null,
|
|
30964
31409
|
access: "view"
|
|
30965
31410
|
},
|
|
31411
|
+
"recording.readWindowBytes": {
|
|
31412
|
+
capName: "recording",
|
|
31413
|
+
capScope: "system",
|
|
31414
|
+
addonId: null,
|
|
31415
|
+
access: "view"
|
|
31416
|
+
},
|
|
30966
31417
|
"recording.refreshStorageLocationsForMigration": {
|
|
30967
31418
|
capName: "recording",
|
|
30968
31419
|
capScope: "system",
|
|
@@ -31803,6 +32254,18 @@ Object.freeze({
|
|
|
31803
32254
|
addonId: null,
|
|
31804
32255
|
access: "create"
|
|
31805
32256
|
},
|
|
32257
|
+
"system.getLoggingSettings": {
|
|
32258
|
+
capName: "system",
|
|
32259
|
+
capScope: "system",
|
|
32260
|
+
addonId: null,
|
|
32261
|
+
access: "view"
|
|
32262
|
+
},
|
|
32263
|
+
"system.getRequestCensus": {
|
|
32264
|
+
capName: "system",
|
|
32265
|
+
capScope: "system",
|
|
32266
|
+
addonId: null,
|
|
32267
|
+
access: "view"
|
|
32268
|
+
},
|
|
31806
32269
|
"system.getRetentionConfig": {
|
|
31807
32270
|
capName: "system",
|
|
31808
32271
|
capScope: "system",
|
|
@@ -31833,6 +32296,12 @@ Object.freeze({
|
|
|
31833
32296
|
addonId: null,
|
|
31834
32297
|
access: "view"
|
|
31835
32298
|
},
|
|
32299
|
+
"system.setLoggingSettings": {
|
|
32300
|
+
capName: "system",
|
|
32301
|
+
capScope: "system",
|
|
32302
|
+
addonId: null,
|
|
32303
|
+
access: "create"
|
|
32304
|
+
},
|
|
31836
32305
|
"system.setRetentionConfig": {
|
|
31837
32306
|
capName: "system",
|
|
31838
32307
|
capScope: "system",
|
|
@@ -32988,6 +33457,10 @@ Object.freeze({
|
|
|
32988
33457
|
name: "deviceId",
|
|
32989
33458
|
form: "single",
|
|
32990
33459
|
optional: true
|
|
33460
|
+
}, {
|
|
33461
|
+
name: "deviceIds",
|
|
33462
|
+
form: "array",
|
|
33463
|
+
optional: true
|
|
32991
33464
|
}],
|
|
32992
33465
|
"fanControl.setDirection": [{
|
|
32993
33466
|
name: "deviceId",
|
|
@@ -33793,6 +34266,11 @@ Object.freeze({
|
|
|
33793
34266
|
form: "single",
|
|
33794
34267
|
optional: false
|
|
33795
34268
|
}],
|
|
34269
|
+
"recording.readWindowBytes": [{
|
|
34270
|
+
name: "deviceId",
|
|
34271
|
+
form: "single",
|
|
34272
|
+
optional: false
|
|
34273
|
+
}],
|
|
33796
34274
|
"recording.relocateFootage": [{
|
|
33797
34275
|
name: "deviceId",
|
|
33798
34276
|
form: "single",
|
|
@@ -34593,7 +35071,38 @@ object({
|
|
|
34593
35071
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34594
35072
|
* reproduce that.
|
|
34595
35073
|
*/
|
|
34596
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35074
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35075
|
+
/**
|
|
35076
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35077
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35078
|
+
* subject tiles, on frames that detected something.
|
|
35079
|
+
*
|
|
35080
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35081
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35082
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35083
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35084
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35085
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35086
|
+
*
|
|
35087
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35088
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35089
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35090
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35091
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35092
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35093
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35094
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35095
|
+
* whole shape exists to avoid.
|
|
35096
|
+
*
|
|
35097
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35098
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35099
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35100
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35101
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35102
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35103
|
+
* nothing.
|
|
35104
|
+
*/
|
|
35105
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
34597
35106
|
});
|
|
34598
35107
|
/**
|
|
34599
35108
|
* The values in force when the operator has set nothing.
|
|
@@ -34609,12 +35118,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
34609
35118
|
budgetMb: 1024,
|
|
34610
35119
|
activityMs: 15e3,
|
|
34611
35120
|
tileBudgetMb: 64,
|
|
35121
|
+
sceneBudgetMb: 48,
|
|
34612
35122
|
admission: "inferred"
|
|
34613
35123
|
};
|
|
34614
35124
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34615
35125
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34616
35126
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34617
35127
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35128
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
34618
35129
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34619
35130
|
var MB = 1024 * 1024;
|
|
34620
35131
|
1024 * MB, 3072 * MB;
|