@camstack/addon-auth 1.2.34 → 1.2.35
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/{dist-CW5BFbhb.mjs → dist-XHHoN0qI.mjs} +495 -59
- package/dist/{dist-CuICbzlU.js → dist-giwjMDHI.js} +495 -59
- package/dist/magic-link/auth-magic-link.addon.js +1 -1
- package/dist/magic-link/auth-magic-link.addon.mjs +1 -1
- package/dist/oidc/auth-oidc.addon.js +1 -1
- package/dist/oidc/auth-oidc.addon.mjs +1 -1
- package/dist/webauthn/_stub.js +1 -1
- package/dist/webauthn/{_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-D9e-IaU1.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-Z3KQYLnY.mjs} +3 -3
- package/dist/webauthn/{_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-W9MnSgkE.mjs → _virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BqdR4PRX.mjs} +1 -1
- package/dist/webauthn/auth-webauthn.addon.js +1 -1
- package/dist/webauthn/auth-webauthn.addon.mjs +1 -1
- package/dist/webauthn/{hostInit-C6L7zfJ3.mjs → hostInit-RsaGzQLK.mjs} +3 -3
- package/dist/webauthn/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -7640,6 +7640,66 @@ var OpsLogQueryInputSchema = object({
|
|
|
7640
7640
|
/** Max rows returned, newest-first. */
|
|
7641
7641
|
limit: number().int().min(1).max(1e3).optional()
|
|
7642
7642
|
});
|
|
7643
|
+
var LabelDefinitionSchema = object({
|
|
7644
|
+
id: string(),
|
|
7645
|
+
name: string(),
|
|
7646
|
+
category: string().optional(),
|
|
7647
|
+
description: string().optional(),
|
|
7648
|
+
icon: string().optional()
|
|
7649
|
+
});
|
|
7650
|
+
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
7651
|
+
var CLASS_MAP_MACRO_TARGETS = [
|
|
7652
|
+
"person",
|
|
7653
|
+
"vehicle",
|
|
7654
|
+
"animal",
|
|
7655
|
+
"package"
|
|
7656
|
+
];
|
|
7657
|
+
/**
|
|
7658
|
+
* Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
|
|
7659
|
+
* un operatore può selezionare.
|
|
7660
|
+
*
|
|
7661
|
+
* Sono le tre offerte dallo step `object-detection`
|
|
7662
|
+
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
7663
|
+
* `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
|
|
7664
|
+
* `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
|
|
7665
|
+
* `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
|
|
7666
|
+
* stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
|
|
7667
|
+
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
7668
|
+
*
|
|
7669
|
+
* UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
|
|
7670
|
+
* dello step e una seconda volta come union `FirstLevelMacro`
|
|
7671
|
+
* (`types/detection.ts`); una terza copia per il trigger di registrazione
|
|
7672
|
+
* (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
|
|
7673
|
+
* successiva.
|
|
7674
|
+
*/
|
|
7675
|
+
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
7676
|
+
"person",
|
|
7677
|
+
"vehicle",
|
|
7678
|
+
"animal"
|
|
7679
|
+
];
|
|
7680
|
+
/**
|
|
7681
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
7682
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
7683
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
7684
|
+
* detection pipeline executor actually routes.
|
|
7685
|
+
*
|
|
7686
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
7687
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
7688
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
7689
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
7690
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
7691
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
7692
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
7693
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
7694
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
7695
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
7696
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
7697
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
7698
|
+
*/
|
|
7699
|
+
var DetectionCatalogClassMapSchema = object({
|
|
7700
|
+
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
7701
|
+
preserveOriginal: boolean()
|
|
7702
|
+
});
|
|
7643
7703
|
/**
|
|
7644
7704
|
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
7645
7705
|
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
@@ -7662,10 +7722,55 @@ var RecordingStorageModeSchema = _enum([
|
|
|
7662
7722
|
"events",
|
|
7663
7723
|
"continuous"
|
|
7664
7724
|
]);
|
|
7725
|
+
/**
|
|
7726
|
+
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
7727
|
+
* tre offerte dallo step `object-detection`, da UNA lista
|
|
7728
|
+
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
7729
|
+
*/
|
|
7730
|
+
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
7731
|
+
/**
|
|
7732
|
+
* True quando `values` non ripete un elemento.
|
|
7733
|
+
*
|
|
7734
|
+
* Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
|
|
7735
|
+
* diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
|
|
7736
|
+
* conterebbe due volte le sue finestre in `segmentMissedByMs`.
|
|
7737
|
+
*/
|
|
7738
|
+
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
7665
7739
|
/** Which detectors trigger an `events`-mode band. */
|
|
7666
7740
|
var RecordingTriggersSchema = object({
|
|
7667
7741
|
motion: boolean().optional(),
|
|
7668
|
-
audioThresholdDbfs: number().optional()
|
|
7742
|
+
audioThresholdDbfs: number().optional(),
|
|
7743
|
+
/**
|
|
7744
|
+
* Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
|
|
7745
|
+
* non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
|
|
7746
|
+
* object acceso, nessuna classe" è la stessa forma "abilitata e non registra
|
|
7747
|
+
* nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
|
|
7748
|
+
*
|
|
7749
|
+
* Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
|
|
7750
|
+
* quelle che hanno attraversato `enabledMacroClasses`, i
|
|
7751
|
+
* `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
|
|
7752
|
+
* (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
|
|
7753
|
+
* finestre — vedi `recorder/object-trigger.ts`.
|
|
7754
|
+
*/
|
|
7755
|
+
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
7756
|
+
/**
|
|
7757
|
+
* I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
|
|
7758
|
+
* non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
|
|
7759
|
+
* `objectClasses`.
|
|
7760
|
+
*
|
|
7761
|
+
* Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
|
|
7762
|
+
* percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
|
|
7763
|
+
* non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
|
|
7764
|
+
* si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
7765
|
+
* device (D12) — mai un elenco globale di cap.
|
|
7766
|
+
*
|
|
7767
|
+
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
7768
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
7769
|
+
* la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
|
|
7770
|
+
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7771
|
+
* registrare.
|
|
7772
|
+
*/
|
|
7773
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7669
7774
|
});
|
|
7670
7775
|
/**
|
|
7671
7776
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8117,41 +8222,6 @@ var DecoderSessionConfigSchema = object({
|
|
|
8117
8222
|
*/
|
|
8118
8223
|
debug: boolean().optional()
|
|
8119
8224
|
});
|
|
8120
|
-
var LabelDefinitionSchema = object({
|
|
8121
|
-
id: string(),
|
|
8122
|
-
name: string(),
|
|
8123
|
-
category: string().optional(),
|
|
8124
|
-
description: string().optional(),
|
|
8125
|
-
icon: string().optional()
|
|
8126
|
-
});
|
|
8127
|
-
/**
|
|
8128
|
-
* Wire schema for a per-model CATALOG classMap override
|
|
8129
|
-
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8130
|
-
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8131
|
-
* detection pipeline executor actually routes.
|
|
8132
|
-
*
|
|
8133
|
-
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8134
|
-
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8135
|
-
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8136
|
-
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8137
|
-
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8138
|
-
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8139
|
-
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8140
|
-
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8141
|
-
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8142
|
-
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8143
|
-
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8144
|
-
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8145
|
-
*/
|
|
8146
|
-
var DetectionCatalogClassMapSchema = object({
|
|
8147
|
-
mapping: record(string(), _enum([
|
|
8148
|
-
"person",
|
|
8149
|
-
"vehicle",
|
|
8150
|
-
"animal",
|
|
8151
|
-
"package"
|
|
8152
|
-
])),
|
|
8153
|
-
preserveOriginal: boolean()
|
|
8154
|
-
});
|
|
8155
8225
|
var MODEL_FORMATS = [
|
|
8156
8226
|
"onnx",
|
|
8157
8227
|
"coreml",
|
|
@@ -21019,7 +21089,7 @@ var lifecycleJobSchema = object({
|
|
|
21019
21089
|
* `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
|
|
21020
21090
|
* as every other cap.
|
|
21021
21091
|
*/
|
|
21022
|
-
var LogLevelSchema$
|
|
21092
|
+
var LogLevelSchema$2 = _enum([
|
|
21023
21093
|
"debug",
|
|
21024
21094
|
"info",
|
|
21025
21095
|
"warn",
|
|
@@ -21226,7 +21296,7 @@ var CustomActionInputSchema = object({
|
|
|
21226
21296
|
method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
21227
21297
|
addonId: string(),
|
|
21228
21298
|
limit: number().min(1).max(500).default(100),
|
|
21229
|
-
level: LogLevelSchema$
|
|
21299
|
+
level: LogLevelSchema$2.optional()
|
|
21230
21300
|
}), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
|
|
21231
21301
|
packageName: string(),
|
|
21232
21302
|
version: string().optional()
|
|
@@ -21324,7 +21394,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21324
21394
|
auth: "admin"
|
|
21325
21395
|
}), method(object({
|
|
21326
21396
|
addonId: string(),
|
|
21327
|
-
level: LogLevelSchema$
|
|
21397
|
+
level: LogLevelSchema$2.optional()
|
|
21328
21398
|
}), LogStreamEntrySchema, { kind: "subscription" });
|
|
21329
21399
|
object({
|
|
21330
21400
|
/** Carbon dioxide concentration in ppm. */
|
|
@@ -22318,6 +22388,35 @@ var FaceFilterEnum = _enum([
|
|
|
22318
22388
|
"identified",
|
|
22319
22389
|
"all"
|
|
22320
22390
|
]);
|
|
22391
|
+
/**
|
|
22392
|
+
* What a `listRecentFaces` page is ORDERED BY.
|
|
22393
|
+
*
|
|
22394
|
+
* - `timestamp` — when the face was seen. The historical (and default) order.
|
|
22395
|
+
* - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
|
|
22396
|
+
* cosine of the face's SUGGESTED identity. This is the "review by certainty"
|
|
22397
|
+
* order: it puts the suggestions an operator can confirm with one tap at the
|
|
22398
|
+
* top, and it is the reason this enum exists — a client that ranked a capped
|
|
22399
|
+
* page client-side was ranking the newest N, never the most certain N.
|
|
22400
|
+
*
|
|
22401
|
+
* A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
|
|
22402
|
+
* auto-assigned face, or a face below the suggestion band) has no certainty to
|
|
22403
|
+
* compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
|
|
22404
|
+
* — flipping the direction reorders the rows that HAVE a certainty and never
|
|
22405
|
+
* floods the page with the ones that do not. `addon-post-analysis`'s
|
|
22406
|
+
* `store/face-sort.ts` is the single implementation, tiebreaks newest-first
|
|
22407
|
+
* then by faceId, and is what makes this a total order instead of the
|
|
22408
|
+
* backend's NULL-collation accident.
|
|
22409
|
+
*/
|
|
22410
|
+
var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
|
|
22411
|
+
var FaceSortDirectionEnum = _enum(["asc", "desc"]);
|
|
22412
|
+
/** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
|
|
22413
|
+
* never leaves the server. */
|
|
22414
|
+
var FaceClusterSchema = object({
|
|
22415
|
+
faceIds: array(string()).readonly(),
|
|
22416
|
+
representativeFaceId: string(),
|
|
22417
|
+
size: number().int(),
|
|
22418
|
+
cohesion: number()
|
|
22419
|
+
});
|
|
22321
22420
|
var MediaFileLiteSchema$1 = object({
|
|
22322
22421
|
key: string(),
|
|
22323
22422
|
kind: string(),
|
|
@@ -22364,24 +22463,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22364
22463
|
kind: "mutation",
|
|
22365
22464
|
auth: "admin"
|
|
22366
22465
|
}), method(object({
|
|
22367
|
-
/**
|
|
22466
|
+
/**
|
|
22467
|
+
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
22468
|
+
*
|
|
22469
|
+
* The legacy single-camera form, kept verbatim for every caller that
|
|
22470
|
+
* already sends it. A caller that wants a SET sends {@link deviceIds}
|
|
22471
|
+
* instead — never both: `deviceIds` is the authority whenever it is
|
|
22472
|
+
* present, and this field is then ignored rather than unioned, so
|
|
22473
|
+
* there is exactly one answer to "which cameras did I ask for".
|
|
22474
|
+
*/
|
|
22368
22475
|
deviceId: number().int().optional(),
|
|
22476
|
+
/**
|
|
22477
|
+
* Restrict to a SET of cameras — the review UI's camera filter, which
|
|
22478
|
+
* until now had to fetch the cluster-wide page and drop rows in the
|
|
22479
|
+
* client (so the `limit` it asked for was spent on cameras it was
|
|
22480
|
+
* about to discard).
|
|
22481
|
+
*
|
|
22482
|
+
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
22483
|
+
* "every camera". A request for no devices is a request, not an
|
|
22484
|
+
* omission; same contract as `deviceManager.listFleet` and
|
|
22485
|
+
* `pipelineAnalytics.listRecentTracks`.
|
|
22486
|
+
*
|
|
22487
|
+
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
22488
|
+
*/
|
|
22489
|
+
deviceIds: array(number().int()).optional(),
|
|
22369
22490
|
limit: number().int().positive().optional(),
|
|
22370
22491
|
filter: FaceFilterEnum.optional(),
|
|
22371
22492
|
/**
|
|
22372
|
-
*
|
|
22373
|
-
*
|
|
22493
|
+
* Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22494
|
+
* Absent means no lower bound.
|
|
22495
|
+
*/
|
|
22496
|
+
since: number().int().optional(),
|
|
22497
|
+
/**
|
|
22498
|
+
* Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
|
|
22499
|
+
* Absent means no upper bound.
|
|
22500
|
+
*/
|
|
22501
|
+
until: number().int().optional(),
|
|
22502
|
+
/**
|
|
22503
|
+
* Order the page by time or by suggestion certainty. Default
|
|
22504
|
+
* `'timestamp'` — the historical order, unchanged for every caller
|
|
22505
|
+
* that does not ask.
|
|
22374
22506
|
*
|
|
22375
|
-
*
|
|
22376
|
-
*
|
|
22377
|
-
* the browser cache the images.
|
|
22507
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
22508
|
+
* does under `'suggestionConfidence'`.
|
|
22378
22509
|
*
|
|
22379
|
-
*
|
|
22380
|
-
*
|
|
22381
|
-
*
|
|
22382
|
-
*
|
|
22383
|
-
*
|
|
22384
|
-
|
|
22510
|
+
* Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
|
|
22511
|
+
* index and stops reading as soon as `limit` rows have PASSED the
|
|
22512
|
+
* filter. `'suggestionConfidence'` cannot stop early — the most
|
|
22513
|
+
* certain row may be the oldest — so it walks the window. Narrow it
|
|
22514
|
+
* with {@link since} / {@link until}.
|
|
22515
|
+
*/
|
|
22516
|
+
sortBy: FaceSortFieldEnum.optional(),
|
|
22517
|
+
/** Sort direction for {@link sortBy}. Default `'desc'`. */
|
|
22518
|
+
sortDirection: FaceSortDirectionEnum.optional(),
|
|
22519
|
+
/**
|
|
22520
|
+
* Inline the base64 crop on every row.
|
|
22521
|
+
*
|
|
22522
|
+
* Default `false` since the 2026-08-25 inversion — see
|
|
22523
|
+
* `include-crops-default.ts`, which is the ONE place that resolves
|
|
22524
|
+
* this for every gallery, and which records why the inline shape had
|
|
22525
|
+
* to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
|
|
22526
|
+
* The doc here used to still say `true`; it was wrong, and a leftover
|
|
22527
|
+
* that describes the old design reads as permission to rely on it.
|
|
22528
|
+
*
|
|
22529
|
+
* Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
|
|
22530
|
+
* which the browser fetches off the `event-media` plane in parallel,
|
|
22531
|
+
* cached and ETagged.
|
|
22385
22532
|
*/
|
|
22386
22533
|
includeCrops: boolean().optional()
|
|
22387
22534
|
}).optional(), array(FaceInfoSchema).readonly()), method(object({
|
|
@@ -22417,13 +22564,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
22417
22564
|
}), method(object({
|
|
22418
22565
|
threshold: number().min(0).max(1).optional(),
|
|
22419
22566
|
minClusterSize: number().int().min(2).optional(),
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22567
|
+
/**
|
|
22568
|
+
* Cap on the number of CLUSTERS returned. Renamed from `limit`,
|
|
22569
|
+
* which read as though it bounded the work — it never did.
|
|
22570
|
+
*
|
|
22571
|
+
* Wins over {@link limit} when both are sent.
|
|
22572
|
+
*/
|
|
22573
|
+
maxClusters: number().int().positive().optional(),
|
|
22574
|
+
/**
|
|
22575
|
+
* @deprecated Ambiguous name for {@link maxClusters} — it cuts the
|
|
22576
|
+
* RESULT, not the scan. Kept so existing callers keep working; send
|
|
22577
|
+
* `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
|
|
22578
|
+
*/
|
|
22579
|
+
limit: number().int().positive().optional(),
|
|
22580
|
+
/**
|
|
22581
|
+
* Cap on the number of unassigned faces READ AND CLUSTERED — the
|
|
22582
|
+
* POOL, not the result.
|
|
22583
|
+
*
|
|
22584
|
+
* This is the knob {@link maxClusters} was mistaken for. Clustering
|
|
22585
|
+
* used to read every unassigned face on the hub no matter what the
|
|
22586
|
+
* caller asked for, because the only bound cut the finished clusters
|
|
22587
|
+
* afterwards; a UI showing a window of 100 paid for a scan of the
|
|
22588
|
+
* whole corpus, on an addon whose disk is under contention.
|
|
22589
|
+
*
|
|
22590
|
+
* The pool is the NEWEST matching faces first — the same order the
|
|
22591
|
+
* gallery shows — so a bound here shortens the horizon, it does not
|
|
22592
|
+
* sample it randomly.
|
|
22593
|
+
*
|
|
22594
|
+
* Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
|
|
22595
|
+
* so the live corpus — 372 face rows — is unaffected while the
|
|
22596
|
+
* unbounded scan can never come back as the table grows.
|
|
22597
|
+
*/
|
|
22598
|
+
maxFacesScanned: number().int().positive().optional()
|
|
22599
|
+
}).optional(), array(FaceClusterSchema).readonly());
|
|
22427
22600
|
/**
|
|
22428
22601
|
* Fan-control cap. Models HA `fan.*` entity-specific surfaces:
|
|
22429
22602
|
* speed percentage, preset modes, ceiling-fan direction, and
|
|
@@ -26146,6 +26319,211 @@ var SetSiteLocationInputSchema = object({
|
|
|
26146
26319
|
latitude: number().min(-90).max(90),
|
|
26147
26320
|
longitude: number().min(-180).max(180)
|
|
26148
26321
|
}).nullable();
|
|
26322
|
+
/**
|
|
26323
|
+
* One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
|
|
26324
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26325
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26326
|
+
* already prints - never a token, never an `Authorization` header.
|
|
26327
|
+
*/
|
|
26328
|
+
var RequestCensusGroupSchema = object({
|
|
26329
|
+
procedure: string(),
|
|
26330
|
+
userAgent: string(),
|
|
26331
|
+
ip: string(),
|
|
26332
|
+
principal: string(),
|
|
26333
|
+
calls: number(),
|
|
26334
|
+
perMin: number()
|
|
26335
|
+
});
|
|
26336
|
+
/**
|
|
26337
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
26338
|
+
*
|
|
26339
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
26340
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
26341
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
26342
|
+
*/
|
|
26343
|
+
var RequestCensusProcedureSchema = object({
|
|
26344
|
+
procedure: string(),
|
|
26345
|
+
calls: number(),
|
|
26346
|
+
perMin: number()
|
|
26347
|
+
});
|
|
26348
|
+
/**
|
|
26349
|
+
* The census as an operator sees it.
|
|
26350
|
+
*
|
|
26351
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
26352
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
26353
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
26354
|
+
* like one that succeeded.
|
|
26355
|
+
*/
|
|
26356
|
+
var RequestCensusStatusSchema = object({
|
|
26357
|
+
armed: boolean(),
|
|
26358
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
26359
|
+
elapsedMs: number(),
|
|
26360
|
+
/** The window actually armed, after the server clamped the request. */
|
|
26361
|
+
windowMs: number(),
|
|
26362
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26363
|
+
armedUntilMs: number(),
|
|
26364
|
+
httpRequests: number(),
|
|
26365
|
+
batchedRequests: number(),
|
|
26366
|
+
/**
|
|
26367
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
26368
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
26369
|
+
* the number comparable with a store-side call count.
|
|
26370
|
+
*/
|
|
26371
|
+
procedureCalls: number(),
|
|
26372
|
+
/**
|
|
26373
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26374
|
+
* transport resolves one context per connection - but the number that says
|
|
26375
|
+
* whether a plane this census cannot see was busy while HTTP was quiet.
|
|
26376
|
+
*/
|
|
26377
|
+
wsConnections: number(),
|
|
26378
|
+
distinctGroups: number(),
|
|
26379
|
+
/** Calls counted in the totals whose group attribution was shed at the
|
|
26380
|
+
* cardinality bound. */
|
|
26381
|
+
unattributedCalls: number(),
|
|
26382
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26383
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
26384
|
+
}).extend({ persisted: boolean() });
|
|
26385
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
26386
|
+
var LogLevelSchema$1 = _enum([
|
|
26387
|
+
"debug",
|
|
26388
|
+
"info",
|
|
26389
|
+
"warn",
|
|
26390
|
+
"error"
|
|
26391
|
+
]);
|
|
26392
|
+
/**
|
|
26393
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
26394
|
+
*
|
|
26395
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
26396
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
26397
|
+
*/
|
|
26398
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
26399
|
+
/**
|
|
26400
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
26401
|
+
* layer that carries an explicit value wins.
|
|
26402
|
+
*
|
|
26403
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
26404
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
26405
|
+
* grow later would force every consumer of this document to change with it.
|
|
26406
|
+
* Nothing returns `component` today.
|
|
26407
|
+
*/
|
|
26408
|
+
var LoggingScopeKindSchema = _enum([
|
|
26409
|
+
"cluster",
|
|
26410
|
+
"node",
|
|
26411
|
+
"component"
|
|
26412
|
+
]);
|
|
26413
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
26414
|
+
var LoggingLevelSourceSchema = _enum([
|
|
26415
|
+
"default",
|
|
26416
|
+
"cluster",
|
|
26417
|
+
"node",
|
|
26418
|
+
"component"
|
|
26419
|
+
]);
|
|
26420
|
+
/**
|
|
26421
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
26422
|
+
*
|
|
26423
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
26424
|
+
* difference between "this node is at `info` because I decided it" and
|
|
26425
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
26426
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
26427
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
26428
|
+
*/
|
|
26429
|
+
var LoggingLevelLayerSchema = object({
|
|
26430
|
+
scope: LoggingScopeKindSchema,
|
|
26431
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
26432
|
+
nodeId: string().nullable(),
|
|
26433
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
26434
|
+
level: LogLevelSchema$1.nullable()
|
|
26435
|
+
});
|
|
26436
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
26437
|
+
var LoggingEffectiveSchema = object({
|
|
26438
|
+
level: LogLevelSchema$1,
|
|
26439
|
+
levelSource: LoggingLevelSourceSchema
|
|
26440
|
+
});
|
|
26441
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
26442
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
26443
|
+
/**
|
|
26444
|
+
* An armed diagnostic, with its DEADLINE.
|
|
26445
|
+
*
|
|
26446
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
26447
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
26448
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
26449
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
26450
|
+
*/
|
|
26451
|
+
var DiagnosticWindowSchema = object({
|
|
26452
|
+
id: DiagnosticIdSchema,
|
|
26453
|
+
armed: boolean(),
|
|
26454
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
26455
|
+
armedUntilMs: number(),
|
|
26456
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
26457
|
+
remainingMs: number(),
|
|
26458
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
26459
|
+
* i.e. whether this window would survive a restart. */
|
|
26460
|
+
persisted: boolean()
|
|
26461
|
+
});
|
|
26462
|
+
/**
|
|
26463
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
26464
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
26465
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
26466
|
+
*/
|
|
26467
|
+
var DiagnosticWindowPatchSchema = object({
|
|
26468
|
+
id: DiagnosticIdSchema,
|
|
26469
|
+
armMs: number().int().min(0),
|
|
26470
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
26471
|
+
reportEveryMs: number().int().positive().optional()
|
|
26472
|
+
});
|
|
26473
|
+
/**
|
|
26474
|
+
* A PATCH, and patches MERGE.
|
|
26475
|
+
*
|
|
26476
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
26477
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
26478
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
26479
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
26480
|
+
* turns into an erased one.
|
|
26481
|
+
*/
|
|
26482
|
+
var LoggingSettingsPatchSchema = object({
|
|
26483
|
+
/**
|
|
26484
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
26485
|
+
* addressed scope so it inherits again. A value sets it.
|
|
26486
|
+
*/
|
|
26487
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
26488
|
+
/**
|
|
26489
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
26490
|
+
* keeps running — a patch is never a full replacement.
|
|
26491
|
+
*/
|
|
26492
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
26493
|
+
});
|
|
26494
|
+
/**
|
|
26495
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
26496
|
+
*
|
|
26497
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
26498
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
26499
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
26500
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
26501
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
26502
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
26503
|
+
* layer selector needs a name the transport does not already own.
|
|
26504
|
+
*/
|
|
26505
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
|
|
26506
|
+
var SetLoggingSettingsInputSchema = object({
|
|
26507
|
+
scopeNodeId: string().optional(),
|
|
26508
|
+
patch: LoggingSettingsPatchSchema
|
|
26509
|
+
});
|
|
26510
|
+
/**
|
|
26511
|
+
* The whole document, as read and as returned after every write.
|
|
26512
|
+
*
|
|
26513
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
26514
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
26515
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
26516
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
26517
|
+
* survive a restart.
|
|
26518
|
+
*/
|
|
26519
|
+
var LoggingSettingsStateSchema = object({
|
|
26520
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
26521
|
+
scopeNodeId: string().nullable(),
|
|
26522
|
+
effective: LoggingEffectiveSchema,
|
|
26523
|
+
explicit: LoggingExplicitSchema,
|
|
26524
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
26525
|
+
persisted: boolean()
|
|
26526
|
+
});
|
|
26149
26527
|
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(), {
|
|
26150
26528
|
kind: "mutation",
|
|
26151
26529
|
auth: "admin"
|
|
@@ -26158,6 +26536,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26158
26536
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26159
26537
|
kind: "mutation",
|
|
26160
26538
|
auth: "admin"
|
|
26539
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26540
|
+
kind: "mutation",
|
|
26541
|
+
auth: "admin"
|
|
26161
26542
|
});
|
|
26162
26543
|
object({
|
|
26163
26544
|
/** True when the device's tamper switch / case-open contact is
|
|
@@ -31989,6 +32370,18 @@ Object.freeze({
|
|
|
31989
32370
|
addonId: null,
|
|
31990
32371
|
access: "create"
|
|
31991
32372
|
},
|
|
32373
|
+
"system.getLoggingSettings": {
|
|
32374
|
+
capName: "system",
|
|
32375
|
+
capScope: "system",
|
|
32376
|
+
addonId: null,
|
|
32377
|
+
access: "view"
|
|
32378
|
+
},
|
|
32379
|
+
"system.getRequestCensus": {
|
|
32380
|
+
capName: "system",
|
|
32381
|
+
capScope: "system",
|
|
32382
|
+
addonId: null,
|
|
32383
|
+
access: "view"
|
|
32384
|
+
},
|
|
31992
32385
|
"system.getRetentionConfig": {
|
|
31993
32386
|
capName: "system",
|
|
31994
32387
|
capScope: "system",
|
|
@@ -32019,6 +32412,12 @@ Object.freeze({
|
|
|
32019
32412
|
addonId: null,
|
|
32020
32413
|
access: "view"
|
|
32021
32414
|
},
|
|
32415
|
+
"system.setLoggingSettings": {
|
|
32416
|
+
capName: "system",
|
|
32417
|
+
capScope: "system",
|
|
32418
|
+
addonId: null,
|
|
32419
|
+
access: "create"
|
|
32420
|
+
},
|
|
32022
32421
|
"system.setRetentionConfig": {
|
|
32023
32422
|
capName: "system",
|
|
32024
32423
|
capScope: "system",
|
|
@@ -33174,6 +33573,10 @@ Object.freeze({
|
|
|
33174
33573
|
name: "deviceId",
|
|
33175
33574
|
form: "single",
|
|
33176
33575
|
optional: true
|
|
33576
|
+
}, {
|
|
33577
|
+
name: "deviceIds",
|
|
33578
|
+
form: "array",
|
|
33579
|
+
optional: true
|
|
33177
33580
|
}],
|
|
33178
33581
|
"fanControl.setDirection": [{
|
|
33179
33582
|
name: "deviceId",
|
|
@@ -34784,7 +35187,38 @@ object({
|
|
|
34784
35187
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34785
35188
|
* reproduce that.
|
|
34786
35189
|
*/
|
|
34787
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
35190
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
35191
|
+
/**
|
|
35192
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
35193
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
35194
|
+
* subject tiles, on frames that detected something.
|
|
35195
|
+
*
|
|
35196
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
35197
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
35198
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
35199
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
35200
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
35201
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
35202
|
+
*
|
|
35203
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
35204
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
35205
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
35206
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
35207
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
35208
|
+
* binds only through a detection burst, where it still covers well past the
|
|
35209
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
35210
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
35211
|
+
* whole shape exists to avoid.
|
|
35212
|
+
*
|
|
35213
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
35214
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
35215
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
35216
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
35217
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
35218
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
35219
|
+
* nothing.
|
|
35220
|
+
*/
|
|
35221
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
34788
35222
|
});
|
|
34789
35223
|
/**
|
|
34790
35224
|
* The values in force when the operator has set nothing.
|
|
@@ -34800,12 +35234,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
34800
35234
|
budgetMb: 1024,
|
|
34801
35235
|
activityMs: 15e3,
|
|
34802
35236
|
tileBudgetMb: 64,
|
|
35237
|
+
sceneBudgetMb: 48,
|
|
34803
35238
|
admission: "inferred"
|
|
34804
35239
|
};
|
|
34805
35240
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34806
35241
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34807
35242
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34808
35243
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
35244
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
34809
35245
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34810
35246
|
var MB = 1024 * 1024;
|
|
34811
35247
|
1024 * MB, 3072 * MB;
|