@camstack/addon-decoder-ffmpeg 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
|
@@ -5806,6 +5806,13 @@ var BaseAddon = class {
|
|
|
5806
5806
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5807
5807
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5808
5808
|
_registeredCapNames = [];
|
|
5809
|
+
/**
|
|
5810
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5811
|
+
* defaults look like stored config when the store is down — a forked
|
|
5812
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5813
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5814
|
+
*/
|
|
5815
|
+
settingsStoreReady = false;
|
|
5809
5816
|
/** Default config values. Provided via constructor. */
|
|
5810
5817
|
defaults;
|
|
5811
5818
|
constructor(defaults) {
|
|
@@ -6206,7 +6213,9 @@ var BaseAddon = class {
|
|
|
6206
6213
|
];
|
|
6207
6214
|
let lastErr;
|
|
6208
6215
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6209
|
-
|
|
6216
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6217
|
+
this.settingsStoreReady = true;
|
|
6218
|
+
return stored;
|
|
6210
6219
|
} catch (err) {
|
|
6211
6220
|
lastErr = err;
|
|
6212
6221
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6214,6 +6223,7 @@ var BaseAddon = class {
|
|
|
6214
6223
|
if (attempt === delaysMs.length) break;
|
|
6215
6224
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6216
6225
|
}
|
|
6226
|
+
this.settingsStoreReady = false;
|
|
6217
6227
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6218
6228
|
return {};
|
|
6219
6229
|
}
|
|
@@ -6625,7 +6635,7 @@ function method(input, output, options) {
|
|
|
6625
6635
|
input,
|
|
6626
6636
|
output,
|
|
6627
6637
|
kind: options?.kind ?? "query",
|
|
6628
|
-
auth: options
|
|
6638
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6629
6639
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6630
6640
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6631
6641
|
timeoutMs: options?.timeoutMs
|
|
@@ -6645,7 +6655,7 @@ function systemMethod(input, output, options) {
|
|
|
6645
6655
|
}
|
|
6646
6656
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6647
6657
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6648
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6658
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6649
6659
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6650
6660
|
DeviceType["Camera"] = "camera";
|
|
6651
6661
|
DeviceType["Hub"] = "hub";
|
|
@@ -6966,7 +6976,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6966
6976
|
}({});
|
|
6967
6977
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6968
6978
|
var VersionOutputSchema = object({ version: string() });
|
|
6969
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6979
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6970
6980
|
/**
|
|
6971
6981
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6972
6982
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7592,24 +7602,6 @@ var RecordingRetentionSchema = object({
|
|
|
7592
7602
|
maxSizeGb: number().min(0).optional()
|
|
7593
7603
|
});
|
|
7594
7604
|
/**
|
|
7595
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7596
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7597
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7598
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7599
|
-
*
|
|
7600
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7601
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7602
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7603
|
-
* written with.
|
|
7604
|
-
*/
|
|
7605
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7606
|
-
"minimal",
|
|
7607
|
-
"low",
|
|
7608
|
-
"standard",
|
|
7609
|
-
"high",
|
|
7610
|
-
"max"
|
|
7611
|
-
]);
|
|
7612
|
-
/**
|
|
7613
7605
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7614
7606
|
*
|
|
7615
7607
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7617,7 +7609,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7617
7609
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7618
7610
|
*
|
|
7619
7611
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7620
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7612
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7613
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7614
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7615
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7616
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7621
7617
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7622
7618
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7623
7619
|
*/
|
|
@@ -7640,14 +7636,7 @@ var RecordingConfigSchema = object({
|
|
|
7640
7636
|
* "off" is the absence of a covering band, never a band value.
|
|
7641
7637
|
*/
|
|
7642
7638
|
bands: array(RecordingBandSchema).default([]),
|
|
7643
|
-
retention: RecordingRetentionSchema.optional()
|
|
7644
|
-
/**
|
|
7645
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7646
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7647
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7648
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7649
|
-
*/
|
|
7650
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7639
|
+
retention: RecordingRetentionSchema.optional()
|
|
7651
7640
|
}).strict();
|
|
7652
7641
|
/**
|
|
7653
7642
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7723,10 +7712,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7723
7712
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7724
7713
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7725
7714
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7726
|
-
var
|
|
7715
|
+
var RelocateMediaInputSchema = object({
|
|
7727
7716
|
toLocationId: string(),
|
|
7728
7717
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7729
|
-
})
|
|
7718
|
+
});
|
|
7719
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7730
7720
|
/** The independently selectable logical storage classes. `recordings`
|
|
7731
7721
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7732
7722
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8021,7 +8011,26 @@ var LabelDefinitionSchema = object({
|
|
|
8021
8011
|
description: string().optional(),
|
|
8022
8012
|
icon: string().optional()
|
|
8023
8013
|
});
|
|
8024
|
-
|
|
8014
|
+
/**
|
|
8015
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8016
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8017
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8018
|
+
* detection pipeline executor actually routes.
|
|
8019
|
+
*
|
|
8020
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8021
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8022
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8023
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8024
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8025
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8026
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8027
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8028
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8029
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8030
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8031
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8032
|
+
*/
|
|
8033
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8025
8034
|
mapping: record(string(), _enum([
|
|
8026
8035
|
"person",
|
|
8027
8036
|
"vehicle",
|
|
@@ -8113,6 +8122,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8113
8122
|
*/
|
|
8114
8123
|
resolution: number().int().positive().optional()
|
|
8115
8124
|
});
|
|
8125
|
+
var ModelProviderIdSchema = _enum([
|
|
8126
|
+
"camstack",
|
|
8127
|
+
"frigate",
|
|
8128
|
+
"scrypted",
|
|
8129
|
+
"custom"
|
|
8130
|
+
]);
|
|
8116
8131
|
var ModelCatalogEntrySchema = object({
|
|
8117
8132
|
id: string(),
|
|
8118
8133
|
name: string(),
|
|
@@ -8210,11 +8225,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
8210
8225
|
*/
|
|
8211
8226
|
group: ModelVariantGroupSchema.optional(),
|
|
8212
8227
|
/**
|
|
8228
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8229
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8230
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8231
|
+
*/
|
|
8232
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8233
|
+
/**
|
|
8213
8234
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8214
8235
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8215
8236
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8216
8237
|
*/
|
|
8217
|
-
classMap:
|
|
8238
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8218
8239
|
});
|
|
8219
8240
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8220
8241
|
format: literal("openvino"),
|
|
@@ -8244,7 +8265,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8244
8265
|
"segmentation"
|
|
8245
8266
|
]),
|
|
8246
8267
|
faceAlignment: boolean().optional(),
|
|
8247
|
-
classMap:
|
|
8268
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8248
8269
|
});
|
|
8249
8270
|
var ConvertResultSchema = object({
|
|
8250
8271
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9107,7 +9128,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9107
9128
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9108
9129
|
sectionLabel: string().optional()
|
|
9109
9130
|
});
|
|
9110
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9131
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9111
9132
|
var AddonHttpRouteSchema = object({
|
|
9112
9133
|
method: _enum([
|
|
9113
9134
|
"GET",
|
|
@@ -9342,7 +9363,7 @@ var WidgetMetadataSchema = object({
|
|
|
9342
9363
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9343
9364
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9344
9365
|
});
|
|
9345
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9366
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9346
9367
|
/**
|
|
9347
9368
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9348
9369
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -10901,7 +10922,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10901
10922
|
stepId: string(),
|
|
10902
10923
|
entry: ModelCatalogEntrySchema
|
|
10903
10924
|
});
|
|
10904
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10925
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10905
10926
|
/**
|
|
10906
10927
|
* Query filter for settings-store collections.
|
|
10907
10928
|
*/
|
|
@@ -10988,7 +11009,8 @@ method(object({
|
|
|
10988
11009
|
}), _void(), { kind: "mutation" }), method(object({
|
|
10989
11010
|
namespace: string().optional(),
|
|
10990
11011
|
collection: string(),
|
|
10991
|
-
filter: QueryFilterSchema.optional()
|
|
11012
|
+
filter: QueryFilterSchema.optional(),
|
|
11013
|
+
columns: array(string()).readonly().optional()
|
|
10992
11014
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
10993
11015
|
namespace: string().optional(),
|
|
10994
11016
|
collection: string(),
|
|
@@ -11051,46 +11073,87 @@ var EngineInfoSchema = object({
|
|
|
11051
11073
|
kind: _enum(["relational", "vector"]),
|
|
11052
11074
|
displayName: string()
|
|
11053
11075
|
});
|
|
11054
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11076
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11055
11077
|
namespace: string().optional(),
|
|
11056
11078
|
collection: string(),
|
|
11057
11079
|
key: string()
|
|
11058
|
-
}), unknown()), method(object({
|
|
11080
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11059
11081
|
namespace: string().optional(),
|
|
11060
11082
|
collection: string(),
|
|
11061
11083
|
key: string(),
|
|
11062
11084
|
value: unknown()
|
|
11063
|
-
}), _void(), {
|
|
11085
|
+
}), _void(), {
|
|
11086
|
+
kind: "mutation",
|
|
11087
|
+
auth: "admin"
|
|
11088
|
+
}), method(object({
|
|
11064
11089
|
namespace: string().optional(),
|
|
11065
11090
|
collection: string(),
|
|
11066
|
-
filter: QueryFilterSchema.optional()
|
|
11067
|
-
|
|
11091
|
+
filter: QueryFilterSchema.optional(),
|
|
11092
|
+
/**
|
|
11093
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11094
|
+
*
|
|
11095
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11096
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11097
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11098
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11099
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11100
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11101
|
+
*
|
|
11102
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11103
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11104
|
+
* interface the engine destructures from. The field existed on both
|
|
11105
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11106
|
+
* registered provider against `InferProvider<cap>` —
|
|
11107
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11108
|
+
*
|
|
11109
|
+
* It is declared here anyway, and must stay in step with
|
|
11110
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11111
|
+
* to be able to see that this call carries a projection.
|
|
11112
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11113
|
+
*/
|
|
11114
|
+
columns: array(string()).readonly().optional()
|
|
11115
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11068
11116
|
namespace: string().optional(),
|
|
11069
11117
|
collection: string(),
|
|
11070
11118
|
record: SettingsRecordSchema
|
|
11071
|
-
}), _void(), {
|
|
11119
|
+
}), _void(), {
|
|
11120
|
+
kind: "mutation",
|
|
11121
|
+
auth: "admin"
|
|
11122
|
+
}), method(object({
|
|
11072
11123
|
namespace: string().optional(),
|
|
11073
11124
|
collection: string(),
|
|
11074
11125
|
id: string(),
|
|
11075
11126
|
data: record(string(), unknown())
|
|
11076
|
-
}), _void(), {
|
|
11127
|
+
}), _void(), {
|
|
11128
|
+
kind: "mutation",
|
|
11129
|
+
auth: "admin"
|
|
11130
|
+
}), method(object({
|
|
11077
11131
|
namespace: string().optional(),
|
|
11078
11132
|
collection: string(),
|
|
11079
11133
|
key: string()
|
|
11080
|
-
}), _void(), {
|
|
11134
|
+
}), _void(), {
|
|
11135
|
+
kind: "mutation",
|
|
11136
|
+
auth: "admin"
|
|
11137
|
+
}), method(object({
|
|
11081
11138
|
namespace: string().optional(),
|
|
11082
11139
|
collection: string(),
|
|
11083
11140
|
filter: MutationFilterSchema
|
|
11084
|
-
}), object({ deleted: number().int() }), {
|
|
11141
|
+
}), object({ deleted: number().int() }), {
|
|
11142
|
+
kind: "mutation",
|
|
11143
|
+
auth: "admin"
|
|
11144
|
+
}), method(object({
|
|
11085
11145
|
namespace: string().optional(),
|
|
11086
11146
|
collection: string(),
|
|
11087
11147
|
filter: MutationFilterSchema,
|
|
11088
11148
|
data: record(string(), unknown())
|
|
11089
|
-
}), object({ updated: number().int() }), {
|
|
11149
|
+
}), object({ updated: number().int() }), {
|
|
11150
|
+
kind: "mutation",
|
|
11151
|
+
auth: "admin"
|
|
11152
|
+
}), method(object({
|
|
11090
11153
|
namespace: string().optional(),
|
|
11091
11154
|
collection: string(),
|
|
11092
11155
|
filter: QueryFilterSchema.optional()
|
|
11093
|
-
}), number()), method(object({
|
|
11156
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11094
11157
|
namespace: string().optional(),
|
|
11095
11158
|
collection: string(),
|
|
11096
11159
|
field: string(),
|
|
@@ -11100,15 +11163,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11100
11163
|
}), array(object({
|
|
11101
11164
|
bucket: number().int(),
|
|
11102
11165
|
count: number().int()
|
|
11103
|
-
})).readonly()), method(object({
|
|
11166
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11104
11167
|
namespace: string().optional(),
|
|
11105
11168
|
collection: string()
|
|
11106
|
-
}), boolean()), method(object({
|
|
11169
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11107
11170
|
namespace: string().optional(),
|
|
11108
11171
|
collection: string(),
|
|
11109
11172
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11110
11173
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11111
|
-
}), _void(), {
|
|
11174
|
+
}), _void(), {
|
|
11175
|
+
kind: "mutation",
|
|
11176
|
+
auth: "admin"
|
|
11177
|
+
});
|
|
11112
11178
|
/**
|
|
11113
11179
|
* Stable UI option list for the `hwaccel` setting. Decoder addons
|
|
11114
11180
|
* reuse this for `globalSettingsSchema()` so the dropdown is
|
|
@@ -11867,6 +11933,27 @@ var LinkedDeviceSchema = object({
|
|
|
11867
11933
|
features: array(string()),
|
|
11868
11934
|
producesTrackedEvents: boolean().optional()
|
|
11869
11935
|
});
|
|
11936
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
11937
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
11938
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
11939
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
11940
|
+
deviceId: number(),
|
|
11941
|
+
mode: LinkedDevicesModeSchema,
|
|
11942
|
+
devices: array(LinkedDeviceSchema)
|
|
11943
|
+
});
|
|
11944
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
11945
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
11946
|
+
* object literal is exactly how the three drift apart. */
|
|
11947
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
11948
|
+
deviceId: number(),
|
|
11949
|
+
entries: array(object({
|
|
11950
|
+
capName: string(),
|
|
11951
|
+
kind: _enum(["native", "wrapped"]),
|
|
11952
|
+
providerAddonId: string(),
|
|
11953
|
+
providerNodeId: string(),
|
|
11954
|
+
nativeAddonId: string()
|
|
11955
|
+
}))
|
|
11956
|
+
});
|
|
11870
11957
|
var SavedDeviceRowSchema = object({
|
|
11871
11958
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11872
11959
|
id: number(),
|
|
@@ -12092,11 +12179,25 @@ method(object({
|
|
|
12092
12179
|
projection: _enum(["full", "slim"]).optional(),
|
|
12093
12180
|
/** Return only camera devices. Filtering server-side instead of
|
|
12094
12181
|
* shipping 293 rows to find 12. */
|
|
12095
|
-
isCamera: boolean().optional()
|
|
12182
|
+
isCamera: boolean().optional(),
|
|
12183
|
+
/**
|
|
12184
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12185
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12186
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12187
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12188
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12189
|
+
* refetches on the reconcile interval, on a phone.
|
|
12190
|
+
*
|
|
12191
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12192
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12193
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12194
|
+
* it answers today and the caller filters as it already does.
|
|
12195
|
+
*/
|
|
12196
|
+
deviceIds: array(number()).optional()
|
|
12096
12197
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12097
12198
|
mode: LinkedDevicesModeSchema,
|
|
12098
12199
|
devices: array(LinkedDeviceSchema)
|
|
12099
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12200
|
+
})), 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({
|
|
12100
12201
|
deviceId: number(),
|
|
12101
12202
|
values: record(string(), unknown())
|
|
12102
12203
|
}), object({ success: literal(true) }), {
|
|
@@ -12123,25 +12224,7 @@ method(object({
|
|
|
12123
12224
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12124
12225
|
kind: "mutation",
|
|
12125
12226
|
auth: "admin"
|
|
12126
|
-
}), method(object({ deviceId: number() }), object({
|
|
12127
|
-
deviceId: number(),
|
|
12128
|
-
entries: array(object({
|
|
12129
|
-
capName: string(),
|
|
12130
|
-
kind: _enum(["native", "wrapped"]),
|
|
12131
|
-
providerAddonId: string(),
|
|
12132
|
-
providerNodeId: string(),
|
|
12133
|
-
nativeAddonId: string()
|
|
12134
|
-
}))
|
|
12135
|
-
})), method(object({}), array(object({
|
|
12136
|
-
deviceId: number(),
|
|
12137
|
-
entries: array(object({
|
|
12138
|
-
capName: string(),
|
|
12139
|
-
kind: _enum(["native", "wrapped"]),
|
|
12140
|
-
providerAddonId: string(),
|
|
12141
|
-
providerNodeId: string(),
|
|
12142
|
-
nativeAddonId: string()
|
|
12143
|
-
}))
|
|
12144
|
-
}))), method(object({
|
|
12227
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12145
12228
|
deviceId: number(),
|
|
12146
12229
|
capName: string(),
|
|
12147
12230
|
wrapperAddonId: string(),
|
|
@@ -12312,7 +12395,7 @@ method(object({
|
|
|
12312
12395
|
crop: _instanceof(Uint8Array),
|
|
12313
12396
|
width: number(),
|
|
12314
12397
|
height: number()
|
|
12315
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12398
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12316
12399
|
/**
|
|
12317
12400
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12318
12401
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12605,19 +12688,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12605
12688
|
runtime: ManagedRuntimeConfigSchema,
|
|
12606
12689
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12607
12690
|
timeoutMs: number().int().positive().optional()
|
|
12608
|
-
}), LlmGenerateResultSchema, {
|
|
12691
|
+
}), LlmGenerateResultSchema, {
|
|
12692
|
+
kind: "mutation",
|
|
12693
|
+
auth: "admin"
|
|
12694
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12609
12695
|
kind: "mutation",
|
|
12610
12696
|
auth: "admin"
|
|
12611
12697
|
}), method(object({}), _void(), {
|
|
12612
12698
|
kind: "mutation",
|
|
12613
12699
|
auth: "admin"
|
|
12614
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12700
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12615
12701
|
kind: "mutation",
|
|
12616
12702
|
auth: "admin"
|
|
12617
12703
|
}), method(object({ file: string() }), _void(), {
|
|
12618
12704
|
kind: "mutation",
|
|
12619
12705
|
auth: "admin"
|
|
12620
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12706
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12621
12707
|
/**
|
|
12622
12708
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12623
12709
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14513,12 +14599,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14513
14599
|
* there is no second switch that can disagree with the first and every rule
|
|
14514
14600
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14515
14601
|
*
|
|
14516
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14517
|
-
*
|
|
14518
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14519
|
-
*
|
|
14520
|
-
*
|
|
14521
|
-
*
|
|
14602
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14603
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14604
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14605
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14606
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14607
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14608
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14609
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14610
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14522
14611
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14523
14612
|
* the condition: at least `hitPercent`% of the samples over
|
|
14524
14613
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14545,14 +14634,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14545
14634
|
* an operator who typed `dog` mean the same thing.
|
|
14546
14635
|
*/
|
|
14547
14636
|
var NcAudioConditionSchema = object({
|
|
14548
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14637
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14549
14638
|
labels: array(string().min(1)).min(1).optional(),
|
|
14550
14639
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14551
14640
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14552
14641
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14553
14642
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14554
14643
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14555
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14644
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14645
|
+
/**
|
|
14646
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14647
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14648
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14649
|
+
*/
|
|
14650
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14651
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14652
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14556
14653
|
});
|
|
14557
14654
|
/**
|
|
14558
14655
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16079,7 +16176,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16079
16176
|
*/
|
|
16080
16177
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16081
16178
|
});
|
|
16082
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16179
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16083
16180
|
/**
|
|
16084
16181
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16085
16182
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -16926,6 +17023,46 @@ var RecentTracksPageSchema = object({
|
|
|
16926
17023
|
/** Cursor for the next page, or null when this page is the last. */
|
|
16927
17024
|
nextCursor: string().nullable()
|
|
16928
17025
|
});
|
|
17026
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17027
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17028
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17029
|
+
id: string(),
|
|
17030
|
+
deviceId: number().int(),
|
|
17031
|
+
openedAt: number().int(),
|
|
17032
|
+
closedAt: number().int(),
|
|
17033
|
+
timestamp: number().int(),
|
|
17034
|
+
memberCount: number().int(),
|
|
17035
|
+
memberTrackIds: array(string()).readonly(),
|
|
17036
|
+
className: string(),
|
|
17037
|
+
classes: array(string()).readonly(),
|
|
17038
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17039
|
+
mediaUrl: string().nullable(),
|
|
17040
|
+
singleton: boolean()
|
|
17041
|
+
});
|
|
17042
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17043
|
+
trackId: string(),
|
|
17044
|
+
deviceId: number().int(),
|
|
17045
|
+
className: string(),
|
|
17046
|
+
firstSeen: number().int(),
|
|
17047
|
+
lastSeen: number().int(),
|
|
17048
|
+
mediaUrl: string().nullable()
|
|
17049
|
+
});
|
|
17050
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17051
|
+
var ListGroupsQueryInput = object({
|
|
17052
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17053
|
+
deviceIds: array(number()),
|
|
17054
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17055
|
+
since: number().optional(),
|
|
17056
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17057
|
+
until: number().optional(),
|
|
17058
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17059
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17060
|
+
cursor: string().optional()
|
|
17061
|
+
});
|
|
17062
|
+
var ListGroupsPageSchema = object({
|
|
17063
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17064
|
+
nextCursor: string().nullable()
|
|
17065
|
+
});
|
|
16929
17066
|
var KeyEventQueryInput = object({
|
|
16930
17067
|
deviceId: number(),
|
|
16931
17068
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17001,7 +17138,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17001
17138
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17002
17139
|
plates: number().int(),
|
|
17003
17140
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17004
|
-
embeddings: number().int()
|
|
17141
|
+
embeddings: number().int(),
|
|
17142
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17143
|
+
groups: number().int()
|
|
17005
17144
|
});
|
|
17006
17145
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17007
17146
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17147,7 +17286,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17147
17286
|
* stationary registry). Default false: the timeline lists passages,
|
|
17148
17287
|
* not parking records (operator decision, 2026-08-15). */
|
|
17149
17288
|
includeStationary: boolean().optional()
|
|
17150
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17289
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17290
|
+
deviceId: number(),
|
|
17291
|
+
groupId: string().min(1)
|
|
17292
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17151
17293
|
kind: "mutation",
|
|
17152
17294
|
auth: "admin"
|
|
17153
17295
|
}), 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({
|
|
@@ -17229,6 +17371,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17229
17371
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17230
17372
|
kind: "mutation",
|
|
17231
17373
|
auth: "admin"
|
|
17374
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17375
|
+
kind: "mutation",
|
|
17376
|
+
auth: "admin"
|
|
17377
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17378
|
+
kind: "query",
|
|
17379
|
+
auth: "admin"
|
|
17380
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17381
|
+
kind: "mutation",
|
|
17382
|
+
auth: "admin"
|
|
17232
17383
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17233
17384
|
kind: "query",
|
|
17234
17385
|
auth: "admin"
|
|
@@ -17383,6 +17534,11 @@ object({
|
|
|
17383
17534
|
"jpeg"
|
|
17384
17535
|
])
|
|
17385
17536
|
});
|
|
17537
|
+
/**
|
|
17538
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17539
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17540
|
+
* other process or execution group.
|
|
17541
|
+
*/
|
|
17386
17542
|
var FrameRefSchema = object({
|
|
17387
17543
|
registryId: string().min(1),
|
|
17388
17544
|
id: string().min(1),
|
|
@@ -17457,7 +17613,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17457
17613
|
sizeMB: number()
|
|
17458
17614
|
})),
|
|
17459
17615
|
group: ModelVariantGroupSchema.optional(),
|
|
17460
|
-
legacy: boolean().optional()
|
|
17616
|
+
legacy: boolean().optional(),
|
|
17617
|
+
provider: ModelProviderIdSchema.optional()
|
|
17461
17618
|
});
|
|
17462
17619
|
var ConfigFieldBridge = custom();
|
|
17463
17620
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -19547,7 +19704,7 @@ method(object({
|
|
|
19547
19704
|
* linking rather than produce an eternal token.
|
|
19548
19705
|
*/
|
|
19549
19706
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19550
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
19707
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19551
19708
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19552
19709
|
providerId: string().min(1),
|
|
19553
19710
|
displayName: string().min(1),
|
|
@@ -19642,10 +19799,13 @@ var EvictResultSchema = object({
|
|
|
19642
19799
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19643
19800
|
exhausted: boolean()
|
|
19644
19801
|
});
|
|
19645
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
19802
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19646
19803
|
locationId: string(),
|
|
19647
19804
|
targetBytes: number().int().positive()
|
|
19648
|
-
}), EvictResultSchema, {
|
|
19805
|
+
}), EvictResultSchema, {
|
|
19806
|
+
kind: "mutation",
|
|
19807
|
+
auth: "admin"
|
|
19808
|
+
});
|
|
19649
19809
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19650
19810
|
kind: "mutation",
|
|
19651
19811
|
auth: "admin"
|
|
@@ -19705,26 +19865,50 @@ var ReadChunkInputSchema = object({
|
|
|
19705
19865
|
length: number()
|
|
19706
19866
|
});
|
|
19707
19867
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
19708
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19868
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19709
19869
|
location: StorageLocationSchema,
|
|
19710
19870
|
relativePath: string()
|
|
19711
|
-
}), string()), method(object({
|
|
19871
|
+
}), string(), { auth: "admin" }), method(object({
|
|
19712
19872
|
location: StorageLocationSchema,
|
|
19713
19873
|
relativePath: string(),
|
|
19714
19874
|
data: _instanceof(Uint8Array)
|
|
19715
|
-
}), _void(), {
|
|
19875
|
+
}), _void(), {
|
|
19876
|
+
kind: "mutation",
|
|
19877
|
+
auth: "admin"
|
|
19878
|
+
}), method(object({
|
|
19716
19879
|
location: StorageLocationSchema,
|
|
19717
19880
|
relativePath: string()
|
|
19718
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
19881
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
19719
19882
|
location: StorageLocationSchema,
|
|
19720
19883
|
relativePath: string()
|
|
19721
|
-
}), boolean()), method(object({
|
|
19884
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
19722
19885
|
location: StorageLocationSchema,
|
|
19723
19886
|
prefix: string().optional()
|
|
19724
|
-
}), array(string()).readonly()), method(object({
|
|
19887
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
19725
19888
|
location: StorageLocationSchema,
|
|
19726
19889
|
relativePath: string()
|
|
19727
|
-
}), _void(), {
|
|
19890
|
+
}), _void(), {
|
|
19891
|
+
kind: "mutation",
|
|
19892
|
+
auth: "admin"
|
|
19893
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
19894
|
+
kind: "mutation",
|
|
19895
|
+
auth: "admin"
|
|
19896
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
19897
|
+
kind: "mutation",
|
|
19898
|
+
auth: "admin"
|
|
19899
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
19900
|
+
kind: "mutation",
|
|
19901
|
+
auth: "admin"
|
|
19902
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
19903
|
+
kind: "mutation",
|
|
19904
|
+
auth: "admin"
|
|
19905
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
19906
|
+
kind: "mutation",
|
|
19907
|
+
auth: "admin"
|
|
19908
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
19909
|
+
kind: "mutation",
|
|
19910
|
+
auth: "admin"
|
|
19911
|
+
});
|
|
19728
19912
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19729
19913
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19730
19914
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -19982,7 +20166,8 @@ method(object({
|
|
|
19982
20166
|
access: "create"
|
|
19983
20167
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19984
20168
|
kind: "mutation",
|
|
19985
|
-
access: "view"
|
|
20169
|
+
access: "view",
|
|
20170
|
+
auth: "admin"
|
|
19986
20171
|
}), method(object({
|
|
19987
20172
|
/** Required — the user the assertion belongs to (verified). */
|
|
19988
20173
|
userId: string(),
|
|
@@ -19990,10 +20175,12 @@ method(object({
|
|
|
19990
20175
|
response: record(string(), unknown())
|
|
19991
20176
|
}), object({ verified: boolean() }), {
|
|
19992
20177
|
kind: "mutation",
|
|
19993
|
-
access: "view"
|
|
20178
|
+
access: "view",
|
|
20179
|
+
auth: "admin"
|
|
19994
20180
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19995
20181
|
kind: "mutation",
|
|
19996
|
-
access: "view"
|
|
20182
|
+
access: "view",
|
|
20183
|
+
auth: "admin"
|
|
19997
20184
|
}), method(object({
|
|
19998
20185
|
/** AuthenticationResponseJSON from the browser. */
|
|
19999
20186
|
response: record(string(), unknown()) }), object({
|
|
@@ -20001,7 +20188,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20001
20188
|
userId: string().nullable()
|
|
20002
20189
|
}), {
|
|
20003
20190
|
kind: "mutation",
|
|
20004
|
-
access: "view"
|
|
20191
|
+
access: "view",
|
|
20192
|
+
auth: "admin"
|
|
20005
20193
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20006
20194
|
userId: string(),
|
|
20007
20195
|
credentialId: string()
|
|
@@ -20173,7 +20361,19 @@ var VectorStatsResultSchema = object({
|
|
|
20173
20361
|
/** False when the backend ranks approximately. */
|
|
20174
20362
|
exact: boolean()
|
|
20175
20363
|
});
|
|
20176
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20364
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20365
|
+
kind: "mutation",
|
|
20366
|
+
auth: "admin"
|
|
20367
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20368
|
+
kind: "mutation",
|
|
20369
|
+
auth: "admin"
|
|
20370
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20371
|
+
kind: "mutation",
|
|
20372
|
+
auth: "admin"
|
|
20373
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20374
|
+
kind: "mutation",
|
|
20375
|
+
auth: "admin"
|
|
20376
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20177
20377
|
var ClipSchema = object({
|
|
20178
20378
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20179
20379
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -21896,7 +22096,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
21896
22096
|
sizeBytes: number(),
|
|
21897
22097
|
timestamp: number()
|
|
21898
22098
|
});
|
|
21899
|
-
method(
|
|
22099
|
+
method(object({
|
|
22100
|
+
/**
|
|
22101
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
22102
|
+
*
|
|
22103
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
22104
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
22105
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
22106
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
22107
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
22108
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
22109
|
+
*
|
|
22110
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
22111
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
22112
|
+
*
|
|
22113
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
22114
|
+
* next train** — the hub router validates cap inputs against its own
|
|
22115
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
22116
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
22117
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
22118
|
+
*/
|
|
22119
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
21900
22120
|
kind: "mutation",
|
|
21901
22121
|
auth: "admin"
|
|
21902
22122
|
}), method(object({
|
|
@@ -24041,7 +24261,14 @@ var PlateInfoSchema = object({
|
|
|
24041
24261
|
plateBbox: BoundingBoxSchema.optional(),
|
|
24042
24262
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
24043
24263
|
keyFrameMediaKey: string().optional(),
|
|
24044
|
-
base64: string().optional()
|
|
24264
|
+
base64: string().optional(),
|
|
24265
|
+
/**
|
|
24266
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
24267
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
24268
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
24269
|
+
* left at its `true` default.
|
|
24270
|
+
*/
|
|
24271
|
+
cropUrl: string().optional()
|
|
24045
24272
|
});
|
|
24046
24273
|
var MediaFileLiteSchema = object({
|
|
24047
24274
|
key: string(),
|
|
@@ -24059,14 +24286,34 @@ var PlateClusterSchema = object({
|
|
|
24059
24286
|
});
|
|
24060
24287
|
method(object({
|
|
24061
24288
|
deviceId: number().int().optional(),
|
|
24062
|
-
limit: number().int().positive().optional()
|
|
24289
|
+
limit: number().int().positive().optional(),
|
|
24290
|
+
/**
|
|
24291
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
24292
|
+
* behaviour, kept so no caller breaks.
|
|
24293
|
+
*
|
|
24294
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
24295
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
24296
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
24297
|
+
* metadata without them — and the browser then caches the images.
|
|
24298
|
+
*
|
|
24299
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
24300
|
+
* plates were the one gallery list left without it.
|
|
24301
|
+
*
|
|
24302
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
24303
|
+
* next train.** The hub router validates cap inputs against its own
|
|
24304
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
24305
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
24306
|
+
*/
|
|
24307
|
+
includeCrops: boolean().optional()
|
|
24063
24308
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
24064
24309
|
deviceId: number().int(),
|
|
24065
24310
|
trackId: string()
|
|
24066
24311
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
24067
24312
|
text: string().min(1),
|
|
24068
24313
|
maxDistance: number().int().min(0).optional(),
|
|
24069
|
-
limit: number().int().positive().optional()
|
|
24314
|
+
limit: number().int().positive().optional(),
|
|
24315
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
24316
|
+
includeCrops: boolean().optional()
|
|
24070
24317
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
24071
24318
|
maxDistance: number().int().min(0).optional(),
|
|
24072
24319
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -24080,7 +24327,13 @@ method(object({
|
|
|
24080
24327
|
}), method(object({ plateId: string() }), _void(), {
|
|
24081
24328
|
kind: "mutation",
|
|
24082
24329
|
auth: "admin"
|
|
24083
|
-
}), method(
|
|
24330
|
+
}), method(object({
|
|
24331
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
24332
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
24333
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
24334
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
24335
|
+
* resolves to `false` and is exactly the intended default. */
|
|
24336
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
24084
24337
|
kind: "mutation",
|
|
24085
24338
|
auth: "admin"
|
|
24086
24339
|
}), method(object({
|
|
@@ -27681,6 +27934,12 @@ Object.freeze({
|
|
|
27681
27934
|
addonId: null,
|
|
27682
27935
|
access: "view"
|
|
27683
27936
|
},
|
|
27937
|
+
"deviceManager.getBindingsBatch": {
|
|
27938
|
+
capName: "device-manager",
|
|
27939
|
+
capScope: "system",
|
|
27940
|
+
addonId: null,
|
|
27941
|
+
access: "view"
|
|
27942
|
+
},
|
|
27684
27943
|
"deviceManager.getChildren": {
|
|
27685
27944
|
capName: "device-manager",
|
|
27686
27945
|
capScope: "system",
|
|
@@ -27741,6 +28000,12 @@ Object.freeze({
|
|
|
27741
28000
|
addonId: null,
|
|
27742
28001
|
access: "view"
|
|
27743
28002
|
},
|
|
28003
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
28004
|
+
capName: "device-manager",
|
|
28005
|
+
capScope: "system",
|
|
28006
|
+
addonId: null,
|
|
28007
|
+
access: "view"
|
|
28008
|
+
},
|
|
27744
28009
|
"deviceManager.getRoleDisplayDefaults": {
|
|
27745
28010
|
capName: "device-manager",
|
|
27746
28011
|
capScope: "system",
|
|
@@ -29445,6 +29710,12 @@ Object.freeze({
|
|
|
29445
29710
|
addonId: null,
|
|
29446
29711
|
access: "create"
|
|
29447
29712
|
},
|
|
29713
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
29714
|
+
capName: "pipeline-analytics",
|
|
29715
|
+
capScope: "device",
|
|
29716
|
+
addonId: null,
|
|
29717
|
+
access: "create"
|
|
29718
|
+
},
|
|
29448
29719
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
29449
29720
|
capName: "pipeline-analytics",
|
|
29450
29721
|
capScope: "device",
|
|
@@ -29511,6 +29782,12 @@ Object.freeze({
|
|
|
29511
29782
|
addonId: null,
|
|
29512
29783
|
access: "view"
|
|
29513
29784
|
},
|
|
29785
|
+
"pipelineAnalytics.getGroup": {
|
|
29786
|
+
capName: "pipeline-analytics",
|
|
29787
|
+
capScope: "device",
|
|
29788
|
+
addonId: null,
|
|
29789
|
+
access: "view"
|
|
29790
|
+
},
|
|
29514
29791
|
"pipelineAnalytics.getKeyEvents": {
|
|
29515
29792
|
capName: "pipeline-analytics",
|
|
29516
29793
|
capScope: "device",
|
|
@@ -29595,6 +29872,12 @@ Object.freeze({
|
|
|
29595
29872
|
addonId: null,
|
|
29596
29873
|
access: "view"
|
|
29597
29874
|
},
|
|
29875
|
+
"pipelineAnalytics.listGroups": {
|
|
29876
|
+
capName: "pipeline-analytics",
|
|
29877
|
+
capScope: "device",
|
|
29878
|
+
addonId: null,
|
|
29879
|
+
access: "view"
|
|
29880
|
+
},
|
|
29598
29881
|
"pipelineAnalytics.listOpsLog": {
|
|
29599
29882
|
capName: "pipeline-analytics",
|
|
29600
29883
|
capScope: "device",
|
|
@@ -29607,6 +29890,12 @@ Object.freeze({
|
|
|
29607
29890
|
addonId: null,
|
|
29608
29891
|
access: "view"
|
|
29609
29892
|
},
|
|
29893
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
29894
|
+
capName: "pipeline-analytics",
|
|
29895
|
+
capScope: "device",
|
|
29896
|
+
addonId: null,
|
|
29897
|
+
access: "view"
|
|
29898
|
+
},
|
|
29610
29899
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
29611
29900
|
capName: "pipeline-analytics",
|
|
29612
29901
|
capScope: "device",
|
|
@@ -29685,6 +29974,12 @@ Object.freeze({
|
|
|
29685
29974
|
addonId: null,
|
|
29686
29975
|
access: "create"
|
|
29687
29976
|
},
|
|
29977
|
+
"pipelineAnalytics.relocateMedia": {
|
|
29978
|
+
capName: "pipeline-analytics",
|
|
29979
|
+
capScope: "device",
|
|
29980
|
+
addonId: null,
|
|
29981
|
+
access: "create"
|
|
29982
|
+
},
|
|
29688
29983
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
29689
29984
|
capName: "pipeline-analytics",
|
|
29690
29985
|
capScope: "device",
|
|
@@ -32376,6 +32671,11 @@ Object.freeze({
|
|
|
32376
32671
|
form: "single",
|
|
32377
32672
|
optional: false
|
|
32378
32673
|
}],
|
|
32674
|
+
"deviceManager.getBindingsBatch": [{
|
|
32675
|
+
name: "deviceIds",
|
|
32676
|
+
form: "array",
|
|
32677
|
+
optional: false
|
|
32678
|
+
}],
|
|
32379
32679
|
"deviceManager.getChildren": [{
|
|
32380
32680
|
name: "parentDeviceId",
|
|
32381
32681
|
form: "single",
|
|
@@ -32421,6 +32721,11 @@ Object.freeze({
|
|
|
32421
32721
|
form: "single",
|
|
32422
32722
|
optional: false
|
|
32423
32723
|
}],
|
|
32724
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
32725
|
+
name: "deviceIds",
|
|
32726
|
+
form: "array",
|
|
32727
|
+
optional: false
|
|
32728
|
+
}],
|
|
32424
32729
|
"deviceManager.getSettingsSchema": [{
|
|
32425
32730
|
name: "deviceId",
|
|
32426
32731
|
form: "single",
|
|
@@ -32441,6 +32746,11 @@ Object.freeze({
|
|
|
32441
32746
|
form: "single",
|
|
32442
32747
|
optional: false
|
|
32443
32748
|
}],
|
|
32749
|
+
"deviceManager.listAll": [{
|
|
32750
|
+
name: "deviceIds",
|
|
32751
|
+
form: "array",
|
|
32752
|
+
optional: true
|
|
32753
|
+
}],
|
|
32444
32754
|
"deviceManager.loadConfig": [{
|
|
32445
32755
|
name: "deviceId",
|
|
32446
32756
|
form: "single",
|
|
@@ -33014,6 +33324,11 @@ Object.freeze({
|
|
|
33014
33324
|
form: "single",
|
|
33015
33325
|
optional: false
|
|
33016
33326
|
}],
|
|
33327
|
+
"pipelineAnalytics.getGroup": [{
|
|
33328
|
+
name: "deviceId",
|
|
33329
|
+
form: "single",
|
|
33330
|
+
optional: false
|
|
33331
|
+
}],
|
|
33017
33332
|
"pipelineAnalytics.getKeyEvents": [{
|
|
33018
33333
|
name: "deviceId",
|
|
33019
33334
|
form: "single",
|
|
@@ -33069,6 +33384,11 @@ Object.freeze({
|
|
|
33069
33384
|
form: "array",
|
|
33070
33385
|
optional: false
|
|
33071
33386
|
}],
|
|
33387
|
+
"pipelineAnalytics.listGroups": [{
|
|
33388
|
+
name: "deviceIds",
|
|
33389
|
+
form: "array",
|
|
33390
|
+
optional: false
|
|
33391
|
+
}],
|
|
33072
33392
|
"pipelineAnalytics.listOpsLog": [{
|
|
33073
33393
|
name: "deviceId",
|
|
33074
33394
|
form: "single",
|