@camstack/addon-matter-broker 0.2.26 → 0.2.28
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
|
@@ -5813,6 +5813,13 @@ var BaseAddon = class {
|
|
|
5813
5813
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5814
5814
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5815
5815
|
_registeredCapNames = [];
|
|
5816
|
+
/**
|
|
5817
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5818
|
+
* defaults look like stored config when the store is down — a forked
|
|
5819
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5820
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5821
|
+
*/
|
|
5822
|
+
settingsStoreReady = false;
|
|
5816
5823
|
/** Default config values. Provided via constructor. */
|
|
5817
5824
|
defaults;
|
|
5818
5825
|
constructor(defaults) {
|
|
@@ -6213,7 +6220,9 @@ var BaseAddon = class {
|
|
|
6213
6220
|
];
|
|
6214
6221
|
let lastErr;
|
|
6215
6222
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6216
|
-
|
|
6223
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6224
|
+
this.settingsStoreReady = true;
|
|
6225
|
+
return stored;
|
|
6217
6226
|
} catch (err) {
|
|
6218
6227
|
lastErr = err;
|
|
6219
6228
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6221,6 +6230,7 @@ var BaseAddon = class {
|
|
|
6221
6230
|
if (attempt === delaysMs.length) break;
|
|
6222
6231
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6223
6232
|
}
|
|
6233
|
+
this.settingsStoreReady = false;
|
|
6224
6234
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6225
6235
|
return {};
|
|
6226
6236
|
}
|
|
@@ -6632,7 +6642,7 @@ function method(input, output, options) {
|
|
|
6632
6642
|
input,
|
|
6633
6643
|
output,
|
|
6634
6644
|
kind: options?.kind ?? "query",
|
|
6635
|
-
auth: options
|
|
6645
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6636
6646
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6637
6647
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6638
6648
|
timeoutMs: options?.timeoutMs
|
|
@@ -6656,7 +6666,7 @@ function event$1(data) {
|
|
|
6656
6666
|
}
|
|
6657
6667
|
var StaticDirOutputSchema$1 = object({ staticDir: string$2() });
|
|
6658
6668
|
var VersionOutputSchema$1 = object({ version: string$2() });
|
|
6659
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6669
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6660
6670
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6661
6671
|
DeviceType["Camera"] = "camera";
|
|
6662
6672
|
DeviceType["Hub"] = "hub";
|
|
@@ -6977,7 +6987,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6977
6987
|
}({});
|
|
6978
6988
|
var StaticDirOutputSchema = object({ staticDir: string$2() });
|
|
6979
6989
|
var VersionOutputSchema = object({ version: string$2() });
|
|
6980
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6990
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6981
6991
|
/**
|
|
6982
6992
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6983
6993
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7603,24 +7613,6 @@ var RecordingRetentionSchema = object({
|
|
|
7603
7613
|
maxSizeGb: number().min(0).optional()
|
|
7604
7614
|
});
|
|
7605
7615
|
/**
|
|
7606
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7607
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7608
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7609
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7610
|
-
*
|
|
7611
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7612
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7613
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7614
|
-
* written with.
|
|
7615
|
-
*/
|
|
7616
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7617
|
-
"minimal",
|
|
7618
|
-
"low",
|
|
7619
|
-
"standard",
|
|
7620
|
-
"high",
|
|
7621
|
-
"max"
|
|
7622
|
-
]);
|
|
7623
|
-
/**
|
|
7624
7616
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7625
7617
|
*
|
|
7626
7618
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7628,7 +7620,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7628
7620
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7629
7621
|
*
|
|
7630
7622
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7631
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7623
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7624
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7625
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7626
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7627
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7632
7628
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7633
7629
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7634
7630
|
*/
|
|
@@ -7651,14 +7647,7 @@ var RecordingConfigSchema = object({
|
|
|
7651
7647
|
* "off" is the absence of a covering band, never a band value.
|
|
7652
7648
|
*/
|
|
7653
7649
|
bands: array(RecordingBandSchema).default([]),
|
|
7654
|
-
retention: RecordingRetentionSchema.optional()
|
|
7655
|
-
/**
|
|
7656
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7657
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7658
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7659
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7660
|
-
*/
|
|
7661
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7650
|
+
retention: RecordingRetentionSchema.optional()
|
|
7662
7651
|
}).strict();
|
|
7663
7652
|
/**
|
|
7664
7653
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7734,10 +7723,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7734
7723
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7735
7724
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string$2().min(1) });
|
|
7736
7725
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string$2().min(1) });
|
|
7737
|
-
var
|
|
7726
|
+
var RelocateMediaInputSchema = object({
|
|
7738
7727
|
toLocationId: string$2(),
|
|
7739
7728
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7740
|
-
})
|
|
7729
|
+
});
|
|
7730
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string$2().min(1) });
|
|
7741
7731
|
/** The independently selectable logical storage classes. `recordings`
|
|
7742
7732
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7743
7733
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8032,7 +8022,26 @@ var LabelDefinitionSchema = object({
|
|
|
8032
8022
|
description: string$2().optional(),
|
|
8033
8023
|
icon: string$2().optional()
|
|
8034
8024
|
});
|
|
8035
|
-
|
|
8025
|
+
/**
|
|
8026
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8027
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8028
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8029
|
+
* detection pipeline executor actually routes.
|
|
8030
|
+
*
|
|
8031
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8032
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8033
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8034
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8035
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8036
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8037
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8038
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8039
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8040
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8041
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8042
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8043
|
+
*/
|
|
8044
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8036
8045
|
mapping: record(string$2(), _enum([
|
|
8037
8046
|
"person",
|
|
8038
8047
|
"vehicle",
|
|
@@ -8124,6 +8133,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8124
8133
|
*/
|
|
8125
8134
|
resolution: number().int().positive().optional()
|
|
8126
8135
|
});
|
|
8136
|
+
var ModelProviderIdSchema = _enum([
|
|
8137
|
+
"camstack",
|
|
8138
|
+
"frigate",
|
|
8139
|
+
"scrypted",
|
|
8140
|
+
"custom"
|
|
8141
|
+
]);
|
|
8127
8142
|
var ModelCatalogEntrySchema = object({
|
|
8128
8143
|
id: string$2(),
|
|
8129
8144
|
name: string$2(),
|
|
@@ -8221,11 +8236,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
8221
8236
|
*/
|
|
8222
8237
|
group: ModelVariantGroupSchema.optional(),
|
|
8223
8238
|
/**
|
|
8239
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8240
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8241
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8242
|
+
*/
|
|
8243
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8244
|
+
/**
|
|
8224
8245
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8225
8246
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8226
8247
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8227
8248
|
*/
|
|
8228
|
-
classMap:
|
|
8249
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8229
8250
|
});
|
|
8230
8251
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8231
8252
|
format: literal("openvino"),
|
|
@@ -8255,7 +8276,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8255
8276
|
"segmentation"
|
|
8256
8277
|
]),
|
|
8257
8278
|
faceAlignment: boolean().optional(),
|
|
8258
|
-
classMap:
|
|
8279
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8259
8280
|
});
|
|
8260
8281
|
var ConvertResultSchema = object({
|
|
8261
8282
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9118,7 +9139,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9118
9139
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9119
9140
|
sectionLabel: string$2().optional()
|
|
9120
9141
|
});
|
|
9121
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9142
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9122
9143
|
var AddonHttpRouteSchema = object({
|
|
9123
9144
|
method: _enum([
|
|
9124
9145
|
"GET",
|
|
@@ -9353,7 +9374,7 @@ var WidgetMetadataSchema = object({
|
|
|
9353
9374
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9354
9375
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9355
9376
|
});
|
|
9356
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9377
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9357
9378
|
/**
|
|
9358
9379
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9359
9380
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -11026,7 +11047,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
11026
11047
|
stepId: string$2(),
|
|
11027
11048
|
entry: ModelCatalogEntrySchema
|
|
11028
11049
|
});
|
|
11029
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
11050
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
11030
11051
|
/**
|
|
11031
11052
|
* Query filter for settings-store collections.
|
|
11032
11053
|
*/
|
|
@@ -11113,7 +11134,8 @@ method(object({
|
|
|
11113
11134
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11114
11135
|
namespace: string$2().optional(),
|
|
11115
11136
|
collection: string$2(),
|
|
11116
|
-
filter: QueryFilterSchema.optional()
|
|
11137
|
+
filter: QueryFilterSchema.optional(),
|
|
11138
|
+
columns: array(string$2()).readonly().optional()
|
|
11117
11139
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
11118
11140
|
namespace: string$2().optional(),
|
|
11119
11141
|
collection: string$2(),
|
|
@@ -11176,46 +11198,87 @@ var EngineInfoSchema = object({
|
|
|
11176
11198
|
kind: _enum(["relational", "vector"]),
|
|
11177
11199
|
displayName: string$2()
|
|
11178
11200
|
});
|
|
11179
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11201
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11180
11202
|
namespace: string$2().optional(),
|
|
11181
11203
|
collection: string$2(),
|
|
11182
11204
|
key: string$2()
|
|
11183
|
-
}), unknown()), method(object({
|
|
11205
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11184
11206
|
namespace: string$2().optional(),
|
|
11185
11207
|
collection: string$2(),
|
|
11186
11208
|
key: string$2(),
|
|
11187
11209
|
value: unknown()
|
|
11188
|
-
}), _void(), {
|
|
11210
|
+
}), _void(), {
|
|
11211
|
+
kind: "mutation",
|
|
11212
|
+
auth: "admin"
|
|
11213
|
+
}), method(object({
|
|
11189
11214
|
namespace: string$2().optional(),
|
|
11190
11215
|
collection: string$2(),
|
|
11191
|
-
filter: QueryFilterSchema.optional()
|
|
11192
|
-
|
|
11216
|
+
filter: QueryFilterSchema.optional(),
|
|
11217
|
+
/**
|
|
11218
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11219
|
+
*
|
|
11220
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11221
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11222
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11223
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11224
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11225
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11226
|
+
*
|
|
11227
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11228
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11229
|
+
* interface the engine destructures from. The field existed on both
|
|
11230
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11231
|
+
* registered provider against `InferProvider<cap>` —
|
|
11232
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11233
|
+
*
|
|
11234
|
+
* It is declared here anyway, and must stay in step with
|
|
11235
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11236
|
+
* to be able to see that this call carries a projection.
|
|
11237
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11238
|
+
*/
|
|
11239
|
+
columns: array(string$2()).readonly().optional()
|
|
11240
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11193
11241
|
namespace: string$2().optional(),
|
|
11194
11242
|
collection: string$2(),
|
|
11195
11243
|
record: SettingsRecordSchema
|
|
11196
|
-
}), _void(), {
|
|
11244
|
+
}), _void(), {
|
|
11245
|
+
kind: "mutation",
|
|
11246
|
+
auth: "admin"
|
|
11247
|
+
}), method(object({
|
|
11197
11248
|
namespace: string$2().optional(),
|
|
11198
11249
|
collection: string$2(),
|
|
11199
11250
|
id: string$2(),
|
|
11200
11251
|
data: record(string$2(), unknown())
|
|
11201
|
-
}), _void(), {
|
|
11252
|
+
}), _void(), {
|
|
11253
|
+
kind: "mutation",
|
|
11254
|
+
auth: "admin"
|
|
11255
|
+
}), method(object({
|
|
11202
11256
|
namespace: string$2().optional(),
|
|
11203
11257
|
collection: string$2(),
|
|
11204
11258
|
key: string$2()
|
|
11205
|
-
}), _void(), {
|
|
11259
|
+
}), _void(), {
|
|
11260
|
+
kind: "mutation",
|
|
11261
|
+
auth: "admin"
|
|
11262
|
+
}), method(object({
|
|
11206
11263
|
namespace: string$2().optional(),
|
|
11207
11264
|
collection: string$2(),
|
|
11208
11265
|
filter: MutationFilterSchema
|
|
11209
|
-
}), object({ deleted: number().int() }), {
|
|
11266
|
+
}), object({ deleted: number().int() }), {
|
|
11267
|
+
kind: "mutation",
|
|
11268
|
+
auth: "admin"
|
|
11269
|
+
}), method(object({
|
|
11210
11270
|
namespace: string$2().optional(),
|
|
11211
11271
|
collection: string$2(),
|
|
11212
11272
|
filter: MutationFilterSchema,
|
|
11213
11273
|
data: record(string$2(), unknown())
|
|
11214
|
-
}), object({ updated: number().int() }), {
|
|
11274
|
+
}), object({ updated: number().int() }), {
|
|
11275
|
+
kind: "mutation",
|
|
11276
|
+
auth: "admin"
|
|
11277
|
+
}), method(object({
|
|
11215
11278
|
namespace: string$2().optional(),
|
|
11216
11279
|
collection: string$2(),
|
|
11217
11280
|
filter: QueryFilterSchema.optional()
|
|
11218
|
-
}), number()), method(object({
|
|
11281
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11219
11282
|
namespace: string$2().optional(),
|
|
11220
11283
|
collection: string$2(),
|
|
11221
11284
|
field: string$2(),
|
|
@@ -11225,15 +11288,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11225
11288
|
}), array(object({
|
|
11226
11289
|
bucket: number().int(),
|
|
11227
11290
|
count: number().int()
|
|
11228
|
-
})).readonly()), method(object({
|
|
11291
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11229
11292
|
namespace: string$2().optional(),
|
|
11230
11293
|
collection: string$2()
|
|
11231
|
-
}), boolean()), method(object({
|
|
11294
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11232
11295
|
namespace: string$2().optional(),
|
|
11233
11296
|
collection: string$2(),
|
|
11234
11297
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11235
11298
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11236
|
-
}), _void(), {
|
|
11299
|
+
}), _void(), {
|
|
11300
|
+
kind: "mutation",
|
|
11301
|
+
auth: "admin"
|
|
11302
|
+
});
|
|
11237
11303
|
/**
|
|
11238
11304
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11239
11305
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -12078,6 +12144,27 @@ var LinkedDeviceSchema = object({
|
|
|
12078
12144
|
features: array(string$2()),
|
|
12079
12145
|
producesTrackedEvents: boolean().optional()
|
|
12080
12146
|
});
|
|
12147
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12148
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12149
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12150
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12151
|
+
deviceId: number(),
|
|
12152
|
+
mode: LinkedDevicesModeSchema,
|
|
12153
|
+
devices: array(LinkedDeviceSchema)
|
|
12154
|
+
});
|
|
12155
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12156
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12157
|
+
* object literal is exactly how the three drift apart. */
|
|
12158
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12159
|
+
deviceId: number(),
|
|
12160
|
+
entries: array(object({
|
|
12161
|
+
capName: string$2(),
|
|
12162
|
+
kind: _enum(["native", "wrapped"]),
|
|
12163
|
+
providerAddonId: string$2(),
|
|
12164
|
+
providerNodeId: string$2(),
|
|
12165
|
+
nativeAddonId: string$2()
|
|
12166
|
+
}))
|
|
12167
|
+
});
|
|
12081
12168
|
var SavedDeviceRowSchema = object({
|
|
12082
12169
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12083
12170
|
id: number(),
|
|
@@ -12303,11 +12390,25 @@ method(object({
|
|
|
12303
12390
|
projection: _enum(["full", "slim"]).optional(),
|
|
12304
12391
|
/** Return only camera devices. Filtering server-side instead of
|
|
12305
12392
|
* shipping 293 rows to find 12. */
|
|
12306
|
-
isCamera: boolean().optional()
|
|
12393
|
+
isCamera: boolean().optional(),
|
|
12394
|
+
/**
|
|
12395
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12396
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12397
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12398
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12399
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12400
|
+
* refetches on the reconcile interval, on a phone.
|
|
12401
|
+
*
|
|
12402
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12403
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12404
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12405
|
+
* it answers today and the caller filters as it already does.
|
|
12406
|
+
*/
|
|
12407
|
+
deviceIds: array(number()).optional()
|
|
12307
12408
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12308
12409
|
mode: LinkedDevicesModeSchema,
|
|
12309
12410
|
devices: array(LinkedDeviceSchema)
|
|
12310
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12411
|
+
})), 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({
|
|
12311
12412
|
deviceId: number(),
|
|
12312
12413
|
values: record(string$2(), unknown())
|
|
12313
12414
|
}), object({ success: literal(true) }), {
|
|
@@ -12334,25 +12435,7 @@ method(object({
|
|
|
12334
12435
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12335
12436
|
kind: "mutation",
|
|
12336
12437
|
auth: "admin"
|
|
12337
|
-
}), method(object({ deviceId: number() }), object({
|
|
12338
|
-
deviceId: number(),
|
|
12339
|
-
entries: array(object({
|
|
12340
|
-
capName: string$2(),
|
|
12341
|
-
kind: _enum(["native", "wrapped"]),
|
|
12342
|
-
providerAddonId: string$2(),
|
|
12343
|
-
providerNodeId: string$2(),
|
|
12344
|
-
nativeAddonId: string$2()
|
|
12345
|
-
}))
|
|
12346
|
-
})), method(object({}), array(object({
|
|
12347
|
-
deviceId: number(),
|
|
12348
|
-
entries: array(object({
|
|
12349
|
-
capName: string$2(),
|
|
12350
|
-
kind: _enum(["native", "wrapped"]),
|
|
12351
|
-
providerAddonId: string$2(),
|
|
12352
|
-
providerNodeId: string$2(),
|
|
12353
|
-
nativeAddonId: string$2()
|
|
12354
|
-
}))
|
|
12355
|
-
}))), method(object({
|
|
12438
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12356
12439
|
deviceId: number(),
|
|
12357
12440
|
capName: string$2(),
|
|
12358
12441
|
wrapperAddonId: string$2(),
|
|
@@ -12523,7 +12606,7 @@ method(object({
|
|
|
12523
12606
|
crop: _instanceof(Uint8Array),
|
|
12524
12607
|
width: number(),
|
|
12525
12608
|
height: number()
|
|
12526
|
-
}), EmbeddingResultSchema), method(object({ text: string$2() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12609
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string$2() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12527
12610
|
/**
|
|
12528
12611
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12529
12612
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12816,19 +12899,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12816
12899
|
runtime: ManagedRuntimeConfigSchema,
|
|
12817
12900
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12818
12901
|
timeoutMs: number().int().positive().optional()
|
|
12819
|
-
}), LlmGenerateResultSchema, {
|
|
12902
|
+
}), LlmGenerateResultSchema, {
|
|
12903
|
+
kind: "mutation",
|
|
12904
|
+
auth: "admin"
|
|
12905
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12820
12906
|
kind: "mutation",
|
|
12821
12907
|
auth: "admin"
|
|
12822
12908
|
}), method(object({}), _void(), {
|
|
12823
12909
|
kind: "mutation",
|
|
12824
12910
|
auth: "admin"
|
|
12825
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12911
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12826
12912
|
kind: "mutation",
|
|
12827
12913
|
auth: "admin"
|
|
12828
12914
|
}), method(object({ file: string$2() }), _void(), {
|
|
12829
12915
|
kind: "mutation",
|
|
12830
12916
|
auth: "admin"
|
|
12831
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12917
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12832
12918
|
/**
|
|
12833
12919
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12834
12920
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14762,12 +14848,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14762
14848
|
* there is no second switch that can disagree with the first and every rule
|
|
14763
14849
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14764
14850
|
*
|
|
14765
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14766
|
-
*
|
|
14767
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14768
|
-
*
|
|
14769
|
-
*
|
|
14770
|
-
*
|
|
14851
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14852
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14853
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14854
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14855
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14856
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14857
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14858
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14859
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14771
14860
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14772
14861
|
* the condition: at least `hitPercent`% of the samples over
|
|
14773
14862
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14794,14 +14883,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14794
14883
|
* an operator who typed `dog` mean the same thing.
|
|
14795
14884
|
*/
|
|
14796
14885
|
var NcAudioConditionSchema = object({
|
|
14797
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14886
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14798
14887
|
labels: array(string$2().min(1)).min(1).optional(),
|
|
14799
14888
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14800
14889
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14801
14890
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14802
14891
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14803
14892
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14804
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14893
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14894
|
+
/**
|
|
14895
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14896
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14897
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14898
|
+
*/
|
|
14899
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14900
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14901
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14805
14902
|
});
|
|
14806
14903
|
/**
|
|
14807
14904
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16328,7 +16425,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16328
16425
|
*/
|
|
16329
16426
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16330
16427
|
});
|
|
16331
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16428
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16332
16429
|
/**
|
|
16333
16430
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16334
16431
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -17175,6 +17272,46 @@ var RecentTracksPageSchema = object({
|
|
|
17175
17272
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17176
17273
|
nextCursor: string$2().nullable()
|
|
17177
17274
|
});
|
|
17275
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17276
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17277
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17278
|
+
id: string$2(),
|
|
17279
|
+
deviceId: number().int(),
|
|
17280
|
+
openedAt: number().int(),
|
|
17281
|
+
closedAt: number().int(),
|
|
17282
|
+
timestamp: number().int(),
|
|
17283
|
+
memberCount: number().int(),
|
|
17284
|
+
memberTrackIds: array(string$2()).readonly(),
|
|
17285
|
+
className: string$2(),
|
|
17286
|
+
classes: array(string$2()).readonly(),
|
|
17287
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17288
|
+
mediaUrl: string$2().nullable(),
|
|
17289
|
+
singleton: boolean()
|
|
17290
|
+
});
|
|
17291
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17292
|
+
trackId: string$2(),
|
|
17293
|
+
deviceId: number().int(),
|
|
17294
|
+
className: string$2(),
|
|
17295
|
+
firstSeen: number().int(),
|
|
17296
|
+
lastSeen: number().int(),
|
|
17297
|
+
mediaUrl: string$2().nullable()
|
|
17298
|
+
});
|
|
17299
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17300
|
+
var ListGroupsQueryInput = object({
|
|
17301
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17302
|
+
deviceIds: array(number()),
|
|
17303
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17304
|
+
since: number().optional(),
|
|
17305
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17306
|
+
until: number().optional(),
|
|
17307
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17308
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17309
|
+
cursor: string$2().optional()
|
|
17310
|
+
});
|
|
17311
|
+
var ListGroupsPageSchema = object({
|
|
17312
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17313
|
+
nextCursor: string$2().nullable()
|
|
17314
|
+
});
|
|
17178
17315
|
var KeyEventQueryInput = object({
|
|
17179
17316
|
deviceId: number(),
|
|
17180
17317
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17250,7 +17387,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17250
17387
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17251
17388
|
plates: number().int(),
|
|
17252
17389
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17253
|
-
embeddings: number().int()
|
|
17390
|
+
embeddings: number().int(),
|
|
17391
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17392
|
+
groups: number().int()
|
|
17254
17393
|
});
|
|
17255
17394
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17256
17395
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17396,7 +17535,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17396
17535
|
* stationary registry). Default false: the timeline lists passages,
|
|
17397
17536
|
* not parking records (operator decision, 2026-08-15). */
|
|
17398
17537
|
includeStationary: boolean().optional()
|
|
17399
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17538
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17539
|
+
deviceId: number(),
|
|
17540
|
+
groupId: string$2().min(1)
|
|
17541
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17400
17542
|
kind: "mutation",
|
|
17401
17543
|
auth: "admin"
|
|
17402
17544
|
}), 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({
|
|
@@ -17478,6 +17620,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17478
17620
|
}), method(object({ jobId: string$2() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string$2() }), object({ cancelled: boolean() }), {
|
|
17479
17621
|
kind: "mutation",
|
|
17480
17622
|
auth: "admin"
|
|
17623
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string$2() }), {
|
|
17624
|
+
kind: "mutation",
|
|
17625
|
+
auth: "admin"
|
|
17626
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17627
|
+
kind: "query",
|
|
17628
|
+
auth: "admin"
|
|
17629
|
+
}), method(object({ jobId: string$2() }), object({ cancelled: boolean() }), {
|
|
17630
|
+
kind: "mutation",
|
|
17631
|
+
auth: "admin"
|
|
17481
17632
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17482
17633
|
kind: "query",
|
|
17483
17634
|
auth: "admin"
|
|
@@ -17632,6 +17783,11 @@ object({
|
|
|
17632
17783
|
"jpeg"
|
|
17633
17784
|
])
|
|
17634
17785
|
});
|
|
17786
|
+
/**
|
|
17787
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17788
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17789
|
+
* other process or execution group.
|
|
17790
|
+
*/
|
|
17635
17791
|
var FrameRefSchema = object({
|
|
17636
17792
|
registryId: string$2().min(1),
|
|
17637
17793
|
id: string$2().min(1),
|
|
@@ -17706,7 +17862,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17706
17862
|
sizeMB: number()
|
|
17707
17863
|
})),
|
|
17708
17864
|
group: ModelVariantGroupSchema.optional(),
|
|
17709
|
-
legacy: boolean().optional()
|
|
17865
|
+
legacy: boolean().optional(),
|
|
17866
|
+
provider: ModelProviderIdSchema.optional()
|
|
17710
17867
|
});
|
|
17711
17868
|
var ConfigFieldBridge = custom();
|
|
17712
17869
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -19836,7 +19993,7 @@ method(object({
|
|
|
19836
19993
|
* linking rather than produce an eternal token.
|
|
19837
19994
|
*/
|
|
19838
19995
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19839
|
-
}), object({ token: string$2() })), method(object({ token: string$2() }), SsoBridgeClaimsSchema.nullable());
|
|
19996
|
+
}), object({ token: string$2() }), { auth: "admin" }), method(object({ token: string$2() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19840
19997
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19841
19998
|
providerId: string$2().min(1),
|
|
19842
19999
|
displayName: string$2().min(1),
|
|
@@ -19931,10 +20088,13 @@ var EvictResultSchema = object({
|
|
|
19931
20088
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19932
20089
|
exhausted: boolean()
|
|
19933
20090
|
});
|
|
19934
|
-
method(object({ locationId: string$2() }), EvictableUsageSchema), method(object({
|
|
20091
|
+
method(object({ locationId: string$2() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19935
20092
|
locationId: string$2(),
|
|
19936
20093
|
targetBytes: number().int().positive()
|
|
19937
|
-
}), EvictResultSchema, {
|
|
20094
|
+
}), EvictResultSchema, {
|
|
20095
|
+
kind: "mutation",
|
|
20096
|
+
auth: "admin"
|
|
20097
|
+
});
|
|
19938
20098
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string$2() }), {
|
|
19939
20099
|
kind: "mutation",
|
|
19940
20100
|
auth: "admin"
|
|
@@ -19994,26 +20154,50 @@ var ReadChunkInputSchema = object({
|
|
|
19994
20154
|
length: number()
|
|
19995
20155
|
});
|
|
19996
20156
|
var EndDownloadInputSchema = object({ downloadId: string$2() });
|
|
19997
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string$2(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20157
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string$2(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19998
20158
|
location: StorageLocationSchema,
|
|
19999
20159
|
relativePath: string$2()
|
|
20000
|
-
}), string$2()), method(object({
|
|
20160
|
+
}), string$2(), { auth: "admin" }), method(object({
|
|
20001
20161
|
location: StorageLocationSchema,
|
|
20002
20162
|
relativePath: string$2(),
|
|
20003
20163
|
data: _instanceof(Uint8Array)
|
|
20004
|
-
}), _void(), {
|
|
20164
|
+
}), _void(), {
|
|
20165
|
+
kind: "mutation",
|
|
20166
|
+
auth: "admin"
|
|
20167
|
+
}), method(object({
|
|
20005
20168
|
location: StorageLocationSchema,
|
|
20006
20169
|
relativePath: string$2()
|
|
20007
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
20170
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
20008
20171
|
location: StorageLocationSchema,
|
|
20009
20172
|
relativePath: string$2()
|
|
20010
|
-
}), boolean()), method(object({
|
|
20173
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
20011
20174
|
location: StorageLocationSchema,
|
|
20012
20175
|
prefix: string$2().optional()
|
|
20013
|
-
}), array(string$2()).readonly()), method(object({
|
|
20176
|
+
}), array(string$2()).readonly(), { auth: "admin" }), method(object({
|
|
20014
20177
|
location: StorageLocationSchema,
|
|
20015
20178
|
relativePath: string$2()
|
|
20016
|
-
}), _void(), {
|
|
20179
|
+
}), _void(), {
|
|
20180
|
+
kind: "mutation",
|
|
20181
|
+
auth: "admin"
|
|
20182
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
20183
|
+
kind: "mutation",
|
|
20184
|
+
auth: "admin"
|
|
20185
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
20186
|
+
kind: "mutation",
|
|
20187
|
+
auth: "admin"
|
|
20188
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
20189
|
+
kind: "mutation",
|
|
20190
|
+
auth: "admin"
|
|
20191
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
20192
|
+
kind: "mutation",
|
|
20193
|
+
auth: "admin"
|
|
20194
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
20195
|
+
kind: "mutation",
|
|
20196
|
+
auth: "admin"
|
|
20197
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
20198
|
+
kind: "mutation",
|
|
20199
|
+
auth: "admin"
|
|
20200
|
+
});
|
|
20017
20201
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20018
20202
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20019
20203
|
var ProfileSettingsBagSchema = record(string$2(), unknown());
|
|
@@ -20271,7 +20455,8 @@ method(object({
|
|
|
20271
20455
|
access: "create"
|
|
20272
20456
|
}), method(object({ userId: string$2().optional() }), object({ optionsJSON: record(string$2(), unknown()) }), {
|
|
20273
20457
|
kind: "mutation",
|
|
20274
|
-
access: "view"
|
|
20458
|
+
access: "view",
|
|
20459
|
+
auth: "admin"
|
|
20275
20460
|
}), method(object({
|
|
20276
20461
|
/** Required — the user the assertion belongs to (verified). */
|
|
20277
20462
|
userId: string$2(),
|
|
@@ -20279,10 +20464,12 @@ method(object({
|
|
|
20279
20464
|
response: record(string$2(), unknown())
|
|
20280
20465
|
}), object({ verified: boolean() }), {
|
|
20281
20466
|
kind: "mutation",
|
|
20282
|
-
access: "view"
|
|
20467
|
+
access: "view",
|
|
20468
|
+
auth: "admin"
|
|
20283
20469
|
}), method(object({}), object({ optionsJSON: record(string$2(), unknown()) }), {
|
|
20284
20470
|
kind: "mutation",
|
|
20285
|
-
access: "view"
|
|
20471
|
+
access: "view",
|
|
20472
|
+
auth: "admin"
|
|
20286
20473
|
}), method(object({
|
|
20287
20474
|
/** AuthenticationResponseJSON from the browser. */
|
|
20288
20475
|
response: record(string$2(), unknown()) }), object({
|
|
@@ -20290,7 +20477,8 @@ response: record(string$2(), unknown()) }), object({
|
|
|
20290
20477
|
userId: string$2().nullable()
|
|
20291
20478
|
}), {
|
|
20292
20479
|
kind: "mutation",
|
|
20293
|
-
access: "view"
|
|
20480
|
+
access: "view",
|
|
20481
|
+
auth: "admin"
|
|
20294
20482
|
}), method(object({ userId: string$2() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20295
20483
|
userId: string$2(),
|
|
20296
20484
|
credentialId: string$2()
|
|
@@ -20462,7 +20650,19 @@ var VectorStatsResultSchema = object({
|
|
|
20462
20650
|
/** False when the backend ranks approximately. */
|
|
20463
20651
|
exact: boolean()
|
|
20464
20652
|
});
|
|
20465
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20653
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20654
|
+
kind: "mutation",
|
|
20655
|
+
auth: "admin"
|
|
20656
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20657
|
+
kind: "mutation",
|
|
20658
|
+
auth: "admin"
|
|
20659
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20660
|
+
kind: "mutation",
|
|
20661
|
+
auth: "admin"
|
|
20662
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20663
|
+
kind: "mutation",
|
|
20664
|
+
auth: "admin"
|
|
20665
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20466
20666
|
var ClipSchema = object({
|
|
20467
20667
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20468
20668
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -22932,7 +23132,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
22932
23132
|
sizeBytes: number(),
|
|
22933
23133
|
timestamp: number()
|
|
22934
23134
|
});
|
|
22935
|
-
method(
|
|
23135
|
+
method(object({
|
|
23136
|
+
/**
|
|
23137
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
23138
|
+
*
|
|
23139
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
23140
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
23141
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
23142
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
23143
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
23144
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
23145
|
+
*
|
|
23146
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
23147
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
23148
|
+
*
|
|
23149
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
23150
|
+
* next train** — the hub router validates cap inputs against its own
|
|
23151
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
23152
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
23153
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
23154
|
+
*/
|
|
23155
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string$2().min(1) }), IdentitySchema, {
|
|
22936
23156
|
kind: "mutation",
|
|
22937
23157
|
auth: "admin"
|
|
22938
23158
|
}), method(object({
|
|
@@ -25820,7 +26040,14 @@ var PlateInfoSchema = object({
|
|
|
25820
26040
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25821
26041
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25822
26042
|
keyFrameMediaKey: string$2().optional(),
|
|
25823
|
-
base64: string$2().optional()
|
|
26043
|
+
base64: string$2().optional(),
|
|
26044
|
+
/**
|
|
26045
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
26046
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
26047
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
26048
|
+
* left at its `true` default.
|
|
26049
|
+
*/
|
|
26050
|
+
cropUrl: string$2().optional()
|
|
25824
26051
|
});
|
|
25825
26052
|
var MediaFileLiteSchema = object({
|
|
25826
26053
|
key: string$2(),
|
|
@@ -25838,14 +26065,34 @@ var PlateClusterSchema = object({
|
|
|
25838
26065
|
});
|
|
25839
26066
|
method(object({
|
|
25840
26067
|
deviceId: number().int().optional(),
|
|
25841
|
-
limit: number().int().positive().optional()
|
|
26068
|
+
limit: number().int().positive().optional(),
|
|
26069
|
+
/**
|
|
26070
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
26071
|
+
* behaviour, kept so no caller breaks.
|
|
26072
|
+
*
|
|
26073
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
26074
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
26075
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
26076
|
+
* metadata without them — and the browser then caches the images.
|
|
26077
|
+
*
|
|
26078
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
26079
|
+
* plates were the one gallery list left without it.
|
|
26080
|
+
*
|
|
26081
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
26082
|
+
* next train.** The hub router validates cap inputs against its own
|
|
26083
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
26084
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
26085
|
+
*/
|
|
26086
|
+
includeCrops: boolean().optional()
|
|
25842
26087
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
25843
26088
|
deviceId: number().int(),
|
|
25844
26089
|
trackId: string$2()
|
|
25845
26090
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string$2() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
25846
26091
|
text: string$2().min(1),
|
|
25847
26092
|
maxDistance: number().int().min(0).optional(),
|
|
25848
|
-
limit: number().int().positive().optional()
|
|
26093
|
+
limit: number().int().positive().optional(),
|
|
26094
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
26095
|
+
includeCrops: boolean().optional()
|
|
25849
26096
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
25850
26097
|
maxDistance: number().int().min(0).optional(),
|
|
25851
26098
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -25859,7 +26106,13 @@ method(object({
|
|
|
25859
26106
|
}), method(object({ plateId: string$2() }), _void(), {
|
|
25860
26107
|
kind: "mutation",
|
|
25861
26108
|
auth: "admin"
|
|
25862
|
-
}), method(
|
|
26109
|
+
}), method(object({
|
|
26110
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
26111
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
26112
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
26113
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
26114
|
+
* resolves to `false` and is exactly the intended default. */
|
|
26115
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string$2().min(1) }), VehicleSchema, {
|
|
25863
26116
|
kind: "mutation",
|
|
25864
26117
|
auth: "admin"
|
|
25865
26118
|
}), method(object({
|
|
@@ -31344,6 +31597,12 @@ Object.freeze({
|
|
|
31344
31597
|
addonId: null,
|
|
31345
31598
|
access: "view"
|
|
31346
31599
|
},
|
|
31600
|
+
"deviceManager.getBindingsBatch": {
|
|
31601
|
+
capName: "device-manager",
|
|
31602
|
+
capScope: "system",
|
|
31603
|
+
addonId: null,
|
|
31604
|
+
access: "view"
|
|
31605
|
+
},
|
|
31347
31606
|
"deviceManager.getChildren": {
|
|
31348
31607
|
capName: "device-manager",
|
|
31349
31608
|
capScope: "system",
|
|
@@ -31404,6 +31663,12 @@ Object.freeze({
|
|
|
31404
31663
|
addonId: null,
|
|
31405
31664
|
access: "view"
|
|
31406
31665
|
},
|
|
31666
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31667
|
+
capName: "device-manager",
|
|
31668
|
+
capScope: "system",
|
|
31669
|
+
addonId: null,
|
|
31670
|
+
access: "view"
|
|
31671
|
+
},
|
|
31407
31672
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31408
31673
|
capName: "device-manager",
|
|
31409
31674
|
capScope: "system",
|
|
@@ -33108,6 +33373,12 @@ Object.freeze({
|
|
|
33108
33373
|
addonId: null,
|
|
33109
33374
|
access: "create"
|
|
33110
33375
|
},
|
|
33376
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
33377
|
+
capName: "pipeline-analytics",
|
|
33378
|
+
capScope: "device",
|
|
33379
|
+
addonId: null,
|
|
33380
|
+
access: "create"
|
|
33381
|
+
},
|
|
33111
33382
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
33112
33383
|
capName: "pipeline-analytics",
|
|
33113
33384
|
capScope: "device",
|
|
@@ -33174,6 +33445,12 @@ Object.freeze({
|
|
|
33174
33445
|
addonId: null,
|
|
33175
33446
|
access: "view"
|
|
33176
33447
|
},
|
|
33448
|
+
"pipelineAnalytics.getGroup": {
|
|
33449
|
+
capName: "pipeline-analytics",
|
|
33450
|
+
capScope: "device",
|
|
33451
|
+
addonId: null,
|
|
33452
|
+
access: "view"
|
|
33453
|
+
},
|
|
33177
33454
|
"pipelineAnalytics.getKeyEvents": {
|
|
33178
33455
|
capName: "pipeline-analytics",
|
|
33179
33456
|
capScope: "device",
|
|
@@ -33258,6 +33535,12 @@ Object.freeze({
|
|
|
33258
33535
|
addonId: null,
|
|
33259
33536
|
access: "view"
|
|
33260
33537
|
},
|
|
33538
|
+
"pipelineAnalytics.listGroups": {
|
|
33539
|
+
capName: "pipeline-analytics",
|
|
33540
|
+
capScope: "device",
|
|
33541
|
+
addonId: null,
|
|
33542
|
+
access: "view"
|
|
33543
|
+
},
|
|
33261
33544
|
"pipelineAnalytics.listOpsLog": {
|
|
33262
33545
|
capName: "pipeline-analytics",
|
|
33263
33546
|
capScope: "device",
|
|
@@ -33270,6 +33553,12 @@ Object.freeze({
|
|
|
33270
33553
|
addonId: null,
|
|
33271
33554
|
access: "view"
|
|
33272
33555
|
},
|
|
33556
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
33557
|
+
capName: "pipeline-analytics",
|
|
33558
|
+
capScope: "device",
|
|
33559
|
+
addonId: null,
|
|
33560
|
+
access: "view"
|
|
33561
|
+
},
|
|
33273
33562
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
33274
33563
|
capName: "pipeline-analytics",
|
|
33275
33564
|
capScope: "device",
|
|
@@ -33348,6 +33637,12 @@ Object.freeze({
|
|
|
33348
33637
|
addonId: null,
|
|
33349
33638
|
access: "create"
|
|
33350
33639
|
},
|
|
33640
|
+
"pipelineAnalytics.relocateMedia": {
|
|
33641
|
+
capName: "pipeline-analytics",
|
|
33642
|
+
capScope: "device",
|
|
33643
|
+
addonId: null,
|
|
33644
|
+
access: "create"
|
|
33645
|
+
},
|
|
33351
33646
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
33352
33647
|
capName: "pipeline-analytics",
|
|
33353
33648
|
capScope: "device",
|
|
@@ -36039,6 +36334,11 @@ Object.freeze({
|
|
|
36039
36334
|
form: "single",
|
|
36040
36335
|
optional: false
|
|
36041
36336
|
}],
|
|
36337
|
+
"deviceManager.getBindingsBatch": [{
|
|
36338
|
+
name: "deviceIds",
|
|
36339
|
+
form: "array",
|
|
36340
|
+
optional: false
|
|
36341
|
+
}],
|
|
36042
36342
|
"deviceManager.getChildren": [{
|
|
36043
36343
|
name: "parentDeviceId",
|
|
36044
36344
|
form: "single",
|
|
@@ -36084,6 +36384,11 @@ Object.freeze({
|
|
|
36084
36384
|
form: "single",
|
|
36085
36385
|
optional: false
|
|
36086
36386
|
}],
|
|
36387
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36388
|
+
name: "deviceIds",
|
|
36389
|
+
form: "array",
|
|
36390
|
+
optional: false
|
|
36391
|
+
}],
|
|
36087
36392
|
"deviceManager.getSettingsSchema": [{
|
|
36088
36393
|
name: "deviceId",
|
|
36089
36394
|
form: "single",
|
|
@@ -36104,6 +36409,11 @@ Object.freeze({
|
|
|
36104
36409
|
form: "single",
|
|
36105
36410
|
optional: false
|
|
36106
36411
|
}],
|
|
36412
|
+
"deviceManager.listAll": [{
|
|
36413
|
+
name: "deviceIds",
|
|
36414
|
+
form: "array",
|
|
36415
|
+
optional: true
|
|
36416
|
+
}],
|
|
36107
36417
|
"deviceManager.loadConfig": [{
|
|
36108
36418
|
name: "deviceId",
|
|
36109
36419
|
form: "single",
|
|
@@ -36677,6 +36987,11 @@ Object.freeze({
|
|
|
36677
36987
|
form: "single",
|
|
36678
36988
|
optional: false
|
|
36679
36989
|
}],
|
|
36990
|
+
"pipelineAnalytics.getGroup": [{
|
|
36991
|
+
name: "deviceId",
|
|
36992
|
+
form: "single",
|
|
36993
|
+
optional: false
|
|
36994
|
+
}],
|
|
36680
36995
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36681
36996
|
name: "deviceId",
|
|
36682
36997
|
form: "single",
|
|
@@ -36732,6 +37047,11 @@ Object.freeze({
|
|
|
36732
37047
|
form: "array",
|
|
36733
37048
|
optional: false
|
|
36734
37049
|
}],
|
|
37050
|
+
"pipelineAnalytics.listGroups": [{
|
|
37051
|
+
name: "deviceIds",
|
|
37052
|
+
form: "array",
|
|
37053
|
+
optional: false
|
|
37054
|
+
}],
|
|
36735
37055
|
"pipelineAnalytics.listOpsLog": [{
|
|
36736
37056
|
name: "deviceId",
|
|
36737
37057
|
form: "single",
|