@camstack/addon-mqtt-broker 1.2.43 → 1.2.45

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.
@@ -8193,13 +8193,49 @@ var StorageMigrationParticipantSchema = _enum([
8193
8193
  "recorder",
8194
8194
  "analytics"
8195
8195
  ]);
8196
+ /**
8197
+ * The mover's own numbers, folded onto the coordinator's durable move record.
8198
+ *
8199
+ * The long half of a non-blocking migration is `draining`, and it is measured
8200
+ * in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
8201
+ * existed the only place those numbers appeared was a Loki line, so an operator
8202
+ * watching the Admin UI saw `phase: draining` and nothing else for a whole
8203
+ * afternoon.
8204
+ *
8205
+ * It is POLLED, never pushed. Events are telemetry and may be dropped
8206
+ * (D8/D11), and a dropped progress event is indistinguishable from a stalled
8207
+ * mover — which is the exact failure this is meant to end. The coordinator's
8208
+ * `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
8209
+ * read `state`; folding the counters costs no extra read and makes the durable
8210
+ * record say afterwards how far a move actually got.
8211
+ *
8212
+ * `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
8213
+ * a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
8214
+ * cannot say M, and a 0 there would render as "100 % done".
8215
+ */
8216
+ var StorageMigrationMoveProgressSchema = object({
8217
+ filesMoved: number().int().nonnegative(),
8218
+ /** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
8219
+ filesTotal: number().int().nonnegative().nullable(),
8220
+ bytesMoved: number().int().nonnegative(),
8221
+ /** The MOVER's start, not the migration's: a drain restarted after an addon
8222
+ * crash gets a new mover, and a rate computed from the migration's start
8223
+ * would silently average in the time nothing was running. */
8224
+ startedAt: number(),
8225
+ /** When the coordinator last read these numbers. Paired with `startedAt` it
8226
+ * is the only honest rate: both clocks are the hub's, so a UI never has to
8227
+ * subtract its own. */
8228
+ observedAt: number()
8229
+ });
8196
8230
  var StorageMigrationMoveSchema = object({
8197
8231
  storageClass: StorageMigrationClassSchema,
8198
8232
  fromLocationId: string(),
8199
8233
  toLocationId: string(),
8200
8234
  moverJobId: string().nullable(),
8201
8235
  state: RelocateJobStateSchema.nullable(),
8202
- error: string().nullable()
8236
+ error: string().nullable(),
8237
+ /** Last observed mover counters; `null` until the mover has been polled once. */
8238
+ progress: StorageMigrationMoveProgressSchema.nullable()
8203
8239
  });
