@camstack/addon-provider-wyze 0.2.35 → 0.2.37
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 +577 -59
- package/dist/addon.mjs +577 -59
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -7537,6 +7537,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7537
7537
|
/** Max rows returned, newest-first. */
|
|
7538
7538
|
limit: number().int().min(1).max(1e3).optional()
|
|
7539
7539
|
});
|
|
7540
|
+
var LabelDefinitionSchema = object({
|
|
7541
|
+
id: string(),
|
|
7542
|
+
name: string(),
|
|
7543
|
+
category: string().optional(),
|
|
7544
|
+
description: string().optional(),
|
|
7545
|
+
icon: string().optional()
|
|
7546
|
+
});
|
|
7547
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7548
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7549
|
+
"person",
|
|
7550
|
+
"vehicle",
|
|
7551
|
+
"animal",
|
|
7552
|
+
"package"
|
|
7553
|
+
];
|
|
7554
|
+
/**
|
|
7555
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7556
|
+
* un operatore può selezionare.
|
|
7557
|
+
*
|
|
7558
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7559
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7560
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7561
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7562
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7563
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7564
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7565
|
+
*
|
|
7566
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7567
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7568
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7569
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7570
|
+
* successiva.
|
|
7571
|
+
*/
|
|
7572
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7573
|
+
"person",
|
|
7574
|
+
"vehicle",
|
|
7575
|
+
"animal"
|
|
7576
|
+
];
|
|
7577
|
+
/**
|
|
7578
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7579
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7580
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7581
|
+
* detection pipeline executor actually routes.
|
|
7582
|
+
*
|
|
7583
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7584
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7585
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7586
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7587
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7588
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7589
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7590
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7591
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7592
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7593
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7594
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7595
|
+
*/
|
|
7596
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7597
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7598
|
+
preserveOriginal: boolean()
|
|
7599
|
+
});
|
|
7540
7600
|
/**
|
|
7541
7601
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7542
7602
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7559,10 +7619,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7559
7619
|
"events",
|
|
7560
7620
|
"continuous"
|
|
7561
7621
|
]);
|
|
7622
|
+
/**
|
|
7623
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7624
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7625
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7626
|
+
*/
|
|
7627
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7628
|
+
/**
|
|
7629
|
+
* True quando `values` non ripete un elemento.
|
|
7630
|
+
*
|
|
7631
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7632
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7633
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7634
|
+
*/
|
|
7635
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7562
7636
|
/** Which detectors trigger an `events`-mode band. */
|
|
7563
7637
|
var RecordingTriggersSchema = object({
|
|
7564
7638
|
motion: boolean().optional(),
|
|
7565
|
-
audioThresholdDbfs: number().optional()
|
|
7639
|
+
audioThresholdDbfs: number().optional(),
|
|
7640
|
+
/**
|
|
7641
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7642
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7643
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7644
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7645
|
+
*
|
|
7646
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7647
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7648
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7649
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7650
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7651
|
+
*/
|
|
7652
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7653
|
+
/**
|
|
7654
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7655
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7656
|
+
* `objectClasses`.
|
|
7657
|
+
*
|
|
7658
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7659
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7660
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7661
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7662
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7663
|
+
*
|
|
7664
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7665
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7666
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7667
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7668
|
+
* registrare.
|
|
7669
|
+
*/
|
|
7670
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7566
7671
|
});
|
|
7567
7672
|
/**
|
|
7568
7673
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8014,41 +8119,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8014
8119
|
*/
|
|
8015
8120
|
debug: boolean().optional()
|
|
8016
8121
|
});
|
|
8017
|
-
var LabelDefinitionSchema = object({
|
|
8018
|
-
id: string(),
|
|
8019
|
-
name: string(),
|
|
8020
|
-
category: string().optional(),
|
|
8021
|
-
description: string().optional(),
|
|
8022
|
-
icon: string().optional()
|
|
8023
|
-
});
|
|
8024
|
-
/**
|
|
8025
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8026
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8027
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8028
|
-
* detection pipeline executor actually routes.
|
|
8029
|
-
*
|
|
8030
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8031
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8032
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8033
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8034
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8035
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8036
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8037
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8038
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8039
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8040
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8041
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8042
|
-
*/
|
|
8043
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8044
|
-
mapping: record(string(), _enum([
|
|
8045
|
-
"person",
|
|
8046
|
-
"vehicle",
|
|
8047
|
-
"animal",
|
|
8048
|
-
"package"
|
|
8049
|
-
])),
|
|
8050
|
-
preserveOriginal: boolean()
|
|
8051
|
-
});
|
|
8052
8122
|
var MODEL_FORMATS = [
|
|
8053
8123
|
"onnx",
|
|
8054
8124
|
"coreml",
|
|
@@ -21285,7 +21355,7 @@ var lifecycleJobSchema = object({
|
|
|
21285
21355
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21286
21356
|
* as every other cap.
|
|
21287
21357
|
*/
|
|
21288
|
-
var LogLevelSchema$
|
|
21358
|
+
var LogLevelSchema$2 = _enum([
|
|
21289
21359
|
"debug",
|
|
21290
21360
|
"info",
|
|
21291
21361
|
"warn",
|
|
@@ -21492,7 +21562,7 @@ var CustomActionInputSchema = object({
|
|
|
21492
21562
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21493
21563
|
addonId: string(),
|
|
21494
21564
|
limit: number().min(1).max(500).default(100),
|
|
21495
|
-
level: LogLevelSchema$
|
|
21565
|
+
level: LogLevelSchema$2.optional()
|
|
21496
21566
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21497
21567
|
packageName: string(),
|
|
21498
21568
|
version: string().optional()
|
|
@@ -21590,7 +21660,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21590
21660
|
auth: "admin"
|
|
21591
21661
|
}), method(object({
|
|
21592
21662
|
addonId: string(),
|
|
21593
|
-
level: LogLevelSchema$
|
|
21663
|
+
level: LogLevelSchema$2.optional()
|
|
21594
21664
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21595
21665
|
/**
|
|
21596
21666
|
* Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
|
|
@@ -23322,6 +23392,35 @@ var FaceFilterEnum = _enum([
|
|
|
23322
23392
|
"identified",
|
|
23323
23393
|
"all"
|
|
23324
23394
|
]);
|
|
23395
|
+
/**
|
|
23396
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
23397
|
+
*
|
|
23398
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
23399
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
23400
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
23401
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
23402
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
23403
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
23404
|
+
*
|
|
23405
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
23406
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
23407
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
23408
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
23409
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
23410
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
23411
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
23412
|
+
* backend's NULL-collation accident.
|
|
23413
|
+
*/
|
|
23414
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
23415
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
23416
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
23417
|
+
* never leaves the server. */
|
|
23418
|
+
var FaceClusterSchema = object({
|
|
23419
|
+
faceIds: array(string()).readonly(),
|
|
23420
|
+
representativeFaceId: string(),
|
|
23421
|
+
size: number().int(),
|
|
23422
|
+
cohesion: number()
|
|
23423
|
+
});
|
|
23325
23424
|
var MediaFileLiteSchema$1 = object({
|
|
23326
23425
|
key: string(),
|
|
23327
23426
|
kind: string(),
|
|
@@ -23368,24 +23467,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23368
23467
|
kind: "mutation",
|
|
23369
23468
|
auth: "admin"
|
|
23370
23469
|
}), method(object({
|
|
23371
|
-
/**
|
|
23470
|
+
/**
|
|
23471
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
23472
|
+
*
|
|
23473
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
23474
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
23475
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
23476
|
+
* present, and this field is then ignored rather than unioned, so
|
|
23477
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
23478
|
+
*/
|
|
23372
23479
|
deviceId: number().int().optional(),
|
|
23480
|
+
/**
|
|
23481
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
23482
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
23483
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
23484
|
+
* about to discard).
|
|
23485
|
+
*
|
|
23486
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
23487
|
+
* "every camera". A request for no devices is a request, not an
|
|
23488
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
23489
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
23490
|
+
*
|
|
23491
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
23492
|
+
*/
|
|
23493
|
+
deviceIds: array(number().int()).optional(),
|
|
23373
23494
|
limit: number().int().positive().optional(),
|
|
23374
23495
|
filter: FaceFilterEnum.optional(),
|
|
23375
23496
|
/**
|
|
23376
|
-
*
|
|
23377
|
-
*
|
|
23497
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23498
|
+
* Absent means no lower bound.
|
|
23499
|
+
*/
|
|
23500
|
+
since: number().int().optional(),
|
|
23501
|
+
/**
|
|
23502
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23503
|
+
* Absent means no upper bound.
|
|
23504
|
+
*/
|
|
23505
|
+
until: number().int().optional(),
|
|
23506
|
+
/**
|
|
23507
|
+
* Order the page by time or by suggestion certainty. Default
|
|
23508
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
23509
|
+
* that does not ask.
|
|
23378
23510
|
*
|
|
23379
|
-
*
|
|
23380
|
-
*
|
|
23381
|
-
* the browser cache the images.
|
|
23511
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23512
|
+
* does under `'suggestionConfidence'`.
|
|
23382
23513
|
*
|
|
23383
|
-
*
|
|
23384
|
-
*
|
|
23385
|
-
*
|
|
23386
|
-
*
|
|
23387
|
-
*
|
|
23388
|
-
|
|
23514
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
23515
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
23516
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
23517
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
23518
|
+
* with {@link since} / {@link until}.
|
|
23519
|
+
*/
|
|
23520
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
23521
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
23522
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
23523
|
+
/**
|
|
23524
|
+
* Inline the base64 crop on every row.
|
|
23525
|
+
*
|
|
23526
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
23527
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
23528
|
+
* this for every gallery, and which records why the inline shape had
|
|
23529
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
23530
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
23531
|
+
* that describes the old design reads as permission to rely on it.
|
|
23532
|
+
*
|
|
23533
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
23534
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
23535
|
+
* cached and ETagged.
|
|
23389
23536
|
*/
|
|
23390
23537
|
includeCrops: boolean().optional()
|
|
23391
23538
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -23421,13 +23568,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23421
23568
|
}), method(object({
|
|
23422
23569
|
threshold: number().min(0).max(1).optional(),
|
|
23423
23570
|
minClusterSize: number().int().min(2).optional(),
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23571
|
+
/**
|
|
23572
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
23573
|
+
* which read as though it bounded the work — it never did.
|
|
23574
|
+
*
|
|
23575
|
+
* Wins over {@link limit} when both are sent.
|
|
23576
|
+
*/
|
|
23577
|
+
maxClusters: number().int().positive().optional(),
|
|
23578
|
+
/**
|
|
23579
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
23580
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
23581
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
23582
|
+
*/
|
|
23583
|
+
limit: number().int().positive().optional(),
|
|
23584
|
+
/**
|
|
23585
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
23586
|
+
* POOL, not the result.
|
|
23587
|
+
*
|
|
23588
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
23589
|
+
* used to read every unassigned face on the hub no matter what the
|
|
23590
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
23591
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
23592
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
23593
|
+
*
|
|
23594
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
23595
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
23596
|
+
* sample it randomly.
|
|
23597
|
+
*
|
|
23598
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
23599
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
23600
|
+
* unbounded scan can never come back as the table grows.
|
|
23601
|
+
*/
|
|
23602
|
+
maxFacesScanned: number().int().positive().optional()
|
|
23603
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
23431
23604
|
/**
|
|
23432
23605
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
23433
23606
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -28369,6 +28542,293 @@ var SetSiteLocationInputSchema = object({
|
|
|
28369
28542
|
latitude: number().min(-90).max(90),
|
|
28370
28543
|
longitude: number().min(-180).max(180)
|
|
28371
28544
|
}).nullable();
|
|
28545
|
+
/**
|
|
28546
|
+
* The TRANSPORT a call arrived on.
|
|
28547
|
+
*
|
|
28548
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
28549
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
28550
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
28551
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
28552
|
+
* checkable rather than asserted.
|
|
28553
|
+
*
|
|
28554
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
28555
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
28556
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
28557
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
28558
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
28559
|
+
* never touches a socket and therefore never touched a census.
|
|
28560
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
28561
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
28562
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
28563
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
28564
|
+
*/
|
|
28565
|
+
var TransportPlaneSchema = _enum([
|
|
28566
|
+
"http",
|
|
28567
|
+
"ws",
|
|
28568
|
+
"mesh",
|
|
28569
|
+
"unknown"
|
|
28570
|
+
]);
|
|
28571
|
+
/**
|
|
28572
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
28573
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
28574
|
+
* make an operator wonder about.
|
|
28575
|
+
*/
|
|
28576
|
+
var TransportPlaneCountsSchema = object({
|
|
28577
|
+
http: number(),
|
|
28578
|
+
ws: number(),
|
|
28579
|
+
mesh: number(),
|
|
28580
|
+
unknown: number()
|
|
28581
|
+
});
|
|
28582
|
+
/**
|
|
28583
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
28584
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
28585
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
28586
|
+
* already prints - never a token, never an `Authorization` header.
|
|
28587
|
+
*
|
|
28588
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
28589
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
28590
|
+
* stream look like a storm.
|
|
28591
|
+
*/
|
|
28592
|
+
var RequestCensusGroupSchema = object({
|
|
28593
|
+
plane: TransportPlaneSchema,
|
|
28594
|
+
procedure: string(),
|
|
28595
|
+
userAgent: string(),
|
|
28596
|
+
ip: string(),
|
|
28597
|
+
principal: string(),
|
|
28598
|
+
calls: number(),
|
|
28599
|
+
subscriptions: number(),
|
|
28600
|
+
perMin: number()
|
|
28601
|
+
});
|
|
28602
|
+
/**
|
|
28603
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
28604
|
+
*
|
|
28605
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
28606
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
28607
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
28608
|
+
*/
|
|
28609
|
+
var RequestCensusProcedureSchema = object({
|
|
28610
|
+
procedure: string(),
|
|
28611
|
+
calls: number(),
|
|
28612
|
+
/**
|
|
28613
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
28614
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
28615
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
28616
|
+
*/
|
|
28617
|
+
planes: TransportPlaneCountsSchema,
|
|
28618
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
28619
|
+
subscriptions: number(),
|
|
28620
|
+
perMin: number()
|
|
28621
|
+
});
|
|
28622
|
+
/**
|
|
28623
|
+
* The census as an operator sees it.
|
|
28624
|
+
*
|
|
28625
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
28626
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
28627
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
28628
|
+
* like one that succeeded.
|
|
28629
|
+
*/
|
|
28630
|
+
var RequestCensusStatusSchema = object({
|
|
28631
|
+
armed: boolean(),
|
|
28632
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
28633
|
+
elapsedMs: number(),
|
|
28634
|
+
/** The window actually armed, after the server clamped the request. */
|
|
28635
|
+
windowMs: number(),
|
|
28636
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28637
|
+
armedUntilMs: number(),
|
|
28638
|
+
httpRequests: number(),
|
|
28639
|
+
batchedRequests: number(),
|
|
28640
|
+
/**
|
|
28641
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
28642
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
28643
|
+
* the number comparable with a store-side call count.
|
|
28644
|
+
*/
|
|
28645
|
+
procedureCalls: number(),
|
|
28646
|
+
/**
|
|
28647
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
28648
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
28649
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
28650
|
+
*/
|
|
28651
|
+
planes: TransportPlaneCountsSchema,
|
|
28652
|
+
/**
|
|
28653
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
28654
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
28655
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
28656
|
+
*/
|
|
28657
|
+
planesExplainTotal: boolean(),
|
|
28658
|
+
/**
|
|
28659
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
28660
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
28661
|
+
* count of zero against 37 open connections says something different from a
|
|
28662
|
+
* plane with no connections at all.
|
|
28663
|
+
*/
|
|
28664
|
+
wsConnections: number(),
|
|
28665
|
+
/**
|
|
28666
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
28667
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
28668
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
28669
|
+
*/
|
|
28670
|
+
wsMessages: number(),
|
|
28671
|
+
/**
|
|
28672
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
28673
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
28674
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
28675
|
+
* masquerade as the storm.
|
|
28676
|
+
*/
|
|
28677
|
+
subscriptions: number(),
|
|
28678
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
28679
|
+
subscriptionStops: number(),
|
|
28680
|
+
distinctGroups: number(),
|
|
28681
|
+
/**
|
|
28682
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
28683
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
28684
|
+
* which transport they arrived on, they just lost their group row.
|
|
28685
|
+
*/
|
|
28686
|
+
unattributedCalls: number(),
|
|
28687
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
28688
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
28689
|
+
}).extend({ persisted: boolean() });
|
|
28690
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
28691
|
+
var LogLevelSchema$1 = _enum([
|
|
28692
|
+
"debug",
|
|
28693
|
+
"info",
|
|
28694
|
+
"warn",
|
|
28695
|
+
"error"
|
|
28696
|
+
]);
|
|
28697
|
+
/**
|
|
28698
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
28699
|
+
*
|
|
28700
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
28701
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
28702
|
+
*/
|
|
28703
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
28704
|
+
/**
|
|
28705
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
28706
|
+
* layer that carries an explicit value wins.
|
|
28707
|
+
*
|
|
28708
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
28709
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
28710
|
+
* grow later would force every consumer of this document to change with it.
|
|
28711
|
+
* Nothing returns `component` today.
|
|
28712
|
+
*/
|
|
28713
|
+
var LoggingScopeKindSchema = _enum([
|
|
28714
|
+
"cluster",
|
|
28715
|
+
"node",
|
|
28716
|
+
"component"
|
|
28717
|
+
]);
|
|
28718
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
28719
|
+
var LoggingLevelSourceSchema = _enum([
|
|
28720
|
+
"default",
|
|
28721
|
+
"cluster",
|
|
28722
|
+
"node",
|
|
28723
|
+
"component"
|
|
28724
|
+
]);
|
|
28725
|
+
/**
|
|
28726
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
28727
|
+
*
|
|
28728
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
28729
|
+
* difference between "this node is at `info` because I decided it" and
|
|
28730
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
28731
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
28732
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
28733
|
+
*/
|
|
28734
|
+
var LoggingLevelLayerSchema = object({
|
|
28735
|
+
scope: LoggingScopeKindSchema,
|
|
28736
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
28737
|
+
nodeId: string().nullable(),
|
|
28738
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
28739
|
+
level: LogLevelSchema$1.nullable()
|
|
28740
|
+
});
|
|
28741
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
28742
|
+
var LoggingEffectiveSchema = object({
|
|
28743
|
+
level: LogLevelSchema$1,
|
|
28744
|
+
levelSource: LoggingLevelSourceSchema
|
|
28745
|
+
});
|
|
28746
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
28747
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
28748
|
+
/**
|
|
28749
|
+
* An armed diagnostic, with its DEADLINE.
|
|
28750
|
+
*
|
|
28751
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
28752
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
28753
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
28754
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
28755
|
+
*/
|
|
28756
|
+
var DiagnosticWindowSchema = object({
|
|
28757
|
+
id: DiagnosticIdSchema,
|
|
28758
|
+
armed: boolean(),
|
|
28759
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28760
|
+
armedUntilMs: number(),
|
|
28761
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
28762
|
+
remainingMs: number(),
|
|
28763
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
28764
|
+
* i.e. whether this window would survive a restart. */
|
|
28765
|
+
persisted: boolean()
|
|
28766
|
+
});
|
|
28767
|
+
/**
|
|
28768
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
28769
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
28770
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
28771
|
+
*/
|
|
28772
|
+
var DiagnosticWindowPatchSchema = object({
|
|
28773
|
+
id: DiagnosticIdSchema,
|
|
28774
|
+
armMs: number().int().min(0),
|
|
28775
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
28776
|
+
reportEveryMs: number().int().positive().optional()
|
|
28777
|
+
});
|
|
28778
|
+
/**
|
|
28779
|
+
* A PATCH, and patches MERGE.
|
|
28780
|
+
*
|
|
28781
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
28782
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
28783
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
28784
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
28785
|
+
* turns into an erased one.
|
|
28786
|
+
*/
|
|
28787
|
+
var LoggingSettingsPatchSchema = object({
|
|
28788
|
+
/**
|
|
28789
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
28790
|
+
* addressed scope so it inherits again. A value sets it.
|
|
28791
|
+
*/
|
|
28792
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
28793
|
+
/**
|
|
28794
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
28795
|
+
* keeps running — a patch is never a full replacement.
|
|
28796
|
+
*/
|
|
28797
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
28798
|
+
});
|
|
28799
|
+
/**
|
|
28800
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
28801
|
+
*
|
|
28802
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
28803
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
28804
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
28805
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
28806
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
28807
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
28808
|
+
* layer selector needs a name the transport does not already own.
|
|
28809
|
+
*/
|
|
28810
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
28811
|
+
var SetLoggingSettingsInputSchema = object({
|
|
28812
|
+
scopeNodeId: string().optional(),
|
|
28813
|
+
patch: LoggingSettingsPatchSchema
|
|
28814
|
+
});
|
|
28815
|
+
/**
|
|
28816
|
+
* The whole document, as read and as returned after every write.
|
|
28817
|
+
*
|
|
28818
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
28819
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
28820
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
28821
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
28822
|
+
* survive a restart.
|
|
28823
|
+
*/
|
|
28824
|
+
var LoggingSettingsStateSchema = object({
|
|
28825
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
28826
|
+
scopeNodeId: string().nullable(),
|
|
28827
|
+
effective: LoggingEffectiveSchema,
|
|
28828
|
+
explicit: LoggingExplicitSchema,
|
|
28829
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
28830
|
+
persisted: boolean()
|
|
28831
|
+
});
|
|
28372
28832
|
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(), {
|
|
28373
28833
|
kind: "mutation",
|
|
28374
28834
|
auth: "admin"
|
|
@@ -28381,6 +28841,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
28381
28841
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
28382
28842
|
kind: "mutation",
|
|
28383
28843
|
auth: "admin"
|
|
28844
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
28845
|
+
kind: "mutation",
|
|
28846
|
+
auth: "admin"
|
|
28384
28847
|
});
|
|
28385
28848
|
/**
|
|
28386
28849
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -35620,6 +36083,18 @@ Object.freeze({
|
|
|
35620
36083
|
addonId: null,
|
|
35621
36084
|
access: "create"
|
|
35622
36085
|
},
|
|
36086
|
+
"system.getLoggingSettings": {
|
|
36087
|
+
capName: "system",
|
|
36088
|
+
capScope: "system",
|
|
36089
|
+
addonId: null,
|
|
36090
|
+
access: "view"
|
|
36091
|
+
},
|
|
36092
|
+
"system.getRequestCensus": {
|
|
36093
|
+
capName: "system",
|
|
36094
|
+
capScope: "system",
|
|
36095
|
+
addonId: null,
|
|
36096
|
+
access: "view"
|
|
36097
|
+
},
|
|
35623
36098
|
"system.getRetentionConfig": {
|
|
35624
36099
|
capName: "system",
|
|
35625
36100
|
capScope: "system",
|
|
@@ -35650,6 +36125,12 @@ Object.freeze({
|
|
|
35650
36125
|
addonId: null,
|
|
35651
36126
|
access: "view"
|
|
35652
36127
|
},
|
|
36128
|
+
"system.setLoggingSettings": {
|
|
36129
|
+
capName: "system",
|
|
36130
|
+
capScope: "system",
|
|
36131
|
+
addonId: null,
|
|
36132
|
+
access: "create"
|
|
36133
|
+
},
|
|
35653
36134
|
"system.setRetentionConfig": {
|
|
35654
36135
|
capName: "system",
|
|
35655
36136
|
capScope: "system",
|
|
@@ -36805,6 +37286,10 @@ Object.freeze({
|
|
|
36805
37286
|
name: "deviceId",
|
|
36806
37287
|
form: "single",
|
|
36807
37288
|
optional: true
|
|
37289
|
+
}, {
|
|
37290
|
+
name: "deviceIds",
|
|
37291
|
+
form: "array",
|
|
37292
|
+
optional: true
|
|
36808
37293
|
}],
|
|
36809
37294
|
"fanControl.setDirection": [{
|
|
36810
37295
|
name: "deviceId",
|
|
@@ -38415,7 +38900,38 @@ object({
|
|
|
38415
38900
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
38416
38901
|
* reproduce that.
|
|
38417
38902
|
*/
|
|
38418
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
38903
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
38904
|
+
/**
|
|
38905
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
38906
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
38907
|
+
* subject tiles, on frames that detected something.
|
|
38908
|
+
*
|
|
38909
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
38910
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
38911
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
38912
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
38913
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
38914
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
38915
|
+
*
|
|
38916
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
38917
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
38918
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
38919
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
38920
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
38921
|
+
* binds only through a detection burst, where it still covers well past the
|
|
38922
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
38923
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
38924
|
+
* whole shape exists to avoid.
|
|
38925
|
+
*
|
|
38926
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
38927
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
38928
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
38929
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
38930
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
38931
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
38932
|
+
* nothing.
|
|
38933
|
+
*/
|
|
38934
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
38419
38935
|
});
|
|
38420
38936
|
/**
|
|
38421
38937
|
* The values in force when the operator has set nothing.
|
|
@@ -38431,12 +38947,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
38431
38947
|
budgetMb: 1024,
|
|
38432
38948
|
activityMs: 15e3,
|
|
38433
38949
|
tileBudgetMb: 64,
|
|
38950
|
+
sceneBudgetMb: 48,
|
|
38434
38951
|
admission: "inferred"
|
|
38435
38952
|
};
|
|
38436
38953
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
38437
38954
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
38438
38955
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
38439
38956
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38957
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
38440
38958
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38441
38959
|
var MB = 1024 * 1024;
|
|
38442
38960
|
1024 * MB, 3072 * MB;
|