@camstack/addon-decoder-nodeav 1.2.26 → 1.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/index.js +431 -111
- package/dist/index.mjs +431 -111
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5805,6 +5805,13 @@ var BaseAddon = class {
|
|
|
5805
5805
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5806
5806
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5807
5807
|
_registeredCapNames = [];
|
|
5808
|
+
/**
|
|
5809
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5810
|
+
* defaults look like stored config when the store is down — a forked
|
|
5811
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5812
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5813
|
+
*/
|
|
5814
|
+
settingsStoreReady = false;
|
|
5808
5815
|
/** Default config values. Provided via constructor. */
|
|
5809
5816
|
defaults;
|
|
5810
5817
|
constructor(defaults) {
|
|
@@ -6205,7 +6212,9 @@ var BaseAddon = class {
|
|
|
6205
6212
|
];
|
|
6206
6213
|
let lastErr;
|
|
6207
6214
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6208
|
-
|
|
6215
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6216
|
+
this.settingsStoreReady = true;
|
|
6217
|
+
return stored;
|
|
6209
6218
|
} catch (err) {
|
|
6210
6219
|
lastErr = err;
|
|
6211
6220
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6213,6 +6222,7 @@ var BaseAddon = class {
|
|
|
6213
6222
|
if (attempt === delaysMs.length) break;
|
|
6214
6223
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6215
6224
|
}
|
|
6225
|
+
this.settingsStoreReady = false;
|
|
6216
6226
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6217
6227
|
return {};
|
|
6218
6228
|
}
|
|
@@ -6624,7 +6634,7 @@ function method(input, output, options) {
|
|
|
6624
6634
|
input,
|
|
6625
6635
|
output,
|
|
6626
6636
|
kind: options?.kind ?? "query",
|
|
6627
|
-
auth: options
|
|
6637
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6628
6638
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6629
6639
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6630
6640
|
timeoutMs: options?.timeoutMs
|
|
@@ -6644,7 +6654,7 @@ function systemMethod(input, output, options) {
|
|
|
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()`.
|
|
@@ -10900,7 +10921,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10900
10921
|
stepId: string(),
|
|
10901
10922
|
entry: ModelCatalogEntrySchema
|
|
10902
10923
|
});
|
|
10903
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10924
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10904
10925
|
/**
|
|
10905
10926
|
* Query filter for settings-store collections.
|
|
10906
10927
|
*/
|
|
@@ -10987,7 +11008,8 @@ method(object({
|
|
|
10987
11008
|
}), _void(), { kind: "mutation" }), method(object({
|
|
10988
11009
|
namespace: string().optional(),
|
|
10989
11010
|
collection: string(),
|
|
10990
|
-
filter: QueryFilterSchema.optional()
|
|
11011
|
+
filter: QueryFilterSchema.optional(),
|
|
11012
|
+
columns: array(string()).readonly().optional()
|
|
10991
11013
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
10992
11014
|
namespace: string().optional(),
|
|
10993
11015
|
collection: string(),
|
|
@@ -11050,46 +11072,87 @@ var EngineInfoSchema = object({
|
|
|
11050
11072
|
kind: _enum(["relational", "vector"]),
|
|
11051
11073
|
displayName: string()
|
|
11052
11074
|
});
|
|
11053
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11075
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11054
11076
|
namespace: string().optional(),
|
|
11055
11077
|
collection: string(),
|
|
11056
11078
|
key: string()
|
|
11057
|
-
}), unknown()), method(object({
|
|
11079
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11058
11080
|
namespace: string().optional(),
|
|
11059
11081
|
collection: string(),
|
|
11060
11082
|
key: string(),
|
|
11061
11083
|
value: unknown()
|
|
11062
|
-
}), _void(), {
|
|
11084
|
+
}), _void(), {
|
|
11085
|
+
kind: "mutation",
|
|
11086
|
+
auth: "admin"
|
|
11087
|
+
}), method(object({
|
|
11063
11088
|
namespace: string().optional(),
|
|
11064
11089
|
collection: string(),
|
|
11065
|
-
filter: QueryFilterSchema.optional()
|
|
11066
|
-
|
|
11090
|
+
filter: QueryFilterSchema.optional(),
|
|
11091
|
+
/**
|
|
11092
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11093
|
+
*
|
|
11094
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11095
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11096
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11097
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11098
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11099
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11100
|
+
*
|
|
11101
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11102
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11103
|
+
* interface the engine destructures from. The field existed on both
|
|
11104
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11105
|
+
* registered provider against `InferProvider<cap>` —
|
|
11106
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11107
|
+
*
|
|
11108
|
+
* It is declared here anyway, and must stay in step with
|
|
11109
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11110
|
+
* to be able to see that this call carries a projection.
|
|
11111
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11112
|
+
*/
|
|
11113
|
+
columns: array(string()).readonly().optional()
|
|
11114
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11067
11115
|
namespace: string().optional(),
|
|
11068
11116
|
collection: string(),
|
|
11069
11117
|
record: SettingsRecordSchema
|
|
11070
|
-
}), _void(), {
|
|
11118
|
+
}), _void(), {
|
|
11119
|
+
kind: "mutation",
|
|
11120
|
+
auth: "admin"
|
|
11121
|
+
}), method(object({
|
|
11071
11122
|
namespace: string().optional(),
|
|
11072
11123
|
collection: string(),
|
|
11073
11124
|
id: string(),
|
|
11074
11125
|
data: record(string(), unknown())
|
|
11075
|
-
}), _void(), {
|
|
11126
|
+
}), _void(), {
|
|
11127
|
+
kind: "mutation",
|
|
11128
|
+
auth: "admin"
|
|
11129
|
+
}), method(object({
|
|
11076
11130
|
namespace: string().optional(),
|
|
11077
11131
|
collection: string(),
|
|
11078
11132
|
key: string()
|
|
11079
|
-
}), _void(), {
|
|
11133
|
+
}), _void(), {
|
|
11134
|
+
kind: "mutation",
|
|
11135
|
+
auth: "admin"
|
|
11136
|
+
}), method(object({
|
|
11080
11137
|
namespace: string().optional(),
|
|
11081
11138
|
collection: string(),
|
|
11082
11139
|
filter: MutationFilterSchema
|
|
11083
|
-
}), object({ deleted: number().int() }), {
|
|
11140
|
+
}), object({ deleted: number().int() }), {
|
|
11141
|
+
kind: "mutation",
|
|
11142
|
+
auth: "admin"
|
|
11143
|
+
}), method(object({
|
|
11084
11144
|
namespace: string().optional(),
|
|
11085
11145
|
collection: string(),
|
|
11086
11146
|
filter: MutationFilterSchema,
|
|
11087
11147
|
data: record(string(), unknown())
|
|
11088
|
-
}), object({ updated: number().int() }), {
|
|
11148
|
+
}), object({ updated: number().int() }), {
|
|
11149
|
+
kind: "mutation",
|
|
11150
|
+
auth: "admin"
|
|
11151
|
+
}), method(object({
|
|
11089
11152
|
namespace: string().optional(),
|
|
11090
11153
|
collection: string(),
|
|
11091
11154
|
filter: QueryFilterSchema.optional()
|
|
11092
|
-
}), number()), method(object({
|
|
11155
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11093
11156
|
namespace: string().optional(),
|
|
11094
11157
|
collection: string(),
|
|
11095
11158
|
field: string(),
|
|
@@ -11099,15 +11162,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11099
11162
|
}), array(object({
|
|
11100
11163
|
bucket: number().int(),
|
|
11101
11164
|
count: number().int()
|
|
11102
|
-
})).readonly()), method(object({
|
|
11165
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11103
11166
|
namespace: string().optional(),
|
|
11104
11167
|
collection: string()
|
|
11105
|
-
}), boolean()), method(object({
|
|
11168
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11106
11169
|
namespace: string().optional(),
|
|
11107
11170
|
collection: string(),
|
|
11108
11171
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11109
11172
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11110
|
-
}), _void(), {
|
|
11173
|
+
}), _void(), {
|
|
11174
|
+
kind: "mutation",
|
|
11175
|
+
auth: "admin"
|
|
11176
|
+
});
|
|
11111
11177
|
/**
|
|
11112
11178
|
* Stable UI option list for the `hwaccel` setting. Decoder addons
|
|
11113
11179
|
* reuse this for `globalSettingsSchema()` so the dropdown is
|
|
@@ -11866,6 +11932,27 @@ var LinkedDeviceSchema = object({
|
|
|
11866
11932
|
features: array(string()),
|
|
11867
11933
|
producesTrackedEvents: boolean().optional()
|
|
11868
11934
|
});
|
|
11935
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
11936
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
11937
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
11938
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
11939
|
+
deviceId: number(),
|
|
11940
|
+
mode: LinkedDevicesModeSchema,
|
|
11941
|
+
devices: array(LinkedDeviceSchema)
|
|
11942
|
+
});
|
|
11943
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
11944
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
11945
|
+
* object literal is exactly how the three drift apart. */
|
|
11946
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
11947
|
+
deviceId: number(),
|
|
11948
|
+
entries: array(object({
|
|
11949
|
+
capName: string(),
|
|
11950
|
+
kind: _enum(["native", "wrapped"]),
|
|
11951
|
+
providerAddonId: string(),
|
|
11952
|
+
providerNodeId: string(),
|
|
11953
|
+
nativeAddonId: string()
|
|
11954
|
+
}))
|
|
11955
|
+
});
|
|
11869
11956
|
var SavedDeviceRowSchema = object({
|
|
11870
11957
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11871
11958
|
id: number(),
|
|
@@ -12091,11 +12178,25 @@ method(object({
|
|
|
12091
12178
|
projection: _enum(["full", "slim"]).optional(),
|
|
12092
12179
|
/** Return only camera devices. Filtering server-side instead of
|
|
12093
12180
|
* shipping 293 rows to find 12. */
|
|
12094
|
-
isCamera: boolean().optional()
|
|
12181
|
+
isCamera: boolean().optional(),
|
|
12182
|
+
/**
|
|
12183
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12184
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12185
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12186
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12187
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12188
|
+
* refetches on the reconcile interval, on a phone.
|
|
12189
|
+
*
|
|
12190
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12191
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12192
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12193
|
+
* it answers today and the caller filters as it already does.
|
|
12194
|
+
*/
|
|
12195
|
+
deviceIds: array(number()).optional()
|
|
12095
12196
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12096
12197
|
mode: LinkedDevicesModeSchema,
|
|
12097
12198
|
devices: array(LinkedDeviceSchema)
|
|
12098
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12199
|
+
})), 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({
|
|
12099
12200
|
deviceId: number(),
|
|
12100
12201
|
values: record(string(), unknown())
|
|
12101
12202
|
}), object({ success: literal(true) }), {
|
|
@@ -12122,25 +12223,7 @@ method(object({
|
|
|
12122
12223
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12123
12224
|
kind: "mutation",
|
|
12124
12225
|
auth: "admin"
|
|
12125
|
-
}), method(object({ deviceId: number() }), object({
|
|
12126
|
-
deviceId: number(),
|
|
12127
|
-
entries: array(object({
|
|
12128
|
-
capName: string(),
|
|
12129
|
-
kind: _enum(["native", "wrapped"]),
|
|
12130
|
-
providerAddonId: string(),
|
|
12131
|
-
providerNodeId: string(),
|
|
12132
|
-
nativeAddonId: string()
|
|
12133
|
-
}))
|
|
12134
|
-
})), method(object({}), array(object({
|
|
12135
|
-
deviceId: number(),
|
|
12136
|
-
entries: array(object({
|
|
12137
|
-
capName: string(),
|
|
12138
|
-
kind: _enum(["native", "wrapped"]),
|
|
12139
|
-
providerAddonId: string(),
|
|
12140
|
-
providerNodeId: string(),
|
|
12141
|
-
nativeAddonId: string()
|
|
12142
|
-
}))
|
|
12143
|
-
}))), method(object({
|
|
12226
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12144
12227
|
deviceId: number(),
|
|
12145
12228
|
capName: string(),
|
|
12146
12229
|
wrapperAddonId: string(),
|
|
@@ -12311,7 +12394,7 @@ method(object({
|
|
|
12311
12394
|
crop: _instanceof(Uint8Array),
|
|
12312
12395
|
width: number(),
|
|
12313
12396
|
height: number()
|
|
12314
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12397
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12315
12398
|
/**
|
|
12316
12399
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12317
12400
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12604,19 +12687,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12604
12687
|
runtime: ManagedRuntimeConfigSchema,
|
|
12605
12688
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12606
12689
|
timeoutMs: number().int().positive().optional()
|
|
12607
|
-
}), LlmGenerateResultSchema, {
|
|
12690
|
+
}), LlmGenerateResultSchema, {
|
|
12691
|
+
kind: "mutation",
|
|
12692
|
+
auth: "admin"
|
|
12693
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12608
12694
|
kind: "mutation",
|
|
12609
12695
|
auth: "admin"
|
|
12610
12696
|
}), method(object({}), _void(), {
|
|
12611
12697
|
kind: "mutation",
|
|
12612
12698
|
auth: "admin"
|
|
12613
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12699
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12614
12700
|
kind: "mutation",
|
|
12615
12701
|
auth: "admin"
|
|
12616
12702
|
}), method(object({ file: string() }), _void(), {
|
|
12617
12703
|
kind: "mutation",
|
|
12618
12704
|
auth: "admin"
|
|
12619
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12705
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12620
12706
|
/**
|
|
12621
12707
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12622
12708
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14512,12 +14598,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14512
14598
|
* there is no second switch that can disagree with the first and every rule
|
|
14513
14599
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14514
14600
|
*
|
|
14515
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14516
|
-
*
|
|
14517
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14518
|
-
*
|
|
14519
|
-
*
|
|
14520
|
-
*
|
|
14601
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14602
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14603
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14604
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14605
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14606
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14607
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14608
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14609
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14521
14610
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14522
14611
|
* the condition: at least `hitPercent`% of the samples over
|
|
14523
14612
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14544,14 +14633,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14544
14633
|
* an operator who typed `dog` mean the same thing.
|
|
14545
14634
|
*/
|
|
14546
14635
|
var NcAudioConditionSchema = object({
|
|
14547
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14636
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14548
14637
|
labels: array(string().min(1)).min(1).optional(),
|
|
14549
14638
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14550
14639
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14551
14640
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14552
14641
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14553
14642
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14554
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14643
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14644
|
+
/**
|
|
14645
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14646
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14647
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14648
|
+
*/
|
|
14649
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14650
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14651
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14555
14652
|
});
|
|
14556
14653
|
/**
|
|
14557
14654
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16078,7 +16175,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16078
16175
|
*/
|
|
16079
16176
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16080
16177
|
});
|
|
16081
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16178
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16082
16179
|
/**
|
|
16083
16180
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16084
16181
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -16925,6 +17022,46 @@ var RecentTracksPageSchema = object({
|
|
|
16925
17022
|
/** Cursor for the next page, or null when this page is the last. */
|
|
16926
17023
|
nextCursor: string().nullable()
|
|
16927
17024
|
});
|
|
17025
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17026
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17027
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17028
|
+
id: string(),
|
|
17029
|
+
deviceId: number().int(),
|
|
17030
|
+
openedAt: number().int(),
|
|
17031
|
+
closedAt: number().int(),
|
|
17032
|
+
timestamp: number().int(),
|
|
17033
|
+
memberCount: number().int(),
|
|
17034
|
+
memberTrackIds: array(string()).readonly(),
|
|
17035
|
+
className: string(),
|
|
17036
|
+
classes: array(string()).readonly(),
|
|
17037
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17038
|
+
mediaUrl: string().nullable(),
|
|
17039
|
+
singleton: boolean()
|
|
17040
|
+
});
|
|
17041
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17042
|
+
trackId: string(),
|
|
17043
|
+
deviceId: number().int(),
|
|
17044
|
+
className: string(),
|
|
17045
|
+
firstSeen: number().int(),
|
|
17046
|
+
lastSeen: number().int(),
|
|
17047
|
+
mediaUrl: string().nullable()
|
|
17048
|
+
});
|
|
17049
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17050
|
+
var ListGroupsQueryInput = object({
|
|
17051
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17052
|
+
deviceIds: array(number()),
|
|
17053
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17054
|
+
since: number().optional(),
|
|
17055
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17056
|
+
until: number().optional(),
|
|
17057
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17058
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17059
|
+
cursor: string().optional()
|
|
17060
|
+
});
|
|
17061
|
+
var ListGroupsPageSchema = object({
|
|
17062
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17063
|
+
nextCursor: string().nullable()
|
|
17064
|
+
});
|
|
16928
17065
|
var KeyEventQueryInput = object({
|
|
16929
17066
|
deviceId: number(),
|
|
16930
17067
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17000,7 +17137,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17000
17137
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17001
17138
|
plates: number().int(),
|
|
17002
17139
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17003
|
-
embeddings: number().int()
|
|
17140
|
+
embeddings: number().int(),
|
|
17141
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17142
|
+
groups: number().int()
|
|
17004
17143
|
});
|
|
17005
17144
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17006
17145
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17146,7 +17285,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17146
17285
|
* stationary registry). Default false: the timeline lists passages,
|
|
17147
17286
|
* not parking records (operator decision, 2026-08-15). */
|
|
17148
17287
|
includeStationary: boolean().optional()
|
|
17149
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17288
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17289
|
+
deviceId: number(),
|
|
17290
|
+
groupId: string().min(1)
|
|
17291
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17150
17292
|
kind: "mutation",
|
|
17151
17293
|
auth: "admin"
|
|
17152
17294
|
}), 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({
|
|
@@ -17228,6 +17370,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17228
17370
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17229
17371
|
kind: "mutation",
|
|
17230
17372
|
auth: "admin"
|
|
17373
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17374
|
+
kind: "mutation",
|
|
17375
|
+
auth: "admin"
|
|
17376
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17377
|
+
kind: "query",
|
|
17378
|
+
auth: "admin"
|
|
17379
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17380
|
+
kind: "mutation",
|
|
17381
|
+
auth: "admin"
|
|
17231
17382
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17232
17383
|
kind: "query",
|
|
17233
17384
|
auth: "admin"
|
|
@@ -17382,6 +17533,11 @@ object({
|
|
|
17382
17533
|
"jpeg"
|
|
17383
17534
|
])
|
|
17384
17535
|
});
|
|
17536
|
+
/**
|
|
17537
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17538
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17539
|
+
* other process or execution group.
|
|
17540
|
+
*/
|
|
17385
17541
|
var FrameRefSchema = object({
|
|
17386
17542
|
registryId: string().min(1),
|
|
17387
17543
|
id: string().min(1),
|
|
@@ -17456,7 +17612,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17456
17612
|
sizeMB: number()
|
|
17457
17613
|
})),
|
|
17458
17614
|
group: ModelVariantGroupSchema.optional(),
|
|
17459
|
-
legacy: boolean().optional()
|
|
17615
|
+
legacy: boolean().optional(),
|
|
17616
|
+
provider: ModelProviderIdSchema.optional()
|
|
17460
17617
|
});
|
|
17461
17618
|
var ConfigFieldBridge = custom();
|
|
17462
17619
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -19546,7 +19703,7 @@ method(object({
|
|
|
19546
19703
|
* linking rather than produce an eternal token.
|
|
19547
19704
|
*/
|
|
19548
19705
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19549
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
19706
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19550
19707
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19551
19708
|
providerId: string().min(1),
|
|
19552
19709
|
displayName: string().min(1),
|
|
@@ -19641,10 +19798,13 @@ var EvictResultSchema = object({
|
|
|
19641
19798
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19642
19799
|
exhausted: boolean()
|
|
19643
19800
|
});
|
|
19644
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
19801
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19645
19802
|
locationId: string(),
|
|
19646
19803
|
targetBytes: number().int().positive()
|
|
19647
|
-
}), EvictResultSchema, {
|
|
19804
|
+
}), EvictResultSchema, {
|
|
19805
|
+
kind: "mutation",
|
|
19806
|
+
auth: "admin"
|
|
19807
|
+
});
|
|
19648
19808
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19649
19809
|
kind: "mutation",
|
|
19650
19810
|
auth: "admin"
|
|
@@ -19704,26 +19864,50 @@ var ReadChunkInputSchema = object({
|
|
|
19704
19864
|
length: number()
|
|
19705
19865
|
});
|
|
19706
19866
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
19707
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19867
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19708
19868
|
location: StorageLocationSchema,
|
|
19709
19869
|
relativePath: string()
|
|
19710
|
-
}), string()), method(object({
|
|
19870
|
+
}), string(), { auth: "admin" }), method(object({
|
|
19711
19871
|
location: StorageLocationSchema,
|
|
19712
19872
|
relativePath: string(),
|
|
19713
19873
|
data: _instanceof(Uint8Array)
|
|
19714
|
-
}), _void(), {
|
|
19874
|
+
}), _void(), {
|
|
19875
|
+
kind: "mutation",
|
|
19876
|
+
auth: "admin"
|
|
19877
|
+
}), method(object({
|
|
19715
19878
|
location: StorageLocationSchema,
|
|
19716
19879
|
relativePath: string()
|
|
19717
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
19880
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
19718
19881
|
location: StorageLocationSchema,
|
|
19719
19882
|
relativePath: string()
|
|
19720
|
-
}), boolean()), method(object({
|
|
19883
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
19721
19884
|
location: StorageLocationSchema,
|
|
19722
19885
|
prefix: string().optional()
|
|
19723
|
-
}), array(string()).readonly()), method(object({
|
|
19886
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
19724
19887
|
location: StorageLocationSchema,
|
|
19725
19888
|
relativePath: string()
|
|
19726
|
-
}), _void(), {
|
|
19889
|
+
}), _void(), {
|
|
19890
|
+
kind: "mutation",
|
|
19891
|
+
auth: "admin"
|
|
19892
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
19893
|
+
kind: "mutation",
|
|
19894
|
+
auth: "admin"
|
|
19895
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
19896
|
+
kind: "mutation",
|
|
19897
|
+
auth: "admin"
|
|
19898
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
19899
|
+
kind: "mutation",
|
|
19900
|
+
auth: "admin"
|
|
19901
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
19902
|
+
kind: "mutation",
|
|
19903
|
+
auth: "admin"
|
|
19904
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
19905
|
+
kind: "mutation",
|
|
19906
|
+
auth: "admin"
|
|
19907
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
19908
|
+
kind: "mutation",
|
|
19909
|
+
auth: "admin"
|
|
19910
|
+
});
|
|
19727
19911
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19728
19912
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19729
19913
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -19981,7 +20165,8 @@ method(object({
|
|
|
19981
20165
|
access: "create"
|
|
19982
20166
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19983
20167
|
kind: "mutation",
|
|
19984
|
-
access: "view"
|
|
20168
|
+
access: "view",
|
|
20169
|
+
auth: "admin"
|
|
19985
20170
|
}), method(object({
|
|
19986
20171
|
/** Required — the user the assertion belongs to (verified). */
|
|
19987
20172
|
userId: string(),
|
|
@@ -19989,10 +20174,12 @@ method(object({
|
|
|
19989
20174
|
response: record(string(), unknown())
|
|
19990
20175
|
}), object({ verified: boolean() }), {
|
|
19991
20176
|
kind: "mutation",
|
|
19992
|
-
access: "view"
|
|
20177
|
+
access: "view",
|
|
20178
|
+
auth: "admin"
|
|
19993
20179
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19994
20180
|
kind: "mutation",
|
|
19995
|
-
access: "view"
|
|
20181
|
+
access: "view",
|
|
20182
|
+
auth: "admin"
|
|
19996
20183
|
}), method(object({
|
|
19997
20184
|
/** AuthenticationResponseJSON from the browser. */
|
|
19998
20185
|
response: record(string(), unknown()) }), object({
|
|
@@ -20000,7 +20187,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20000
20187
|
userId: string().nullable()
|
|
20001
20188
|
}), {
|
|
20002
20189
|
kind: "mutation",
|
|
20003
|
-
access: "view"
|
|
20190
|
+
access: "view",
|
|
20191
|
+
auth: "admin"
|
|
20004
20192
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20005
20193
|
userId: string(),
|
|
20006
20194
|
credentialId: string()
|
|
@@ -20172,7 +20360,19 @@ var VectorStatsResultSchema = object({
|
|
|
20172
20360
|
/** False when the backend ranks approximately. */
|
|
20173
20361
|
exact: boolean()
|
|
20174
20362
|
});
|
|
20175
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20363
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20364
|
+
kind: "mutation",
|
|
20365
|
+
auth: "admin"
|
|
20366
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20367
|
+
kind: "mutation",
|
|
20368
|
+
auth: "admin"
|
|
20369
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20370
|
+
kind: "mutation",
|
|
20371
|
+
auth: "admin"
|
|
20372
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20373
|
+
kind: "mutation",
|
|
20374
|
+
auth: "admin"
|
|
20375
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20176
20376
|
var ClipSchema = object({
|
|
20177
20377
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20178
20378
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -21895,7 +22095,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
21895
22095
|
sizeBytes: number(),
|
|
21896
22096
|
timestamp: number()
|
|
21897
22097
|
});
|
|
21898
|
-
method(
|
|
22098
|
+
method(object({
|
|
22099
|
+
/**
|
|
22100
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
22101
|
+
*
|
|
22102
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
22103
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
22104
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
22105
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
22106
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
22107
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
22108
|
+
*
|
|
22109
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
22110
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
22111
|
+
*
|
|
22112
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
22113
|
+
* next train** — the hub router validates cap inputs against its own
|
|
22114
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
22115
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
22116
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
22117
|
+
*/
|
|
22118
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
21899
22119
|
kind: "mutation",
|
|
21900
22120
|
auth: "admin"
|
|
21901
22121
|
}), method(object({
|
|
@@ -24040,7 +24260,14 @@ var PlateInfoSchema = object({
|
|
|
24040
24260
|
plateBbox: BoundingBoxSchema.optional(),
|
|
24041
24261
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
24042
24262
|
keyFrameMediaKey: string().optional(),
|
|
24043
|
-
base64: string().optional()
|
|
24263
|
+
base64: string().optional(),
|
|
24264
|
+
/**
|
|
24265
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
24266
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
24267
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
24268
|
+
* left at its `true` default.
|
|
24269
|
+
*/
|
|
24270
|
+
cropUrl: string().optional()
|
|
24044
24271
|
});
|
|
24045
24272
|
var MediaFileLiteSchema = object({
|
|
24046
24273
|
key: string(),
|
|
@@ -24058,14 +24285,34 @@ var PlateClusterSchema = object({
|
|
|
24058
24285
|
});
|
|
24059
24286
|
method(object({
|
|
24060
24287
|
deviceId: number().int().optional(),
|
|
24061
|
-
limit: number().int().positive().optional()
|
|
24288
|
+
limit: number().int().positive().optional(),
|
|
24289
|
+
/**
|
|
24290
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
24291
|
+
* behaviour, kept so no caller breaks.
|
|
24292
|
+
*
|
|
24293
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
24294
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
24295
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
24296
|
+
* metadata without them — and the browser then caches the images.
|
|
24297
|
+
*
|
|
24298
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
24299
|
+
* plates were the one gallery list left without it.
|
|
24300
|
+
*
|
|
24301
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
24302
|
+
* next train.** The hub router validates cap inputs against its own
|
|
24303
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
24304
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
24305
|
+
*/
|
|
24306
|
+
includeCrops: boolean().optional()
|
|
24062
24307
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
24063
24308
|
deviceId: number().int(),
|
|
24064
24309
|
trackId: string()
|
|
24065
24310
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
24066
24311
|
text: string().min(1),
|
|
24067
24312
|
maxDistance: number().int().min(0).optional(),
|
|
24068
|
-
limit: number().int().positive().optional()
|
|
24313
|
+
limit: number().int().positive().optional(),
|
|
24314
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
24315
|
+
includeCrops: boolean().optional()
|
|
24069
24316
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
24070
24317
|
maxDistance: number().int().min(0).optional(),
|
|
24071
24318
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -24079,7 +24326,13 @@ method(object({
|
|
|
24079
24326
|
}), method(object({ plateId: string() }), _void(), {
|
|
24080
24327
|
kind: "mutation",
|
|
24081
24328
|
auth: "admin"
|
|
24082
|
-
}), method(
|
|
24329
|
+
}), method(object({
|
|
24330
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
24331
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
24332
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
24333
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
24334
|
+
* resolves to `false` and is exactly the intended default. */
|
|
24335
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
24083
24336
|
kind: "mutation",
|
|
24084
24337
|
auth: "admin"
|
|
24085
24338
|
}), method(object({
|
|
@@ -27680,6 +27933,12 @@ Object.freeze({
|
|
|
27680
27933
|
addonId: null,
|
|
27681
27934
|
access: "view"
|
|
27682
27935
|
},
|
|
27936
|
+
"deviceManager.getBindingsBatch": {
|
|
27937
|
+
capName: "device-manager",
|
|
27938
|
+
capScope: "system",
|
|
27939
|
+
addonId: null,
|
|
27940
|
+
access: "view"
|
|
27941
|
+
},
|
|
27683
27942
|
"deviceManager.getChildren": {
|
|
27684
27943
|
capName: "device-manager",
|
|
27685
27944
|
capScope: "system",
|
|
@@ -27740,6 +27999,12 @@ Object.freeze({
|
|
|
27740
27999
|
addonId: null,
|
|
27741
28000
|
access: "view"
|
|
27742
28001
|
},
|
|
28002
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
28003
|
+
capName: "device-manager",
|
|
28004
|
+
capScope: "system",
|
|
28005
|
+
addonId: null,
|
|
28006
|
+
access: "view"
|
|
28007
|
+
},
|
|
27743
28008
|
"deviceManager.getRoleDisplayDefaults": {
|
|
27744
28009
|
capName: "device-manager",
|
|
27745
28010
|
capScope: "system",
|
|
@@ -29444,6 +29709,12 @@ Object.freeze({
|
|
|
29444
29709
|
addonId: null,
|
|
29445
29710
|
access: "create"
|
|
29446
29711
|
},
|
|
29712
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
29713
|
+
capName: "pipeline-analytics",
|
|
29714
|
+
capScope: "device",
|
|
29715
|
+
addonId: null,
|
|
29716
|
+
access: "create"
|
|
29717
|
+
},
|
|
29447
29718
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
29448
29719
|
capName: "pipeline-analytics",
|
|
29449
29720
|
capScope: "device",
|
|
@@ -29510,6 +29781,12 @@ Object.freeze({
|
|
|
29510
29781
|
addonId: null,
|
|
29511
29782
|
access: "view"
|
|
29512
29783
|
},
|
|
29784
|
+
"pipelineAnalytics.getGroup": {
|
|
29785
|
+
capName: "pipeline-analytics",
|
|
29786
|
+
capScope: "device",
|
|
29787
|
+
addonId: null,
|
|
29788
|
+
access: "view"
|
|
29789
|
+
},
|
|
29513
29790
|
"pipelineAnalytics.getKeyEvents": {
|
|
29514
29791
|
capName: "pipeline-analytics",
|
|
29515
29792
|
capScope: "device",
|
|
@@ -29594,6 +29871,12 @@ Object.freeze({
|
|
|
29594
29871
|
addonId: null,
|
|
29595
29872
|
access: "view"
|
|
29596
29873
|
},
|
|
29874
|
+
"pipelineAnalytics.listGroups": {
|
|
29875
|
+
capName: "pipeline-analytics",
|
|
29876
|
+
capScope: "device",
|
|
29877
|
+
addonId: null,
|
|
29878
|
+
access: "view"
|
|
29879
|
+
},
|
|
29597
29880
|
"pipelineAnalytics.listOpsLog": {
|
|
29598
29881
|
capName: "pipeline-analytics",
|
|
29599
29882
|
capScope: "device",
|
|
@@ -29606,6 +29889,12 @@ Object.freeze({
|
|
|
29606
29889
|
addonId: null,
|
|
29607
29890
|
access: "view"
|
|
29608
29891
|
},
|
|
29892
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
29893
|
+
capName: "pipeline-analytics",
|
|
29894
|
+
capScope: "device",
|
|
29895
|
+
addonId: null,
|
|
29896
|
+
access: "view"
|
|
29897
|
+
},
|
|
29609
29898
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
29610
29899
|
capName: "pipeline-analytics",
|
|
29611
29900
|
capScope: "device",
|
|
@@ -29684,6 +29973,12 @@ Object.freeze({
|
|
|
29684
29973
|
addonId: null,
|
|
29685
29974
|
access: "create"
|
|
29686
29975
|
},
|
|
29976
|
+
"pipelineAnalytics.relocateMedia": {
|
|
29977
|
+
capName: "pipeline-analytics",
|
|
29978
|
+
capScope: "device",
|
|
29979
|
+
addonId: null,
|
|
29980
|
+
access: "create"
|
|
29981
|
+
},
|
|
29687
29982
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
29688
29983
|
capName: "pipeline-analytics",
|
|
29689
29984
|
capScope: "device",
|
|
@@ -32375,6 +32670,11 @@ Object.freeze({
|
|
|
32375
32670
|
form: "single",
|
|
32376
32671
|
optional: false
|
|
32377
32672
|
}],
|
|
32673
|
+
"deviceManager.getBindingsBatch": [{
|
|
32674
|
+
name: "deviceIds",
|
|
32675
|
+
form: "array",
|
|
32676
|
+
optional: false
|
|
32677
|
+
}],
|
|
32378
32678
|
"deviceManager.getChildren": [{
|
|
32379
32679
|
name: "parentDeviceId",
|
|
32380
32680
|
form: "single",
|
|
@@ -32420,6 +32720,11 @@ Object.freeze({
|
|
|
32420
32720
|
form: "single",
|
|
32421
32721
|
optional: false
|
|
32422
32722
|
}],
|
|
32723
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
32724
|
+
name: "deviceIds",
|
|
32725
|
+
form: "array",
|
|
32726
|
+
optional: false
|
|
32727
|
+
}],
|
|
32423
32728
|
"deviceManager.getSettingsSchema": [{
|
|
32424
32729
|
name: "deviceId",
|
|
32425
32730
|
form: "single",
|
|
@@ -32440,6 +32745,11 @@ Object.freeze({
|
|
|
32440
32745
|
form: "single",
|
|
32441
32746
|
optional: false
|
|
32442
32747
|
}],
|
|
32748
|
+
"deviceManager.listAll": [{
|
|
32749
|
+
name: "deviceIds",
|
|
32750
|
+
form: "array",
|
|
32751
|
+
optional: true
|
|
32752
|
+
}],
|
|
32443
32753
|
"deviceManager.loadConfig": [{
|
|
32444
32754
|
name: "deviceId",
|
|
32445
32755
|
form: "single",
|
|
@@ -33013,6 +33323,11 @@ Object.freeze({
|
|
|
33013
33323
|
form: "single",
|
|
33014
33324
|
optional: false
|
|
33015
33325
|
}],
|
|
33326
|
+
"pipelineAnalytics.getGroup": [{
|
|
33327
|
+
name: "deviceId",
|
|
33328
|
+
form: "single",
|
|
33329
|
+
optional: false
|
|
33330
|
+
}],
|
|
33016
33331
|
"pipelineAnalytics.getKeyEvents": [{
|
|
33017
33332
|
name: "deviceId",
|
|
33018
33333
|
form: "single",
|
|
@@ -33068,6 +33383,11 @@ Object.freeze({
|
|
|
33068
33383
|
form: "array",
|
|
33069
33384
|
optional: false
|
|
33070
33385
|
}],
|
|
33386
|
+
"pipelineAnalytics.listGroups": [{
|
|
33387
|
+
name: "deviceIds",
|
|
33388
|
+
form: "array",
|
|
33389
|
+
optional: false
|
|
33390
|
+
}],
|
|
33071
33391
|
"pipelineAnalytics.listOpsLog": [{
|
|
33072
33392
|
name: "deviceId",
|
|
33073
33393
|
form: "single",
|