@camstack/addon-provider-dreo 0.2.30 → 0.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/addon.js +572 -61
- package/dist/addon.mjs +572 -61
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -7563,6 +7563,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7563
7563
|
/** Max rows returned, newest-first. */
|
|
7564
7564
|
limit: number().int().min(1).max(1e3).optional()
|
|
7565
7565
|
});
|
|
7566
|
+
var LabelDefinitionSchema = object({
|
|
7567
|
+
id: string(),
|
|
7568
|
+
name: string(),
|
|
7569
|
+
category: string().optional(),
|
|
7570
|
+
description: string().optional(),
|
|
7571
|
+
icon: string().optional()
|
|
7572
|
+
});
|
|
7573
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7574
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7575
|
+
"person",
|
|
7576
|
+
"vehicle",
|
|
7577
|
+
"animal",
|
|
7578
|
+
"package"
|
|
7579
|
+
];
|
|
7580
|
+
/**
|
|
7581
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7582
|
+
* un operatore può selezionare.
|
|
7583
|
+
*
|
|
7584
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7585
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7586
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7587
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7588
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7589
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7590
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7591
|
+
*
|
|
7592
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7593
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7594
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7595
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7596
|
+
* successiva.
|
|
7597
|
+
*/
|
|
7598
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7599
|
+
"person",
|
|
7600
|
+
"vehicle",
|
|
7601
|
+
"animal"
|
|
7602
|
+
];
|
|
7603
|
+
/**
|
|
7604
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7605
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7606
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7607
|
+
* detection pipeline executor actually routes.
|
|
7608
|
+
*
|
|
7609
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7610
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7611
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7612
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7613
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7614
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7615
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7616
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7617
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7618
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7619
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7620
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7621
|
+
*/
|
|
7622
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7623
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7624
|
+
preserveOriginal: boolean()
|
|
7625
|
+
});
|
|
7566
7626
|
/**
|
|
7567
7627
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7568
7628
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7585,10 +7645,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7585
7645
|
"events",
|
|
7586
7646
|
"continuous"
|
|
7587
7647
|
]);
|
|
7648
|
+
/**
|
|
7649
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7650
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7651
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7652
|
+
*/
|
|
7653
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7654
|
+
/**
|
|
7655
|
+
* True quando `values` non ripete un elemento.
|
|
7656
|
+
*
|
|
7657
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7658
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7659
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7660
|
+
*/
|
|
7661
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7588
7662
|
/** Which detectors trigger an `events`-mode band. */
|
|
7589
7663
|
var RecordingTriggersSchema = object({
|
|
7590
7664
|
motion: boolean().optional(),
|
|
7591
|
-
audioThresholdDbfs: number().optional()
|
|
7665
|
+
audioThresholdDbfs: number().optional(),
|
|
7666
|
+
/**
|
|
7667
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7668
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7669
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7670
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7671
|
+
*
|
|
7672
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7673
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7674
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7675
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7676
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7677
|
+
*/
|
|
7678
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7679
|
+
/**
|
|
7680
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7681
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7682
|
+
* `objectClasses`.
|
|
7683
|
+
*
|
|
7684
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7685
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7686
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7687
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7688
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7689
|
+
*
|
|
7690
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7691
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7692
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7693
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7694
|
+
* registrare.
|
|
7695
|
+
*/
|
|
7696
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7592
7697
|
});
|
|
7593
7698
|
/**
|
|
7594
7699
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8040,41 +8145,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8040
8145
|
*/
|
|
8041
8146
|
debug: boolean().optional()
|
|
8042
8147
|
});
|
|
8043
|
-
var LabelDefinitionSchema = object({
|
|
8044
|
-
id: string(),
|
|
8045
|
-
name: string(),
|
|
8046
|
-
category: string().optional(),
|
|
8047
|
-
description: string().optional(),
|
|
8048
|
-
icon: string().optional()
|
|
8049
|
-
});
|
|
8050
|
-
/**
|
|
8051
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8052
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8053
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8054
|
-
* detection pipeline executor actually routes.
|
|
8055
|
-
*
|
|
8056
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8057
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8058
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8059
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8060
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8061
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8062
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8063
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8064
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8065
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8066
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8067
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8068
|
-
*/
|
|
8069
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8070
|
-
mapping: record(string(), _enum([
|
|
8071
|
-
"person",
|
|
8072
|
-
"vehicle",
|
|
8073
|
-
"animal",
|
|
8074
|
-
"package"
|
|
8075
|
-
])),
|
|
8076
|
-
preserveOriginal: boolean()
|
|
8077
|
-
});
|
|
8078
8148
|
var MODEL_FORMATS = [
|
|
8079
8149
|
"onnx",
|
|
8080
8150
|
"coreml",
|
|
@@ -15836,7 +15906,23 @@ var NcHistoryEntrySchema = object({
|
|
|
15836
15906
|
updatedAt: number(),
|
|
15837
15907
|
/** Failure detail — present on a `dead` row. */
|
|
15838
15908
|
error: string().optional(),
|
|
15839
|
-
subject: NcHistorySubjectSchema
|
|
15909
|
+
subject: NcHistorySubjectSchema,
|
|
15910
|
+
/**
|
|
15911
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
15912
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
15913
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
15914
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
15915
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
15916
|
+
*
|
|
15917
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
15918
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
15919
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
15920
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
15921
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
15922
|
+
* Assistant export) must render as "no image right now", never as a
|
|
15923
|
+
* broken link.
|
|
15924
|
+
*/
|
|
15925
|
+
artifactIds: array(string().min(1)).optional()
|
|
15840
15926
|
});
|
|
15841
15927
|
/**
|
|
15842
15928
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -16063,7 +16149,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
16063
16149
|
}), method(object({}), object({
|
|
16064
16150
|
catalog: array(NcConditionDescriptorSchema),
|
|
16065
16151
|
taxonomy: NcTaxonomySchema.optional()
|
|
16066
|
-
})), 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 }), {
|
|
16152
|
+
})), 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 }), {
|
|
16067
16153
|
kind: "mutation",
|
|
16068
16154
|
caller: "required"
|
|
16069
16155
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -21191,7 +21277,7 @@ var lifecycleJobSchema = object({
|
|
|
21191
21277
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21192
21278
|
* as every other cap.
|
|
21193
21279
|
*/
|
|
21194
|
-
var LogLevelSchema$
|
|
21280
|
+
var LogLevelSchema$2 = _enum([
|
|
21195
21281
|
"debug",
|
|
21196
21282
|
"info",
|
|
21197
21283
|
"warn",
|
|
@@ -21398,7 +21484,7 @@ var CustomActionInputSchema = object({
|
|
|
21398
21484
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21399
21485
|
addonId: string(),
|
|
21400
21486
|
limit: number().min(1).max(500).default(100),
|
|
21401
|
-
level: LogLevelSchema$
|
|
21487
|
+
level: LogLevelSchema$2.optional()
|
|
21402
21488
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21403
21489
|
packageName: string(),
|
|
21404
21490
|
version: string().optional()
|
|
@@ -21496,7 +21582,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21496
21582
|
auth: "admin"
|
|
21497
21583
|
}), method(object({
|
|
21498
21584
|
addonId: string(),
|
|
21499
|
-
level: LogLevelSchema$
|
|
21585
|
+
level: LogLevelSchema$2.optional()
|
|
21500
21586
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21501
21587
|
/**
|
|
21502
21588
|
* Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
|
|
@@ -23228,6 +23314,35 @@ var FaceFilterEnum = _enum([
|
|
|
23228
23314
|
"identified",
|
|
23229
23315
|
"all"
|
|
23230
23316
|
]);
|
|
23317
|
+
/**
|
|
23318
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
23319
|
+
*
|
|
23320
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
23321
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
23322
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
23323
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
23324
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
23325
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
23326
|
+
*
|
|
23327
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
23328
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
23329
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
23330
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
23331
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
23332
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
23333
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
23334
|
+
* backend's NULL-collation accident.
|
|
23335
|
+
*/
|
|
23336
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
23337
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
23338
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
23339
|
+
* never leaves the server. */
|
|
23340
|
+
var FaceClusterSchema = object({
|
|
23341
|
+
faceIds: array(string()).readonly(),
|
|
23342
|
+
representativeFaceId: string(),
|
|
23343
|
+
size: number().int(),
|
|
23344
|
+
cohesion: number()
|
|
23345
|
+
});
|
|
23231
23346
|
var MediaFileLiteSchema$1 = object({
|
|
23232
23347
|
key: string(),
|
|
23233
23348
|
kind: string(),
|
|
@@ -23274,24 +23389,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23274
23389
|
kind: "mutation",
|
|
23275
23390
|
auth: "admin"
|
|
23276
23391
|
}), method(object({
|
|
23277
|
-
/**
|
|
23392
|
+
/**
|
|
23393
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
23394
|
+
*
|
|
23395
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
23396
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
23397
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
23398
|
+
* present, and this field is then ignored rather than unioned, so
|
|
23399
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
23400
|
+
*/
|
|
23278
23401
|
deviceId: number().int().optional(),
|
|
23402
|
+
/**
|
|
23403
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
23404
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
23405
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
23406
|
+
* about to discard).
|
|
23407
|
+
*
|
|
23408
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
23409
|
+
* "every camera". A request for no devices is a request, not an
|
|
23410
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
23411
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
23412
|
+
*
|
|
23413
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
23414
|
+
*/
|
|
23415
|
+
deviceIds: array(number().int()).optional(),
|
|
23279
23416
|
limit: number().int().positive().optional(),
|
|
23280
23417
|
filter: FaceFilterEnum.optional(),
|
|
23281
23418
|
/**
|
|
23282
|
-
*
|
|
23283
|
-
*
|
|
23419
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23420
|
+
* Absent means no lower bound.
|
|
23421
|
+
*/
|
|
23422
|
+
since: number().int().optional(),
|
|
23423
|
+
/**
|
|
23424
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23425
|
+
* Absent means no upper bound.
|
|
23426
|
+
*/
|
|
23427
|
+
until: number().int().optional(),
|
|
23428
|
+
/**
|
|
23429
|
+
* Order the page by time or by suggestion certainty. Default
|
|
23430
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
23431
|
+
* that does not ask.
|
|
23284
23432
|
*
|
|
23285
|
-
*
|
|
23286
|
-
*
|
|
23287
|
-
* the browser cache the images.
|
|
23433
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23434
|
+
* does under `'suggestionConfidence'`.
|
|
23288
23435
|
*
|
|
23289
|
-
*
|
|
23290
|
-
*
|
|
23291
|
-
*
|
|
23292
|
-
*
|
|
23293
|
-
*
|
|
23294
|
-
|
|
23436
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
23437
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
23438
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
23439
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
23440
|
+
* with {@link since} / {@link until}.
|
|
23441
|
+
*/
|
|
23442
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
23443
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
23444
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
23445
|
+
/**
|
|
23446
|
+
* Inline the base64 crop on every row.
|
|
23447
|
+
*
|
|
23448
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
23449
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
23450
|
+
* this for every gallery, and which records why the inline shape had
|
|
23451
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
23452
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
23453
|
+
* that describes the old design reads as permission to rely on it.
|
|
23454
|
+
*
|
|
23455
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
23456
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
23457
|
+
* cached and ETagged.
|
|
23295
23458
|
*/
|
|
23296
23459
|
includeCrops: boolean().optional()
|
|
23297
23460
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -23327,13 +23490,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23327
23490
|
}), method(object({
|
|
23328
23491
|
threshold: number().min(0).max(1).optional(),
|
|
23329
23492
|
minClusterSize: number().int().min(2).optional(),
|
|
23330
|
-
|
|
23331
|
-
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
|
|
23336
|
-
|
|
23493
|
+
/**
|
|
23494
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
23495
|
+
* which read as though it bounded the work — it never did.
|
|
23496
|
+
*
|
|
23497
|
+
* Wins over {@link limit} when both are sent.
|
|
23498
|
+
*/
|
|
23499
|
+
maxClusters: number().int().positive().optional(),
|
|
23500
|
+
/**
|
|
23501
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
23502
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
23503
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
23504
|
+
*/
|
|
23505
|
+
limit: number().int().positive().optional(),
|
|
23506
|
+
/**
|
|
23507
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
23508
|
+
* POOL, not the result.
|
|
23509
|
+
*
|
|
23510
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
23511
|
+
* used to read every unassigned face on the hub no matter what the
|
|
23512
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
23513
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
23514
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
23515
|
+
*
|
|
23516
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
23517
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
23518
|
+
* sample it randomly.
|
|
23519
|
+
*
|
|
23520
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
23521
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
23522
|
+
* unbounded scan can never come back as the table grows.
|
|
23523
|
+
*/
|
|
23524
|
+
maxFacesScanned: number().int().positive().optional()
|
|
23525
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
23337
23526
|
/**
|
|
23338
23527
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
23339
23528
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -27091,6 +27280,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
27091
27280
|
/** Media ms the returned fragment covers. */
|
|
27092
27281
|
gopDurMs: number()
|
|
27093
27282
|
});
|
|
27283
|
+
/**
|
|
27284
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
27285
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
27286
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
27287
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
27288
|
+
*
|
|
27289
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
27290
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
27291
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
27292
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
27293
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
27294
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
27295
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
27296
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
27297
|
+
* bytes nothing has proven decodable.
|
|
27298
|
+
*/
|
|
27299
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
27300
|
+
kind: literal("ok"),
|
|
27301
|
+
data: _instanceof(Uint8Array),
|
|
27302
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
27303
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
27304
|
+
gopStartMs: number(),
|
|
27305
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
27306
|
+
gopDurMs: number(),
|
|
27307
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
27308
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
27309
|
+
reachesRequestedEnd: boolean()
|
|
27310
|
+
}), object({
|
|
27311
|
+
kind: literal("spans-multiple-segments"),
|
|
27312
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
27313
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
27314
|
+
segmentEndMs: number()
|
|
27315
|
+
})]);
|
|
27094
27316
|
method(object({
|
|
27095
27317
|
deviceId: number(),
|
|
27096
27318
|
fromMs: number(),
|
|
@@ -27141,6 +27363,15 @@ method(object({
|
|
|
27141
27363
|
}), ReadGopBytesResultSchema, {
|
|
27142
27364
|
kind: "query",
|
|
27143
27365
|
auth: "admin"
|
|
27366
|
+
}), method(object({
|
|
27367
|
+
deviceId: number(),
|
|
27368
|
+
profile: string(),
|
|
27369
|
+
startMs: number(),
|
|
27370
|
+
fromMs: number(),
|
|
27371
|
+
toMs: number()
|
|
27372
|
+
}), ReadWindowBytesResultSchema, {
|
|
27373
|
+
kind: "query",
|
|
27374
|
+
auth: "admin"
|
|
27144
27375
|
}), method(object({
|
|
27145
27376
|
deviceId: number(),
|
|
27146
27377
|
config: RecordingConfigSchema
|
|
@@ -28233,6 +28464,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
28233
28464
|
latitude: number().min(-90).max(90),
|
|
28234
28465
|
longitude: number().min(-180).max(180)
|
|
28235
28466
|
}).nullable();
|
|
28467
|
+
/**
|
|
28468
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
28469
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
28470
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
28471
|
+
* already prints - never a token, never an `Authorization` header.
|
|
28472
|
+
*/
|
|
28473
|
+
var RequestCensusGroupSchema = object({
|
|
28474
|
+
procedure: string(),
|
|
28475
|
+
userAgent: string(),
|
|
28476
|
+
ip: string(),
|
|
28477
|
+
principal: string(),
|
|
28478
|
+
calls: number(),
|
|
28479
|
+
perMin: number()
|
|
28480
|
+
});
|
|
28481
|
+
/**
|
|
28482
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
28483
|
+
*
|
|
28484
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
28485
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
28486
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
28487
|
+
*/
|
|
28488
|
+
var RequestCensusProcedureSchema = object({
|
|
28489
|
+
procedure: string(),
|
|
28490
|
+
calls: number(),
|
|
28491
|
+
perMin: number()
|
|
28492
|
+
});
|
|
28493
|
+
/**
|
|
28494
|
+
* The census as an operator sees it.
|
|
28495
|
+
*
|
|
28496
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
28497
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
28498
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
28499
|
+
* like one that succeeded.
|
|
28500
|
+
*/
|
|
28501
|
+
var RequestCensusStatusSchema = object({
|
|
28502
|
+
armed: boolean(),
|
|
28503
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
28504
|
+
elapsedMs: number(),
|
|
28505
|
+
/** The window actually armed, after the server clamped the request. */
|
|
28506
|
+
windowMs: number(),
|
|
28507
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28508
|
+
armedUntilMs: number(),
|
|
28509
|
+
httpRequests: number(),
|
|
28510
|
+
batchedRequests: number(),
|
|
28511
|
+
/**
|
|
28512
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
28513
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
28514
|
+
* the number comparable with a store-side call count.
|
|
28515
|
+
*/
|
|
28516
|
+
procedureCalls: number(),
|
|
28517
|
+
/**
|
|
28518
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
28519
|
+
* transport resolves one context per connection - but the number that says
|
|
28520
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
28521
|
+
*/
|
|
28522
|
+
wsConnections: number(),
|
|
28523
|
+
distinctGroups: number(),
|
|
28524
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
28525
|
+
* cardinality bound. */
|
|
28526
|
+
unattributedCalls: number(),
|
|
28527
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
28528
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
28529
|
+
}).extend({ persisted: boolean() });
|
|
28530
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
28531
|
+
var LogLevelSchema$1 = _enum([
|
|
28532
|
+
"debug",
|
|
28533
|
+
"info",
|
|
28534
|
+
"warn",
|
|
28535
|
+
"error"
|
|
28536
|
+
]);
|
|
28537
|
+
/**
|
|
28538
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
28539
|
+
*
|
|
28540
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
28541
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
28542
|
+
*/
|
|
28543
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
28544
|
+
/**
|
|
28545
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
28546
|
+
* layer that carries an explicit value wins.
|
|
28547
|
+
*
|
|
28548
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
28549
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
28550
|
+
* grow later would force every consumer of this document to change with it.
|
|
28551
|
+
* Nothing returns `component` today.
|
|
28552
|
+
*/
|
|
28553
|
+
var LoggingScopeKindSchema = _enum([
|
|
28554
|
+
"cluster",
|
|
28555
|
+
"node",
|
|
28556
|
+
"component"
|
|
28557
|
+
]);
|
|
28558
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
28559
|
+
var LoggingLevelSourceSchema = _enum([
|
|
28560
|
+
"default",
|
|
28561
|
+
"cluster",
|
|
28562
|
+
"node",
|
|
28563
|
+
"component"
|
|
28564
|
+
]);
|
|
28565
|
+
/**
|
|
28566
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
28567
|
+
*
|
|
28568
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
28569
|
+
* difference between "this node is at `info` because I decided it" and
|
|
28570
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
28571
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
28572
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
28573
|
+
*/
|
|
28574
|
+
var LoggingLevelLayerSchema = object({
|
|
28575
|
+
scope: LoggingScopeKindSchema,
|
|
28576
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
28577
|
+
nodeId: string().nullable(),
|
|
28578
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
28579
|
+
level: LogLevelSchema$1.nullable()
|
|
28580
|
+
});
|
|
28581
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
28582
|
+
var LoggingEffectiveSchema = object({
|
|
28583
|
+
level: LogLevelSchema$1,
|
|
28584
|
+
levelSource: LoggingLevelSourceSchema
|
|
28585
|
+
});
|
|
28586
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
28587
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
28588
|
+
/**
|
|
28589
|
+
* An armed diagnostic, with its DEADLINE.
|
|
28590
|
+
*
|
|
28591
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
28592
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
28593
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
28594
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
28595
|
+
*/
|
|
28596
|
+
var DiagnosticWindowSchema = object({
|
|
28597
|
+
id: DiagnosticIdSchema,
|
|
28598
|
+
armed: boolean(),
|
|
28599
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28600
|
+
armedUntilMs: number(),
|
|
28601
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
28602
|
+
remainingMs: number(),
|
|
28603
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
28604
|
+
* i.e. whether this window would survive a restart. */
|
|
28605
|
+
persisted: boolean()
|
|
28606
|
+
});
|
|
28607
|
+
/**
|
|
28608
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
28609
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
28610
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
28611
|
+
*/
|
|
28612
|
+
var DiagnosticWindowPatchSchema = object({
|
|
28613
|
+
id: DiagnosticIdSchema,
|
|
28614
|
+
armMs: number().int().min(0),
|
|
28615
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
28616
|
+
reportEveryMs: number().int().positive().optional()
|
|
28617
|
+
});
|
|
28618
|
+
/**
|
|
28619
|
+
* A PATCH, and patches MERGE.
|
|
28620
|
+
*
|
|
28621
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
28622
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
28623
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
28624
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
28625
|
+
* turns into an erased one.
|
|
28626
|
+
*/
|
|
28627
|
+
var LoggingSettingsPatchSchema = object({
|
|
28628
|
+
/**
|
|
28629
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
28630
|
+
* addressed scope so it inherits again. A value sets it.
|
|
28631
|
+
*/
|
|
28632
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
28633
|
+
/**
|
|
28634
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
28635
|
+
* keeps running — a patch is never a full replacement.
|
|
28636
|
+
*/
|
|
28637
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
28638
|
+
});
|
|
28639
|
+
/**
|
|
28640
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
28641
|
+
*
|
|
28642
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
28643
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
28644
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
28645
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
28646
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
28647
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
28648
|
+
* layer selector needs a name the transport does not already own.
|
|
28649
|
+
*/
|
|
28650
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
28651
|
+
var SetLoggingSettingsInputSchema = object({
|
|
28652
|
+
scopeNodeId: string().optional(),
|
|
28653
|
+
patch: LoggingSettingsPatchSchema
|
|
28654
|
+
});
|
|
28655
|
+
/**
|
|
28656
|
+
* The whole document, as read and as returned after every write.
|
|
28657
|
+
*
|
|
28658
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
28659
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
28660
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
28661
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
28662
|
+
* survive a restart.
|
|
28663
|
+
*/
|
|
28664
|
+
var LoggingSettingsStateSchema = object({
|
|
28665
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
28666
|
+
scopeNodeId: string().nullable(),
|
|
28667
|
+
effective: LoggingEffectiveSchema,
|
|
28668
|
+
explicit: LoggingExplicitSchema,
|
|
28669
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
28670
|
+
persisted: boolean()
|
|
28671
|
+
});
|
|
28236
28672
|
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(), {
|
|
28237
28673
|
kind: "mutation",
|
|
28238
28674
|
auth: "admin"
|
|
@@ -28245,6 +28681,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
28245
28681
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
28246
28682
|
kind: "mutation",
|
|
28247
28683
|
auth: "admin"
|
|
28684
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
28685
|
+
kind: "mutation",
|
|
28686
|
+
auth: "admin"
|
|
28248
28687
|
});
|
|
28249
28688
|
/**
|
|
28250
28689
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -33228,6 +33667,12 @@ Object.freeze({
|
|
|
33228
33667
|
addonId: null,
|
|
33229
33668
|
access: "view"
|
|
33230
33669
|
},
|
|
33670
|
+
"notificationRules.resolveArtifactUrl": {
|
|
33671
|
+
capName: "notification-rules",
|
|
33672
|
+
capScope: "system",
|
|
33673
|
+
addonId: null,
|
|
33674
|
+
access: "view"
|
|
33675
|
+
},
|
|
33231
33676
|
"notificationRules.setAlarmConfig": {
|
|
33232
33677
|
capName: "notification-rules",
|
|
33233
33678
|
capScope: "system",
|
|
@@ -34632,6 +35077,12 @@ Object.freeze({
|
|
|
34632
35077
|
addonId: null,
|
|
34633
35078
|
access: "view"
|
|
34634
35079
|
},
|
|
35080
|
+
"recording.readWindowBytes": {
|
|
35081
|
+
capName: "recording",
|
|
35082
|
+
capScope: "system",
|
|
35083
|
+
addonId: null,
|
|
35084
|
+
access: "view"
|
|
35085
|
+
},
|
|
34635
35086
|
"recording.refreshStorageLocationsForMigration": {
|
|
34636
35087
|
capName: "recording",
|
|
34637
35088
|
capScope: "system",
|
|
@@ -35472,6 +35923,18 @@ Object.freeze({
|
|
|
35472
35923
|
addonId: null,
|
|
35473
35924
|
access: "create"
|
|
35474
35925
|
},
|
|
35926
|
+
"system.getLoggingSettings": {
|
|
35927
|
+
capName: "system",
|
|
35928
|
+
capScope: "system",
|
|
35929
|
+
addonId: null,
|
|
35930
|
+
access: "view"
|
|
35931
|
+
},
|
|
35932
|
+
"system.getRequestCensus": {
|
|
35933
|
+
capName: "system",
|
|
35934
|
+
capScope: "system",
|
|
35935
|
+
addonId: null,
|
|
35936
|
+
access: "view"
|
|
35937
|
+
},
|
|
35475
35938
|
"system.getRetentionConfig": {
|
|
35476
35939
|
capName: "system",
|
|
35477
35940
|
capScope: "system",
|
|
@@ -35502,6 +35965,12 @@ Object.freeze({
|
|
|
35502
35965
|
addonId: null,
|
|
35503
35966
|
access: "view"
|
|
35504
35967
|
},
|
|
35968
|
+
"system.setLoggingSettings": {
|
|
35969
|
+
capName: "system",
|
|
35970
|
+
capScope: "system",
|
|
35971
|
+
addonId: null,
|
|
35972
|
+
access: "create"
|
|
35973
|
+
},
|
|
35505
35974
|
"system.setRetentionConfig": {
|
|
35506
35975
|
capName: "system",
|
|
35507
35976
|
capScope: "system",
|
|
@@ -36657,6 +37126,10 @@ Object.freeze({
|
|
|
36657
37126
|
name: "deviceId",
|
|
36658
37127
|
form: "single",
|
|
36659
37128
|
optional: true
|
|
37129
|
+
}, {
|
|
37130
|
+
name: "deviceIds",
|
|
37131
|
+
form: "array",
|
|
37132
|
+
optional: true
|
|
36660
37133
|
}],
|
|
36661
37134
|
"fanControl.setDirection": [{
|
|
36662
37135
|
name: "deviceId",
|
|
@@ -37462,6 +37935,11 @@ Object.freeze({
|
|
|
37462
37935
|
form: "single",
|
|
37463
37936
|
optional: false
|
|
37464
37937
|
}],
|
|
37938
|
+
"recording.readWindowBytes": [{
|
|
37939
|
+
name: "deviceId",
|
|
37940
|
+
form: "single",
|
|
37941
|
+
optional: false
|
|
37942
|
+
}],
|
|
37465
37943
|
"recording.relocateFootage": [{
|
|
37466
37944
|
name: "deviceId",
|
|
37467
37945
|
form: "single",
|
|
@@ -38262,7 +38740,38 @@ object({
|
|
|
38262
38740
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
38263
38741
|
* reproduce that.
|
|
38264
38742
|
*/
|
|
38265
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
38743
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
38744
|
+
/**
|
|
38745
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
38746
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
38747
|
+
* subject tiles, on frames that detected something.
|
|
38748
|
+
*
|
|
38749
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
38750
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
38751
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
38752
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
38753
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
38754
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
38755
|
+
*
|
|
38756
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
38757
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
38758
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
38759
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
38760
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
38761
|
+
* binds only through a detection burst, where it still covers well past the
|
|
38762
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
38763
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
38764
|
+
* whole shape exists to avoid.
|
|
38765
|
+
*
|
|
38766
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
38767
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
38768
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
38769
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
38770
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
38771
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
38772
|
+
* nothing.
|
|
38773
|
+
*/
|
|
38774
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
38266
38775
|
});
|
|
38267
38776
|
/**
|
|
38268
38777
|
* The values in force when the operator has set nothing.
|
|
@@ -38278,12 +38787,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
38278
38787
|
budgetMb: 1024,
|
|
38279
38788
|
activityMs: 15e3,
|
|
38280
38789
|
tileBudgetMb: 64,
|
|
38790
|
+
sceneBudgetMb: 48,
|
|
38281
38791
|
admission: "inferred"
|
|
38282
38792
|
};
|
|
38283
38793
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
38284
38794
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
38285
38795
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
38286
38796
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38797
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
38287
38798
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38288
38799
|
var MB = 1024 * 1024;
|
|
38289
38800
|
1024 * MB, 3072 * MB;
|