8204
8240
  var StorageMigrationJobSchema = object({
8205
8241
  jobId: string(),
@@ -8245,6 +8281,98 @@ var StorageMigrationPlanSchema = object({
8245
8281
  findings: array(StorageMigrationFindingSchema)
8246
8282
  });
8247
8283
  /**
8284
+ * A mover as it exists RIGHT NOW, whether or not a migration job owns it.
8285
+ *
8286
+ * The coordinator's job record is the state of record for a migration, and its
8287
+ * moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
8288
+ * standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
8289
+ * are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
8290
+ * way because no supported UI path existed. A mover armed like that has no job
8291
+ * to fold progress into, so it has to be readable on its own or it is invisible.
8292
+ *
8293
+ * `migrationJobId` is what tells the two apart: `null` means nothing here
8294
+ * orchestrated it.
8295
+ */
8296
+ var StorageMigrationMoverSchema = object({
8297
+ lane: _enum(["footage", "media"]),
8298
+ job: RelocateJobSchema,
8299
+ /** The coordinator job that armed this mover, or `null` for a mover armed
8300
+ * directly against the owning addon. */
8301
+ migrationJobId: string().nullable(),
8302
+ /** When the hub read these counters. Stamped here so a rate is `bytesMoved`
8303
+ * over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
8304
+ * a browser subtracting its own `Date.now()` from a server `startedAt` is a
8305
+ * rate made of two different clocks. */
8306
+ observedAt: number()
8307
+ });
8308
+ /**
8309
+ * What a SOURCE still holds for one storage class — the number that makes a
8310
+ * "drain remaining" action honest rather than hopeful.
8311
+ *
8312
+ * It comes from the archive (`SegmentHourLedger.census` for footage, the media
8313
+ * engine's own selection count for media), never from the resident index: a
8314
+ * drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
8315
+ * never been told about (D295).
8316
+ *
8317
+ * `items`/`bytes` are `null` for "the archive could not be asked", which is
8318
+ * deliberately NOT zero: a drain is still offered for an unknown residue,
8319
+ * because refusing on an unanswerable read would hide exactly the case an
8320
+ * operator needs to act on.
8321
+ */
8322
+ var StorageMigrationResidueSchema = object({
8323
+ storageClass: StorageMigrationClassSchema,
8324
+ /** The location still holding the data. `'*'` for the media lane, whose rows
8325
+ * move from wherever they are rather than from one named source. */
8326
+ fromLocationId: string(),
8327
+ /** Where a drain would move it — the class's CURRENT default. */
8328
+ toLocationId: string(),
8329
+ /** Segments (footage lane) or rows (media lane) still on the source. */
8330
+ items: number().int().nonnegative().nullable(),
8331
+ /** Bytes on the source; `null` when the lane counts rows rather than bytes. */
8332
+ bytes: number().int().nonnegative().nullable()
8333
+ });
8334
+ /**
8335
+ * Run the DRAIN half and nothing else.
8336
+ *
8337
+ * A migration that reached `done` has already repointed, so `start` correctly
8338
+ * refuses its destination ("already the default") — there is nothing left to
8339
+ * repoint. But the drain can fail, be cancelled, be interrupted by a restart,
8340
+ * or finish against a work list that was a tenth of the archive (D295), and
8341
+ * before this there was no supported way to run only that half: the only way
8342
+ * through was calling `recording.relocateFootage` by hand over admin tRPC.
8343
+ *
8344
+ * `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
8345
+ * refusal meaningful: the two verbs are disjoint, so nothing here can silently
8346
+ * re-repoint a class that is already migrated.
8347
+ */
8348
+ var StorageMigrationDrainInputSchema = object({
8349
+ /** The classes to drain. Each must appear in `storageMigration.residue`, so
8350
+ * a class whose source is already empty is refused rather than started. */
8351
+ classes: array(StorageMigrationClassSchema).min(1),
8352
+ throttleMbps: number().min(1).max(1e3).optional()
8353
+ });
8354
+ /** What a footage source still holds, asked of the durable hour ledger. */
8355
+ var RelocateResidueInputSchema = object({
8356
+ fromLocationId: string().min(1),
8357
+ /** Narrow to one logical class; omit for every profile on the location. */
8358
+ footageClass: RelocateFootageClassSchema.optional()
8359
+ });
8360
+ /** `null` = the archive could not answer (no ledger on this node, or the
8361
+ * aggregate failed). Never conflated with an empty source. */
8362
+ var RelocateResidueSchema = object({
8363
+ segments: number().int().nonnegative(),
8364
+ bytes: number().int().nonnegative()
8365
+ }).nullable();
8366
+ /** How many rows a media pass would still act on against a given target — the
8367
+ * media lane's denominator AND its residue, from ONE derivation so the two can
8368
+ * never disagree. `null` = the count could not be taken. */
8369
+ var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8370
+ var RelocatableMediaCountInputSchema = object({
8371
+ toLocationId: string().min(1),
8372
+ /** Omitted = `move`. */
8373
+ mode: MediaRelocateModeSchema.optional()
8374
+ });
8375
+ /**
8248
8376
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8249
8377
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8250
8378
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8348,6 +8476,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
8348
8476
  * two addons declaring the same `id` must agree on `cardinality` (validated
8349
8477
  * at kernel aggregation time, not here).
8350
8478
  */
8479
+ /**
8480
+ * `StorageAccess` — how the service that DECLARED a storage-location kind
8481
+ * actually reaches the bytes. It is the constraint that decides which
8482
+ * `storage-provider`s may back a location of that kind.
8483
+ *
8484
+ * - `'local-path'` — the service asks `storage.resolve` for a path string and
8485
+ * then does its own `node:fs` I/O on it (the recorder's segment writer, the
8486
+ * post-analysis media roots). Only a provider that serves a genuine local
8487
+ * filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
8488
+ * remote provider's `resolve` returns a path on the REMOTE host, and
8489
+ * `fs.readdir` of it on this node either fails or — far worse — succeeds
8490
+ * against a same-named local directory that is something else entirely.
8491
+ *
8492
+ * - `'cap-mediated'` — every byte travels through the `storage` cap
8493
+ * (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
8494
+ * service never sees a path, so any provider can back it. `backups` is the
8495
+ * one kind that qualifies today.
8496
+ *
8497
+ * Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
8498
+ * an EMERGENT property of how the recorder happened to be written. Nothing
8499
+ * refused the configuration; the first write simply went somewhere wrong, and
8500
+ * a recording write that goes wrong surfaces as a silent black window rather
8501
+ * than an error (the read path does not `stat`). This turns that accident into
8502
+ * a declared, enforced, testable refusal.
8503
+ */
8504
+ var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
8351
8505
  var StorageLocationDeclarationSchema = object({
8352
8506
  /**
8353
8507
  * Global location identifier, e.g. `recordings` or `recordingsLow`.
@@ -8367,6 +8521,19 @@ var StorageLocationDeclarationSchema = object({
8367
8521
  */
8368
8522
  cardinality: _enum(["single", "multi"]),
8369
8523
  /**
8524
+ * HOW the declaring service reaches the bytes — and therefore WHICH
8525
+ * providers may back a location of this kind. See {@link StorageAccessSchema}
8526
+ * and {@link STORAGE_ACCESS_FALLBACK}.
8527
+ *
8528
+ * Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
8529
+ * can only over-restrict (refuse a remote provider for a kind that might
8530
+ * have coped) and never under-restrict. Declaring `'cap-mediated'` is the
8531
+ * permissive direction and is therefore never inferred — a repo guard
8532
+ * (`scripts/check-storage-access-declarations.ts`) refuses to let it be
8533
+ * reached by omission.
8534
+ */
8535
+ access: StorageAccessSchema.optional(),
8536
+ /**
8370
8537
  * When set, the default instance for this location inherits its resolved
8371
8538
  * root from the named location's default instance. Useful for derivative
8372
8539
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
@@ -17960,8 +18127,10 @@ var TrackSchema = object({
17960
18127
  lastSeen: number(),
17961
18128
  /** Frame-rate position history (subject to maxPositionHistory cap). */
17962
18129
  positions: array(TrackPositionSchema).readonly(),
17963
- /** Periodic snapshots at snapshotIntervalMs cadence (subject to
17964
- * saveThumbnails policy). */
18130
+ /** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
18131
+ * only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
18132
+ * the retired `saveThumbnails` used to gate this and the rolling
18133
+ * `lastFrame` together). Empty is the healthy default, not a capture gap. */
17965
18134
  snapshots: array(TrackSnapshotSchema).readonly(),
17966
18135
  /** Deduplicated zones the track has entered at least once. Zone IDS. */
17967
18136
  zonesVisited: array(string()).readonly(),
@@ -18821,7 +18990,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18821
18990
  }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
18822
18991
  kind: "mutation",
18823
18992
  auth: "admin"
18824
- }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(object({}), array(RelocateJobSchema).readonly(), {
18993
+ }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
18994
+ kind: "query",
18995
+ auth: "admin"
18996
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
18825
18997
  kind: "query",
18826
18998
  auth: "admin"
18827
18999
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
@@ -20780,6 +20952,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
20780
20952
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
20781
20953
  kind: "mutation",
20782
20954
  auth: "admin"
20955
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
20956
+ kind: "mutation",
20957
+ auth: "admin"
20783
20958
  });
20784
20959
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20785
20960
  providerId: string().min(1),
@@ -21178,12 +21353,38 @@ response: record(string(), unknown()) }), object({
21178
21353
  *
21179
21354
  * ## Why this is a capability and not a helper
21180
21355
  *
21181
- * Six stores in `addon-post-analysis` already hold vectors — object CLIP, face,
21182
- * plate, vehicle, identity, and the event store's derivatives — and every one of
21183
- * them keeps its vectors in a `JSON` settings-store column and ranks them by
21184
- * brute-force cosine in JS. Measured on the live hub that costs ~11.7 KB per row
21185
- * (512 floats as TEXT, `JSON.parse`d on every search) and made semantic search
21186
- * load 5,000 rows before ranking anything.
21356
+ * This capability was introduced with the claim that SIX stores in
21357
+ * `addon-post-analysis` held vectors in a `JSON` settings-store column — object
21358
+ * CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
21359
+ * claim was never true, and leaving it here made five stores look like pending
21360
+ * work when three of them have no vector at all. Counted column by column on
21361
+ * 2026-08-30, exactly THREE ever held one:
21362
+ *
21363
+ * - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
21364
+ * - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
21365
+ * - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
21366
+ * face, migrated 2026-08-30 into its OWN index (see below).
21367
+ *
21368
+ * `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
21369
+ * and `identities` store a name; the event store stores no derivative vector.
21370
+ * They are not migration candidates and never were.
21371
+ *
21372
+ * Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
21373
+ * as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
21374
+ * rows before ranking anything.
21375
+ *
21376
+ * ## One index per COMPARISON, never per encoder
21377
+ *
21378
+ * `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
21379
+ * model, and they still get two indexes. An index is a set of things that are
21380
+ * ranked against each other and that live and die together, and these two are
21381
+ * neither: a `faces` row is TRACK-OWNED and cascades away with its track under
21382
+ * a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
21383
+ * forever and is the gallery every recognition ranks against. One index would
21384
+ * mean every gallery load and every reconcile carried a filter whose failure
21385
+ * mode is either ranking a candidate against itself or reclaiming an enrolled
21386
+ * person's only sample. The dimension they share is not a reason to share an
21387
+ * index; the question they answer is, and it differs.
21187
21388
  *
21188
21389
  * The fix is not a faster loop, it is a different backend — and the backend
21189
21390
  * should be replaceable without touching six callers. So: a singleton
@@ -21288,7 +21489,20 @@ var VectorQueryResultSchema = object({
21288
21489
  */
21289
21490
  scanned: number(),
21290
21491
  /** True when the backend could not consider every row that passed the filter. */
21291
- truncated: boolean()
21492
+ truncated: boolean(),
21493
+ /**
21494
+ * The `topK` the backend actually ran with.
21495
+ *
21496
+ * Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
21497
+ * past it used to learn nothing but a boolean, from a WARN in the provider's
21498
+ * own log rather than in its answer. That is how an audit asking for 20,000
21499
+ * consumed 4,096 and reported `examined: 4096` as if it had walked the index,
21500
+ * for weeks. `truncated` says THAT the answer was short; this says BY HOW
21501
+ * MUCH, in the return value, where the caller cannot fail to see it.
21502
+ *
21503
+ * Equals the requested `topK` whenever nothing was lowered.
21504
+ */
21505
+ effectiveTopK: number().int().positive()
21292
21506
  });
21293
21507
  var VectorDeleteInputSchema = object({
21294
21508
  index: string(),
@@ -21317,6 +21531,68 @@ var VectorGetResultSchema = object({ items: array(object({
21317
21531
  id: string(),
21318
21532
  metadata: VectorMetadataSchema
21319
21533
  })) });
21534
+ /**
21535
+ * Ids to read back WITH their vectors.
21536
+ *
21537
+ * The sibling of {@link VectorGetResultSchema}, and deliberately a separate
21538
+ * method rather than a flag on it: `getByIds` promises no vectors and its one
21539
+ * caller depends on that promise. This one promises the opposite.
21540
+ *
21541
+ * It exists because a store cannot put its vectors here otherwise. An ArcFace
21542
+ * gallery is ranked IN PROCESS, per detection, against every enrolled sample —
21543
+ * a per-face cross-process KNN would be a network round trip inside the
21544
+ * recognition loop. So the gallery is loaded once and held in RAM, and loading
21545
+ * it requires the index to hand the floats back. Without this method the only
21546
+ * way to keep a readable vector is a JSON column, which is the thing this
21547
+ * capability exists to delete.
21548
+ *
21549
+ * BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
21550
+ * index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
21551
+ */
21552
+ var VectorFetchInputSchema = object({
21553
+ index: string(),
21554
+ ids: array(string())
21555
+ });
21556
+ var VectorFetchResultSchema = object({ items: array(object({
21557
+ id: string(),
21558
+ /** base64 Float32LE — the same wire form `upsert` accepts. */
21559
+ vector: string(),
21560
+ metadata: VectorMetadataSchema
21561
+ })) });
21562
+ /**
21563
+ * ENUMERATE an index: one page of rows in a stable order, no ranking.
21564
+ *
21565
+ * A reconcile does not want the nearest rows, it wants ALL of them, and asking
21566
+ * a KNN for "all" is the wrong question twice over. It hits the backend's `k`
21567
+ * ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
21568
+ * probe vector it does not have, so the audit passed a ZERO vector whose cosine
21569
+ * distance to every row is degenerate. `examined: 4096` then read as "we
21570
+ * looked" for as long as anyone cared to read it.
21571
+ *
21572
+ * This is the primitive that question actually needs: a bounded page, ordered
21573
+ * by the backend's own row order, costing no distance computation at all.
21574
+ * Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
21575
+ * the full-table read this capability was built to stop.
21576
+ */
21577
+ var VectorScanInputSchema = object({
21578
+ index: string(),
21579
+ /** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
21580
+ cursor: number().int().nonnegative().default(0),
21581
+ limit: number().int().positive()
21582
+ });
21583
+ var VectorScanResultSchema = object({
21584
+ items: array(object({
21585
+ id: string(),
21586
+ metadata: VectorMetadataSchema
21587
+ })),
21588
+ /**
21589
+ * Where the next page starts, or `null` when the walk reached the end.
21590
+ *
21591
+ * `null` is the ONLY end-of-index signal. A caller must not infer the end
21592
+ * from a short page: a backend is free to return fewer rows than asked.
21593
+ */
21594
+ nextCursor: number().int().nonnegative().nullable()
21595
+ });
21320
21596
  var VectorStatsInputSchema = object({ index: string() });
21321
21597
  var VectorStatsResultSchema = object({
21322
21598
  /** Provider id, so an operator can tell brute force from an ANN index. */
@@ -21335,7 +21611,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
21335
21611
  }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
21336
21612
  kind: "mutation",
21337
21613
  auth: "admin"
21338
- }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21614
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21339
21615
  kind: "mutation",
21340
21616
  auth: "admin"
21341
21617
  }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
@@ -26239,6 +26515,9 @@ method(object({
26239
26515
  }), method(object({}), array(RelocateJobSchema).readonly(), {
26240
26516
  kind: "query",
26241
26517
  auth: "admin"
26518
+ }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
26519
+ kind: "query",
26520
+ auth: "admin"
26242
26521
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26243
26522
  kind: "mutation",
26244
26523
  auth: "admin"
@@ -31204,6 +31483,12 @@ Object.freeze({
31204
31483
  addonId: null,
31205
31484
  access: "create"
31206
31485
  },
31486
+ "pipelineAnalytics.countRelocatableMedia": {
31487
+ capName: "pipeline-analytics",
31488
+ capScope: "device",
31489
+ addonId: null,
31490
+ access: "view"
31491
+ },
31207
31492
  "pipelineAnalytics.countUnstampedEventMedia": {
31208
31493
  capName: "pipeline-analytics",
31209
31494
  capScope: "device",
@@ -32368,6 +32653,12 @@ Object.freeze({
32368
32653
  addonId: null,
32369
32654
  access: "view"
32370
32655
  },
32656
+ "recording.getRelocateResidue": {
32657
+ capName: "recording",
32658
+ capScope: "system",
32659
+ addonId: null,
32660
+ access: "view"
32661
+ },
32371
32662
  "recording.getStorageMigrationMoveStatus": {
32372
32663
  capName: "recording",
32373
32664
  capScope: "system",
@@ -32914,12 +33205,30 @@ Object.freeze({
32914
33205
  addonId: null,
32915
33206
  access: "create"
32916
33207
  },
33208
+ "storageMigration.drain": {
33209
+ capName: "storage-migration",
33210
+ capScope: "system",
33211
+ addonId: null,
33212
+ access: "create"
33213
+ },
33214
+ "storageMigration.movers": {
33215
+ capName: "storage-migration",
33216
+ capScope: "system",
33217
+ addonId: null,
33218
+ access: "view"
33219
+ },
32917
33220
  "storageMigration.plan": {
32918
33221
  capName: "storage-migration",
32919
33222
  capScope: "system",
32920
33223
  addonId: null,
32921
33224
  access: "view"
32922
33225
  },
33226
+ "storageMigration.residue": {
33227
+ capName: "storage-migration",
33228
+ capScope: "system",
33229
+ addonId: null,
33230
+ access: "view"
33231
+ },
32923
33232
  "storageMigration.start": {
32924
33233
  capName: "storage-migration",
32925
33234
  capScope: "system",
@@ -33754,6 +34063,12 @@ Object.freeze({
33754
34063
  addonId: null,
33755
34064
  access: "delete"
33756
34065
  },
34066
+ "vectorStore.fetchByIds": {
34067
+ capName: "vector-store",
34068
+ capScope: "system",
34069
+ addonId: null,
34070
+ access: "view"
34071
+ },
33757
34072
  "vectorStore.getByIds": {
33758
34073
  capName: "vector-store",
33759
34074
  capScope: "system",
@@ -33766,6 +34081,12 @@ Object.freeze({
33766
34081
  addonId: null,
33767
34082
  access: "view"
33768
34083
  },
34084
+ "vectorStore.scan": {
34085
+ capName: "vector-store",
34086
+ capScope: "system",
34087
+ addonId: null,
34088
+ access: "view"
34089
+ },
33769
34090
  "vectorStore.stats": {
33770
34091
  capName: "vector-store",
33771
34092
  capScope: "system",
@@ -8188,13 +8188,49 @@ var StorageMigrationParticipantSchema = _enum([
8188
8188
  "recorder",
8189
8189
  "analytics"
8190
8190
  ]);
8191
+ /**
8192
+ * The mover's own numbers, folded onto the coordinator's durable move record.
8193
+ *
8194
+ * The long half of a non-blocking migration is `draining`, and it is measured
8195
+ * in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
8196
+ * existed the only place those numbers appeared was a Loki line, so an operator
8197
+ * watching the Admin UI saw `phase: draining` and nothing else for a whole
8198
+ * afternoon.
8199
+ *
8200
+ * It is POLLED, never pushed. Events are telemetry and may be dropped
8201
+ * (D8/D11), and a dropped progress event is indistinguishable from a stalled
8202
+ * mover — which is the exact failure this is meant to end. The coordinator's
8203
+ * `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
8204
+ * read `state`; folding the counters costs no extra read and makes the durable
8205
+ * record say afterwards how far a move actually got.
8206
+ *
8207
+ * `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
8208
+ * a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
8209
+ * cannot say M, and a 0 there would render as "100 % done".
8210
+ */
8211
+ var StorageMigrationMoveProgressSchema = object({
8212
+ filesMoved: number().int().nonnegative(),
8213
+ /** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
8214
+ filesTotal: number().int().nonnegative().nullable(),
8215
+ bytesMoved: number().int().nonnegative(),
8216
+ /** The MOVER's start, not the migration's: a drain restarted after an addon
8217
+ * crash gets a new mover, and a rate computed from the migration's start
8218
+ * would silently average in the time nothing was running. */
8219
+ startedAt: number(),
8220
+ /** When the coordinator last read these numbers. Paired with `startedAt` it
8221
+ * is the only honest rate: both clocks are the hub's, so a UI never has to
8222
+ * subtract its own. */
8223
+ observedAt: number()
8224
+ });
8191
8225
  var StorageMigrationMoveSchema = object({
8192
8226
  storageClass: StorageMigrationClassSchema,
8193
8227
  fromLocationId: string(),
8194
8228
  toLocationId: string(),
8195
8229
  moverJobId: string().nullable(),
8196
8230
  state: RelocateJobStateSchema.nullable(),
8197
- error: string().nullable()
8231
+ error: string().nullable(),
8232
+ /** Last observed mover counters; `null` until the mover has been polled once. */
8233
+ progress: StorageMigrationMoveProgressSchema.nullable()
8198
8234
  });
8199
8235
  var StorageMigrationJobSchema = object({
8200
8236
  jobId: string(),
@@ -8240,6 +8276,98 @@ var StorageMigrationPlanSchema = object({
8240
8276
  findings: array(StorageMigrationFindingSchema)
8241
8277
  });
8242
8278
  /**
8279
+ * A mover as it exists RIGHT NOW, whether or not a migration job owns it.
8280
+ *
8281
+ * The coordinator's job record is the state of record for a migration, and its
8282
+ * moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
8283
+ * standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
8284
+ * are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
8285
+ * way because no supported UI path existed. A mover armed like that has no job
8286
+ * to fold progress into, so it has to be readable on its own or it is invisible.
8287
+ *
8288
+ * `migrationJobId` is what tells the two apart: `null` means nothing here
8289
+ * orchestrated it.
8290
+ */
8291
+ var StorageMigrationMoverSchema = object({
8292
+ lane: _enum(["footage", "media"]),
8293
+ job: RelocateJobSchema,
8294
+ /** The coordinator job that armed this mover, or `null` for a mover armed
8295
+ * directly against the owning addon. */
8296
+ migrationJobId: string().nullable(),
8297
+ /** When the hub read these counters. Stamped here so a rate is `bytesMoved`
8298
+ * over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
8299
+ * a browser subtracting its own `Date.now()` from a server `startedAt` is a
8300
+ * rate made of two different clocks. */
8301
+ observedAt: number()
8302
+ });
8303
+ /**
8304
+ * What a SOURCE still holds for one storage class — the number that makes a
8305
+ * "drain remaining" action honest rather than hopeful.
8306
+ *
8307
+ * It comes from the archive (`SegmentHourLedger.census` for footage, the media
8308
+ * engine's own selection count for media), never from the resident index: a
8309
+ * drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
8310
+ * never been told about (D295).
8311
+ *
8312
+ * `items`/`bytes` are `null` for "the archive could not be asked", which is
8313
+ * deliberately NOT zero: a drain is still offered for an unknown residue,
8314
+ * because refusing on an unanswerable read would hide exactly the case an
8315
+ * operator needs to act on.
8316
+ */
8317
+ var StorageMigrationResidueSchema = object({
8318
+ storageClass: StorageMigrationClassSchema,
8319
+ /** The location still holding the data. `'*'` for the media lane, whose rows
8320
+ * move from wherever they are rather than from one named source. */
8321
+ fromLocationId: string(),
8322
+ /** Where a drain would move it — the class's CURRENT default. */
8323
+ toLocationId: string(),
8324
+ /** Segments (footage lane) or rows (media lane) still on the source. */
8325
+ items: number().int().nonnegative().nullable(),
8326
+ /** Bytes on the source; `null` when the lane counts rows rather than bytes. */
8327
+ bytes: number().int().nonnegative().nullable()
8328
+ });
8329
+ /**
8330
+ * Run the DRAIN half and nothing else.
8331
+ *
8332
+ * A migration that reached `done` has already repointed, so `start` correctly
8333
+ * refuses its destination ("already the default") — there is nothing left to
8334
+ * repoint. But the drain can fail, be cancelled, be interrupted by a restart,
8335
+ * or finish against a work list that was a tenth of the archive (D295), and
8336
+ * before this there was no supported way to run only that half: the only way
8337
+ * through was calling `recording.relocateFootage` by hand over admin tRPC.
8338
+ *
8339
+ * `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
8340
+ * refusal meaningful: the two verbs are disjoint, so nothing here can silently
8341
+ * re-repoint a class that is already migrated.
8342
+ */
8343
+ var StorageMigrationDrainInputSchema = object({
8344
+ /** The classes to drain. Each must appear in `storageMigration.residue`, so
8345
+ * a class whose source is already empty is refused rather than started. */
8346
+ classes: array(StorageMigrationClassSchema).min(1),
8347
+ throttleMbps: number().min(1).max(1e3).optional()
8348
+ });
8349
+ /** What a footage source still holds, asked of the durable hour ledger. */
8350
+ var RelocateResidueInputSchema = object({
8351
+ fromLocationId: string().min(1),
8352
+ /** Narrow to one logical class; omit for every profile on the location. */
8353
+ footageClass: RelocateFootageClassSchema.optional()
8354
+ });
8355
+ /** `null` = the archive could not answer (no ledger on this node, or the
8356
+ * aggregate failed). Never conflated with an empty source. */
8357
+ var RelocateResidueSchema = object({
8358
+ segments: number().int().nonnegative(),
8359
+ bytes: number().int().nonnegative()
8360
+ }).nullable();
8361
+ /** How many rows a media pass would still act on against a given target — the
8362
+ * media lane's denominator AND its residue, from ONE derivation so the two can
8363
+ * never disagree. `null` = the count could not be taken. */
8364
+ var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8365
+ var RelocatableMediaCountInputSchema = object({
8366
+ toLocationId: string().min(1),
8367
+ /** Omitted = `move`. */
8368
+ mode: MediaRelocateModeSchema.optional()
8369
+ });
8370
+ /**
8243
8371
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8244
8372
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8245
8373
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8343,6 +8471,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
8343
8471
  * two addons declaring the same `id` must agree on `cardinality` (validated
8344
8472
  * at kernel aggregation time, not here).
8345
8473
  */
8474
+ /**
8475
+ * `StorageAccess` — how the service that DECLARED a storage-location kind
8476
+ * actually reaches the bytes. It is the constraint that decides which
8477
+ * `storage-provider`s may back a location of that kind.
8478
+ *
8479
+ * - `'local-path'` — the service asks `storage.resolve` for a path string and
8480
+ * then does its own `node:fs` I/O on it (the recorder's segment writer, the
8481
+ * post-analysis media roots). Only a provider that serves a genuine local
8482
+ * filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
8483
+ * remote provider's `resolve` returns a path on the REMOTE host, and
8484
+ * `fs.readdir` of it on this node either fails or — far worse — succeeds
8485
+ * against a same-named local directory that is something else entirely.
8486
+ *
8487
+ * - `'cap-mediated'` — every byte travels through the `storage` cap
8488
+ * (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
8489
+ * service never sees a path, so any provider can back it. `backups` is the
8490
+ * one kind that qualifies today.
8491
+ *
8492
+ * Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
8493
+ * an EMERGENT property of how the recorder happened to be written. Nothing
8494
+ * refused the configuration; the first write simply went somewhere wrong, and
8495
+ * a recording write that goes wrong surfaces as a silent black window rather
8496
+ * than an error (the read path does not `stat`). This turns that accident into
8497
+ * a declared, enforced, testable refusal.
8498
+ */
8499
+ var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
8346
8500
  var StorageLocationDeclarationSchema = object({
8347
8501
  /**
8348
8502
  * Global location identifier, e.g. `recordings` or `recordingsLow`.
@@ -8362,6 +8516,19 @@ var StorageLocationDeclarationSchema = object({
8362
8516
  */
8363
8517
  cardinality: _enum(["single", "multi"]),
8364
8518
  /**
8519
+ * HOW the declaring service reaches the bytes — and therefore WHICH
8520
+ * providers may back a location of this kind. See {@link StorageAccessSchema}
8521
+ * and {@link STORAGE_ACCESS_FALLBACK}.
8522
+ *
8523
+ * Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
8524
+ * can only over-restrict (refuse a remote provider for a kind that might
8525
+ * have coped) and never under-restrict. Declaring `'cap-mediated'` is the
8526
+ * permissive direction and is therefore never inferred — a repo guard
8527
+ * (`scripts/check-storage-access-declarations.ts`) refuses to let it be
8528
+ * reached by omission.
8529
+ */
8530
+ access: StorageAccessSchema.optional(),
8531
+ /**
8365
8532
  * When set, the default instance for this location inherits its resolved
8366
8533
  * root from the named location's default instance. Useful for derivative
8367
8534
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
@@ -17955,8 +18122,10 @@ var TrackSchema = object({
17955
18122
  lastSeen: number(),
17956
18123
  /** Frame-rate position history (subject to maxPositionHistory cap). */
17957
18124
  positions: array(TrackPositionSchema).readonly(),
17958
- /** Periodic snapshots at snapshotIntervalMs cadence (subject to
17959
- * saveThumbnails policy). */
18125
+ /** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
18126
+ * only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
18127
+ * the retired `saveThumbnails` used to gate this and the rolling
18128
+ * `lastFrame` together). Empty is the healthy default, not a capture gap. */
17960
18129
  snapshots: array(TrackSnapshotSchema).readonly(),
17961
18130
  /** Deduplicated zones the track has entered at least once. Zone IDS. */
17962
18131
  zonesVisited: array(string()).readonly(),
@@ -18816,7 +18985,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18816
18985
  }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
18817
18986
  kind: "mutation",
18818
18987
  auth: "admin"
18819
- }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(object({}), array(RelocateJobSchema).readonly(), {
18988
+ }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
18989
+ kind: "query",
18990
+ auth: "admin"
18991
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
18820
18992
  kind: "query",
18821
18993
  auth: "admin"
18822
18994
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
@@ -20775,6 +20947,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
20775
20947
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
20776
20948
  kind: "mutation",
20777
20949
  auth: "admin"
20950
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
20951
+ kind: "mutation",
20952
+ auth: "admin"
20778
20953
  });
20779
20954
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20780
20955
  providerId: string().min(1),
@@ -21173,12 +21348,38 @@ response: record(string(), unknown()) }), object({
21173
21348
  *
21174
21349
  * ## Why this is a capability and not a helper
21175
21350
  *
21176
- * Six stores in `addon-post-analysis` already hold vectors — object CLIP, face,
21177
- * plate, vehicle, identity, and the event store's derivatives — and every one of
21178
- * them keeps its vectors in a `JSON` settings-store column and ranks them by
21179
- * brute-force cosine in JS. Measured on the live hub that costs ~11.7 KB per row
21180
- * (512 floats as TEXT, `JSON.parse`d on every search) and made semantic search
21181
- * load 5,000 rows before ranking anything.
21351
+ * This capability was introduced with the claim that SIX stores in
21352
+ * `addon-post-analysis` held vectors in a `JSON` settings-store column — object
21353
+ * CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
21354
+ * claim was never true, and leaving it here made five stores look like pending
21355
+ * work when three of them have no vector at all. Counted column by column on
21356
+ * 2026-08-30, exactly THREE ever held one:
21357
+ *
21358
+ * - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
21359
+ * - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
21360
+ * - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
21361
+ * face, migrated 2026-08-30 into its OWN index (see below).
21362
+ *
21363
+ * `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
21364
+ * and `identities` store a name; the event store stores no derivative vector.
21365
+ * They are not migration candidates and never were.
21366
+ *
21367
+ * Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
21368
+ * as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
21369
+ * rows before ranking anything.
21370
+ *
21371
+ * ## One index per COMPARISON, never per encoder
21372
+ *
21373
+ * `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
21374
+ * model, and they still get two indexes. An index is a set of things that are
21375
+ * ranked against each other and that live and die together, and these two are
21376
+ * neither: a `faces` row is TRACK-OWNED and cascades away with its track under
21377
+ * a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
21378
+ * forever and is the gallery every recognition ranks against. One index would
21379
+ * mean every gallery load and every reconcile carried a filter whose failure
21380
+ * mode is either ranking a candidate against itself or reclaiming an enrolled
21381
+ * person's only sample. The dimension they share is not a reason to share an
21382
+ * index; the question they answer is, and it differs.
21182
21383
  *
21183
21384
  * The fix is not a faster loop, it is a different backend — and the backend
21184
21385
  * should be replaceable without touching six callers. So: a singleton
@@ -21283,7 +21484,20 @@ var VectorQueryResultSchema = object({
21283
21484
  */
21284
21485
  scanned: number(),
21285
21486
  /** True when the backend could not consider every row that passed the filter. */
21286
- truncated: boolean()
21487
+ truncated: boolean(),
21488
+ /**
21489
+ * The `topK` the backend actually ran with.
21490
+ *
21491
+ * Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
21492
+ * past it used to learn nothing but a boolean, from a WARN in the provider's
21493
+ * own log rather than in its answer. That is how an audit asking for 20,000
21494
+ * consumed 4,096 and reported `examined: 4096` as if it had walked the index,
21495
+ * for weeks. `truncated` says THAT the answer was short; this says BY HOW
21496
+ * MUCH, in the return value, where the caller cannot fail to see it.
21497
+ *
21498
+ * Equals the requested `topK` whenever nothing was lowered.
21499
+ */
21500
+ effectiveTopK: number().int().positive()
21287
21501
  });
21288
21502
  var VectorDeleteInputSchema = object({
21289
21503
  index: string(),
@@ -21312,6 +21526,68 @@ var VectorGetResultSchema = object({ items: array(object({
21312
21526
  id: string(),
21313
21527
  metadata: VectorMetadataSchema
21314
21528
  })) });
21529
+ /**
21530
+ * Ids to read back WITH their vectors.
21531
+ *
21532
+ * The sibling of {@link VectorGetResultSchema}, and deliberately a separate
21533
+ * method rather than a flag on it: `getByIds` promises no vectors and its one
21534
+ * caller depends on that promise. This one promises the opposite.
21535
+ *
21536
+ * It exists because a store cannot put its vectors here otherwise. An ArcFace
21537
+ * gallery is ranked IN PROCESS, per detection, against every enrolled sample —
21538
+ * a per-face cross-process KNN would be a network round trip inside the
21539
+ * recognition loop. So the gallery is loaded once and held in RAM, and loading
21540
+ * it requires the index to hand the floats back. Without this method the only
21541
+ * way to keep a readable vector is a JSON column, which is the thing this
21542
+ * capability exists to delete.
21543
+ *
21544
+ * BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
21545
+ * index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
21546
+ */
21547
+ var VectorFetchInputSchema = object({
21548
+ index: string(),
21549
+ ids: array(string())
21550
+ });
21551
+ var VectorFetchResultSchema = object({ items: array(object({
21552
+ id: string(),
21553
+ /** base64 Float32LE — the same wire form `upsert` accepts. */
21554
+ vector: string(),
21555
+ metadata: VectorMetadataSchema
21556
+ })) });
21557
+ /**
21558
+ * ENUMERATE an index: one page of rows in a stable order, no ranking.
21559
+ *
21560
+ * A reconcile does not want the nearest rows, it wants ALL of them, and asking
21561
+ * a KNN for "all" is the wrong question twice over. It hits the backend's `k`
21562
+ * ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
21563
+ * probe vector it does not have, so the audit passed a ZERO vector whose cosine
21564
+ * distance to every row is degenerate. `examined: 4096` then read as "we
21565
+ * looked" for as long as anyone cared to read it.
21566
+ *
21567
+ * This is the primitive that question actually needs: a bounded page, ordered
21568
+ * by the backend's own row order, costing no distance computation at all.
21569
+ * Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
21570
+ * the full-table read this capability was built to stop.
21571
+ */
21572
+ var VectorScanInputSchema = object({
21573
+ index: string(),
21574
+ /** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
21575
+ cursor: number().int().nonnegative().default(0),
21576
+ limit: number().int().positive()
21577
+ });
21578
+ var VectorScanResultSchema = object({
21579
+ items: array(object({
21580
+ id: string(),
21581
+ metadata: VectorMetadataSchema
21582
+ })),
21583
+ /**
21584
+ * Where the next page starts, or `null` when the walk reached the end.
21585
+ *
21586
+ * `null` is the ONLY end-of-index signal. A caller must not infer the end
21587
+ * from a short page: a backend is free to return fewer rows than asked.
21588
+ */
21589
+ nextCursor: number().int().nonnegative().nullable()
21590
+ });
21315
21591
  var VectorStatsInputSchema = object({ index: string() });
21316
21592
  var VectorStatsResultSchema = object({
21317
21593
  /** Provider id, so an operator can tell brute force from an ANN index. */
@@ -21330,7 +21606,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
21330
21606
  }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
21331
21607
  kind: "mutation",
21332
21608
  auth: "admin"
21333
- }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21609
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21334
21610
  kind: "mutation",
21335
21611
  auth: "admin"
21336
21612
  }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
@@ -26234,6 +26510,9 @@ method(object({
26234
26510
  }), method(object({}), array(RelocateJobSchema).readonly(), {
26235
26511
  kind: "query",
26236
26512
  auth: "admin"
26513
+ }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
26514
+ kind: "query",
26515
+ auth: "admin"
26237
26516
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26238
26517
  kind: "mutation",
26239
26518
  auth: "admin"
@@ -31199,6 +31478,12 @@ Object.freeze({
31199
31478
  addonId: null,
31200
31479
  access: "create"
31201
31480
  },
31481
+ "pipelineAnalytics.countRelocatableMedia": {
31482
+ capName: "pipeline-analytics",
31483
+ capScope: "device",
31484
+ addonId: null,
31485
+ access: "view"
31486
+ },
31202
31487
  "pipelineAnalytics.countUnstampedEventMedia": {
31203
31488
  capName: "pipeline-analytics",
31204
31489
  capScope: "device",
@@ -32363,6 +32648,12 @@ Object.freeze({
32363
32648
  addonId: null,
32364
32649
  access: "view"
32365
32650
  },
32651
+ "recording.getRelocateResidue": {
32652
+ capName: "recording",
32653
+ capScope: "system",
32654
+ addonId: null,
32655
+ access: "view"
32656
+ },
32366
32657
  "recording.getStorageMigrationMoveStatus": {
32367
32658
  capName: "recording",
32368
32659
  capScope: "system",
@@ -32909,12 +33200,30 @@ Object.freeze({
32909
33200
  addonId: null,
32910
33201
  access: "create"
32911
33202
  },
33203
+ "storageMigration.drain": {
33204
+ capName: "storage-migration",
33205
+ capScope: "system",
33206
+ addonId: null,
33207
+ access: "create"
33208
+ },
33209
+ "storageMigration.movers": {
33210
+ capName: "storage-migration",
33211
+ capScope: "system",
33212
+ addonId: null,
33213
+ access: "view"
33214
+ },
32912
33215
  "storageMigration.plan": {
32913
33216
  capName: "storage-migration",
32914
33217
  capScope: "system",
32915
33218
  addonId: null,
32916
33219
  access: "view"
32917
33220
  },
33221
+ "storageMigration.residue": {
33222
+ capName: "storage-migration",
33223
+ capScope: "system",
33224
+ addonId: null,
33225
+ access: "view"
33226
+ },
32918
33227
  "storageMigration.start": {
32919
33228
  capName: "storage-migration",
32920
33229
  capScope: "system",
@@ -33749,6 +34058,12 @@ Object.freeze({
33749
34058
  addonId: null,
33750
34059
  access: "delete"
33751
34060
  },
34061
+ "vectorStore.fetchByIds": {
34062
+ capName: "vector-store",
34063
+ capScope: "system",
34064
+ addonId: null,
34065
+ access: "view"
34066
+ },
33752
34067
  "vectorStore.getByIds": {
33753
34068
  capName: "vector-store",
33754
34069
  capScope: "system",
@@ -33761,6 +34076,12 @@ Object.freeze({
33761
34076
  addonId: null,
33762
34077
  access: "view"
33763
34078
  },
34079
+ "vectorStore.scan": {
34080
+ capName: "vector-store",
34081
+ capScope: "system",
34082
+ addonId: null,
34083
+ access: "view"
34084
+ },
33764
34085
  "vectorStore.stats": {
33765
34086
  capName: "vector-store",
33766
34087
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.43",
3
+ "version": "1.2.45",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",