@camstack/addon-admin-ui 1.2.115 → 1.2.118

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.
Files changed (109) hide show
  1. package/dist/assets/{AddLocationWizard-CGIOvC3P.js → AddLocationWizard-Bf2d5QJC.js} +1 -1
  2. package/dist/assets/{AddonCollectionPage-CFaF5Vw9.js → AddonCollectionPage-BKFXFcwj.js} +1 -1
  3. package/dist/assets/Addons-BE4c7Eft.js +1 -0
  4. package/dist/assets/{AdminTabs-BJEXfjyu.js → AdminTabs-CW5SZp7Y.js} +1 -1
  5. package/dist/assets/AiProfiles-DtrI9DHP.js +3 -0
  6. package/dist/assets/{BrokerForm-ByK6-Bp9.js → BrokerForm-BGjBv1to.js} +1 -1
  7. package/dist/assets/Build-mA9Ywcki.js +32 -0
  8. package/dist/assets/{Capabilities-0UWikL4K.js → Capabilities-DVGShQpV.js} +1 -1
  9. package/dist/assets/{CapabilityBadges-CGpdhPHy.js → CapabilityBadges-B_jIPQNS.js} +1 -1
  10. package/dist/assets/Cluster-CZGyMZZq.js +11 -0
  11. package/dist/assets/{Data-BwbwqI-R.js → Data-DuyRytLu.js} +1 -1
  12. package/dist/assets/{DetectionIntelligence-B4klGkOh.js → DetectionIntelligence-tpYFIJC0.js} +1 -1
  13. package/dist/assets/{DeviceAggregateSection-0MLZqgcC.js → DeviceAggregateSection-BhDnF-0R.js} +1 -1
  14. package/dist/assets/{DeviceDetail-C40U8em3.js → DeviceDetail-B_T4KUCH.js} +2 -2
  15. package/dist/assets/{Devices-Dn5VCAkY.js → Devices-19N1vFVC.js} +1 -1
  16. package/dist/assets/{EmbedPlayerPage-CsErD-aU.js → EmbedPlayerPage-uNDQHMOY.js} +1 -1
  17. package/dist/assets/{Events-DW7CqfPm.js → Events-CeYY81EE.js} +1 -1
  18. package/dist/assets/{FormBuilder-BIwZtxC8.js → FormBuilder-Bw_BfLct.js} +1 -1
  19. package/dist/assets/Identity-ChUC1Yzb.js +1 -0
  20. package/dist/assets/{IntegrationDetail-KIwepyEo.js → IntegrationDetail-uhUiJaKD.js} +1 -1
  21. package/dist/assets/{Integrations-BWZIP2oy.js → Integrations-CDpK4Iya.js} +1 -1
  22. package/dist/assets/{Integrations-CNBZWNb8.js → Integrations-DasmVT6a.js} +1 -1
  23. package/dist/assets/{Logs-Blz6qLWG.js → Logs-QkSAbBaP.js} +1 -1
  24. package/dist/assets/{MotionZonesSettings-kcllZKfi.js → MotionZonesSettings-DEJj0tIr.js} +1 -1
  25. package/dist/assets/{MyAccess-B0WuiuOr.js → MyAccess-Dq5B9DXE.js} +1 -1
  26. package/dist/assets/{Network-DCZ_Std9.js → Network-CdFVF0Bh.js} +1 -1
  27. package/dist/assets/{NodeAddonsSettingsPanel-D5n8FA1J.js → NodeAddonsSettingsPanel-BpV4vZ3y.js} +1 -1
  28. package/dist/assets/{NodeInferenceDevices-BXO_eElj.js → NodeInferenceDevices-fUGmh21X.js} +1 -1
  29. package/dist/assets/Notifications-BXPxGe8Q.js +1 -0
  30. package/dist/assets/Pipeline-Dul0Xxvp.js +1 -0
  31. package/dist/assets/Plates-vm8v4CX0.js +1 -0
  32. package/dist/assets/{PrivacyMaskSettings-CNusEkLm.js → PrivacyMaskSettings-Dyh3C1Gc.js} +1 -1
  33. package/dist/assets/{ProviderIcon-CCmwPnj7.js → ProviderIcon-BXczeeUa.js} +1 -1
  34. package/dist/assets/Recordings-BqpIOzrs.js +1 -0
  35. package/dist/assets/{ScanNetworkModal-popRbbnY.js → ScanNetworkModal-D3jJwqnQ.js} +1 -1
  36. package/dist/assets/{SceneMonitorEditor--U-5D4mi.js → SceneMonitorEditor-CMdf9veT.js} +1 -1
  37. package/dist/assets/{Scenes-BUdZCtSm.js → Scenes-DC0f71cu.js} +1 -1
  38. package/dist/assets/{Settings-Chyz9pil.js → Settings-BpKwlBs0.js} +1 -1
  39. package/dist/assets/{Showroom-L0I-EMzO.js → Showroom-DqOzeQMg.js} +1 -1
  40. package/dist/assets/{Terminal-DFGgZjs0.js → Terminal-BDB9l80Z.js} +3 -3
  41. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-D9FJNM6p.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-B3MkFUBK.js} +1 -1
  42. package/dist/assets/{bell-ring-Dnavb4Im.js → bell-ring-DXlqoV-n.js} +1 -1
  43. package/dist/assets/{boxes-DVHIrGCL.js → boxes-D5TGZrSv.js} +1 -1
  44. package/dist/assets/circle-check-big-THS7TOUg.js +1 -0
  45. package/dist/assets/{circle-x-CaCMuaLw.js → circle-x-zj-Y8V0g.js} +1 -1
  46. package/dist/assets/clock-sO6o_mjY.js +1 -0
  47. package/dist/assets/{copy-BML9XMSw.js → copy-DVYoqFlk.js} +1 -1
  48. package/dist/assets/{debounced-invalidate-B1h2pckj.js → debounced-invalidate-DKj6sAUn.js} +1 -1
  49. package/dist/assets/{dist-Bow-GmSy.js → dist-D_qQ3ZLb.js} +1 -1
  50. package/dist/assets/dist-NbQ5dxwG.js +349 -0
  51. package/dist/assets/{download-QOZKEneZ.js → download-BifPfhIt.js} +1 -1
  52. package/dist/assets/{face-bbox-BF-SXIv8.js → face-bbox-DaCckiPf.js} +1 -1
  53. package/dist/assets/{hostInit-CT2SNnwW.js → hostInit-C203P4lS.js} +1 -1
  54. package/dist/assets/index-lupFu8MS.js +4 -0
  55. package/dist/assets/{key-round-C3b-L-A3.js → key-round-9MDNzuSJ.js} +1 -1
  56. package/dist/assets/{layers-BbCt6KkN.js → layers-ZG2sPM2X.js} +1 -1
  57. package/dist/assets/{mf-entry-bootstrap-0-5980646d.js → mf-entry-bootstrap-0-81aebfb2.js} +2 -2
  58. package/dist/assets/{pencil-C6wR4nZ6.js → pencil-CZejwlRX.js} +1 -1
  59. package/dist/assets/play-Dj5XCwJ4.js +1 -0
  60. package/dist/assets/{player-overlays-BVWg5sq2.js → player-overlays-9UuGjKRi.js} +1 -1
  61. package/dist/assets/plus-DyGAblLU.js +1 -0
  62. package/dist/assets/power-DoFXllOi.js +1 -0
  63. package/dist/assets/{radio-XbexHVTT.js → radio-DNUWRE34.js} +1 -1
  64. package/dist/assets/{refresh-cw-GeVcZb88.js → refresh-cw-DTXYyRHZ.js} +1 -1
  65. package/dist/assets/remoteEntry-Bds4bwsC.js +1 -0
  66. package/dist/assets/rotate-ccw-Dp-SmUgt.js +1 -0
  67. package/dist/assets/rotate-cw-CHNi--Cf.js +1 -0
  68. package/dist/assets/{send-oraC7Ohv.js → send-B7H6pAaP.js} +1 -1
  69. package/dist/assets/{server-D8LYlM1F.js → server-BxzOan8u.js} +1 -1
  70. package/dist/assets/{shield-7mzChvvY.js → shield-CEP1YgoU.js} +1 -1
  71. package/dist/assets/square-De580U5i.js +1 -0
  72. package/dist/assets/{square-check-big-BSmHZjeu.js → square-check-big-Cx7mXraC.js} +1 -1
  73. package/dist/assets/src-DbUPImmO.js +349 -0
  74. package/dist/assets/src-eNwyjio2.js +67 -0
  75. package/dist/assets/{star-BEgAOLq_.js → star-Bf7LBoXR.js} +1 -1
  76. package/dist/assets/{undo-2-CrALNUHJ.js → undo-2-Cx6lwzFn.js} +1 -1
  77. package/dist/assets/{use-scenes-feed-Cw8vHv_m.js → use-scenes-feed-C2I8IX9W.js} +1 -1
  78. package/dist/assets/useEventInvalidation-C3I3KCPD.js +1 -0
  79. package/dist/assets/useNodeUrlSelection-ClAXDXQJ.js +1 -0
  80. package/dist/assets/{video-BKXq8xP8.js → video-Bdo0_RSo.js} +1 -1
  81. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DyISAdzQ.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CA7Bimee.js} +2 -2
  82. package/dist/assets/{wifi-DHK8q32C.js → wifi-sJIjMU2Y.js} +1 -1
  83. package/dist/assets/{zap-B0mfRLCS.js → zap-CRMTcuGs.js} +1 -1
  84. package/dist/index.html +5 -5
  85. package/dist/server/addon.js +388 -20
  86. package/package.json +1 -1
  87. package/dist/assets/Addons-DZCZomaH.js +0 -1
  88. package/dist/assets/AiProfiles-BnJM-kV3.js +0 -3
  89. package/dist/assets/Build-36exF1MS.js +0 -32
  90. package/dist/assets/Cluster-DeA0so_x.js +0 -11
  91. package/dist/assets/Identity-DeElzcC7.js +0 -1
  92. package/dist/assets/Notifications-BvSUFvwo.js +0 -1
  93. package/dist/assets/Pipeline-Bid2_o3k.js +0 -1
  94. package/dist/assets/Plates-BmjpMJ8M.js +0 -1
  95. package/dist/assets/Recordings-Dx95yGAh.js +0 -1
  96. package/dist/assets/circle-check-big-BFWc5wJh.js +0 -1
  97. package/dist/assets/clock-cmGwdobA.js +0 -1
  98. package/dist/assets/dist-D8-6hzNY.js +0 -349
  99. package/dist/assets/index-Z-wl-d5v.js +0 -4
  100. package/dist/assets/play-C6a3xrQ3.js +0 -1
  101. package/dist/assets/plus-QSG2gY1B.js +0 -1
  102. package/dist/assets/power-CwFgOqTp.js +0 -1
  103. package/dist/assets/remoteEntry-DS4leWkd.js +0 -1
  104. package/dist/assets/rotate-ccw-BSDcy5mi.js +0 -1
  105. package/dist/assets/rotate-cw-CJsnyxHu.js +0 -1
  106. package/dist/assets/square-qBqYsstR.js +0 -1
  107. package/dist/assets/src-B0h87dKs.js +0 -67
  108. package/dist/assets/src-CXH7iEed.js +0 -349
  109. package/dist/assets/useEventInvalidation-Dm4wRxi4.js +0 -1
