@camstack/addon-export-hap 1.2.41 → 1.2.43
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/hap-export.addon.js +572 -61
- package/dist/hap-export.addon.mjs +572 -61
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -8192,6 +8192,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
8192
8192
|
/** Max rows returned, newest-first. */
|
|
8193
8193
|
limit: number().int().min(1).max(1e3).optional()
|
|
8194
8194
|
});
|
|
8195
|
+
var LabelDefinitionSchema = object({
|
|
8196
|
+
id: string(),
|
|
8197
|
+
name: string(),
|
|
8198
|
+
category: string().optional(),
|
|
8199
|
+
description: string().optional(),
|
|
8200
|
+
icon: string().optional()
|
|
8201
|
+
});
|
|
8202
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
8203
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
8204
|
+
"person",
|
|
8205
|
+
"vehicle",
|
|
8206
|
+
"animal",
|
|
8207
|
+
"package"
|
|
8208
|
+
];
|
|
8209
|
+
/**
|
|
8210
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
8211
|
+
* un operatore può selezionare.
|
|
8212
|
+
*
|
|
8213
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
8214
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
8215
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
8216
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
8217
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
8218
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
8219
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
8220
|
+
*
|
|
8221
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
8222
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
8223
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
8224
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
8225
|
+
* successiva.
|
|
8226
|
+
*/
|
|
8227
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
8228
|
+
"person",
|
|
8229
|
+
"vehicle",
|
|
8230
|
+
"animal"
|
|
8231
|
+
];
|
|
8232
|
+
/**
|
|
8233
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8234
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8235
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8236
|
+
* detection pipeline executor actually routes.
|
|
8237
|
+
*
|
|
8238
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8239
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8240
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8241
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8242
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8243
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8244
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8245
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8246
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8247
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8248
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8249
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8250
|
+
*/
|
|
8251
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8252
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
8253
|
+
preserveOriginal: boolean()
|
|
8254
|
+
});
|
|
8195
8255
|
/**
|
|
8196
8256
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
8197
8257
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -8214,10 +8274,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
8214
8274
|
"events",
|
|
8215
8275
|
"continuous"
|
|
8216
8276
|
]);
|
|
8277
|
+
/**
|
|
8278
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
8279
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
8280
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
8281
|
+
*/
|
|
8282
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
8283
|
+
/**
|
|
8284
|
+
* True quando `values` non ripete un elemento.
|
|
8285
|
+
*
|
|
8286
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
8287
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
8288
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
8289
|
+
*/
|
|
8290
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
8217
8291
|
/** Which detectors trigger an `events`-mode band. */
|
|
8218
8292
|
var RecordingTriggersSchema = object({
|
|
8219
8293
|
motion: boolean().optional(),
|
|
8220
|
-
audioThresholdDbfs: number().optional()
|
|
8294
|
+
audioThresholdDbfs: number().optional(),
|
|
8295
|
+
/**
|
|
8296
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
8297
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
8298
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
8299
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
8300
|
+
*
|
|
8301
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
8302
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
8303
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
8304
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
8305
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
8306
|
+
*/
|
|
8307
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
8308
|
+
/**
|
|
8309
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
8310
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
8311
|
+
* `objectClasses`.
|
|
8312
|
+
*
|
|
8313
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
8314
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
8315
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
8316
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
8317
|
+
* device (D12) — mai un elenco globale di cap.
|
|
8318
|
+
*
|
|
8319
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
8320
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
8321
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
8322
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8323
|
+
* registrare.
|
|
8324
|
+
*/
|
|
8325
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8221
8326
|
});
|
|
8222
8327
|
/**
|
|
8223
8328
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8723,41 +8828,6 @@ function pickClosestResolution(entries, target) {
|
|
|
8723
8828
|
}
|
|
8724
8829
|
return bestAbove?.entry ?? bestBelow?.entry;
|
|
8725
8830
|
}
|
|
8726
|
-
var LabelDefinitionSchema = object({
|
|
8727
|
-
id: string(),
|
|
8728
|
-
name: string(),
|
|
8729
|
-
category: string().optional(),
|
|
8730
|
-
description: string().optional(),
|
|
8731
|
-
icon: string().optional()
|
|
8732
|
-
});
|
|
8733
|
-
/**
|
|
8734
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8735
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8736
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8737
|
-
* detection pipeline executor actually routes.
|
|
8738
|
-
*
|
|
8739
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8740
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8741
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8742
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8743
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8744
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8745
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8746
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8747
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8748
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8749
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8750
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8751
|
-
*/
|
|
8752
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8753
|
-
mapping: record(string(), _enum([
|
|
8754
|
-
"person",
|
|
8755
|
-
"vehicle",
|
|
8756
|
-
"animal",
|
|
8757
|
-
"package"
|
|
8758
|
-
])),
|
|
8759
|
-
preserveOriginal: boolean()
|
|
8760
|
-
});
|
|
8761
8831
|
var MODEL_FORMATS = [
|
|
8762
8832
|
"onnx",
|
|
8763
8833
|
"coreml",
|
|
@@ -16281,7 +16351,23 @@ var NcHistoryEntrySchema = object({
|
|
|
16281
16351
|
updatedAt: number(),
|
|
16282
16352
|
/** Failure detail — present on a `dead` row. */
|
|
16283
16353
|
error: string().optional(),
|
|
16284
|
-
subject: NcHistorySubjectSchema
|
|
16354
|
+
subject: NcHistorySubjectSchema,
|
|
16355
|
+
/**
|
|
16356
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
16357
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
16358
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
16359
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
16360
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
16361
|
+
*
|
|
16362
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
16363
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
16364
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
16365
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
16366
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
16367
|
+
* Assistant export) must render as "no image right now", never as a
|
|
16368
|
+
* broken link.
|
|
16369
|
+
*/
|
|
16370
|
+
artifactIds: array(string().min(1)).optional()
|
|
16285
16371
|
});
|
|
16286
16372
|
/**
|
|
16287
16373
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -16508,7 +16594,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
16508
16594
|
}), method(object({}), object({
|
|
16509
16595
|
catalog: array(NcConditionDescriptorSchema),
|
|
16510
16596
|
taxonomy: NcTaxonomySchema.optional()
|
|
16511
|
-
})), 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 }), {
|
|
16597
|
+
})), 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 }), {
|
|
16512
16598
|
kind: "mutation",
|
|
16513
16599
|
caller: "required"
|
|
16514
16600
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -21596,7 +21682,7 @@ var lifecycleJobSchema = object({
|
|
|
21596
21682
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21597
21683
|
* as every other cap.
|
|
21598
21684
|
*/
|
|
21599
|
-
var LogLevelSchema$
|
|
21685
|
+
var LogLevelSchema$2 = _enum([
|
|
21600
21686
|
"debug",
|
|
21601
21687
|
"info",
|
|
21602
21688
|
"warn",
|
|
@@ -21803,7 +21889,7 @@ var CustomActionInputSchema = object({
|
|
|
21803
21889
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21804
21890
|
addonId: string(),
|
|
21805
21891
|
limit: number().min(1).max(500).default(100),
|
|
21806
|
-
level: LogLevelSchema$
|
|
21892
|
+
level: LogLevelSchema$2.optional()
|
|
21807
21893
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21808
21894
|
packageName: string(),
|
|
21809
21895
|
version: string().optional()
|
|
@@ -21901,7 +21987,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21901
21987
|
auth: "admin"
|
|
21902
21988
|
}), method(object({
|
|
21903
21989
|
addonId: string(),
|
|
21904
|
-
level: LogLevelSchema$
|
|
21990
|
+
level: LogLevelSchema$2.optional()
|
|
21905
21991
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21906
21992
|
object({
|
|
21907
21993
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22915,6 +23001,35 @@ var FaceFilterEnum = _enum([
|
|
|
22915
23001
|
"identified",
|
|
22916
23002
|
"all"
|
|
22917
23003
|
]);
|
|
23004
|
+
/**
|
|
23005
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
23006
|
+
*
|
|
23007
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
23008
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
23009
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
23010
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
23011
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
23012
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
23013
|
+
*
|
|
23014
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
23015
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
23016
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
23017
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
23018
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
23019
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
23020
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
23021
|
+
* backend's NULL-collation accident.
|
|
23022
|
+
*/
|
|
23023
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
23024
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
23025
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
23026
|
+
* never leaves the server. */
|
|
23027
|
+
var FaceClusterSchema = object({
|
|
23028
|
+
faceIds: array(string()).readonly(),
|
|
23029
|
+
representativeFaceId: string(),
|
|
23030
|
+
size: number().int(),
|
|
23031
|
+
cohesion: number()
|
|
23032
|
+
});
|
|
22918
23033
|
var MediaFileLiteSchema$1 = object({
|
|
22919
23034
|
key: string(),
|
|
22920
23035
|
kind: string(),
|
|
@@ -22961,24 +23076,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22961
23076
|
kind: "mutation",
|
|
22962
23077
|
auth: "admin"
|
|
22963
23078
|
}), method(object({
|
|
22964
|
-
/**
|
|
23079
|
+
/**
|
|
23080
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
23081
|
+
*
|
|
23082
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
23083
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
23084
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
23085
|
+
* present, and this field is then ignored rather than unioned, so
|
|
23086
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
23087
|
+
*/
|
|
22965
23088
|
deviceId: number().int().optional(),
|
|
23089
|
+
/**
|
|
23090
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
23091
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
23092
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
23093
|
+
* about to discard).
|
|
23094
|
+
*
|
|
23095
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
23096
|
+
* "every camera". A request for no devices is a request, not an
|
|
23097
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
23098
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
23099
|
+
*
|
|
23100
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
23101
|
+
*/
|
|
23102
|
+
deviceIds: array(number().int()).optional(),
|
|
22966
23103
|
limit: number().int().positive().optional(),
|
|
22967
23104
|
filter: FaceFilterEnum.optional(),
|
|
22968
23105
|
/**
|
|
22969
|
-
*
|
|
22970
|
-
*
|
|
23106
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23107
|
+
* Absent means no lower bound.
|
|
23108
|
+
*/
|
|
23109
|
+
since: number().int().optional(),
|
|
23110
|
+
/**
|
|
23111
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23112
|
+
* Absent means no upper bound.
|
|
23113
|
+
*/
|
|
23114
|
+
until: number().int().optional(),
|
|
23115
|
+
/**
|
|
23116
|
+
* Order the page by time or by suggestion certainty. Default
|
|
23117
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
23118
|
+
* that does not ask.
|
|
22971
23119
|
*
|
|
22972
|
-
*
|
|
22973
|
-
*
|
|
22974
|
-
* the browser cache the images.
|
|
23120
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23121
|
+
* does under `'suggestionConfidence'`.
|
|
22975
23122
|
*
|
|
22976
|
-
*
|
|
22977
|
-
*
|
|
22978
|
-
*
|
|
22979
|
-
*
|
|
22980
|
-
*
|
|
22981
|
-
|
|
23123
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
23124
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
23125
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
23126
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
23127
|
+
* with {@link since} / {@link until}.
|
|
23128
|
+
*/
|
|
23129
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
23130
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
23131
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
23132
|
+
/**
|
|
23133
|
+
* Inline the base64 crop on every row.
|
|
23134
|
+
*
|
|
23135
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
23136
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
23137
|
+
* this for every gallery, and which records why the inline shape had
|
|
23138
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
23139
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
23140
|
+
* that describes the old design reads as permission to rely on it.
|
|
23141
|
+
*
|
|
23142
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
23143
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
23144
|
+
* cached and ETagged.
|
|
22982
23145
|
*/
|
|
22983
23146
|
includeCrops: boolean().optional()
|
|
22984
23147
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -23014,13 +23177,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23014
23177
|
}), method(object({
|
|
23015
23178
|
threshold: number().min(0).max(1).optional(),
|
|
23016
23179
|
minClusterSize: number().int().min(2).optional(),
|
|
23017
|
-
|
|
23018
|
-
|
|
23019
|
-
|
|
23020
|
-
|
|
23021
|
-
|
|
23022
|
-
|
|
23023
|
-
|
|
23180
|
+
/**
|
|
23181
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
23182
|
+
* which read as though it bounded the work — it never did.
|
|
23183
|
+
*
|
|
23184
|
+
* Wins over {@link limit} when both are sent.
|
|
23185
|
+
*/
|
|
23186
|
+
maxClusters: number().int().positive().optional(),
|
|
23187
|
+
/**
|
|
23188
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
23189
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
23190
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
23191
|
+
*/
|
|
23192
|
+
limit: number().int().positive().optional(),
|
|
23193
|
+
/**
|
|
23194
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
23195
|
+
* POOL, not the result.
|
|
23196
|
+
*
|
|
23197
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
23198
|
+
* used to read every unassigned face on the hub no matter what the
|
|
23199
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
23200
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
23201
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
23202
|
+
*
|
|
23203
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
23204
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
23205
|
+
* sample it randomly.
|
|
23206
|
+
*
|
|
23207
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
23208
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
23209
|
+
* unbounded scan can never come back as the table grows.
|
|
23210
|
+
*/
|
|
23211
|
+
maxFacesScanned: number().int().positive().optional()
|
|
23212
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
23024
23213
|
/**
|
|
23025
23214
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
23026
23215
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25848,6 +26037,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
25848
26037
|
/** Media ms the returned fragment covers. */
|
|
25849
26038
|
gopDurMs: number()
|
|
25850
26039
|
});
|
|
26040
|
+
/**
|
|
26041
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
26042
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
26043
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
26044
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
26045
|
+
*
|
|
26046
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
26047
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
26048
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
26049
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
26050
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
26051
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
26052
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
26053
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
26054
|
+
* bytes nothing has proven decodable.
|
|
26055
|
+
*/
|
|
26056
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
26057
|
+
kind: literal("ok"),
|
|
26058
|
+
data: _instanceof(Uint8Array),
|
|
26059
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
26060
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
26061
|
+
gopStartMs: number(),
|
|
26062
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
26063
|
+
gopDurMs: number(),
|
|
26064
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
26065
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
26066
|
+
reachesRequestedEnd: boolean()
|
|
26067
|
+
}), object({
|
|
26068
|
+
kind: literal("spans-multiple-segments"),
|
|
26069
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
26070
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
26071
|
+
segmentEndMs: number()
|
|
26072
|
+
})]);
|
|
25851
26073
|
method(object({
|
|
25852
26074
|
deviceId: number(),
|
|
25853
26075
|
fromMs: number(),
|
|
@@ -25898,6 +26120,15 @@ method(object({
|
|
|
25898
26120
|
}), ReadGopBytesResultSchema, {
|
|
25899
26121
|
kind: "query",
|
|
25900
26122
|
auth: "admin"
|
|
26123
|
+
}), method(object({
|
|
26124
|
+
deviceId: number(),
|
|
26125
|
+
profile: string(),
|
|
26126
|
+
startMs: number(),
|
|
26127
|
+
fromMs: number(),
|
|
26128
|
+
toMs: number()
|
|
26129
|
+
}), ReadWindowBytesResultSchema, {
|
|
26130
|
+
kind: "query",
|
|
26131
|
+
auth: "admin"
|
|
25901
26132
|
}), method(object({
|
|
25902
26133
|
deviceId: number(),
|
|
25903
26134
|
config: RecordingConfigSchema
|
|
@@ -26738,6 +26969,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
26738
26969
|
latitude: number().min(-90).max(90),
|
|
26739
26970
|
longitude: number().min(-180).max(180)
|
|
26740
26971
|
}).nullable();
|
|
26972
|
+
/**
|
|
26973
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26974
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26975
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26976
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26977
|
+
*/
|
|
26978
|
+
var RequestCensusGroupSchema = object({
|
|
26979
|
+
procedure: string(),
|
|
26980
|
+
userAgent: string(),
|
|
26981
|
+
ip: string(),
|
|
26982
|
+
principal: string(),
|
|
26983
|
+
calls: number(),
|
|
26984
|
+
perMin: number()
|
|
26985
|
+
});
|
|
26986
|
+
/**
|
|
26987
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26988
|
+
*
|
|
26989
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26990
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26991
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26992
|
+
*/
|
|
26993
|
+
var RequestCensusProcedureSchema = object({
|
|
26994
|
+
procedure: string(),
|
|
26995
|
+
calls: number(),
|
|
26996
|
+
perMin: number()
|
|
26997
|
+
});
|
|
26998
|
+
/**
|
|
26999
|
+
* The census as an operator sees it.
|
|
27000
|
+
*
|
|
27001
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
27002
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
27003
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
27004
|
+
* like one that succeeded.
|
|
27005
|
+
*/
|
|
27006
|
+
var RequestCensusStatusSchema = object({
|
|
27007
|
+
armed: boolean(),
|
|
27008
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
27009
|
+
elapsedMs: number(),
|
|
27010
|
+
/** The window actually armed, after the server clamped the request. */
|
|
27011
|
+
windowMs: number(),
|
|
27012
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
27013
|
+
armedUntilMs: number(),
|
|
27014
|
+
httpRequests: number(),
|
|
27015
|
+
batchedRequests: number(),
|
|
27016
|
+
/**
|
|
27017
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
27018
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
27019
|
+
* the number comparable with a store-side call count.
|
|
27020
|
+
*/
|
|
27021
|
+
procedureCalls: number(),
|
|
27022
|
+
/**
|
|
27023
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
27024
|
+
* transport resolves one context per connection - but the number that says
|
|
27025
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
27026
|
+
*/
|
|
27027
|
+
wsConnections: number(),
|
|
27028
|
+
distinctGroups: number(),
|
|
27029
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
27030
|
+
* cardinality bound. */
|
|
27031
|
+
unattributedCalls: number(),
|
|
27032
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
27033
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
27034
|
+
}).extend({ persisted: boolean() });
|
|
27035
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
27036
|
+
var LogLevelSchema$1 = _enum([
|
|
27037
|
+
"debug",
|
|
27038
|
+
"info",
|
|
27039
|
+
"warn",
|
|
27040
|
+
"error"
|
|
27041
|
+
]);
|
|
27042
|
+
/**
|
|
27043
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
27044
|
+
*
|
|
27045
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
27046
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
27047
|
+
*/
|
|
27048
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
27049
|
+
/**
|
|
27050
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
27051
|
+
* layer that carries an explicit value wins.
|
|
27052
|
+
*
|
|
27053
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
27054
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
27055
|
+
* grow later would force every consumer of this document to change with it.
|
|
27056
|
+
* Nothing returns `component` today.
|
|
27057
|
+
*/
|
|
27058
|
+
var LoggingScopeKindSchema = _enum([
|
|
27059
|
+
"cluster",
|
|
27060
|
+
"node",
|
|
27061
|
+
"component"
|
|
27062
|
+
]);
|
|
27063
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
27064
|
+
var LoggingLevelSourceSchema = _enum([
|
|
27065
|
+
"default",
|
|
27066
|
+
"cluster",
|
|
27067
|
+
"node",
|
|
27068
|
+
"component"
|
|
27069
|
+
]);
|
|
27070
|
+
/**
|
|
27071
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
27072
|
+
*
|
|
27073
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
27074
|
+
* difference between "this node is at `info` because I decided it" and
|
|
27075
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
27076
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
27077
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
27078
|
+
*/
|
|
27079
|
+
var LoggingLevelLayerSchema = object({
|
|
27080
|
+
scope: LoggingScopeKindSchema,
|
|
27081
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
27082
|
+
nodeId: string().nullable(),
|
|
27083
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
27084
|
+
level: LogLevelSchema$1.nullable()
|
|
27085
|
+
});
|
|
27086
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
27087
|
+
var LoggingEffectiveSchema = object({
|
|
27088
|
+
level: LogLevelSchema$1,
|
|
27089
|
+
levelSource: LoggingLevelSourceSchema
|
|
27090
|
+
});
|
|
27091
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
27092
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
27093
|
+
/**
|
|
27094
|
+
* An armed diagnostic, with its DEADLINE.
|
|
27095
|
+
*
|
|
27096
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
27097
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
27098
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
27099
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
27100
|
+
*/
|
|
27101
|
+
var DiagnosticWindowSchema = object({
|
|
27102
|
+
id: DiagnosticIdSchema,
|
|
27103
|
+
armed: boolean(),
|
|
27104
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
27105
|
+
armedUntilMs: number(),
|
|
27106
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
27107
|
+
remainingMs: number(),
|
|
27108
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
27109
|
+
* i.e. whether this window would survive a restart. */
|
|
27110
|
+
persisted: boolean()
|
|
27111
|
+
});
|
|
27112
|
+
/**
|
|
27113
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
27114
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
27115
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
27116
|
+
*/
|
|
27117
|
+
var DiagnosticWindowPatchSchema = object({
|
|
27118
|
+
id: DiagnosticIdSchema,
|
|
27119
|
+
armMs: number().int().min(0),
|
|
27120
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
27121
|
+
reportEveryMs: number().int().positive().optional()
|
|
27122
|
+
});
|
|
27123
|
+
/**
|
|
27124
|
+
* A PATCH, and patches MERGE.
|
|
27125
|
+
*
|
|
27126
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
27127
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
27128
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
27129
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
27130
|
+
* turns into an erased one.
|
|
27131
|
+
*/
|
|
27132
|
+
var LoggingSettingsPatchSchema = object({
|
|
27133
|
+
/**
|
|
27134
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
27135
|
+
* addressed scope so it inherits again. A value sets it.
|
|
27136
|
+
*/
|
|
27137
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
27138
|
+
/**
|
|
27139
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
27140
|
+
* keeps running — a patch is never a full replacement.
|
|
27141
|
+
*/
|
|
27142
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
27143
|
+
});
|
|
27144
|
+
/**
|
|
27145
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
27146
|
+
*
|
|
27147
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
27148
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
27149
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
27150
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
27151
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
27152
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
27153
|
+
* layer selector needs a name the transport does not already own.
|
|
27154
|
+
*/
|
|
27155
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
27156
|
+
var SetLoggingSettingsInputSchema = object({
|
|
27157
|
+
scopeNodeId: string().optional(),
|
|
27158
|
+
patch: LoggingSettingsPatchSchema
|
|
27159
|
+
});
|
|
27160
|
+
/**
|
|
27161
|
+
* The whole document, as read and as returned after every write.
|
|
27162
|
+
*
|
|
27163
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
27164
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
27165
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
27166
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
27167
|
+
* survive a restart.
|
|
27168
|
+
*/
|
|
27169
|
+
var LoggingSettingsStateSchema = object({
|
|
27170
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
27171
|
+
scopeNodeId: string().nullable(),
|
|
27172
|
+
effective: LoggingEffectiveSchema,
|
|
27173
|
+
explicit: LoggingExplicitSchema,
|
|
27174
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
27175
|
+
persisted: boolean()
|
|
27176
|
+
});
|
|
26741
27177
|
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(), {
|
|
26742
27178
|
kind: "mutation",
|
|
26743
27179
|
auth: "admin"
|
|
@@ -26750,6 +27186,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26750
27186
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26751
27187
|
kind: "mutation",
|
|
26752
27188
|
auth: "admin"
|
|
27189
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27190
|
+
kind: "mutation",
|
|
27191
|
+
auth: "admin"
|
|
26753
27192
|
});
|
|
26754
27193
|
object({
|
|
26755
27194
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -30341,6 +30780,12 @@ Object.freeze({
|
|
|
30341
30780
|
addonId: null,
|
|
30342
30781
|
access: "view"
|
|
30343
30782
|
},
|
|
30783
|
+
"notificationRules.resolveArtifactUrl": {
|
|
30784
|
+
capName: "notification-rules",
|
|
30785
|
+
capScope: "system",
|
|
30786
|
+
addonId: null,
|
|
30787
|
+
access: "view"
|
|
30788
|
+
},
|
|
30344
30789
|
"notificationRules.setAlarmConfig": {
|
|
30345
30790
|
capName: "notification-rules",
|
|
30346
30791
|
capScope: "system",
|
|
@@ -31745,6 +32190,12 @@ Object.freeze({
|
|
|
31745
32190
|
addonId: null,
|
|
31746
32191
|
access: "view"
|
|
31747
32192
|
},
|
|
32193
|
+
"recording.readWindowBytes": {
|
|
32194
|
+
capName: "recording",
|
|
32195
|
+
capScope: "system",
|
|
32196
|
+
addonId: null,
|
|
32197
|
+
access: "view"
|
|
32198
|
+
},
|
|
31748
32199
|
"recording.refreshStorageLocationsForMigration": {
|
|
31749
32200
|
capName: "recording",
|
|
31750
32201
|
capScope: "system",
|
|
@@ -32585,6 +33036,18 @@ Object.freeze({
|
|
|
32585
33036
|
addonId: null,
|
|
32586
33037
|
access: "create"
|
|
32587
33038
|
},
|
|
33039
|
+
"system.getLoggingSettings": {
|
|
33040
|
+
capName: "system",
|
|
33041
|
+
capScope: "system",
|
|
33042
|
+
addonId: null,
|
|
33043
|
+
access: "view"
|
|
33044
|
+
},
|
|
33045
|
+
"system.getRequestCensus": {
|
|
33046
|
+
capName: "system",
|
|
33047
|
+
capScope: "system",
|
|
33048
|
+
addonId: null,
|
|
33049
|
+
access: "view"
|
|
33050
|
+
},
|
|
32588
33051
|
"system.getRetentionConfig": {
|
|
32589
33052
|
capName: "system",
|
|
32590
33053
|
capScope: "system",
|
|
@@ -32615,6 +33078,12 @@ Object.freeze({
|
|
|
32615
33078
|
addonId: null,
|
|
32616
33079
|
access: "view"
|
|
32617
33080
|
},
|
|
33081
|
+
"system.setLoggingSettings": {
|
|
33082
|
+
capName: "system",
|
|
33083
|
+
capScope: "system",
|
|
33084
|
+
addonId: null,
|
|
33085
|
+
access: "create"
|
|
33086
|
+
},
|
|
32618
33087
|
"system.setRetentionConfig": {
|
|
32619
33088
|
capName: "system",
|
|
32620
33089
|
capScope: "system",
|
|
@@ -33770,6 +34239,10 @@ Object.freeze({
|
|
|
33770
34239
|
name: "deviceId",
|
|
33771
34240
|
form: "single",
|
|
33772
34241
|
optional: true
|
|
34242
|
+
}, {
|
|
34243
|
+
name: "deviceIds",
|
|
34244
|
+
form: "array",
|
|
34245
|
+
optional: true
|
|
33773
34246
|
}],
|
|
33774
34247
|
"fanControl.setDirection": [{
|
|
33775
34248
|
name: "deviceId",
|
|
@@ -34575,6 +35048,11 @@ Object.freeze({
|
|
|
34575
35048
|
form: "single",
|
|
34576
35049
|
optional: false
|
|
34577
35050
|
}],
|
|
35051
|
+
"recording.readWindowBytes": [{
|
|
35052
|
+
name: "deviceId",
|
|
35053
|
+
form: "single",
|
|
35054
|
+
optional: false
|
|
35055
|
+
}],
|
|
34578
35056
|
"recording.relocateFootage": [{
|
|
34579
35057
|
name: "deviceId",
|
|
34580
35058
|
form: "single",
|
|
@@ -35375,7 +35853,38 @@ object({
|
|
|
35375
35853
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
35376
35854
|
* reproduce that.
|
|
35377
35855
|
*/
|
|
35378
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35856
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35857
|
+
/**
|
|
35858
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35859
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35860
|
+
* subject tiles, on frames that detected something.
|
|
35861
|
+
*
|
|
35862
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35863
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35864
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35865
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35866
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35867
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35868
|
+
*
|
|
35869
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35870
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35871
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35872
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35873
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35874
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35875
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35876
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35877
|
+
* whole shape exists to avoid.
|
|
35878
|
+
*
|
|
35879
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35880
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35881
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35882
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35883
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35884
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35885
|
+
* nothing.
|
|
35886
|
+
*/
|
|
35887
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
35379
35888
|
});
|
|
35380
35889
|
/**
|
|
35381
35890
|
* The values in force when the operator has set nothing.
|
|
@@ -35391,12 +35900,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
35391
35900
|
budgetMb: 1024,
|
|
35392
35901
|
activityMs: 15e3,
|
|
35393
35902
|
tileBudgetMb: 64,
|
|
35903
|
+
sceneBudgetMb: 48,
|
|
35394
35904
|
admission: "inferred"
|
|
35395
35905
|
};
|
|
35396
35906
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
35397
35907
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
35398
35908
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
35399
35909
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35910
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
35400
35911
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
35401
35912
|
var MB = 1024 * 1024;
|
|
35402
35913
|
1024 * MB, 3072 * MB;
|