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