@@ -8006,6 +8006,21 @@ var RelocateJobSchema = object({
8006
8006
  bytesMoved: number().int(),
8007
8007
  /** Total files discovered up front; null while (or when) unknown. */
8008
8008
  filesTotal: number().int().nullable(),
8009
+ /**
8010
+ * Rows this run CORRECTED while moving them — a durable mutation the move
8011
+ * made that nobody asked for, so it is reported where the operator reads the
8012
+ * job rather than only in a log line.
8013
+ *
8014
+ * A footage segment records its byte count in its own NAME, and the durable
8015
+ * hour row derives its aggregates from those names. A file that does not
8016
+ * match its name therefore makes the ledger's sums — and with them quota and
8017
+ * pressure eviction — wrong by the difference, and only a rename can fix it.
8018
+ * On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
8019
+ *
8020
+ * Absent on lanes where the question has no meaning: a media blob's size is
8021
+ * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
8022
+ */
8023
+ rowsReconciled: number().int().nonnegative().optional(),
8009
8024
  startedAt: number(),
8010
8025
  finishedAt: number().nullable(),
8011
8026
  error: string().nullable()
@@ -8074,14 +8089,42 @@ var RelocateMediaInputSchema = object({
8074
8089
  /** Omitted = `move`, the pre-existing behaviour. */
8075
8090
  mode: MediaRelocateModeSchema.optional()
8076
8091
  });
8077
- /** How many rows still carry NO `locationId` — the population a repoint would
8078
- * silently re-aim at a disk that does not hold their bytes. Zero is the only
8079
- * value that permits a non-blocking `eventMedia` cutover. */
8080
- var UnstampedEventMediaCountSchema = object({
8081
- media: number().int().nonnegative(),
8082
- retrainFrames: number().int().nonnegative(),
8083
- total: number().int().nonnegative()
8092
+ /**
8093
+ * The unstamped population of ONE collection split, because the gate and the
8094
+ * operator ask two different questions and only one of them has to be cheap.
8095
+ *
8096
+ * `present` is the GATE: "is there at least one row that would be orphaned by a
8097
+ * repoint". It is a single indexed seek to the first matching row, so it stays
8098
+ * answerable on a saturated disk and answers in O(log n) precisely in the state
8099
+ * that matters — after a seal, when the population is empty.
8100
+ *
8101
+ * `rows` is the NUMBER, for the refusal message and the operator's sense of
8102
+ * scale. It is a second, indexed `COUNT(*)`, and `null` means **not
8103
+ * measurable** — never zero. `{ present: true, rows: null }` is a legitimate
8104
+ * and useful answer: "there are some, and this read could not say how many"
8105
+ * still refuses the cutover, which is the whole job.
8106
+ */
8107
+ var UnstampedRowsSchema = object({
8108
+ present: boolean(),
8109
+ rows: number().int().nonnegative().nullable()
8084
8110
  });
8111
+ /**
8112
+ * How many rows still carry NO `locationId` — the population a repoint would
8113
+ * silently re-aim at a disk that does not hold their bytes.
8114
+ *
8115
+ * **`null` = the count could not be taken**, and it is NOT permission to cut
8116
+ * over. The gate opens on a measured absence and on nothing else; an unread
8117
+ * collection and an empty one are different facts, and this repo has already
8118
+ * paid for conflating them (`RelocateResidueSchema`, D295).
8119
+ */
8120
+ var UnstampedEventMediaCountSchema = object({
8121
+ media: UnstampedRowsSchema,
8122
+ retrainFrames: UnstampedRowsSchema,
8123
+ /** True when EITHER collection holds one. The refusal reads this. */
8124
+ anyPresent: boolean(),
8125
+ /** Sum across both, or `null` when either lane could not be counted. */
8126
+ total: number().int().nonnegative().nullable()
8127
+ }).nullable();
8085
8128
  var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
8086
8129
  /** The independently selectable logical storage classes — every class
8087
8130
  * `storage.listLocationDeclarations` reports, so an operator never meets a
@@ -8167,13 +8210,53 @@ var StorageMigrationParticipantSchema = _enum([
8167
8210
  "recorder",
8168
8211
  "analytics"
8169
8212
  ]);
8213
+ /**
8214
+ * The mover's own numbers, folded onto the coordinator's durable move record.
8215
+ *
8216
+ * The long half of a non-blocking migration is `draining`, and it is measured
8217
+ * in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
8218
+ * existed the only place those numbers appeared was a Loki line, so an operator
8219
+ * watching the Admin UI saw `phase: draining` and nothing else for a whole
8220
+ * afternoon.
8221
+ *
8222
+ * It is POLLED, never pushed. Events are telemetry and may be dropped
8223
+ * (D8/D11), and a dropped progress event is indistinguishable from a stalled
8224
+ * mover — which is the exact failure this is meant to end. The coordinator's
8225
+ * `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
8226
+ * read `state`; folding the counters costs no extra read and makes the durable
8227
+ * record say afterwards how far a move actually got.
8228
+ *
8229
+ * `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
8230
+ * a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
8231
+ * cannot say M, and a 0 there would render as "100 % done".
8232
+ */
8233
+ var StorageMigrationMoveProgressSchema = object({
8234
+ filesMoved: number().int().nonnegative(),
8235
+ /** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
8236
+ filesTotal: number().int().nonnegative().nullable(),
8237
+ bytesMoved: number().int().nonnegative(),
8238
+ /** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
8239
+ * a lane that cannot reconcile. A migration that silently rewrote durable
8240
+ * rows would be the same failure as one that silently skipped them. */
8241
+ rowsReconciled: number().int().nonnegative().optional(),
8242
+ /** The MOVER's start, not the migration's: a drain restarted after an addon
8243
+ * crash gets a new mover, and a rate computed from the migration's start
8244
+ * would silently average in the time nothing was running. */
8245
+ startedAt: number(),
8246
+ /** When the coordinator last read these numbers. Paired with `startedAt` it
8247
+ * is the only honest rate: both clocks are the hub's, so a UI never has to
8248
+ * subtract its own. */
8249
+ observedAt: number()
8250
+ });
8170
8251
  var StorageMigrationMoveSchema = object({
8171
8252
  storageClass: StorageMigrationClassSchema,
8172
8253
  fromLocationId: string(),
8173
8254
  toLocationId: string(),
8174
8255
  moverJobId: string().nullable(),
8175
8256
  state: RelocateJobStateSchema.nullable(),
8176
- error: string().nullable()
8257
+ error: string().nullable(),
8258
+ /** Last observed mover counters; `null` until the mover has been polled once. */
8259
+ progress: StorageMigrationMoveProgressSchema.nullable()
8177
8260
  });
8178
8261
  var StorageMigrationJobSchema = object({
8179
8262
  jobId: string(),
@@ -8219,6 +8302,98 @@ var StorageMigrationPlanSchema = object({
8219
8302
  findings: array(StorageMigrationFindingSchema)
8220
8303
  });
8221
8304
  /**
8305
+ * A mover as it exists RIGHT NOW, whether or not a migration job owns it.
8306
+ *
8307
+ * The coordinator's job record is the state of record for a migration, and its
8308
+ * moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
8309
+ * standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
8310
+ * are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
8311
+ * way because no supported UI path existed. A mover armed like that has no job
8312
+ * to fold progress into, so it has to be readable on its own or it is invisible.
8313
+ *
8314
+ * `migrationJobId` is what tells the two apart: `null` means nothing here
8315
+ * orchestrated it.
8316
+ */
8317
+ var StorageMigrationMoverSchema = object({
8318
+ lane: _enum(["footage", "media"]),
8319
+ job: RelocateJobSchema,
8320
+ /** The coordinator job that armed this mover, or `null` for a mover armed
8321
+ * directly against the owning addon. */
8322
+ migrationJobId: string().nullable(),
8323
+ /** When the hub read these counters. Stamped here so a rate is `bytesMoved`
8324
+ * over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
8325
+ * a browser subtracting its own `Date.now()` from a server `startedAt` is a
8326
+ * rate made of two different clocks. */
8327
+ observedAt: number()
8328
+ });
8329
+ /**
8330
+ * What a SOURCE still holds for one storage class — the number that makes a
8331
+ * "drain remaining" action honest rather than hopeful.
8332
+ *
8333
+ * It comes from the archive (`SegmentHourLedger.census` for footage, the media
8334
+ * engine's own selection count for media), never from the resident index: a
8335
+ * drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
8336
+ * never been told about (D295).
8337
+ *
8338
+ * `items`/`bytes` are `null` for "the archive could not be asked", which is
8339
+ * deliberately NOT zero: a drain is still offered for an unknown residue,
8340
+ * because refusing on an unanswerable read would hide exactly the case an
8341
+ * operator needs to act on.
8342
+ */
8343
+ var StorageMigrationResidueSchema = object({
8344
+ storageClass: StorageMigrationClassSchema,
8345
+ /** The location still holding the data. `'*'` for the media lane, whose rows
8346
+ * move from wherever they are rather than from one named source. */
8347
+ fromLocationId: string(),
8348
+ /** Where a drain would move it — the class's CURRENT default. */
8349
+ toLocationId: string(),
8350
+ /** Segments (footage lane) or rows (media lane) still on the source. */
8351
+ items: number().int().nonnegative().nullable(),
8352
+ /** Bytes on the source; `null` when the lane counts rows rather than bytes. */
8353
+ bytes: number().int().nonnegative().nullable()
8354
+ });
8355
+ /**
8356
+ * Run the DRAIN half and nothing else.
8357
+ *
8358
+ * A migration that reached `done` has already repointed, so `start` correctly
8359
+ * refuses its destination ("already the default") — there is nothing left to
8360
+ * repoint. But the drain can fail, be cancelled, be interrupted by a restart,
8361
+ * or finish against a work list that was a tenth of the archive (D295), and
8362
+ * before this there was no supported way to run only that half: the only way
8363
+ * through was calling `recording.relocateFootage` by hand over admin tRPC.
8364
+ *
8365
+ * `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
8366
+ * refusal meaningful: the two verbs are disjoint, so nothing here can silently
8367
+ * re-repoint a class that is already migrated.
8368
+ */
8369
+ var StorageMigrationDrainInputSchema = object({
8370
+ /** The classes to drain. Each must appear in `storageMigration.residue`, so
8371
+ * a class whose source is already empty is refused rather than started. */
8372
+ classes: array(StorageMigrationClassSchema).min(1),
8373
+ throttleMbps: number().min(1).max(1e3).optional()
8374
+ });
8375
+ /** What a footage source still holds, asked of the durable hour ledger. */
8376
+ var RelocateResidueInputSchema = object({
8377
+ fromLocationId: string().min(1),
8378
+ /** Narrow to one logical class; omit for every profile on the location. */
8379
+ footageClass: RelocateFootageClassSchema.optional()
8380
+ });
8381
+ /** `null` = the archive could not answer (no ledger on this node, or the
8382
+ * aggregate failed). Never conflated with an empty source. */
8383
+ var RelocateResidueSchema = object({
8384
+ segments: number().int().nonnegative(),
8385
+ bytes: number().int().nonnegative()
8386
+ }).nullable();
8387
+ /** How many rows a media pass would still act on against a given target — the
8388
+ * media lane's denominator AND its residue, from ONE derivation so the two can
8389
+ * never disagree. `null` = the count could not be taken. */
8390
+ var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8391
+ var RelocatableMediaCountInputSchema = object({
8392
+ toLocationId: string().min(1),
8393
+ /** Omitted = `move`. */
8394
+ mode: MediaRelocateModeSchema.optional()
8395
+ });
8396
+ /**
8222
8397
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8223
8398
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8224
8399
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8322,6 +8497,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
8322
8497
  * two addons declaring the same `id` must agree on `cardinality` (validated
8323
8498
  * at kernel aggregation time, not here).
8324
8499
  */
8500
+ /**
8501
+ * `StorageAccess` — how the service that DECLARED a storage-location kind
8502
+ * actually reaches the bytes. It is the constraint that decides which
8503
+ * `storage-provider`s may back a location of that kind.
8504
+ *
8505
+ * - `'local-path'` — the service asks `storage.resolve` for a path string and
8506
+ * then does its own `node:fs` I/O on it (the recorder's segment writer, the
8507
+ * post-analysis media roots). Only a provider that serves a genuine local
8508
+ * filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
8509
+ * remote provider's `resolve` returns a path on the REMOTE host, and
8510
+ * `fs.readdir` of it on this node either fails or — far worse — succeeds
8511
+ * against a same-named local directory that is something else entirely.
8512
+ *
8513
+ * - `'cap-mediated'` — every byte travels through the `storage` cap
8514
+ * (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
8515
+ * service never sees a path, so any provider can back it. `backups` is the
8516
+ * one kind that qualifies today.
8517
+ *
8518
+ * Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
8519
+ * an EMERGENT property of how the recorder happened to be written. Nothing
8520
+ * refused the configuration; the first write simply went somewhere wrong, and
8521
+ * a recording write that goes wrong surfaces as a silent black window rather
8522
+ * than an error (the read path does not `stat`). This turns that accident into
8523
+ * a declared, enforced, testable refusal.
8524
+ */
8525
+ var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
8325
8526
  var StorageLocationDeclarationSchema = object({
8326
8527
  /**
8327
8528
  * Global location identifier, e.g. `recordings` or `recordingsLow`.
@@ -8341,6 +8542,19 @@ var StorageLocationDeclarationSchema = object({
8341
8542
  */
8342
8543
  cardinality: _enum(["single", "multi"]),
8343
8544
  /**
8545
+ * HOW the declaring service reaches the bytes — and therefore WHICH
8546
+ * providers may back a location of this kind. See {@link StorageAccessSchema}
8547
+ * and {@link STORAGE_ACCESS_FALLBACK}.
8548
+ *
8549
+ * Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
8550
+ * can only over-restrict (refuse a remote provider for a kind that might
8551
+ * have coped) and never under-restrict. Declaring `'cap-mediated'` is the
8552
+ * permissive direction and is therefore never inferred — a repo guard
8553
+ * (`scripts/check-storage-access-declarations.ts`) refuses to let it be
8554
+ * reached by omission.
8555
+ */
8556
+ access: StorageAccessSchema.optional(),
8557
+ /**
8344
8558
  * When set, the default instance for this location inherits its resolved
8345
8559
  * root from the named location's default instance. Useful for derivative
8346
8560
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
@@ -17866,8 +18080,10 @@ var TrackSchema = object({
17866
18080
  lastSeen: number(),
17867
18081
  /** Frame-rate position history (subject to maxPositionHistory cap). */
17868
18082
  positions: array(TrackPositionSchema).readonly(),
17869
- /** Periodic snapshots at snapshotIntervalMs cadence (subject to
17870
- * saveThumbnails policy). */
18083
+ /** Periodic snapshots at snapshotIntervalMs cadence DEBUG media, produced
18084
+ * only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
18085
+ * the retired `saveThumbnails` used to gate this and the rolling
18086
+ * `lastFrame` together). Empty is the healthy default, not a capture gap. */
17871
18087
  snapshots: array(TrackSnapshotSchema).readonly(),
17872
18088
  /** Deduplicated zones the track has entered at least once. Zone IDS. */
17873
18089
  zonesVisited: array(string()).readonly(),
@@ -18727,7 +18943,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18727
18943
  }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
18728
18944
  kind: "mutation",
18729
18945
  auth: "admin"
18730
- }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(object({}), array(RelocateJobSchema).readonly(), {
18946
+ }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
18947
+ kind: "query",
18948
+ auth: "admin"
18949
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
18731
18950
  kind: "query",
18732
18951
  auth: "admin"
18733
18952
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
@@ -20686,6 +20905,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
20686
20905
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
20687
20906
  kind: "mutation",
20688
20907
  auth: "admin"
20908
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
20909
+ kind: "mutation",
20910
+ auth: "admin"
20689
20911
  });
20690
20912
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20691
20913
  providerId: string().min(1),
@@ -21084,12 +21306,38 @@ response: record(string(), unknown()) }), object({
21084
21306
  *
21085
21307
  * ## Why this is a capability and not a helper
21086
21308
  *
21087
- * Six stores in `addon-post-analysis` already hold vectors object CLIP, face,
21088
- * plate, vehicle, identity, and the event store's derivativesand every one of
21089
- * them keeps its vectors in a `JSON` settings-store column and ranks them by
21090
- * brute-force cosine in JS. Measured on the live hub that costs ~11.7 KB per row
21091
- * (512 floats as TEXT, `JSON.parse`d on every search) and made semantic search
21092
- * load 5,000 rows before ranking anything.
21309
+ * This capability was introduced with the claim that SIX stores in
21310
+ * `addon-post-analysis` held vectors in a `JSON` settings-store columnobject
21311
+ * CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
21312
+ * claim was never true, and leaving it here made five stores look like pending
21313
+ * work when three of them have no vector at all. Counted column by column on
21314
+ * 2026-08-30, exactly THREE ever held one:
21315
+ *
21316
+ * - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
21317
+ * - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
21318
+ * - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
21319
+ * face, migrated 2026-08-30 into its OWN index (see below).
21320
+ *
21321
+ * `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
21322
+ * and `identities` store a name; the event store stores no derivative vector.
21323
+ * They are not migration candidates and never were.
21324
+ *
21325
+ * Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
21326
+ * as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
21327
+ * rows before ranking anything.
21328
+ *
21329
+ * ## One index per COMPARISON, never per encoder
21330
+ *
21331
+ * `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
21332
+ * model, and they still get two indexes. An index is a set of things that are
21333
+ * ranked against each other and that live and die together, and these two are
21334
+ * neither: a `faces` row is TRACK-OWNED and cascades away with its track under
21335
+ * a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
21336
+ * forever and is the gallery every recognition ranks against. One index would
21337
+ * mean every gallery load and every reconcile carried a filter whose failure
21338
+ * mode is either ranking a candidate against itself or reclaiming an enrolled
21339
+ * person's only sample. The dimension they share is not a reason to share an
21340
+ * index; the question they answer is, and it differs.
21093
21341
  *
21094
21342
  * The fix is not a faster loop, it is a different backend — and the backend
21095
21343
  * should be replaceable without touching six callers. So: a singleton
@@ -21194,7 +21442,20 @@ var VectorQueryResultSchema = object({
21194
21442
  */
21195
21443
  scanned: number(),
21196
21444
  /** True when the backend could not consider every row that passed the filter. */
21197
- truncated: boolean()
21445
+ truncated: boolean(),
21446
+ /**
21447
+ * The `topK` the backend actually ran with.
21448
+ *
21449
+ * Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
21450
+ * past it used to learn nothing but a boolean, from a WARN in the provider's
21451
+ * own log rather than in its answer. That is how an audit asking for 20,000
21452
+ * consumed 4,096 and reported `examined: 4096` as if it had walked the index,
21453
+ * for weeks. `truncated` says THAT the answer was short; this says BY HOW
21454
+ * MUCH, in the return value, where the caller cannot fail to see it.
21455
+ *
21456
+ * Equals the requested `topK` whenever nothing was lowered.
21457
+ */
21458
+ effectiveTopK: number().int().positive()
21198
21459
  });
21199
21460
  var VectorDeleteInputSchema = object({
21200
21461
  index: string(),
@@ -21223,6 +21484,68 @@ var VectorGetResultSchema = object({ items: array(object({
21223
21484
  id: string(),
21224
21485
  metadata: VectorMetadataSchema
21225
21486
  })) });
21487
+ /**
21488
+ * Ids to read back WITH their vectors.
21489
+ *
21490
+ * The sibling of {@link VectorGetResultSchema}, and deliberately a separate
21491
+ * method rather than a flag on it: `getByIds` promises no vectors and its one
21492
+ * caller depends on that promise. This one promises the opposite.
21493
+ *
21494
+ * It exists because a store cannot put its vectors here otherwise. An ArcFace
21495
+ * gallery is ranked IN PROCESS, per detection, against every enrolled sample —
21496
+ * a per-face cross-process KNN would be a network round trip inside the
21497
+ * recognition loop. So the gallery is loaded once and held in RAM, and loading
21498
+ * it requires the index to hand the floats back. Without this method the only
21499
+ * way to keep a readable vector is a JSON column, which is the thing this
21500
+ * capability exists to delete.
21501
+ *
21502
+ * BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
21503
+ * index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
21504
+ */
21505
+ var VectorFetchInputSchema = object({
21506
+ index: string(),
21507
+ ids: array(string())
21508
+ });
21509
+ var VectorFetchResultSchema = object({ items: array(object({
21510
+ id: string(),
21511
+ /** base64 Float32LE — the same wire form `upsert` accepts. */
21512
+ vector: string(),
21513
+ metadata: VectorMetadataSchema
21514
+ })) });
21515
+ /**
21516
+ * ENUMERATE an index: one page of rows in a stable order, no ranking.
21517
+ *
21518
+ * A reconcile does not want the nearest rows, it wants ALL of them, and asking
21519
+ * a KNN for "all" is the wrong question twice over. It hits the backend's `k`
21520
+ * ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
21521
+ * probe vector it does not have, so the audit passed a ZERO vector whose cosine
21522
+ * distance to every row is degenerate. `examined: 4096` then read as "we
21523
+ * looked" for as long as anyone cared to read it.
21524
+ *
21525
+ * This is the primitive that question actually needs: a bounded page, ordered
21526
+ * by the backend's own row order, costing no distance computation at all.
21527
+ * Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
21528
+ * the full-table read this capability was built to stop.
21529
+ */
21530
+ var VectorScanInputSchema = object({
21531
+ index: string(),
21532
+ /** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
21533
+ cursor: number().int().nonnegative().default(0),
21534
+ limit: number().int().positive()
21535
+ });
21536
+ var VectorScanResultSchema = object({
21537
+ items: array(object({
21538
+ id: string(),
21539
+ metadata: VectorMetadataSchema
21540
+ })),
21541
+ /**
21542
+ * Where the next page starts, or `null` when the walk reached the end.
21543
+ *
21544
+ * `null` is the ONLY end-of-index signal. A caller must not infer the end
21545
+ * from a short page: a backend is free to return fewer rows than asked.
21546
+ */
21547
+ nextCursor: number().int().nonnegative().nullable()
21548
+ });
21226
21549
  var VectorStatsInputSchema = object({ index: string() });
21227
21550
  var VectorStatsResultSchema = object({
21228
21551
  /** Provider id, so an operator can tell brute force from an ANN index. */
@@ -21241,7 +21564,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
21241
21564
  }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
21242
21565
  kind: "mutation",
21243
21566
  auth: "admin"
21244
- }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21567
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21245
21568
  kind: "mutation",
21246
21569
  auth: "admin"
21247
21570
  }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
@@ -26145,6 +26468,9 @@ method(object({
26145
26468
  }), method(object({}), array(RelocateJobSchema).readonly(), {
26146
26469
  kind: "query",
26147
26470
  auth: "admin"
26471
+ }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
26472
+ kind: "query",
26473
+ auth: "admin"
26148
26474
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26149
26475
  kind: "mutation",
26150
26476
  auth: "admin"
@@ -31110,6 +31436,12 @@ Object.freeze({
31110
31436
  addonId: null,
31111
31437
  access: "create"
31112
31438
  },
31439
+ "pipelineAnalytics.countRelocatableMedia": {
31440
+ capName: "pipeline-analytics",
31441
+ capScope: "device",
31442
+ addonId: null,
31443
+ access: "view"
31444
+ },
31113
31445
  "pipelineAnalytics.countUnstampedEventMedia": {
31114
31446
  capName: "pipeline-analytics",
31115
31447
  capScope: "device",
@@ -32274,6 +32606,12 @@ Object.freeze({
32274
32606
  addonId: null,
32275
32607
  access: "view"
32276
32608
  },
32609
+ "recording.getRelocateResidue": {
32610
+ capName: "recording",
32611
+ capScope: "system",
32612
+ addonId: null,
32613
+ access: "view"
32614
+ },
32277
32615
  "recording.getStorageMigrationMoveStatus": {
32278
32616
  capName: "recording",
32279
32617
  capScope: "system",
@@ -32820,12 +33158,30 @@ Object.freeze({
32820
33158
  addonId: null,
32821
33159
  access: "create"
32822
33160
  },
33161
+ "storageMigration.drain": {
33162
+ capName: "storage-migration",
33163
+ capScope: "system",
33164
+ addonId: null,
33165
+ access: "create"
33166
+ },
33167
+ "storageMigration.movers": {
33168
+ capName: "storage-migration",
33169
+ capScope: "system",
33170
+ addonId: null,
33171
+ access: "view"
33172
+ },
32823
33173
  "storageMigration.plan": {
32824
33174
  capName: "storage-migration",
32825
33175
  capScope: "system",
32826
33176
  addonId: null,
32827
33177
  access: "view"
32828
33178
  },
33179
+ "storageMigration.residue": {
33180
+ capName: "storage-migration",
33181
+ capScope: "system",
33182
+ addonId: null,
33183
+ access: "view"
33184
+ },
32829
33185
  "storageMigration.start": {
32830
33186
  capName: "storage-migration",
32831
33187
  capScope: "system",
@@ -33660,6 +34016,12 @@ Object.freeze({
33660
34016
  addonId: null,
33661
34017
  access: "delete"
33662
34018
  },
34019
+ "vectorStore.fetchByIds": {
34020
+ capName: "vector-store",
34021
+ capScope: "system",
34022
+ addonId: null,
34023
+ access: "view"
34024
+ },
33663
34025
  "vectorStore.getByIds": {
33664
34026
  capName: "vector-store",
33665
34027
  capScope: "system",
@@ -33672,6 +34034,12 @@ Object.freeze({
33672
34034
  addonId: null,
33673
34035
  access: "view"
33674
34036
  },
34037
+ "vectorStore.scan": {
34038
+ capName: "vector-store",
34039
+ capScope: "system",
34040
+ addonId: null,
34041
+ access: "view"
34042
+ },
33675
34043
  "vectorStore.stats": {
33676
34044
  capName: "vector-store",
33677
34045
  capScope: "system",
@@ -36103,7 +36471,7 @@ var AdminUIAddon = class extends BaseAddon {
36103
36471
  capability: adminUiCapability,
36104
36472
  provider: {
36105
36473
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
36106
- getVersion: async () => ({ version: "1.2.115" })
36474
+ getVersion: async () => ({ version: "1.2.118" })
36107
36475
  }
36108
36476
  }];
36109
36477
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-admin-ui",
3
- "version": "1.2.115",
3
+ "version": "1.2.118",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Admin UI — Vite frontend build and server-side addon",