@camstack/addon-osd-manager 0.1.36 → 0.1.39
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-D83604xn.mjs → MotionZonesSettings-CIXOIaxJ.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-DfN5NpZn.mjs → PrivacyMaskSettings-BXVb51kq.mjs} +4 -4
- package/dist/{SceneMonitorEditor-GBajxsPZ.mjs → SceneMonitorEditor-DYRLvvVA.mjs} +3 -3
- package/dist/_stub.js +10 -10
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BGccUojN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BfqPLLgE.mjs} +4 -4
- package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dtoxgyqi.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CnoMYUFR.mjs} +1 -1
- package/dist/{hostInit-De-9A9ec.mjs → hostInit-C5XnMBDh.mjs} +3 -3
- package/dist/index.js +492 -30
- package/dist/index.mjs +492 -30
- package/dist/{player-overlays-HbUryydX.mjs → player-overlays-BuhAo_Es.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-D_qTmWde.mjs → responsive-BAE2Alvc.mjs} +1 -1
- package/dist/{square-C0LGbyDF.mjs → square-7AGHps0Y.mjs} +1 -1
- package/dist/{trash-2-sjTFBZ8w.mjs → trash-2-CeWvoLug.mjs} +1 -1
- package/dist/{use-device-snapshot-wIAkKsnc.mjs → use-device-snapshot-DW8FBhRd.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-MvVd-u2_.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-hPck03Nc.mjs} +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8098,6 +8098,21 @@ var RelocateJobSchema = object({
|
|
|
8098
8098
|
bytesMoved: number().int(),
|
|
8099
8099
|
/** Total files discovered up front; null while (or when) unknown. */
|
|
8100
8100
|
filesTotal: number().int().nullable(),
|
|
8101
|
+
/**
|
|
8102
|
+
* Rows this run CORRECTED while moving them — a durable mutation the move
|
|
8103
|
+
* made that nobody asked for, so it is reported where the operator reads the
|
|
8104
|
+
* job rather than only in a log line.
|
|
8105
|
+
*
|
|
8106
|
+
* A footage segment records its byte count in its own NAME, and the durable
|
|
8107
|
+
* hour row derives its aggregates from those names. A file that does not
|
|
8108
|
+
* match its name therefore makes the ledger's sums — and with them quota and
|
|
8109
|
+
* pressure eviction — wrong by the difference, and only a rename can fix it.
|
|
8110
|
+
* On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
|
|
8111
|
+
*
|
|
8112
|
+
* Absent on lanes where the question has no meaning: a media blob's size is
|
|
8113
|
+
* in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
|
|
8114
|
+
*/
|
|
8115
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8101
8116
|
startedAt: number(),
|
|
8102
8117
|
finishedAt: number().nullable(),
|
|
8103
8118
|
error: string().nullable()
|
|
@@ -8166,14 +8181,42 @@ var RelocateMediaInputSchema = object({
|
|
|
8166
8181
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8167
8182
|
mode: MediaRelocateModeSchema.optional()
|
|
8168
8183
|
});
|
|
8169
|
-
/**
|
|
8170
|
-
*
|
|
8171
|
-
*
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8184
|
+
/**
|
|
8185
|
+
* The unstamped population of ONE collection — split, because the gate and the
|
|
8186
|
+
* operator ask two different questions and only one of them has to be cheap.
|
|
8187
|
+
*
|
|
8188
|
+
* `present` is the GATE: "is there at least one row that would be orphaned by a
|
|
8189
|
+
* repoint". It is a single indexed seek to the first matching row, so it stays
|
|
8190
|
+
* answerable on a saturated disk and answers in O(log n) precisely in the state
|
|
8191
|
+
* that matters — after a seal, when the population is empty.
|
|
8192
|
+
*
|
|
8193
|
+
* `rows` is the NUMBER, for the refusal message and the operator's sense of
|
|
8194
|
+
* scale. It is a second, indexed `COUNT(*)`, and `null` means **not
|
|
8195
|
+
* measurable** — never zero. `{ present: true, rows: null }` is a legitimate
|
|
8196
|
+
* and useful answer: "there are some, and this read could not say how many"
|
|
8197
|
+
* still refuses the cutover, which is the whole job.
|
|
8198
|
+
*/
|
|
8199
|
+
var UnstampedRowsSchema = object({
|
|
8200
|
+
present: boolean(),
|
|
8201
|
+
rows: number().int().nonnegative().nullable()
|
|
8176
8202
|
});
|
|
8203
|
+
/**
|
|
8204
|
+
* How many rows still carry NO `locationId` — the population a repoint would
|
|
8205
|
+
* silently re-aim at a disk that does not hold their bytes.
|
|
8206
|
+
*
|
|
8207
|
+
* **`null` = the count could not be taken**, and it is NOT permission to cut
|
|
8208
|
+
* over. The gate opens on a measured absence and on nothing else; an unread
|
|
8209
|
+
* collection and an empty one are different facts, and this repo has already
|
|
8210
|
+
* paid for conflating them (`RelocateResidueSchema`, D295).
|
|
8211
|
+
*/
|
|
8212
|
+
var UnstampedEventMediaCountSchema = object({
|
|
8213
|
+
media: UnstampedRowsSchema,
|
|
8214
|
+
retrainFrames: UnstampedRowsSchema,
|
|
8215
|
+
/** True when EITHER collection holds one. The refusal reads this. */
|
|
8216
|
+
anyPresent: boolean(),
|
|
8217
|
+
/** Sum across both, or `null` when either lane could not be counted. */
|
|
8218
|
+
total: number().int().nonnegative().nullable()
|
|
8219
|
+
}).nullable();
|
|
8177
8220
|
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
8178
8221
|
/** The independently selectable logical storage classes — every class
|
|
8179
8222
|
* `storage.listLocationDeclarations` reports, so an operator never meets a
|
|
@@ -8259,13 +8302,53 @@ var StorageMigrationParticipantSchema = _enum([
|
|
|
8259
8302
|
"recorder",
|
|
8260
8303
|
"analytics"
|
|
8261
8304
|
]);
|
|
8305
|
+
/**
|
|
8306
|
+
* The mover's own numbers, folded onto the coordinator's durable move record.
|
|
8307
|
+
*
|
|
8308
|
+
* The long half of a non-blocking migration is `draining`, and it is measured
|
|
8309
|
+
* in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
|
|
8310
|
+
* existed the only place those numbers appeared was a Loki line, so an operator
|
|
8311
|
+
* watching the Admin UI saw `phase: draining` and nothing else for a whole
|
|
8312
|
+
* afternoon.
|
|
8313
|
+
*
|
|
8314
|
+
* It is POLLED, never pushed. Events are telemetry and may be dropped
|
|
8315
|
+
* (D8/D11), and a dropped progress event is indistinguishable from a stalled
|
|
8316
|
+
* mover — which is the exact failure this is meant to end. The coordinator's
|
|
8317
|
+
* `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
|
|
8318
|
+
* read `state`; folding the counters costs no extra read and makes the durable
|
|
8319
|
+
* record say afterwards how far a move actually got.
|
|
8320
|
+
*
|
|
8321
|
+
* `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
|
|
8322
|
+
* a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
|
|
8323
|
+
* cannot say M, and a 0 there would render as "100 % done".
|
|
8324
|
+
*/
|
|
8325
|
+
var StorageMigrationMoveProgressSchema = object({
|
|
8326
|
+
filesMoved: number().int().nonnegative(),
|
|
8327
|
+
/** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
|
|
8328
|
+
filesTotal: number().int().nonnegative().nullable(),
|
|
8329
|
+
bytesMoved: number().int().nonnegative(),
|
|
8330
|
+
/** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
|
|
8331
|
+
* a lane that cannot reconcile. A migration that silently rewrote durable
|
|
8332
|
+
* rows would be the same failure as one that silently skipped them. */
|
|
8333
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8334
|
+
/** The MOVER's start, not the migration's: a drain restarted after an addon
|
|
8335
|
+
* crash gets a new mover, and a rate computed from the migration's start
|
|
8336
|
+
* would silently average in the time nothing was running. */
|
|
8337
|
+
startedAt: number(),
|
|
8338
|
+
/** When the coordinator last read these numbers. Paired with `startedAt` it
|
|
8339
|
+
* is the only honest rate: both clocks are the hub's, so a UI never has to
|
|
8340
|
+
* subtract its own. */
|
|
8341
|
+
observedAt: number()
|
|
8342
|
+
});
|
|
8262
8343
|
var StorageMigrationMoveSchema = object({
|
|
8263
8344
|
storageClass: StorageMigrationClassSchema,
|
|
8264
8345
|
fromLocationId: string(),
|
|
8265
8346
|
toLocationId: string(),
|
|
8266
8347
|
moverJobId: string().nullable(),
|
|
8267
8348
|
state: RelocateJobStateSchema.nullable(),
|
|
8268
|
-
error: string().nullable()
|
|
8349
|
+
error: string().nullable(),
|
|
8350
|
+
/** Last observed mover counters; `null` until the mover has been polled once. */
|
|
8351
|
+
progress: StorageMigrationMoveProgressSchema.nullable()
|
|
8269
8352
|
});
|
|
8270
8353
|
var StorageMigrationJobSchema = object({
|
|
8271
8354
|
jobId: string(),
|
|
@@ -8311,6 +8394,98 @@ var StorageMigrationPlanSchema = object({
|
|
|
8311
8394
|
findings: array(StorageMigrationFindingSchema)
|
|
8312
8395
|
});
|
|
8313
8396
|
/**
|
|
8397
|
+
* A mover as it exists RIGHT NOW, whether or not a migration job owns it.
|
|
8398
|
+
*
|
|
8399
|
+
* The coordinator's job record is the state of record for a migration, and its
|
|
8400
|
+
* moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
|
|
8401
|
+
* standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
|
|
8402
|
+
* are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
|
|
8403
|
+
* way because no supported UI path existed. A mover armed like that has no job
|
|
8404
|
+
* to fold progress into, so it has to be readable on its own or it is invisible.
|
|
8405
|
+
*
|
|
8406
|
+
* `migrationJobId` is what tells the two apart: `null` means nothing here
|
|
8407
|
+
* orchestrated it.
|
|
8408
|
+
*/
|
|
8409
|
+
var StorageMigrationMoverSchema = object({
|
|
8410
|
+
lane: _enum(["footage", "media"]),
|
|
8411
|
+
job: RelocateJobSchema,
|
|
8412
|
+
/** The coordinator job that armed this mover, or `null` for a mover armed
|
|
8413
|
+
* directly against the owning addon. */
|
|
8414
|
+
migrationJobId: string().nullable(),
|
|
8415
|
+
/** When the hub read these counters. Stamped here so a rate is `bytesMoved`
|
|
8416
|
+
* over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
|
|
8417
|
+
* a browser subtracting its own `Date.now()` from a server `startedAt` is a
|
|
8418
|
+
* rate made of two different clocks. */
|
|
8419
|
+
observedAt: number()
|
|
8420
|
+
});
|
|
8421
|
+
/**
|
|
8422
|
+
* What a SOURCE still holds for one storage class — the number that makes a
|
|
8423
|
+
* "drain remaining" action honest rather than hopeful.
|
|
8424
|
+
*
|
|
8425
|
+
* It comes from the archive (`SegmentHourLedger.census` for footage, the media
|
|
8426
|
+
* engine's own selection count for media), never from the resident index: a
|
|
8427
|
+
* drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
|
|
8428
|
+
* never been told about (D295).
|
|
8429
|
+
*
|
|
8430
|
+
* `items`/`bytes` are `null` for "the archive could not be asked", which is
|
|
8431
|
+
* deliberately NOT zero: a drain is still offered for an unknown residue,
|
|
8432
|
+
* because refusing on an unanswerable read would hide exactly the case an
|
|
8433
|
+
* operator needs to act on.
|
|
8434
|
+
*/
|
|
8435
|
+
var StorageMigrationResidueSchema = object({
|
|
8436
|
+
storageClass: StorageMigrationClassSchema,
|
|
8437
|
+
/** The location still holding the data. `'*'` for the media lane, whose rows
|
|
8438
|
+
* move from wherever they are rather than from one named source. */
|
|
8439
|
+
fromLocationId: string(),
|
|
8440
|
+
/** Where a drain would move it — the class's CURRENT default. */
|
|
8441
|
+
toLocationId: string(),
|
|
8442
|
+
/** Segments (footage lane) or rows (media lane) still on the source. */
|
|
8443
|
+
items: number().int().nonnegative().nullable(),
|
|
8444
|
+
/** Bytes on the source; `null` when the lane counts rows rather than bytes. */
|
|
8445
|
+
bytes: number().int().nonnegative().nullable()
|
|
8446
|
+
});
|
|
8447
|
+
/**
|
|
8448
|
+
* Run the DRAIN half and nothing else.
|
|
8449
|
+
*
|
|
8450
|
+
* A migration that reached `done` has already repointed, so `start` correctly
|
|
8451
|
+
* refuses its destination ("already the default") — there is nothing left to
|
|
8452
|
+
* repoint. But the drain can fail, be cancelled, be interrupted by a restart,
|
|
8453
|
+
* or finish against a work list that was a tenth of the archive (D295), and
|
|
8454
|
+
* before this there was no supported way to run only that half: the only way
|
|
8455
|
+
* through was calling `recording.relocateFootage` by hand over admin tRPC.
|
|
8456
|
+
*
|
|
8457
|
+
* `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
|
|
8458
|
+
* refusal meaningful: the two verbs are disjoint, so nothing here can silently
|
|
8459
|
+
* re-repoint a class that is already migrated.
|
|
8460
|
+
*/
|
|
8461
|
+
var StorageMigrationDrainInputSchema = object({
|
|
8462
|
+
/** The classes to drain. Each must appear in `storageMigration.residue`, so
|
|
8463
|
+
* a class whose source is already empty is refused rather than started. */
|
|
8464
|
+
classes: array(StorageMigrationClassSchema).min(1),
|
|
8465
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
8466
|
+
});
|
|
8467
|
+
/** What a footage source still holds, asked of the durable hour ledger. */
|
|
8468
|
+
var RelocateResidueInputSchema = object({
|
|
8469
|
+
fromLocationId: string().min(1),
|
|
8470
|
+
/** Narrow to one logical class; omit for every profile on the location. */
|
|
8471
|
+
footageClass: RelocateFootageClassSchema.optional()
|
|
8472
|
+
});
|
|
8473
|
+
/** `null` = the archive could not answer (no ledger on this node, or the
|
|
8474
|
+
* aggregate failed). Never conflated with an empty source. */
|
|
8475
|
+
var RelocateResidueSchema = object({
|
|
8476
|
+
segments: number().int().nonnegative(),
|
|
8477
|
+
bytes: number().int().nonnegative()
|
|
8478
|
+
}).nullable();
|
|
8479
|
+
/** How many rows a media pass would still act on against a given target — the
|
|
8480
|
+
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8481
|
+
* never disagree. `null` = the count could not be taken. */
|
|
8482
|
+
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8483
|
+
var RelocatableMediaCountInputSchema = object({
|
|
8484
|
+
toLocationId: string().min(1),
|
|
8485
|
+
/** Omitted = `move`. */
|
|
8486
|
+
mode: MediaRelocateModeSchema.optional()
|
|
8487
|
+
});
|
|
8488
|
+
/**
|
|
8314
8489
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8315
8490
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8316
8491
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8414,6 +8589,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
|
|
|
8414
8589
|
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
8415
8590
|
* at kernel aggregation time, not here).
|
|
8416
8591
|
*/
|
|
8592
|
+
/**
|
|
8593
|
+
* `StorageAccess` — how the service that DECLARED a storage-location kind
|
|
8594
|
+
* actually reaches the bytes. It is the constraint that decides which
|
|
8595
|
+
* `storage-provider`s may back a location of that kind.
|
|
8596
|
+
*
|
|
8597
|
+
* - `'local-path'` — the service asks `storage.resolve` for a path string and
|
|
8598
|
+
* then does its own `node:fs` I/O on it (the recorder's segment writer, the
|
|
8599
|
+
* post-analysis media roots). Only a provider that serves a genuine local
|
|
8600
|
+
* filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
|
|
8601
|
+
* remote provider's `resolve` returns a path on the REMOTE host, and
|
|
8602
|
+
* `fs.readdir` of it on this node either fails or — far worse — succeeds
|
|
8603
|
+
* against a same-named local directory that is something else entirely.
|
|
8604
|
+
*
|
|
8605
|
+
* - `'cap-mediated'` — every byte travels through the `storage` cap
|
|
8606
|
+
* (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
|
|
8607
|
+
* service never sees a path, so any provider can back it. `backups` is the
|
|
8608
|
+
* one kind that qualifies today.
|
|
8609
|
+
*
|
|
8610
|
+
* Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
|
|
8611
|
+
* an EMERGENT property of how the recorder happened to be written. Nothing
|
|
8612
|
+
* refused the configuration; the first write simply went somewhere wrong, and
|
|
8613
|
+
* a recording write that goes wrong surfaces as a silent black window rather
|
|
8614
|
+
* than an error (the read path does not `stat`). This turns that accident into
|
|
8615
|
+
* a declared, enforced, testable refusal.
|
|
8616
|
+
*/
|
|
8617
|
+
var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
|
|
8417
8618
|
var StorageLocationDeclarationSchema = object({
|
|
8418
8619
|
/**
|
|
8419
8620
|
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
@@ -8433,6 +8634,19 @@ var StorageLocationDeclarationSchema = object({
|
|
|
8433
8634
|
*/
|
|
8434
8635
|
cardinality: _enum(["single", "multi"]),
|
|
8435
8636
|
/**
|
|
8637
|
+
* HOW the declaring service reaches the bytes — and therefore WHICH
|
|
8638
|
+
* providers may back a location of this kind. See {@link StorageAccessSchema}
|
|
8639
|
+
* and {@link STORAGE_ACCESS_FALLBACK}.
|
|
8640
|
+
*
|
|
8641
|
+
* Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
|
|
8642
|
+
* can only over-restrict (refuse a remote provider for a kind that might
|
|
8643
|
+
* have coped) and never under-restrict. Declaring `'cap-mediated'` is the
|
|
8644
|
+
* permissive direction and is therefore never inferred — a repo guard
|
|
8645
|
+
* (`scripts/check-storage-access-declarations.ts`) refuses to let it be
|
|
8646
|
+
* reached by omission.
|
|
8647
|
+
*/
|
|
8648
|
+
access: StorageAccessSchema.optional(),
|
|
8649
|
+
/**
|
|
8436
8650
|
* When set, the default instance for this location inherits its resolved
|
|
8437
8651
|
* root from the named location's default instance. Useful for derivative
|
|
8438
8652
|
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
@@ -14073,6 +14287,15 @@ var deviceManagerCapability = {
|
|
|
14073
14287
|
* calls are sync. Bindings change rarely (only on wrapper toggle or
|
|
14074
14288
|
* device add/remove) — clients invalidate via the
|
|
14075
14289
|
* `capability.binding-changed` event.
|
|
14290
|
+
*
|
|
14291
|
+
* "A single round-trip" describes the CLIENT's side and used not to
|
|
14292
|
+
* describe the server's: until 2026-08-30 the resolver read the persisted
|
|
14293
|
+
* wrapper activations once per device, so answering this cost one
|
|
14294
|
+
* settings-door RPC per device — 1 020 on the live 1 019-device hub, and
|
|
14295
|
+
* it did not return in 240 s against `SystemMirror.init`'s 15 s budget.
|
|
14296
|
+
* The server side is now two reads for the whole fleet. Anything PERIODIC
|
|
14297
|
+
* still belongs on `getBindings` / `getBindingsBatch` (D12); this remains
|
|
14298
|
+
* a warm seed.
|
|
14076
14299
|
*/
|
|
14077
14300
|
getAllBindings: method(object({}), array(DeviceBindingsForDeviceSchema)),
|
|
14078
14301
|
/**
|
|
@@ -20812,8 +21035,10 @@ var TrackSchema = object({
|
|
|
20812
21035
|
lastSeen: number(),
|
|
20813
21036
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
20814
21037
|
positions: array(TrackPositionSchema).readonly(),
|
|
20815
|
-
/** Periodic snapshots at snapshotIntervalMs cadence
|
|
20816
|
-
*
|
|
21038
|
+
/** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
|
|
21039
|
+
* only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
|
|
21040
|
+
* the retired `saveThumbnails` used to gate this and the rolling
|
|
21041
|
+
* `lastFrame` together). Empty is the healthy default, not a capture gap. */
|
|
20817
21042
|
snapshots: array(TrackSnapshotSchema).readonly(),
|
|
20818
21043
|
/** Deduplicated zones the track has entered at least once. Zone IDS. */
|
|
20819
21044
|
zonesVisited: array(string()).readonly(),
|
|
@@ -21894,8 +22119,34 @@ var pipelineAnalyticsCapability = {
|
|
|
21894
22119
|
* happens to stamp it. This count is what the migration planner's
|
|
21895
22120
|
* non-blocking gate reads; `relocateMedia({ mode: 'seal' })` is what drives
|
|
21896
22121
|
* it to zero.
|
|
22122
|
+
*
|
|
22123
|
+
* TWO indexed statements per collection, not a walk. It used to page the
|
|
22124
|
+
* whole collection at 200 rows per RPC ordered by an unindexed column, so
|
|
22125
|
+
* on the live hub — 1 254 576 rows — it hit the 60 s RPC deadline every
|
|
22126
|
+
* time it was called, and the migration it gates could never start. The
|
|
22127
|
+
* cheap question (`present`: is there at least one) is asked first and
|
|
22128
|
+
* separately from the expensive one (`rows`), because only the first has
|
|
22129
|
+
* to be answerable for the gate to do its job.
|
|
22130
|
+
*
|
|
22131
|
+
* **`null` is "not measurable", never zero** — at either level. An
|
|
22132
|
+
* unreadable collection must not read as a sealed one.
|
|
21897
22133
|
*/
|
|
21898
22134
|
countUnstampedEventMedia: method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }),
|
|
22135
|
+
/**
|
|
22136
|
+
* How many rows a pass would STILL act on against `toLocationId`.
|
|
22137
|
+
*
|
|
22138
|
+
* One derivation, two consumers: it is the media lane's denominator (the
|
|
22139
|
+
* **M** the footage lane gets from the ledger census — D295) and it is the
|
|
22140
|
+
* residue behind "drain remaining". Deriving them separately is how "N of M"
|
|
22141
|
+
* ends up comparing two different populations.
|
|
22142
|
+
*
|
|
22143
|
+
* `null` means the count could not be taken; it is never zero-filled,
|
|
22144
|
+
* because a zero here reads as "nothing left to move".
|
|
22145
|
+
*/
|
|
22146
|
+
countRelocatableMedia: method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
|
|
22147
|
+
kind: "query",
|
|
22148
|
+
auth: "admin"
|
|
22149
|
+
}),
|
|
21899
22150
|
/** Every relocate job this addon knows about, newest first (in RAM: the
|
|
21900
22151
|
* move is resumable, so a lost list costs nothing but the display). */
|
|
21901
22152
|
listRelocateMediaJobs: method(object({}), array(RelocateJobSchema).readonly(), {
|
|
@@ -24801,6 +25052,35 @@ var storageMigrationCapability = {
|
|
|
24801
25052
|
cancel: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
24802
25053
|
kind: "mutation",
|
|
24803
25054
|
auth: "admin"
|
|
25055
|
+
}),
|
|
25056
|
+
/**
|
|
25057
|
+
* Every mover running RIGHT NOW, in both lanes, with its counters.
|
|
25058
|
+
*
|
|
25059
|
+
* `status` covers a migration's own moves — the coordinator folds their
|
|
25060
|
+
* progress onto the durable job record it is already polling. This covers
|
|
25061
|
+
* the other case, and it is not hypothetical: a drain armed straight against
|
|
25062
|
+
* `recording.relocateFootage` (the only path that existed before
|
|
25063
|
+
* {@link drain}) has no job to fold into and would otherwise be invisible.
|
|
25064
|
+
*/
|
|
25065
|
+
movers: method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }),
|
|
25066
|
+
/**
|
|
25067
|
+
* What each class's SOURCE still holds, from the archive — never from the
|
|
25068
|
+
* resident index (D295). Only classes with something left (or something
|
|
25069
|
+
* unknown) are listed, so an empty list means there is nothing to drain and
|
|
25070
|
+
* the UI has no honest button to offer.
|
|
25071
|
+
*/
|
|
25072
|
+
residue: method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }),
|
|
25073
|
+
/**
|
|
25074
|
+
* Run the drain half alone, on a class whose default has ALREADY moved.
|
|
25075
|
+
*
|
|
25076
|
+
* It never repoints anything, which is what lets `start` keep refusing a
|
|
25077
|
+
* destination that is already the default: the two verbs cannot be confused
|
|
25078
|
+
* for one another, and no operator can re-repoint a migrated class through
|
|
25079
|
+
* this door.
|
|
25080
|
+
*/
|
|
25081
|
+
drain: method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
25082
|
+
kind: "mutation",
|
|
25083
|
+
auth: "admin"
|
|
24804
25084
|
})
|
|
24805
25085
|
}
|
|
24806
25086
|
};
|
|
@@ -25363,12 +25643,38 @@ response: record(string(), unknown()) }), object({
|
|
|
25363
25643
|
*
|
|
25364
25644
|
* ## Why this is a capability and not a helper
|
|
25365
25645
|
*
|
|
25366
|
-
*
|
|
25367
|
-
*
|
|
25368
|
-
*
|
|
25369
|
-
*
|
|
25370
|
-
*
|
|
25371
|
-
*
|
|
25646
|
+
* This capability was introduced with the claim that SIX stores in
|
|
25647
|
+
* `addon-post-analysis` held vectors in a `JSON` settings-store column — object
|
|
25648
|
+
* CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
|
|
25649
|
+
* claim was never true, and leaving it here made five stores look like pending
|
|
25650
|
+
* work when three of them have no vector at all. Counted column by column on
|
|
25651
|
+
* 2026-08-30, exactly THREE ever held one:
|
|
25652
|
+
*
|
|
25653
|
+
* - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
|
|
25654
|
+
* - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
|
|
25655
|
+
* - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
|
|
25656
|
+
* face, migrated 2026-08-30 into its OWN index (see below).
|
|
25657
|
+
*
|
|
25658
|
+
* `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
|
|
25659
|
+
* and `identities` store a name; the event store stores no derivative vector.
|
|
25660
|
+
* They are not migration candidates and never were.
|
|
25661
|
+
*
|
|
25662
|
+
* Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
|
|
25663
|
+
* as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
|
|
25664
|
+
* rows before ranking anything.
|
|
25665
|
+
*
|
|
25666
|
+
* ## One index per COMPARISON, never per encoder
|
|
25667
|
+
*
|
|
25668
|
+
* `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
|
|
25669
|
+
* model, and they still get two indexes. An index is a set of things that are
|
|
25670
|
+
* ranked against each other and that live and die together, and these two are
|
|
25671
|
+
* neither: a `faces` row is TRACK-OWNED and cascades away with its track under
|
|
25672
|
+
* a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
|
|
25673
|
+
* forever and is the gallery every recognition ranks against. One index would
|
|
25674
|
+
* mean every gallery load and every reconcile carried a filter whose failure
|
|
25675
|
+
* mode is either ranking a candidate against itself or reclaiming an enrolled
|
|
25676
|
+
* person's only sample. The dimension they share is not a reason to share an
|
|
25677
|
+
* index; the question they answer is, and it differs.
|
|
25372
25678
|
*
|
|
25373
25679
|
* The fix is not a faster loop, it is a different backend — and the backend
|
|
25374
25680
|
* should be replaceable without touching six callers. So: a singleton
|
|
@@ -25473,7 +25779,20 @@ var VectorQueryResultSchema = object({
|
|
|
25473
25779
|
*/
|
|
25474
25780
|
scanned: number(),
|
|
25475
25781
|
/** True when the backend could not consider every row that passed the filter. */
|
|
25476
|
-
truncated: boolean()
|
|
25782
|
+
truncated: boolean(),
|
|
25783
|
+
/**
|
|
25784
|
+
* The `topK` the backend actually ran with.
|
|
25785
|
+
*
|
|
25786
|
+
* Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
|
|
25787
|
+
* past it used to learn nothing but a boolean, from a WARN in the provider's
|
|
25788
|
+
* own log rather than in its answer. That is how an audit asking for 20,000
|
|
25789
|
+
* consumed 4,096 and reported `examined: 4096` as if it had walked the index,
|
|
25790
|
+
* for weeks. `truncated` says THAT the answer was short; this says BY HOW
|
|
25791
|
+
* MUCH, in the return value, where the caller cannot fail to see it.
|
|
25792
|
+
*
|
|
25793
|
+
* Equals the requested `topK` whenever nothing was lowered.
|
|
25794
|
+
*/
|
|
25795
|
+
effectiveTopK: number().int().positive()
|
|
25477
25796
|
});
|
|
25478
25797
|
var VectorDeleteInputSchema = object({
|
|
25479
25798
|
index: string(),
|
|
@@ -25502,6 +25821,68 @@ var VectorGetResultSchema = object({ items: array(object({
|
|
|
25502
25821
|
id: string(),
|
|
25503
25822
|
metadata: VectorMetadataSchema
|
|
25504
25823
|
})) });
|
|
25824
|
+
/**
|
|
25825
|
+
* Ids to read back WITH their vectors.
|
|
25826
|
+
*
|
|
25827
|
+
* The sibling of {@link VectorGetResultSchema}, and deliberately a separate
|
|
25828
|
+
* method rather than a flag on it: `getByIds` promises no vectors and its one
|
|
25829
|
+
* caller depends on that promise. This one promises the opposite.
|
|
25830
|
+
*
|
|
25831
|
+
* It exists because a store cannot put its vectors here otherwise. An ArcFace
|
|
25832
|
+
* gallery is ranked IN PROCESS, per detection, against every enrolled sample —
|
|
25833
|
+
* a per-face cross-process KNN would be a network round trip inside the
|
|
25834
|
+
* recognition loop. So the gallery is loaded once and held in RAM, and loading
|
|
25835
|
+
* it requires the index to hand the floats back. Without this method the only
|
|
25836
|
+
* way to keep a readable vector is a JSON column, which is the thing this
|
|
25837
|
+
* capability exists to delete.
|
|
25838
|
+
*
|
|
25839
|
+
* BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
|
|
25840
|
+
* index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
|
|
25841
|
+
*/
|
|
25842
|
+
var VectorFetchInputSchema = object({
|
|
25843
|
+
index: string(),
|
|
25844
|
+
ids: array(string())
|
|
25845
|
+
});
|
|
25846
|
+
var VectorFetchResultSchema = object({ items: array(object({
|
|
25847
|
+
id: string(),
|
|
25848
|
+
/** base64 Float32LE — the same wire form `upsert` accepts. */
|
|
25849
|
+
vector: string(),
|
|
25850
|
+
metadata: VectorMetadataSchema
|
|
25851
|
+
})) });
|
|
25852
|
+
/**
|
|
25853
|
+
* ENUMERATE an index: one page of rows in a stable order, no ranking.
|
|
25854
|
+
*
|
|
25855
|
+
* A reconcile does not want the nearest rows, it wants ALL of them, and asking
|
|
25856
|
+
* a KNN for "all" is the wrong question twice over. It hits the backend's `k`
|
|
25857
|
+
* ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
|
|
25858
|
+
* probe vector it does not have, so the audit passed a ZERO vector whose cosine
|
|
25859
|
+
* distance to every row is degenerate. `examined: 4096` then read as "we
|
|
25860
|
+
* looked" for as long as anyone cared to read it.
|
|
25861
|
+
*
|
|
25862
|
+
* This is the primitive that question actually needs: a bounded page, ordered
|
|
25863
|
+
* by the backend's own row order, costing no distance computation at all.
|
|
25864
|
+
* Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
|
|
25865
|
+
* the full-table read this capability was built to stop.
|
|
25866
|
+
*/
|
|
25867
|
+
var VectorScanInputSchema = object({
|
|
25868
|
+
index: string(),
|
|
25869
|
+
/** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
|
|
25870
|
+
cursor: number().int().nonnegative().default(0),
|
|
25871
|
+
limit: number().int().positive()
|
|
25872
|
+
});
|
|
25873
|
+
var VectorScanResultSchema = object({
|
|
25874
|
+
items: array(object({
|
|
25875
|
+
id: string(),
|
|
25876
|
+
metadata: VectorMetadataSchema
|
|
25877
|
+
})),
|
|
25878
|
+
/**
|
|
25879
|
+
* Where the next page starts, or `null` when the walk reached the end.
|
|
25880
|
+
*
|
|
25881
|
+
* `null` is the ONLY end-of-index signal. A caller must not infer the end
|
|
25882
|
+
* from a short page: a backend is free to return fewer rows than asked.
|
|
25883
|
+
*/
|
|
25884
|
+
nextCursor: number().int().nonnegative().nullable()
|
|
25885
|
+
});
|
|
25505
25886
|
var VectorStatsInputSchema = object({ index: string() });
|
|
25506
25887
|
var VectorStatsResultSchema = object({
|
|
25507
25888
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -25540,6 +25921,10 @@ var vectorStoreCapability = {
|
|
|
25540
25921
|
query: method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }),
|
|
25541
25922
|
/** Metadata by id, no vectors — see {@link VectorGetResultSchema}. */
|
|
25542
25923
|
getByIds: method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }),
|
|
25924
|
+
/** Metadata AND vectors, by named id — see {@link VectorFetchInputSchema}. */
|
|
25925
|
+
fetchByIds: method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }),
|
|
25926
|
+
/** One page of the whole index, unranked — see {@link VectorScanInputSchema}. */
|
|
25927
|
+
scan: method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }),
|
|
25543
25928
|
deleteByIds: method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
25544
25929
|
kind: "mutation",
|
|
25545
25930
|
auth: "admin"
|
|
@@ -33128,6 +33513,20 @@ var recordingCapability = {
|
|
|
33128
33513
|
kind: "query",
|
|
33129
33514
|
auth: "admin"
|
|
33130
33515
|
}),
|
|
33516
|
+
/**
|
|
33517
|
+
* What a location STILL holds, asked of the durable hour ledger.
|
|
33518
|
+
*
|
|
33519
|
+
* The number behind "drain remaining": segments and bytes that would still
|
|
33520
|
+
* have to move off `fromLocationId`. It is a ledger aggregate — the archive
|
|
33521
|
+
* — because the resident index is not the archive (D295), and a drain sized
|
|
33522
|
+
* off the index is exactly what reported `done` over 80.3 GB on 2026-08-29.
|
|
33523
|
+
* `null` means the archive could not be asked (no ledger on this node, or
|
|
33524
|
+
* the aggregate failed) and is never conflated with an empty source.
|
|
33525
|
+
*/
|
|
33526
|
+
getRelocateResidue: method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
33527
|
+
kind: "query",
|
|
33528
|
+
auth: "admin"
|
|
33529
|
+
}),
|
|
33131
33530
|
/** Cancel a running or queued relocate job. A queued job never runs. */
|
|
33132
33531
|
cancelRelocateJob: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
33133
33532
|
kind: "mutation",
|
|
@@ -39136,6 +39535,12 @@ Object.freeze({
|
|
|
39136
39535
|
addonId: null,
|
|
39137
39536
|
access: "create"
|
|
39138
39537
|
},
|
|
39538
|
+
"pipelineAnalytics.countRelocatableMedia": {
|
|
39539
|
+
capName: "pipeline-analytics",
|
|
39540
|
+
capScope: "device",
|
|
39541
|
+
addonId: null,
|
|
39542
|
+
access: "view"
|
|
39543
|
+
},
|
|
39139
39544
|
"pipelineAnalytics.countUnstampedEventMedia": {
|
|
39140
39545
|
capName: "pipeline-analytics",
|
|
39141
39546
|
capScope: "device",
|
|
@@ -40300,6 +40705,12 @@ Object.freeze({
|
|
|
40300
40705
|
addonId: null,
|
|
40301
40706
|
access: "view"
|
|
40302
40707
|
},
|
|
40708
|
+
"recording.getRelocateResidue": {
|
|
40709
|
+
capName: "recording",
|
|
40710
|
+
capScope: "system",
|
|
40711
|
+
addonId: null,
|
|
40712
|
+
access: "view"
|
|
40713
|
+
},
|
|
40303
40714
|
"recording.getStorageMigrationMoveStatus": {
|
|
40304
40715
|
capName: "recording",
|
|
40305
40716
|
capScope: "system",
|
|
@@ -40846,12 +41257,30 @@ Object.freeze({
|
|
|
40846
41257
|
addonId: null,
|
|
40847
41258
|
access: "create"
|
|
40848
41259
|
},
|
|
41260
|
+
"storageMigration.drain": {
|
|
41261
|
+
capName: "storage-migration",
|
|
41262
|
+
capScope: "system",
|
|
41263
|
+
addonId: null,
|
|
41264
|
+
access: "create"
|
|
41265
|
+
},
|
|
41266
|
+
"storageMigration.movers": {
|
|
41267
|
+
capName: "storage-migration",
|
|
41268
|
+
capScope: "system",
|
|
41269
|
+
addonId: null,
|
|
41270
|
+
access: "view"
|
|
41271
|
+
},
|
|
40849
41272
|
"storageMigration.plan": {
|
|
40850
41273
|
capName: "storage-migration",
|
|
40851
41274
|
capScope: "system",
|
|
40852
41275
|
addonId: null,
|
|
40853
41276
|
access: "view"
|
|
40854
41277
|
},
|
|
41278
|
+
"storageMigration.residue": {
|
|
41279
|
+
capName: "storage-migration",
|
|
41280
|
+
capScope: "system",
|
|
41281
|
+
addonId: null,
|
|
41282
|
+
access: "view"
|
|
41283
|
+
},
|
|
40855
41284
|
"storageMigration.start": {
|
|
40856
41285
|
capName: "storage-migration",
|
|
40857
41286
|
capScope: "system",
|
|
@@ -41686,6 +42115,12 @@ Object.freeze({
|
|
|
41686
42115
|
addonId: null,
|
|
41687
42116
|
access: "delete"
|
|
41688
42117
|
},
|
|
42118
|
+
"vectorStore.fetchByIds": {
|
|
42119
|
+
capName: "vector-store",
|
|
42120
|
+
capScope: "system",
|
|
42121
|
+
addonId: null,
|
|
42122
|
+
access: "view"
|
|
42123
|
+
},
|
|
41689
42124
|
"vectorStore.getByIds": {
|
|
41690
42125
|
capName: "vector-store",
|
|
41691
42126
|
capScope: "system",
|
|
@@ -41698,6 +42133,12 @@ Object.freeze({
|
|
|
41698
42133
|
addonId: null,
|
|
41699
42134
|
access: "view"
|
|
41700
42135
|
},
|
|
42136
|
+
"vectorStore.scan": {
|
|
42137
|
+
capName: "vector-store",
|
|
42138
|
+
capScope: "system",
|
|
42139
|
+
addonId: null,
|
|
42140
|
+
access: "view"
|
|
42141
|
+
},
|
|
41701
42142
|
"vectorStore.stats": {
|
|
41702
42143
|
capName: "vector-store",
|
|
41703
42144
|
capScope: "system",
|
|
@@ -44905,16 +45346,7 @@ var OsdManager = class {
|
|
|
44905
45346
|
};
|
|
44906
45347
|
getSourceCatalog = async ({ deviceId }) => {
|
|
44907
45348
|
const devices = await this.safeListDevices();
|
|
44908
|
-
|
|
44909
|
-
for (const device of devices) try {
|
|
44910
|
-
capsByDevice.set(device.id, await this.deps.listDeviceCaps(device.id));
|
|
44911
|
-
} catch (err) {
|
|
44912
|
-
this.logger.warn("osd-manager: cap enumeration failed — device omitted from catalog", {
|
|
44913
|
-
tags: { deviceId: device.id },
|
|
44914
|
-
meta: { error: String(err) }
|
|
44915
|
-
});
|
|
44916
|
-
}
|
|
44917
|
-
return { sources: sourceOptionsFor(deviceId, devices, capsByDevice) };
|
|
45349
|
+
return { sources: sourceOptionsFor(deviceId, devices, await this.safeListDeviceCaps(deviceId, devices)) };
|
|
44918
45350
|
};
|
|
44919
45351
|
getConditionSupport = async () => {
|
|
44920
45352
|
return {
|
|
@@ -45184,6 +45616,36 @@ var OsdManager = class {
|
|
|
45184
45616
|
return [];
|
|
45185
45617
|
}
|
|
45186
45618
|
}
|
|
45619
|
+
/**
|
|
45620
|
+
* Every listed device's bound cap names, in ONE round trip.
|
|
45621
|
+
*
|
|
45622
|
+
* This used to be `listDeviceCaps(device.id)` inside the catalog loop, with a
|
|
45623
|
+
* per-device `catch` that omitted the device — 1 + 1 019 sequential
|
|
45624
|
+
* cross-process cap calls on the live hub 2026-08-30, behind an operator
|
|
45625
|
+
* opening a slot editor. The batch has no partial failure mode: it answers
|
|
45626
|
+
* for the whole set or it throws, and a throw lands where every per-device
|
|
45627
|
+
* read failing already landed — an empty map, hence a catalog with no
|
|
45628
|
+
* bindable sources. One log line instead of a thousand.
|
|
45629
|
+
*
|
|
45630
|
+
* `tags.deviceId` is the CAMERA whose editor is open, because that is the
|
|
45631
|
+
* question an operator asks ("why is 615's picker empty?"); the size of the
|
|
45632
|
+
* set that went unanswered rides in `meta`.
|
|
45633
|
+
*/
|
|
45634
|
+
async safeListDeviceCaps(cameraDeviceId, devices) {
|
|
45635
|
+
if (devices.length === 0) return /* @__PURE__ */ new Map();
|
|
45636
|
+
try {
|
|
45637
|
+
return await this.deps.listDeviceCapsBatch(devices.map((d) => d.id));
|
|
45638
|
+
} catch (err) {
|
|
45639
|
+
this.logger.warn("osd-manager: cap enumeration failed — the source catalog has no bindable values", {
|
|
45640
|
+
tags: { deviceId: cameraDeviceId },
|
|
45641
|
+
meta: {
|
|
45642
|
+
devices: devices.length,
|
|
45643
|
+
error: String(err)
|
|
45644
|
+
}
|
|
45645
|
+
});
|
|
45646
|
+
return /* @__PURE__ */ new Map();
|
|
45647
|
+
}
|
|
45648
|
+
}
|
|
45187
45649
|
};
|
|
45188
45650
|
function cacheKey(deviceId, slotId) {
|
|
45189
45651
|
return `${deviceId}:${slotId}`;
|
|
@@ -45268,9 +45730,9 @@ var OsdManagerAddon = class extends BaseAddon {
|
|
|
45268
45730
|
name: d.name
|
|
45269
45731
|
}));
|
|
45270
45732
|
},
|
|
45271
|
-
|
|
45272
|
-
const
|
|
45273
|
-
return [...new Set(
|
|
45733
|
+
listDeviceCapsBatch: async (deviceIds) => {
|
|
45734
|
+
const rows = await ctx.api.deviceManager.getBindingsBatch.query({ deviceIds: [...deviceIds] });
|
|
45735
|
+
return new Map(rows.map((row) => [row.deviceId, [...new Set(row.entries.map((e) => e.capName))]]));
|
|
45274
45736
|
},
|
|
45275
45737
|
readLatestRecognitions: async (deviceId) => {
|
|
45276
45738
|
const [faces, plates] = await Promise.all([ctx.api.faceGallery.listRecentFaces.query({
|