@camstack/addon-auth 1.2.46 → 1.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dist-CjPxMQ_H.js → dist-BVUxSu6R.js} +387 -19
- package/dist/{dist-CkZWLfyy.mjs → dist-Bw-A_piq.mjs} +387 -19
- package/dist/magic-link/auth-magic-link.addon.js +1 -1
- package/dist/magic-link/auth-magic-link.addon.mjs +1 -1
- package/dist/oidc/auth-oidc.addon.js +1 -1
- package/dist/oidc/auth-oidc.addon.mjs +1 -1
- package/dist/webauthn/_stub.js +1 -1
- package/dist/webauthn/{_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-BE2AJnUM.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-B8P5Tp1B.mjs} +3 -3
- package/dist/webauthn/{_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-SVe2Khet.mjs → _virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Cyq-cpgK.mjs} +1 -1
- package/dist/webauthn/auth-webauthn.addon.js +1 -1
- package/dist/webauthn/auth-webauthn.addon.mjs +1 -1
- package/dist/webauthn/{hostInit-C8eE42FC.mjs → hostInit-DgJgLrft.mjs} +3 -3
- package/dist/webauthn/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -8117,6 +8117,21 @@ var RelocateJobSchema = object({
|
|
|
8117
8117
|
bytesMoved: number().int(),
|
|
8118
8118
|
/** Total files discovered up front; null while (or when) unknown. */
|
|
8119
8119
|
filesTotal: number().int().nullable(),
|
|
8120
|
+
/**
|
|
8121
|
+
* Rows this run CORRECTED while moving them — a durable mutation the move
|
|
8122
|
+
* made that nobody asked for, so it is reported where the operator reads the
|
|
8123
|
+
* job rather than only in a log line.
|
|
8124
|
+
*
|
|
8125
|
+
* A footage segment records its byte count in its own NAME, and the durable
|
|
8126
|
+
* hour row derives its aggregates from those names. A file that does not
|
|
8127
|
+
* match its name therefore makes the ledger's sums — and with them quota and
|
|
8128
|
+
* pressure eviction — wrong by the difference, and only a rename can fix it.
|
|
8129
|
+
* On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
|
|
8130
|
+
*
|
|
8131
|
+
* Absent on lanes where the question has no meaning: a media blob's size is
|
|
8132
|
+
* in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
|
|
8133
|
+
*/
|
|
8134
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8120
8135
|
startedAt: number(),
|
|
8121
8136
|
finishedAt: number().nullable(),
|
|
8122
8137
|
error: string().nullable()
|
|
@@ -8185,14 +8200,42 @@ var RelocateMediaInputSchema = object({
|
|
|
8185
8200
|
/** Omitted = `move`, the pre-existing behaviour. */
|
|
8186
8201
|
mode: MediaRelocateModeSchema.optional()
|
|
8187
8202
|
});
|
|
8188
|
-
/**
|
|
8189
|
-
*
|
|
8190
|
-
*
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8203
|
+
/**
|
|
8204
|
+
* The unstamped population of ONE collection — split, because the gate and the
|
|
8205
|
+
* operator ask two different questions and only one of them has to be cheap.
|
|
8206
|
+
*
|
|
8207
|
+
* `present` is the GATE: "is there at least one row that would be orphaned by a
|
|
8208
|
+
* repoint". It is a single indexed seek to the first matching row, so it stays
|
|
8209
|
+
* answerable on a saturated disk and answers in O(log n) precisely in the state
|
|
8210
|
+
* that matters — after a seal, when the population is empty.
|
|
8211
|
+
*
|
|
8212
|
+
* `rows` is the NUMBER, for the refusal message and the operator's sense of
|
|
8213
|
+
* scale. It is a second, indexed `COUNT(*)`, and `null` means **not
|
|
8214
|
+
* measurable** — never zero. `{ present: true, rows: null }` is a legitimate
|
|
8215
|
+
* and useful answer: "there are some, and this read could not say how many"
|
|
8216
|
+
* still refuses the cutover, which is the whole job.
|
|
8217
|
+
*/
|
|
8218
|
+
var UnstampedRowsSchema = object({
|
|
8219
|
+
present: boolean(),
|
|
8220
|
+
rows: number().int().nonnegative().nullable()
|
|
8195
8221
|
});
|
|
8222
|
+
/**
|
|
8223
|
+
* How many rows still carry NO `locationId` — the population a repoint would
|
|
8224
|
+
* silently re-aim at a disk that does not hold their bytes.
|
|
8225
|
+
*
|
|
8226
|
+
* **`null` = the count could not be taken**, and it is NOT permission to cut
|
|
8227
|
+
* over. The gate opens on a measured absence and on nothing else; an unread
|
|
8228
|
+
* collection and an empty one are different facts, and this repo has already
|
|
8229
|
+
* paid for conflating them (`RelocateResidueSchema`, D295).
|
|
8230
|
+
*/
|
|
8231
|
+
var UnstampedEventMediaCountSchema = object({
|
|
8232
|
+
media: UnstampedRowsSchema,
|
|
8233
|
+
retrainFrames: UnstampedRowsSchema,
|
|
8234
|
+
/** True when EITHER collection holds one. The refusal reads this. */
|
|
8235
|
+
anyPresent: boolean(),
|
|
8236
|
+
/** Sum across both, or `null` when either lane could not be counted. */
|
|
8237
|
+
total: number().int().nonnegative().nullable()
|
|
8238
|
+
}).nullable();
|
|
8196
8239
|
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
8197
8240
|
/** The independently selectable logical storage classes — every class
|
|
8198
8241
|
* `storage.listLocationDeclarations` reports, so an operator never meets a
|
|
@@ -8278,13 +8321,53 @@ var StorageMigrationParticipantSchema = _enum([
|
|
|
8278
8321
|
"recorder",
|
|
8279
8322
|
"analytics"
|
|
8280
8323
|
]);
|
|
8324
|
+
/**
|
|
8325
|
+
* The mover's own numbers, folded onto the coordinator's durable move record.
|
|
8326
|
+
*
|
|
8327
|
+
* The long half of a non-blocking migration is `draining`, and it is measured
|
|
8328
|
+
* in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
|
|
8329
|
+
* existed the only place those numbers appeared was a Loki line, so an operator
|
|
8330
|
+
* watching the Admin UI saw `phase: draining` and nothing else for a whole
|
|
8331
|
+
* afternoon.
|
|
8332
|
+
*
|
|
8333
|
+
* It is POLLED, never pushed. Events are telemetry and may be dropped
|
|
8334
|
+
* (D8/D11), and a dropped progress event is indistinguishable from a stalled
|
|
8335
|
+
* mover — which is the exact failure this is meant to end. The coordinator's
|
|
8336
|
+
* `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
|
|
8337
|
+
* read `state`; folding the counters costs no extra read and makes the durable
|
|
8338
|
+
* record say afterwards how far a move actually got.
|
|
8339
|
+
*
|
|
8340
|
+
* `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
|
|
8341
|
+
* a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
|
|
8342
|
+
* cannot say M, and a 0 there would render as "100 % done".
|
|
8343
|
+
*/
|
|
8344
|
+
var StorageMigrationMoveProgressSchema = object({
|
|
8345
|
+
filesMoved: number().int().nonnegative(),
|
|
8346
|
+
/** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
|
|
8347
|
+
filesTotal: number().int().nonnegative().nullable(),
|
|
8348
|
+
bytesMoved: number().int().nonnegative(),
|
|
8349
|
+
/** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
|
|
8350
|
+
* a lane that cannot reconcile. A migration that silently rewrote durable
|
|
8351
|
+
* rows would be the same failure as one that silently skipped them. */
|
|
8352
|
+
rowsReconciled: number().int().nonnegative().optional(),
|
|
8353
|
+
/** The MOVER's start, not the migration's: a drain restarted after an addon
|
|
8354
|
+
* crash gets a new mover, and a rate computed from the migration's start
|
|
8355
|
+
* would silently average in the time nothing was running. */
|
|
8356
|
+
startedAt: number(),
|
|
8357
|
+
/** When the coordinator last read these numbers. Paired with `startedAt` it
|
|
8358
|
+
* is the only honest rate: both clocks are the hub's, so a UI never has to
|
|
8359
|
+
* subtract its own. */
|
|
8360
|
+
observedAt: number()
|
|
8361
|
+
});
|
|
8281
8362
|
var StorageMigrationMoveSchema = object({
|
|
8282
8363
|
storageClass: StorageMigrationClassSchema,
|
|
8283
8364
|
fromLocationId: string(),
|
|
8284
8365
|
toLocationId: string(),
|
|
8285
8366
|
moverJobId: string().nullable(),
|
|
8286
8367
|
state: RelocateJobStateSchema.nullable(),
|
|
8287
|
-
error: string().nullable()
|
|
8368
|
+
error: string().nullable(),
|
|
8369
|
+
/** Last observed mover counters; `null` until the mover has been polled once. */
|
|
8370
|
+
progress: StorageMigrationMoveProgressSchema.nullable()
|
|
8288
8371
|
});
|
|
8289
8372
|
var StorageMigrationJobSchema = object({
|
|
8290
8373
|
jobId: string(),
|
|
@@ -8330,6 +8413,98 @@ var StorageMigrationPlanSchema = object({
|
|
|
8330
8413
|
findings: array(StorageMigrationFindingSchema)
|
|
8331
8414
|
});
|
|
8332
8415
|
/**
|
|
8416
|
+
* A mover as it exists RIGHT NOW, whether or not a migration job owns it.
|
|
8417
|
+
*
|
|
8418
|
+
* The coordinator's job record is the state of record for a migration, and its
|
|
8419
|
+
* moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
|
|
8420
|
+
* standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
|
|
8421
|
+
* are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
|
|
8422
|
+
* way because no supported UI path existed. A mover armed like that has no job
|
|
8423
|
+
* to fold progress into, so it has to be readable on its own or it is invisible.
|
|
8424
|
+
*
|
|
8425
|
+
* `migrationJobId` is what tells the two apart: `null` means nothing here
|
|
8426
|
+
* orchestrated it.
|
|
8427
|
+
*/
|
|
8428
|
+
var StorageMigrationMoverSchema = object({
|
|
8429
|
+
lane: _enum(["footage", "media"]),
|
|
8430
|
+
job: RelocateJobSchema,
|
|
8431
|
+
/** The coordinator job that armed this mover, or `null` for a mover armed
|
|
8432
|
+
* directly against the owning addon. */
|
|
8433
|
+
migrationJobId: string().nullable(),
|
|
8434
|
+
/** When the hub read these counters. Stamped here so a rate is `bytesMoved`
|
|
8435
|
+
* over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
|
|
8436
|
+
* a browser subtracting its own `Date.now()` from a server `startedAt` is a
|
|
8437
|
+
* rate made of two different clocks. */
|
|
8438
|
+
observedAt: number()
|
|
8439
|
+
});
|
|
8440
|
+
/**
|
|
8441
|
+
* What a SOURCE still holds for one storage class — the number that makes a
|
|
8442
|
+
* "drain remaining" action honest rather than hopeful.
|
|
8443
|
+
*
|
|
8444
|
+
* It comes from the archive (`SegmentHourLedger.census` for footage, the media
|
|
8445
|
+
* engine's own selection count for media), never from the resident index: a
|
|
8446
|
+
* drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
|
|
8447
|
+
* never been told about (D295).
|
|
8448
|
+
*
|
|
8449
|
+
* `items`/`bytes` are `null` for "the archive could not be asked", which is
|
|
8450
|
+
* deliberately NOT zero: a drain is still offered for an unknown residue,
|
|
8451
|
+
* because refusing on an unanswerable read would hide exactly the case an
|
|
8452
|
+
* operator needs to act on.
|
|
8453
|
+
*/
|
|
8454
|
+
var StorageMigrationResidueSchema = object({
|
|
8455
|
+
storageClass: StorageMigrationClassSchema,
|
|
8456
|
+
/** The location still holding the data. `'*'` for the media lane, whose rows
|
|
8457
|
+
* move from wherever they are rather than from one named source. */
|
|
8458
|
+
fromLocationId: string(),
|
|
8459
|
+
/** Where a drain would move it — the class's CURRENT default. */
|
|
8460
|
+
toLocationId: string(),
|
|
8461
|
+
/** Segments (footage lane) or rows (media lane) still on the source. */
|
|
8462
|
+
items: number().int().nonnegative().nullable(),
|
|
8463
|
+
/** Bytes on the source; `null` when the lane counts rows rather than bytes. */
|
|
8464
|
+
bytes: number().int().nonnegative().nullable()
|
|
8465
|
+
});
|
|
8466
|
+
/**
|
|
8467
|
+
* Run the DRAIN half and nothing else.
|
|
8468
|
+
*
|
|
8469
|
+
* A migration that reached `done` has already repointed, so `start` correctly
|
|
8470
|
+
* refuses its destination ("already the default") — there is nothing left to
|
|
8471
|
+
* repoint. But the drain can fail, be cancelled, be interrupted by a restart,
|
|
8472
|
+
* or finish against a work list that was a tenth of the archive (D295), and
|
|
8473
|
+
* before this there was no supported way to run only that half: the only way
|
|
8474
|
+
* through was calling `recording.relocateFootage` by hand over admin tRPC.
|
|
8475
|
+
*
|
|
8476
|
+
* `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
|
|
8477
|
+
* refusal meaningful: the two verbs are disjoint, so nothing here can silently
|
|
8478
|
+
* re-repoint a class that is already migrated.
|
|
8479
|
+
*/
|
|
8480
|
+
var StorageMigrationDrainInputSchema = object({
|
|
8481
|
+
/** The classes to drain. Each must appear in `storageMigration.residue`, so
|
|
8482
|
+
* a class whose source is already empty is refused rather than started. */
|
|
8483
|
+
classes: array(StorageMigrationClassSchema).min(1),
|
|
8484
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
8485
|
+
});
|
|
8486
|
+
/** What a footage source still holds, asked of the durable hour ledger. */
|
|
8487
|
+
var RelocateResidueInputSchema = object({
|
|
8488
|
+
fromLocationId: string().min(1),
|
|
8489
|
+
/** Narrow to one logical class; omit for every profile on the location. */
|
|
8490
|
+
footageClass: RelocateFootageClassSchema.optional()
|
|
8491
|
+
});
|
|
8492
|
+
/** `null` = the archive could not answer (no ledger on this node, or the
|
|
8493
|
+
* aggregate failed). Never conflated with an empty source. */
|
|
8494
|
+
var RelocateResidueSchema = object({
|
|
8495
|
+
segments: number().int().nonnegative(),
|
|
8496
|
+
bytes: number().int().nonnegative()
|
|
8497
|
+
}).nullable();
|
|
8498
|
+
/** How many rows a media pass would still act on against a given target — the
|
|
8499
|
+
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8500
|
+
* never disagree. `null` = the count could not be taken. */
|
|
8501
|
+
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8502
|
+
var RelocatableMediaCountInputSchema = object({
|
|
8503
|
+
toLocationId: string().min(1),
|
|
8504
|
+
/** Omitted = `move`. */
|
|
8505
|
+
mode: MediaRelocateModeSchema.optional()
|
|
8506
|
+
});
|
|
8507
|
+
/**
|
|
8333
8508
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8334
8509
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8335
8510
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8433,6 +8608,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
|
|
|
8433
8608
|
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
8434
8609
|
* at kernel aggregation time, not here).
|
|
8435
8610
|
*/
|
|
8611
|
+
/**
|
|
8612
|
+
* `StorageAccess` — how the service that DECLARED a storage-location kind
|
|
8613
|
+
* actually reaches the bytes. It is the constraint that decides which
|
|
8614
|
+
* `storage-provider`s may back a location of that kind.
|
|
8615
|
+
*
|
|
8616
|
+
* - `'local-path'` — the service asks `storage.resolve` for a path string and
|
|
8617
|
+
* then does its own `node:fs` I/O on it (the recorder's segment writer, the
|
|
8618
|
+
* post-analysis media roots). Only a provider that serves a genuine local
|
|
8619
|
+
* filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
|
|
8620
|
+
* remote provider's `resolve` returns a path on the REMOTE host, and
|
|
8621
|
+
* `fs.readdir` of it on this node either fails or — far worse — succeeds
|
|
8622
|
+
* against a same-named local directory that is something else entirely.
|
|
8623
|
+
*
|
|
8624
|
+
* - `'cap-mediated'` — every byte travels through the `storage` cap
|
|
8625
|
+
* (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
|
|
8626
|
+
* service never sees a path, so any provider can back it. `backups` is the
|
|
8627
|
+
* one kind that qualifies today.
|
|
8628
|
+
*
|
|
8629
|
+
* Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
|
|
8630
|
+
* an EMERGENT property of how the recorder happened to be written. Nothing
|
|
8631
|
+
* refused the configuration; the first write simply went somewhere wrong, and
|
|
8632
|
+
* a recording write that goes wrong surfaces as a silent black window rather
|
|
8633
|
+
* than an error (the read path does not `stat`). This turns that accident into
|
|
8634
|
+
* a declared, enforced, testable refusal.
|
|
8635
|
+
*/
|
|
8636
|
+
var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
|
|
8436
8637
|
var StorageLocationDeclarationSchema = object({
|
|
8437
8638
|
/**
|
|
8438
8639
|
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
@@ -8452,6 +8653,19 @@ var StorageLocationDeclarationSchema = object({
|
|
|
8452
8653
|
*/
|
|
8453
8654
|
cardinality: _enum(["single", "multi"]),
|
|
8454
8655
|
/**
|
|
8656
|
+
* HOW the declaring service reaches the bytes — and therefore WHICH
|
|
8657
|
+
* providers may back a location of this kind. See {@link StorageAccessSchema}
|
|
8658
|
+
* and {@link STORAGE_ACCESS_FALLBACK}.
|
|
8659
|
+
*
|
|
8660
|
+
* Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
|
|
8661
|
+
* can only over-restrict (refuse a remote provider for a kind that might
|
|
8662
|
+
* have coped) and never under-restrict. Declaring `'cap-mediated'` is the
|
|
8663
|
+
* permissive direction and is therefore never inferred — a repo guard
|
|
8664
|
+
* (`scripts/check-storage-access-declarations.ts`) refuses to let it be
|
|
8665
|
+
* reached by omission.
|
|
8666
|
+
*/
|
|
8667
|
+
access: StorageAccessSchema.optional(),
|
|
8668
|
+
/**
|
|
8455
8669
|
* When set, the default instance for this location inherits its resolved
|
|
8456
8670
|
* root from the named location's default instance. Useful for derivative
|
|
8457
8671
|
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
@@ -18036,8 +18250,10 @@ var TrackSchema = object({
|
|
|
18036
18250
|
lastSeen: number(),
|
|
18037
18251
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
18038
18252
|
positions: array(TrackPositionSchema).readonly(),
|
|
18039
|
-
/** Periodic snapshots at snapshotIntervalMs cadence
|
|
18040
|
-
*
|
|
18253
|
+
/** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
|
|
18254
|
+
* only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
|
|
18255
|
+
* the retired `saveThumbnails` used to gate this and the rolling
|
|
18256
|
+
* `lastFrame` together). Empty is the healthy default, not a capture gap. */
|
|
18041
18257
|
snapshots: array(TrackSnapshotSchema).readonly(),
|
|
18042
18258
|
/** Deduplicated zones the track has entered at least once. Zone IDS. */
|
|
18043
18259
|
zonesVisited: array(string()).readonly(),
|
|
@@ -18897,7 +19113,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18897
19113
|
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
18898
19114
|
kind: "mutation",
|
|
18899
19115
|
auth: "admin"
|
|
18900
|
-
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(
|
|
19116
|
+
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
|
|
19117
|
+
kind: "query",
|
|
19118
|
+
auth: "admin"
|
|
19119
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
18901
19120
|
kind: "query",
|
|
18902
19121
|
auth: "admin"
|
|
18903
19122
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
@@ -20856,6 +21075,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
20856
21075
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
20857
21076
|
kind: "mutation",
|
|
20858
21077
|
auth: "admin"
|
|
21078
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
21079
|
+
kind: "mutation",
|
|
21080
|
+
auth: "admin"
|
|
20859
21081
|
});
|
|
20860
21082
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
20861
21083
|
providerId: string().min(1),
|
|
@@ -21289,12 +21511,38 @@ response: record(string(), unknown()) }), object({
|
|
|
21289
21511
|
*
|
|
21290
21512
|
* ## Why this is a capability and not a helper
|
|
21291
21513
|
*
|
|
21292
|
-
*
|
|
21293
|
-
*
|
|
21294
|
-
*
|
|
21295
|
-
*
|
|
21296
|
-
*
|
|
21297
|
-
*
|
|
21514
|
+
* This capability was introduced with the claim that SIX stores in
|
|
21515
|
+
* `addon-post-analysis` held vectors in a `JSON` settings-store column — object
|
|
21516
|
+
* CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
|
|
21517
|
+
* claim was never true, and leaving it here made five stores look like pending
|
|
21518
|
+
* work when three of them have no vector at all. Counted column by column on
|
|
21519
|
+
* 2026-08-30, exactly THREE ever held one:
|
|
21520
|
+
*
|
|
21521
|
+
* - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
|
|
21522
|
+
* - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
|
|
21523
|
+
* - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
|
|
21524
|
+
* face, migrated 2026-08-30 into its OWN index (see below).
|
|
21525
|
+
*
|
|
21526
|
+
* `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
|
|
21527
|
+
* and `identities` store a name; the event store stores no derivative vector.
|
|
21528
|
+
* They are not migration candidates and never were.
|
|
21529
|
+
*
|
|
21530
|
+
* Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
|
|
21531
|
+
* as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
|
|
21532
|
+
* rows before ranking anything.
|
|
21533
|
+
*
|
|
21534
|
+
* ## One index per COMPARISON, never per encoder
|
|
21535
|
+
*
|
|
21536
|
+
* `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
|
|
21537
|
+
* model, and they still get two indexes. An index is a set of things that are
|
|
21538
|
+
* ranked against each other and that live and die together, and these two are
|
|
21539
|
+
* neither: a `faces` row is TRACK-OWNED and cascades away with its track under
|
|
21540
|
+
* a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
|
|
21541
|
+
* forever and is the gallery every recognition ranks against. One index would
|
|
21542
|
+
* mean every gallery load and every reconcile carried a filter whose failure
|
|
21543
|
+
* mode is either ranking a candidate against itself or reclaiming an enrolled
|
|
21544
|
+
* person's only sample. The dimension they share is not a reason to share an
|
|
21545
|
+
* index; the question they answer is, and it differs.
|
|
21298
21546
|
*
|
|
21299
21547
|
* The fix is not a faster loop, it is a different backend — and the backend
|
|
21300
21548
|
* should be replaceable without touching six callers. So: a singleton
|
|
@@ -21399,7 +21647,20 @@ var VectorQueryResultSchema = object({
|
|
|
21399
21647
|
*/
|
|
21400
21648
|
scanned: number(),
|
|
21401
21649
|
/** True when the backend could not consider every row that passed the filter. */
|
|
21402
|
-
truncated: boolean()
|
|
21650
|
+
truncated: boolean(),
|
|
21651
|
+
/**
|
|
21652
|
+
* The `topK` the backend actually ran with.
|
|
21653
|
+
*
|
|
21654
|
+
* Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
|
|
21655
|
+
* past it used to learn nothing but a boolean, from a WARN in the provider's
|
|
21656
|
+
* own log rather than in its answer. That is how an audit asking for 20,000
|
|
21657
|
+
* consumed 4,096 and reported `examined: 4096` as if it had walked the index,
|
|
21658
|
+
* for weeks. `truncated` says THAT the answer was short; this says BY HOW
|
|
21659
|
+
* MUCH, in the return value, where the caller cannot fail to see it.
|
|
21660
|
+
*
|
|
21661
|
+
* Equals the requested `topK` whenever nothing was lowered.
|
|
21662
|
+
*/
|
|
21663
|
+
effectiveTopK: number().int().positive()
|
|
21403
21664
|
});
|
|
21404
21665
|
var VectorDeleteInputSchema = object({
|
|
21405
21666
|
index: string(),
|
|
@@ -21428,6 +21689,68 @@ var VectorGetResultSchema = object({ items: array(object({
|
|
|
21428
21689
|
id: string(),
|
|
21429
21690
|
metadata: VectorMetadataSchema
|
|
21430
21691
|
})) });
|
|
21692
|
+
/**
|
|
21693
|
+
* Ids to read back WITH their vectors.
|
|
21694
|
+
*
|
|
21695
|
+
* The sibling of {@link VectorGetResultSchema}, and deliberately a separate
|
|
21696
|
+
* method rather than a flag on it: `getByIds` promises no vectors and its one
|
|
21697
|
+
* caller depends on that promise. This one promises the opposite.
|
|
21698
|
+
*
|
|
21699
|
+
* It exists because a store cannot put its vectors here otherwise. An ArcFace
|
|
21700
|
+
* gallery is ranked IN PROCESS, per detection, against every enrolled sample —
|
|
21701
|
+
* a per-face cross-process KNN would be a network round trip inside the
|
|
21702
|
+
* recognition loop. So the gallery is loaded once and held in RAM, and loading
|
|
21703
|
+
* it requires the index to hand the floats back. Without this method the only
|
|
21704
|
+
* way to keep a readable vector is a JSON column, which is the thing this
|
|
21705
|
+
* capability exists to delete.
|
|
21706
|
+
*
|
|
21707
|
+
* BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
|
|
21708
|
+
* index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
|
|
21709
|
+
*/
|
|
21710
|
+
var VectorFetchInputSchema = object({
|
|
21711
|
+
index: string(),
|
|
21712
|
+
ids: array(string())
|
|
21713
|
+
});
|
|
21714
|
+
var VectorFetchResultSchema = object({ items: array(object({
|
|
21715
|
+
id: string(),
|
|
21716
|
+
/** base64 Float32LE — the same wire form `upsert` accepts. */
|
|
21717
|
+
vector: string(),
|
|
21718
|
+
metadata: VectorMetadataSchema
|
|
21719
|
+
})) });
|
|
21720
|
+
/**
|
|
21721
|
+
* ENUMERATE an index: one page of rows in a stable order, no ranking.
|
|
21722
|
+
*
|
|
21723
|
+
* A reconcile does not want the nearest rows, it wants ALL of them, and asking
|
|
21724
|
+
* a KNN for "all" is the wrong question twice over. It hits the backend's `k`
|
|
21725
|
+
* ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
|
|
21726
|
+
* probe vector it does not have, so the audit passed a ZERO vector whose cosine
|
|
21727
|
+
* distance to every row is degenerate. `examined: 4096` then read as "we
|
|
21728
|
+
* looked" for as long as anyone cared to read it.
|
|
21729
|
+
*
|
|
21730
|
+
* This is the primitive that question actually needs: a bounded page, ordered
|
|
21731
|
+
* by the backend's own row order, costing no distance computation at all.
|
|
21732
|
+
* Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
|
|
21733
|
+
* the full-table read this capability was built to stop.
|
|
21734
|
+
*/
|
|
21735
|
+
var VectorScanInputSchema = object({
|
|
21736
|
+
index: string(),
|
|
21737
|
+
/** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
|
|
21738
|
+
cursor: number().int().nonnegative().default(0),
|
|
21739
|
+
limit: number().int().positive()
|
|
21740
|
+
});
|
|
21741
|
+
var VectorScanResultSchema = object({
|
|
21742
|
+
items: array(object({
|
|
21743
|
+
id: string(),
|
|
21744
|
+
metadata: VectorMetadataSchema
|
|
21745
|
+
})),
|
|
21746
|
+
/**
|
|
21747
|
+
* Where the next page starts, or `null` when the walk reached the end.
|
|
21748
|
+
*
|
|
21749
|
+
* `null` is the ONLY end-of-index signal. A caller must not infer the end
|
|
21750
|
+
* from a short page: a backend is free to return fewer rows than asked.
|
|
21751
|
+
*/
|
|
21752
|
+
nextCursor: number().int().nonnegative().nullable()
|
|
21753
|
+
});
|
|
21431
21754
|
var VectorStatsInputSchema = object({ index: string() });
|
|
21432
21755
|
var VectorStatsResultSchema = object({
|
|
21433
21756
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -21446,7 +21769,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
|
|
|
21446
21769
|
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
21447
21770
|
kind: "mutation",
|
|
21448
21771
|
auth: "admin"
|
|
21449
|
-
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21772
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21450
21773
|
kind: "mutation",
|
|
21451
21774
|
auth: "admin"
|
|
21452
21775
|
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
@@ -26350,6 +26673,9 @@ method(object({
|
|
|
26350
26673
|
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
26351
26674
|
kind: "query",
|
|
26352
26675
|
auth: "admin"
|
|
26676
|
+
}), method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
26677
|
+
kind: "query",
|
|
26678
|
+
auth: "admin"
|
|
26353
26679
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
26354
26680
|
kind: "mutation",
|
|
26355
26681
|
auth: "admin"
|
|
@@ -31315,6 +31641,12 @@ Object.freeze({
|
|
|
31315
31641
|
addonId: null,
|
|
31316
31642
|
access: "create"
|
|
31317
31643
|
},
|
|
31644
|
+
"pipelineAnalytics.countRelocatableMedia": {
|
|
31645
|
+
capName: "pipeline-analytics",
|
|
31646
|
+
capScope: "device",
|
|
31647
|
+
addonId: null,
|
|
31648
|
+
access: "view"
|
|
31649
|
+
},
|
|
31318
31650
|
"pipelineAnalytics.countUnstampedEventMedia": {
|
|
31319
31651
|
capName: "pipeline-analytics",
|
|
31320
31652
|
capScope: "device",
|
|
@@ -32479,6 +32811,12 @@ Object.freeze({
|
|
|
32479
32811
|
addonId: null,
|
|
32480
32812
|
access: "view"
|
|
32481
32813
|
},
|
|
32814
|
+
"recording.getRelocateResidue": {
|
|
32815
|
+
capName: "recording",
|
|
32816
|
+
capScope: "system",
|
|
32817
|
+
addonId: null,
|
|
32818
|
+
access: "view"
|
|
32819
|
+
},
|
|
32482
32820
|
"recording.getStorageMigrationMoveStatus": {
|
|
32483
32821
|
capName: "recording",
|
|
32484
32822
|
capScope: "system",
|
|
@@ -33025,12 +33363,30 @@ Object.freeze({
|
|
|
33025
33363
|
addonId: null,
|
|
33026
33364
|
access: "create"
|
|
33027
33365
|
},
|
|
33366
|
+
"storageMigration.drain": {
|
|
33367
|
+
capName: "storage-migration",
|
|
33368
|
+
capScope: "system",
|
|
33369
|
+
addonId: null,
|
|
33370
|
+
access: "create"
|
|
33371
|
+
},
|
|
33372
|
+
"storageMigration.movers": {
|
|
33373
|
+
capName: "storage-migration",
|
|
33374
|
+
capScope: "system",
|
|
33375
|
+
addonId: null,
|
|
33376
|
+
access: "view"
|
|
33377
|
+
},
|
|
33028
33378
|
"storageMigration.plan": {
|
|
33029
33379
|
capName: "storage-migration",
|
|
33030
33380
|
capScope: "system",
|
|
33031
33381
|
addonId: null,
|
|
33032
33382
|
access: "view"
|
|
33033
33383
|
},
|
|
33384
|
+
"storageMigration.residue": {
|
|
33385
|
+
capName: "storage-migration",
|
|
33386
|
+
capScope: "system",
|
|
33387
|
+
addonId: null,
|
|
33388
|
+
access: "view"
|
|
33389
|
+
},
|
|
33034
33390
|
"storageMigration.start": {
|
|
33035
33391
|
capName: "storage-migration",
|
|
33036
33392
|
capScope: "system",
|
|
@@ -33865,6 +34221,12 @@ Object.freeze({
|
|
|
33865
34221
|
addonId: null,
|
|
33866
34222
|
access: "delete"
|
|
33867
34223
|
},
|
|
34224
|
+
"vectorStore.fetchByIds": {
|
|
34225
|
+
capName: "vector-store",
|
|
34226
|
+
capScope: "system",
|
|
34227
|
+
addonId: null,
|
|
34228
|
+
access: "view"
|
|
34229
|
+
},
|
|
33868
34230
|
"vectorStore.getByIds": {
|
|
33869
34231
|
capName: "vector-store",
|
|
33870
34232
|
capScope: "system",
|
|
@@ -33877,6 +34239,12 @@ Object.freeze({
|
|
|
33877
34239
|
addonId: null,
|
|
33878
34240
|
access: "view"
|
|
33879
34241
|
},
|
|
34242
|
+
"vectorStore.scan": {
|
|
34243
|
+
capName: "vector-store",
|
|
34244
|
+
capScope: "system",
|
|
34245
|
+
addonId: null,
|
|
34246
|
+
access: "view"
|
|
34247
|
+
},
|
|
33880
34248
|
"vectorStore.stats": {
|
|
33881
34249
|
capName: "vector-store",
|
|
33882
34250
|
capScope: "system",
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-BVUxSu6R.js");
|
|
7
7
|
//#region src/magic-link/auth-magic-link.addon.ts
|
|
8
8
|
/**
|
|
9
9
|
* Magic-link authentication addon.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-
|
|
1
|
+
import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-Bw-A_piq.mjs";
|
|
2
2
|
//#region src/magic-link/auth-magic-link.addon.ts
|
|
3
3
|
/**
|
|
4
4
|
* Magic-link authentication addon.
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-BVUxSu6R.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
9
9
|
//#region node_modules/jose/dist/webapi/lib/buffer_utils.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-
|
|
1
|
+
import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-Bw-A_piq.mjs";
|
|
2
2
|
import * as crypto$1 from "node:crypto";
|
|
3
3
|
//#region node_modules/jose/dist/webapi/lib/buffer_utils.js
|
|
4
4
|
var encoder = new TextEncoder();
|
package/dist/webauthn/_stub.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare__react__loadShare__.js-BIIa6vDX.mjs";
|
|
2
2
|
import { n as r, t as i } from "./_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CQ-aEQ9b.mjs";
|
|
3
|
-
import { t as a } from "./_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
3
|
+
import { t as a } from "./_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Cyq-cpgK.mjs";
|
|
4
4
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-BL2etuqg.mjs";
|
|
5
5
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6
6
|
var l = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), u = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), d = (e) => {
|
|
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
|
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.49",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_auth_webauthn_widgets",
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.127",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_auth_webauthn_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.90",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_auth_webauthn_widgets",
|