@camstack/addon-provider-unifi 0.2.27 → 0.2.29
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
|
@@ -5801,6 +5801,13 @@ var BaseAddon = class {
|
|
|
5801
5801
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5802
5802
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5803
5803
|
_registeredCapNames = [];
|
|
5804
|
+
/**
|
|
5805
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5806
|
+
* defaults look like stored config when the store is down — a forked
|
|
5807
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5808
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5809
|
+
*/
|
|
5810
|
+
settingsStoreReady = false;
|
|
5804
5811
|
/** Default config values. Provided via constructor. */
|
|
5805
5812
|
defaults;
|
|
5806
5813
|
constructor(defaults) {
|
|
@@ -6201,7 +6208,9 @@ var BaseAddon = class {
|
|
|
6201
6208
|
];
|
|
6202
6209
|
let lastErr;
|
|
6203
6210
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6204
|
-
|
|
6211
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6212
|
+
this.settingsStoreReady = true;
|
|
6213
|
+
return stored;
|
|
6205
6214
|
} catch (err) {
|
|
6206
6215
|
lastErr = err;
|
|
6207
6216
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6209,6 +6218,7 @@ var BaseAddon = class {
|
|
|
6209
6218
|
if (attempt === delaysMs.length) break;
|
|
6210
6219
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6211
6220
|
}
|
|
6221
|
+
this.settingsStoreReady = false;
|
|
6212
6222
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6213
6223
|
return {};
|
|
6214
6224
|
}
|
|
@@ -6620,7 +6630,7 @@ function method(input, output, options) {
|
|
|
6620
6630
|
input,
|
|
6621
6631
|
output,
|
|
6622
6632
|
kind: options?.kind ?? "query",
|
|
6623
|
-
auth: options
|
|
6633
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6624
6634
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6625
6635
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6626
6636
|
timeoutMs: options?.timeoutMs
|
|
@@ -6644,7 +6654,7 @@ function event(data) {
|
|
|
6644
6654
|
}
|
|
6645
6655
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6646
6656
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6647
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6657
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6648
6658
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6649
6659
|
DeviceType["Camera"] = "camera";
|
|
6650
6660
|
DeviceType["Hub"] = "hub";
|
|
@@ -6965,7 +6975,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6965
6975
|
}({});
|
|
6966
6976
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6967
6977
|
var VersionOutputSchema = object({ version: string() });
|
|
6968
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6978
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6969
6979
|
/**
|
|
6970
6980
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6971
6981
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7591,24 +7601,6 @@ var RecordingRetentionSchema = object({
|
|
|
7591
7601
|
maxSizeGb: number().min(0).optional()
|
|
7592
7602
|
});
|
|
7593
7603
|
/**
|
|
7594
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7595
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7596
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7597
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7598
|
-
*
|
|
7599
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7600
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7601
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7602
|
-
* written with.
|
|
7603
|
-
*/
|
|
7604
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7605
|
-
"minimal",
|
|
7606
|
-
"low",
|
|
7607
|
-
"standard",
|
|
7608
|
-
"high",
|
|
7609
|
-
"max"
|
|
7610
|
-
]);
|
|
7611
|
-
/**
|
|
7612
7604
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7613
7605
|
*
|
|
7614
7606
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7616,7 +7608,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7616
7608
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7617
7609
|
*
|
|
7618
7610
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7619
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7611
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7612
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7613
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7614
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7615
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7620
7616
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7621
7617
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7622
7618
|
*/
|
|
@@ -7639,14 +7635,7 @@ var RecordingConfigSchema = object({
|
|
|
7639
7635
|
* "off" is the absence of a covering band, never a band value.
|
|
7640
7636
|
*/
|
|
7641
7637
|
bands: array(RecordingBandSchema).default([]),
|
|
7642
|
-
retention: RecordingRetentionSchema.optional()
|
|
7643
|
-
/**
|
|
7644
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7645
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7646
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7647
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7648
|
-
*/
|
|
7649
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7638
|
+
retention: RecordingRetentionSchema.optional()
|
|
7650
7639
|
}).strict();
|
|
7651
7640
|
/**
|
|
7652
7641
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7722,10 +7711,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7722
7711
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7723
7712
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7724
7713
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7725
|
-
var
|
|
7714
|
+
var RelocateMediaInputSchema = object({
|
|
7726
7715
|
toLocationId: string(),
|
|
7727
7716
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7728
|
-
})
|
|
7717
|
+
});
|
|
7718
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7729
7719
|
/** The independently selectable logical storage classes. `recordings`
|
|
7730
7720
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7731
7721
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8020,7 +8010,26 @@ var LabelDefinitionSchema = object({
|
|
|
8020
8010
|
description: string().optional(),
|
|
8021
8011
|
icon: string().optional()
|
|
8022
8012
|
});
|
|
8023
|
-
|
|
8013
|
+
/**
|
|
8014
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8015
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8016
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8017
|
+
* detection pipeline executor actually routes.
|
|
8018
|
+
*
|
|
8019
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8020
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8021
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8022
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8023
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8024
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8025
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8026
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8027
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8028
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8029
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8030
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8031
|
+
*/
|
|
8032
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8024
8033
|
mapping: record(string(), _enum([
|
|
8025
8034
|
"person",
|
|
8026
8035
|
"vehicle",
|
|
@@ -8112,6 +8121,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8112
8121
|
*/
|
|
8113
8122
|
resolution: number().int().positive().optional()
|
|
8114
8123
|
});
|
|
8124
|
+
var ModelProviderIdSchema = _enum([
|
|
8125
|
+
"camstack",
|
|
8126
|
+
"frigate",
|
|
8127
|
+
"scrypted",
|
|
8128
|
+
"custom"
|
|
8129
|
+
]);
|
|
8115
8130
|
var ModelCatalogEntrySchema = object({
|
|
8116
8131
|
id: string(),
|
|
8117
8132
|
name: string(),
|
|
@@ -8209,11 +8224,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
8209
8224
|
*/
|
|
8210
8225
|
group: ModelVariantGroupSchema.optional(),
|
|
8211
8226
|
/**
|
|
8227
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8228
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8229
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8230
|
+
*/
|
|
8231
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8232
|
+
/**
|
|
8212
8233
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8213
8234
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8214
8235
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8215
8236
|
*/
|
|
8216
|
-
classMap:
|
|
8237
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8217
8238
|
});
|
|
8218
8239
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8219
8240
|
format: literal("openvino"),
|
|
@@ -8243,7 +8264,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8243
8264
|
"segmentation"
|
|
8244
8265
|
]),
|
|
8245
8266
|
faceAlignment: boolean().optional(),
|
|
8246
|
-
classMap:
|
|
8267
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8247
8268
|
});
|
|
8248
8269
|
var ConvertResultSchema = object({
|
|
8249
8270
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9106,7 +9127,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9106
9127
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9107
9128
|
sectionLabel: string().optional()
|
|
9108
9129
|
});
|
|
9109
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9130
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9110
9131
|
var AddonHttpRouteSchema = object({
|
|
9111
9132
|
method: _enum([
|
|
9112
9133
|
"GET",
|
|
@@ -9341,7 +9362,7 @@ var WidgetMetadataSchema = object({
|
|
|
9341
9362
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9342
9363
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9343
9364
|
});
|
|
9344
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9365
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9345
9366
|
/**
|
|
9346
9367
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9347
9368
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -10965,7 +10986,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10965
10986
|
stepId: string(),
|
|
10966
10987
|
entry: ModelCatalogEntrySchema
|
|
10967
10988
|
});
|
|
10968
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10989
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10969
10990
|
/**
|
|
10970
10991
|
* Query filter for settings-store collections.
|
|
10971
10992
|
*/
|
|
@@ -11052,7 +11073,8 @@ method(object({
|
|
|
11052
11073
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11053
11074
|
namespace: string().optional(),
|
|
11054
11075
|
collection: string(),
|
|
11055
|
-
filter: QueryFilterSchema.optional()
|
|
11076
|
+
filter: QueryFilterSchema.optional(),
|
|
11077
|
+
columns: array(string()).readonly().optional()
|
|
11056
11078
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
11057
11079
|
namespace: string().optional(),
|
|
11058
11080
|
collection: string(),
|
|
@@ -11115,46 +11137,87 @@ var EngineInfoSchema = object({
|
|
|
11115
11137
|
kind: _enum(["relational", "vector"]),
|
|
11116
11138
|
displayName: string()
|
|
11117
11139
|
});
|
|
11118
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11140
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11119
11141
|
namespace: string().optional(),
|
|
11120
11142
|
collection: string(),
|
|
11121
11143
|
key: string()
|
|
11122
|
-
}), unknown()), method(object({
|
|
11144
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11123
11145
|
namespace: string().optional(),
|
|
11124
11146
|
collection: string(),
|
|
11125
11147
|
key: string(),
|
|
11126
11148
|
value: unknown()
|
|
11127
|
-
}), _void(), {
|
|
11149
|
+
}), _void(), {
|
|
11150
|
+
kind: "mutation",
|
|
11151
|
+
auth: "admin"
|
|
11152
|
+
}), method(object({
|
|
11128
11153
|
namespace: string().optional(),
|
|
11129
11154
|
collection: string(),
|
|
11130
|
-
filter: QueryFilterSchema.optional()
|
|
11131
|
-
|
|
11155
|
+
filter: QueryFilterSchema.optional(),
|
|
11156
|
+
/**
|
|
11157
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11158
|
+
*
|
|
11159
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11160
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11161
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11162
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11163
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11164
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11165
|
+
*
|
|
11166
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11167
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11168
|
+
* interface the engine destructures from. The field existed on both
|
|
11169
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11170
|
+
* registered provider against `InferProvider<cap>` —
|
|
11171
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11172
|
+
*
|
|
11173
|
+
* It is declared here anyway, and must stay in step with
|
|
11174
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11175
|
+
* to be able to see that this call carries a projection.
|
|
11176
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11177
|
+
*/
|
|
11178
|
+
columns: array(string()).readonly().optional()
|
|
11179
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11132
11180
|
namespace: string().optional(),
|
|
11133
11181
|
collection: string(),
|
|
11134
11182
|
record: SettingsRecordSchema
|
|
11135
|
-
}), _void(), {
|
|
11183
|
+
}), _void(), {
|
|
11184
|
+
kind: "mutation",
|
|
11185
|
+
auth: "admin"
|
|
11186
|
+
}), method(object({
|
|
11136
11187
|
namespace: string().optional(),
|
|
11137
11188
|
collection: string(),
|
|
11138
11189
|
id: string(),
|
|
11139
11190
|
data: record(string(), unknown())
|
|
11140
|
-
}), _void(), {
|
|
11191
|
+
}), _void(), {
|
|
11192
|
+
kind: "mutation",
|
|
11193
|
+
auth: "admin"
|
|
11194
|
+
}), method(object({
|
|
11141
11195
|
namespace: string().optional(),
|
|
11142
11196
|
collection: string(),
|
|
11143
11197
|
key: string()
|
|
11144
|
-
}), _void(), {
|
|
11198
|
+
}), _void(), {
|
|
11199
|
+
kind: "mutation",
|
|
11200
|
+
auth: "admin"
|
|
11201
|
+
}), method(object({
|
|
11145
11202
|
namespace: string().optional(),
|
|
11146
11203
|
collection: string(),
|
|
11147
11204
|
filter: MutationFilterSchema
|
|
11148
|
-
}), object({ deleted: number().int() }), {
|
|
11205
|
+
}), object({ deleted: number().int() }), {
|
|
11206
|
+
kind: "mutation",
|
|
11207
|
+
auth: "admin"
|
|
11208
|
+
}), method(object({
|
|
11149
11209
|
namespace: string().optional(),
|
|
11150
11210
|
collection: string(),
|
|
11151
11211
|
filter: MutationFilterSchema,
|
|
11152
11212
|
data: record(string(), unknown())
|
|
11153
|
-
}), object({ updated: number().int() }), {
|
|
11213
|
+
}), object({ updated: number().int() }), {
|
|
11214
|
+
kind: "mutation",
|
|
11215
|
+
auth: "admin"
|
|
11216
|
+
}), method(object({
|
|
11154
11217
|
namespace: string().optional(),
|
|
11155
11218
|
collection: string(),
|
|
11156
11219
|
filter: QueryFilterSchema.optional()
|
|
11157
|
-
}), number()), method(object({
|
|
11220
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11158
11221
|
namespace: string().optional(),
|
|
11159
11222
|
collection: string(),
|
|
11160
11223
|
field: string(),
|
|
@@ -11164,15 +11227,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11164
11227
|
}), array(object({
|
|
11165
11228
|
bucket: number().int(),
|
|
11166
11229
|
count: number().int()
|
|
11167
|
-
})).readonly()), method(object({
|
|
11230
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11168
11231
|
namespace: string().optional(),
|
|
11169
11232
|
collection: string()
|
|
11170
|
-
}), boolean()), method(object({
|
|
11233
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11171
11234
|
namespace: string().optional(),
|
|
11172
11235
|
collection: string(),
|
|
11173
11236
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11174
11237
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11175
|
-
}), _void(), {
|
|
11238
|
+
}), _void(), {
|
|
11239
|
+
kind: "mutation",
|
|
11240
|
+
auth: "admin"
|
|
11241
|
+
});
|
|
11176
11242
|
/**
|
|
11177
11243
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11178
11244
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -12000,6 +12066,27 @@ var LinkedDeviceSchema = object({
|
|
|
12000
12066
|
features: array(string()),
|
|
12001
12067
|
producesTrackedEvents: boolean().optional()
|
|
12002
12068
|
});
|
|
12069
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12070
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12071
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12072
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12073
|
+
deviceId: number(),
|
|
12074
|
+
mode: LinkedDevicesModeSchema,
|
|
12075
|
+
devices: array(LinkedDeviceSchema)
|
|
12076
|
+
});
|
|
12077
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12078
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12079
|
+
* object literal is exactly how the three drift apart. */
|
|
12080
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12081
|
+
deviceId: number(),
|
|
12082
|
+
entries: array(object({
|
|
12083
|
+
capName: string(),
|
|
12084
|
+
kind: _enum(["native", "wrapped"]),
|
|
12085
|
+
providerAddonId: string(),
|
|
12086
|
+
providerNodeId: string(),
|
|
12087
|
+
nativeAddonId: string()
|
|
12088
|
+
}))
|
|
12089
|
+
});
|
|
12003
12090
|
var SavedDeviceRowSchema = object({
|
|
12004
12091
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12005
12092
|
id: number(),
|
|
@@ -12225,11 +12312,25 @@ method(object({
|
|
|
12225
12312
|
projection: _enum(["full", "slim"]).optional(),
|
|
12226
12313
|
/** Return only camera devices. Filtering server-side instead of
|
|
12227
12314
|
* shipping 293 rows to find 12. */
|
|
12228
|
-
isCamera: boolean().optional()
|
|
12315
|
+
isCamera: boolean().optional(),
|
|
12316
|
+
/**
|
|
12317
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12318
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12319
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12320
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12321
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12322
|
+
* refetches on the reconcile interval, on a phone.
|
|
12323
|
+
*
|
|
12324
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12325
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12326
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12327
|
+
* it answers today and the caller filters as it already does.
|
|
12328
|
+
*/
|
|
12329
|
+
deviceIds: array(number()).optional()
|
|
12229
12330
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12230
12331
|
mode: LinkedDevicesModeSchema,
|
|
12231
12332
|
devices: array(LinkedDeviceSchema)
|
|
12232
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12333
|
+
})), 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({
|
|
12233
12334
|
deviceId: number(),
|
|
12234
12335
|
values: record(string(), unknown())
|
|
12235
12336
|
}), object({ success: literal(true) }), {
|
|
@@ -12256,25 +12357,7 @@ method(object({
|
|
|
12256
12357
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12257
12358
|
kind: "mutation",
|
|
12258
12359
|
auth: "admin"
|
|
12259
|
-
}), method(object({ deviceId: number() }), object({
|
|
12260
|
-
deviceId: number(),
|
|
12261
|
-
entries: array(object({
|
|
12262
|
-
capName: string(),
|
|
12263
|
-
kind: _enum(["native", "wrapped"]),
|
|
12264
|
-
providerAddonId: string(),
|
|
12265
|
-
providerNodeId: string(),
|
|
12266
|
-
nativeAddonId: string()
|
|
12267
|
-
}))
|
|
12268
|
-
})), method(object({}), array(object({
|
|
12269
|
-
deviceId: number(),
|
|
12270
|
-
entries: array(object({
|
|
12271
|
-
capName: string(),
|
|
12272
|
-
kind: _enum(["native", "wrapped"]),
|
|
12273
|
-
providerAddonId: string(),
|
|
12274
|
-
providerNodeId: string(),
|
|
12275
|
-
nativeAddonId: string()
|
|
12276
|
-
}))
|
|
12277
|
-
}))), method(object({
|
|
12360
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12278
12361
|
deviceId: number(),
|
|
12279
12362
|
capName: string(),
|
|
12280
12363
|
wrapperAddonId: string(),
|
|
@@ -12445,7 +12528,7 @@ method(object({
|
|
|
12445
12528
|
crop: _instanceof(Uint8Array),
|
|
12446
12529
|
width: number(),
|
|
12447
12530
|
height: number()
|
|
12448
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12531
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12449
12532
|
/**
|
|
12450
12533
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12451
12534
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12738,19 +12821,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12738
12821
|
runtime: ManagedRuntimeConfigSchema,
|
|
12739
12822
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12740
12823
|
timeoutMs: number().int().positive().optional()
|
|
12741
|
-
}), LlmGenerateResultSchema, {
|
|
12824
|
+
}), LlmGenerateResultSchema, {
|
|
12825
|
+
kind: "mutation",
|
|
12826
|
+
auth: "admin"
|
|
12827
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12742
12828
|
kind: "mutation",
|
|
12743
12829
|
auth: "admin"
|
|
12744
12830
|
}), method(object({}), _void(), {
|
|
12745
12831
|
kind: "mutation",
|
|
12746
12832
|
auth: "admin"
|
|
12747
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12833
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12748
12834
|
kind: "mutation",
|
|
12749
12835
|
auth: "admin"
|
|
12750
12836
|
}), method(object({ file: string() }), _void(), {
|
|
12751
12837
|
kind: "mutation",
|
|
12752
12838
|
auth: "admin"
|
|
12753
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12839
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12754
12840
|
/**
|
|
12755
12841
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12756
12842
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14684,12 +14770,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14684
14770
|
* there is no second switch that can disagree with the first and every rule
|
|
14685
14771
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14686
14772
|
*
|
|
14687
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14688
|
-
*
|
|
14689
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14690
|
-
*
|
|
14691
|
-
*
|
|
14692
|
-
*
|
|
14773
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14774
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14775
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14776
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14777
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14778
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14779
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14780
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14781
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14693
14782
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14694
14783
|
* the condition: at least `hitPercent`% of the samples over
|
|
14695
14784
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14716,14 +14805,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14716
14805
|
* an operator who typed `dog` mean the same thing.
|
|
14717
14806
|
*/
|
|
14718
14807
|
var NcAudioConditionSchema = object({
|
|
14719
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14808
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14720
14809
|
labels: array(string().min(1)).min(1).optional(),
|
|
14721
14810
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14722
14811
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14723
14812
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14724
14813
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14725
14814
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14726
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14815
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14816
|
+
/**
|
|
14817
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14818
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14819
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14820
|
+
*/
|
|
14821
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14822
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14823
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14727
14824
|
});
|
|
14728
14825
|
/**
|
|
14729
14826
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16250,7 +16347,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16250
16347
|
*/
|
|
16251
16348
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16252
16349
|
});
|
|
16253
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16350
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16254
16351
|
/**
|
|
16255
16352
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16256
16353
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -17097,6 +17194,46 @@ var RecentTracksPageSchema = object({
|
|
|
17097
17194
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17098
17195
|
nextCursor: string().nullable()
|
|
17099
17196
|
});
|
|
17197
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17198
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17199
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17200
|
+
id: string(),
|
|
17201
|
+
deviceId: number().int(),
|
|
17202
|
+
openedAt: number().int(),
|
|
17203
|
+
closedAt: number().int(),
|
|
17204
|
+
timestamp: number().int(),
|
|
17205
|
+
memberCount: number().int(),
|
|
17206
|
+
memberTrackIds: array(string()).readonly(),
|
|
17207
|
+
className: string(),
|
|
17208
|
+
classes: array(string()).readonly(),
|
|
17209
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17210
|
+
mediaUrl: string().nullable(),
|
|
17211
|
+
singleton: boolean()
|
|
17212
|
+
});
|
|
17213
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17214
|
+
trackId: string(),
|
|
17215
|
+
deviceId: number().int(),
|
|
17216
|
+
className: string(),
|
|
17217
|
+
firstSeen: number().int(),
|
|
17218
|
+
lastSeen: number().int(),
|
|
17219
|
+
mediaUrl: string().nullable()
|
|
17220
|
+
});
|
|
17221
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17222
|
+
var ListGroupsQueryInput = object({
|
|
17223
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17224
|
+
deviceIds: array(number()),
|
|
17225
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17226
|
+
since: number().optional(),
|
|
17227
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17228
|
+
until: number().optional(),
|
|
17229
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17230
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17231
|
+
cursor: string().optional()
|
|
17232
|
+
});
|
|
17233
|
+
var ListGroupsPageSchema = object({
|
|
17234
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17235
|
+
nextCursor: string().nullable()
|
|
17236
|
+
});
|
|
17100
17237
|
var KeyEventQueryInput = object({
|
|
17101
17238
|
deviceId: number(),
|
|
17102
17239
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17172,7 +17309,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17172
17309
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17173
17310
|
plates: number().int(),
|
|
17174
17311
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17175
|
-
embeddings: number().int()
|
|
17312
|
+
embeddings: number().int(),
|
|
17313
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17314
|
+
groups: number().int()
|
|
17176
17315
|
});
|
|
17177
17316
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17178
17317
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17318,7 +17457,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17318
17457
|
* stationary registry). Default false: the timeline lists passages,
|
|
17319
17458
|
* not parking records (operator decision, 2026-08-15). */
|
|
17320
17459
|
includeStationary: boolean().optional()
|
|
17321
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17460
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17461
|
+
deviceId: number(),
|
|
17462
|
+
groupId: string().min(1)
|
|
17463
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17322
17464
|
kind: "mutation",
|
|
17323
17465
|
auth: "admin"
|
|
17324
17466
|
}), 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({
|
|
@@ -17400,6 +17542,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17400
17542
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17401
17543
|
kind: "mutation",
|
|
17402
17544
|
auth: "admin"
|
|
17545
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17546
|
+
kind: "mutation",
|
|
17547
|
+
auth: "admin"
|
|
17548
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17549
|
+
kind: "query",
|
|
17550
|
+
auth: "admin"
|
|
17551
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17552
|
+
kind: "mutation",
|
|
17553
|
+
auth: "admin"
|
|
17403
17554
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17404
17555
|
kind: "query",
|
|
17405
17556
|
auth: "admin"
|
|
@@ -17554,6 +17705,11 @@ object({
|
|
|
17554
17705
|
"jpeg"
|
|
17555
17706
|
])
|
|
17556
17707
|
});
|
|
17708
|
+
/**
|
|
17709
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17710
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17711
|
+
* other process or execution group.
|
|
17712
|
+
*/
|
|
17557
17713
|
var FrameRefSchema = object({
|
|
17558
17714
|
registryId: string().min(1),
|
|
17559
17715
|
id: string().min(1),
|
|
@@ -17628,7 +17784,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17628
17784
|
sizeMB: number()
|
|
17629
17785
|
})),
|
|
17630
17786
|
group: ModelVariantGroupSchema.optional(),
|
|
17631
|
-
legacy: boolean().optional()
|
|
17787
|
+
legacy: boolean().optional(),
|
|
17788
|
+
provider: ModelProviderIdSchema.optional()
|
|
17632
17789
|
});
|
|
17633
17790
|
var ConfigFieldBridge = custom();
|
|
17634
17791
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -19758,7 +19915,7 @@ method(object({
|
|
|
19758
19915
|
* linking rather than produce an eternal token.
|
|
19759
19916
|
*/
|
|
19760
19917
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19761
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
19918
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19762
19919
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19763
19920
|
providerId: string().min(1),
|
|
19764
19921
|
displayName: string().min(1),
|
|
@@ -19853,10 +20010,13 @@ var EvictResultSchema = object({
|
|
|
19853
20010
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19854
20011
|
exhausted: boolean()
|
|
19855
20012
|
});
|
|
19856
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
20013
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19857
20014
|
locationId: string(),
|
|
19858
20015
|
targetBytes: number().int().positive()
|
|
19859
|
-
}), EvictResultSchema, {
|
|
20016
|
+
}), EvictResultSchema, {
|
|
20017
|
+
kind: "mutation",
|
|
20018
|
+
auth: "admin"
|
|
20019
|
+
});
|
|
19860
20020
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19861
20021
|
kind: "mutation",
|
|
19862
20022
|
auth: "admin"
|
|
@@ -19916,26 +20076,50 @@ var ReadChunkInputSchema = object({
|
|
|
19916
20076
|
length: number()
|
|
19917
20077
|
});
|
|
19918
20078
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
19919
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20079
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19920
20080
|
location: StorageLocationSchema,
|
|
19921
20081
|
relativePath: string()
|
|
19922
|
-
}), string()), method(object({
|
|
20082
|
+
}), string(), { auth: "admin" }), method(object({
|
|
19923
20083
|
location: StorageLocationSchema,
|
|
19924
20084
|
relativePath: string(),
|
|
19925
20085
|
data: _instanceof(Uint8Array)
|
|
19926
|
-
}), _void(), {
|
|
20086
|
+
}), _void(), {
|
|
20087
|
+
kind: "mutation",
|
|
20088
|
+
auth: "admin"
|
|
20089
|
+
}), method(object({
|
|
19927
20090
|
location: StorageLocationSchema,
|
|
19928
20091
|
relativePath: string()
|
|
19929
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
20092
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
19930
20093
|
location: StorageLocationSchema,
|
|
19931
20094
|
relativePath: string()
|
|
19932
|
-
}), boolean()), method(object({
|
|
20095
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
19933
20096
|
location: StorageLocationSchema,
|
|
19934
20097
|
prefix: string().optional()
|
|
19935
|
-
}), array(string()).readonly()), method(object({
|
|
20098
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
19936
20099
|
location: StorageLocationSchema,
|
|
19937
20100
|
relativePath: string()
|
|
19938
|
-
}), _void(), {
|
|
20101
|
+
}), _void(), {
|
|
20102
|
+
kind: "mutation",
|
|
20103
|
+
auth: "admin"
|
|
20104
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
20105
|
+
kind: "mutation",
|
|
20106
|
+
auth: "admin"
|
|
20107
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
20108
|
+
kind: "mutation",
|
|
20109
|
+
auth: "admin"
|
|
20110
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
20111
|
+
kind: "mutation",
|
|
20112
|
+
auth: "admin"
|
|
20113
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
20114
|
+
kind: "mutation",
|
|
20115
|
+
auth: "admin"
|
|
20116
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
20117
|
+
kind: "mutation",
|
|
20118
|
+
auth: "admin"
|
|
20119
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
20120
|
+
kind: "mutation",
|
|
20121
|
+
auth: "admin"
|
|
20122
|
+
});
|
|
19939
20123
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19940
20124
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19941
20125
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -20193,7 +20377,8 @@ method(object({
|
|
|
20193
20377
|
access: "create"
|
|
20194
20378
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20195
20379
|
kind: "mutation",
|
|
20196
|
-
access: "view"
|
|
20380
|
+
access: "view",
|
|
20381
|
+
auth: "admin"
|
|
20197
20382
|
}), method(object({
|
|
20198
20383
|
/** Required — the user the assertion belongs to (verified). */
|
|
20199
20384
|
userId: string(),
|
|
@@ -20201,10 +20386,12 @@ method(object({
|
|
|
20201
20386
|
response: record(string(), unknown())
|
|
20202
20387
|
}), object({ verified: boolean() }), {
|
|
20203
20388
|
kind: "mutation",
|
|
20204
|
-
access: "view"
|
|
20389
|
+
access: "view",
|
|
20390
|
+
auth: "admin"
|
|
20205
20391
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20206
20392
|
kind: "mutation",
|
|
20207
|
-
access: "view"
|
|
20393
|
+
access: "view",
|
|
20394
|
+
auth: "admin"
|
|
20208
20395
|
}), method(object({
|
|
20209
20396
|
/** AuthenticationResponseJSON from the browser. */
|
|
20210
20397
|
response: record(string(), unknown()) }), object({
|
|
@@ -20212,7 +20399,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20212
20399
|
userId: string().nullable()
|
|
20213
20400
|
}), {
|
|
20214
20401
|
kind: "mutation",
|
|
20215
|
-
access: "view"
|
|
20402
|
+
access: "view",
|
|
20403
|
+
auth: "admin"
|
|
20216
20404
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20217
20405
|
userId: string(),
|
|
20218
20406
|
credentialId: string()
|
|
@@ -20384,7 +20572,19 @@ var VectorStatsResultSchema = object({
|
|
|
20384
20572
|
/** False when the backend ranks approximately. */
|
|
20385
20573
|
exact: boolean()
|
|
20386
20574
|
});
|
|
20387
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20575
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20576
|
+
kind: "mutation",
|
|
20577
|
+
auth: "admin"
|
|
20578
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20579
|
+
kind: "mutation",
|
|
20580
|
+
auth: "admin"
|
|
20581
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20582
|
+
kind: "mutation",
|
|
20583
|
+
auth: "admin"
|
|
20584
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20585
|
+
kind: "mutation",
|
|
20586
|
+
auth: "admin"
|
|
20587
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20388
20588
|
var ClipSchema = object({
|
|
20389
20589
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20390
20590
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -22854,7 +23054,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
22854
23054
|
sizeBytes: number(),
|
|
22855
23055
|
timestamp: number()
|
|
22856
23056
|
});
|
|
22857
|
-
method(
|
|
23057
|
+
method(object({
|
|
23058
|
+
/**
|
|
23059
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
23060
|
+
*
|
|
23061
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
23062
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
23063
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
23064
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
23065
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
23066
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
23067
|
+
*
|
|
23068
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
23069
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
23070
|
+
*
|
|
23071
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
23072
|
+
* next train** — the hub router validates cap inputs against its own
|
|
23073
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
23074
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
23075
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
23076
|
+
*/
|
|
23077
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
22858
23078
|
kind: "mutation",
|
|
22859
23079
|
auth: "admin"
|
|
22860
23080
|
}), method(object({
|
|
@@ -25742,7 +25962,14 @@ var PlateInfoSchema = object({
|
|
|
25742
25962
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25743
25963
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25744
25964
|
keyFrameMediaKey: string().optional(),
|
|
25745
|
-
base64: string().optional()
|
|
25965
|
+
base64: string().optional(),
|
|
25966
|
+
/**
|
|
25967
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
25968
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
25969
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
25970
|
+
* left at its `true` default.
|
|
25971
|
+
*/
|
|
25972
|
+
cropUrl: string().optional()
|
|
25746
25973
|
});
|
|
25747
25974
|
var MediaFileLiteSchema = object({
|
|
25748
25975
|
key: string(),
|
|
@@ -25760,14 +25987,34 @@ var PlateClusterSchema = object({
|
|
|
25760
25987
|
});
|
|
25761
25988
|
method(object({
|
|
25762
25989
|
deviceId: number().int().optional(),
|
|
25763
|
-
limit: number().int().positive().optional()
|
|
25990
|
+
limit: number().int().positive().optional(),
|
|
25991
|
+
/**
|
|
25992
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
25993
|
+
* behaviour, kept so no caller breaks.
|
|
25994
|
+
*
|
|
25995
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
25996
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
25997
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
25998
|
+
* metadata without them — and the browser then caches the images.
|
|
25999
|
+
*
|
|
26000
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
26001
|
+
* plates were the one gallery list left without it.
|
|
26002
|
+
*
|
|
26003
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
26004
|
+
* next train.** The hub router validates cap inputs against its own
|
|
26005
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
26006
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
26007
|
+
*/
|
|
26008
|
+
includeCrops: boolean().optional()
|
|
25764
26009
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
25765
26010
|
deviceId: number().int(),
|
|
25766
26011
|
trackId: string()
|
|
25767
26012
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
25768
26013
|
text: string().min(1),
|
|
25769
26014
|
maxDistance: number().int().min(0).optional(),
|
|
25770
|
-
limit: number().int().positive().optional()
|
|
26015
|
+
limit: number().int().positive().optional(),
|
|
26016
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
26017
|
+
includeCrops: boolean().optional()
|
|
25771
26018
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
25772
26019
|
maxDistance: number().int().min(0).optional(),
|
|
25773
26020
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -25781,7 +26028,13 @@ method(object({
|
|
|
25781
26028
|
}), method(object({ plateId: string() }), _void(), {
|
|
25782
26029
|
kind: "mutation",
|
|
25783
26030
|
auth: "admin"
|
|
25784
|
-
}), method(
|
|
26031
|
+
}), method(object({
|
|
26032
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
26033
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
26034
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
26035
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
26036
|
+
* resolves to `false` and is exactly the intended default. */
|
|
26037
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
25785
26038
|
kind: "mutation",
|
|
25786
26039
|
auth: "admin"
|
|
25787
26040
|
}), method(object({
|
|
@@ -31266,6 +31519,12 @@ Object.freeze({
|
|
|
31266
31519
|
addonId: null,
|
|
31267
31520
|
access: "view"
|
|
31268
31521
|
},
|
|
31522
|
+
"deviceManager.getBindingsBatch": {
|
|
31523
|
+
capName: "device-manager",
|
|
31524
|
+
capScope: "system",
|
|
31525
|
+
addonId: null,
|
|
31526
|
+
access: "view"
|
|
31527
|
+
},
|
|
31269
31528
|
"deviceManager.getChildren": {
|
|
31270
31529
|
capName: "device-manager",
|
|
31271
31530
|
capScope: "system",
|
|
@@ -31326,6 +31585,12 @@ Object.freeze({
|
|
|
31326
31585
|
addonId: null,
|
|
31327
31586
|
access: "view"
|
|
31328
31587
|
},
|
|
31588
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31589
|
+
capName: "device-manager",
|
|
31590
|
+
capScope: "system",
|
|
31591
|
+
addonId: null,
|
|
31592
|
+
access: "view"
|
|
31593
|
+
},
|
|
31329
31594
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31330
31595
|
capName: "device-manager",
|
|
31331
31596
|
capScope: "system",
|
|
@@ -33030,6 +33295,12 @@ Object.freeze({
|
|
|
33030
33295
|
addonId: null,
|
|
33031
33296
|
access: "create"
|
|
33032
33297
|
},
|
|
33298
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
33299
|
+
capName: "pipeline-analytics",
|
|
33300
|
+
capScope: "device",
|
|
33301
|
+
addonId: null,
|
|
33302
|
+
access: "create"
|
|
33303
|
+
},
|
|
33033
33304
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
33034
33305
|
capName: "pipeline-analytics",
|
|
33035
33306
|
capScope: "device",
|
|
@@ -33096,6 +33367,12 @@ Object.freeze({
|
|
|
33096
33367
|
addonId: null,
|
|
33097
33368
|
access: "view"
|
|
33098
33369
|
},
|
|
33370
|
+
"pipelineAnalytics.getGroup": {
|
|
33371
|
+
capName: "pipeline-analytics",
|
|
33372
|
+
capScope: "device",
|
|
33373
|
+
addonId: null,
|
|
33374
|
+
access: "view"
|
|
33375
|
+
},
|
|
33099
33376
|
"pipelineAnalytics.getKeyEvents": {
|
|
33100
33377
|
capName: "pipeline-analytics",
|
|
33101
33378
|
capScope: "device",
|
|
@@ -33180,6 +33457,12 @@ Object.freeze({
|
|
|
33180
33457
|
addonId: null,
|
|
33181
33458
|
access: "view"
|
|
33182
33459
|
},
|
|
33460
|
+
"pipelineAnalytics.listGroups": {
|
|
33461
|
+
capName: "pipeline-analytics",
|
|
33462
|
+
capScope: "device",
|
|
33463
|
+
addonId: null,
|
|
33464
|
+
access: "view"
|
|
33465
|
+
},
|
|
33183
33466
|
"pipelineAnalytics.listOpsLog": {
|
|
33184
33467
|
capName: "pipeline-analytics",
|
|
33185
33468
|
capScope: "device",
|
|
@@ -33192,6 +33475,12 @@ Object.freeze({
|
|
|
33192
33475
|
addonId: null,
|
|
33193
33476
|
access: "view"
|
|
33194
33477
|
},
|
|
33478
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
33479
|
+
capName: "pipeline-analytics",
|
|
33480
|
+
capScope: "device",
|
|
33481
|
+
addonId: null,
|
|
33482
|
+
access: "view"
|
|
33483
|
+
},
|
|
33195
33484
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
33196
33485
|
capName: "pipeline-analytics",
|
|
33197
33486
|
capScope: "device",
|
|
@@ -33270,6 +33559,12 @@ Object.freeze({
|
|
|
33270
33559
|
addonId: null,
|
|
33271
33560
|
access: "create"
|
|
33272
33561
|
},
|
|
33562
|
+
"pipelineAnalytics.relocateMedia": {
|
|
33563
|
+
capName: "pipeline-analytics",
|
|
33564
|
+
capScope: "device",
|
|
33565
|
+
addonId: null,
|
|
33566
|
+
access: "create"
|
|
33567
|
+
},
|
|
33273
33568
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
33274
33569
|
capName: "pipeline-analytics",
|
|
33275
33570
|
capScope: "device",
|
|
@@ -35961,6 +36256,11 @@ Object.freeze({
|
|
|
35961
36256
|
form: "single",
|
|
35962
36257
|
optional: false
|
|
35963
36258
|
}],
|
|
36259
|
+
"deviceManager.getBindingsBatch": [{
|
|
36260
|
+
name: "deviceIds",
|
|
36261
|
+
form: "array",
|
|
36262
|
+
optional: false
|
|
36263
|
+
}],
|
|
35964
36264
|
"deviceManager.getChildren": [{
|
|
35965
36265
|
name: "parentDeviceId",
|
|
35966
36266
|
form: "single",
|
|
@@ -36006,6 +36306,11 @@ Object.freeze({
|
|
|
36006
36306
|
form: "single",
|
|
36007
36307
|
optional: false
|
|
36008
36308
|
}],
|
|
36309
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36310
|
+
name: "deviceIds",
|
|
36311
|
+
form: "array",
|
|
36312
|
+
optional: false
|
|
36313
|
+
}],
|
|
36009
36314
|
"deviceManager.getSettingsSchema": [{
|
|
36010
36315
|
name: "deviceId",
|
|
36011
36316
|
form: "single",
|
|
@@ -36026,6 +36331,11 @@ Object.freeze({
|
|
|
36026
36331
|
form: "single",
|
|
36027
36332
|
optional: false
|
|
36028
36333
|
}],
|
|
36334
|
+
"deviceManager.listAll": [{
|
|
36335
|
+
name: "deviceIds",
|
|
36336
|
+
form: "array",
|
|
36337
|
+
optional: true
|
|
36338
|
+
}],
|
|
36029
36339
|
"deviceManager.loadConfig": [{
|
|
36030
36340
|
name: "deviceId",
|
|
36031
36341
|
form: "single",
|
|
@@ -36599,6 +36909,11 @@ Object.freeze({
|
|
|
36599
36909
|
form: "single",
|
|
36600
36910
|
optional: false
|
|
36601
36911
|
}],
|
|
36912
|
+
"pipelineAnalytics.getGroup": [{
|
|
36913
|
+
name: "deviceId",
|
|
36914
|
+
form: "single",
|
|
36915
|
+
optional: false
|
|
36916
|
+
}],
|
|
36602
36917
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36603
36918
|
name: "deviceId",
|
|
36604
36919
|
form: "single",
|
|
@@ -36654,6 +36969,11 @@ Object.freeze({
|
|
|
36654
36969
|
form: "array",
|
|
36655
36970
|
optional: false
|
|
36656
36971
|
}],
|
|
36972
|
+
"pipelineAnalytics.listGroups": [{
|
|
36973
|
+
name: "deviceIds",
|
|
36974
|
+
form: "array",
|
|
36975
|
+
optional: false
|
|
36976
|
+
}],
|
|
36657
36977
|
"pipelineAnalytics.listOpsLog": [{
|
|
36658
36978
|
name: "deviceId",
|
|
36659
36979
|
form: "single",
|