@camstack/addon-export-hap 1.2.42 → 1.2.44
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 +577 -59
- package/dist/hap-export.addon.mjs +577 -59
- package/package.json +1 -1
|
@@ -8180,6 +8180,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
8180
8180
|
/** Max rows returned, newest-first. */
|
|
8181
8181
|
limit: number().int().min(1).max(1e3).optional()
|
|
8182
8182
|
});
|
|
8183
|
+
var LabelDefinitionSchema = object({
|
|
8184
|
+
id: string(),
|
|
8185
|
+
name: string(),
|
|
8186
|
+
category: string().optional(),
|
|
8187
|
+
description: string().optional(),
|
|
8188
|
+
icon: string().optional()
|
|
8189
|
+
});
|
|
8190
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
8191
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
8192
|
+
"person",
|
|
8193
|
+
"vehicle",
|
|
8194
|
+
"animal",
|
|
8195
|
+
"package"
|
|
8196
|
+
];
|
|
8197
|
+
/**
|
|
8198
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
8199
|
+
* un operatore può selezionare.
|
|
8200
|
+
*
|
|
8201
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
8202
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
8203
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
8204
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
8205
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
8206
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
8207
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
8208
|
+
*
|
|
8209
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
8210
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
8211
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
8212
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
8213
|
+
* successiva.
|
|
8214
|
+
*/
|
|
8215
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
8216
|
+
"person",
|
|
8217
|
+
"vehicle",
|
|
8218
|
+
"animal"
|
|
8219
|
+
];
|
|
8220
|
+
/**
|
|
8221
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8222
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8223
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8224
|
+
* detection pipeline executor actually routes.
|
|
8225
|
+
*
|
|
8226
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8227
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8228
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8229
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8230
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8231
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8232
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8233
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8234
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8235
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8236
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8237
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8238
|
+
*/
|
|
8239
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8240
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
8241
|
+
preserveOriginal: boolean()
|
|
8242
|
+
});
|
|
8183
8243
|
/**
|
|
8184
8244
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
8185
8245
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -8202,10 +8262,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
8202
8262
|
"events",
|
|
8203
8263
|
"continuous"
|
|
8204
8264
|
]);
|
|
8265
|
+
/**
|
|
8266
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
8267
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
8268
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
8269
|
+
*/
|
|
8270
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
8271
|
+
/**
|
|
8272
|
+
* True quando `values` non ripete un elemento.
|
|
8273
|
+
*
|
|
8274
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
8275
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
8276
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
8277
|
+
*/
|
|
8278
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
8205
8279
|
/** Which detectors trigger an `events`-mode band. */
|
|
8206
8280
|
var RecordingTriggersSchema = object({
|
|
8207
8281
|
motion: boolean().optional(),
|
|
8208
|
-
audioThresholdDbfs: number().optional()
|
|
8282
|
+
audioThresholdDbfs: number().optional(),
|
|
8283
|
+
/**
|
|
8284
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
8285
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
8286
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
8287
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
8288
|
+
*
|
|
8289
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
8290
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
8291
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
8292
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
8293
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
8294
|
+
*/
|
|
8295
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
8296
|
+
/**
|
|
8297
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
8298
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
8299
|
+
* `objectClasses`.
|
|
8300
|
+
*
|
|
8301
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
8302
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
8303
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
8304
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
8305
|
+
* device (D12) — mai un elenco globale di cap.
|
|
8306
|
+
*
|
|
8307
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
8308
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
8309
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
8310
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8311
|
+
* registrare.
|
|
8312
|
+
*/
|
|
8313
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8209
8314
|
});
|
|
8210
8315
|
/**
|
|
8211
8316
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8711,41 +8816,6 @@ function pickClosestResolution(entries, target) {
|
|
|
8711
8816
|
}
|
|
8712
8817
|
return bestAbove?.entry ?? bestBelow?.entry;
|
|
8713
8818
|
}
|
|
8714
|
-
var LabelDefinitionSchema = object({
|
|
8715
|
-
id: string(),
|
|
8716
|
-
name: string(),
|
|
8717
|
-
category: string().optional(),
|
|
8718
|
-
description: string().optional(),
|
|
8719
|
-
icon: string().optional()
|
|
8720
|
-
});
|
|
8721
|
-
/**
|
|
8722
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8723
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8724
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8725
|
-
* detection pipeline executor actually routes.
|
|
8726
|
-
*
|
|
8727
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8728
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8729
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8730
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8731
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8732
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8733
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8734
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8735
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8736
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8737
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8738
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8739
|
-
*/
|
|
8740
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8741
|
-
mapping: record(string(), _enum([
|
|
8742
|
-
"person",
|
|
8743
|
-
"vehicle",
|
|
8744
|
-
"animal",
|
|
8745
|
-
"package"
|
|
8746
|
-
])),
|
|
8747
|
-
preserveOriginal: boolean()
|
|
8748
|
-
});
|
|
8749
8819
|
var MODEL_FORMATS = [
|
|
8750
8820
|
"onnx",
|
|
8751
8821
|
"coreml",
|
|
@@ -21600,7 +21670,7 @@ var lifecycleJobSchema = object({
|
|
|
21600
21670
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21601
21671
|
* as every other cap.
|
|
21602
21672
|
*/
|
|
21603
|
-
var LogLevelSchema$
|
|
21673
|
+
var LogLevelSchema$2 = _enum([
|
|
21604
21674
|
"debug",
|
|
21605
21675
|
"info",
|
|
21606
21676
|
"warn",
|
|
@@ -21807,7 +21877,7 @@ var CustomActionInputSchema = object({
|
|
|
21807
21877
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21808
21878
|
addonId: string(),
|
|
21809
21879
|
limit: number().min(1).max(500).default(100),
|
|
21810
|
-
level: LogLevelSchema$
|
|
21880
|
+
level: LogLevelSchema$2.optional()
|
|
21811
21881
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21812
21882
|
packageName: string(),
|
|
21813
21883
|
version: string().optional()
|
|
@@ -21905,7 +21975,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21905
21975
|
auth: "admin"
|
|
21906
21976
|
}), method(object({
|
|
21907
21977
|
addonId: string(),
|
|
21908
|
-
level: LogLevelSchema$
|
|
21978
|
+
level: LogLevelSchema$2.optional()
|
|
21909
21979
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21910
21980
|
object({
|
|
21911
21981
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22919,6 +22989,35 @@ var FaceFilterEnum = _enum([
|
|
|
22919
22989
|
"identified",
|
|
22920
22990
|
"all"
|
|
22921
22991
|
]);
|
|
22992
|
+
/**
|
|
22993
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22994
|
+
*
|
|
22995
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22996
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22997
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22998
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22999
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
23000
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
23001
|
+
*
|
|
23002
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
23003
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
23004
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
23005
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
23006
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
23007
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
23008
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
23009
|
+
* backend's NULL-collation accident.
|
|
23010
|
+
*/
|
|
23011
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
23012
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
23013
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
23014
|
+
* never leaves the server. */
|
|
23015
|
+
var FaceClusterSchema = object({
|
|
23016
|
+
faceIds: array(string()).readonly(),
|
|
23017
|
+
representativeFaceId: string(),
|
|
23018
|
+
size: number().int(),
|
|
23019
|
+
cohesion: number()
|
|
23020
|
+
});
|
|
22922
23021
|
var MediaFileLiteSchema$1 = object({
|
|
22923
23022
|
key: string(),
|
|
22924
23023
|
kind: string(),
|
|
@@ -22965,24 +23064,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22965
23064
|
kind: "mutation",
|
|
22966
23065
|
auth: "admin"
|
|
22967
23066
|
}), method(object({
|
|
22968
|
-
/**
|
|
23067
|
+
/**
|
|
23068
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
23069
|
+
*
|
|
23070
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
23071
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
23072
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
23073
|
+
* present, and this field is then ignored rather than unioned, so
|
|
23074
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
23075
|
+
*/
|
|
22969
23076
|
deviceId: number().int().optional(),
|
|
23077
|
+
/**
|
|
23078
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
23079
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
23080
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
23081
|
+
* about to discard).
|
|
23082
|
+
*
|
|
23083
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
23084
|
+
* "every camera". A request for no devices is a request, not an
|
|
23085
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
23086
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
23087
|
+
*
|
|
23088
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
23089
|
+
*/
|
|
23090
|
+
deviceIds: array(number().int()).optional(),
|
|
22970
23091
|
limit: number().int().positive().optional(),
|
|
22971
23092
|
filter: FaceFilterEnum.optional(),
|
|
22972
23093
|
/**
|
|
22973
|
-
*
|
|
22974
|
-
*
|
|
23094
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23095
|
+
* Absent means no lower bound.
|
|
23096
|
+
*/
|
|
23097
|
+
since: number().int().optional(),
|
|
23098
|
+
/**
|
|
23099
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
23100
|
+
* Absent means no upper bound.
|
|
23101
|
+
*/
|
|
23102
|
+
until: number().int().optional(),
|
|
23103
|
+
/**
|
|
23104
|
+
* Order the page by time or by suggestion certainty. Default
|
|
23105
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
23106
|
+
* that does not ask.
|
|
22975
23107
|
*
|
|
22976
|
-
*
|
|
22977
|
-
*
|
|
22978
|
-
* the browser cache the images.
|
|
23108
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23109
|
+
* does under `'suggestionConfidence'`.
|
|
22979
23110
|
*
|
|
22980
|
-
*
|
|
22981
|
-
*
|
|
22982
|
-
*
|
|
22983
|
-
*
|
|
22984
|
-
*
|
|
22985
|
-
|
|
23111
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
23112
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
23113
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
23114
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
23115
|
+
* with {@link since} / {@link until}.
|
|
23116
|
+
*/
|
|
23117
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
23118
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
23119
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
23120
|
+
/**
|
|
23121
|
+
* Inline the base64 crop on every row.
|
|
23122
|
+
*
|
|
23123
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
23124
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
23125
|
+
* this for every gallery, and which records why the inline shape had
|
|
23126
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
23127
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
23128
|
+
* that describes the old design reads as permission to rely on it.
|
|
23129
|
+
*
|
|
23130
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
23131
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
23132
|
+
* cached and ETagged.
|
|
22986
23133
|
*/
|
|
22987
23134
|
includeCrops: boolean().optional()
|
|
22988
23135
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -23018,13 +23165,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
23018
23165
|
}), method(object({
|
|
23019
23166
|
threshold: number().min(0).max(1).optional(),
|
|
23020
23167
|
minClusterSize: number().int().min(2).optional(),
|
|
23021
|
-
|
|
23022
|
-
|
|
23023
|
-
|
|
23024
|
-
|
|
23025
|
-
|
|
23026
|
-
|
|
23027
|
-
|
|
23168
|
+
/**
|
|
23169
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
23170
|
+
* which read as though it bounded the work — it never did.
|
|
23171
|
+
*
|
|
23172
|
+
* Wins over {@link limit} when both are sent.
|
|
23173
|
+
*/
|
|
23174
|
+
maxClusters: number().int().positive().optional(),
|
|
23175
|
+
/**
|
|
23176
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
23177
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
23178
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
23179
|
+
*/
|
|
23180
|
+
limit: number().int().positive().optional(),
|
|
23181
|
+
/**
|
|
23182
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
23183
|
+
* POOL, not the result.
|
|
23184
|
+
*
|
|
23185
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
23186
|
+
* used to read every unassigned face on the hub no matter what the
|
|
23187
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
23188
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
23189
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
23190
|
+
*
|
|
23191
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
23192
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
23193
|
+
* sample it randomly.
|
|
23194
|
+
*
|
|
23195
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
23196
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
23197
|
+
* unbounded scan can never come back as the table grows.
|
|
23198
|
+
*/
|
|
23199
|
+
maxFacesScanned: number().int().positive().optional()
|
|
23200
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
23028
23201
|
/**
|
|
23029
23202
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
23030
23203
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -26784,6 +26957,293 @@ var SetSiteLocationInputSchema = object({
|
|
|
26784
26957
|
latitude: number().min(-90).max(90),
|
|
26785
26958
|
longitude: number().min(-180).max(180)
|
|
26786
26959
|
}).nullable();
|
|
26960
|
+
/**
|
|
26961
|
+
* The TRANSPORT a call arrived on.
|
|
26962
|
+
*
|
|
26963
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
26964
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
26965
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
26966
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
26967
|
+
* checkable rather than asserted.
|
|
26968
|
+
*
|
|
26969
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
26970
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
26971
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
26972
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
26973
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
26974
|
+
* never touches a socket and therefore never touched a census.
|
|
26975
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
26976
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
26977
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
26978
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
26979
|
+
*/
|
|
26980
|
+
var TransportPlaneSchema = _enum([
|
|
26981
|
+
"http",
|
|
26982
|
+
"ws",
|
|
26983
|
+
"mesh",
|
|
26984
|
+
"unknown"
|
|
26985
|
+
]);
|
|
26986
|
+
/**
|
|
26987
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
26988
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
26989
|
+
* make an operator wonder about.
|
|
26990
|
+
*/
|
|
26991
|
+
var TransportPlaneCountsSchema = object({
|
|
26992
|
+
http: number(),
|
|
26993
|
+
ws: number(),
|
|
26994
|
+
mesh: number(),
|
|
26995
|
+
unknown: number()
|
|
26996
|
+
});
|
|
26997
|
+
/**
|
|
26998
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
26999
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
27000
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
27001
|
+
* already prints - never a token, never an `Authorization` header.
|
|
27002
|
+
*
|
|
27003
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
27004
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
27005
|
+
* stream look like a storm.
|
|
27006
|
+
*/
|
|
27007
|
+
var RequestCensusGroupSchema = object({
|
|
27008
|
+
plane: TransportPlaneSchema,
|
|
27009
|
+
procedure: string(),
|
|
27010
|
+
userAgent: string(),
|
|
27011
|
+
ip: string(),
|
|
27012
|
+
principal: string(),
|
|
27013
|
+
calls: number(),
|
|
27014
|
+
subscriptions: number(),
|
|
27015
|
+
perMin: number()
|
|
27016
|
+
});
|
|
27017
|
+
/**
|
|
27018
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
27019
|
+
*
|
|
27020
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
27021
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
27022
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
27023
|
+
*/
|
|
27024
|
+
var RequestCensusProcedureSchema = object({
|
|
27025
|
+
procedure: string(),
|
|
27026
|
+
calls: number(),
|
|
27027
|
+
/**
|
|
27028
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
27029
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
27030
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
27031
|
+
*/
|
|
27032
|
+
planes: TransportPlaneCountsSchema,
|
|
27033
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
27034
|
+
subscriptions: number(),
|
|
27035
|
+
perMin: number()
|
|
27036
|
+
});
|
|
27037
|
+
/**
|
|
27038
|
+
* The census as an operator sees it.
|
|
27039
|
+
*
|
|
27040
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
27041
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
27042
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
27043
|
+
* like one that succeeded.
|
|
27044
|
+
*/
|
|
27045
|
+
var RequestCensusStatusSchema = object({
|
|
27046
|
+
armed: boolean(),
|
|
27047
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
27048
|
+
elapsedMs: number(),
|
|
27049
|
+
/** The window actually armed, after the server clamped the request. */
|
|
27050
|
+
windowMs: number(),
|
|
27051
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
27052
|
+
armedUntilMs: number(),
|
|
27053
|
+
httpRequests: number(),
|
|
27054
|
+
batchedRequests: number(),
|
|
27055
|
+
/**
|
|
27056
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
27057
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
27058
|
+
* the number comparable with a store-side call count.
|
|
27059
|
+
*/
|
|
27060
|
+
procedureCalls: number(),
|
|
27061
|
+
/**
|
|
27062
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
27063
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
27064
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
27065
|
+
*/
|
|
27066
|
+
planes: TransportPlaneCountsSchema,
|
|
27067
|
+
/**
|
|
27068
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
27069
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
27070
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
27071
|
+
*/
|
|
27072
|
+
planesExplainTotal: boolean(),
|
|
27073
|
+
/**
|
|
27074
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
27075
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
27076
|
+
* count of zero against 37 open connections says something different from a
|
|
27077
|
+
* plane with no connections at all.
|
|
27078
|
+
*/
|
|
27079
|
+
wsConnections: number(),
|
|
27080
|
+
/**
|
|
27081
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
27082
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
27083
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
27084
|
+
*/
|
|
27085
|
+
wsMessages: number(),
|
|
27086
|
+
/**
|
|
27087
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
27088
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
27089
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
27090
|
+
* masquerade as the storm.
|
|
27091
|
+
*/
|
|
27092
|
+
subscriptions: number(),
|
|
27093
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
27094
|
+
subscriptionStops: number(),
|
|
27095
|
+
distinctGroups: number(),
|
|
27096
|
+
/**
|
|
27097
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
27098
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
27099
|
+
* which transport they arrived on, they just lost their group row.
|
|
27100
|
+
*/
|
|
27101
|
+
unattributedCalls: number(),
|
|
27102
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
27103
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
27104
|
+
}).extend({ persisted: boolean() });
|
|
27105
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
27106
|
+
var LogLevelSchema$1 = _enum([
|
|
27107
|
+
"debug",
|
|
27108
|
+
"info",
|
|
27109
|
+
"warn",
|
|
27110
|
+
"error"
|
|
27111
|
+
]);
|
|
27112
|
+
/**
|
|
27113
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
27114
|
+
*
|
|
27115
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
27116
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
27117
|
+
*/
|
|
27118
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
27119
|
+
/**
|
|
27120
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
27121
|
+
* layer that carries an explicit value wins.
|
|
27122
|
+
*
|
|
27123
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
27124
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
27125
|
+
* grow later would force every consumer of this document to change with it.
|
|
27126
|
+
* Nothing returns `component` today.
|
|
27127
|
+
*/
|
|
27128
|
+
var LoggingScopeKindSchema = _enum([
|
|
27129
|
+
"cluster",
|
|
27130
|
+
"node",
|
|
27131
|
+
"component"
|
|
27132
|
+
]);
|
|
27133
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
27134
|
+
var LoggingLevelSourceSchema = _enum([
|
|
27135
|
+
"default",
|
|
27136
|
+
"cluster",
|
|
27137
|
+
"node",
|
|
27138
|
+
"component"
|
|
27139
|
+
]);
|
|
27140
|
+
/**
|
|
27141
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
27142
|
+
*
|
|
27143
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
27144
|
+
* difference between "this node is at `info` because I decided it" and
|
|
27145
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
27146
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
27147
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
27148
|
+
*/
|
|
27149
|
+
var LoggingLevelLayerSchema = object({
|
|
27150
|
+
scope: LoggingScopeKindSchema,
|
|
27151
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
27152
|
+
nodeId: string().nullable(),
|
|
27153
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
27154
|
+
level: LogLevelSchema$1.nullable()
|
|
27155
|
+
});
|
|
27156
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
27157
|
+
var LoggingEffectiveSchema = object({
|
|
27158
|
+
level: LogLevelSchema$1,
|
|
27159
|
+
levelSource: LoggingLevelSourceSchema
|
|
27160
|
+
});
|
|
27161
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
27162
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
27163
|
+
/**
|
|
27164
|
+
* An armed diagnostic, with its DEADLINE.
|
|
27165
|
+
*
|
|
27166
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
27167
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
27168
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
27169
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
27170
|
+
*/
|
|
27171
|
+
var DiagnosticWindowSchema = object({
|
|
27172
|
+
id: DiagnosticIdSchema,
|
|
27173
|
+
armed: boolean(),
|
|
27174
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
27175
|
+
armedUntilMs: number(),
|
|
27176
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
27177
|
+
remainingMs: number(),
|
|
27178
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
27179
|
+
* i.e. whether this window would survive a restart. */
|
|
27180
|
+
persisted: boolean()
|
|
27181
|
+
});
|
|
27182
|
+
/**
|
|
27183
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
27184
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
27185
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
27186
|
+
*/
|
|
27187
|
+
var DiagnosticWindowPatchSchema = object({
|
|
27188
|
+
id: DiagnosticIdSchema,
|
|
27189
|
+
armMs: number().int().min(0),
|
|
27190
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
27191
|
+
reportEveryMs: number().int().positive().optional()
|
|
27192
|
+
});
|
|
27193
|
+
/**
|
|
27194
|
+
* A PATCH, and patches MERGE.
|
|
27195
|
+
*
|
|
27196
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
27197
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
27198
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
27199
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
27200
|
+
* turns into an erased one.
|
|
27201
|
+
*/
|
|
27202
|
+
var LoggingSettingsPatchSchema = object({
|
|
27203
|
+
/**
|
|
27204
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
27205
|
+
* addressed scope so it inherits again. A value sets it.
|
|
27206
|
+
*/
|
|
27207
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
27208
|
+
/**
|
|
27209
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
27210
|
+
* keeps running — a patch is never a full replacement.
|
|
27211
|
+
*/
|
|
27212
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
27213
|
+
});
|
|
27214
|
+
/**
|
|
27215
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
27216
|
+
*
|
|
27217
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
27218
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
27219
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
27220
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
27221
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
27222
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
27223
|
+
* layer selector needs a name the transport does not already own.
|
|
27224
|
+
*/
|
|
27225
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
27226
|
+
var SetLoggingSettingsInputSchema = object({
|
|
27227
|
+
scopeNodeId: string().optional(),
|
|
27228
|
+
patch: LoggingSettingsPatchSchema
|
|
27229
|
+
});
|
|
27230
|
+
/**
|
|
27231
|
+
* The whole document, as read and as returned after every write.
|
|
27232
|
+
*
|
|
27233
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
27234
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
27235
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
27236
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
27237
|
+
* survive a restart.
|
|
27238
|
+
*/
|
|
27239
|
+
var LoggingSettingsStateSchema = object({
|
|
27240
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
27241
|
+
scopeNodeId: string().nullable(),
|
|
27242
|
+
effective: LoggingEffectiveSchema,
|
|
27243
|
+
explicit: LoggingExplicitSchema,
|
|
27244
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
27245
|
+
persisted: boolean()
|
|
27246
|
+
});
|
|
26787
27247
|
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(), {
|
|
26788
27248
|
kind: "mutation",
|
|
26789
27249
|
auth: "admin"
|
|
@@ -26796,6 +27256,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26796
27256
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26797
27257
|
kind: "mutation",
|
|
26798
27258
|
auth: "admin"
|
|
27259
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27260
|
+
kind: "mutation",
|
|
27261
|
+
auth: "admin"
|
|
26799
27262
|
});
|
|
26800
27263
|
object({
|
|
26801
27264
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -32643,6 +33106,18 @@ Object.freeze({
|
|
|
32643
33106
|
addonId: null,
|
|
32644
33107
|
access: "create"
|
|
32645
33108
|
},
|
|
33109
|
+
"system.getLoggingSettings": {
|
|
33110
|
+
capName: "system",
|
|
33111
|
+
capScope: "system",
|
|
33112
|
+
addonId: null,
|
|
33113
|
+
access: "view"
|
|
33114
|
+
},
|
|
33115
|
+
"system.getRequestCensus": {
|
|
33116
|
+
capName: "system",
|
|
33117
|
+
capScope: "system",
|
|
33118
|
+
addonId: null,
|
|
33119
|
+
access: "view"
|
|
33120
|
+
},
|
|
32646
33121
|
"system.getRetentionConfig": {
|
|
32647
33122
|
capName: "system",
|
|
32648
33123
|
capScope: "system",
|
|
@@ -32673,6 +33148,12 @@ Object.freeze({
|
|
|
32673
33148
|
addonId: null,
|
|
32674
33149
|
access: "view"
|
|
32675
33150
|
},
|
|
33151
|
+
"system.setLoggingSettings": {
|
|
33152
|
+
capName: "system",
|
|
33153
|
+
capScope: "system",
|
|
33154
|
+
addonId: null,
|
|
33155
|
+
access: "create"
|
|
33156
|
+
},
|
|
32676
33157
|
"system.setRetentionConfig": {
|
|
32677
33158
|
capName: "system",
|
|
32678
33159
|
capScope: "system",
|
|
@@ -33828,6 +34309,10 @@ Object.freeze({
|
|
|
33828
34309
|
name: "deviceId",
|
|
33829
34310
|
form: "single",
|
|
33830
34311
|
optional: true
|
|
34312
|
+
}, {
|
|
34313
|
+
name: "deviceIds",
|
|
34314
|
+
form: "array",
|
|
34315
|
+
optional: true
|
|
33831
34316
|
}],
|
|
33832
34317
|
"fanControl.setDirection": [{
|
|
33833
34318
|
name: "deviceId",
|
|
@@ -35438,7 +35923,38 @@ object({
|
|
|
35438
35923
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
35439
35924
|
* reproduce that.
|
|
35440
35925
|
*/
|
|
35441
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35926
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35927
|
+
/**
|
|
35928
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35929
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35930
|
+
* subject tiles, on frames that detected something.
|
|
35931
|
+
*
|
|
35932
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35933
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35934
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35935
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35936
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35937
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35938
|
+
*
|
|
35939
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35940
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35941
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35942
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35943
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35944
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35945
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35946
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35947
|
+
* whole shape exists to avoid.
|
|
35948
|
+
*
|
|
35949
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35950
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35951
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35952
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35953
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35954
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35955
|
+
* nothing.
|
|
35956
|
+
*/
|
|
35957
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
35442
35958
|
});
|
|
35443
35959
|
/**
|
|
35444
35960
|
* The values in force when the operator has set nothing.
|
|
@@ -35454,12 +35970,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
35454
35970
|
budgetMb: 1024,
|
|
35455
35971
|
activityMs: 15e3,
|
|
35456
35972
|
tileBudgetMb: 64,
|
|
35973
|
+
sceneBudgetMb: 48,
|
|
35457
35974
|
admission: "inferred"
|
|
35458
35975
|
};
|
|
35459
35976
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
35460
35977
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
35461
35978
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
35462
35979
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35980
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
35463
35981
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
35464
35982
|
var MB = 1024 * 1024;
|
|
35465
35983
|
1024 * MB, 3072 * MB;
|