@camstack/addon-smtp-nodemailer 1.2.42 → 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.
- package/dist/smtp.addon.js +387 -19
- package/dist/smtp.addon.mjs +387 -19
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -8024,6 +8024,21 @@ var RelocateJobSchema = object({
|
|
|
8024
8024
|
bytesMoved: number().int(),
|
|
8025
8025
|
/** Total files discovered up front; null while (or when) unknown. */
|
|
8026
8026
|
filesTotal: number().int().nullable(),
|
|
8027
|
+
/**
|
|
8028
|
+
* Rows this run CORRECTED while moving them — a durable mutation the move
|
|
8029
|
+
* made that nobody asked for, so it is reported where the operator reads the
|
|
8030
|
+
* job rather than only in a log line.
|
|
8031
|
+
*
|
|
8032
|
+
* A footage segment records its byte count in its own NAME, and the durable
|
|
8033
|
+
* hour row derives its aggregates from those names. A file that does not
|
|
8034
|
+
* match its name therefore makes the ledger's sums — and with them quota and
|
|
8035
|
+
* pressure eviction — wrong by the difference, and only a rename can fix it.
|
|
8036
|
+
* On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
|
|
8037
|
+
*
|
|
8038
|
+
* Absent on lanes where the question has no meaning: a media blob's size is
|
|
8039
|
+
* in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
|
|
8040
|
+
*/
|
|
8041
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8027
8042
|
startedAt: number(),
|
|
8028
8043
|
finishedAt: number().nullable(),
|
|
8029
8044
|
error: string().nullable()
|
|
@@ -8092,14 +8107,42 @@ var RelocateMediaInputSchema = object({
|
|
|
8092
8107
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8093
8108
|
mode: MediaRelocateModeSchema.optional()
|
|
8094
8109
|
});
|
|
8095
|
-
/**
|
|
8096
|
-
*
|
|
8097
|
-
*
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8110
|
+
/**
|
|
8111
|
+
* The unstamped population of ONE collection — split, because the gate and the
|
|
8112
|
+
* operator ask two different questions and only one of them has to be cheap.
|
|
8113
|
+
*
|
|
8114
|
+
* `present` is the GATE: "is there at least one row that would be orphaned by a
|
|
8115
|
+
* repoint". It is a single indexed seek to the first matching row, so it stays
|
|
8116
|
+
* answerable on a saturated disk and answers in O(log n) precisely in the state
|
|
8117
|
+
* that matters — after a seal, when the population is empty.
|
|
8118
|
+
*
|
|
8119
|
+
* `rows` is the NUMBER, for the refusal message and the operator's sense of
|
|
8120
|
+
* scale. It is a second, indexed `COUNT(*)`, and `null` means **not
|
|
8121
|
+
* measurable** — never zero. `{ present: true, rows: null }` is a legitimate
|
|
8122
|
+
* and useful answer: "there are some, and this read could not say how many"
|
|
8123
|
+
* still refuses the cutover, which is the whole job.
|
|
8124
|
+
*/
|
|
8125
|
+
var UnstampedRowsSchema = object({
|
|
8126
|
+
present: boolean(),
|
|
8127
|
+
rows: number().int().nonnegative().nullable()
|
|
8102
8128
|
});
|
|
8129
|
+
/**
|
|
8130
|
+
* How many rows still carry NO `locationId` — the population a repoint would
|
|
8131
|
+
* silently re-aim at a disk that does not hold their bytes.
|
|
8132
|
+
*
|
|
8133
|
+
* **`null` = the count could not be taken**, and it is NOT permission to cut
|
|
8134
|
+
* over. The gate opens on a measured absence and on nothing else; an unread
|
|
8135
|
+
* collection and an empty one are different facts, and this repo has already
|
|
8136
|
+
* paid for conflating them (`RelocateResidueSchema`, D295).
|
|
8137
|
+
*/
|
|
8138
|
+
var UnstampedEventMediaCountSchema = object({
|
|
8139
|
+
media: UnstampedRowsSchema,
|
|
8140
|
+
retrainFrames: UnstampedRowsSchema,
|
|
8141
|
+
/** True when EITHER collection holds one. The refusal reads this. */
|
|
8142
|
+
anyPresent: boolean(),
|
|
8143
|
+
/** Sum across both, or `null` when either lane could not be counted. */
|
|
8144
|
+
total: number().int().nonnegative().nullable()
|
|
8145
|
+
}).nullable();
|
|
8103
8146
|
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
8104
8147
|
/** The independently selectable logical storage classes — every class
|
|
8105
8148
|
* `storage.listLocationDeclarations` reports, so an operator never meets a
|
|
@@ -8185,13 +8228,53 @@ var StorageMigrationParticipantSchema = _enum([
|
|
|
8185
8228
|
"recorder",
|
|
8186
8229
|
"analytics"
|
|
8187
8230
|
]);
|
|
8231
|
+
/**
|
|
8232
|
+
* The mover's own numbers, folded onto the coordinator's durable move record.
|
|
8233
|
+
*
|
|
8234
|
+
* The long half of a non-blocking migration is `draining`, and it is measured
|
|
8235
|
+
* in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
|
|
8236
|
+
* existed the only place those numbers appeared was a Loki line, so an operator
|
|
8237
|
+
* watching the Admin UI saw `phase: draining` and nothing else for a whole
|
|
8238
|
+
* afternoon.
|
|
8239
|
+
*
|
|
8240
|
+
* It is POLLED, never pushed. Events are telemetry and may be dropped
|
|
8241
|
+
* (D8/D11), and a dropped progress event is indistinguishable from a stalled
|
|
8242
|
+
* mover — which is the exact failure this is meant to end. The coordinator's
|
|
8243
|
+
* `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
|
|
8244
|
+
* read `state`; folding the counters costs no extra read and makes the durable
|
|
8245
|
+
* record say afterwards how far a move actually got.
|
|
8246
|
+
*
|
|
8247
|
+
* `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
|
|
8248
|
+
* a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
|
|
8249
|
+
* cannot say M, and a 0 there would render as "100 % done".
|
|
8250
|
+
*/
|
|
8251
|
+
var StorageMigrationMoveProgressSchema = object({
|
|
8252
|
+
filesMoved: number().int().nonnegative(),
|
|
8253
|
+
/** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
|
|
8254
|
+
filesTotal: number().int().nonnegative().nullable(),
|
|
8255
|
+
bytesMoved: number().int().nonnegative(),
|
|
8256
|
+
/** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
|
|
8257
|
+
* a lane that cannot reconcile. A migration that silently rewrote durable
|
|
8258
|
+
* rows would be the same failure as one that silently skipped them. */
|
|
8259
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8260
|
+
/** The MOVER's start, not the migration's: a drain restarted after an addon
|
|
8261
|
+
* crash gets a new mover, and a rate computed from the migration's start
|
|
8262
|
+
* would silently average in the time nothing was running. */
|
|
8263
|
+
startedAt: number(),
|
|
8264
|
+
/** When the coordinator last read these numbers. Paired with `startedAt` it
|
|
8265
|
+
* is the only honest rate: both clocks are the hub's, so a UI never has to
|
|
8266
|
+
* subtract its own. */
|
|
8267
|
+
observedAt: number()
|
|
8268
|
+
});
|
|
8188
8269
|
var StorageMigrationMoveSchema = object({
|
|
8189
8270
|
storageClass: StorageMigrationClassSchema,
|
|
8190
8271
|
fromLocationId: string(),
|
|
8191
8272
|
toLocationId: string(),
|
|
8192
8273
|
moverJobId: string().nullable(),
|
|
8193
8274
|
state: RelocateJobStateSchema.nullable(),
|
|
8194
|
-
error: string().nullable()
|
|
8275
|
+
error: string().nullable(),
|
|
8276
|
+
/** Last observed mover counters; `null` until the mover has been polled once. */
|
|
8277
|
+
progress: StorageMigrationMoveProgressSchema.nullable()
|
|
8195
8278
|
});
|
|
8196
8279
|
var StorageMigrationJobSchema = object({
|
|
8197
8280
|
jobId: string(),
|
|
@@ -8237,6 +8320,98 @@ var StorageMigrationPlanSchema = object({
|
|
|
8237
8320
|
findings: array(StorageMigrationFindingSchema)
|
|
8238
8321
|
});
|
|
8239
8322
|
/**
|
|
8323
|
+
* A mover as it exists RIGHT NOW, whether or not a migration job owns it.
|
|
8324
|
+
*
|
|
8325
|
+
* The coordinator's job record is the state of record for a migration, and its
|
|
8326
|
+
* moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
|
|
8327
|
+
* standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
|
|
8328
|
+
* are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
|
|
8329
|
+
* way because no supported UI path existed. A mover armed like that has no job
|
|
8330
|
+
* to fold progress into, so it has to be readable on its own or it is invisible.
|
|
8331
|
+
*
|
|
8332
|
+
* `migrationJobId` is what tells the two apart: `null` means nothing here
|
|
8333
|
+
* orchestrated it.
|
|
8334
|
+
*/
|
|
8335
|
+
var StorageMigrationMoverSchema = object({
|
|
8336
|
+
lane: _enum(["footage", "media"]),
|
|
8337
|
+
job: RelocateJobSchema,
|
|
8338
|
+
/** The coordinator job that armed this mover, or `null` for a mover armed
|
|
8339
|
+
* directly against the owning addon. */
|
|
8340
|
+
migrationJobId: string().nullable(),
|
|
8341
|
+
/** When the hub read these counters. Stamped here so a rate is `bytesMoved`
|
|
8342
|
+
* over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
|
|
8343
|
+
* a browser subtracting its own `Date.now()` from a server `startedAt` is a
|
|
8344
|
+
* rate made of two different clocks. */
|
|
8345
|
+
observedAt: number()
|
|
8346
|
+
});
|
|
8347
|
+
/**
|
|
8348
|
+
* What a SOURCE still holds for one storage class — the number that makes a
|
|
8349
|
+
* "drain remaining" action honest rather than hopeful.
|
|
8350
|
+
*
|
|
8351
|
+
* It comes from the archive (`SegmentHourLedger.census` for footage, the media
|
|
8352
|
+
* engine's own selection count for media), never from the resident index: a
|
|
8353
|
+
* drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
|
|
8354
|
+
* never been told about (D295).
|
|
8355
|
+
*
|
|
8356
|
+
* `items`/`bytes` are `null` for "the archive could not be asked", which is
|
|
8357
|
+
* deliberately NOT zero: a drain is still offered for an unknown residue,
|
|
8358
|
+
* because refusing on an unanswerable read would hide exactly the case an
|
|
8359
|
+
* operator needs to act on.
|
|
8360
|
+
*/
|
|
8361
|
+
var StorageMigrationResidueSchema = object({
|
|
8362
|
+
storageClass: StorageMigrationClassSchema,
|
|
8363
|
+
/** The location still holding the data. `'*'` for the media lane, whose rows
|
|
8364
|
+
* move from wherever they are rather than from one named source. */
|
|
8365
|
+
fromLocationId: string(),
|
|
8366
|
+
/** Where a drain would move it — the class's CURRENT default. */
|
|
8367
|
+
toLocationId: string(),
|
|
8368
|
+
/** Segments (footage lane) or rows (media lane) still on the source. */
|
|
8369
|
+
items: number().int().nonnegative().nullable(),
|
|
8370
|
+
/** Bytes on the source; `null` when the lane counts rows rather than bytes. */
|
|
8371
|
+
bytes: number().int().nonnegative().nullable()
|
|
8372
|
+
});
|
|
8373
|
+
/**
|
|
8374
|
+
* Run the DRAIN half and nothing else.
|
|
8375
|
+
*
|
|
8376
|
+
* A migration that reached `done` has already repointed, so `start` correctly
|
|
8377
|
+
* refuses its destination ("already the default") — there is nothing left to
|
|
8378
|
+
* repoint. But the drain can fail, be cancelled, be interrupted by a restart,
|
|
8379
|
+
* or finish against a work list that was a tenth of the archive (D295), and
|
|
8380
|
+
* before this there was no supported way to run only that half: the only way
|
|
8381
|
+
* through was calling `recording.relocateFootage` by hand over admin tRPC.
|
|
8382
|
+
*
|
|
8383
|
+
* `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
|
|
8384
|
+
* refusal meaningful: the two verbs are disjoint, so nothing here can silently
|
|
8385
|
+
* re-repoint a class that is already migrated.
|
|
8386
|
+
*/
|
|
8387
|
+
var StorageMigrationDrainInputSchema = object({
|
|
8388
|
+
/** The classes to drain. Each must appear in `storageMigration.residue`, so
|
|
8389
|
+
* a class whose source is already empty is refused rather than started. */
|
|
8390
|
+
classes: array(StorageMigrationClassSchema).min(1),
|
|
8391
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
8392
|
+
});
|
|
8393
|
+
/** What a footage source still holds, asked of the durable hour ledger. */
|
|
8394
|
+
var RelocateResidueInputSchema = object({
|
|
8395
|
+
fromLocationId: string().min(1),
|
|
8396
|
+
/** Narrow to one logical class; omit for every profile on the location. */
|
|
8397
|
+
footageClass: RelocateFootageClassSchema.optional()
|
|
8398
|
+
});
|
|
8399
|
+
/** `null` = the archive could not answer (no ledger on this node, or the
|
|
8400
|
+
* aggregate failed). Never conflated with an empty source. */
|
|
8401
|
+
var RelocateResidueSchema = object({
|
|
8402
|
+
segments: number().int().nonnegative(),
|
|
8403
|
+
bytes: number().int().nonnegative()
|
|
8404
|
+
}).nullable();
|
|
8405
|
+
/** How many rows a media pass would still act on against a given target — the
|
|
8406
|
+
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8407
|
+
* never disagree. `null` = the count could not be taken. */
|
|
8408
|
+
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8409
|
+
var RelocatableMediaCountInputSchema = object({
|
|
8410
|
+
toLocationId: string().min(1),
|
|
8411
|
+
/** Omitted = `move`. */
|
|
8412
|
+
mode: MediaRelocateModeSchema.optional()
|
|
8413
|
+
});
|
|
8414
|
+
/**
|
|
8240
8415
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8241
8416
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8242
8417
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8340,6 +8515,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
|
|
|
8340
8515
|
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
8341
8516
|
* at kernel aggregation time, not here).
|
|
8342
8517
|
*/
|
|
8518
|
+
/**
|
|
8519
|
+
* `StorageAccess` — how the service that DECLARED a storage-location kind
|
|
8520
|
+
* actually reaches the bytes. It is the constraint that decides which
|
|
8521
|
+
* `storage-provider`s may back a location of that kind.
|
|
8522
|
+
*
|
|
8523
|
+
* - `'local-path'` — the service asks `storage.resolve` for a path string and
|
|
8524
|
+
* then does its own `node:fs` I/O on it (the recorder's segment writer, the
|
|
8525
|
+
* post-analysis media roots). Only a provider that serves a genuine local
|
|
8526
|
+
* filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
|
|
8527
|
+
* remote provider's `resolve` returns a path on the REMOTE host, and
|
|
8528
|
+
* `fs.readdir` of it on this node either fails or — far worse — succeeds
|
|
8529
|
+
* against a same-named local directory that is something else entirely.
|
|
8530
|
+
*
|
|
8531
|
+
* - `'cap-mediated'` — every byte travels through the `storage` cap
|
|
8532
|
+
* (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
|
|
8533
|
+
* service never sees a path, so any provider can back it. `backups` is the
|
|
8534
|
+
* one kind that qualifies today.
|
|
8535
|
+
*
|
|
8536
|
+
* Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
|
|
8537
|
+
* an EMERGENT property of how the recorder happened to be written. Nothing
|
|
8538
|
+
* refused the configuration; the first write simply went somewhere wrong, and
|
|
8539
|
+
* a recording write that goes wrong surfaces as a silent black window rather
|
|
8540
|
+
* than an error (the read path does not `stat`). This turns that accident into
|
|
8541
|
+
* a declared, enforced, testable refusal.
|
|
8542
|
+
*/
|
|
8543
|
+
var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
|
|
8343
8544
|
var StorageLocationDeclarationSchema = object({
|
|
8344
8545
|
/**
|
|
8345
8546
|
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
@@ -8359,6 +8560,19 @@ var StorageLocationDeclarationSchema = object({
|
|
|
8359
8560
|
*/
|
|
8360
8561
|
cardinality: _enum(["single", "multi"]),
|
|
8361
8562
|
/**
|
|
8563
|
+
* HOW the declaring service reaches the bytes — and therefore WHICH
|
|
8564
|
+
* providers may back a location of this kind. See {@link StorageAccessSchema}
|
|
8565
|
+
* and {@link STORAGE_ACCESS_FALLBACK}.
|
|
8566
|
+
*
|
|
8567
|
+
* Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
|
|
8568
|
+
* can only over-restrict (refuse a remote provider for a kind that might
|
|
8569
|
+
* have coped) and never under-restrict. Declaring `'cap-mediated'` is the
|
|
8570
|
+
* permissive direction and is therefore never inferred — a repo guard
|
|
8571
|
+
* (`scripts/check-storage-access-declarations.ts`) refuses to let it be
|
|
8572
|
+
* reached by omission.
|
|
8573
|
+
*/
|
|
8574
|
+
access: StorageAccessSchema.optional(),
|
|
8575
|
+
/**
|
|
8362
8576
|
* When set, the default instance for this location inherits its resolved
|
|
8363
8577
|
* root from the named location's default instance. Useful for derivative
|
|
8364
8578
|
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
@@ -17884,8 +18098,10 @@ var TrackSchema = object({
|
|
|
17884
18098
|
lastSeen: number(),
|
|
17885
18099
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
17886
18100
|
positions: array(TrackPositionSchema).readonly(),
|
|
17887
|
-
/** Periodic snapshots at snapshotIntervalMs cadence
|
|
17888
|
-
*
|
|
18101
|
+
/** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
|
|
18102
|
+
* only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
|
|
18103
|
+
* the retired `saveThumbnails` used to gate this and the rolling
|
|
18104
|
+
* `lastFrame` together). Empty is the healthy default, not a capture gap. */
|
|
17889
18105
|
snapshots: array(TrackSnapshotSchema).readonly(),
|
|
17890
18106
|
/** Deduplicated zones the track has entered at least once. Zone IDS. */
|
|
17891
18107
|
zonesVisited: array(string()).readonly(),
|
|
@@ -18745,7 +18961,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18745
18961
|
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
18746
18962
|
kind: "mutation",
|
|
18747
18963
|
auth: "admin"
|
|
18748
|
-
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(
|
|
18964
|
+
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
|
|
18965
|
+
kind: "query",
|
|
18966
|
+
auth: "admin"
|
|
18967
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
18749
18968
|
kind: "query",
|
|
18750
18969
|
auth: "admin"
|
|
18751
18970
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
@@ -20717,6 +20936,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
20717
20936
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
20718
20937
|
kind: "mutation",
|
|
20719
20938
|
auth: "admin"
|
|
20939
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
20940
|
+
kind: "mutation",
|
|
20941
|
+
auth: "admin"
|
|
20720
20942
|
});
|
|
20721
20943
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
20722
20944
|
providerId: string().min(1),
|
|
@@ -21115,12 +21337,38 @@ response: record(string(), unknown()) }), object({
|
|
|
21115
21337
|
*
|
|
21116
21338
|
* ## Why this is a capability and not a helper
|
|
21117
21339
|
*
|
|
21118
|
-
*
|
|
21119
|
-
*
|
|
21120
|
-
*
|
|
21121
|
-
*
|
|
21122
|
-
*
|
|
21123
|
-
*
|
|
21340
|
+
* This capability was introduced with the claim that SIX stores in
|
|
21341
|
+
* `addon-post-analysis` held vectors in a `JSON` settings-store column — object
|
|
21342
|
+
* CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
|
|
21343
|
+
* claim was never true, and leaving it here made five stores look like pending
|
|
21344
|
+
* work when three of them have no vector at all. Counted column by column on
|
|
21345
|
+
* 2026-08-30, exactly THREE ever held one:
|
|
21346
|
+
*
|
|
21347
|
+
* - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
|
|
21348
|
+
* - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
|
|
21349
|
+
* - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
|
|
21350
|
+
* face, migrated 2026-08-30 into its OWN index (see below).
|
|
21351
|
+
*
|
|
21352
|
+
* `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
|
|
21353
|
+
* and `identities` store a name; the event store stores no derivative vector.
|
|
21354
|
+
* They are not migration candidates and never were.
|
|
21355
|
+
*
|
|
21356
|
+
* Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
|
|
21357
|
+
* as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
|
|
21358
|
+
* rows before ranking anything.
|
|
21359
|
+
*
|
|
21360
|
+
* ## One index per COMPARISON, never per encoder
|
|
21361
|
+
*
|
|
21362
|
+
* `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
|
|
21363
|
+
* model, and they still get two indexes. An index is a set of things that are
|
|
21364
|
+
* ranked against each other and that live and die together, and these two are
|
|
21365
|
+
* neither: a `faces` row is TRACK-OWNED and cascades away with its track under
|
|
21366
|
+
* a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
|
|
21367
|
+
* forever and is the gallery every recognition ranks against. One index would
|
|
21368
|
+
* mean every gallery load and every reconcile carried a filter whose failure
|
|
21369
|
+
* mode is either ranking a candidate against itself or reclaiming an enrolled
|
|
21370
|
+
* person's only sample. The dimension they share is not a reason to share an
|
|
21371
|
+
* index; the question they answer is, and it differs.
|
|
21124
21372
|
*
|
|
21125
21373
|
* The fix is not a faster loop, it is a different backend — and the backend
|
|
21126
21374
|
* should be replaceable without touching six callers. So: a singleton
|
|
@@ -21225,7 +21473,20 @@ var VectorQueryResultSchema = object({
|
|
|
21225
21473
|
*/
|
|
21226
21474
|
scanned: number(),
|
|
21227
21475
|
/** True when the backend could not consider every row that passed the filter. */
|
|
21228
|
-
truncated: boolean()
|
|
21476
|
+
truncated: boolean(),
|
|
21477
|
+
/**
|
|
21478
|
+
* The `topK` the backend actually ran with.
|
|
21479
|
+
*
|
|
21480
|
+
* Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
|
|
21481
|
+
* past it used to learn nothing but a boolean, from a WARN in the provider's
|
|
21482
|
+
* own log rather than in its answer. That is how an audit asking for 20,000
|
|
21483
|
+
* consumed 4,096 and reported `examined: 4096` as if it had walked the index,
|
|
21484
|
+
* for weeks. `truncated` says THAT the answer was short; this says BY HOW
|
|
21485
|
+
* MUCH, in the return value, where the caller cannot fail to see it.
|
|
21486
|
+
*
|
|
21487
|
+
* Equals the requested `topK` whenever nothing was lowered.
|
|
21488
|
+
*/
|
|
21489
|
+
effectiveTopK: number().int().positive()
|
|
21229
21490
|
});
|
|
21230
21491
|
var VectorDeleteInputSchema = object({
|
|
21231
21492
|
index: string(),
|
|
@@ -21254,6 +21515,68 @@ var VectorGetResultSchema = object({ items: array(object({
|
|
|
21254
21515
|
id: string(),
|
|
21255
21516
|
metadata: VectorMetadataSchema
|
|
21256
21517
|
})) });
|
|
21518
|
+
/**
|
|
21519
|
+
* Ids to read back WITH their vectors.
|
|
21520
|
+
*
|
|
21521
|
+
* The sibling of {@link VectorGetResultSchema}, and deliberately a separate
|
|
21522
|
+
* method rather than a flag on it: `getByIds` promises no vectors and its one
|
|
21523
|
+
* caller depends on that promise. This one promises the opposite.
|
|
21524
|
+
*
|
|
21525
|
+
* It exists because a store cannot put its vectors here otherwise. An ArcFace
|
|
21526
|
+
* gallery is ranked IN PROCESS, per detection, against every enrolled sample —
|
|
21527
|
+
* a per-face cross-process KNN would be a network round trip inside the
|
|
21528
|
+
* recognition loop. So the gallery is loaded once and held in RAM, and loading
|
|
21529
|
+
* it requires the index to hand the floats back. Without this method the only
|
|
21530
|
+
* way to keep a readable vector is a JSON column, which is the thing this
|
|
21531
|
+
* capability exists to delete.
|
|
21532
|
+
*
|
|
21533
|
+
* BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
|
|
21534
|
+
* index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
|
|
21535
|
+
*/
|
|
21536
|
+
var VectorFetchInputSchema = object({
|
|
21537
|
+
index: string(),
|
|
21538
|
+
ids: array(string())
|
|
21539
|
+
});
|
|
21540
|
+
var VectorFetchResultSchema = object({ items: array(object({
|
|
21541
|
+
id: string(),
|
|
21542
|
+
/** base64 Float32LE — the same wire form `upsert` accepts. */
|
|
21543
|
+
vector: string(),
|
|
21544
|
+
metadata: VectorMetadataSchema
|
|
21545
|
+
})) });
|
|
21546
|
+
/**
|
|
21547
|
+
* ENUMERATE an index: one page of rows in a stable order, no ranking.
|
|
21548
|
+
*
|
|
21549
|
+
* A reconcile does not want the nearest rows, it wants ALL of them, and asking
|
|
21550
|
+
* a KNN for "all" is the wrong question twice over. It hits the backend's `k`
|
|
21551
|
+
* ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
|
|
21552
|
+
* probe vector it does not have, so the audit passed a ZERO vector whose cosine
|
|
21553
|
+
* distance to every row is degenerate. `examined: 4096` then read as "we
|
|
21554
|
+
* looked" for as long as anyone cared to read it.
|
|
21555
|
+
*
|
|
21556
|
+
* This is the primitive that question actually needs: a bounded page, ordered
|
|
21557
|
+
* by the backend's own row order, costing no distance computation at all.
|
|
21558
|
+
* Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
|
|
21559
|
+
* the full-table read this capability was built to stop.
|
|
21560
|
+
*/
|
|
21561
|
+
var VectorScanInputSchema = object({
|
|
21562
|
+
index: string(),
|
|
21563
|
+
/** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
|
|
21564
|
+
cursor: number().int().nonnegative().default(0),
|
|
21565
|
+
limit: number().int().positive()
|
|
21566
|
+
});
|
|
21567
|
+
var VectorScanResultSchema = object({
|
|
21568
|
+
items: array(object({
|
|
21569
|
+
id: string(),
|
|
21570
|
+
metadata: VectorMetadataSchema
|
|
21571
|
+
})),
|
|
21572
|
+
/**
|
|
21573
|
+
* Where the next page starts, or `null` when the walk reached the end.
|
|
21574
|
+
*
|
|
21575
|
+
* `null` is the ONLY end-of-index signal. A caller must not infer the end
|
|
21576
|
+
* from a short page: a backend is free to return fewer rows than asked.
|
|
21577
|
+
*/
|
|
21578
|
+
nextCursor: number().int().nonnegative().nullable()
|
|
21579
|
+
});
|
|
21257
21580
|
var VectorStatsInputSchema = object({ index: string() });
|
|
21258
21581
|
var VectorStatsResultSchema = object({
|
|
21259
21582
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -21272,7 +21595,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
|
|
|
21272
21595
|
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
21273
21596
|
kind: "mutation",
|
|
21274
21597
|
auth: "admin"
|
|
21275
|
-
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21598
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21276
21599
|
kind: "mutation",
|
|
21277
21600
|
auth: "admin"
|
|
21278
21601
|
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
@@ -26176,6 +26499,9 @@ method(object({
|
|
|
26176
26499
|
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
26177
26500
|
kind: "query",
|
|
26178
26501
|
auth: "admin"
|
|
26502
|
+
}), method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
26503
|
+
kind: "query",
|
|
26504
|
+
auth: "admin"
|
|
26179
26505
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
26180
26506
|
kind: "mutation",
|
|
26181
26507
|
auth: "admin"
|
|
@@ -31141,6 +31467,12 @@ Object.freeze({
|
|
|
31141
31467
|
addonId: null,
|
|
31142
31468
|
access: "create"
|
|
31143
31469
|
},
|
|
31470
|
+
"pipelineAnalytics.countRelocatableMedia": {
|
|
31471
|
+
capName: "pipeline-analytics",
|
|
31472
|
+
capScope: "device",
|
|
31473
|
+
addonId: null,
|
|
31474
|
+
access: "view"
|
|
31475
|
+
},
|
|
31144
31476
|
"pipelineAnalytics.countUnstampedEventMedia": {
|
|
31145
31477
|
capName: "pipeline-analytics",
|
|
31146
31478
|
capScope: "device",
|
|
@@ -32305,6 +32637,12 @@ Object.freeze({
|
|
|
32305
32637
|
addonId: null,
|
|
32306
32638
|
access: "view"
|
|
32307
32639
|
},
|
|
32640
|
+
"recording.getRelocateResidue": {
|
|
32641
|
+
capName: "recording",
|
|
32642
|
+
capScope: "system",
|
|
32643
|
+
addonId: null,
|
|
32644
|
+
access: "view"
|
|
32645
|
+
},
|
|
32308
32646
|
"recording.getStorageMigrationMoveStatus": {
|
|
32309
32647
|
capName: "recording",
|
|
32310
32648
|
capScope: "system",
|
|
@@ -32851,12 +33189,30 @@ Object.freeze({
|
|
|
32851
33189
|
addonId: null,
|
|
32852
33190
|
access: "create"
|
|
32853
33191
|
},
|
|
33192
|
+
"storageMigration.drain": {
|
|
33193
|
+
capName: "storage-migration",
|
|
33194
|
+
capScope: "system",
|
|
33195
|
+
addonId: null,
|
|
33196
|
+
access: "create"
|
|
33197
|
+
},
|
|
33198
|
+
"storageMigration.movers": {
|
|
33199
|
+
capName: "storage-migration",
|
|
33200
|
+
capScope: "system",
|
|
33201
|
+
addonId: null,
|
|
33202
|
+
access: "view"
|
|
33203
|
+
},
|
|
32854
33204
|
"storageMigration.plan": {
|
|
32855
33205
|
capName: "storage-migration",
|
|
32856
33206
|
capScope: "system",
|
|
32857
33207
|
addonId: null,
|
|
32858
33208
|
access: "view"
|
|
32859
33209
|
},
|
|
33210
|
+
"storageMigration.residue": {
|
|
33211
|
+
capName: "storage-migration",
|
|
33212
|
+
capScope: "system",
|
|
33213
|
+
addonId: null,
|
|
33214
|
+
access: "view"
|
|
33215
|
+
},
|
|
32860
33216
|
"storageMigration.start": {
|
|
32861
33217
|
capName: "storage-migration",
|
|
32862
33218
|
capScope: "system",
|
|
@@ -33691,6 +34047,12 @@ Object.freeze({
|
|
|
33691
34047
|
addonId: null,
|
|
33692
34048
|
access: "delete"
|
|
33693
34049
|
},
|
|
34050
|
+
"vectorStore.fetchByIds": {
|
|
34051
|
+
capName: "vector-store",
|
|
34052
|
+
capScope: "system",
|
|
34053
|
+
addonId: null,
|
|
34054
|
+
access: "view"
|
|
34055
|
+
},
|
|
33694
34056
|
"vectorStore.getByIds": {
|
|
33695
34057
|
capName: "vector-store",
|
|
33696
34058
|
capScope: "system",
|
|
@@ -33703,6 +34065,12 @@ Object.freeze({
|
|
|
33703
34065
|
addonId: null,
|
|
33704
34066
|
access: "view"
|
|
33705
34067
|
},
|
|
34068
|
+
"vectorStore.scan": {
|
|
34069
|
+
capName: "vector-store",
|
|
34070
|
+
capScope: "system",
|
|
34071
|
+
addonId: null,
|
|
34072
|
+
access: "view"
|
|
34073
|
+
},
|
|
33706
34074
|
"vectorStore.stats": {
|
|
33707
34075
|
capName: "vector-store",
|
|
33708
34076
|
capScope: "system",
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -8022,6 +8022,21 @@ var RelocateJobSchema = object({
|
|
|
8022
8022
|
bytesMoved: number().int(),
|
|
8023
8023
|
/** Total files discovered up front; null while (or when) unknown. */
|
|
8024
8024
|
filesTotal: number().int().nullable(),
|
|
8025
|
+
/**
|
|
8026
|
+
* Rows this run CORRECTED while moving them — a durable mutation the move
|
|
8027
|
+
* made that nobody asked for, so it is reported where the operator reads the
|
|
8028
|
+
* job rather than only in a log line.
|
|
8029
|
+
*
|
|
8030
|
+
* A footage segment records its byte count in its own NAME, and the durable
|
|
8031
|
+
* hour row derives its aggregates from those names. A file that does not
|
|
8032
|
+
* match its name therefore makes the ledger's sums — and with them quota and
|
|
8033
|
+
* pressure eviction — wrong by the difference, and only a rename can fix it.
|
|
8034
|
+
* On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
|
|
8035
|
+
*
|
|
8036
|
+
* Absent on lanes where the question has no meaning: a media blob's size is
|
|
8037
|
+
* in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
|
|
8038
|
+
*/
|
|
8039
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8025
8040
|
startedAt: number(),
|
|
8026
8041
|
finishedAt: number().nullable(),
|
|
8027
8042
|
error: string().nullable()
|
|
@@ -8090,14 +8105,42 @@ var RelocateMediaInputSchema = object({
|
|
|
8090
8105
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8091
8106
|
mode: MediaRelocateModeSchema.optional()
|
|
8092
8107
|
});
|
|
8093
|
-
/**
|
|
8094
|
-
*
|
|
8095
|
-
*
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8108
|
+
/**
|
|
8109
|
+
* The unstamped population of ONE collection — split, because the gate and the
|
|
8110
|
+
* operator ask two different questions and only one of them has to be cheap.
|
|
8111
|
+
*
|
|
8112
|
+
* `present` is the GATE: "is there at least one row that would be orphaned by a
|
|
8113
|
+
* repoint". It is a single indexed seek to the first matching row, so it stays
|
|
8114
|
+
* answerable on a saturated disk and answers in O(log n) precisely in the state
|
|
8115
|
+
* that matters — after a seal, when the population is empty.
|
|
8116
|
+
*
|
|
8117
|
+
* `rows` is the NUMBER, for the refusal message and the operator's sense of
|
|
8118
|
+
* scale. It is a second, indexed `COUNT(*)`, and `null` means **not
|
|
8119
|
+
* measurable** — never zero. `{ present: true, rows: null }` is a legitimate
|
|
8120
|
+
* and useful answer: "there are some, and this read could not say how many"
|
|
8121
|
+
* still refuses the cutover, which is the whole job.
|
|
8122
|
+
*/
|
|
8123
|
+
var UnstampedRowsSchema = object({
|
|
8124
|
+
present: boolean(),
|
|
8125
|
+
rows: number().int().nonnegative().nullable()
|
|
8100
8126
|
});
|
|
8127
|
+
/**
|
|
8128
|
+
* How many rows still carry NO `locationId` — the population a repoint would
|
|
8129
|
+
* silently re-aim at a disk that does not hold their bytes.
|
|
8130
|
+
*
|
|
8131
|
+
* **`null` = the count could not be taken**, and it is NOT permission to cut
|
|
8132
|
+
* over. The gate opens on a measured absence and on nothing else; an unread
|
|
8133
|
+
* collection and an empty one are different facts, and this repo has already
|
|
8134
|
+
* paid for conflating them (`RelocateResidueSchema`, D295).
|
|
8135
|
+
*/
|
|
8136
|
+
var UnstampedEventMediaCountSchema = object({
|
|
8137
|
+
media: UnstampedRowsSchema,
|
|
8138
|
+
retrainFrames: UnstampedRowsSchema,
|
|
8139
|
+
/** True when EITHER collection holds one. The refusal reads this. */
|
|
8140
|
+
anyPresent: boolean(),
|
|
8141
|
+
/** Sum across both, or `null` when either lane could not be counted. */
|
|
8142
|
+
total: number().int().nonnegative().nullable()
|
|
8143
|
+
}).nullable();
|
|
8101
8144
|
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
8102
8145
|
/** The independently selectable logical storage classes — every class
|
|
8103
8146
|
* `storage.listLocationDeclarations` reports, so an operator never meets a
|
|
@@ -8183,13 +8226,53 @@ var StorageMigrationParticipantSchema = _enum([
|
|
|
8183
8226
|
"recorder",
|
|
8184
8227
|
"analytics"
|
|
8185
8228
|
]);
|
|
8229
|
+
/**
|
|
8230
|
+
* The mover's own numbers, folded onto the coordinator's durable move record.
|
|
8231
|
+
*
|
|
8232
|
+
* The long half of a non-blocking migration is `draining`, and it is measured
|
|
8233
|
+
* in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
|
|
8234
|
+
* existed the only place those numbers appeared was a Loki line, so an operator
|
|
8235
|
+
* watching the Admin UI saw `phase: draining` and nothing else for a whole
|
|
8236
|
+
* afternoon.
|
|
8237
|
+
*
|
|
8238
|
+
* It is POLLED, never pushed. Events are telemetry and may be dropped
|
|
8239
|
+
* (D8/D11), and a dropped progress event is indistinguishable from a stalled
|
|
8240
|
+
* mover — which is the exact failure this is meant to end. The coordinator's
|
|
8241
|
+
* `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
|
|
8242
|
+
* read `state`; folding the counters costs no extra read and makes the durable
|
|
8243
|
+
* record say afterwards how far a move actually got.
|
|
8244
|
+
*
|
|
8245
|
+
* `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
|
|
8246
|
+
* a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
|
|
8247
|
+
* cannot say M, and a 0 there would render as "100 % done".
|
|
8248
|
+
*/
|
|
8249
|
+
var StorageMigrationMoveProgressSchema = object({
|
|
8250
|
+
filesMoved: number().int().nonnegative(),
|
|
8251
|
+
/** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
|
|
8252
|
+
filesTotal: number().int().nonnegative().nullable(),
|
|
8253
|
+
bytesMoved: number().int().nonnegative(),
|
|
8254
|
+
/** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
|
|
8255
|
+
* a lane that cannot reconcile. A migration that silently rewrote durable
|
|
8256
|
+
* rows would be the same failure as one that silently skipped them. */
|
|
8257
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8258
|
+
/** The MOVER's start, not the migration's: a drain restarted after an addon
|
|
8259
|
+
* crash gets a new mover, and a rate computed from the migration's start
|
|
8260
|
+
* would silently average in the time nothing was running. */
|
|
8261
|
+
startedAt: number(),
|
|
8262
|
+
/** When the coordinator last read these numbers. Paired with `startedAt` it
|
|
8263
|
+
* is the only honest rate: both clocks are the hub's, so a UI never has to
|
|
8264
|
+
* subtract its own. */
|
|
8265
|
+
observedAt: number()
|
|
8266
|
+
});
|
|
8186
8267
|
var StorageMigrationMoveSchema = object({
|
|
8187
8268
|
storageClass: StorageMigrationClassSchema,
|
|
8188
8269
|
fromLocationId: string(),
|
|
8189
8270
|
toLocationId: string(),
|
|
8190
8271
|
moverJobId: string().nullable(),
|
|
8191
8272
|
state: RelocateJobStateSchema.nullable(),
|
|
8192
|
-
error: string().nullable()
|
|
8273
|
+
error: string().nullable(),
|
|
8274
|
+
/** Last observed mover counters; `null` until the mover has been polled once. */
|
|
8275
|
+
progress: StorageMigrationMoveProgressSchema.nullable()
|
|
8193
8276
|
});
|
|
8194
8277
|
var StorageMigrationJobSchema = object({
|
|
8195
8278
|
jobId: string(),
|
|
@@ -8235,6 +8318,98 @@ var StorageMigrationPlanSchema = object({
|
|
|
8235
8318
|
findings: array(StorageMigrationFindingSchema)
|
|
8236
8319
|
});
|
|
8237
8320
|
/**
|
|
8321
|
+
* A mover as it exists RIGHT NOW, whether or not a migration job owns it.
|
|
8322
|
+
*
|
|
8323
|
+
* The coordinator's job record is the state of record for a migration, and its
|
|
8324
|
+
* moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
|
|
8325
|
+
* standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
|
|
8326
|
+
* are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
|
|
8327
|
+
* way because no supported UI path existed. A mover armed like that has no job
|
|
8328
|
+
* to fold progress into, so it has to be readable on its own or it is invisible.
|
|
8329
|
+
*
|
|
8330
|
+
* `migrationJobId` is what tells the two apart: `null` means nothing here
|
|
8331
|
+
* orchestrated it.
|
|
8332
|
+
*/
|
|
8333
|
+
var StorageMigrationMoverSchema = object({
|
|
8334
|
+
lane: _enum(["footage", "media"]),
|
|
8335
|
+
job: RelocateJobSchema,
|
|
8336
|
+
/** The coordinator job that armed this mover, or `null` for a mover armed
|
|
8337
|
+
* directly against the owning addon. */
|
|
8338
|
+
migrationJobId: string().nullable(),
|
|
8339
|
+
/** When the hub read these counters. Stamped here so a rate is `bytesMoved`
|
|
8340
|
+
* over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
|
|
8341
|
+
* a browser subtracting its own `Date.now()` from a server `startedAt` is a
|
|
8342
|
+
* rate made of two different clocks. */
|
|
8343
|
+
observedAt: number()
|
|
8344
|
+
});
|
|
8345
|
+
/**
|
|
8346
|
+
* What a SOURCE still holds for one storage class — the number that makes a
|
|
8347
|
+
* "drain remaining" action honest rather than hopeful.
|
|
8348
|
+
*
|
|
8349
|
+
* It comes from the archive (`SegmentHourLedger.census` for footage, the media
|
|
8350
|
+
* engine's own selection count for media), never from the resident index: a
|
|
8351
|
+
* drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
|
|
8352
|
+
* never been told about (D295).
|
|
8353
|
+
*
|
|
8354
|
+
* `items`/`bytes` are `null` for "the archive could not be asked", which is
|
|
8355
|
+
* deliberately NOT zero: a drain is still offered for an unknown residue,
|
|
8356
|
+
* because refusing on an unanswerable read would hide exactly the case an
|
|
8357
|
+
* operator needs to act on.
|
|
8358
|
+
*/
|
|
8359
|
+
var StorageMigrationResidueSchema = object({
|
|
8360
|
+
storageClass: StorageMigrationClassSchema,
|
|
8361
|
+
/** The location still holding the data. `'*'` for the media lane, whose rows
|
|
8362
|
+
* move from wherever they are rather than from one named source. */
|
|
8363
|
+
fromLocationId: string(),
|
|
8364
|
+
/** Where a drain would move it — the class's CURRENT default. */
|
|
8365
|
+
toLocationId: string(),
|
|
8366
|
+
/** Segments (footage lane) or rows (media lane) still on the source. */
|
|
8367
|
+
items: number().int().nonnegative().nullable(),
|
|
8368
|
+
/** Bytes on the source; `null` when the lane counts rows rather than bytes. */
|
|
8369
|
+
bytes: number().int().nonnegative().nullable()
|
|
8370
|
+
});
|
|
8371
|
+
/**
|
|
8372
|
+
* Run the DRAIN half and nothing else.
|
|
8373
|
+
*
|
|
8374
|
+
* A migration that reached `done` has already repointed, so `start` correctly
|
|
8375
|
+
* refuses its destination ("already the default") — there is nothing left to
|
|
8376
|
+
* repoint. But the drain can fail, be cancelled, be interrupted by a restart,
|
|
8377
|
+
* or finish against a work list that was a tenth of the archive (D295), and
|
|
8378
|
+
* before this there was no supported way to run only that half: the only way
|
|
8379
|
+
* through was calling `recording.relocateFootage` by hand over admin tRPC.
|
|
8380
|
+
*
|
|
8381
|
+
* `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
|
|
8382
|
+
* refusal meaningful: the two verbs are disjoint, so nothing here can silently
|
|
8383
|
+
* re-repoint a class that is already migrated.
|
|
8384
|
+
*/
|
|
8385
|
+
var StorageMigrationDrainInputSchema = object({
|
|
8386
|
+
/** The classes to drain. Each must appear in `storageMigration.residue`, so
|
|
8387
|
+
* a class whose source is already empty is refused rather than started. */
|
|
8388
|
+
classes: array(StorageMigrationClassSchema).min(1),
|
|
8389
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
8390
|
+
});
|
|
8391
|
+
/** What a footage source still holds, asked of the durable hour ledger. */
|
|
8392
|
+
var RelocateResidueInputSchema = object({
|
|
8393
|
+
fromLocationId: string().min(1),
|
|
8394
|
+
/** Narrow to one logical class; omit for every profile on the location. */
|
|
8395
|
+
footageClass: RelocateFootageClassSchema.optional()
|
|
8396
|
+
});
|
|
8397
|
+
/** `null` = the archive could not answer (no ledger on this node, or the
|
|
8398
|
+
* aggregate failed). Never conflated with an empty source. */
|
|
8399
|
+
var RelocateResidueSchema = object({
|
|
8400
|
+
segments: number().int().nonnegative(),
|
|
8401
|
+
bytes: number().int().nonnegative()
|
|
8402
|
+
}).nullable();
|
|
8403
|
+
/** How many rows a media pass would still act on against a given target — the
|
|
8404
|
+
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8405
|
+
* never disagree. `null` = the count could not be taken. */
|
|
8406
|
+
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8407
|
+
var RelocatableMediaCountInputSchema = object({
|
|
8408
|
+
toLocationId: string().min(1),
|
|
8409
|
+
/** Omitted = `move`. */
|
|
8410
|
+
mode: MediaRelocateModeSchema.optional()
|
|
8411
|
+
});
|
|
8412
|
+
/**
|
|
8238
8413
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8239
8414
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8240
8415
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8338,6 +8513,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
|
|
|
8338
8513
|
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
8339
8514
|
* at kernel aggregation time, not here).
|
|
8340
8515
|
*/
|
|
8516
|
+
/**
|
|
8517
|
+
* `StorageAccess` — how the service that DECLARED a storage-location kind
|
|
8518
|
+
* actually reaches the bytes. It is the constraint that decides which
|
|
8519
|
+
* `storage-provider`s may back a location of that kind.
|
|
8520
|
+
*
|
|
8521
|
+
* - `'local-path'` — the service asks `storage.resolve` for a path string and
|
|
8522
|
+
* then does its own `node:fs` I/O on it (the recorder's segment writer, the
|
|
8523
|
+
* post-analysis media roots). Only a provider that serves a genuine local
|
|
8524
|
+
* filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
|
|
8525
|
+
* remote provider's `resolve` returns a path on the REMOTE host, and
|
|
8526
|
+
* `fs.readdir` of it on this node either fails or — far worse — succeeds
|
|
8527
|
+
* against a same-named local directory that is something else entirely.
|
|
8528
|
+
*
|
|
8529
|
+
* - `'cap-mediated'` — every byte travels through the `storage` cap
|
|
8530
|
+
* (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
|
|
8531
|
+
* service never sees a path, so any provider can back it. `backups` is the
|
|
8532
|
+
* one kind that qualifies today.
|
|
8533
|
+
*
|
|
8534
|
+
* Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
|
|
8535
|
+
* an EMERGENT property of how the recorder happened to be written. Nothing
|
|
8536
|
+
* refused the configuration; the first write simply went somewhere wrong, and
|
|
8537
|
+
* a recording write that goes wrong surfaces as a silent black window rather
|
|
8538
|
+
* than an error (the read path does not `stat`). This turns that accident into
|
|
8539
|
+
* a declared, enforced, testable refusal.
|
|
8540
|
+
*/
|
|
8541
|
+
var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
|
|
8341
8542
|
var StorageLocationDeclarationSchema = object({
|
|
8342
8543
|
/**
|
|
8343
8544
|
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
@@ -8357,6 +8558,19 @@ var StorageLocationDeclarationSchema = object({
|
|
|
8357
8558
|
*/
|
|
8358
8559
|
cardinality: _enum(["single", "multi"]),
|
|
8359
8560
|
/**
|
|
8561
|
+
* HOW the declaring service reaches the bytes — and therefore WHICH
|
|
8562
|
+
* providers may back a location of this kind. See {@link StorageAccessSchema}
|
|
8563
|
+
* and {@link STORAGE_ACCESS_FALLBACK}.
|
|
8564
|
+
*
|
|
8565
|
+
* Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
|
|
8566
|
+
* can only over-restrict (refuse a remote provider for a kind that might
|
|
8567
|
+
* have coped) and never under-restrict. Declaring `'cap-mediated'` is the
|
|
8568
|
+
* permissive direction and is therefore never inferred — a repo guard
|
|
8569
|
+
* (`scripts/check-storage-access-declarations.ts`) refuses to let it be
|
|
8570
|
+
* reached by omission.
|
|
8571
|
+
*/
|
|
8572
|
+
access: StorageAccessSchema.optional(),
|
|
8573
|
+
/**
|
|
8360
8574
|
* When set, the default instance for this location inherits its resolved
|
|
8361
8575
|
* root from the named location's default instance. Useful for derivative
|
|
8362
8576
|
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
@@ -17882,8 +18096,10 @@ var TrackSchema = object({
|
|
|
17882
18096
|
lastSeen: number(),
|
|
17883
18097
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
17884
18098
|
positions: array(TrackPositionSchema).readonly(),
|
|
17885
|
-
/** Periodic snapshots at snapshotIntervalMs cadence
|
|
17886
|
-
*
|
|
18099
|
+
/** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
|
|
18100
|
+
* only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
|
|
18101
|
+
* the retired `saveThumbnails` used to gate this and the rolling
|
|
18102
|
+
* `lastFrame` together). Empty is the healthy default, not a capture gap. */
|
|
17887
18103
|
snapshots: array(TrackSnapshotSchema).readonly(),
|
|
17888
18104
|
/** Deduplicated zones the track has entered at least once. Zone IDS. */
|
|
17889
18105
|
zonesVisited: array(string()).readonly(),
|
|
@@ -18743,7 +18959,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18743
18959
|
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
18744
18960
|
kind: "mutation",
|
|
18745
18961
|
auth: "admin"
|
|
18746
|
-
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(
|
|
18962
|
+
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
|
|
18963
|
+
kind: "query",
|
|
18964
|
+
auth: "admin"
|
|
18965
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
18747
18966
|
kind: "query",
|
|
18748
18967
|
auth: "admin"
|
|
18749
18968
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
@@ -20715,6 +20934,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
20715
20934
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
20716
20935
|
kind: "mutation",
|
|
20717
20936
|
auth: "admin"
|
|
20937
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
20938
|
+
kind: "mutation",
|
|
20939
|
+
auth: "admin"
|
|
20718
20940
|
});
|
|
20719
20941
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
20720
20942
|
providerId: string().min(1),
|
|
@@ -21113,12 +21335,38 @@ response: record(string(), unknown()) }), object({
|
|
|
21113
21335
|
*
|
|
21114
21336
|
* ## Why this is a capability and not a helper
|
|
21115
21337
|
*
|
|
21116
|
-
*
|
|
21117
|
-
*
|
|
21118
|
-
*
|
|
21119
|
-
*
|
|
21120
|
-
*
|
|
21121
|
-
*
|
|
21338
|
+
* This capability was introduced with the claim that SIX stores in
|
|
21339
|
+
* `addon-post-analysis` held vectors in a `JSON` settings-store column — object
|
|
21340
|
+
* CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
|
|
21341
|
+
* claim was never true, and leaving it here made five stores look like pending
|
|
21342
|
+
* work when three of them have no vector at all. Counted column by column on
|
|
21343
|
+
* 2026-08-30, exactly THREE ever held one:
|
|
21344
|
+
*
|
|
21345
|
+
* - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
|
|
21346
|
+
* - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
|
|
21347
|
+
* - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
|
|
21348
|
+
* face, migrated 2026-08-30 into its OWN index (see below).
|
|
21349
|
+
*
|
|
21350
|
+
* `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
|
|
21351
|
+
* and `identities` store a name; the event store stores no derivative vector.
|
|
21352
|
+
* They are not migration candidates and never were.
|
|
21353
|
+
*
|
|
21354
|
+
* Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
|
|
21355
|
+
* as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
|
|
21356
|
+
* rows before ranking anything.
|
|
21357
|
+
*
|
|
21358
|
+
* ## One index per COMPARISON, never per encoder
|
|
21359
|
+
*
|
|
21360
|
+
* `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
|
|
21361
|
+
* model, and they still get two indexes. An index is a set of things that are
|
|
21362
|
+
* ranked against each other and that live and die together, and these two are
|
|
21363
|
+
* neither: a `faces` row is TRACK-OWNED and cascades away with its track under
|
|
21364
|
+
* a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
|
|
21365
|
+
* forever and is the gallery every recognition ranks against. One index would
|
|
21366
|
+
* mean every gallery load and every reconcile carried a filter whose failure
|
|
21367
|
+
* mode is either ranking a candidate against itself or reclaiming an enrolled
|
|
21368
|
+
* person's only sample. The dimension they share is not a reason to share an
|
|
21369
|
+
* index; the question they answer is, and it differs.
|
|
21122
21370
|
*
|
|
21123
21371
|
* The fix is not a faster loop, it is a different backend — and the backend
|
|
21124
21372
|
* should be replaceable without touching six callers. So: a singleton
|
|
@@ -21223,7 +21471,20 @@ var VectorQueryResultSchema = object({
|
|
|
21223
21471
|
*/
|
|
21224
21472
|
scanned: number(),
|
|
21225
21473
|
/** True when the backend could not consider every row that passed the filter. */
|
|
21226
|
-
truncated: boolean()
|
|
21474
|
+
truncated: boolean(),
|
|
21475
|
+
/**
|
|
21476
|
+
* The `topK` the backend actually ran with.
|
|
21477
|
+
*
|
|
21478
|
+
* Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
|
|
21479
|
+
* past it used to learn nothing but a boolean, from a WARN in the provider's
|
|
21480
|
+
* own log rather than in its answer. That is how an audit asking for 20,000
|
|
21481
|
+
* consumed 4,096 and reported `examined: 4096` as if it had walked the index,
|
|
21482
|
+
* for weeks. `truncated` says THAT the answer was short; this says BY HOW
|
|
21483
|
+
* MUCH, in the return value, where the caller cannot fail to see it.
|
|
21484
|
+
*
|
|
21485
|
+
* Equals the requested `topK` whenever nothing was lowered.
|
|
21486
|
+
*/
|
|
21487
|
+
effectiveTopK: number().int().positive()
|
|
21227
21488
|
});
|
|
21228
21489
|
var VectorDeleteInputSchema = object({
|
|
21229
21490
|
index: string(),
|
|
@@ -21252,6 +21513,68 @@ var VectorGetResultSchema = object({ items: array(object({
|
|
|
21252
21513
|
id: string(),
|
|
21253
21514
|
metadata: VectorMetadataSchema
|
|
21254
21515
|
})) });
|
|
21516
|
+
/**
|
|
21517
|
+
* Ids to read back WITH their vectors.
|
|
21518
|
+
*
|
|
21519
|
+
* The sibling of {@link VectorGetResultSchema}, and deliberately a separate
|
|
21520
|
+
* method rather than a flag on it: `getByIds` promises no vectors and its one
|
|
21521
|
+
* caller depends on that promise. This one promises the opposite.
|
|
21522
|
+
*
|
|
21523
|
+
* It exists because a store cannot put its vectors here otherwise. An ArcFace
|
|
21524
|
+
* gallery is ranked IN PROCESS, per detection, against every enrolled sample —
|
|
21525
|
+
* a per-face cross-process KNN would be a network round trip inside the
|
|
21526
|
+
* recognition loop. So the gallery is loaded once and held in RAM, and loading
|
|
21527
|
+
* it requires the index to hand the floats back. Without this method the only
|
|
21528
|
+
* way to keep a readable vector is a JSON column, which is the thing this
|
|
21529
|
+
* capability exists to delete.
|
|
21530
|
+
*
|
|
21531
|
+
* BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
|
|
21532
|
+
* index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
|
|
21533
|
+
*/
|
|
21534
|
+
var VectorFetchInputSchema = object({
|
|
21535
|
+
index: string(),
|
|
21536
|
+
ids: array(string())
|
|
21537
|
+
});
|
|
21538
|
+
var VectorFetchResultSchema = object({ items: array(object({
|
|
21539
|
+
id: string(),
|
|
21540
|
+
/** base64 Float32LE — the same wire form `upsert` accepts. */
|
|
21541
|
+
vector: string(),
|
|
21542
|
+
metadata: VectorMetadataSchema
|
|
21543
|
+
})) });
|
|
21544
|
+
/**
|
|
21545
|
+
* ENUMERATE an index: one page of rows in a stable order, no ranking.
|
|
21546
|
+
*
|
|
21547
|
+
* A reconcile does not want the nearest rows, it wants ALL of them, and asking
|
|
21548
|
+
* a KNN for "all" is the wrong question twice over. It hits the backend's `k`
|
|
21549
|
+
* ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
|
|
21550
|
+
* probe vector it does not have, so the audit passed a ZERO vector whose cosine
|
|
21551
|
+
* distance to every row is degenerate. `examined: 4096` then read as "we
|
|
21552
|
+
* looked" for as long as anyone cared to read it.
|
|
21553
|
+
*
|
|
21554
|
+
* This is the primitive that question actually needs: a bounded page, ordered
|
|
21555
|
+
* by the backend's own row order, costing no distance computation at all.
|
|
21556
|
+
* Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
|
|
21557
|
+
* the full-table read this capability was built to stop.
|
|
21558
|
+
*/
|
|
21559
|
+
var VectorScanInputSchema = object({
|
|
21560
|
+
index: string(),
|
|
21561
|
+
/** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
|
|
21562
|
+
cursor: number().int().nonnegative().default(0),
|
|
21563
|
+
limit: number().int().positive()
|
|
21564
|
+
});
|
|
21565
|
+
var VectorScanResultSchema = object({
|
|
21566
|
+
items: array(object({
|
|
21567
|
+
id: string(),
|
|
21568
|
+
metadata: VectorMetadataSchema
|
|
21569
|
+
})),
|
|
21570
|
+
/**
|
|
21571
|
+
* Where the next page starts, or `null` when the walk reached the end.
|
|
21572
|
+
*
|
|
21573
|
+
* `null` is the ONLY end-of-index signal. A caller must not infer the end
|
|
21574
|
+
* from a short page: a backend is free to return fewer rows than asked.
|
|
21575
|
+
*/
|
|
21576
|
+
nextCursor: number().int().nonnegative().nullable()
|
|
21577
|
+
});
|
|
21255
21578
|
var VectorStatsInputSchema = object({ index: string() });
|
|
21256
21579
|
var VectorStatsResultSchema = object({
|
|
21257
21580
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -21270,7 +21593,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
|
|
|
21270
21593
|
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
21271
21594
|
kind: "mutation",
|
|
21272
21595
|
auth: "admin"
|
|
21273
|
-
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21596
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21274
21597
|
kind: "mutation",
|
|
21275
21598
|
auth: "admin"
|
|
21276
21599
|
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
@@ -26174,6 +26497,9 @@ method(object({
|
|
|
26174
26497
|
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
26175
26498
|
kind: "query",
|
|
26176
26499
|
auth: "admin"
|
|
26500
|
+
}), method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
26501
|
+
kind: "query",
|
|
26502
|
+
auth: "admin"
|
|
26177
26503
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
26178
26504
|
kind: "mutation",
|
|
26179
26505
|
auth: "admin"
|
|
@@ -31139,6 +31465,12 @@ Object.freeze({
|
|
|
31139
31465
|
addonId: null,
|
|
31140
31466
|
access: "create"
|
|
31141
31467
|
},
|
|
31468
|
+
"pipelineAnalytics.countRelocatableMedia": {
|
|
31469
|
+
capName: "pipeline-analytics",
|
|
31470
|
+
capScope: "device",
|
|
31471
|
+
addonId: null,
|
|
31472
|
+
access: "view"
|
|
31473
|
+
},
|
|
31142
31474
|
"pipelineAnalytics.countUnstampedEventMedia": {
|
|
31143
31475
|
capName: "pipeline-analytics",
|
|
31144
31476
|
capScope: "device",
|
|
@@ -32303,6 +32635,12 @@ Object.freeze({
|
|
|
32303
32635
|
addonId: null,
|
|
32304
32636
|
access: "view"
|
|
32305
32637
|
},
|
|
32638
|
+
"recording.getRelocateResidue": {
|
|
32639
|
+
capName: "recording",
|
|
32640
|
+
capScope: "system",
|
|
32641
|
+
addonId: null,
|
|
32642
|
+
access: "view"
|
|
32643
|
+
},
|
|
32306
32644
|
"recording.getStorageMigrationMoveStatus": {
|
|
32307
32645
|
capName: "recording",
|
|
32308
32646
|
capScope: "system",
|
|
@@ -32849,12 +33187,30 @@ Object.freeze({
|
|
|
32849
33187
|
addonId: null,
|
|
32850
33188
|
access: "create"
|
|
32851
33189
|
},
|
|
33190
|
+
"storageMigration.drain": {
|
|
33191
|
+
capName: "storage-migration",
|
|
33192
|
+
capScope: "system",
|
|
33193
|
+
addonId: null,
|
|
33194
|
+
access: "create"
|
|
33195
|
+
},
|
|
33196
|
+
"storageMigration.movers": {
|
|
33197
|
+
capName: "storage-migration",
|
|
33198
|
+
capScope: "system",
|
|
33199
|
+
addonId: null,
|
|
33200
|
+
access: "view"
|
|
33201
|
+
},
|
|
32852
33202
|
"storageMigration.plan": {
|
|
32853
33203
|
capName: "storage-migration",
|
|
32854
33204
|
capScope: "system",
|
|
32855
33205
|
addonId: null,
|
|
32856
33206
|
access: "view"
|
|
32857
33207
|
},
|
|
33208
|
+
"storageMigration.residue": {
|
|
33209
|
+
capName: "storage-migration",
|
|
33210
|
+
capScope: "system",
|
|
33211
|
+
addonId: null,
|
|
33212
|
+
access: "view"
|
|
33213
|
+
},
|
|
32858
33214
|
"storageMigration.start": {
|
|
32859
33215
|
capName: "storage-migration",
|
|
32860
33216
|
capScope: "system",
|
|
@@ -33689,6 +34045,12 @@ Object.freeze({
|
|
|
33689
34045
|
addonId: null,
|
|
33690
34046
|
access: "delete"
|
|
33691
34047
|
},
|
|
34048
|
+
"vectorStore.fetchByIds": {
|
|
34049
|
+
capName: "vector-store",
|
|
34050
|
+
capScope: "system",
|
|
34051
|
+
addonId: null,
|
|
34052
|
+
access: "view"
|
|
34053
|
+
},
|
|
33692
34054
|
"vectorStore.getByIds": {
|
|
33693
34055
|
capName: "vector-store",
|
|
33694
34056
|
capScope: "system",
|
|
@@ -33701,6 +34063,12 @@ Object.freeze({
|
|
|
33701
34063
|
addonId: null,
|
|
33702
34064
|
access: "view"
|
|
33703
34065
|
},
|
|
34066
|
+
"vectorStore.scan": {
|
|
34067
|
+
capName: "vector-store",
|
|
34068
|
+
capScope: "system",
|
|
34069
|
+
addonId: null,
|
|
34070
|
+
access: "view"
|
|
34071
|
+
},
|
|
33704
34072
|
"vectorStore.stats": {
|
|
33705
34073
|
capName: "vector-store",
|
|
33706
34074
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.45",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|