@camstack/addon-provider-amcrest 0.2.31 → 0.2.33
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.js
CHANGED
|
@@ -7519,6 +7519,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7519
7519
|
/** Max rows returned, newest-first. */
|
|
7520
7520
|
limit: number().int().min(1).max(1e3).optional()
|
|
7521
7521
|
});
|
|
7522
|
+
var LabelDefinitionSchema = object({
|
|
7523
|
+
id: string(),
|
|
7524
|
+
name: string(),
|
|
7525
|
+
category: string().optional(),
|
|
7526
|
+
description: string().optional(),
|
|
7527
|
+
icon: string().optional()
|
|
7528
|
+
});
|
|
7529
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7530
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7531
|
+
"person",
|
|
7532
|
+
"vehicle",
|
|
7533
|
+
"animal",
|
|
7534
|
+
"package"
|
|
7535
|
+
];
|
|
7536
|
+
/**
|
|
7537
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7538
|
+
* un operatore può selezionare.
|
|
7539
|
+
*
|
|
7540
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7541
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7542
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7543
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7544
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7545
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7546
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7547
|
+
*
|
|
7548
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7549
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7550
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7551
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7552
|
+
* successiva.
|
|
7553
|
+
*/
|
|
7554
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7555
|
+
"person",
|
|
7556
|
+
"vehicle",
|
|
7557
|
+
"animal"
|
|
7558
|
+
];
|
|
7559
|
+
/**
|
|
7560
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7561
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7562
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7563
|
+
* detection pipeline executor actually routes.
|
|
7564
|
+
*
|
|
7565
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7566
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7567
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7568
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7569
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7570
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7571
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7572
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7573
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7574
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7575
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7576
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7577
|
+
*/
|
|
7578
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7579
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7580
|
+
preserveOriginal: boolean()
|
|
7581
|
+
});
|
|
7522
7582
|
/**
|
|
7523
7583
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7524
7584
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7541,10 +7601,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7541
7601
|
"events",
|
|
7542
7602
|
"continuous"
|
|
7543
7603
|
]);
|
|
7604
|
+
/**
|
|
7605
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7606
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7607
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7608
|
+
*/
|
|
7609
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7610
|
+
/**
|
|
7611
|
+
* True quando `values` non ripete un elemento.
|
|
7612
|
+
*
|
|
7613
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7614
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7615
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7616
|
+
*/
|
|
7617
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7544
7618
|
/** Which detectors trigger an `events`-mode band. */
|
|
7545
7619
|
var RecordingTriggersSchema = object({
|
|
7546
7620
|
motion: boolean().optional(),
|
|
7547
|
-
audioThresholdDbfs: number().optional()
|
|
7621
|
+
audioThresholdDbfs: number().optional(),
|
|
7622
|
+
/**
|
|
7623
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7624
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7625
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7626
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7627
|
+
*
|
|
7628
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7629
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7630
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7631
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7632
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7633
|
+
*/
|
|
7634
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7635
|
+
/**
|
|
7636
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7637
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7638
|
+
* `objectClasses`.
|
|
7639
|
+
*
|
|
7640
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7641
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7642
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7643
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7644
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7645
|
+
*
|
|
7646
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7647
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7648
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7649
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7650
|
+
* registrare.
|
|
7651
|
+
*/
|
|
7652
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7548
7653
|
});
|
|
7549
7654
|
/**
|
|
7550
7655
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -7996,41 +8101,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
7996
8101
|
*/
|
|
7997
8102
|
debug: boolean().optional()
|
|
7998
8103
|
});
|
|
7999
|
-
var LabelDefinitionSchema = object({
|
|
8000
|
-
id: string(),
|
|
8001
|
-
name: string(),
|
|
8002
|
-
category: string().optional(),
|
|
8003
|
-
description: string().optional(),
|
|
8004
|
-
icon: string().optional()
|
|
8005
|
-
});
|
|
8006
|
-
/**
|
|
8007
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8008
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8009
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8010
|
-
* detection pipeline executor actually routes.
|
|
8011
|
-
*
|
|
8012
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8013
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8014
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8015
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8016
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8017
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8018
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8019
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8020
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8021
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8022
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8023
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8024
|
-
*/
|
|
8025
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8026
|
-
mapping: record(string(), _enum([
|
|
8027
|
-
"person",
|
|
8028
|
-
"vehicle",
|
|
8029
|
-
"animal",
|
|
8030
|
-
"package"
|
|
8031
|
-
])),
|
|
8032
|
-
preserveOriginal: boolean()
|
|
8033
|
-
});
|
|
8034
8104
|
var MODEL_FORMATS = [
|
|
8035
8105
|
"onnx",
|
|
8036
8106
|
"coreml",
|
|
@@ -15775,7 +15845,23 @@ var NcHistoryEntrySchema = object({
|
|
|
15775
15845
|
updatedAt: number(),
|
|
15776
15846
|
/** Failure detail — present on a `dead` row. */
|
|
15777
15847
|
error: string().optional(),
|
|
15778
|
-
subject: NcHistorySubjectSchema
|
|
15848
|
+
subject: NcHistorySubjectSchema,
|
|
15849
|
+
/**
|
|
15850
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
15851
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
15852
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
15853
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
15854
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
15855
|
+
*
|
|
15856
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
15857
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
15858
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
15859
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
15860
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
15861
|
+
* Assistant export) must render as "no image right now", never as a
|
|
15862
|
+
* broken link.
|
|
15863
|
+
*/
|
|
15864
|
+
artifactIds: array(string().min(1)).optional()
|
|
15779
15865
|
});
|
|
15780
15866
|
/**
|
|
15781
15867
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -16002,7 +16088,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
16002
16088
|
}), method(object({}), object({
|
|
16003
16089
|
catalog: array(NcConditionDescriptorSchema),
|
|
16004
16090
|
taxonomy: NcTaxonomySchema.optional()
|
|
16005
|
-
})), 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 }), {
|
|
16091
|
+
})), 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 }), {
|
|
16006
16092
|
kind: "mutation",
|
|
16007
16093
|
caller: "required"
|
|
16008
16094
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -21234,7 +21320,7 @@ var lifecycleJobSchema = object({
|
|
|
21234
21320
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21235
21321
|
* as every other cap.
|
|
21236
21322
|
*/
|
|
21237
|
-
var LogLevelSchema$
|
|
21323
|
+
var LogLevelSchema$2 = _enum([
|
|
21238
21324
|
"debug",
|
|
21239
21325
|
"info",
|
|
21240
21326
|
"warn",
|
|
@@ -21441,7 +21527,7 @@ var CustomActionInputSchema = object({
|
|
|
21441
21527
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21442
21528
|
addonId: string(),
|
|
21443
21529
|
limit: number().min(1).max(500).default(100),
|
|
21444
|
-
level: LogLevelSchema$
|
|
21530
|
+
level: LogLevelSchema$2.optional()
|
|
21445
21531
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21446
21532
|
packageName: string(),
|
|
21447
21533
|
version: string().optional()
|
|
@@ -21539,7 +21625,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21539
21625
|
auth: "admin"
|
|
21540
21626
|
}), method(object({
|
|
21541
21627
|
addonId: string(),
|
|
21542
|
-
level: LogLevelSchema$
|
|
21628
|
+
level: LogLevelSchema$2.optional()
|
|
21543
21629
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21544
21630
|
/**
|
|
21545
21631
|
* Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
|
|
@@ -23263,6 +23349,35 @@ var FaceFilterEnum = _enum([
|
|
|
23263
23349
|
"identified",
|
|
23264
23350
|
"all"
|
|
23265
23351
|
]);
|
|
23352
|
+
/**
|
|
23353
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
23354
|
+
*
|
|
23355
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
23356
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
23357
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
23358
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
23359
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
23360
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
23361
|
+
*
|
|
23362
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
23363
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
23364
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
23365
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
23366
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
23367
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
23368
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
23369
|
+
* backend's NULL-collation accident.
|
|
23370
|
+
*/
|
|
23371
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
23372
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
23373
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
23374
|
+
* never leaves the server. */
|
|
23375
|
+
var FaceClusterSchema = object({
|
|
23376
|
+
faceIds: array(string()).readonly(),
|
|
23377
|
+
representativeFaceId: string(),
|
|
23378
|
+
size: number().int(),
|
|
23379
|
+
cohesion: number()
|
|
23380
|
+
});
|
|
23266
23381
|
var MediaFileLiteSchema$1 = object({
|
|
23267
23382
|
key: string(),
|
|
23268
23383
|
kind: string(),
|
|
@@ -23309,24 +23424,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23309
23424
|
kind: "mutation",
|
|
23310
23425
|
auth: "admin"
|
|
23311
23426
|
}), method(object({
|
|
23312
|
-
/**
|
|
23427
|
+
/**
|
|
23428
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
23429
|
+
*
|
|
23430
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
23431
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
23432
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
23433
|
+
* present, and this field is then ignored rather than unioned, so
|
|
23434
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
23435
|
+
*/
|
|
23313
23436
|
deviceId: number().int().optional(),
|
|
23437
|
+
/**
|
|
23438
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
23439
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
23440
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
23441
|
+
* about to discard).
|
|
23442
|
+
*
|
|
23443
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
23444
|
+
* "every camera". A request for no devices is a request, not an
|
|
23445
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
23446
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
23447
|
+
*
|
|
23448
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
23449
|
+
*/
|
|
23450
|
+
deviceIds: array(number().int()).optional(),
|
|
23314
23451
|
limit: number().int().positive().optional(),
|
|
23315
23452
|
filter: FaceFilterEnum.optional(),
|
|
23316
23453
|
/**
|
|
23317
|
-
*
|
|
23318
|
-
*
|
|
23454
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23455
|
+
* Absent means no lower bound.
|
|
23456
|
+
*/
|
|
23457
|
+
since: number().int().optional(),
|
|
23458
|
+
/**
|
|
23459
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23460
|
+
* Absent means no upper bound.
|
|
23461
|
+
*/
|
|
23462
|
+
until: number().int().optional(),
|
|
23463
|
+
/**
|
|
23464
|
+
* Order the page by time or by suggestion certainty. Default
|
|
23465
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
23466
|
+
* that does not ask.
|
|
23319
23467
|
*
|
|
23320
|
-
*
|
|
23321
|
-
*
|
|
23322
|
-
* the browser cache the images.
|
|
23468
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23469
|
+
* does under `'suggestionConfidence'`.
|
|
23323
23470
|
*
|
|
23324
|
-
*
|
|
23325
|
-
*
|
|
23326
|
-
*
|
|
23327
|
-
*
|
|
23328
|
-
*
|
|
23329
|
-
|
|
23471
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
23472
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
23473
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
23474
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
23475
|
+
* with {@link since} / {@link until}.
|
|
23476
|
+
*/
|
|
23477
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
23478
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
23479
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
23480
|
+
/**
|
|
23481
|
+
* Inline the base64 crop on every row.
|
|
23482
|
+
*
|
|
23483
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
23484
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
23485
|
+
* this for every gallery, and which records why the inline shape had
|
|
23486
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
23487
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
23488
|
+
* that describes the old design reads as permission to rely on it.
|
|
23489
|
+
*
|
|
23490
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
23491
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
23492
|
+
* cached and ETagged.
|
|
23330
23493
|
*/
|
|
23331
23494
|
includeCrops: boolean().optional()
|
|
23332
23495
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -23362,13 +23525,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23362
23525
|
}), method(object({
|
|
23363
23526
|
threshold: number().min(0).max(1).optional(),
|
|
23364
23527
|
minClusterSize: number().int().min(2).optional(),
|
|
23365
|
-
|
|
23366
|
-
|
|
23367
|
-
|
|
23368
|
-
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23528
|
+
/**
|
|
23529
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
23530
|
+
* which read as though it bounded the work — it never did.
|
|
23531
|
+
*
|
|
23532
|
+
* Wins over {@link limit} when both are sent.
|
|
23533
|
+
*/
|
|
23534
|
+
maxClusters: number().int().positive().optional(),
|
|
23535
|
+
/**
|
|
23536
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
23537
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
23538
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
23539
|
+
*/
|
|
23540
|
+
limit: number().int().positive().optional(),
|
|
23541
|
+
/**
|
|
23542
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
23543
|
+
* POOL, not the result.
|
|
23544
|
+
*
|
|
23545
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
23546
|
+
* used to read every unassigned face on the hub no matter what the
|
|
23547
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
23548
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
23549
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
23550
|
+
*
|
|
23551
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
23552
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
23553
|
+
* sample it randomly.
|
|
23554
|
+
*
|
|
23555
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
23556
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
23557
|
+
* unbounded scan can never come back as the table grows.
|
|
23558
|
+
*/
|
|
23559
|
+
maxFacesScanned: number().int().positive().optional()
|
|
23560
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
23372
23561
|
/**
|
|
23373
23562
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
23374
23563
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -27214,6 +27403,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
27214
27403
|
/** Media ms the returned fragment covers. */
|
|
27215
27404
|
gopDurMs: number()
|
|
27216
27405
|
});
|
|
27406
|
+
/**
|
|
27407
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
27408
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
27409
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
27410
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
27411
|
+
*
|
|
27412
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
27413
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
27414
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
27415
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
27416
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
27417
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
27418
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
27419
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
27420
|
+
* bytes nothing has proven decodable.
|
|
27421
|
+
*/
|
|
27422
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
27423
|
+
kind: literal("ok"),
|
|
27424
|
+
data: _instanceof(Uint8Array),
|
|
27425
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
27426
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
27427
|
+
gopStartMs: number(),
|
|
27428
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
27429
|
+
gopDurMs: number(),
|
|
27430
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
27431
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
27432
|
+
reachesRequestedEnd: boolean()
|
|
27433
|
+
}), object({
|
|
27434
|
+
kind: literal("spans-multiple-segments"),
|
|
27435
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
27436
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
27437
|
+
segmentEndMs: number()
|
|
27438
|
+
})]);
|
|
27217
27439
|
method(object({
|
|
27218
27440
|
deviceId: number(),
|
|
27219
27441
|
fromMs: number(),
|
|
@@ -27264,6 +27486,15 @@ method(object({
|
|
|
27264
27486
|
}), ReadGopBytesResultSchema, {
|
|
27265
27487
|
kind: "query",
|
|
27266
27488
|
auth: "admin"
|
|
27489
|
+
}), method(object({
|
|
27490
|
+
deviceId: number(),
|
|
27491
|
+
profile: string(),
|
|
27492
|
+
startMs: number(),
|
|
27493
|
+
fromMs: number(),
|
|
27494
|
+
toMs: number()
|
|
27495
|
+
}), ReadWindowBytesResultSchema, {
|
|
27496
|
+
kind: "query",
|
|
27497
|
+
auth: "admin"
|
|
27267
27498
|
}), method(object({
|
|
27268
27499
|
deviceId: number(),
|
|
27269
27500
|
config: RecordingConfigSchema
|
|
@@ -28554,6 +28785,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
28554
28785
|
latitude: number().min(-90).max(90),
|
|
28555
28786
|
longitude: number().min(-180).max(180)
|
|
28556
28787
|
}).nullable();
|
|
28788
|
+
/**
|
|
28789
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
28790
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
28791
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
28792
|
+
* already prints - never a token, never an `Authorization` header.
|
|
28793
|
+
*/
|
|
28794
|
+
var RequestCensusGroupSchema = object({
|
|
28795
|
+
procedure: string(),
|
|
28796
|
+
userAgent: string(),
|
|
28797
|
+
ip: string(),
|
|
28798
|
+
principal: string(),
|
|
28799
|
+
calls: number(),
|
|
28800
|
+
perMin: number()
|
|
28801
|
+
});
|
|
28802
|
+
/**
|
|
28803
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
28804
|
+
*
|
|
28805
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
28806
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
28807
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
28808
|
+
*/
|
|
28809
|
+
var RequestCensusProcedureSchema = object({
|
|
28810
|
+
procedure: string(),
|
|
28811
|
+
calls: number(),
|
|
28812
|
+
perMin: number()
|
|
28813
|
+
});
|
|
28814
|
+
/**
|
|
28815
|
+
* The census as an operator sees it.
|
|
28816
|
+
*
|
|
28817
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
28818
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
28819
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
28820
|
+
* like one that succeeded.
|
|
28821
|
+
*/
|
|
28822
|
+
var RequestCensusStatusSchema = object({
|
|
28823
|
+
armed: boolean(),
|
|
28824
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
28825
|
+
elapsedMs: number(),
|
|
28826
|
+
/** The window actually armed, after the server clamped the request. */
|
|
28827
|
+
windowMs: number(),
|
|
28828
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28829
|
+
armedUntilMs: number(),
|
|
28830
|
+
httpRequests: number(),
|
|
28831
|
+
batchedRequests: number(),
|
|
28832
|
+
/**
|
|
28833
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
28834
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
28835
|
+
* the number comparable with a store-side call count.
|
|
28836
|
+
*/
|
|
28837
|
+
procedureCalls: number(),
|
|
28838
|
+
/**
|
|
28839
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
28840
|
+
* transport resolves one context per connection - but the number that says
|
|
28841
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
28842
|
+
*/
|
|
28843
|
+
wsConnections: number(),
|
|
28844
|
+
distinctGroups: number(),
|
|
28845
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
28846
|
+
* cardinality bound. */
|
|
28847
|
+
unattributedCalls: number(),
|
|
28848
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
28849
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
28850
|
+
}).extend({ persisted: boolean() });
|
|
28851
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
28852
|
+
var LogLevelSchema$1 = _enum([
|
|
28853
|
+
"debug",
|
|
28854
|
+
"info",
|
|
28855
|
+
"warn",
|
|
28856
|
+
"error"
|
|
28857
|
+
]);
|
|
28858
|
+
/**
|
|
28859
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
28860
|
+
*
|
|
28861
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
28862
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
28863
|
+
*/
|
|
28864
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
28865
|
+
/**
|
|
28866
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
28867
|
+
* layer that carries an explicit value wins.
|
|
28868
|
+
*
|
|
28869
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
28870
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
28871
|
+
* grow later would force every consumer of this document to change with it.
|
|
28872
|
+
* Nothing returns `component` today.
|
|
28873
|
+
*/
|
|
28874
|
+
var LoggingScopeKindSchema = _enum([
|
|
28875
|
+
"cluster",
|
|
28876
|
+
"node",
|
|
28877
|
+
"component"
|
|
28878
|
+
]);
|
|
28879
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
28880
|
+
var LoggingLevelSourceSchema = _enum([
|
|
28881
|
+
"default",
|
|
28882
|
+
"cluster",
|
|
28883
|
+
"node",
|
|
28884
|
+
"component"
|
|
28885
|
+
]);
|
|
28886
|
+
/**
|
|
28887
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
28888
|
+
*
|
|
28889
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
28890
|
+
* difference between "this node is at `info` because I decided it" and
|
|
28891
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
28892
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
28893
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
28894
|
+
*/
|
|
28895
|
+
var LoggingLevelLayerSchema = object({
|
|
28896
|
+
scope: LoggingScopeKindSchema,
|
|
28897
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
28898
|
+
nodeId: string().nullable(),
|
|
28899
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
28900
|
+
level: LogLevelSchema$1.nullable()
|
|
28901
|
+
});
|
|
28902
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
28903
|
+
var LoggingEffectiveSchema = object({
|
|
28904
|
+
level: LogLevelSchema$1,
|
|
28905
|
+
levelSource: LoggingLevelSourceSchema
|
|
28906
|
+
});
|
|
28907
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
28908
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
28909
|
+
/**
|
|
28910
|
+
* An armed diagnostic, with its DEADLINE.
|
|
28911
|
+
*
|
|
28912
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
28913
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
28914
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
28915
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
28916
|
+
*/
|
|
28917
|
+
var DiagnosticWindowSchema = object({
|
|
28918
|
+
id: DiagnosticIdSchema,
|
|
28919
|
+
armed: boolean(),
|
|
28920
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28921
|
+
armedUntilMs: number(),
|
|
28922
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
28923
|
+
remainingMs: number(),
|
|
28924
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
28925
|
+
* i.e. whether this window would survive a restart. */
|
|
28926
|
+
persisted: boolean()
|
|
28927
|
+
});
|
|
28928
|
+
/**
|
|
28929
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
28930
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
28931
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
28932
|
+
*/
|
|
28933
|
+
var DiagnosticWindowPatchSchema = object({
|
|
28934
|
+
id: DiagnosticIdSchema,
|
|
28935
|
+
armMs: number().int().min(0),
|
|
28936
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
28937
|
+
reportEveryMs: number().int().positive().optional()
|
|
28938
|
+
});
|
|
28939
|
+
/**
|
|
28940
|
+
* A PATCH, and patches MERGE.
|
|
28941
|
+
*
|
|
28942
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
28943
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
28944
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
28945
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
28946
|
+
* turns into an erased one.
|
|
28947
|
+
*/
|
|
28948
|
+
var LoggingSettingsPatchSchema = object({
|
|
28949
|
+
/**
|
|
28950
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
28951
|
+
* addressed scope so it inherits again. A value sets it.
|
|
28952
|
+
*/
|
|
28953
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
28954
|
+
/**
|
|
28955
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
28956
|
+
* keeps running — a patch is never a full replacement.
|
|
28957
|
+
*/
|
|
28958
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
28959
|
+
});
|
|
28960
|
+
/**
|
|
28961
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
28962
|
+
*
|
|
28963
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
28964
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
28965
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
28966
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
28967
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
28968
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
28969
|
+
* layer selector needs a name the transport does not already own.
|
|
28970
|
+
*/
|
|
28971
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
28972
|
+
var SetLoggingSettingsInputSchema = object({
|
|
28973
|
+
scopeNodeId: string().optional(),
|
|
28974
|
+
patch: LoggingSettingsPatchSchema
|
|
28975
|
+
});
|
|
28976
|
+
/**
|
|
28977
|
+
* The whole document, as read and as returned after every write.
|
|
28978
|
+
*
|
|
28979
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
28980
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
28981
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
28982
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
28983
|
+
* survive a restart.
|
|
28984
|
+
*/
|
|
28985
|
+
var LoggingSettingsStateSchema = object({
|
|
28986
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
28987
|
+
scopeNodeId: string().nullable(),
|
|
28988
|
+
effective: LoggingEffectiveSchema,
|
|
28989
|
+
explicit: LoggingExplicitSchema,
|
|
28990
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
28991
|
+
persisted: boolean()
|
|
28992
|
+
});
|
|
28557
28993
|
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(), {
|
|
28558
28994
|
kind: "mutation",
|
|
28559
28995
|
auth: "admin"
|
|
@@ -28566,6 +29002,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
28566
29002
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
28567
29003
|
kind: "mutation",
|
|
28568
29004
|
auth: "admin"
|
|
29005
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
29006
|
+
kind: "mutation",
|
|
29007
|
+
auth: "admin"
|
|
28569
29008
|
});
|
|
28570
29009
|
/**
|
|
28571
29010
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -33755,6 +34194,12 @@ Object.freeze({
|
|
|
33755
34194
|
addonId: null,
|
|
33756
34195
|
access: "view"
|
|
33757
34196
|
},
|
|
34197
|
+
"notificationRules.resolveArtifactUrl": {
|
|
34198
|
+
capName: "notification-rules",
|
|
34199
|
+
capScope: "system",
|
|
34200
|
+
addonId: null,
|
|
34201
|
+
access: "view"
|
|
34202
|
+
},
|
|
33758
34203
|
"notificationRules.setAlarmConfig": {
|
|
33759
34204
|
capName: "notification-rules",
|
|
33760
34205
|
capScope: "system",
|
|
@@ -35159,6 +35604,12 @@ Object.freeze({
|
|
|
35159
35604
|
addonId: null,
|
|
35160
35605
|
access: "view"
|
|
35161
35606
|
},
|
|
35607
|
+
"recording.readWindowBytes": {
|
|
35608
|
+
capName: "recording",
|
|
35609
|
+
capScope: "system",
|
|
35610
|
+
addonId: null,
|
|
35611
|
+
access: "view"
|
|
35612
|
+
},
|
|
35162
35613
|
"recording.refreshStorageLocationsForMigration": {
|
|
35163
35614
|
capName: "recording",
|
|
35164
35615
|
capScope: "system",
|
|
@@ -35999,6 +36450,18 @@ Object.freeze({
|
|
|
35999
36450
|
addonId: null,
|
|
36000
36451
|
access: "create"
|
|
36001
36452
|
},
|
|
36453
|
+
"system.getLoggingSettings": {
|
|
36454
|
+
capName: "system",
|
|
36455
|
+
capScope: "system",
|
|
36456
|
+
addonId: null,
|
|
36457
|
+
access: "view"
|
|
36458
|
+
},
|
|
36459
|
+
"system.getRequestCensus": {
|
|
36460
|
+
capName: "system",
|
|
36461
|
+
capScope: "system",
|
|
36462
|
+
addonId: null,
|
|
36463
|
+
access: "view"
|
|
36464
|
+
},
|
|
36002
36465
|
"system.getRetentionConfig": {
|
|
36003
36466
|
capName: "system",
|
|
36004
36467
|
capScope: "system",
|
|
@@ -36029,6 +36492,12 @@ Object.freeze({
|
|
|
36029
36492
|
addonId: null,
|
|
36030
36493
|
access: "view"
|
|
36031
36494
|
},
|
|
36495
|
+
"system.setLoggingSettings": {
|
|
36496
|
+
capName: "system",
|
|
36497
|
+
capScope: "system",
|
|
36498
|
+
addonId: null,
|
|
36499
|
+
access: "create"
|
|
36500
|
+
},
|
|
36032
36501
|
"system.setRetentionConfig": {
|
|
36033
36502
|
capName: "system",
|
|
36034
36503
|
capScope: "system",
|
|
@@ -37184,6 +37653,10 @@ Object.freeze({
|
|
|
37184
37653
|
name: "deviceId",
|
|
37185
37654
|
form: "single",
|
|
37186
37655
|
optional: true
|
|
37656
|
+
}, {
|
|
37657
|
+
name: "deviceIds",
|
|
37658
|
+
form: "array",
|
|
37659
|
+
optional: true
|
|
37187
37660
|
}],
|
|
37188
37661
|
"fanControl.setDirection": [{
|
|
37189
37662
|
name: "deviceId",
|
|
@@ -37989,6 +38462,11 @@ Object.freeze({
|
|
|
37989
38462
|
form: "single",
|
|
37990
38463
|
optional: false
|
|
37991
38464
|
}],
|
|
38465
|
+
"recording.readWindowBytes": [{
|
|
38466
|
+
name: "deviceId",
|
|
38467
|
+
form: "single",
|
|
38468
|
+
optional: false
|
|
38469
|
+
}],
|
|
37992
38470
|
"recording.relocateFootage": [{
|
|
37993
38471
|
name: "deviceId",
|
|
37994
38472
|
form: "single",
|
|
@@ -38789,7 +39267,38 @@ object({
|
|
|
38789
39267
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
38790
39268
|
* reproduce that.
|
|
38791
39269
|
*/
|
|
38792
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
39270
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
39271
|
+
/**
|
|
39272
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
39273
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
39274
|
+
* subject tiles, on frames that detected something.
|
|
39275
|
+
*
|
|
39276
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
39277
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
39278
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
39279
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
39280
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
39281
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
39282
|
+
*
|
|
39283
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
39284
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
39285
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
39286
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
39287
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
39288
|
+
* binds only through a detection burst, where it still covers well past the
|
|
39289
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
39290
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
39291
|
+
* whole shape exists to avoid.
|
|
39292
|
+
*
|
|
39293
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
39294
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
39295
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
39296
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
39297
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
39298
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
39299
|
+
* nothing.
|
|
39300
|
+
*/
|
|
39301
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
38793
39302
|
});
|
|
38794
39303
|
/**
|
|
38795
39304
|
* The values in force when the operator has set nothing.
|
|
@@ -38805,12 +39314,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
38805
39314
|
budgetMb: 1024,
|
|
38806
39315
|
activityMs: 15e3,
|
|
38807
39316
|
tileBudgetMb: 64,
|
|
39317
|
+
sceneBudgetMb: 48,
|
|
38808
39318
|
admission: "inferred"
|
|
38809
39319
|
};
|
|
38810
39320
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
38811
39321
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
38812
39322
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
38813
39323
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
39324
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
38814
39325
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38815
39326
|
var MB = 1024 * 1024;
|
|
38816
39327
|
1024 * MB, 3072 * MB;
|