@camstack/addon-smtp-nodemailer 1.2.30 → 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/smtp.addon.js +495 -59
- package/dist/smtp.addon.mjs +495 -59
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -7547,6 +7547,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7547
7547
|
/** Max rows returned, newest-first. */
|
|
7548
7548
|
limit: number().int().min(1).max(1e3).optional()
|
|
7549
7549
|
});
|
|
7550
|
+
var LabelDefinitionSchema = object({
|
|
7551
|
+
id: string(),
|
|
7552
|
+
name: string(),
|
|
7553
|
+
category: string().optional(),
|
|
7554
|
+
description: string().optional(),
|
|
7555
|
+
icon: string().optional()
|
|
7556
|
+
});
|
|
7557
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7558
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7559
|
+
"person",
|
|
7560
|
+
"vehicle",
|
|
7561
|
+
"animal",
|
|
7562
|
+
"package"
|
|
7563
|
+
];
|
|
7564
|
+
/**
|
|
7565
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7566
|
+
* un operatore può selezionare.
|
|
7567
|
+
*
|
|
7568
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7569
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7570
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7571
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7572
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7573
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7574
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7575
|
+
*
|
|
7576
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7577
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7578
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7579
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7580
|
+
* successiva.
|
|
7581
|
+
*/
|
|
7582
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7583
|
+
"person",
|
|
7584
|
+
"vehicle",
|
|
7585
|
+
"animal"
|
|
7586
|
+
];
|
|
7587
|
+
/**
|
|
7588
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7589
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7590
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7591
|
+
* detection pipeline executor actually routes.
|
|
7592
|
+
*
|
|
7593
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7594
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7595
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7596
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7597
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7598
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7599
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7600
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7601
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7602
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7603
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7604
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7605
|
+
*/
|
|
7606
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7607
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7608
|
+
preserveOriginal: boolean()
|
|
7609
|
+
});
|
|
7550
7610
|
/**
|
|
7551
7611
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7552
7612
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7569,10 +7629,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7569
7629
|
"events",
|
|
7570
7630
|
"continuous"
|
|
7571
7631
|
]);
|
|
7632
|
+
/**
|
|
7633
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7634
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7635
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7636
|
+
*/
|
|
7637
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7638
|
+
/**
|
|
7639
|
+
* True quando `values` non ripete un elemento.
|
|
7640
|
+
*
|
|
7641
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7642
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7643
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7644
|
+
*/
|
|
7645
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7572
7646
|
/** Which detectors trigger an `events`-mode band. */
|
|
7573
7647
|
var RecordingTriggersSchema = object({
|
|
7574
7648
|
motion: boolean().optional(),
|
|
7575
|
-
audioThresholdDbfs: number().optional()
|
|
7649
|
+
audioThresholdDbfs: number().optional(),
|
|
7650
|
+
/**
|
|
7651
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7652
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7653
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7654
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7655
|
+
*
|
|
7656
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7657
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7658
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7659
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7660
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7661
|
+
*/
|
|
7662
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7663
|
+
/**
|
|
7664
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7665
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7666
|
+
* `objectClasses`.
|
|
7667
|
+
*
|
|
7668
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7669
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7670
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7671
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7672
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7673
|
+
*
|
|
7674
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7675
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7676
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7677
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7678
|
+
* registrare.
|
|
7679
|
+
*/
|
|
7680
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7576
7681
|
});
|
|
7577
7682
|
/**
|
|
7578
7683
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8024,41 +8129,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8024
8129
|
*/
|
|
8025
8130
|
debug: boolean().optional()
|
|
8026
8131
|
});
|
|
8027
|
-
var LabelDefinitionSchema = object({
|
|
8028
|
-
id: string(),
|
|
8029
|
-
name: string(),
|
|
8030
|
-
category: string().optional(),
|
|
8031
|
-
description: string().optional(),
|
|
8032
|
-
icon: string().optional()
|
|
8033
|
-
});
|
|
8034
|
-
/**
|
|
8035
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8036
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8037
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8038
|
-
* detection pipeline executor actually routes.
|
|
8039
|
-
*
|
|
8040
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8041
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8042
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8043
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8044
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8045
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8046
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8047
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8048
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8049
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8050
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8051
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8052
|
-
*/
|
|
8053
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8054
|
-
mapping: record(string(), _enum([
|
|
8055
|
-
"person",
|
|
8056
|
-
"vehicle",
|
|
8057
|
-
"animal",
|
|
8058
|
-
"package"
|
|
8059
|
-
])),
|
|
8060
|
-
preserveOriginal: boolean()
|
|
8061
|
-
});
|
|
8062
8132
|
var MODEL_FORMATS = [
|
|
8063
8133
|
"onnx",
|
|
8064
8134
|
"coreml",
|
|
@@ -20845,7 +20915,7 @@ var lifecycleJobSchema = object({
|
|
|
20845
20915
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
20846
20916
|
* as every other cap.
|
|
20847
20917
|
*/
|
|
20848
|
-
var LogLevelSchema$
|
|
20918
|
+
var LogLevelSchema$2 = _enum([
|
|
20849
20919
|
"debug",
|
|
20850
20920
|
"info",
|
|
20851
20921
|
"warn",
|
|
@@ -21052,7 +21122,7 @@ var CustomActionInputSchema = object({
|
|
|
21052
21122
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21053
21123
|
addonId: string(),
|
|
21054
21124
|
limit: number().min(1).max(500).default(100),
|
|
21055
|
-
level: LogLevelSchema$
|
|
21125
|
+
level: LogLevelSchema$2.optional()
|
|
21056
21126
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21057
21127
|
packageName: string(),
|
|
21058
21128
|
version: string().optional()
|
|
@@ -21150,7 +21220,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21150
21220
|
auth: "admin"
|
|
21151
21221
|
}), method(object({
|
|
21152
21222
|
addonId: string(),
|
|
21153
|
-
level: LogLevelSchema$
|
|
21223
|
+
level: LogLevelSchema$2.optional()
|
|
21154
21224
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21155
21225
|
object({
|
|
21156
21226
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22144,6 +22214,35 @@ var FaceFilterEnum = _enum([
|
|
|
22144
22214
|
"identified",
|
|
22145
22215
|
"all"
|
|
22146
22216
|
]);
|
|
22217
|
+
/**
|
|
22218
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22219
|
+
*
|
|
22220
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22221
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22222
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22223
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22224
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22225
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22226
|
+
*
|
|
22227
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22228
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22229
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22230
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22231
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22232
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22233
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22234
|
+
* backend's NULL-collation accident.
|
|
22235
|
+
*/
|
|
22236
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22237
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22238
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22239
|
+
* never leaves the server. */
|
|
22240
|
+
var FaceClusterSchema = object({
|
|
22241
|
+
faceIds: array(string()).readonly(),
|
|
22242
|
+
representativeFaceId: string(),
|
|
22243
|
+
size: number().int(),
|
|
22244
|
+
cohesion: number()
|
|
22245
|
+
});
|
|
22147
22246
|
var MediaFileLiteSchema$1 = object({
|
|
22148
22247
|
key: string(),
|
|
22149
22248
|
kind: string(),
|
|
@@ -22190,24 +22289,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22190
22289
|
kind: "mutation",
|
|
22191
22290
|
auth: "admin"
|
|
22192
22291
|
}), method(object({
|
|
22193
|
-
/**
|
|
22292
|
+
/**
|
|
22293
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22294
|
+
*
|
|
22295
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22296
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22297
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22298
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22299
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22300
|
+
*/
|
|
22194
22301
|
deviceId: number().int().optional(),
|
|
22302
|
+
/**
|
|
22303
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22304
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22305
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22306
|
+
* about to discard).
|
|
22307
|
+
*
|
|
22308
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22309
|
+
* "every camera". A request for no devices is a request, not an
|
|
22310
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22311
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22312
|
+
*
|
|
22313
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22314
|
+
*/
|
|
22315
|
+
deviceIds: array(number().int()).optional(),
|
|
22195
22316
|
limit: number().int().positive().optional(),
|
|
22196
22317
|
filter: FaceFilterEnum.optional(),
|
|
22197
22318
|
/**
|
|
22198
|
-
*
|
|
22199
|
-
*
|
|
22319
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22320
|
+
* Absent means no lower bound.
|
|
22321
|
+
*/
|
|
22322
|
+
since: number().int().optional(),
|
|
22323
|
+
/**
|
|
22324
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22325
|
+
* Absent means no upper bound.
|
|
22326
|
+
*/
|
|
22327
|
+
until: number().int().optional(),
|
|
22328
|
+
/**
|
|
22329
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22330
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22331
|
+
* that does not ask.
|
|
22200
22332
|
*
|
|
22201
|
-
*
|
|
22202
|
-
*
|
|
22203
|
-
* the browser cache the images.
|
|
22333
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
22334
|
+
* does under `'suggestionConfidence'`.
|
|
22204
22335
|
*
|
|
22205
|
-
*
|
|
22206
|
-
*
|
|
22207
|
-
*
|
|
22208
|
-
*
|
|
22209
|
-
*
|
|
22210
|
-
|
|
22336
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
22337
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
22338
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
22339
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
22340
|
+
* with {@link since} / {@link until}.
|
|
22341
|
+
*/
|
|
22342
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
22343
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
22344
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
22345
|
+
/**
|
|
22346
|
+
* Inline the base64 crop on every row.
|
|
22347
|
+
*
|
|
22348
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
22349
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
22350
|
+
* this for every gallery, and which records why the inline shape had
|
|
22351
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
22352
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
22353
|
+
* that describes the old design reads as permission to rely on it.
|
|
22354
|
+
*
|
|
22355
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
22356
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
22357
|
+
* cached and ETagged.
|
|
22211
22358
|
*/
|
|
22212
22359
|
includeCrops: boolean().optional()
|
|
22213
22360
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22243,13 +22390,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22243
22390
|
}), method(object({
|
|
22244
22391
|
threshold: number().min(0).max(1).optional(),
|
|
22245
22392
|
minClusterSize: number().int().min(2).optional(),
|
|
22246
|
-
|
|
22247
|
-
|
|
22248
|
-
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22393
|
+
/**
|
|
22394
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
22395
|
+
* which read as though it bounded the work — it never did.
|
|
22396
|
+
*
|
|
22397
|
+
* Wins over {@link limit} when both are sent.
|
|
22398
|
+
*/
|
|
22399
|
+
maxClusters: number().int().positive().optional(),
|
|
22400
|
+
/**
|
|
22401
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
22402
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
22403
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
22404
|
+
*/
|
|
22405
|
+
limit: number().int().positive().optional(),
|
|
22406
|
+
/**
|
|
22407
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
22408
|
+
* POOL, not the result.
|
|
22409
|
+
*
|
|
22410
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
22411
|
+
* used to read every unassigned face on the hub no matter what the
|
|
22412
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
22413
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
22414
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
22415
|
+
*
|
|
22416
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
22417
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
22418
|
+
* sample it randomly.
|
|
22419
|
+
*
|
|
22420
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
22421
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
22422
|
+
* unbounded scan can never come back as the table grows.
|
|
22423
|
+
*/
|
|
22424
|
+
maxFacesScanned: number().int().positive().optional()
|
|
22425
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22253
22426
|
/**
|
|
22254
22427
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22255
22428
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25972,6 +26145,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
25972
26145
|
latitude: number().min(-90).max(90),
|
|
25973
26146
|
longitude: number().min(-180).max(180)
|
|
25974
26147
|
}).nullable();
|
|
26148
|
+
/**
|
|
26149
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26150
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26151
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26152
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26153
|
+
*/
|
|
26154
|
+
var RequestCensusGroupSchema = object({
|
|
26155
|
+
procedure: string(),
|
|
26156
|
+
userAgent: string(),
|
|
26157
|
+
ip: string(),
|
|
26158
|
+
principal: string(),
|
|
26159
|
+
calls: number(),
|
|
26160
|
+
perMin: number()
|
|
26161
|
+
});
|
|
26162
|
+
/**
|
|
26163
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26164
|
+
*
|
|
26165
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26166
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26167
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26168
|
+
*/
|
|
26169
|
+
var RequestCensusProcedureSchema = object({
|
|
26170
|
+
procedure: string(),
|
|
26171
|
+
calls: number(),
|
|
26172
|
+
perMin: number()
|
|
26173
|
+
});
|
|
26174
|
+
/**
|
|
26175
|
+
* The census as an operator sees it.
|
|
26176
|
+
*
|
|
26177
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26178
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26179
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26180
|
+
* like one that succeeded.
|
|
26181
|
+
*/
|
|
26182
|
+
var RequestCensusStatusSchema = object({
|
|
26183
|
+
armed: boolean(),
|
|
26184
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26185
|
+
elapsedMs: number(),
|
|
26186
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26187
|
+
windowMs: number(),
|
|
26188
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26189
|
+
armedUntilMs: number(),
|
|
26190
|
+
httpRequests: number(),
|
|
26191
|
+
batchedRequests: number(),
|
|
26192
|
+
/**
|
|
26193
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26194
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26195
|
+
* the number comparable with a store-side call count.
|
|
26196
|
+
*/
|
|
26197
|
+
procedureCalls: number(),
|
|
26198
|
+
/**
|
|
26199
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26200
|
+
* transport resolves one context per connection - but the number that says
|
|
26201
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26202
|
+
*/
|
|
26203
|
+
wsConnections: number(),
|
|
26204
|
+
distinctGroups: number(),
|
|
26205
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26206
|
+
* cardinality bound. */
|
|
26207
|
+
unattributedCalls: number(),
|
|
26208
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26209
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26210
|
+
}).extend({ persisted: boolean() });
|
|
26211
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26212
|
+
var LogLevelSchema$1 = _enum([
|
|
26213
|
+
"debug",
|
|
26214
|
+
"info",
|
|
26215
|
+
"warn",
|
|
26216
|
+
"error"
|
|
26217
|
+
]);
|
|
26218
|
+
/**
|
|
26219
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26220
|
+
*
|
|
26221
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26222
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26223
|
+
*/
|
|
26224
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26225
|
+
/**
|
|
26226
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26227
|
+
* layer that carries an explicit value wins.
|
|
26228
|
+
*
|
|
26229
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26230
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26231
|
+
* grow later would force every consumer of this document to change with it.
|
|
26232
|
+
* Nothing returns `component` today.
|
|
26233
|
+
*/
|
|
26234
|
+
var LoggingScopeKindSchema = _enum([
|
|
26235
|
+
"cluster",
|
|
26236
|
+
"node",
|
|
26237
|
+
"component"
|
|
26238
|
+
]);
|
|
26239
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26240
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26241
|
+
"default",
|
|
26242
|
+
"cluster",
|
|
26243
|
+
"node",
|
|
26244
|
+
"component"
|
|
26245
|
+
]);
|
|
26246
|
+
/**
|
|
26247
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26248
|
+
*
|
|
26249
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26250
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26251
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26252
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26253
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26254
|
+
*/
|
|
26255
|
+
var LoggingLevelLayerSchema = object({
|
|
26256
|
+
scope: LoggingScopeKindSchema,
|
|
26257
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26258
|
+
nodeId: string().nullable(),
|
|
26259
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26260
|
+
level: LogLevelSchema$1.nullable()
|
|
26261
|
+
});
|
|
26262
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26263
|
+
var LoggingEffectiveSchema = object({
|
|
26264
|
+
level: LogLevelSchema$1,
|
|
26265
|
+
levelSource: LoggingLevelSourceSchema
|
|
26266
|
+
});
|
|
26267
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26268
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26269
|
+
/**
|
|
26270
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26271
|
+
*
|
|
26272
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26273
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26274
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26275
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26276
|
+
*/
|
|
26277
|
+
var DiagnosticWindowSchema = object({
|
|
26278
|
+
id: DiagnosticIdSchema,
|
|
26279
|
+
armed: boolean(),
|
|
26280
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26281
|
+
armedUntilMs: number(),
|
|
26282
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26283
|
+
remainingMs: number(),
|
|
26284
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26285
|
+
* i.e. whether this window would survive a restart. */
|
|
26286
|
+
persisted: boolean()
|
|
26287
|
+
});
|
|
26288
|
+
/**
|
|
26289
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26290
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26291
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26292
|
+
*/
|
|
26293
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26294
|
+
id: DiagnosticIdSchema,
|
|
26295
|
+
armMs: number().int().min(0),
|
|
26296
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26297
|
+
reportEveryMs: number().int().positive().optional()
|
|
26298
|
+
});
|
|
26299
|
+
/**
|
|
26300
|
+
* A PATCH, and patches MERGE.
|
|
26301
|
+
*
|
|
26302
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26303
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26304
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26305
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26306
|
+
* turns into an erased one.
|
|
26307
|
+
*/
|
|
26308
|
+
var LoggingSettingsPatchSchema = object({
|
|
26309
|
+
/**
|
|
26310
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26311
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26312
|
+
*/
|
|
26313
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26314
|
+
/**
|
|
26315
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26316
|
+
* keeps running — a patch is never a full replacement.
|
|
26317
|
+
*/
|
|
26318
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26319
|
+
});
|
|
26320
|
+
/**
|
|
26321
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26322
|
+
*
|
|
26323
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26324
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26325
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26326
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26327
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26328
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26329
|
+
* layer selector needs a name the transport does not already own.
|
|
26330
|
+
*/
|
|
26331
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26332
|
+
var SetLoggingSettingsInputSchema = object({
|
|
26333
|
+
scopeNodeId: string().optional(),
|
|
26334
|
+
patch: LoggingSettingsPatchSchema
|
|
26335
|
+
});
|
|
26336
|
+
/**
|
|
26337
|
+
* The whole document, as read and as returned after every write.
|
|
26338
|
+
*
|
|
26339
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
26340
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
26341
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
26342
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
26343
|
+
* survive a restart.
|
|
26344
|
+
*/
|
|
26345
|
+
var LoggingSettingsStateSchema = object({
|
|
26346
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
26347
|
+
scopeNodeId: string().nullable(),
|
|
26348
|
+
effective: LoggingEffectiveSchema,
|
|
26349
|
+
explicit: LoggingExplicitSchema,
|
|
26350
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
26351
|
+
persisted: boolean()
|
|
26352
|
+
});
|
|
25975
26353
|
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(), {
|
|
25976
26354
|
kind: "mutation",
|
|
25977
26355
|
auth: "admin"
|
|
@@ -25984,6 +26362,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
25984
26362
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
25985
26363
|
kind: "mutation",
|
|
25986
26364
|
auth: "admin"
|
|
26365
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26366
|
+
kind: "mutation",
|
|
26367
|
+
auth: "admin"
|
|
25987
26368
|
});
|
|
25988
26369
|
object({
|
|
25989
26370
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -31815,6 +32196,18 @@ Object.freeze({
|
|
|
31815
32196
|
addonId: null,
|
|
31816
32197
|
access: "create"
|
|
31817
32198
|
},
|
|
32199
|
+
"system.getLoggingSettings": {
|
|
32200
|
+
capName: "system",
|
|
32201
|
+
capScope: "system",
|
|
32202
|
+
addonId: null,
|
|
32203
|
+
access: "view"
|
|
32204
|
+
},
|
|
32205
|
+
"system.getRequestCensus": {
|
|
32206
|
+
capName: "system",
|
|
32207
|
+
capScope: "system",
|
|
32208
|
+
addonId: null,
|
|
32209
|
+
access: "view"
|
|
32210
|
+
},
|
|
31818
32211
|
"system.getRetentionConfig": {
|
|
31819
32212
|
capName: "system",
|
|
31820
32213
|
capScope: "system",
|
|
@@ -31845,6 +32238,12 @@ Object.freeze({
|
|
|
31845
32238
|
addonId: null,
|
|
31846
32239
|
access: "view"
|
|
31847
32240
|
},
|
|
32241
|
+
"system.setLoggingSettings": {
|
|
32242
|
+
capName: "system",
|
|
32243
|
+
capScope: "system",
|
|
32244
|
+
addonId: null,
|
|
32245
|
+
access: "create"
|
|
32246
|
+
},
|
|
31848
32247
|
"system.setRetentionConfig": {
|
|
31849
32248
|
capName: "system",
|
|
31850
32249
|
capScope: "system",
|
|
@@ -33000,6 +33399,10 @@ Object.freeze({
|
|
|
33000
33399
|
name: "deviceId",
|
|
33001
33400
|
form: "single",
|
|
33002
33401
|
optional: true
|
|
33402
|
+
}, {
|
|
33403
|
+
name: "deviceIds",
|
|
33404
|
+
form: "array",
|
|
33405
|
+
optional: true
|
|
33003
33406
|
}],
|
|
33004
33407
|
"fanControl.setDirection": [{
|
|
33005
33408
|
name: "deviceId",
|
|
@@ -34610,7 +35013,38 @@ object({
|
|
|
34610
35013
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34611
35014
|
* reproduce that.
|
|
34612
35015
|
*/
|
|
34613
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35016
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35017
|
+
/**
|
|
35018
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35019
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35020
|
+
* subject tiles, on frames that detected something.
|
|
35021
|
+
*
|
|
35022
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35023
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35024
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35025
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35026
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35027
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35028
|
+
*
|
|
35029
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35030
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35031
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35032
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35033
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35034
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35035
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35036
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35037
|
+
* whole shape exists to avoid.
|
|
35038
|
+
*
|
|
35039
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35040
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35041
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35042
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35043
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35044
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35045
|
+
* nothing.
|
|
35046
|
+
*/
|
|
35047
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
34614
35048
|
});
|
|
34615
35049
|
/**
|
|
34616
35050
|
* The values in force when the operator has set nothing.
|
|
@@ -34626,12 +35060,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
34626
35060
|
budgetMb: 1024,
|
|
34627
35061
|
activityMs: 15e3,
|
|
34628
35062
|
tileBudgetMb: 64,
|
|
35063
|
+
sceneBudgetMb: 48,
|
|
34629
35064
|
admission: "inferred"
|
|
34630
35065
|
};
|
|
34631
35066
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34632
35067
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34633
35068
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34634
35069
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35070
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
34635
35071
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34636
35072
|
var MB = 1024 * 1024;
|
|
34637
35073
|
1024 * MB, 3072 * MB;
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -7545,6 +7545,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7545
7545
|
/** Max rows returned, newest-first. */
|
|
7546
7546
|
limit: number().int().min(1).max(1e3).optional()
|
|
7547
7547
|
});
|
|
7548
|
+
var LabelDefinitionSchema = object({
|
|
7549
|
+
id: string(),
|
|
7550
|
+
name: string(),
|
|
7551
|
+
category: string().optional(),
|
|
7552
|
+
description: string().optional(),
|
|
7553
|
+
icon: string().optional()
|
|
7554
|
+
});
|
|
7555
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7556
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7557
|
+
"person",
|
|
7558
|
+
"vehicle",
|
|
7559
|
+
"animal",
|
|
7560
|
+
"package"
|
|
7561
|
+
];
|
|
7562
|
+
/**
|
|
7563
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7564
|
+
* un operatore può selezionare.
|
|
7565
|
+
*
|
|
7566
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7567
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7568
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7569
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7570
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7571
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7572
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7573
|
+
*
|
|
7574
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7575
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7576
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7577
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7578
|
+
* successiva.
|
|
7579
|
+
*/
|
|
7580
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7581
|
+
"person",
|
|
7582
|
+
"vehicle",
|
|
7583
|
+
"animal"
|
|
7584
|
+
];
|
|
7585
|
+
/**
|
|
7586
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7587
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7588
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7589
|
+
* detection pipeline executor actually routes.
|
|
7590
|
+
*
|
|
7591
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7592
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7593
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7594
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7595
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7596
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7597
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7598
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7599
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7600
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7601
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7602
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7603
|
+
*/
|
|
7604
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7605
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7606
|
+
preserveOriginal: boolean()
|
|
7607
|
+
});
|
|
7548
7608
|
/**
|
|
7549
7609
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7550
7610
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7567,10 +7627,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7567
7627
|
"events",
|
|
7568
7628
|
"continuous"
|
|
7569
7629
|
]);
|
|
7630
|
+
/**
|
|
7631
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7632
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7633
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7634
|
+
*/
|
|
7635
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7636
|
+
/**
|
|
7637
|
+
* True quando `values` non ripete un elemento.
|
|
7638
|
+
*
|
|
7639
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7640
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7641
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7642
|
+
*/
|
|
7643
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7570
7644
|
/** Which detectors trigger an `events`-mode band. */
|
|
7571
7645
|
var RecordingTriggersSchema = object({
|
|
7572
7646
|
motion: boolean().optional(),
|
|
7573
|
-
audioThresholdDbfs: number().optional()
|
|
7647
|
+
audioThresholdDbfs: number().optional(),
|
|
7648
|
+
/**
|
|
7649
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7650
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7651
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7652
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7653
|
+
*
|
|
7654
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7655
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7656
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7657
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7658
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7659
|
+
*/
|
|
7660
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7661
|
+
/**
|
|
7662
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7663
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7664
|
+
* `objectClasses`.
|
|
7665
|
+
*
|
|
7666
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7667
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7668
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7669
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7670
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7671
|
+
*
|
|
7672
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7673
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7674
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7675
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7676
|
+
* registrare.
|
|
7677
|
+
*/
|
|
7678
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7574
7679
|
});
|
|
7575
7680
|
/**
|
|
7576
7681
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8022,41 +8127,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8022
8127
|
*/
|
|
8023
8128
|
debug: boolean().optional()
|
|
8024
8129
|
});
|
|
8025
|
-
var LabelDefinitionSchema = object({
|
|
8026
|
-
id: string(),
|
|
8027
|
-
name: string(),
|
|
8028
|
-
category: string().optional(),
|
|
8029
|
-
description: string().optional(),
|
|
8030
|
-
icon: string().optional()
|
|
8031
|
-
});
|
|
8032
|
-
/**
|
|
8033
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8034
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8035
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8036
|
-
* detection pipeline executor actually routes.
|
|
8037
|
-
*
|
|
8038
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8039
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8040
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8041
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8042
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8043
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8044
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8045
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8046
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8047
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8048
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8049
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8050
|
-
*/
|
|
8051
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8052
|
-
mapping: record(string(), _enum([
|
|
8053
|
-
"person",
|
|
8054
|
-
"vehicle",
|
|
8055
|
-
"animal",
|
|
8056
|
-
"package"
|
|
8057
|
-
])),
|
|
8058
|
-
preserveOriginal: boolean()
|
|
8059
|
-
});
|
|
8060
8130
|
var MODEL_FORMATS = [
|
|
8061
8131
|
"onnx",
|
|
8062
8132
|
"coreml",
|
|
@@ -20843,7 +20913,7 @@ var lifecycleJobSchema = object({
|
|
|
20843
20913
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
20844
20914
|
* as every other cap.
|
|
20845
20915
|
*/
|
|
20846
|
-
var LogLevelSchema$
|
|
20916
|
+
var LogLevelSchema$2 = _enum([
|
|
20847
20917
|
"debug",
|
|
20848
20918
|
"info",
|
|
20849
20919
|
"warn",
|
|
@@ -21050,7 +21120,7 @@ var CustomActionInputSchema = object({
|
|
|
21050
21120
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21051
21121
|
addonId: string(),
|
|
21052
21122
|
limit: number().min(1).max(500).default(100),
|
|
21053
|
-
level: LogLevelSchema$
|
|
21123
|
+
level: LogLevelSchema$2.optional()
|
|
21054
21124
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21055
21125
|
packageName: string(),
|
|
21056
21126
|
version: string().optional()
|
|
@@ -21148,7 +21218,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21148
21218
|
auth: "admin"
|
|
21149
21219
|
}), method(object({
|
|
21150
21220
|
addonId: string(),
|
|
21151
|
-
level: LogLevelSchema$
|
|
21221
|
+
level: LogLevelSchema$2.optional()
|
|
21152
21222
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21153
21223
|
object({
|
|
21154
21224
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22142,6 +22212,35 @@ var FaceFilterEnum = _enum([
|
|
|
22142
22212
|
"identified",
|
|
22143
22213
|
"all"
|
|
22144
22214
|
]);
|
|
22215
|
+
/**
|
|
22216
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22217
|
+
*
|
|
22218
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22219
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22220
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22221
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22222
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22223
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22224
|
+
*
|
|
22225
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22226
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22227
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22228
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22229
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22230
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22231
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22232
|
+
* backend's NULL-collation accident.
|
|
22233
|
+
*/
|
|
22234
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22235
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22236
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22237
|
+
* never leaves the server. */
|
|
22238
|
+
var FaceClusterSchema = object({
|
|
22239
|
+
faceIds: array(string()).readonly(),
|
|
22240
|
+
representativeFaceId: string(),
|
|
22241
|
+
size: number().int(),
|
|
22242
|
+
cohesion: number()
|
|
22243
|
+
});
|
|
22145
22244
|
var MediaFileLiteSchema$1 = object({
|
|
22146
22245
|
key: string(),
|
|
22147
22246
|
kind: string(),
|
|
@@ -22188,24 +22287,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22188
22287
|
kind: "mutation",
|
|
22189
22288
|
auth: "admin"
|
|
22190
22289
|
}), method(object({
|
|
22191
|
-
/**
|
|
22290
|
+
/**
|
|
22291
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22292
|
+
*
|
|
22293
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22294
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22295
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22296
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22297
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22298
|
+
*/
|
|
22192
22299
|
deviceId: number().int().optional(),
|
|
22300
|
+
/**
|
|
22301
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22302
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22303
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22304
|
+
* about to discard).
|
|
22305
|
+
*
|
|
22306
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22307
|
+
* "every camera". A request for no devices is a request, not an
|
|
22308
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22309
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22310
|
+
*
|
|
22311
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22312
|
+
*/
|
|
22313
|
+
deviceIds: array(number().int()).optional(),
|
|
22193
22314
|
limit: number().int().positive().optional(),
|
|
22194
22315
|
filter: FaceFilterEnum.optional(),
|
|
22195
22316
|
/**
|
|
22196
|
-
*
|
|
22197
|
-
*
|
|
22317
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22318
|
+
* Absent means no lower bound.
|
|
22319
|
+
*/
|
|
22320
|
+
since: number().int().optional(),
|
|
22321
|
+
/**
|
|
22322
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22323
|
+
* Absent means no upper bound.
|
|
22324
|
+
*/
|
|
22325
|
+
until: number().int().optional(),
|
|
22326
|
+
/**
|
|
22327
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22328
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22329
|
+
* that does not ask.
|
|
22198
22330
|
*
|
|
22199
|
-
*
|
|
22200
|
-
*
|
|
22201
|
-
* the browser cache the images.
|
|
22331
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
22332
|
+
* does under `'suggestionConfidence'`.
|
|
22202
22333
|
*
|
|
22203
|
-
*
|
|
22204
|
-
*
|
|
22205
|
-
*
|
|
22206
|
-
*
|
|
22207
|
-
*
|
|
22208
|
-
|
|
22334
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
22335
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
22336
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
22337
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
22338
|
+
* with {@link since} / {@link until}.
|
|
22339
|
+
*/
|
|
22340
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
22341
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
22342
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
22343
|
+
/**
|
|
22344
|
+
* Inline the base64 crop on every row.
|
|
22345
|
+
*
|
|
22346
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
22347
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
22348
|
+
* this for every gallery, and which records why the inline shape had
|
|
22349
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
22350
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
22351
|
+
* that describes the old design reads as permission to rely on it.
|
|
22352
|
+
*
|
|
22353
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
22354
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
22355
|
+
* cached and ETagged.
|
|
22209
22356
|
*/
|
|
22210
22357
|
includeCrops: boolean().optional()
|
|
22211
22358
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22241,13 +22388,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22241
22388
|
}), method(object({
|
|
22242
22389
|
threshold: number().min(0).max(1).optional(),
|
|
22243
22390
|
minClusterSize: number().int().min(2).optional(),
|
|
22244
|
-
|
|
22245
|
-
|
|
22246
|
-
|
|
22247
|
-
|
|
22248
|
-
|
|
22249
|
-
|
|
22250
|
-
|
|
22391
|
+
/**
|
|
22392
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
22393
|
+
* which read as though it bounded the work — it never did.
|
|
22394
|
+
*
|
|
22395
|
+
* Wins over {@link limit} when both are sent.
|
|
22396
|
+
*/
|
|
22397
|
+
maxClusters: number().int().positive().optional(),
|
|
22398
|
+
/**
|
|
22399
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
22400
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
22401
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
22402
|
+
*/
|
|
22403
|
+
limit: number().int().positive().optional(),
|
|
22404
|
+
/**
|
|
22405
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
22406
|
+
* POOL, not the result.
|
|
22407
|
+
*
|
|
22408
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
22409
|
+
* used to read every unassigned face on the hub no matter what the
|
|
22410
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
22411
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
22412
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
22413
|
+
*
|
|
22414
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
22415
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
22416
|
+
* sample it randomly.
|
|
22417
|
+
*
|
|
22418
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
22419
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
22420
|
+
* unbounded scan can never come back as the table grows.
|
|
22421
|
+
*/
|
|
22422
|
+
maxFacesScanned: number().int().positive().optional()
|
|
22423
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22251
22424
|
/**
|
|
22252
22425
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22253
22426
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -25970,6 +26143,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
25970
26143
|
latitude: number().min(-90).max(90),
|
|
25971
26144
|
longitude: number().min(-180).max(180)
|
|
25972
26145
|
}).nullable();
|
|
26146
|
+
/**
|
|
26147
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26148
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26149
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26150
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26151
|
+
*/
|
|
26152
|
+
var RequestCensusGroupSchema = object({
|
|
26153
|
+
procedure: string(),
|
|
26154
|
+
userAgent: string(),
|
|
26155
|
+
ip: string(),
|
|
26156
|
+
principal: string(),
|
|
26157
|
+
calls: number(),
|
|
26158
|
+
perMin: number()
|
|
26159
|
+
});
|
|
26160
|
+
/**
|
|
26161
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26162
|
+
*
|
|
26163
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26164
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26165
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26166
|
+
*/
|
|
26167
|
+
var RequestCensusProcedureSchema = object({
|
|
26168
|
+
procedure: string(),
|
|
26169
|
+
calls: number(),
|
|
26170
|
+
perMin: number()
|
|
26171
|
+
});
|
|
26172
|
+
/**
|
|
26173
|
+
* The census as an operator sees it.
|
|
26174
|
+
*
|
|
26175
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26176
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26177
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26178
|
+
* like one that succeeded.
|
|
26179
|
+
*/
|
|
26180
|
+
var RequestCensusStatusSchema = object({
|
|
26181
|
+
armed: boolean(),
|
|
26182
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26183
|
+
elapsedMs: number(),
|
|
26184
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26185
|
+
windowMs: number(),
|
|
26186
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26187
|
+
armedUntilMs: number(),
|
|
26188
|
+
httpRequests: number(),
|
|
26189
|
+
batchedRequests: number(),
|
|
26190
|
+
/**
|
|
26191
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26192
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26193
|
+
* the number comparable with a store-side call count.
|
|
26194
|
+
*/
|
|
26195
|
+
procedureCalls: number(),
|
|
26196
|
+
/**
|
|
26197
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26198
|
+
* transport resolves one context per connection - but the number that says
|
|
26199
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26200
|
+
*/
|
|
26201
|
+
wsConnections: number(),
|
|
26202
|
+
distinctGroups: number(),
|
|
26203
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26204
|
+
* cardinality bound. */
|
|
26205
|
+
unattributedCalls: number(),
|
|
26206
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26207
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26208
|
+
}).extend({ persisted: boolean() });
|
|
26209
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26210
|
+
var LogLevelSchema$1 = _enum([
|
|
26211
|
+
"debug",
|
|
26212
|
+
"info",
|
|
26213
|
+
"warn",
|
|
26214
|
+
"error"
|
|
26215
|
+
]);
|
|
26216
|
+
/**
|
|
26217
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26218
|
+
*
|
|
26219
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26220
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26221
|
+
*/
|
|
26222
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26223
|
+
/**
|
|
26224
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26225
|
+
* layer that carries an explicit value wins.
|
|
26226
|
+
*
|
|
26227
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26228
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26229
|
+
* grow later would force every consumer of this document to change with it.
|
|
26230
|
+
* Nothing returns `component` today.
|
|
26231
|
+
*/
|
|
26232
|
+
var LoggingScopeKindSchema = _enum([
|
|
26233
|
+
"cluster",
|
|
26234
|
+
"node",
|
|
26235
|
+
"component"
|
|
26236
|
+
]);
|
|
26237
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26238
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26239
|
+
"default",
|
|
26240
|
+
"cluster",
|
|
26241
|
+
"node",
|
|
26242
|
+
"component"
|
|
26243
|
+
]);
|
|
26244
|
+
/**
|
|
26245
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26246
|
+
*
|
|
26247
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26248
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26249
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26250
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26251
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26252
|
+
*/
|
|
26253
|
+
var LoggingLevelLayerSchema = object({
|
|
26254
|
+
scope: LoggingScopeKindSchema,
|
|
26255
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26256
|
+
nodeId: string().nullable(),
|
|
26257
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26258
|
+
level: LogLevelSchema$1.nullable()
|
|
26259
|
+
});
|
|
26260
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26261
|
+
var LoggingEffectiveSchema = object({
|
|
26262
|
+
level: LogLevelSchema$1,
|
|
26263
|
+
levelSource: LoggingLevelSourceSchema
|
|
26264
|
+
});
|
|
26265
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26266
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26267
|
+
/**
|
|
26268
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26269
|
+
*
|
|
26270
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26271
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26272
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26273
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26274
|
+
*/
|
|
26275
|
+
var DiagnosticWindowSchema = object({
|
|
26276
|
+
id: DiagnosticIdSchema,
|
|
26277
|
+
armed: boolean(),
|
|
26278
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26279
|
+
armedUntilMs: number(),
|
|
26280
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26281
|
+
remainingMs: number(),
|
|
26282
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26283
|
+
* i.e. whether this window would survive a restart. */
|
|
26284
|
+
persisted: boolean()
|
|
26285
|
+
});
|
|
26286
|
+
/**
|
|
26287
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26288
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26289
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26290
|
+
*/
|
|
26291
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26292
|
+
id: DiagnosticIdSchema,
|
|
26293
|
+
armMs: number().int().min(0),
|
|
26294
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26295
|
+
reportEveryMs: number().int().positive().optional()
|
|
26296
|
+
});
|
|
26297
|
+
/**
|
|
26298
|
+
* A PATCH, and patches MERGE.
|
|
26299
|
+
*
|
|
26300
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26301
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26302
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26303
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26304
|
+
* turns into an erased one.
|
|
26305
|
+
*/
|
|
26306
|
+
var LoggingSettingsPatchSchema = object({
|
|
26307
|
+
/**
|
|
26308
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26309
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26310
|
+
*/
|
|
26311
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26312
|
+
/**
|
|
26313
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26314
|
+
* keeps running — a patch is never a full replacement.
|
|
26315
|
+
*/
|
|
26316
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26317
|
+
});
|
|
26318
|
+
/**
|
|
26319
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26320
|
+
*
|
|
26321
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26322
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26323
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26324
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26325
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26326
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26327
|
+
* layer selector needs a name the transport does not already own.
|
|
26328
|
+
*/
|
|
26329
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26330
|
+
var SetLoggingSettingsInputSchema = object({
|
|
26331
|
+
scopeNodeId: string().optional(),
|
|
26332
|
+
patch: LoggingSettingsPatchSchema
|
|
26333
|
+
});
|
|
26334
|
+
/**
|
|
26335
|
+
* The whole document, as read and as returned after every write.
|
|
26336
|
+
*
|
|
26337
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
26338
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
26339
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
26340
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
26341
|
+
* survive a restart.
|
|
26342
|
+
*/
|
|
26343
|
+
var LoggingSettingsStateSchema = object({
|
|
26344
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
26345
|
+
scopeNodeId: string().nullable(),
|
|
26346
|
+
effective: LoggingEffectiveSchema,
|
|
26347
|
+
explicit: LoggingExplicitSchema,
|
|
26348
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
26349
|
+
persisted: boolean()
|
|
26350
|
+
});
|
|
25973
26351
|
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(), {
|
|
25974
26352
|
kind: "mutation",
|
|
25975
26353
|
auth: "admin"
|
|
@@ -25982,6 +26360,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
25982
26360
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
25983
26361
|
kind: "mutation",
|
|
25984
26362
|
auth: "admin"
|
|
26363
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26364
|
+
kind: "mutation",
|
|
26365
|
+
auth: "admin"
|
|
25985
26366
|
});
|
|
25986
26367
|
object({
|
|
25987
26368
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -31813,6 +32194,18 @@ Object.freeze({
|
|
|
31813
32194
|
addonId: null,
|
|
31814
32195
|
access: "create"
|
|
31815
32196
|
},
|
|
32197
|
+
"system.getLoggingSettings": {
|
|
32198
|
+
capName: "system",
|
|
32199
|
+
capScope: "system",
|
|
32200
|
+
addonId: null,
|
|
32201
|
+
access: "view"
|
|
32202
|
+
},
|
|
32203
|
+
"system.getRequestCensus": {
|
|
32204
|
+
capName: "system",
|
|
32205
|
+
capScope: "system",
|
|
32206
|
+
addonId: null,
|
|
32207
|
+
access: "view"
|
|
32208
|
+
},
|
|
31816
32209
|
"system.getRetentionConfig": {
|
|
31817
32210
|
capName: "system",
|
|
31818
32211
|
capScope: "system",
|
|
@@ -31843,6 +32236,12 @@ Object.freeze({
|
|
|
31843
32236
|
addonId: null,
|
|
31844
32237
|
access: "view"
|
|
31845
32238
|
},
|
|
32239
|
+
"system.setLoggingSettings": {
|
|
32240
|
+
capName: "system",
|
|
32241
|
+
capScope: "system",
|
|
32242
|
+
addonId: null,
|
|
32243
|
+
access: "create"
|
|
32244
|
+
},
|
|
31846
32245
|
"system.setRetentionConfig": {
|
|
31847
32246
|
capName: "system",
|
|
31848
32247
|
capScope: "system",
|
|
@@ -32998,6 +33397,10 @@ Object.freeze({
|
|
|
32998
33397
|
name: "deviceId",
|
|
32999
33398
|
form: "single",
|
|
33000
33399
|
optional: true
|
|
33400
|
+
}, {
|
|
33401
|
+
name: "deviceIds",
|
|
33402
|
+
form: "array",
|
|
33403
|
+
optional: true
|
|
33001
33404
|
}],
|
|
33002
33405
|
"fanControl.setDirection": [{
|
|
33003
33406
|
name: "deviceId",
|
|
@@ -34608,7 +35011,38 @@ object({
|
|
|
34608
35011
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34609
35012
|
* reproduce that.
|
|
34610
35013
|
*/
|
|
34611
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35014
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35015
|
+
/**
|
|
35016
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35017
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35018
|
+
* subject tiles, on frames that detected something.
|
|
35019
|
+
*
|
|
35020
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35021
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35022
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35023
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35024
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35025
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35026
|
+
*
|
|
35027
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35028
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35029
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35030
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35031
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35032
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35033
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35034
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35035
|
+
* whole shape exists to avoid.
|
|
35036
|
+
*
|
|
35037
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35038
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35039
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35040
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35041
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35042
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35043
|
+
* nothing.
|
|
35044
|
+
*/
|
|
35045
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
34612
35046
|
});
|
|
34613
35047
|
/**
|
|
34614
35048
|
* The values in force when the operator has set nothing.
|
|
@@ -34624,12 +35058,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
34624
35058
|
budgetMb: 1024,
|
|
34625
35059
|
activityMs: 15e3,
|
|
34626
35060
|
tileBudgetMb: 64,
|
|
35061
|
+
sceneBudgetMb: 48,
|
|
34627
35062
|
admission: "inferred"
|
|
34628
35063
|
};
|
|
34629
35064
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34630
35065
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34631
35066
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34632
35067
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35068
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
34633
35069
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34634
35070
|
var MB = 1024 * 1024;
|
|
34635
35071
|
1024 * MB, 3072 * MB;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.31",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|