@camstack/addon-decoder-ffmpeg 1.2.29 → 1.2.31
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/index.js +572 -61
- package/dist/index.mjs +572 -61
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7527,6 +7527,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7527
7527
|
/** Max rows returned, newest-first. */
|
|
7528
7528
|
limit: number().int().min(1).max(1e3).optional()
|
|
7529
7529
|
});
|
|
7530
|
+
var LabelDefinitionSchema = object({
|
|
7531
|
+
id: string(),
|
|
7532
|
+
name: string(),
|
|
7533
|
+
category: string().optional(),
|
|
7534
|
+
description: string().optional(),
|
|
7535
|
+
icon: string().optional()
|
|
7536
|
+
});
|
|
7537
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7538
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7539
|
+
"person",
|
|
7540
|
+
"vehicle",
|
|
7541
|
+
"animal",
|
|
7542
|
+
"package"
|
|
7543
|
+
];
|
|
7544
|
+
/**
|
|
7545
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7546
|
+
* un operatore può selezionare.
|
|
7547
|
+
*
|
|
7548
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7549
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7550
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7551
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7552
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7553
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7554
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7555
|
+
*
|
|
7556
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7557
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7558
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7559
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7560
|
+
* successiva.
|
|
7561
|
+
*/
|
|
7562
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7563
|
+
"person",
|
|
7564
|
+
"vehicle",
|
|
7565
|
+
"animal"
|
|
7566
|
+
];
|
|
7567
|
+
/**
|
|
7568
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7569
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7570
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7571
|
+
* detection pipeline executor actually routes.
|
|
7572
|
+
*
|
|
7573
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7574
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7575
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7576
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7577
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7578
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7579
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7580
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7581
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7582
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7583
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7584
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7585
|
+
*/
|
|
7586
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7587
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7588
|
+
preserveOriginal: boolean()
|
|
7589
|
+
});
|
|
7530
7590
|
/**
|
|
7531
7591
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7532
7592
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7549,10 +7609,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7549
7609
|
"events",
|
|
7550
7610
|
"continuous"
|
|
7551
7611
|
]);
|
|
7612
|
+
/**
|
|
7613
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7614
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7615
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7616
|
+
*/
|
|
7617
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7618
|
+
/**
|
|
7619
|
+
* True quando `values` non ripete un elemento.
|
|
7620
|
+
*
|
|
7621
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7622
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7623
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7624
|
+
*/
|
|
7625
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7552
7626
|
/** Which detectors trigger an `events`-mode band. */
|
|
7553
7627
|
var RecordingTriggersSchema = object({
|
|
7554
7628
|
motion: boolean().optional(),
|
|
7555
|
-
audioThresholdDbfs: number().optional()
|
|
7629
|
+
audioThresholdDbfs: number().optional(),
|
|
7630
|
+
/**
|
|
7631
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7632
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7633
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7634
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7635
|
+
*
|
|
7636
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7637
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7638
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7639
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7640
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7641
|
+
*/
|
|
7642
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7643
|
+
/**
|
|
7644
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7645
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7646
|
+
* `objectClasses`.
|
|
7647
|
+
*
|
|
7648
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7649
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7650
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7651
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7652
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7653
|
+
*
|
|
7654
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7655
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7656
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7657
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7658
|
+
* registrare.
|
|
7659
|
+
*/
|
|
7660
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7556
7661
|
});
|
|
7557
7662
|
/**
|
|
7558
7663
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8004,41 +8109,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8004
8109
|
*/
|
|
8005
8110
|
debug: boolean().optional()
|
|
8006
8111
|
});
|
|
8007
|
-
var LabelDefinitionSchema = object({
|
|
8008
|
-
id: string(),
|
|
8009
|
-
name: string(),
|
|
8010
|
-
category: string().optional(),
|
|
8011
|
-
description: string().optional(),
|
|
8012
|
-
icon: string().optional()
|
|
8013
|
-
});
|
|
8014
|
-
/**
|
|
8015
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8016
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8017
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8018
|
-
* detection pipeline executor actually routes.
|
|
8019
|
-
*
|
|
8020
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8021
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8022
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8023
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8024
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8025
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8026
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8027
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8028
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8029
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8030
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8031
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8032
|
-
*/
|
|
8033
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8034
|
-
mapping: record(string(), _enum([
|
|
8035
|
-
"person",
|
|
8036
|
-
"vehicle",
|
|
8037
|
-
"animal",
|
|
8038
|
-
"package"
|
|
8039
|
-
])),
|
|
8040
|
-
preserveOriginal: boolean()
|
|
8041
|
-
});
|
|
8042
8112
|
var MODEL_FORMATS = [
|
|
8043
8113
|
"onnx",
|
|
8044
8114
|
"coreml",
|
|
@@ -15611,7 +15681,23 @@ var NcHistoryEntrySchema = object({
|
|
|
15611
15681
|
updatedAt: number(),
|
|
15612
15682
|
/** Failure detail — present on a `dead` row. */
|
|
15613
15683
|
error: string().optional(),
|
|
15614
|
-
subject: NcHistorySubjectSchema
|
|
15684
|
+
subject: NcHistorySubjectSchema,
|
|
15685
|
+
/**
|
|
15686
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
15687
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
15688
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
15689
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
15690
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
15691
|
+
*
|
|
15692
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
15693
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
15694
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
15695
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
15696
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
15697
|
+
* Assistant export) must render as "no image right now", never as a
|
|
15698
|
+
* broken link.
|
|
15699
|
+
*/
|
|
15700
|
+
artifactIds: array(string().min(1)).optional()
|
|
15615
15701
|
});
|
|
15616
15702
|
/**
|
|
15617
15703
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -15838,7 +15924,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
15838
15924
|
}), method(object({}), object({
|
|
15839
15925
|
catalog: array(NcConditionDescriptorSchema),
|
|
15840
15926
|
taxonomy: NcTaxonomySchema.optional()
|
|
15841
|
-
})), 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 }), {
|
|
15927
|
+
})), 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 }), {
|
|
15842
15928
|
kind: "mutation",
|
|
15843
15929
|
caller: "required"
|
|
15844
15930
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -20926,7 +21012,7 @@ var lifecycleJobSchema = object({
|
|
|
20926
21012
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
20927
21013
|
* as every other cap.
|
|
20928
21014
|
*/
|
|
20929
|
-
var LogLevelSchema$
|
|
21015
|
+
var LogLevelSchema$2 = _enum([
|
|
20930
21016
|
"debug",
|
|
20931
21017
|
"info",
|
|
20932
21018
|
"warn",
|
|
@@ -21133,7 +21219,7 @@ var CustomActionInputSchema = object({
|
|
|
21133
21219
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21134
21220
|
addonId: string(),
|
|
21135
21221
|
limit: number().min(1).max(500).default(100),
|
|
21136
|
-
level: LogLevelSchema$
|
|
21222
|
+
level: LogLevelSchema$2.optional()
|
|
21137
21223
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21138
21224
|
packageName: string(),
|
|
21139
21225
|
version: string().optional()
|
|
@@ -21231,7 +21317,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21231
21317
|
auth: "admin"
|
|
21232
21318
|
}), method(object({
|
|
21233
21319
|
addonId: string(),
|
|
21234
|
-
level: LogLevelSchema$
|
|
21320
|
+
level: LogLevelSchema$2.optional()
|
|
21235
21321
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21236
21322
|
object({
|
|
21237
21323
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22225,6 +22311,35 @@ var FaceFilterEnum = _enum([
|
|
|
22225
22311
|
"identified",
|
|
22226
22312
|
"all"
|
|
22227
22313
|
]);
|
|
22314
|
+
/**
|
|
22315
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22316
|
+
*
|
|
22317
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22318
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22319
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22320
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22321
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22322
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22323
|
+
*
|
|
22324
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22325
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22326
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22327
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22328
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22329
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22330
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22331
|
+
* backend's NULL-collation accident.
|
|
22332
|
+
*/
|
|
22333
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22334
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22335
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22336
|
+
* never leaves the server. */
|
|
22337
|
+
var FaceClusterSchema = object({
|
|
22338
|
+
faceIds: array(string()).readonly(),
|
|
22339
|
+
representativeFaceId: string(),
|
|
22340
|
+
size: number().int(),
|
|
22341
|
+
cohesion: number()
|
|
22342
|
+
});
|
|
22228
22343
|
var MediaFileLiteSchema$1 = object({
|
|
22229
22344
|
key: string(),
|
|
22230
22345
|
kind: string(),
|
|
@@ -22271,24 +22386,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22271
22386
|
kind: "mutation",
|
|
22272
22387
|
auth: "admin"
|
|
22273
22388
|
}), method(object({
|
|
22274
|
-
/**
|
|
22389
|
+
/**
|
|
22390
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22391
|
+
*
|
|
22392
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22393
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22394
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22395
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22396
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22397
|
+
*/
|
|
22275
22398
|
deviceId: number().int().optional(),
|
|
22399
|
+
/**
|
|
22400
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22401
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22402
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22403
|
+
* about to discard).
|
|
22404
|
+
*
|
|
22405
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22406
|
+
* "every camera". A request for no devices is a request, not an
|
|
22407
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22408
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22409
|
+
*
|
|
22410
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22411
|
+
*/
|
|
22412
|
+
deviceIds: array(number().int()).optional(),
|
|
22276
22413
|
limit: number().int().positive().optional(),
|
|
22277
22414
|
filter: FaceFilterEnum.optional(),
|
|
22278
22415
|
/**
|
|
22279
|
-
*
|
|
22280
|
-
*
|
|
22416
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22417
|
+
* Absent means no lower bound.
|
|
22418
|
+
*/
|
|
22419
|
+
since: number().int().optional(),
|
|
22420
|
+
/**
|
|
22421
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22422
|
+
* Absent means no upper bound.
|
|
22423
|
+
*/
|
|
22424
|
+
until: number().int().optional(),
|
|
22425
|
+
/**
|
|
22426
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22427
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22428
|
+
* that does not ask.
|
|
22281
22429
|
*
|
|
22282
|
-
*
|
|
22283
|
-
*
|
|
22284
|
-
* the browser cache the images.
|
|
22430
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
22431
|
+
* does under `'suggestionConfidence'`.
|
|
22285
22432
|
*
|
|
22286
|
-
*
|
|
22287
|
-
*
|
|
22288
|
-
*
|
|
22289
|
-
*
|
|
22290
|
-
*
|
|
22291
|
-
|
|
22433
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
22434
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
22435
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
22436
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
22437
|
+
* with {@link since} / {@link until}.
|
|
22438
|
+
*/
|
|
22439
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
22440
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
22441
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
22442
|
+
/**
|
|
22443
|
+
* Inline the base64 crop on every row.
|
|
22444
|
+
*
|
|
22445
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
22446
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
22447
|
+
* this for every gallery, and which records why the inline shape had
|
|
22448
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
22449
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
22450
|
+
* that describes the old design reads as permission to rely on it.
|
|
22451
|
+
*
|
|
22452
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
22453
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
22454
|
+
* cached and ETagged.
|
|
22292
22455
|
*/
|
|
22293
22456
|
includeCrops: boolean().optional()
|
|
22294
22457
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22324,13 +22487,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22324
22487
|
}), method(object({
|
|
22325
22488
|
threshold: number().min(0).max(1).optional(),
|
|
22326
22489
|
minClusterSize: number().int().min(2).optional(),
|
|
22327
|
-
|
|
22328
|
-
|
|
22329
|
-
|
|
22330
|
-
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
22490
|
+
/**
|
|
22491
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
22492
|
+
* which read as though it bounded the work — it never did.
|
|
22493
|
+
*
|
|
22494
|
+
* Wins over {@link limit} when both are sent.
|
|
22495
|
+
*/
|
|
22496
|
+
maxClusters: number().int().positive().optional(),
|
|
22497
|
+
/**
|
|
22498
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
22499
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
22500
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
22501
|
+
*/
|
|
22502
|
+
limit: number().int().positive().optional(),
|
|
22503
|
+
/**
|
|
22504
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
22505
|
+
* POOL, not the result.
|
|
22506
|
+
*
|
|
22507
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
22508
|
+
* used to read every unassigned face on the hub no matter what the
|
|
22509
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
22510
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
22511
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
22512
|
+
*
|
|
22513
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
22514
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
22515
|
+
* sample it randomly.
|
|
22516
|
+
*
|
|
22517
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
22518
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
22519
|
+
* unbounded scan can never come back as the table grows.
|
|
22520
|
+
*/
|
|
22521
|
+
maxFacesScanned: number().int().positive().optional()
|
|
22522
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22334
22523
|
/**
|
|
22335
22524
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22336
22525
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25130,6 +25319,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
25130
25319
|
/** Media ms the returned fragment covers. */
|
|
25131
25320
|
gopDurMs: number()
|
|
25132
25321
|
});
|
|
25322
|
+
/**
|
|
25323
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
25324
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
25325
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
25326
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
25327
|
+
*
|
|
25328
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
25329
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
25330
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
25331
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
25332
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
25333
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
25334
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
25335
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
25336
|
+
* bytes nothing has proven decodable.
|
|
25337
|
+
*/
|
|
25338
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
25339
|
+
kind: literal("ok"),
|
|
25340
|
+
data: _instanceof(Uint8Array),
|
|
25341
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
25342
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
25343
|
+
gopStartMs: number(),
|
|
25344
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
25345
|
+
gopDurMs: number(),
|
|
25346
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
25347
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
25348
|
+
reachesRequestedEnd: boolean()
|
|
25349
|
+
}), object({
|
|
25350
|
+
kind: literal("spans-multiple-segments"),
|
|
25351
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
25352
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
25353
|
+
segmentEndMs: number()
|
|
25354
|
+
})]);
|
|
25133
25355
|
method(object({
|
|
25134
25356
|
deviceId: number(),
|
|
25135
25357
|
fromMs: number(),
|
|
@@ -25180,6 +25402,15 @@ method(object({
|
|
|
25180
25402
|
}), ReadGopBytesResultSchema, {
|
|
25181
25403
|
kind: "query",
|
|
25182
25404
|
auth: "admin"
|
|
25405
|
+
}), method(object({
|
|
25406
|
+
deviceId: number(),
|
|
25407
|
+
profile: string(),
|
|
25408
|
+
startMs: number(),
|
|
25409
|
+
fromMs: number(),
|
|
25410
|
+
toMs: number()
|
|
25411
|
+
}), ReadWindowBytesResultSchema, {
|
|
25412
|
+
kind: "query",
|
|
25413
|
+
auth: "admin"
|
|
25183
25414
|
}), method(object({
|
|
25184
25415
|
deviceId: number(),
|
|
25185
25416
|
config: RecordingConfigSchema
|
|
@@ -26011,6 +26242,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
26011
26242
|
latitude: number().min(-90).max(90),
|
|
26012
26243
|
longitude: number().min(-180).max(180)
|
|
26013
26244
|
}).nullable();
|
|
26245
|
+
/**
|
|
26246
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26247
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26248
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26249
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26250
|
+
*/
|
|
26251
|
+
var RequestCensusGroupSchema = object({
|
|
26252
|
+
procedure: string(),
|
|
26253
|
+
userAgent: string(),
|
|
26254
|
+
ip: string(),
|
|
26255
|
+
principal: string(),
|
|
26256
|
+
calls: number(),
|
|
26257
|
+
perMin: number()
|
|
26258
|
+
});
|
|
26259
|
+
/**
|
|
26260
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26261
|
+
*
|
|
26262
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26263
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26264
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26265
|
+
*/
|
|
26266
|
+
var RequestCensusProcedureSchema = object({
|
|
26267
|
+
procedure: string(),
|
|
26268
|
+
calls: number(),
|
|
26269
|
+
perMin: number()
|
|
26270
|
+
});
|
|
26271
|
+
/**
|
|
26272
|
+
* The census as an operator sees it.
|
|
26273
|
+
*
|
|
26274
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26275
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26276
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26277
|
+
* like one that succeeded.
|
|
26278
|
+
*/
|
|
26279
|
+
var RequestCensusStatusSchema = object({
|
|
26280
|
+
armed: boolean(),
|
|
26281
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26282
|
+
elapsedMs: number(),
|
|
26283
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26284
|
+
windowMs: number(),
|
|
26285
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26286
|
+
armedUntilMs: number(),
|
|
26287
|
+
httpRequests: number(),
|
|
26288
|
+
batchedRequests: number(),
|
|
26289
|
+
/**
|
|
26290
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26291
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26292
|
+
* the number comparable with a store-side call count.
|
|
26293
|
+
*/
|
|
26294
|
+
procedureCalls: number(),
|
|
26295
|
+
/**
|
|
26296
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26297
|
+
* transport resolves one context per connection - but the number that says
|
|
26298
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26299
|
+
*/
|
|
26300
|
+
wsConnections: number(),
|
|
26301
|
+
distinctGroups: number(),
|
|
26302
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26303
|
+
* cardinality bound. */
|
|
26304
|
+
unattributedCalls: number(),
|
|
26305
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26306
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26307
|
+
}).extend({ persisted: boolean() });
|
|
26308
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26309
|
+
var LogLevelSchema$1 = _enum([
|
|
26310
|
+
"debug",
|
|
26311
|
+
"info",
|
|
26312
|
+
"warn",
|
|
26313
|
+
"error"
|
|
26314
|
+
]);
|
|
26315
|
+
/**
|
|
26316
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26317
|
+
*
|
|
26318
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26319
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26320
|
+
*/
|
|
26321
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26322
|
+
/**
|
|
26323
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26324
|
+
* layer that carries an explicit value wins.
|
|
26325
|
+
*
|
|
26326
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26327
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26328
|
+
* grow later would force every consumer of this document to change with it.
|
|
26329
|
+
* Nothing returns `component` today.
|
|
26330
|
+
*/
|
|
26331
|
+
var LoggingScopeKindSchema = _enum([
|
|
26332
|
+
"cluster",
|
|
26333
|
+
"node",
|
|
26334
|
+
"component"
|
|
26335
|
+
]);
|
|
26336
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26337
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26338
|
+
"default",
|
|
26339
|
+
"cluster",
|
|
26340
|
+
"node",
|
|
26341
|
+
"component"
|
|
26342
|
+
]);
|
|
26343
|
+
/**
|
|
26344
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26345
|
+
*
|
|
26346
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26347
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26348
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26349
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26350
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26351
|
+
*/
|
|
26352
|
+
var LoggingLevelLayerSchema = object({
|
|
26353
|
+
scope: LoggingScopeKindSchema,
|
|
26354
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26355
|
+
nodeId: string().nullable(),
|
|
26356
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26357
|
+
level: LogLevelSchema$1.nullable()
|
|
26358
|
+
});
|
|
26359
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26360
|
+
var LoggingEffectiveSchema = object({
|
|
26361
|
+
level: LogLevelSchema$1,
|
|
26362
|
+
levelSource: LoggingLevelSourceSchema
|
|
26363
|
+
});
|
|
26364
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26365
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26366
|
+
/**
|
|
26367
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26368
|
+
*
|
|
26369
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26370
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26371
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26372
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26373
|
+
*/
|
|
26374
|
+
var DiagnosticWindowSchema = object({
|
|
26375
|
+
id: DiagnosticIdSchema,
|
|
26376
|
+
armed: boolean(),
|
|
26377
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26378
|
+
armedUntilMs: number(),
|
|
26379
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26380
|
+
remainingMs: number(),
|
|
26381
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26382
|
+
* i.e. whether this window would survive a restart. */
|
|
26383
|
+
persisted: boolean()
|
|
26384
|
+
});
|
|
26385
|
+
/**
|
|
26386
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26387
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26388
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26389
|
+
*/
|
|
26390
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26391
|
+
id: DiagnosticIdSchema,
|
|
26392
|
+
armMs: number().int().min(0),
|
|
26393
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26394
|
+
reportEveryMs: number().int().positive().optional()
|
|
26395
|
+
});
|
|
26396
|
+
/**
|
|
26397
|
+
* A PATCH, and patches MERGE.
|
|
26398
|
+
*
|
|
26399
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26400
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26401
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26402
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26403
|
+
* turns into an erased one.
|
|
26404
|
+
*/
|
|
26405
|
+
var LoggingSettingsPatchSchema = object({
|
|
26406
|
+
/**
|
|
26407
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26408
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26409
|
+
*/
|
|
26410
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26411
|
+
/**
|
|
26412
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26413
|
+
* keeps running — a patch is never a full replacement.
|
|
26414
|
+
*/
|
|
26415
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26416
|
+
});
|
|
26417
|
+
/**
|
|
26418
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26419
|
+
*
|
|
26420
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26421
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26422
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26423
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26424
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26425
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26426
|
+
* layer selector needs a name the transport does not already own.
|
|
26427
|
+
*/
|
|
26428
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26429
|
+
var SetLoggingSettingsInputSchema = object({
|
|
26430
|
+
scopeNodeId: string().optional(),
|
|
26431
|
+
patch: LoggingSettingsPatchSchema
|
|
26432
|
+
});
|
|
26433
|
+
/**
|
|
26434
|
+
* The whole document, as read and as returned after every write.
|
|
26435
|
+
*
|
|
26436
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
26437
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
26438
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
26439
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
26440
|
+
* survive a restart.
|
|
26441
|
+
*/
|
|
26442
|
+
var LoggingSettingsStateSchema = object({
|
|
26443
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
26444
|
+
scopeNodeId: string().nullable(),
|
|
26445
|
+
effective: LoggingEffectiveSchema,
|
|
26446
|
+
explicit: LoggingExplicitSchema,
|
|
26447
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
26448
|
+
persisted: boolean()
|
|
26449
|
+
});
|
|
26014
26450
|
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(), {
|
|
26015
26451
|
kind: "mutation",
|
|
26016
26452
|
auth: "admin"
|
|
@@ -26023,6 +26459,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26023
26459
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26024
26460
|
kind: "mutation",
|
|
26025
26461
|
auth: "admin"
|
|
26462
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26463
|
+
kind: "mutation",
|
|
26464
|
+
auth: "admin"
|
|
26026
26465
|
});
|
|
26027
26466
|
object({
|
|
26028
26467
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -29598,6 +30037,12 @@ Object.freeze({
|
|
|
29598
30037
|
addonId: null,
|
|
29599
30038
|
access: "view"
|
|
29600
30039
|
},
|
|
30040
|
+
"notificationRules.resolveArtifactUrl": {
|
|
30041
|
+
capName: "notification-rules",
|
|
30042
|
+
capScope: "system",
|
|
30043
|
+
addonId: null,
|
|
30044
|
+
access: "view"
|
|
30045
|
+
},
|
|
29601
30046
|
"notificationRules.setAlarmConfig": {
|
|
29602
30047
|
capName: "notification-rules",
|
|
29603
30048
|
capScope: "system",
|
|
@@ -31002,6 +31447,12 @@ Object.freeze({
|
|
|
31002
31447
|
addonId: null,
|
|
31003
31448
|
access: "view"
|
|
31004
31449
|
},
|
|
31450
|
+
"recording.readWindowBytes": {
|
|
31451
|
+
capName: "recording",
|
|
31452
|
+
capScope: "system",
|
|
31453
|
+
addonId: null,
|
|
31454
|
+
access: "view"
|
|
31455
|
+
},
|
|
31005
31456
|
"recording.refreshStorageLocationsForMigration": {
|
|
31006
31457
|
capName: "recording",
|
|
31007
31458
|
capScope: "system",
|
|
@@ -31842,6 +32293,18 @@ Object.freeze({
|
|
|
31842
32293
|
addonId: null,
|
|
31843
32294
|
access: "create"
|
|
31844
32295
|
},
|
|
32296
|
+
"system.getLoggingSettings": {
|
|
32297
|
+
capName: "system",
|
|
32298
|
+
capScope: "system",
|
|
32299
|
+
addonId: null,
|
|
32300
|
+
access: "view"
|
|
32301
|
+
},
|
|
32302
|
+
"system.getRequestCensus": {
|
|
32303
|
+
capName: "system",
|
|
32304
|
+
capScope: "system",
|
|
32305
|
+
addonId: null,
|
|
32306
|
+
access: "view"
|
|
32307
|
+
},
|
|
31845
32308
|
"system.getRetentionConfig": {
|
|
31846
32309
|
capName: "system",
|
|
31847
32310
|
capScope: "system",
|
|
@@ -31872,6 +32335,12 @@ Object.freeze({
|
|
|
31872
32335
|
addonId: null,
|
|
31873
32336
|
access: "view"
|
|
31874
32337
|
},
|
|
32338
|
+
"system.setLoggingSettings": {
|
|
32339
|
+
capName: "system",
|
|
32340
|
+
capScope: "system",
|
|
32341
|
+
addonId: null,
|
|
32342
|
+
access: "create"
|
|
32343
|
+
},
|
|
31875
32344
|
"system.setRetentionConfig": {
|
|
31876
32345
|
capName: "system",
|
|
31877
32346
|
capScope: "system",
|
|
@@ -33027,6 +33496,10 @@ Object.freeze({
|
|
|
33027
33496
|
name: "deviceId",
|
|
33028
33497
|
form: "single",
|
|
33029
33498
|
optional: true
|
|
33499
|
+
}, {
|
|
33500
|
+
name: "deviceIds",
|
|
33501
|
+
form: "array",
|
|
33502
|
+
optional: true
|
|
33030
33503
|
}],
|
|
33031
33504
|
"fanControl.setDirection": [{
|
|
33032
33505
|
name: "deviceId",
|
|
@@ -33832,6 +34305,11 @@ Object.freeze({
|
|
|
33832
34305
|
form: "single",
|
|
33833
34306
|
optional: false
|
|
33834
34307
|
}],
|
|
34308
|
+
"recording.readWindowBytes": [{
|
|
34309
|
+
name: "deviceId",
|
|
34310
|
+
form: "single",
|
|
34311
|
+
optional: false
|
|
34312
|
+
}],
|
|
33835
34313
|
"recording.relocateFootage": [{
|
|
33836
34314
|
name: "deviceId",
|
|
33837
34315
|
form: "single",
|
|
@@ -34632,7 +35110,38 @@ object({
|
|
|
34632
35110
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34633
35111
|
* reproduce that.
|
|
34634
35112
|
*/
|
|
34635
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35113
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35114
|
+
/**
|
|
35115
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35116
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35117
|
+
* subject tiles, on frames that detected something.
|
|
35118
|
+
*
|
|
35119
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35120
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35121
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35122
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35123
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35124
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35125
|
+
*
|
|
35126
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35127
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35128
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35129
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35130
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35131
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35132
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35133
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35134
|
+
* whole shape exists to avoid.
|
|
35135
|
+
*
|
|
35136
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35137
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35138
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35139
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35140
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35141
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35142
|
+
* nothing.
|
|
35143
|
+
*/
|
|
35144
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
34636
35145
|
});
|
|
34637
35146
|
/**
|
|
34638
35147
|
* The values in force when the operator has set nothing.
|
|
@@ -34648,12 +35157,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
34648
35157
|
budgetMb: 1024,
|
|
34649
35158
|
activityMs: 15e3,
|
|
34650
35159
|
tileBudgetMb: 64,
|
|
35160
|
+
sceneBudgetMb: 48,
|
|
34651
35161
|
admission: "inferred"
|
|
34652
35162
|
};
|
|
34653
35163
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34654
35164
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34655
35165
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34656
35166
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35167
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
34657
35168
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34658
35169
|
var MB = 1024 * 1024;
|
|
34659
35170
|
1024 * MB, 3072 * MB;
|