@camstack/addon-osd-manager 0.1.23 → 0.1.25
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/{MotionZonesSettings-DhYwaRz3.mjs → MotionZonesSettings-DGzuM4Vl.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BquvldBM.mjs → PrivacyMaskSettings-CQaB7b2N.mjs} +4 -4
- package/dist/{SceneMonitorEditor-wK0ulSnf.mjs → SceneMonitorEditor-Bg7JG--H.mjs} +3 -3
- package/dist/_stub.js +2358 -2358
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CWCOPnMZ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-DxHl-19u.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B-12WGia.mjs +26 -0
- package/dist/{hostInit-BUTpXXH-.mjs → hostInit-0Chwaz22.mjs} +3 -3
- package/dist/index.js +620 -60
- package/dist/index.mjs +620 -60
- package/dist/{player-overlays-CS4sZzYZ.mjs → player-overlays-CRBryJon.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-VdLah82L.mjs → responsive-D6d5-RK_.mjs} +1 -1
- package/dist/{square-a4rMgWr9.mjs → square-DnuLIdPc.mjs} +1 -1
- package/dist/{trash-2-BCaHwGDI.mjs → trash-2-BFV0PX5_.mjs} +1 -1
- package/dist/{use-device-snapshot-CTWHDX3F.mjs → use-device-snapshot-DKPoplKG.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-C7MX67d_.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-dxCYIXHg.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-6_-m0FOQ.mjs +0 -26
package/dist/index.mjs
CHANGED
|
@@ -7621,6 +7621,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7621
7621
|
/** Max rows returned, newest-first. */
|
|
7622
7622
|
limit: number().int().min(1).max(1e3).optional()
|
|
7623
7623
|
});
|
|
7624
|
+
var LabelDefinitionSchema = object({
|
|
7625
|
+
id: string(),
|
|
7626
|
+
name: string(),
|
|
7627
|
+
category: string().optional(),
|
|
7628
|
+
description: string().optional(),
|
|
7629
|
+
icon: string().optional()
|
|
7630
|
+
});
|
|
7631
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7632
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7633
|
+
"person",
|
|
7634
|
+
"vehicle",
|
|
7635
|
+
"animal",
|
|
7636
|
+
"package"
|
|
7637
|
+
];
|
|
7638
|
+
/**
|
|
7639
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7640
|
+
* un operatore può selezionare.
|
|
7641
|
+
*
|
|
7642
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7643
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7644
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7645
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7646
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7647
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7648
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7649
|
+
*
|
|
7650
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7651
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7652
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7653
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7654
|
+
* successiva.
|
|
7655
|
+
*/
|
|
7656
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7657
|
+
"person",
|
|
7658
|
+
"vehicle",
|
|
7659
|
+
"animal"
|
|
7660
|
+
];
|
|
7661
|
+
/**
|
|
7662
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7663
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7664
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7665
|
+
* detection pipeline executor actually routes.
|
|
7666
|
+
*
|
|
7667
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7668
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7669
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7670
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7671
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7672
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7673
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7674
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7675
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7676
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7677
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7678
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7679
|
+
*/
|
|
7680
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7681
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7682
|
+
preserveOriginal: boolean()
|
|
7683
|
+
});
|
|
7624
7684
|
/**
|
|
7625
7685
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7626
7686
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7643,10 +7703,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7643
7703
|
"events",
|
|
7644
7704
|
"continuous"
|
|
7645
7705
|
]);
|
|
7706
|
+
/**
|
|
7707
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7708
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7709
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7710
|
+
*/
|
|
7711
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7712
|
+
/**
|
|
7713
|
+
* True quando `values` non ripete un elemento.
|
|
7714
|
+
*
|
|
7715
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7716
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7717
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7718
|
+
*/
|
|
7719
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7646
7720
|
/** Which detectors trigger an `events`-mode band. */
|
|
7647
7721
|
var RecordingTriggersSchema = object({
|
|
7648
7722
|
motion: boolean().optional(),
|
|
7649
|
-
audioThresholdDbfs: number().optional()
|
|
7723
|
+
audioThresholdDbfs: number().optional(),
|
|
7724
|
+
/**
|
|
7725
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7726
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7727
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7728
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7729
|
+
*
|
|
7730
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7731
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7732
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7733
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7734
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7735
|
+
*/
|
|
7736
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7737
|
+
/**
|
|
7738
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7739
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7740
|
+
* `objectClasses`.
|
|
7741
|
+
*
|
|
7742
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7743
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7744
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7745
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7746
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7747
|
+
*
|
|
7748
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7749
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7750
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7751
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7752
|
+
* registrare.
|
|
7753
|
+
*/
|
|
7754
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7650
7755
|
});
|
|
7651
7756
|
/**
|
|
7652
7757
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8098,41 +8203,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8098
8203
|
*/
|
|
8099
8204
|
debug: boolean().optional()
|
|
8100
8205
|
});
|
|
8101
|
-
var LabelDefinitionSchema = object({
|
|
8102
|
-
id: string(),
|
|
8103
|
-
name: string(),
|
|
8104
|
-
category: string().optional(),
|
|
8105
|
-
description: string().optional(),
|
|
8106
|
-
icon: string().optional()
|
|
8107
|
-
});
|
|
8108
|
-
/**
|
|
8109
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8110
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8111
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8112
|
-
* detection pipeline executor actually routes.
|
|
8113
|
-
*
|
|
8114
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8115
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8116
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8117
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8118
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8119
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8120
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8121
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8122
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8123
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8124
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8125
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8126
|
-
*/
|
|
8127
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8128
|
-
mapping: record(string(), _enum([
|
|
8129
|
-
"person",
|
|
8130
|
-
"vehicle",
|
|
8131
|
-
"animal",
|
|
8132
|
-
"package"
|
|
8133
|
-
])),
|
|
8134
|
-
preserveOriginal: boolean()
|
|
8135
|
-
});
|
|
8136
8206
|
var MODEL_FORMATS = [
|
|
8137
8207
|
"onnx",
|
|
8138
8208
|
"coreml",
|
|
@@ -17915,7 +17985,23 @@ var NcHistoryEntrySchema = object({
|
|
|
17915
17985
|
updatedAt: number(),
|
|
17916
17986
|
/** Failure detail — present on a `dead` row. */
|
|
17917
17987
|
error: string().optional(),
|
|
17918
|
-
subject: NcHistorySubjectSchema
|
|
17988
|
+
subject: NcHistorySubjectSchema,
|
|
17989
|
+
/**
|
|
17990
|
+
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
17991
|
+
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
17992
|
+
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
17993
|
+
* every delivery attempt). Absent on a row still pending/dead, a row
|
|
17994
|
+
* delivered before this field shipped, or a wiring with no artefact index.
|
|
17995
|
+
*
|
|
17996
|
+
* Resolve one to a fetchable URL with `resolveArtifactUrl` — an id
|
|
17997
|
+
* outlives any one URL's TTL, so a caller mints a fresh link on demand
|
|
17998
|
+
* rather than trusting one frozen at delivery time. `resolveArtifactUrl`
|
|
17999
|
+
* also answers `null` for an id whose artefact has since expired past the
|
|
18000
|
+
* retained shelf's own age bound — the degrade a caller (the Home
|
|
18001
|
+
* Assistant export) must render as "no image right now", never as a
|
|
18002
|
+
* broken link.
|
|
18003
|
+
*/
|
|
18004
|
+
artifactIds: array(string().min(1)).optional()
|
|
17919
18005
|
});
|
|
17920
18006
|
/**
|
|
17921
18007
|
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
@@ -18204,6 +18290,20 @@ var notificationRulesCapability = {
|
|
|
18204
18290
|
*/
|
|
18205
18291
|
getHistory: method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" }),
|
|
18206
18292
|
/**
|
|
18293
|
+
* Mint a fresh, externally-reachable URL for one artefact a history row
|
|
18294
|
+
* named in {@link NcHistoryEntrySchema.shape.artifactIds} — the SAME
|
|
18295
|
+
* signed-link mechanism the dispatcher uses to attach media to an
|
|
18296
|
+
* outgoing notification (one derivation; this never re-implements it).
|
|
18297
|
+
*
|
|
18298
|
+
* `url: null` on THREE causes a caller must treat identically ("no image
|
|
18299
|
+
* right now", never a broken link): the id is unknown, its artefact has
|
|
18300
|
+
* expired past the retained shelf's own age bound, or this install has no
|
|
18301
|
+
* externally-reachable base URL. A caller that received a URL on a
|
|
18302
|
+
* previous call and now gets `null` must stop showing it — a link that
|
|
18303
|
+
* worked five minutes ago is not proof it works now.
|
|
18304
|
+
*/
|
|
18305
|
+
resolveArtifactUrl: method(object({ artifactId: string().min(1) }), object({ url: string().nullable() }), { auth: "admin" }),
|
|
18306
|
+
/**
|
|
18207
18307
|
* Snooze windows currently in effect, plus any whose digest has not yet
|
|
18208
18308
|
* gone out. `caller: 'required'`: a user sees their OWN windows and the
|
|
18209
18309
|
* global ones that silence them, never another person's private silence.
|
|
@@ -25070,7 +25170,7 @@ var lifecycleJobSchema = object({
|
|
|
25070
25170
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
25071
25171
|
* as every other cap.
|
|
25072
25172
|
*/
|
|
25073
|
-
var LogLevelSchema$
|
|
25173
|
+
var LogLevelSchema$2 = _enum([
|
|
25074
25174
|
"debug",
|
|
25075
25175
|
"info",
|
|
25076
25176
|
"warn",
|
|
@@ -25297,7 +25397,7 @@ var addonsCapability = {
|
|
|
25297
25397
|
getLogs: method(object({
|
|
25298
25398
|
addonId: string(),
|
|
25299
25399
|
limit: number().min(1).max(500).default(100),
|
|
25300
|
-
level: LogLevelSchema$
|
|
25400
|
+
level: LogLevelSchema$2.optional()
|
|
25301
25401
|
}), array(LogQueryEntrySchema)),
|
|
25302
25402
|
listPackages: method(_void(), array(InstalledPackageSchema).readonly()),
|
|
25303
25403
|
installPackage: method(object({
|
|
@@ -25535,7 +25635,7 @@ var addonsCapability = {
|
|
|
25535
25635
|
}),
|
|
25536
25636
|
onAddonLogs: method(object({
|
|
25537
25637
|
addonId: string(),
|
|
25538
|
-
level: LogLevelSchema$
|
|
25638
|
+
level: LogLevelSchema$2.optional()
|
|
25539
25639
|
}), LogStreamEntrySchema, { kind: "subscription" })
|
|
25540
25640
|
},
|
|
25541
25641
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
@@ -27322,6 +27422,35 @@ var FaceFilterEnum = _enum([
|
|
|
27322
27422
|
"identified",
|
|
27323
27423
|
"all"
|
|
27324
27424
|
]);
|
|
27425
|
+
/**
|
|
27426
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
27427
|
+
*
|
|
27428
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
27429
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
27430
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
27431
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
27432
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
27433
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
27434
|
+
*
|
|
27435
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
27436
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
27437
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
27438
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
27439
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
27440
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
27441
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
27442
|
+
* backend's NULL-collation accident.
|
|
27443
|
+
*/
|
|
27444
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
27445
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
27446
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
27447
|
+
* never leaves the server. */
|
|
27448
|
+
var FaceClusterSchema = object({
|
|
27449
|
+
faceIds: array(string()).readonly(),
|
|
27450
|
+
representativeFaceId: string(),
|
|
27451
|
+
size: number().int(),
|
|
27452
|
+
cohesion: number()
|
|
27453
|
+
});
|
|
27325
27454
|
var MediaFileLiteSchema$1 = object({
|
|
27326
27455
|
key: string(),
|
|
27327
27456
|
kind: string(),
|
|
@@ -27379,24 +27508,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
27379
27508
|
auth: "admin"
|
|
27380
27509
|
}),
|
|
27381
27510
|
listRecentFaces: method(object({
|
|
27382
|
-
/**
|
|
27511
|
+
/**
|
|
27512
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
27513
|
+
*
|
|
27514
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
27515
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
27516
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
27517
|
+
* present, and this field is then ignored rather than unioned, so
|
|
27518
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
27519
|
+
*/
|
|
27383
27520
|
deviceId: number().int().optional(),
|
|
27521
|
+
/**
|
|
27522
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
27523
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
27524
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
27525
|
+
* about to discard).
|
|
27526
|
+
*
|
|
27527
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
27528
|
+
* "every camera". A request for no devices is a request, not an
|
|
27529
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
27530
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
27531
|
+
*
|
|
27532
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
27533
|
+
*/
|
|
27534
|
+
deviceIds: array(number().int()).optional(),
|
|
27384
27535
|
limit: number().int().positive().optional(),
|
|
27385
27536
|
filter: FaceFilterEnum.optional(),
|
|
27386
27537
|
/**
|
|
27387
|
-
*
|
|
27388
|
-
*
|
|
27538
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
27539
|
+
* Absent means no lower bound.
|
|
27540
|
+
*/
|
|
27541
|
+
since: number().int().optional(),
|
|
27542
|
+
/**
|
|
27543
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
27544
|
+
* Absent means no upper bound.
|
|
27545
|
+
*/
|
|
27546
|
+
until: number().int().optional(),
|
|
27547
|
+
/**
|
|
27548
|
+
* Order the page by time or by suggestion certainty. Default
|
|
27549
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
27550
|
+
* that does not ask.
|
|
27389
27551
|
*
|
|
27390
|
-
*
|
|
27391
|
-
*
|
|
27392
|
-
* the browser cache the images.
|
|
27552
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
27553
|
+
* does under `'suggestionConfidence'`.
|
|
27393
27554
|
*
|
|
27394
|
-
*
|
|
27395
|
-
*
|
|
27396
|
-
*
|
|
27397
|
-
*
|
|
27398
|
-
*
|
|
27399
|
-
|
|
27555
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
27556
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
27557
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
27558
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
27559
|
+
* with {@link since} / {@link until}.
|
|
27560
|
+
*/
|
|
27561
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
27562
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
27563
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
27564
|
+
/**
|
|
27565
|
+
* Inline the base64 crop on every row.
|
|
27566
|
+
*
|
|
27567
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
27568
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
27569
|
+
* this for every gallery, and which records why the inline shape had
|
|
27570
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
27571
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
27572
|
+
* that describes the old design reads as permission to rely on it.
|
|
27573
|
+
*
|
|
27574
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
27575
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
27576
|
+
* cached and ETagged.
|
|
27400
27577
|
*/
|
|
27401
27578
|
includeCrops: boolean().optional()
|
|
27402
27579
|
}).optional(), array(FaceInfoSchema).readonly()),
|
|
@@ -27445,13 +27622,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
27445
27622
|
suggestFaceClusters: method(object({
|
|
27446
27623
|
threshold: number().min(0).max(1).optional(),
|
|
27447
27624
|
minClusterSize: number().int().min(2).optional(),
|
|
27448
|
-
|
|
27449
|
-
|
|
27450
|
-
|
|
27451
|
-
|
|
27452
|
-
|
|
27453
|
-
|
|
27454
|
-
|
|
27625
|
+
/**
|
|
27626
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
27627
|
+
* which read as though it bounded the work — it never did.
|
|
27628
|
+
*
|
|
27629
|
+
* Wins over {@link limit} when both are sent.
|
|
27630
|
+
*/
|
|
27631
|
+
maxClusters: number().int().positive().optional(),
|
|
27632
|
+
/**
|
|
27633
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
27634
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
27635
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
27636
|
+
*/
|
|
27637
|
+
limit: number().int().positive().optional(),
|
|
27638
|
+
/**
|
|
27639
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
27640
|
+
* POOL, not the result.
|
|
27641
|
+
*
|
|
27642
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
27643
|
+
* used to read every unassigned face on the hub no matter what the
|
|
27644
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
27645
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
27646
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
27647
|
+
*
|
|
27648
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
27649
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
27650
|
+
* sample it randomly.
|
|
27651
|
+
*
|
|
27652
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
27653
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
27654
|
+
* unbounded scan can never come back as the table grows.
|
|
27655
|
+
*/
|
|
27656
|
+
maxFacesScanned: number().int().positive().optional()
|
|
27657
|
+
}).optional(), array(FaceClusterSchema).readonly())
|
|
27455
27658
|
}
|
|
27456
27659
|
};
|
|
27457
27660
|
/**
|
|
@@ -31664,6 +31867,39 @@ var ReadGopBytesResultSchema = object({
|
|
|
31664
31867
|
/** Media ms the returned fragment covers. */
|
|
31665
31868
|
gopDurMs: number()
|
|
31666
31869
|
});
|
|
31870
|
+
/**
|
|
31871
|
+
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
31872
|
+
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
31873
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
|
|
31874
|
+
* a replay needs several seconds of native pixels, not one frame.
|
|
31875
|
+
*
|
|
31876
|
+
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
31877
|
+
* is `false` when the returned bytes were cut short by the read's own safety
|
|
31878
|
+
* byte cap before covering `[fromMs, toMs)` — a truncation, reported, not a
|
|
31879
|
+
* silently shorter answer. `spans-multiple-segments` is a REFUSAL, not a
|
|
31880
|
+
* degradation: a window whose end falls past the covering segment would need
|
|
31881
|
+
* bytes stitched from a second segment file (its own `ftyp`+`moov`), which is
|
|
31882
|
+
* not one standalone-demuxable stream — the caller's answer is to request a
|
|
31883
|
+
* shorter window or one aligned to a single segment, not to receive spliced
|
|
31884
|
+
* bytes nothing has proven decodable.
|
|
31885
|
+
*/
|
|
31886
|
+
var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
31887
|
+
kind: literal("ok"),
|
|
31888
|
+
data: _instanceof(Uint8Array),
|
|
31889
|
+
/** Absolute epoch ms of the returned bytes' first sample — at or before
|
|
31890
|
+
* the requested `fromMs` (anchored on the nearest keyframe). */
|
|
31891
|
+
gopStartMs: number(),
|
|
31892
|
+
/** Media ms the returned bytes cover, from `gopStartMs`. */
|
|
31893
|
+
gopDurMs: number(),
|
|
31894
|
+
/** `false` ⇒ the safety byte cap cut the read short before it reached
|
|
31895
|
+
* the requested `toMs`; the caller got fewer frames than asked for. */
|
|
31896
|
+
reachesRequestedEnd: boolean()
|
|
31897
|
+
}), object({
|
|
31898
|
+
kind: literal("spans-multiple-segments"),
|
|
31899
|
+
/** Where the covering segment's own footage runs out — informational,
|
|
31900
|
+
* not a retry hint (retrying the same window would refuse again). */
|
|
31901
|
+
segmentEndMs: number()
|
|
31902
|
+
})]);
|
|
31667
31903
|
var recordingCapability = {
|
|
31668
31904
|
name: "recording",
|
|
31669
31905
|
scope: "system",
|
|
@@ -31743,6 +31979,21 @@ var recordingCapability = {
|
|
|
31743
31979
|
kind: "query",
|
|
31744
31980
|
auth: "admin"
|
|
31745
31981
|
}),
|
|
31982
|
+
/** Read a WINDOW `[fromMs, toMs)` of segment `startMs`, by mfra byte
|
|
31983
|
+
* range — the multi-GOP twin of `readGopBytes`. Refuses (does not
|
|
31984
|
+
* degrade) when the window runs past the covering segment. Used by the
|
|
31985
|
+
* replay clip's `recording` source to fetch several seconds of native
|
|
31986
|
+
* footage for its single ffmpeg decode pass. */
|
|
31987
|
+
readWindowBytes: method(object({
|
|
31988
|
+
deviceId: number(),
|
|
31989
|
+
profile: string(),
|
|
31990
|
+
startMs: number(),
|
|
31991
|
+
fromMs: number(),
|
|
31992
|
+
toMs: number()
|
|
31993
|
+
}), ReadWindowBytesResultSchema, {
|
|
31994
|
+
kind: "query",
|
|
31995
|
+
auth: "admin"
|
|
31996
|
+
}),
|
|
31746
31997
|
setDeviceConfig: method(object({
|
|
31747
31998
|
deviceId: number(),
|
|
31748
31999
|
config: RecordingConfigSchema
|
|
@@ -32940,6 +33191,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
32940
33191
|
latitude: number().min(-90).max(90),
|
|
32941
33192
|
longitude: number().min(-180).max(180)
|
|
32942
33193
|
}).nullable();
|
|
33194
|
+
/**
|
|
33195
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
33196
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
33197
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
33198
|
+
* already prints - never a token, never an `Authorization` header.
|
|
33199
|
+
*/
|
|
33200
|
+
var RequestCensusGroupSchema = object({
|
|
33201
|
+
procedure: string(),
|
|
33202
|
+
userAgent: string(),
|
|
33203
|
+
ip: string(),
|
|
33204
|
+
principal: string(),
|
|
33205
|
+
calls: number(),
|
|
33206
|
+
perMin: number()
|
|
33207
|
+
});
|
|
33208
|
+
/**
|
|
33209
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
33210
|
+
*
|
|
33211
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
33212
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
33213
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
33214
|
+
*/
|
|
33215
|
+
var RequestCensusProcedureSchema = object({
|
|
33216
|
+
procedure: string(),
|
|
33217
|
+
calls: number(),
|
|
33218
|
+
perMin: number()
|
|
33219
|
+
});
|
|
33220
|
+
/**
|
|
33221
|
+
* The census as an operator sees it.
|
|
33222
|
+
*
|
|
33223
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
33224
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
33225
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
33226
|
+
* like one that succeeded.
|
|
33227
|
+
*/
|
|
33228
|
+
var RequestCensusStatusSchema = object({
|
|
33229
|
+
armed: boolean(),
|
|
33230
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
33231
|
+
elapsedMs: number(),
|
|
33232
|
+
/** The window actually armed, after the server clamped the request. */
|
|
33233
|
+
windowMs: number(),
|
|
33234
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
33235
|
+
armedUntilMs: number(),
|
|
33236
|
+
httpRequests: number(),
|
|
33237
|
+
batchedRequests: number(),
|
|
33238
|
+
/**
|
|
33239
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
33240
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
33241
|
+
* the number comparable with a store-side call count.
|
|
33242
|
+
*/
|
|
33243
|
+
procedureCalls: number(),
|
|
33244
|
+
/**
|
|
33245
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
33246
|
+
* transport resolves one context per connection - but the number that says
|
|
33247
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
33248
|
+
*/
|
|
33249
|
+
wsConnections: number(),
|
|
33250
|
+
distinctGroups: number(),
|
|
33251
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
33252
|
+
* cardinality bound. */
|
|
33253
|
+
unattributedCalls: number(),
|
|
33254
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
33255
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
33256
|
+
}).extend({ persisted: boolean() });
|
|
33257
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
33258
|
+
var LogLevelSchema$1 = _enum([
|
|
33259
|
+
"debug",
|
|
33260
|
+
"info",
|
|
33261
|
+
"warn",
|
|
33262
|
+
"error"
|
|
33263
|
+
]);
|
|
33264
|
+
/**
|
|
33265
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
33266
|
+
*
|
|
33267
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
33268
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
33269
|
+
*/
|
|
33270
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
33271
|
+
/**
|
|
33272
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
33273
|
+
* layer that carries an explicit value wins.
|
|
33274
|
+
*
|
|
33275
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
33276
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
33277
|
+
* grow later would force every consumer of this document to change with it.
|
|
33278
|
+
* Nothing returns `component` today.
|
|
33279
|
+
*/
|
|
33280
|
+
var LoggingScopeKindSchema = _enum([
|
|
33281
|
+
"cluster",
|
|
33282
|
+
"node",
|
|
33283
|
+
"component"
|
|
33284
|
+
]);
|
|
33285
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
33286
|
+
var LoggingLevelSourceSchema = _enum([
|
|
33287
|
+
"default",
|
|
33288
|
+
"cluster",
|
|
33289
|
+
"node",
|
|
33290
|
+
"component"
|
|
33291
|
+
]);
|
|
33292
|
+
/**
|
|
33293
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
33294
|
+
*
|
|
33295
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
33296
|
+
* difference between "this node is at `info` because I decided it" and
|
|
33297
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
33298
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
33299
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
33300
|
+
*/
|
|
33301
|
+
var LoggingLevelLayerSchema = object({
|
|
33302
|
+
scope: LoggingScopeKindSchema,
|
|
33303
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
33304
|
+
nodeId: string().nullable(),
|
|
33305
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
33306
|
+
level: LogLevelSchema$1.nullable()
|
|
33307
|
+
});
|
|
33308
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
33309
|
+
var LoggingEffectiveSchema = object({
|
|
33310
|
+
level: LogLevelSchema$1,
|
|
33311
|
+
levelSource: LoggingLevelSourceSchema
|
|
33312
|
+
});
|
|
33313
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
33314
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
33315
|
+
/**
|
|
33316
|
+
* An armed diagnostic, with its DEADLINE.
|
|
33317
|
+
*
|
|
33318
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
33319
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
33320
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
33321
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
33322
|
+
*/
|
|
33323
|
+
var DiagnosticWindowSchema = object({
|
|
33324
|
+
id: DiagnosticIdSchema,
|
|
33325
|
+
armed: boolean(),
|
|
33326
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
33327
|
+
armedUntilMs: number(),
|
|
33328
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
33329
|
+
remainingMs: number(),
|
|
33330
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
33331
|
+
* i.e. whether this window would survive a restart. */
|
|
33332
|
+
persisted: boolean()
|
|
33333
|
+
});
|
|
33334
|
+
/**
|
|
33335
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
33336
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
33337
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
33338
|
+
*/
|
|
33339
|
+
var DiagnosticWindowPatchSchema = object({
|
|
33340
|
+
id: DiagnosticIdSchema,
|
|
33341
|
+
armMs: number().int().min(0),
|
|
33342
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
33343
|
+
reportEveryMs: number().int().positive().optional()
|
|
33344
|
+
});
|
|
33345
|
+
/**
|
|
33346
|
+
* A PATCH, and patches MERGE.
|
|
33347
|
+
*
|
|
33348
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
33349
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
33350
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
33351
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
33352
|
+
* turns into an erased one.
|
|
33353
|
+
*/
|
|
33354
|
+
var LoggingSettingsPatchSchema = object({
|
|
33355
|
+
/**
|
|
33356
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
33357
|
+
* addressed scope so it inherits again. A value sets it.
|
|
33358
|
+
*/
|
|
33359
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
33360
|
+
/**
|
|
33361
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
33362
|
+
* keeps running — a patch is never a full replacement.
|
|
33363
|
+
*/
|
|
33364
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
33365
|
+
});
|
|
33366
|
+
/**
|
|
33367
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
33368
|
+
*
|
|
33369
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
33370
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
33371
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
33372
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
33373
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
33374
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
33375
|
+
* layer selector needs a name the transport does not already own.
|
|
33376
|
+
*/
|
|
33377
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
33378
|
+
var SetLoggingSettingsInputSchema = object({
|
|
33379
|
+
scopeNodeId: string().optional(),
|
|
33380
|
+
patch: LoggingSettingsPatchSchema
|
|
33381
|
+
});
|
|
33382
|
+
/**
|
|
33383
|
+
* The whole document, as read and as returned after every write.
|
|
33384
|
+
*
|
|
33385
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
33386
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
33387
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
33388
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
33389
|
+
* survive a restart.
|
|
33390
|
+
*/
|
|
33391
|
+
var LoggingSettingsStateSchema = object({
|
|
33392
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
33393
|
+
scopeNodeId: string().nullable(),
|
|
33394
|
+
effective: LoggingEffectiveSchema,
|
|
33395
|
+
explicit: LoggingExplicitSchema,
|
|
33396
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
33397
|
+
persisted: boolean()
|
|
33398
|
+
});
|
|
32943
33399
|
var systemCapability = {
|
|
32944
33400
|
name: "system",
|
|
32945
33401
|
scope: "system",
|
|
@@ -32983,6 +33439,38 @@ var systemCapability = {
|
|
|
32983
33439
|
detectSiteLocation: method(_void(), SiteLocationStatusSchema, {
|
|
32984
33440
|
kind: "mutation",
|
|
32985
33441
|
auth: "admin"
|
|
33442
|
+
}),
|
|
33443
|
+
/**
|
|
33444
|
+
* Read the HTTP request census - which caller, from which address, with
|
|
33445
|
+
* which user-agent, invoked which tRPC procedure, and how often.
|
|
33446
|
+
*
|
|
33447
|
+
* Reading NEVER re-arms: re-arming clears the counts, which would throw
|
|
33448
|
+
* away exactly the numbers being asked for. A closed window may be read as
|
|
33449
|
+
* many times as the operator likes and always describes the same window.
|
|
33450
|
+
*
|
|
33451
|
+
* Admin-only: the rows carry source addresses and principal names.
|
|
33452
|
+
*/
|
|
33453
|
+
getRequestCensus: method(_void(), RequestCensusStatusSchema, { auth: "admin" }),
|
|
33454
|
+
/**
|
|
33455
|
+
* The logging settings document — levels and armed diagnostics — resolved
|
|
33456
|
+
* for `nodeId`, or for the cluster when `nodeId` is absent.
|
|
33457
|
+
*
|
|
33458
|
+
* Returns BOTH `effective` and `explicit`. See
|
|
33459
|
+
* {@link LoggingLevelLayerSchema} for why collapsing them is the defect.
|
|
33460
|
+
*/
|
|
33461
|
+
getLoggingSettings: method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }),
|
|
33462
|
+
/**
|
|
33463
|
+
* Write the logging settings document. The ONLY write authority over log
|
|
33464
|
+
* levels and diagnostic windows — arming the request census went through
|
|
33465
|
+
* `system.setRequestCensus` until 2026-08-27 and no longer does, because
|
|
33466
|
+
* two writes that disagree about the same window is exactly the defect
|
|
33467
|
+
* this document exists to remove (D245).
|
|
33468
|
+
*
|
|
33469
|
+
* The patch MERGES: see {@link LoggingSettingsPatchSchema}.
|
|
33470
|
+
*/
|
|
33471
|
+
setLoggingSettings: method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
33472
|
+
kind: "mutation",
|
|
33473
|
+
auth: "admin"
|
|
32986
33474
|
})
|
|
32987
33475
|
},
|
|
32988
33476
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
@@ -37196,6 +37684,12 @@ Object.freeze({
|
|
|
37196
37684
|
addonId: null,
|
|
37197
37685
|
access: "view"
|
|
37198
37686
|
},
|
|
37687
|
+
"notificationRules.resolveArtifactUrl": {
|
|
37688
|
+
capName: "notification-rules",
|
|
37689
|
+
capScope: "system",
|
|
37690
|
+
addonId: null,
|
|
37691
|
+
access: "view"
|
|
37692
|
+
},
|
|
37199
37693
|
"notificationRules.setAlarmConfig": {
|
|
37200
37694
|
capName: "notification-rules",
|
|
37201
37695
|
capScope: "system",
|
|
@@ -38600,6 +39094,12 @@ Object.freeze({
|
|
|
38600
39094
|
addonId: null,
|
|
38601
39095
|
access: "view"
|
|
38602
39096
|
},
|
|
39097
|
+
"recording.readWindowBytes": {
|
|
39098
|
+
capName: "recording",
|
|
39099
|
+
capScope: "system",
|
|
39100
|
+
addonId: null,
|
|
39101
|
+
access: "view"
|
|
39102
|
+
},
|
|
38603
39103
|
"recording.refreshStorageLocationsForMigration": {
|
|
38604
39104
|
capName: "recording",
|
|
38605
39105
|
capScope: "system",
|
|
@@ -39440,6 +39940,18 @@ Object.freeze({
|
|
|
39440
39940
|
addonId: null,
|
|
39441
39941
|
access: "create"
|
|
39442
39942
|
},
|
|
39943
|
+
"system.getLoggingSettings": {
|
|
39944
|
+
capName: "system",
|
|
39945
|
+
capScope: "system",
|
|
39946
|
+
addonId: null,
|
|
39947
|
+
access: "view"
|
|
39948
|
+
},
|
|
39949
|
+
"system.getRequestCensus": {
|
|
39950
|
+
capName: "system",
|
|
39951
|
+
capScope: "system",
|
|
39952
|
+
addonId: null,
|
|
39953
|
+
access: "view"
|
|
39954
|
+
},
|
|
39443
39955
|
"system.getRetentionConfig": {
|
|
39444
39956
|
capName: "system",
|
|
39445
39957
|
capScope: "system",
|
|
@@ -39470,6 +39982,12 @@ Object.freeze({
|
|
|
39470
39982
|
addonId: null,
|
|
39471
39983
|
access: "view"
|
|
39472
39984
|
},
|
|
39985
|
+
"system.setLoggingSettings": {
|
|
39986
|
+
capName: "system",
|
|
39987
|
+
capScope: "system",
|
|
39988
|
+
addonId: null,
|
|
39989
|
+
access: "create"
|
|
39990
|
+
},
|
|
39473
39991
|
"system.setRetentionConfig": {
|
|
39474
39992
|
capName: "system",
|
|
39475
39993
|
capScope: "system",
|
|
@@ -40625,6 +41143,10 @@ Object.freeze({
|
|
|
40625
41143
|
name: "deviceId",
|
|
40626
41144
|
form: "single",
|
|
40627
41145
|
optional: true
|
|
41146
|
+
}, {
|
|
41147
|
+
name: "deviceIds",
|
|
41148
|
+
form: "array",
|
|
41149
|
+
optional: true
|
|
40628
41150
|
}],
|
|
40629
41151
|
"fanControl.setDirection": [{
|
|
40630
41152
|
name: "deviceId",
|
|
@@ -41430,6 +41952,11 @@ Object.freeze({
|
|
|
41430
41952
|
form: "single",
|
|
41431
41953
|
optional: false
|
|
41432
41954
|
}],
|
|
41955
|
+
"recording.readWindowBytes": [{
|
|
41956
|
+
name: "deviceId",
|
|
41957
|
+
form: "single",
|
|
41958
|
+
optional: false
|
|
41959
|
+
}],
|
|
41433
41960
|
"recording.relocateFootage": [{
|
|
41434
41961
|
name: "deviceId",
|
|
41435
41962
|
form: "single",
|
|
@@ -42290,7 +42817,38 @@ object({
|
|
|
42290
42817
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
42291
42818
|
* reproduce that.
|
|
42292
42819
|
*/
|
|
42293
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
42820
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
42821
|
+
/**
|
|
42822
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
42823
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
42824
|
+
* subject tiles, on frames that detected something.
|
|
42825
|
+
*
|
|
42826
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
42827
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
42828
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
42829
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
42830
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
42831
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
42832
|
+
*
|
|
42833
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
42834
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
42835
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
42836
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
42837
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
42838
|
+
* binds only through a detection burst, where it still covers well past the
|
|
42839
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
42840
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
42841
|
+
* whole shape exists to avoid.
|
|
42842
|
+
*
|
|
42843
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
42844
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
42845
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
42846
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
42847
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
42848
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
42849
|
+
* nothing.
|
|
42850
|
+
*/
|
|
42851
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
42294
42852
|
});
|
|
42295
42853
|
/**
|
|
42296
42854
|
* The values in force when the operator has set nothing.
|
|
@@ -42306,12 +42864,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
42306
42864
|
budgetMb: 1024,
|
|
42307
42865
|
activityMs: 15e3,
|
|
42308
42866
|
tileBudgetMb: 64,
|
|
42867
|
+
sceneBudgetMb: 48,
|
|
42309
42868
|
admission: "inferred"
|
|
42310
42869
|
};
|
|
42311
42870
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
42312
42871
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
42313
42872
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
42314
42873
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
42874
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
42315
42875
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
42316
42876
|
var MB = 1024 * 1024;
|
|
42317
42877
|
1024 * MB, 3072 * MB;
|