@camstack/addon-remote-storage 1.2.29 → 1.2.31
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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-DNv3D9pu.js → shared-Dry6vSuS.js} +572 -61
- package/dist/{shared-bMDvPUOr.mjs → shared-Mt26R5Yt.mjs} +572 -61
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -7534,6 +7534,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7534
7534
|
/** Max rows returned, newest-first. */
|
|
7535
7535
|
limit: number().int().min(1).max(1e3).optional()
|
|
7536
7536
|
});
|
|
7537
|
+
var LabelDefinitionSchema = object({
|
|
7538
|
+
id: string(),
|
|
7539
|
+
name: string(),
|
|
7540
|
+
category: string().optional(),
|
|
7541
|
+
description: string().optional(),
|
|
7542
|
+
icon: string().optional()
|
|
7543
|
+
});
|
|
7544
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7545
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7546
|
+
"person",
|
|
7547
|
+
"vehicle",
|
|
7548
|
+
"animal",
|
|
7549
|
+
"package"
|
|
7550
|
+
];
|
|
7551
|
+
/**
|
|
7552
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7553
|
+
* un operatore può selezionare.
|
|
7554
|
+
*
|
|
7555
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7556
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7557
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7558
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7559
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7560
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7561
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7562
|
+
*
|
|
7563
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7564
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7565
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7566
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7567
|
+
* successiva.
|
|
7568
|
+
*/
|
|
7569
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7570
|
+
"person",
|
|
7571
|
+
"vehicle",
|
|
7572
|
+
"animal"
|
|
7573
|
+
];
|
|
7574
|
+
/**
|
|
7575
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7576
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7577
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7578
|
+
* detection pipeline executor actually routes.
|
|
7579
|
+
*
|
|
7580
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7581
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7582
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7583
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7584
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7585
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7586
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7587
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7588
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7589
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7590
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7591
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7592
|
+
*/
|
|
7593
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7594
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7595
|
+
preserveOriginal: boolean()
|
|
7596
|
+
});
|
|
7537
7597
|
/**
|
|
7538
7598
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7539
7599
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7556,10 +7616,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7556
7616
|
"events",
|
|
7557
7617
|
"continuous"
|
|
7558
7618
|
]);
|
|
7619
|
+
/**
|
|
7620
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7621
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7622
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7623
|
+
*/
|
|
7624
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7625
|
+
/**
|
|
7626
|
+
* True quando `values` non ripete un elemento.
|
|
7627
|
+
*
|
|
7628
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7629
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7630
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7631
|
+
*/
|
|
7632
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7559
7633
|
/** Which detectors trigger an `events`-mode band. */
|
|
7560
7634
|
var RecordingTriggersSchema = object({
|
|
7561
7635
|
motion: boolean().optional(),
|
|
7562
|
-
audioThresholdDbfs: number().optional()
|
|
7636
|
+
audioThresholdDbfs: number().optional(),
|
|
7637
|
+
/**
|
|
7638
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7639
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7640
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7641
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7642
|
+
*
|
|
7643
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7644
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7645
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7646
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7647
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7648
|
+
*/
|
|
7649
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7650
|
+
/**
|
|
7651
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7652
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7653
|
+
* `objectClasses`.
|
|
7654
|
+
*
|
|
7655
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7656
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7657
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7658
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7659
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7660
|
+
*
|
|
7661
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7662
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7663
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7664
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7665
|
+
* registrare.
|
|
7666
|
+
*/
|
|
7667
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7563
7668
|
});
|
|
7564
7669
|
/**
|
|
7565
7670
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8011,41 +8116,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8011
8116
|
*/
|
|
8012
8117
|
debug: boolean().optional()
|
|
8013
8118
|
});
|
|
8014
|
-
var LabelDefinitionSchema = object({
|
|
8015
|
-
id: string(),
|
|
8016
|
-
name: string(),
|
|
8017
|
-
category: string().optional(),
|
|
8018
|
-
description: string().optional(),
|
|
8019
|
-
icon: string().optional()
|
|
8020
|
-
});
|
|
8021
|
-
/**
|
|
8022
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8023
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8024
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8025
|
-
* detection pipeline executor actually routes.
|
|
8026
|
-
*
|
|
8027
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8028
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8029
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8030
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8031
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8032
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8033
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8034
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8035
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8036
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8037
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8038
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8039
|
-
*/
|
|
8040
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8041
|
-
mapping: record(string(), _enum([
|
|
8042
|
-
"person",
|
|
8043
|
-
"vehicle",
|
|
8044
|
-
"animal",
|
|
8045
|
-
"package"
|
|
8046
|
-
])),
|
|
8047
|
-
preserveOriginal: boolean()
|
|
8048
|
-
});
|
|
8049
8119
|
var MODEL_FORMATS = [
|
|
8050
8120
|
"onnx",
|
|
8051
8121
|
"coreml",
|
|
@@ -15488,7 +15558,23 @@ var NcHistoryEntrySchema = object({
|
|
|
15488
15558
|
updatedAt: number(),
|
|
15489
15559
|
/** Failure detail — present on a `dead` row. */
|
|
15490
15560
|
error: string().optional(),
|
|
15491
|
-
subject: NcHistorySubjectSchema
|
|
15561
|
+
subject: NcHistorySubjectSchema,
|
|
15562
|
+
/**
|
|
15563
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
15564
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
15565
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
15566
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
15567
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
15568
|
+
*
|
|
15569
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
15570
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
15571
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
15572
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
15573
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
15574
|
+
* Assistant export) must render as "no image right now", never as a
|
|
15575
|
+
* broken link.
|
|
15576
|
+
*/
|
|
15577
|
+
artifactIds: array(string().min(1)).optional()
|
|
15492
15578
|
});
|
|
15493
15579
|
/**
|
|
15494
15580
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -15715,7 +15801,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
15715
15801
|
}), method(object({}), object({
|
|
15716
15802
|
catalog: array(NcConditionDescriptorSchema),
|
|
15717
15803
|
taxonomy: NcTaxonomySchema.optional()
|
|
15718
|
-
})), 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 }), {
|
|
15804
|
+
})), 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 }), {
|
|
15719
15805
|
kind: "mutation",
|
|
15720
15806
|
caller: "required"
|
|
15721
15807
|
}), method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
@@ -20863,7 +20949,7 @@ var lifecycleJobSchema = object({
|
|
|
20863
20949
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
20864
20950
|
* as every other cap.
|
|
20865
20951
|
*/
|
|
20866
|
-
var LogLevelSchema$
|
|
20952
|
+
var LogLevelSchema$2 = _enum([
|
|
20867
20953
|
"debug",
|
|
20868
20954
|
"info",
|
|
20869
20955
|
"warn",
|
|
@@ -21070,7 +21156,7 @@ var CustomActionInputSchema = object({
|
|
|
21070
21156
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21071
21157
|
addonId: string(),
|
|
21072
21158
|
limit: number().min(1).max(500).default(100),
|
|
21073
|
-
level: LogLevelSchema$
|
|
21159
|
+
level: LogLevelSchema$2.optional()
|
|
21074
21160
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21075
21161
|
packageName: string(),
|
|
21076
21162
|
version: string().optional()
|
|
@@ -21168,7 +21254,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21168
21254
|
auth: "admin"
|
|
21169
21255
|
}), method(object({
|
|
21170
21256
|
addonId: string(),
|
|
21171
|
-
level: LogLevelSchema$
|
|
21257
|
+
level: LogLevelSchema$2.optional()
|
|
21172
21258
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21173
21259
|
object({
|
|
21174
21260
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22162,6 +22248,35 @@ var FaceFilterEnum = _enum([
|
|
|
22162
22248
|
"identified",
|
|
22163
22249
|
"all"
|
|
22164
22250
|
]);
|
|
22251
|
+
/**
|
|
22252
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22253
|
+
*
|
|
22254
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22255
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22256
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22257
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22258
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22259
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22260
|
+
*
|
|
22261
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22262
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22263
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22264
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22265
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22266
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22267
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22268
|
+
* backend's NULL-collation accident.
|
|
22269
|
+
*/
|
|
22270
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22271
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22272
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22273
|
+
* never leaves the server. */
|
|
22274
|
+
var FaceClusterSchema = object({
|
|
22275
|
+
faceIds: array(string()).readonly(),
|
|
22276
|
+
representativeFaceId: string(),
|
|
22277
|
+
size: number().int(),
|
|
22278
|
+
cohesion: number()
|
|
22279
|
+
});
|
|
22165
22280
|
var MediaFileLiteSchema$1 = object({
|
|
22166
22281
|
key: string(),
|
|
22167
22282
|
kind: string(),
|
|
@@ -22208,24 +22323,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22208
22323
|
kind: "mutation",
|
|
22209
22324
|
auth: "admin"
|
|
22210
22325
|
}), method(object({
|
|
22211
|
-
/**
|
|
22326
|
+
/**
|
|
22327
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22328
|
+
*
|
|
22329
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22330
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22331
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22332
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22333
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22334
|
+
*/
|
|
22212
22335
|
deviceId: number().int().optional(),
|
|
22336
|
+
/**
|
|
22337
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22338
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22339
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22340
|
+
* about to discard).
|
|
22341
|
+
*
|
|
22342
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22343
|
+
* "every camera". A request for no devices is a request, not an
|
|
22344
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22345
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22346
|
+
*
|
|
22347
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22348
|
+
*/
|
|
22349
|
+
deviceIds: array(number().int()).optional(),
|
|
22213
22350
|
limit: number().int().positive().optional(),
|
|
22214
22351
|
filter: FaceFilterEnum.optional(),
|
|
22215
22352
|
/**
|
|
22216
|
-
*
|
|
22217
|
-
*
|
|
22353
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22354
|
+
* Absent means no lower bound.
|
|
22355
|
+
*/
|
|
22356
|
+
since: number().int().optional(),
|
|
22357
|
+
/**
|
|
22358
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22359
|
+
* Absent means no upper bound.
|
|
22360
|
+
*/
|
|
22361
|
+
until: number().int().optional(),
|
|
22362
|
+
/**
|
|
22363
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22364
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22365
|
+
* that does not ask.
|
|
22218
22366
|
*
|
|
22219
|
-
*
|
|
22220
|
-
*
|
|
22221
|
-
* the browser cache the images.
|
|
22367
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
22368
|
+
* does under `'suggestionConfidence'`.
|
|
22222
22369
|
*
|
|
22223
|
-
*
|
|
22224
|
-
*
|
|
22225
|
-
*
|
|
22226
|
-
*
|
|
22227
|
-
*
|
|
22228
|
-
|
|
22370
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
22371
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
22372
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
22373
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
22374
|
+
* with {@link since} / {@link until}.
|
|
22375
|
+
*/
|
|
22376
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
22377
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
22378
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
22379
|
+
/**
|
|
22380
|
+
* Inline the base64 crop on every row.
|
|
22381
|
+
*
|
|
22382
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
22383
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
22384
|
+
* this for every gallery, and which records why the inline shape had
|
|
22385
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
22386
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
22387
|
+
* that describes the old design reads as permission to rely on it.
|
|
22388
|
+
*
|
|
22389
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
22390
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
22391
|
+
* cached and ETagged.
|
|
22229
22392
|
*/
|
|
22230
22393
|
includeCrops: boolean().optional()
|
|
22231
22394
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22261,13 +22424,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22261
22424
|
}), method(object({
|
|
22262
22425
|
threshold: number().min(0).max(1).optional(),
|
|
22263
22426
|
minClusterSize: number().int().min(2).optional(),
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22427
|
+
/**
|
|
22428
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
22429
|
+
* which read as though it bounded the work — it never did.
|
|
22430
|
+
*
|
|
22431
|
+
* Wins over {@link limit} when both are sent.
|
|
22432
|
+
*/
|
|
22433
|
+
maxClusters: number().int().positive().optional(),
|
|
22434
|
+
/**
|
|
22435
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
22436
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
22437
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
22438
|
+
*/
|
|
22439
|
+
limit: number().int().positive().optional(),
|
|
22440
|
+
/**
|
|
22441
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
22442
|
+
* POOL, not the result.
|
|
22443
|
+
*
|
|
22444
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
22445
|
+
* used to read every unassigned face on the hub no matter what the
|
|
22446
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
22447
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
22448
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
22449
|
+
*
|
|
22450
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
22451
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
22452
|
+
* sample it randomly.
|
|
22453
|
+
*
|
|
22454
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
22455
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
22456
|
+
* unbounded scan can never come back as the table grows.
|
|
22457
|
+
*/
|
|
22458
|
+
maxFacesScanned: number().int().positive().optional()
|
|
22459
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22271
22460
|
/**
|
|
22272
22461
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22273
22462
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25067,6 +25256,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
25067
25256
|
/** Media ms the returned fragment covers. */
|
|
25068
25257
|
gopDurMs: number()
|
|
25069
25258
|
});
|
|
25259
|
+
/**
|
|
25260
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
25261
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
25262
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
25263
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
25264
|
+
*
|
|
25265
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
25266
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
25267
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
25268
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
25269
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
25270
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
25271
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
25272
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
25273
|
+
* bytes nothing has proven decodable.
|
|
25274
|
+
*/
|
|
25275
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
25276
|
+
kind: literal("ok"),
|
|
25277
|
+
data: _instanceof(Uint8Array),
|
|
25278
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
25279
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
25280
|
+
gopStartMs: number(),
|
|
25281
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
25282
|
+
gopDurMs: number(),
|
|
25283
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
25284
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
25285
|
+
reachesRequestedEnd: boolean()
|
|
25286
|
+
}), object({
|
|
25287
|
+
kind: literal("spans-multiple-segments"),
|
|
25288
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
25289
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
25290
|
+
segmentEndMs: number()
|
|
25291
|
+
})]);
|
|
25070
25292
|
method(object({
|
|
25071
25293
|
deviceId: number(),
|
|
25072
25294
|
fromMs: number(),
|
|
@@ -25117,6 +25339,15 @@ method(object({
|
|
|
25117
25339
|
}), ReadGopBytesResultSchema, {
|
|
25118
25340
|
kind: "query",
|
|
25119
25341
|
auth: "admin"
|
|
25342
|
+
}), method(object({
|
|
25343
|
+
deviceId: number(),
|
|
25344
|
+
profile: string(),
|
|
25345
|
+
startMs: number(),
|
|
25346
|
+
fromMs: number(),
|
|
25347
|
+
toMs: number()
|
|
25348
|
+
}), ReadWindowBytesResultSchema, {
|
|
25349
|
+
kind: "query",
|
|
25350
|
+
auth: "admin"
|
|
25120
25351
|
}), method(object({
|
|
25121
25352
|
deviceId: number(),
|
|
25122
25353
|
config: RecordingConfigSchema
|
|
@@ -25948,6 +26179,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
25948
26179
|
latitude: number().min(-90).max(90),
|
|
25949
26180
|
longitude: number().min(-180).max(180)
|
|
25950
26181
|
}).nullable();
|
|
26182
|
+
/**
|
|
26183
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26184
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26185
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26186
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26187
|
+
*/
|
|
26188
|
+
var RequestCensusGroupSchema = object({
|
|
26189
|
+
procedure: string(),
|
|
26190
|
+
userAgent: string(),
|
|
26191
|
+
ip: string(),
|
|
26192
|
+
principal: string(),
|
|
26193
|
+
calls: number(),
|
|
26194
|
+
perMin: number()
|
|
26195
|
+
});
|
|
26196
|
+
/**
|
|
26197
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26198
|
+
*
|
|
26199
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26200
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26201
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26202
|
+
*/
|
|
26203
|
+
var RequestCensusProcedureSchema = object({
|
|
26204
|
+
procedure: string(),
|
|
26205
|
+
calls: number(),
|
|
26206
|
+
perMin: number()
|
|
26207
|
+
});
|
|
26208
|
+
/**
|
|
26209
|
+
* The census as an operator sees it.
|
|
26210
|
+
*
|
|
26211
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26212
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26213
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26214
|
+
* like one that succeeded.
|
|
26215
|
+
*/
|
|
26216
|
+
var RequestCensusStatusSchema = object({
|
|
26217
|
+
armed: boolean(),
|
|
26218
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26219
|
+
elapsedMs: number(),
|
|
26220
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26221
|
+
windowMs: number(),
|
|
26222
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26223
|
+
armedUntilMs: number(),
|
|
26224
|
+
httpRequests: number(),
|
|
26225
|
+
batchedRequests: number(),
|
|
26226
|
+
/**
|
|
26227
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26228
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26229
|
+
* the number comparable with a store-side call count.
|
|
26230
|
+
*/
|
|
26231
|
+
procedureCalls: number(),
|
|
26232
|
+
/**
|
|
26233
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26234
|
+
* transport resolves one context per connection - but the number that says
|
|
26235
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26236
|
+
*/
|
|
26237
|
+
wsConnections: number(),
|
|
26238
|
+
distinctGroups: number(),
|
|
26239
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26240
|
+
* cardinality bound. */
|
|
26241
|
+
unattributedCalls: number(),
|
|
26242
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26243
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26244
|
+
}).extend({ persisted: boolean() });
|
|
26245
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26246
|
+
var LogLevelSchema$1 = _enum([
|
|
26247
|
+
"debug",
|
|
26248
|
+
"info",
|
|
26249
|
+
"warn",
|
|
26250
|
+
"error"
|
|
26251
|
+
]);
|
|
26252
|
+
/**
|
|
26253
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26254
|
+
*
|
|
26255
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26256
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26257
|
+
*/
|
|
26258
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26259
|
+
/**
|
|
26260
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26261
|
+
* layer that carries an explicit value wins.
|
|
26262
|
+
*
|
|
26263
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26264
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26265
|
+
* grow later would force every consumer of this document to change with it.
|
|
26266
|
+
* Nothing returns `component` today.
|
|
26267
|
+
*/
|
|
26268
|
+
var LoggingScopeKindSchema = _enum([
|
|
26269
|
+
"cluster",
|
|
26270
|
+
"node",
|
|
26271
|
+
"component"
|
|
26272
|
+
]);
|
|
26273
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26274
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26275
|
+
"default",
|
|
26276
|
+
"cluster",
|
|
26277
|
+
"node",
|
|
26278
|
+
"component"
|
|
26279
|
+
]);
|
|
26280
|
+
/**
|
|
26281
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26282
|
+
*
|
|
26283
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26284
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26285
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26286
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26287
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26288
|
+
*/
|
|
26289
|
+
var LoggingLevelLayerSchema = object({
|
|
26290
|
+
scope: LoggingScopeKindSchema,
|
|
26291
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26292
|
+
nodeId: string().nullable(),
|
|
26293
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26294
|
+
level: LogLevelSchema$1.nullable()
|
|
26295
|
+
});
|
|
26296
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26297
|
+
var LoggingEffectiveSchema = object({
|
|
26298
|
+
level: LogLevelSchema$1,
|
|
26299
|
+
levelSource: LoggingLevelSourceSchema
|
|
26300
|
+
});
|
|
26301
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26302
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26303
|
+
/**
|
|
26304
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26305
|
+
*
|
|
26306
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26307
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26308
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26309
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26310
|
+
*/
|
|
26311
|
+
var DiagnosticWindowSchema = object({
|
|
26312
|
+
id: DiagnosticIdSchema,
|
|
26313
|
+
armed: boolean(),
|
|
26314
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26315
|
+
armedUntilMs: number(),
|
|
26316
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26317
|
+
remainingMs: number(),
|
|
26318
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26319
|
+
* i.e. whether this window would survive a restart. */
|
|
26320
|
+
persisted: boolean()
|
|
26321
|
+
});
|
|
26322
|
+
/**
|
|
26323
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26324
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26325
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26326
|
+
*/
|
|
26327
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26328
|
+
id: DiagnosticIdSchema,
|
|
26329
|
+
armMs: number().int().min(0),
|
|
26330
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26331
|
+
reportEveryMs: number().int().positive().optional()
|
|
26332
|
+
});
|
|
26333
|
+
/**
|
|
26334
|
+
* A PATCH, and patches MERGE.
|
|
26335
|
+
*
|
|
26336
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26337
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26338
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26339
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26340
|
+
* turns into an erased one.
|
|
26341
|
+
*/
|
|
26342
|
+
var LoggingSettingsPatchSchema = object({
|
|
26343
|
+
/**
|
|
26344
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26345
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26346
|
+
*/
|
|
26347
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26348
|
+
/**
|
|
26349
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26350
|
+
* keeps running — a patch is never a full replacement.
|
|
26351
|
+
*/
|
|
26352
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26353
|
+
});
|
|
26354
|
+
/**
|
|
26355
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26356
|
+
*
|
|
26357
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26358
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26359
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26360
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26361
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26362
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26363
|
+
* layer selector needs a name the transport does not already own.
|
|
26364
|
+
*/
|
|
26365
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26366
|
+
var SetLoggingSettingsInputSchema = object({
|
|
26367
|
+
scopeNodeId: string().optional(),
|
|
26368
|
+
patch: LoggingSettingsPatchSchema
|
|
26369
|
+
});
|
|
26370
|
+
/**
|
|
26371
|
+
* The whole document, as read and as returned after every write.
|
|
26372
|
+
*
|
|
26373
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
26374
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
26375
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
26376
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
26377
|
+
* survive a restart.
|
|
26378
|
+
*/
|
|
26379
|
+
var LoggingSettingsStateSchema = object({
|
|
26380
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
26381
|
+
scopeNodeId: string().nullable(),
|
|
26382
|
+
effective: LoggingEffectiveSchema,
|
|
26383
|
+
explicit: LoggingExplicitSchema,
|
|
26384
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
26385
|
+
persisted: boolean()
|
|
26386
|
+
});
|
|
25951
26387
|
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(), {
|
|
25952
26388
|
kind: "mutation",
|
|
25953
26389
|
auth: "admin"
|
|
@@ -25960,6 +26396,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
25960
26396
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
25961
26397
|
kind: "mutation",
|
|
25962
26398
|
auth: "admin"
|
|
26399
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26400
|
+
kind: "mutation",
|
|
26401
|
+
auth: "admin"
|
|
25963
26402
|
});
|
|
25964
26403
|
object({
|
|
25965
26404
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -29535,6 +29974,12 @@ Object.freeze({
|
|
|
29535
29974
|
addonId: null,
|
|
29536
29975
|
access: "view"
|
|
29537
29976
|
},
|
|
29977
|
+
"notificationRules.resolveArtifactUrl": {
|
|
29978
|
+
capName: "notification-rules",
|
|
29979
|
+
capScope: "system",
|
|
29980
|
+
addonId: null,
|
|
29981
|
+
access: "view"
|
|
29982
|
+
},
|
|
29538
29983
|
"notificationRules.setAlarmConfig": {
|
|
29539
29984
|
capName: "notification-rules",
|
|
29540
29985
|
capScope: "system",
|
|
@@ -30939,6 +31384,12 @@ Object.freeze({
|
|
|
30939
31384
|
addonId: null,
|
|
30940
31385
|
access: "view"
|
|
30941
31386
|
},
|
|
31387
|
+
"recording.readWindowBytes": {
|
|
31388
|
+
capName: "recording",
|
|
31389
|
+
capScope: "system",
|
|
31390
|
+
addonId: null,
|
|
31391
|
+
access: "view"
|
|
31392
|
+
},
|
|
30942
31393
|
"recording.refreshStorageLocationsForMigration": {
|
|
30943
31394
|
capName: "recording",
|
|
30944
31395
|
capScope: "system",
|
|
@@ -31779,6 +32230,18 @@ Object.freeze({
|
|
|
31779
32230
|
addonId: null,
|
|
31780
32231
|
access: "create"
|
|
31781
32232
|
},
|
|
32233
|
+
"system.getLoggingSettings": {
|
|
32234
|
+
capName: "system",
|
|
32235
|
+
capScope: "system",
|
|
32236
|
+
addonId: null,
|
|
32237
|
+
access: "view"
|
|
32238
|
+
},
|
|
32239
|
+
"system.getRequestCensus": {
|
|
32240
|
+
capName: "system",
|
|
32241
|
+
capScope: "system",
|
|
32242
|
+
addonId: null,
|
|
32243
|
+
access: "view"
|
|
32244
|
+
},
|
|
31782
32245
|
"system.getRetentionConfig": {
|
|
31783
32246
|
capName: "system",
|
|
31784
32247
|
capScope: "system",
|
|
@@ -31809,6 +32272,12 @@ Object.freeze({
|
|
|
31809
32272
|
addonId: null,
|
|
31810
32273
|
access: "view"
|
|
31811
32274
|
},
|
|
32275
|
+
"system.setLoggingSettings": {
|
|
32276
|
+
capName: "system",
|
|
32277
|
+
capScope: "system",
|
|
32278
|
+
addonId: null,
|
|
32279
|
+
access: "create"
|
|
32280
|
+
},
|
|
31812
32281
|
"system.setRetentionConfig": {
|
|
31813
32282
|
capName: "system",
|
|
31814
32283
|
capScope: "system",
|
|
@@ -32964,6 +33433,10 @@ Object.freeze({
|
|
|
32964
33433
|
name: "deviceId",
|
|
32965
33434
|
form: "single",
|
|
32966
33435
|
optional: true
|
|
33436
|
+
}, {
|
|
33437
|
+
name: "deviceIds",
|
|
33438
|
+
form: "array",
|
|
33439
|
+
optional: true
|
|
32967
33440
|
}],
|
|
32968
33441
|
"fanControl.setDirection": [{
|
|
32969
33442
|
name: "deviceId",
|
|
@@ -33769,6 +34242,11 @@ Object.freeze({
|
|
|
33769
34242
|
form: "single",
|
|
33770
34243
|
optional: false
|
|
33771
34244
|
}],
|
|
34245
|
+
"recording.readWindowBytes": [{
|
|
34246
|
+
name: "deviceId",
|
|
34247
|
+
form: "single",
|
|
34248
|
+
optional: false
|
|
34249
|
+
}],
|
|
33772
34250
|
"recording.relocateFootage": [{
|
|
33773
34251
|
name: "deviceId",
|
|
33774
34252
|
form: "single",
|
|
@@ -34569,7 +35047,38 @@ object({
|
|
|
34569
35047
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34570
35048
|
* reproduce that.
|
|
34571
35049
|
*/
|
|
34572
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35050
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35051
|
+
/**
|
|
35052
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35053
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35054
|
+
* subject tiles, on frames that detected something.
|
|
35055
|
+
*
|
|
35056
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35057
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35058
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35059
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35060
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35061
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35062
|
+
*
|
|
35063
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35064
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35065
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35066
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35067
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35068
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35069
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35070
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35071
|
+
* whole shape exists to avoid.
|
|
35072
|
+
*
|
|
35073
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35074
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35075
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35076
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35077
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35078
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35079
|
+
* nothing.
|
|
35080
|
+
*/
|
|
35081
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
34573
35082
|
});
|
|
34574
35083
|
/**
|
|
34575
35084
|
* The values in force when the operator has set nothing.
|
|
@@ -34585,12 +35094,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
34585
35094
|
budgetMb: 1024,
|
|
34586
35095
|
activityMs: 15e3,
|
|
34587
35096
|
tileBudgetMb: 64,
|
|
35097
|
+
sceneBudgetMb: 48,
|
|
34588
35098
|
admission: "inferred"
|
|
34589
35099
|
};
|
|
34590
35100
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34591
35101
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34592
35102
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34593
35103
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35104
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
34594
35105
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34595
35106
|
var MB = 1024 * 1024;
|
|
34596
35107
|
1024 * MB, 3072 * MB;
|