@camstack/addon-provider-hikvision 1.2.34 → 1.2.36
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/addon.js +431 -111
- package/dist/addon.mjs +431 -111
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -5809,6 +5809,13 @@ var BaseAddon = class {
|
|
|
5809
5809
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5810
5810
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5811
5811
|
_registeredCapNames = [];
|
|
5812
|
+
/**
|
|
5813
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5814
|
+
* defaults look like stored config when the store is down — a forked
|
|
5815
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5816
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5817
|
+
*/
|
|
5818
|
+
settingsStoreReady = false;
|
|
5812
5819
|
/** Default config values. Provided via constructor. */
|
|
5813
5820
|
defaults;
|
|
5814
5821
|
constructor(defaults) {
|
|
@@ -6209,7 +6216,9 @@ var BaseAddon = class {
|
|
|
6209
6216
|
];
|
|
6210
6217
|
let lastErr;
|
|
6211
6218
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6212
|
-
|
|
6219
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6220
|
+
this.settingsStoreReady = true;
|
|
6221
|
+
return stored;
|
|
6213
6222
|
} catch (err) {
|
|
6214
6223
|
lastErr = err;
|
|
6215
6224
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6217,6 +6226,7 @@ var BaseAddon = class {
|
|
|
6217
6226
|
if (attempt === delaysMs.length) break;
|
|
6218
6227
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6219
6228
|
}
|
|
6229
|
+
this.settingsStoreReady = false;
|
|
6220
6230
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6221
6231
|
return {};
|
|
6222
6232
|
}
|
|
@@ -6628,7 +6638,7 @@ function method(input, output, options) {
|
|
|
6628
6638
|
input,
|
|
6629
6639
|
output,
|
|
6630
6640
|
kind: options?.kind ?? "query",
|
|
6631
|
-
auth: options
|
|
6641
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6632
6642
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6633
6643
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6634
6644
|
timeoutMs: options?.timeoutMs
|
|
@@ -6652,7 +6662,7 @@ function event(data) {
|
|
|
6652
6662
|
}
|
|
6653
6663
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6654
6664
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6655
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6665
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6656
6666
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6657
6667
|
DeviceType["Camera"] = "camera";
|
|
6658
6668
|
DeviceType["Hub"] = "hub";
|
|
@@ -6973,7 +6983,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6973
6983
|
}({});
|
|
6974
6984
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6975
6985
|
var VersionOutputSchema = object({ version: string() });
|
|
6976
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6986
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6977
6987
|
/**
|
|
6978
6988
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6979
6989
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7587,24 +7597,6 @@ var RecordingRetentionSchema = object({
|
|
|
7587
7597
|
maxSizeGb: number().min(0).optional()
|
|
7588
7598
|
});
|
|
7589
7599
|
/**
|
|
7590
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7591
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7592
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7593
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7594
|
-
*
|
|
7595
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7596
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7597
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7598
|
-
* written with.
|
|
7599
|
-
*/
|
|
7600
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7601
|
-
"minimal",
|
|
7602
|
-
"low",
|
|
7603
|
-
"standard",
|
|
7604
|
-
"high",
|
|
7605
|
-
"max"
|
|
7606
|
-
]);
|
|
7607
|
-
/**
|
|
7608
7600
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7609
7601
|
*
|
|
7610
7602
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7612,7 +7604,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7612
7604
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7613
7605
|
*
|
|
7614
7606
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7615
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7607
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7608
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7609
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7610
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7611
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7616
7612
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7617
7613
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7618
7614
|
*/
|
|
@@ -7635,14 +7631,7 @@ var RecordingConfigSchema = object({
|
|
|
7635
7631
|
* "off" is the absence of a covering band, never a band value.
|
|
7636
7632
|
*/
|
|
7637
7633
|
bands: array(RecordingBandSchema).default([]),
|
|
7638
|
-
retention: RecordingRetentionSchema.optional()
|
|
7639
|
-
/**
|
|
7640
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7641
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7642
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7643
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7644
|
-
*/
|
|
7645
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7634
|
+
retention: RecordingRetentionSchema.optional()
|
|
7646
7635
|
}).strict();
|
|
7647
7636
|
/**
|
|
7648
7637
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7718,10 +7707,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7718
7707
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7719
7708
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7720
7709
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7721
|
-
var
|
|
7710
|
+
var RelocateMediaInputSchema = object({
|
|
7722
7711
|
toLocationId: string(),
|
|
7723
7712
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7724
|
-
})
|
|
7713
|
+
});
|
|
7714
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7725
7715
|
/** The independently selectable logical storage classes. `recordings`
|
|
7726
7716
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7727
7717
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8191,7 +8181,26 @@ var LabelDefinitionSchema = object({
|
|
|
8191
8181
|
description: string().optional(),
|
|
8192
8182
|
icon: string().optional()
|
|
8193
8183
|
});
|
|
8194
|
-
|
|
8184
|
+
/**
|
|
8185
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8186
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8187
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8188
|
+
* detection pipeline executor actually routes.
|
|
8189
|
+
*
|
|
8190
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8191
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8192
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8193
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8194
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8195
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8196
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8197
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8198
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8199
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8200
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8201
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8202
|
+
*/
|
|
8203
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8195
8204
|
mapping: record(string(), _enum([
|
|
8196
8205
|
"person",
|
|
8197
8206
|
"vehicle",
|
|
@@ -8283,6 +8292,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8283
8292
|
*/
|
|
8284
8293
|
resolution: number().int().positive().optional()
|
|
8285
8294
|
});
|
|
8295
|
+
var ModelProviderIdSchema = _enum([
|
|
8296
|
+
"camstack",
|
|
8297
|
+
"frigate",
|
|
8298
|
+
"scrypted",
|
|
8299
|
+
"custom"
|
|
8300
|
+
]);
|
|
8286
8301
|
var ModelCatalogEntrySchema = object({
|
|
8287
8302
|
id: string(),
|
|
8288
8303
|
name: string(),
|
|
@@ -8380,11 +8395,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
8380
8395
|
*/
|
|
8381
8396
|
group: ModelVariantGroupSchema.optional(),
|
|
8382
8397
|
/**
|
|
8398
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8399
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8400
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8401
|
+
*/
|
|
8402
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8403
|
+
/**
|
|
8383
8404
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8384
8405
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8385
8406
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8386
8407
|
*/
|
|
8387
|
-
classMap:
|
|
8408
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8388
8409
|
});
|
|
8389
8410
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8390
8411
|
format: literal("openvino"),
|
|
@@ -8414,7 +8435,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8414
8435
|
"segmentation"
|
|
8415
8436
|
]),
|
|
8416
8437
|
faceAlignment: boolean().optional(),
|
|
8417
|
-
classMap:
|
|
8438
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8418
8439
|
});
|
|
8419
8440
|
var ConvertResultSchema = object({
|
|
8420
8441
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9277,7 +9298,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9277
9298
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9278
9299
|
sectionLabel: string().optional()
|
|
9279
9300
|
});
|
|
9280
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9301
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9281
9302
|
var AddonHttpRouteSchema = object({
|
|
9282
9303
|
method: _enum([
|
|
9283
9304
|
"GET",
|
|
@@ -9512,7 +9533,7 @@ var WidgetMetadataSchema = object({
|
|
|
9512
9533
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9513
9534
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9514
9535
|
});
|
|
9515
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9536
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9516
9537
|
/**
|
|
9517
9538
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9518
9539
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -11148,7 +11169,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
11148
11169
|
stepId: string(),
|
|
11149
11170
|
entry: ModelCatalogEntrySchema
|
|
11150
11171
|
});
|
|
11151
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
11172
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
11152
11173
|
/**
|
|
11153
11174
|
* Query filter for settings-store collections.
|
|
11154
11175
|
*/
|
|
@@ -11235,7 +11256,8 @@ method(object({
|
|
|
11235
11256
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11236
11257
|
namespace: string().optional(),
|
|
11237
11258
|
collection: string(),
|
|
11238
|
-
filter: QueryFilterSchema.optional()
|
|
11259
|
+
filter: QueryFilterSchema.optional(),
|
|
11260
|
+
columns: array(string()).readonly().optional()
|
|
11239
11261
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
11240
11262
|
namespace: string().optional(),
|
|
11241
11263
|
collection: string(),
|
|
@@ -11298,46 +11320,87 @@ var EngineInfoSchema = object({
|
|
|
11298
11320
|
kind: _enum(["relational", "vector"]),
|
|
11299
11321
|
displayName: string()
|
|
11300
11322
|
});
|
|
11301
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11323
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11302
11324
|
namespace: string().optional(),
|
|
11303
11325
|
collection: string(),
|
|
11304
11326
|
key: string()
|
|
11305
|
-
}), unknown()), method(object({
|
|
11327
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11306
11328
|
namespace: string().optional(),
|
|
11307
11329
|
collection: string(),
|
|
11308
11330
|
key: string(),
|
|
11309
11331
|
value: unknown()
|
|
11310
|
-
}), _void(), {
|
|
11332
|
+
}), _void(), {
|
|
11333
|
+
kind: "mutation",
|
|
11334
|
+
auth: "admin"
|
|
11335
|
+
}), method(object({
|
|
11311
11336
|
namespace: string().optional(),
|
|
11312
11337
|
collection: string(),
|
|
11313
|
-
filter: QueryFilterSchema.optional()
|
|
11314
|
-
|
|
11338
|
+
filter: QueryFilterSchema.optional(),
|
|
11339
|
+
/**
|
|
11340
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11341
|
+
*
|
|
11342
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11343
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11344
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11345
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11346
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11347
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11348
|
+
*
|
|
11349
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11350
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11351
|
+
* interface the engine destructures from. The field existed on both
|
|
11352
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11353
|
+
* registered provider against `InferProvider<cap>` —
|
|
11354
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11355
|
+
*
|
|
11356
|
+
* It is declared here anyway, and must stay in step with
|
|
11357
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11358
|
+
* to be able to see that this call carries a projection.
|
|
11359
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11360
|
+
*/
|
|
11361
|
+
columns: array(string()).readonly().optional()
|
|
11362
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11315
11363
|
namespace: string().optional(),
|
|
11316
11364
|
collection: string(),
|
|
11317
11365
|
record: SettingsRecordSchema
|
|
11318
|
-
}), _void(), {
|
|
11366
|
+
}), _void(), {
|
|
11367
|
+
kind: "mutation",
|
|
11368
|
+
auth: "admin"
|
|
11369
|
+
}), method(object({
|
|
11319
11370
|
namespace: string().optional(),
|
|
11320
11371
|
collection: string(),
|
|
11321
11372
|
id: string(),
|
|
11322
11373
|
data: record(string(), unknown())
|
|
11323
|
-
}), _void(), {
|
|
11374
|
+
}), _void(), {
|
|
11375
|
+
kind: "mutation",
|
|
11376
|
+
auth: "admin"
|
|
11377
|
+
}), method(object({
|
|
11324
11378
|
namespace: string().optional(),
|
|
11325
11379
|
collection: string(),
|
|
11326
11380
|
key: string()
|
|
11327
|
-
}), _void(), {
|
|
11381
|
+
}), _void(), {
|
|
11382
|
+
kind: "mutation",
|
|
11383
|
+
auth: "admin"
|
|
11384
|
+
}), method(object({
|
|
11328
11385
|
namespace: string().optional(),
|
|
11329
11386
|
collection: string(),
|
|
11330
11387
|
filter: MutationFilterSchema
|
|
11331
|
-
}), object({ deleted: number().int() }), {
|
|
11388
|
+
}), object({ deleted: number().int() }), {
|
|
11389
|
+
kind: "mutation",
|
|
11390
|
+
auth: "admin"
|
|
11391
|
+
}), method(object({
|
|
11332
11392
|
namespace: string().optional(),
|
|
11333
11393
|
collection: string(),
|
|
11334
11394
|
filter: MutationFilterSchema,
|
|
11335
11395
|
data: record(string(), unknown())
|
|
11336
|
-
}), object({ updated: number().int() }), {
|
|
11396
|
+
}), object({ updated: number().int() }), {
|
|
11397
|
+
kind: "mutation",
|
|
11398
|
+
auth: "admin"
|
|
11399
|
+
}), method(object({
|
|
11337
11400
|
namespace: string().optional(),
|
|
11338
11401
|
collection: string(),
|
|
11339
11402
|
filter: QueryFilterSchema.optional()
|
|
11340
|
-
}), number()), method(object({
|
|
11403
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11341
11404
|
namespace: string().optional(),
|
|
11342
11405
|
collection: string(),
|
|
11343
11406
|
field: string(),
|
|
@@ -11347,15 +11410,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11347
11410
|
}), array(object({
|
|
11348
11411
|
bucket: number().int(),
|
|
11349
11412
|
count: number().int()
|
|
11350
|
-
})).readonly()), method(object({
|
|
11413
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11351
11414
|
namespace: string().optional(),
|
|
11352
11415
|
collection: string()
|
|
11353
|
-
}), boolean()), method(object({
|
|
11416
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11354
11417
|
namespace: string().optional(),
|
|
11355
11418
|
collection: string(),
|
|
11356
11419
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11357
11420
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11358
|
-
}), _void(), {
|
|
11421
|
+
}), _void(), {
|
|
11422
|
+
kind: "mutation",
|
|
11423
|
+
auth: "admin"
|
|
11424
|
+
});
|
|
11359
11425
|
/**
|
|
11360
11426
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11361
11427
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -12183,6 +12249,27 @@ var LinkedDeviceSchema = object({
|
|
|
12183
12249
|
features: array(string()),
|
|
12184
12250
|
producesTrackedEvents: boolean().optional()
|
|
12185
12251
|
});
|
|
12252
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12253
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12254
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12255
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12256
|
+
deviceId: number(),
|
|
12257
|
+
mode: LinkedDevicesModeSchema,
|
|
12258
|
+
devices: array(LinkedDeviceSchema)
|
|
12259
|
+
});
|
|
12260
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12261
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12262
|
+
* object literal is exactly how the three drift apart. */
|
|
12263
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12264
|
+
deviceId: number(),
|
|
12265
|
+
entries: array(object({
|
|
12266
|
+
capName: string(),
|
|
12267
|
+
kind: _enum(["native", "wrapped"]),
|
|
12268
|
+
providerAddonId: string(),
|
|
12269
|
+
providerNodeId: string(),
|
|
12270
|
+
nativeAddonId: string()
|
|
12271
|
+
}))
|
|
12272
|
+
});
|
|
12186
12273
|
var SavedDeviceRowSchema = object({
|
|
12187
12274
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12188
12275
|
id: number(),
|
|
@@ -12408,11 +12495,25 @@ method(object({
|
|
|
12408
12495
|
projection: _enum(["full", "slim"]).optional(),
|
|
12409
12496
|
/** Return only camera devices. Filtering server-side instead of
|
|
12410
12497
|
* shipping 293 rows to find 12. */
|
|
12411
|
-
isCamera: boolean().optional()
|
|
12498
|
+
isCamera: boolean().optional(),
|
|
12499
|
+
/**
|
|
12500
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12501
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12502
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12503
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12504
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12505
|
+
* refetches on the reconcile interval, on a phone.
|
|
12506
|
+
*
|
|
12507
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12508
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12509
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12510
|
+
* it answers today and the caller filters as it already does.
|
|
12511
|
+
*/
|
|
12512
|
+
deviceIds: array(number()).optional()
|
|
12412
12513
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12413
12514
|
mode: LinkedDevicesModeSchema,
|
|
12414
12515
|
devices: array(LinkedDeviceSchema)
|
|
12415
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12516
|
+
})), method(object({ deviceIds: array(number()) }), array(LinkedDevicesForDeviceSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12416
12517
|
deviceId: number(),
|
|
12417
12518
|
values: record(string(), unknown())
|
|
12418
12519
|
}), object({ success: literal(true) }), {
|
|
@@ -12439,25 +12540,7 @@ method(object({
|
|
|
12439
12540
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12440
12541
|
kind: "mutation",
|
|
12441
12542
|
auth: "admin"
|
|
12442
|
-
}), method(object({ deviceId: number() }), object({
|
|
12443
|
-
deviceId: number(),
|
|
12444
|
-
entries: array(object({
|
|
12445
|
-
capName: string(),
|
|
12446
|
-
kind: _enum(["native", "wrapped"]),
|
|
12447
|
-
providerAddonId: string(),
|
|
12448
|
-
providerNodeId: string(),
|
|
12449
|
-
nativeAddonId: string()
|
|
12450
|
-
}))
|
|
12451
|
-
})), method(object({}), array(object({
|
|
12452
|
-
deviceId: number(),
|
|
12453
|
-
entries: array(object({
|
|
12454
|
-
capName: string(),
|
|
12455
|
-
kind: _enum(["native", "wrapped"]),
|
|
12456
|
-
providerAddonId: string(),
|
|
12457
|
-
providerNodeId: string(),
|
|
12458
|
-
nativeAddonId: string()
|
|
12459
|
-
}))
|
|
12460
|
-
}))), method(object({
|
|
12543
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12461
12544
|
deviceId: number(),
|
|
12462
12545
|
capName: string(),
|
|
12463
12546
|
wrapperAddonId: string(),
|
|
@@ -12628,7 +12711,7 @@ method(object({
|
|
|
12628
12711
|
crop: _instanceof(Uint8Array),
|
|
12629
12712
|
width: number(),
|
|
12630
12713
|
height: number()
|
|
12631
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12714
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12632
12715
|
/**
|
|
12633
12716
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12634
12717
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12921,19 +13004,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12921
13004
|
runtime: ManagedRuntimeConfigSchema,
|
|
12922
13005
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12923
13006
|
timeoutMs: number().int().positive().optional()
|
|
12924
|
-
}), LlmGenerateResultSchema, {
|
|
13007
|
+
}), LlmGenerateResultSchema, {
|
|
13008
|
+
kind: "mutation",
|
|
13009
|
+
auth: "admin"
|
|
13010
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12925
13011
|
kind: "mutation",
|
|
12926
13012
|
auth: "admin"
|
|
12927
13013
|
}), method(object({}), _void(), {
|
|
12928
13014
|
kind: "mutation",
|
|
12929
13015
|
auth: "admin"
|
|
12930
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13016
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12931
13017
|
kind: "mutation",
|
|
12932
13018
|
auth: "admin"
|
|
12933
13019
|
}), method(object({ file: string() }), _void(), {
|
|
12934
13020
|
kind: "mutation",
|
|
12935
13021
|
auth: "admin"
|
|
12936
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
13022
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12937
13023
|
/**
|
|
12938
13024
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12939
13025
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14867,12 +14953,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14867
14953
|
* there is no second switch that can disagree with the first and every rule
|
|
14868
14954
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14869
14955
|
*
|
|
14870
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14871
|
-
*
|
|
14872
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14873
|
-
*
|
|
14874
|
-
*
|
|
14875
|
-
*
|
|
14956
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14957
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14958
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14959
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14960
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14961
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14962
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14963
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14964
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14876
14965
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14877
14966
|
* the condition: at least `hitPercent`% of the samples over
|
|
14878
14967
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14899,14 +14988,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14899
14988
|
* an operator who typed `dog` mean the same thing.
|
|
14900
14989
|
*/
|
|
14901
14990
|
var NcAudioConditionSchema = object({
|
|
14902
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14991
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14903
14992
|
labels: array(string().min(1)).min(1).optional(),
|
|
14904
14993
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14905
14994
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14906
14995
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14907
14996
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14908
14997
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14909
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14998
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14999
|
+
/**
|
|
15000
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
15001
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
15002
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
15003
|
+
*/
|
|
15004
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
15005
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
15006
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14910
15007
|
});
|
|
14911
15008
|
/**
|
|
14912
15009
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16433,7 +16530,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16433
16530
|
*/
|
|
16434
16531
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16435
16532
|
});
|
|
16436
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16533
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16437
16534
|
/**
|
|
16438
16535
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16439
16536
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -17280,6 +17377,46 @@ var RecentTracksPageSchema = object({
|
|
|
17280
17377
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17281
17378
|
nextCursor: string().nullable()
|
|
17282
17379
|
});
|
|
17380
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17381
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17382
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17383
|
+
id: string(),
|
|
17384
|
+
deviceId: number().int(),
|
|
17385
|
+
openedAt: number().int(),
|
|
17386
|
+
closedAt: number().int(),
|
|
17387
|
+
timestamp: number().int(),
|
|
17388
|
+
memberCount: number().int(),
|
|
17389
|
+
memberTrackIds: array(string()).readonly(),
|
|
17390
|
+
className: string(),
|
|
17391
|
+
classes: array(string()).readonly(),
|
|
17392
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17393
|
+
mediaUrl: string().nullable(),
|
|
17394
|
+
singleton: boolean()
|
|
17395
|
+
});
|
|
17396
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17397
|
+
trackId: string(),
|
|
17398
|
+
deviceId: number().int(),
|
|
17399
|
+
className: string(),
|
|
17400
|
+
firstSeen: number().int(),
|
|
17401
|
+
lastSeen: number().int(),
|
|
17402
|
+
mediaUrl: string().nullable()
|
|
17403
|
+
});
|
|
17404
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17405
|
+
var ListGroupsQueryInput = object({
|
|
17406
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17407
|
+
deviceIds: array(number()),
|
|
17408
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17409
|
+
since: number().optional(),
|
|
17410
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17411
|
+
until: number().optional(),
|
|
17412
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17413
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17414
|
+
cursor: string().optional()
|
|
17415
|
+
});
|
|
17416
|
+
var ListGroupsPageSchema = object({
|
|
17417
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17418
|
+
nextCursor: string().nullable()
|
|
17419
|
+
});
|
|
17283
17420
|
var KeyEventQueryInput = object({
|
|
17284
17421
|
deviceId: number(),
|
|
17285
17422
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17355,7 +17492,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17355
17492
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17356
17493
|
plates: number().int(),
|
|
17357
17494
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17358
|
-
embeddings: number().int()
|
|
17495
|
+
embeddings: number().int(),
|
|
17496
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17497
|
+
groups: number().int()
|
|
17359
17498
|
});
|
|
17360
17499
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17361
17500
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17501,7 +17640,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17501
17640
|
* stationary registry). Default false: the timeline lists passages,
|
|
17502
17641
|
* not parking records (operator decision, 2026-08-15). */
|
|
17503
17642
|
includeStationary: boolean().optional()
|
|
17504
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17643
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17644
|
+
deviceId: number(),
|
|
17645
|
+
groupId: string().min(1)
|
|
17646
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17505
17647
|
kind: "mutation",
|
|
17506
17648
|
auth: "admin"
|
|
17507
17649
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -17583,6 +17725,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17583
17725
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17584
17726
|
kind: "mutation",
|
|
17585
17727
|
auth: "admin"
|
|
17728
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17729
|
+
kind: "mutation",
|
|
17730
|
+
auth: "admin"
|
|
17731
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17732
|
+
kind: "query",
|
|
17733
|
+
auth: "admin"
|
|
17734
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17735
|
+
kind: "mutation",
|
|
17736
|
+
auth: "admin"
|
|
17586
17737
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17587
17738
|
kind: "query",
|
|
17588
17739
|
auth: "admin"
|
|
@@ -17737,6 +17888,11 @@ object({
|
|
|
17737
17888
|
"jpeg"
|
|
17738
17889
|
])
|
|
17739
17890
|
});
|
|
17891
|
+
/**
|
|
17892
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17893
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17894
|
+
* other process or execution group.
|
|
17895
|
+
*/
|
|
17740
17896
|
var FrameRefSchema = object({
|
|
17741
17897
|
registryId: string().min(1),
|
|
17742
17898
|
id: string().min(1),
|
|
@@ -17811,7 +17967,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17811
17967
|
sizeMB: number()
|
|
17812
17968
|
})),
|
|
17813
17969
|
group: ModelVariantGroupSchema.optional(),
|
|
17814
|
-
legacy: boolean().optional()
|
|
17970
|
+
legacy: boolean().optional(),
|
|
17971
|
+
provider: ModelProviderIdSchema.optional()
|
|
17815
17972
|
});
|
|
17816
17973
|
var ConfigFieldBridge = custom();
|
|
17817
17974
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -20045,7 +20202,7 @@ method(object({
|
|
|
20045
20202
|
* linking rather than produce an eternal token.
|
|
20046
20203
|
*/
|
|
20047
20204
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
20048
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
20205
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
20049
20206
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
20050
20207
|
providerId: string().min(1),
|
|
20051
20208
|
displayName: string().min(1),
|
|
@@ -20140,10 +20297,13 @@ var EvictResultSchema = object({
|
|
|
20140
20297
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
20141
20298
|
exhausted: boolean()
|
|
20142
20299
|
});
|
|
20143
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
20300
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
20144
20301
|
locationId: string(),
|
|
20145
20302
|
targetBytes: number().int().positive()
|
|
20146
|
-
}), EvictResultSchema, {
|
|
20303
|
+
}), EvictResultSchema, {
|
|
20304
|
+
kind: "mutation",
|
|
20305
|
+
auth: "admin"
|
|
20306
|
+
});
|
|
20147
20307
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
20148
20308
|
kind: "mutation",
|
|
20149
20309
|
auth: "admin"
|
|
@@ -20203,26 +20363,50 @@ var ReadChunkInputSchema = object({
|
|
|
20203
20363
|
length: number()
|
|
20204
20364
|
});
|
|
20205
20365
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
20206
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20366
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20207
20367
|
location: StorageLocationSchema,
|
|
20208
20368
|
relativePath: string()
|
|
20209
|
-
}), string()), method(object({
|
|
20369
|
+
}), string(), { auth: "admin" }), method(object({
|
|
20210
20370
|
location: StorageLocationSchema,
|
|
20211
20371
|
relativePath: string(),
|
|
20212
20372
|
data: _instanceof(Uint8Array)
|
|
20213
|
-
}), _void(), {
|
|
20373
|
+
}), _void(), {
|
|
20374
|
+
kind: "mutation",
|
|
20375
|
+
auth: "admin"
|
|
20376
|
+
}), method(object({
|
|
20214
20377
|
location: StorageLocationSchema,
|
|
20215
20378
|
relativePath: string()
|
|
20216
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
20379
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
20217
20380
|
location: StorageLocationSchema,
|
|
20218
20381
|
relativePath: string()
|
|
20219
|
-
}), boolean()), method(object({
|
|
20382
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
20220
20383
|
location: StorageLocationSchema,
|
|
20221
20384
|
prefix: string().optional()
|
|
20222
|
-
}), array(string()).readonly()), method(object({
|
|
20385
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
20223
20386
|
location: StorageLocationSchema,
|
|
20224
20387
|
relativePath: string()
|
|
20225
|
-
}), _void(), {
|
|
20388
|
+
}), _void(), {
|
|
20389
|
+
kind: "mutation",
|
|
20390
|
+
auth: "admin"
|
|
20391
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
20392
|
+
kind: "mutation",
|
|
20393
|
+
auth: "admin"
|
|
20394
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
20395
|
+
kind: "mutation",
|
|
20396
|
+
auth: "admin"
|
|
20397
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
20398
|
+
kind: "mutation",
|
|
20399
|
+
auth: "admin"
|
|
20400
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
20401
|
+
kind: "mutation",
|
|
20402
|
+
auth: "admin"
|
|
20403
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
20404
|
+
kind: "mutation",
|
|
20405
|
+
auth: "admin"
|
|
20406
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
20407
|
+
kind: "mutation",
|
|
20408
|
+
auth: "admin"
|
|
20409
|
+
});
|
|
20226
20410
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20227
20411
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20228
20412
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -20480,7 +20664,8 @@ method(object({
|
|
|
20480
20664
|
access: "create"
|
|
20481
20665
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20482
20666
|
kind: "mutation",
|
|
20483
|
-
access: "view"
|
|
20667
|
+
access: "view",
|
|
20668
|
+
auth: "admin"
|
|
20484
20669
|
}), method(object({
|
|
20485
20670
|
/** Required — the user the assertion belongs to (verified). */
|
|
20486
20671
|
userId: string(),
|
|
@@ -20488,10 +20673,12 @@ method(object({
|
|
|
20488
20673
|
response: record(string(), unknown())
|
|
20489
20674
|
}), object({ verified: boolean() }), {
|
|
20490
20675
|
kind: "mutation",
|
|
20491
|
-
access: "view"
|
|
20676
|
+
access: "view",
|
|
20677
|
+
auth: "admin"
|
|
20492
20678
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20493
20679
|
kind: "mutation",
|
|
20494
|
-
access: "view"
|
|
20680
|
+
access: "view",
|
|
20681
|
+
auth: "admin"
|
|
20495
20682
|
}), method(object({
|
|
20496
20683
|
/** AuthenticationResponseJSON from the browser. */
|
|
20497
20684
|
response: record(string(), unknown()) }), object({
|
|
@@ -20499,7 +20686,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20499
20686
|
userId: string().nullable()
|
|
20500
20687
|
}), {
|
|
20501
20688
|
kind: "mutation",
|
|
20502
|
-
access: "view"
|
|
20689
|
+
access: "view",
|
|
20690
|
+
auth: "admin"
|
|
20503
20691
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20504
20692
|
userId: string(),
|
|
20505
20693
|
credentialId: string()
|
|
@@ -20671,7 +20859,19 @@ var VectorStatsResultSchema = object({
|
|
|
20671
20859
|
/** False when the backend ranks approximately. */
|
|
20672
20860
|
exact: boolean()
|
|
20673
20861
|
});
|
|
20674
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20862
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20863
|
+
kind: "mutation",
|
|
20864
|
+
auth: "admin"
|
|
20865
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20866
|
+
kind: "mutation",
|
|
20867
|
+
auth: "admin"
|
|
20868
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20869
|
+
kind: "mutation",
|
|
20870
|
+
auth: "admin"
|
|
20871
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20872
|
+
kind: "mutation",
|
|
20873
|
+
auth: "admin"
|
|
20874
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20675
20875
|
var ClipSchema = object({
|
|
20676
20876
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20677
20877
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -23124,7 +23324,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
23124
23324
|
sizeBytes: number(),
|
|
23125
23325
|
timestamp: number()
|
|
23126
23326
|
});
|
|
23127
|
-
method(
|
|
23327
|
+
method(object({
|
|
23328
|
+
/**
|
|
23329
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
23330
|
+
*
|
|
23331
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
23332
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
23333
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
23334
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
23335
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
23336
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
23337
|
+
*
|
|
23338
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
23339
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
23340
|
+
*
|
|
23341
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
23342
|
+
* next train** — the hub router validates cap inputs against its own
|
|
23343
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
23344
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
23345
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
23346
|
+
*/
|
|
23347
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
23128
23348
|
kind: "mutation",
|
|
23129
23349
|
auth: "admin"
|
|
23130
23350
|
}), method(object({
|
|
@@ -26058,7 +26278,14 @@ var PlateInfoSchema = object({
|
|
|
26058
26278
|
plateBbox: BoundingBoxSchema.optional(),
|
|
26059
26279
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
26060
26280
|
keyFrameMediaKey: string().optional(),
|
|
26061
|
-
base64: string().optional()
|
|
26281
|
+
base64: string().optional(),
|
|
26282
|
+
/**
|
|
26283
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
26284
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
26285
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
26286
|
+
* left at its `true` default.
|
|
26287
|
+
*/
|
|
26288
|
+
cropUrl: string().optional()
|
|
26062
26289
|
});
|
|
26063
26290
|
var MediaFileLiteSchema = object({
|
|
26064
26291
|
key: string(),
|
|
@@ -26076,14 +26303,34 @@ var PlateClusterSchema = object({
|
|
|
26076
26303
|
});
|
|
26077
26304
|
method(object({
|
|
26078
26305
|
deviceId: number().int().optional(),
|
|
26079
|
-
limit: number().int().positive().optional()
|
|
26306
|
+
limit: number().int().positive().optional(),
|
|
26307
|
+
/**
|
|
26308
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
26309
|
+
* behaviour, kept so no caller breaks.
|
|
26310
|
+
*
|
|
26311
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
26312
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
26313
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
26314
|
+
* metadata without them — and the browser then caches the images.
|
|
26315
|
+
*
|
|
26316
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
26317
|
+
* plates were the one gallery list left without it.
|
|
26318
|
+
*
|
|
26319
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
26320
|
+
* next train.** The hub router validates cap inputs against its own
|
|
26321
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
26322
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
26323
|
+
*/
|
|
26324
|
+
includeCrops: boolean().optional()
|
|
26080
26325
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
26081
26326
|
deviceId: number().int(),
|
|
26082
26327
|
trackId: string()
|
|
26083
26328
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
26084
26329
|
text: string().min(1),
|
|
26085
26330
|
maxDistance: number().int().min(0).optional(),
|
|
26086
|
-
limit: number().int().positive().optional()
|
|
26331
|
+
limit: number().int().positive().optional(),
|
|
26332
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
26333
|
+
includeCrops: boolean().optional()
|
|
26087
26334
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
26088
26335
|
maxDistance: number().int().min(0).optional(),
|
|
26089
26336
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -26097,7 +26344,13 @@ method(object({
|
|
|
26097
26344
|
}), method(object({ plateId: string() }), _void(), {
|
|
26098
26345
|
kind: "mutation",
|
|
26099
26346
|
auth: "admin"
|
|
26100
|
-
}), method(
|
|
26347
|
+
}), method(object({
|
|
26348
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
26349
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
26350
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
26351
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
26352
|
+
* resolves to `false` and is exactly the intended default. */
|
|
26353
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
26101
26354
|
kind: "mutation",
|
|
26102
26355
|
auth: "admin"
|
|
26103
26356
|
}), method(object({
|
|
@@ -32100,6 +32353,12 @@ Object.freeze({
|
|
|
32100
32353
|
addonId: null,
|
|
32101
32354
|
access: "view"
|
|
32102
32355
|
},
|
|
32356
|
+
"deviceManager.getBindingsBatch": {
|
|
32357
|
+
capName: "device-manager",
|
|
32358
|
+
capScope: "system",
|
|
32359
|
+
addonId: null,
|
|
32360
|
+
access: "view"
|
|
32361
|
+
},
|
|
32103
32362
|
"deviceManager.getChildren": {
|
|
32104
32363
|
capName: "device-manager",
|
|
32105
32364
|
capScope: "system",
|
|
@@ -32160,6 +32419,12 @@ Object.freeze({
|
|
|
32160
32419
|
addonId: null,
|
|
32161
32420
|
access: "view"
|
|
32162
32421
|
},
|
|
32422
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
32423
|
+
capName: "device-manager",
|
|
32424
|
+
capScope: "system",
|
|
32425
|
+
addonId: null,
|
|
32426
|
+
access: "view"
|
|
32427
|
+
},
|
|
32163
32428
|
"deviceManager.getRoleDisplayDefaults": {
|
|
32164
32429
|
capName: "device-manager",
|
|
32165
32430
|
capScope: "system",
|
|
@@ -33864,6 +34129,12 @@ Object.freeze({
|
|
|
33864
34129
|
addonId: null,
|
|
33865
34130
|
access: "create"
|
|
33866
34131
|
},
|
|
34132
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
34133
|
+
capName: "pipeline-analytics",
|
|
34134
|
+
capScope: "device",
|
|
34135
|
+
addonId: null,
|
|
34136
|
+
access: "create"
|
|
34137
|
+
},
|
|
33867
34138
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
33868
34139
|
capName: "pipeline-analytics",
|
|
33869
34140
|
capScope: "device",
|
|
@@ -33930,6 +34201,12 @@ Object.freeze({
|
|
|
33930
34201
|
addonId: null,
|
|
33931
34202
|
access: "view"
|
|
33932
34203
|
},
|
|
34204
|
+
"pipelineAnalytics.getGroup": {
|
|
34205
|
+
capName: "pipeline-analytics",
|
|
34206
|
+
capScope: "device",
|
|
34207
|
+
addonId: null,
|
|
34208
|
+
access: "view"
|
|
34209
|
+
},
|
|
33933
34210
|
"pipelineAnalytics.getKeyEvents": {
|
|
33934
34211
|
capName: "pipeline-analytics",
|
|
33935
34212
|
capScope: "device",
|
|
@@ -34014,6 +34291,12 @@ Object.freeze({
|
|
|
34014
34291
|
addonId: null,
|
|
34015
34292
|
access: "view"
|
|
34016
34293
|
},
|
|
34294
|
+
"pipelineAnalytics.listGroups": {
|
|
34295
|
+
capName: "pipeline-analytics",
|
|
34296
|
+
capScope: "device",
|
|
34297
|
+
addonId: null,
|
|
34298
|
+
access: "view"
|
|
34299
|
+
},
|
|
34017
34300
|
"pipelineAnalytics.listOpsLog": {
|
|
34018
34301
|
capName: "pipeline-analytics",
|
|
34019
34302
|
capScope: "device",
|
|
@@ -34026,6 +34309,12 @@ Object.freeze({
|
|
|
34026
34309
|
addonId: null,
|
|
34027
34310
|
access: "view"
|
|
34028
34311
|
},
|
|
34312
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
34313
|
+
capName: "pipeline-analytics",
|
|
34314
|
+
capScope: "device",
|
|
34315
|
+
addonId: null,
|
|
34316
|
+
access: "view"
|
|
34317
|
+
},
|
|
34029
34318
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
34030
34319
|
capName: "pipeline-analytics",
|
|
34031
34320
|
capScope: "device",
|
|
@@ -34104,6 +34393,12 @@ Object.freeze({
|
|
|
34104
34393
|
addonId: null,
|
|
34105
34394
|
access: "create"
|
|
34106
34395
|
},
|
|
34396
|
+
"pipelineAnalytics.relocateMedia": {
|
|
34397
|
+
capName: "pipeline-analytics",
|
|
34398
|
+
capScope: "device",
|
|
34399
|
+
addonId: null,
|
|
34400
|
+
access: "create"
|
|
34401
|
+
},
|
|
34107
34402
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
34108
34403
|
capName: "pipeline-analytics",
|
|
34109
34404
|
capScope: "device",
|
|
@@ -36795,6 +37090,11 @@ Object.freeze({
|
|
|
36795
37090
|
form: "single",
|
|
36796
37091
|
optional: false
|
|
36797
37092
|
}],
|
|
37093
|
+
"deviceManager.getBindingsBatch": [{
|
|
37094
|
+
name: "deviceIds",
|
|
37095
|
+
form: "array",
|
|
37096
|
+
optional: false
|
|
37097
|
+
}],
|
|
36798
37098
|
"deviceManager.getChildren": [{
|
|
36799
37099
|
name: "parentDeviceId",
|
|
36800
37100
|
form: "single",
|
|
@@ -36840,6 +37140,11 @@ Object.freeze({
|
|
|
36840
37140
|
form: "single",
|
|
36841
37141
|
optional: false
|
|
36842
37142
|
}],
|
|
37143
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
37144
|
+
name: "deviceIds",
|
|
37145
|
+
form: "array",
|
|
37146
|
+
optional: false
|
|
37147
|
+
}],
|
|
36843
37148
|
"deviceManager.getSettingsSchema": [{
|
|
36844
37149
|
name: "deviceId",
|
|
36845
37150
|
form: "single",
|
|
@@ -36860,6 +37165,11 @@ Object.freeze({
|
|
|
36860
37165
|
form: "single",
|
|
36861
37166
|
optional: false
|
|
36862
37167
|
}],
|
|
37168
|
+
"deviceManager.listAll": [{
|
|
37169
|
+
name: "deviceIds",
|
|
37170
|
+
form: "array",
|
|
37171
|
+
optional: true
|
|
37172
|
+
}],
|
|
36863
37173
|
"deviceManager.loadConfig": [{
|
|
36864
37174
|
name: "deviceId",
|
|
36865
37175
|
form: "single",
|
|
@@ -37433,6 +37743,11 @@ Object.freeze({
|
|
|
37433
37743
|
form: "single",
|
|
37434
37744
|
optional: false
|
|
37435
37745
|
}],
|
|
37746
|
+
"pipelineAnalytics.getGroup": [{
|
|
37747
|
+
name: "deviceId",
|
|
37748
|
+
form: "single",
|
|
37749
|
+
optional: false
|
|
37750
|
+
}],
|
|
37436
37751
|
"pipelineAnalytics.getKeyEvents": [{
|
|
37437
37752
|
name: "deviceId",
|
|
37438
37753
|
form: "single",
|
|
@@ -37488,6 +37803,11 @@ Object.freeze({
|
|
|
37488
37803
|
form: "array",
|
|
37489
37804
|
optional: false
|
|
37490
37805
|
}],
|
|
37806
|
+
"pipelineAnalytics.listGroups": [{
|
|
37807
|
+
name: "deviceIds",
|
|
37808
|
+
form: "array",
|
|
37809
|
+
optional: false
|
|
37810
|
+
}],
|
|
37491
37811
|
"pipelineAnalytics.listOpsLog": [{
|
|
37492
37812
|
name: "deviceId",
|
|
37493
37813
|
form: "single",
|