@camstack/addon-provider-amcrest 0.2.28 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +431 -111
- package/dist/addon.mjs +431 -111
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -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
|
|
@@ -6649,7 +6659,7 @@ function event(data) {
|
|
|
6649
6659
|
}
|
|
6650
6660
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6651
6661
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6652
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6662
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6653
6663
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6654
6664
|
DeviceType["Camera"] = "camera";
|
|
6655
6665
|
DeviceType["Hub"] = "hub";
|
|
@@ -6970,7 +6980,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6970
6980
|
}({});
|
|
6971
6981
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6972
6982
|
var VersionOutputSchema = object({ version: string() });
|
|
6973
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6983
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6974
6984
|
/**
|
|
6975
6985
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6976
6986
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7584,24 +7594,6 @@ var RecordingRetentionSchema = object({
|
|
|
7584
7594
|
maxSizeGb: number().min(0).optional()
|
|
7585
7595
|
});
|
|
7586
7596
|
/**
|
|
7587
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7588
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7589
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7590
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7591
|
-
*
|
|
7592
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7593
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7594
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7595
|
-
* written with.
|
|
7596
|
-
*/
|
|
7597
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7598
|
-
"minimal",
|
|
7599
|
-
"low",
|
|
7600
|
-
"standard",
|
|
7601
|
-
"high",
|
|
7602
|
-
"max"
|
|
7603
|
-
]);
|
|
7604
|
-
/**
|
|
7605
7597
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7606
7598
|
*
|
|
7607
7599
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7609,7 +7601,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7609
7601
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7610
7602
|
*
|
|
7611
7603
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7612
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7604
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7605
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7606
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7607
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7608
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7613
7609
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7614
7610
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7615
7611
|
*/
|
|
@@ -7632,14 +7628,7 @@ var RecordingConfigSchema = object({
|
|
|
7632
7628
|
* "off" is the absence of a covering band, never a band value.
|
|
7633
7629
|
*/
|
|
7634
7630
|
bands: array(RecordingBandSchema).default([]),
|
|
7635
|
-
retention: RecordingRetentionSchema.optional()
|
|
7636
|
-
/**
|
|
7637
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7638
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7639
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7640
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7641
|
-
*/
|
|
7642
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7631
|
+
retention: RecordingRetentionSchema.optional()
|
|
7643
7632
|
}).strict();
|
|
7644
7633
|
/**
|
|
7645
7634
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7715,10 +7704,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7715
7704
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7716
7705
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7717
7706
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7718
|
-
var
|
|
7707
|
+
var RelocateMediaInputSchema = object({
|
|
7719
7708
|
toLocationId: string(),
|
|
7720
7709
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7721
|
-
})
|
|
7710
|
+
});
|
|
7711
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7722
7712
|
/** The independently selectable logical storage classes. `recordings`
|
|
7723
7713
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7724
7714
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8013,7 +8003,26 @@ var LabelDefinitionSchema = object({
|
|
|
8013
8003
|
description: string().optional(),
|
|
8014
8004
|
icon: string().optional()
|
|
8015
8005
|
});
|
|
8016
|
-
|
|
8006
|
+
/**
|
|
8007
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8008
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8009
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8010
|
+
* detection pipeline executor actually routes.
|
|
8011
|
+
*
|
|
8012
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8013
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8014
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8015
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8016
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8017
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8018
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8019
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8020
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8021
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8022
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8023
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8024
|
+
*/
|
|
8025
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8017
8026
|
mapping: record(string(), _enum([
|
|
8018
8027
|
"person",
|
|
8019
8028
|
"vehicle",
|
|
@@ -8105,6 +8114,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8105
8114
|
*/
|
|
8106
8115
|
resolution: number().int().positive().optional()
|
|
8107
8116
|
});
|
|
8117
|
+
var ModelProviderIdSchema = _enum([
|
|
8118
|
+
"camstack",
|
|
8119
|
+
"frigate",
|
|
8120
|
+
"scrypted",
|
|
8121
|
+
"custom"
|
|
8122
|
+
]);
|
|
8108
8123
|
var ModelCatalogEntrySchema = object({
|
|
8109
8124
|
id: string(),
|
|
8110
8125
|
name: string(),
|
|
@@ -8202,11 +8217,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
8202
8217
|
*/
|
|
8203
8218
|
group: ModelVariantGroupSchema.optional(),
|
|
8204
8219
|
/**
|
|
8220
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8221
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8222
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8223
|
+
*/
|
|
8224
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8225
|
+
/**
|
|
8205
8226
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8206
8227
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8207
8228
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8208
8229
|
*/
|
|
8209
|
-
classMap:
|
|
8230
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8210
8231
|
});
|
|
8211
8232
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8212
8233
|
format: literal("openvino"),
|
|
@@ -8236,7 +8257,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8236
8257
|
"segmentation"
|
|
8237
8258
|
]),
|
|
8238
8259
|
faceAlignment: boolean().optional(),
|
|
8239
|
-
classMap:
|
|
8260
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8240
8261
|
});
|
|
8241
8262
|
var ConvertResultSchema = object({
|
|
8242
8263
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9099,7 +9120,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9099
9120
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9100
9121
|
sectionLabel: string().optional()
|
|
9101
9122
|
});
|
|
9102
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9123
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9103
9124
|
var AddonHttpRouteSchema = object({
|
|
9104
9125
|
method: _enum([
|
|
9105
9126
|
"GET",
|
|
@@ -9334,7 +9355,7 @@ var WidgetMetadataSchema = object({
|
|
|
9334
9355
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9335
9356
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9336
9357
|
});
|
|
9337
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9358
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9338
9359
|
/**
|
|
9339
9360
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9340
9361
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -10958,7 +10979,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10958
10979
|
stepId: string(),
|
|
10959
10980
|
entry: ModelCatalogEntrySchema
|
|
10960
10981
|
});
|
|
10961
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10982
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10962
10983
|
/**
|
|
10963
10984
|
* Query filter for settings-store collections.
|
|
10964
10985
|
*/
|
|
@@ -11045,7 +11066,8 @@ method(object({
|
|
|
11045
11066
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11046
11067
|
namespace: string().optional(),
|
|
11047
11068
|
collection: string(),
|
|
11048
|
-
filter: QueryFilterSchema.optional()
|
|
11069
|
+
filter: QueryFilterSchema.optional(),
|
|
11070
|
+
columns: array(string()).readonly().optional()
|
|
11049
11071
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
11050
11072
|
namespace: string().optional(),
|
|
11051
11073
|
collection: string(),
|
|
@@ -11108,46 +11130,87 @@ var EngineInfoSchema = object({
|
|
|
11108
11130
|
kind: _enum(["relational", "vector"]),
|
|
11109
11131
|
displayName: string()
|
|
11110
11132
|
});
|
|
11111
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11133
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11112
11134
|
namespace: string().optional(),
|
|
11113
11135
|
collection: string(),
|
|
11114
11136
|
key: string()
|
|
11115
|
-
}), unknown()), method(object({
|
|
11137
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11116
11138
|
namespace: string().optional(),
|
|
11117
11139
|
collection: string(),
|
|
11118
11140
|
key: string(),
|
|
11119
11141
|
value: unknown()
|
|
11120
|
-
}), _void(), {
|
|
11142
|
+
}), _void(), {
|
|
11143
|
+
kind: "mutation",
|
|
11144
|
+
auth: "admin"
|
|
11145
|
+
}), method(object({
|
|
11121
11146
|
namespace: string().optional(),
|
|
11122
11147
|
collection: string(),
|
|
11123
|
-
filter: QueryFilterSchema.optional()
|
|
11124
|
-
|
|
11148
|
+
filter: QueryFilterSchema.optional(),
|
|
11149
|
+
/**
|
|
11150
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11151
|
+
*
|
|
11152
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11153
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11154
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11155
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11156
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11157
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11158
|
+
*
|
|
11159
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11160
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11161
|
+
* interface the engine destructures from. The field existed on both
|
|
11162
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11163
|
+
* registered provider against `InferProvider<cap>` —
|
|
11164
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11165
|
+
*
|
|
11166
|
+
* It is declared here anyway, and must stay in step with
|
|
11167
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11168
|
+
* to be able to see that this call carries a projection.
|
|
11169
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11170
|
+
*/
|
|
11171
|
+
columns: array(string()).readonly().optional()
|
|
11172
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11125
11173
|
namespace: string().optional(),
|
|
11126
11174
|
collection: string(),
|
|
11127
11175
|
record: SettingsRecordSchema
|
|
11128
|
-
}), _void(), {
|
|
11176
|
+
}), _void(), {
|
|
11177
|
+
kind: "mutation",
|
|
11178
|
+
auth: "admin"
|
|
11179
|
+
}), method(object({
|
|
11129
11180
|
namespace: string().optional(),
|
|
11130
11181
|
collection: string(),
|
|
11131
11182
|
id: string(),
|
|
11132
11183
|
data: record(string(), unknown())
|
|
11133
|
-
}), _void(), {
|
|
11184
|
+
}), _void(), {
|
|
11185
|
+
kind: "mutation",
|
|
11186
|
+
auth: "admin"
|
|
11187
|
+
}), method(object({
|
|
11134
11188
|
namespace: string().optional(),
|
|
11135
11189
|
collection: string(),
|
|
11136
11190
|
key: string()
|
|
11137
|
-
}), _void(), {
|
|
11191
|
+
}), _void(), {
|
|
11192
|
+
kind: "mutation",
|
|
11193
|
+
auth: "admin"
|
|
11194
|
+
}), method(object({
|
|
11138
11195
|
namespace: string().optional(),
|
|
11139
11196
|
collection: string(),
|
|
11140
11197
|
filter: MutationFilterSchema
|
|
11141
|
-
}), object({ deleted: number().int() }), {
|
|
11198
|
+
}), object({ deleted: number().int() }), {
|
|
11199
|
+
kind: "mutation",
|
|
11200
|
+
auth: "admin"
|
|
11201
|
+
}), method(object({
|
|
11142
11202
|
namespace: string().optional(),
|
|
11143
11203
|
collection: string(),
|
|
11144
11204
|
filter: MutationFilterSchema,
|
|
11145
11205
|
data: record(string(), unknown())
|
|
11146
|
-
}), object({ updated: number().int() }), {
|
|
11206
|
+
}), object({ updated: number().int() }), {
|
|
11207
|
+
kind: "mutation",
|
|
11208
|
+
auth: "admin"
|
|
11209
|
+
}), method(object({
|
|
11147
11210
|
namespace: string().optional(),
|
|
11148
11211
|
collection: string(),
|
|
11149
11212
|
filter: QueryFilterSchema.optional()
|
|
11150
|
-
}), number()), method(object({
|
|
11213
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11151
11214
|
namespace: string().optional(),
|
|
11152
11215
|
collection: string(),
|
|
11153
11216
|
field: string(),
|
|
@@ -11157,15 +11220,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11157
11220
|
}), array(object({
|
|
11158
11221
|
bucket: number().int(),
|
|
11159
11222
|
count: number().int()
|
|
11160
|
-
})).readonly()), method(object({
|
|
11223
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11161
11224
|
namespace: string().optional(),
|
|
11162
11225
|
collection: string()
|
|
11163
|
-
}), boolean()), method(object({
|
|
11226
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11164
11227
|
namespace: string().optional(),
|
|
11165
11228
|
collection: string(),
|
|
11166
11229
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11167
11230
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11168
|
-
}), _void(), {
|
|
11231
|
+
}), _void(), {
|
|
11232
|
+
kind: "mutation",
|
|
11233
|
+
auth: "admin"
|
|
11234
|
+
});
|
|
11169
11235
|
/**
|
|
11170
11236
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11171
11237
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -11993,6 +12059,27 @@ var LinkedDeviceSchema = object({
|
|
|
11993
12059
|
features: array(string()),
|
|
11994
12060
|
producesTrackedEvents: boolean().optional()
|
|
11995
12061
|
});
|
|
12062
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12063
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12064
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12065
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12066
|
+
deviceId: number(),
|
|
12067
|
+
mode: LinkedDevicesModeSchema,
|
|
12068
|
+
devices: array(LinkedDeviceSchema)
|
|
12069
|
+
});
|
|
12070
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12071
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12072
|
+
* object literal is exactly how the three drift apart. */
|
|
12073
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12074
|
+
deviceId: number(),
|
|
12075
|
+
entries: array(object({
|
|
12076
|
+
capName: string(),
|
|
12077
|
+
kind: _enum(["native", "wrapped"]),
|
|
12078
|
+
providerAddonId: string(),
|
|
12079
|
+
providerNodeId: string(),
|
|
12080
|
+
nativeAddonId: string()
|
|
12081
|
+
}))
|
|
12082
|
+
});
|
|
11996
12083
|
var SavedDeviceRowSchema = object({
|
|
11997
12084
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11998
12085
|
id: number(),
|
|
@@ -12218,11 +12305,25 @@ method(object({
|
|
|
12218
12305
|
projection: _enum(["full", "slim"]).optional(),
|
|
12219
12306
|
/** Return only camera devices. Filtering server-side instead of
|
|
12220
12307
|
* shipping 293 rows to find 12. */
|
|
12221
|
-
isCamera: boolean().optional()
|
|
12308
|
+
isCamera: boolean().optional(),
|
|
12309
|
+
/**
|
|
12310
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12311
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12312
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12313
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12314
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12315
|
+
* refetches on the reconcile interval, on a phone.
|
|
12316
|
+
*
|
|
12317
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12318
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12319
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12320
|
+
* it answers today and the caller filters as it already does.
|
|
12321
|
+
*/
|
|
12322
|
+
deviceIds: array(number()).optional()
|
|
12222
12323
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12223
12324
|
mode: LinkedDevicesModeSchema,
|
|
12224
12325
|
devices: array(LinkedDeviceSchema)
|
|
12225
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12326
|
+
})), 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({
|
|
12226
12327
|
deviceId: number(),
|
|
12227
12328
|
values: record(string(), unknown())
|
|
12228
12329
|
}), object({ success: literal(true) }), {
|
|
@@ -12249,25 +12350,7 @@ method(object({
|
|
|
12249
12350
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12250
12351
|
kind: "mutation",
|
|
12251
12352
|
auth: "admin"
|
|
12252
|
-
}), method(object({ deviceId: number() }), object({
|
|
12253
|
-
deviceId: number(),
|
|
12254
|
-
entries: array(object({
|
|
12255
|
-
capName: string(),
|
|
12256
|
-
kind: _enum(["native", "wrapped"]),
|
|
12257
|
-
providerAddonId: string(),
|
|
12258
|
-
providerNodeId: string(),
|
|
12259
|
-
nativeAddonId: string()
|
|
12260
|
-
}))
|
|
12261
|
-
})), method(object({}), array(object({
|
|
12262
|
-
deviceId: number(),
|
|
12263
|
-
entries: array(object({
|
|
12264
|
-
capName: string(),
|
|
12265
|
-
kind: _enum(["native", "wrapped"]),
|
|
12266
|
-
providerAddonId: string(),
|
|
12267
|
-
providerNodeId: string(),
|
|
12268
|
-
nativeAddonId: string()
|
|
12269
|
-
}))
|
|
12270
|
-
}))), method(object({
|
|
12353
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12271
12354
|
deviceId: number(),
|
|
12272
12355
|
capName: string(),
|
|
12273
12356
|
wrapperAddonId: string(),
|
|
@@ -12438,7 +12521,7 @@ method(object({
|
|
|
12438
12521
|
crop: _instanceof(Uint8Array),
|
|
12439
12522
|
width: number(),
|
|
12440
12523
|
height: number()
|
|
12441
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12524
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12442
12525
|
/**
|
|
12443
12526
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12444
12527
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12731,19 +12814,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12731
12814
|
runtime: ManagedRuntimeConfigSchema,
|
|
12732
12815
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12733
12816
|
timeoutMs: number().int().positive().optional()
|
|
12734
|
-
}), LlmGenerateResultSchema, {
|
|
12817
|
+
}), LlmGenerateResultSchema, {
|
|
12818
|
+
kind: "mutation",
|
|
12819
|
+
auth: "admin"
|
|
12820
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12735
12821
|
kind: "mutation",
|
|
12736
12822
|
auth: "admin"
|
|
12737
12823
|
}), method(object({}), _void(), {
|
|
12738
12824
|
kind: "mutation",
|
|
12739
12825
|
auth: "admin"
|
|
12740
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12826
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12741
12827
|
kind: "mutation",
|
|
12742
12828
|
auth: "admin"
|
|
12743
12829
|
}), method(object({ file: string() }), _void(), {
|
|
12744
12830
|
kind: "mutation",
|
|
12745
12831
|
auth: "admin"
|
|
12746
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12832
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12747
12833
|
/**
|
|
12748
12834
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12749
12835
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14677,12 +14763,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14677
14763
|
* there is no second switch that can disagree with the first and every rule
|
|
14678
14764
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14679
14765
|
*
|
|
14680
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14681
|
-
*
|
|
14682
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14683
|
-
*
|
|
14684
|
-
*
|
|
14685
|
-
*
|
|
14766
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14767
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14768
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14769
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14770
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14771
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14772
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14773
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14774
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14686
14775
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14687
14776
|
* the condition: at least `hitPercent`% of the samples over
|
|
14688
14777
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14709,14 +14798,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14709
14798
|
* an operator who typed `dog` mean the same thing.
|
|
14710
14799
|
*/
|
|
14711
14800
|
var NcAudioConditionSchema = object({
|
|
14712
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14801
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14713
14802
|
labels: array(string().min(1)).min(1).optional(),
|
|
14714
14803
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14715
14804
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14716
14805
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14717
14806
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14718
14807
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14719
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14808
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14809
|
+
/**
|
|
14810
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14811
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14812
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14813
|
+
*/
|
|
14814
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14815
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14816
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14720
14817
|
});
|
|
14721
14818
|
/**
|
|
14722
14819
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16243,7 +16340,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16243
16340
|
*/
|
|
16244
16341
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16245
16342
|
});
|
|
16246
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16343
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16247
16344
|
/**
|
|
16248
16345
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16249
16346
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -17090,6 +17187,46 @@ var RecentTracksPageSchema = object({
|
|
|
17090
17187
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17091
17188
|
nextCursor: string().nullable()
|
|
17092
17189
|
});
|
|
17190
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17191
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17192
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17193
|
+
id: string(),
|
|
17194
|
+
deviceId: number().int(),
|
|
17195
|
+
openedAt: number().int(),
|
|
17196
|
+
closedAt: number().int(),
|
|
17197
|
+
timestamp: number().int(),
|
|
17198
|
+
memberCount: number().int(),
|
|
17199
|
+
memberTrackIds: array(string()).readonly(),
|
|
17200
|
+
className: string(),
|
|
17201
|
+
classes: array(string()).readonly(),
|
|
17202
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17203
|
+
mediaUrl: string().nullable(),
|
|
17204
|
+
singleton: boolean()
|
|
17205
|
+
});
|
|
17206
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17207
|
+
trackId: string(),
|
|
17208
|
+
deviceId: number().int(),
|
|
17209
|
+
className: string(),
|
|
17210
|
+
firstSeen: number().int(),
|
|
17211
|
+
lastSeen: number().int(),
|
|
17212
|
+
mediaUrl: string().nullable()
|
|
17213
|
+
});
|
|
17214
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17215
|
+
var ListGroupsQueryInput = object({
|
|
17216
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17217
|
+
deviceIds: array(number()),
|
|
17218
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17219
|
+
since: number().optional(),
|
|
17220
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17221
|
+
until: number().optional(),
|
|
17222
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17223
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17224
|
+
cursor: string().optional()
|
|
17225
|
+
});
|
|
17226
|
+
var ListGroupsPageSchema = object({
|
|
17227
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17228
|
+
nextCursor: string().nullable()
|
|
17229
|
+
});
|
|
17093
17230
|
var KeyEventQueryInput = object({
|
|
17094
17231
|
deviceId: number(),
|
|
17095
17232
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17165,7 +17302,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17165
17302
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17166
17303
|
plates: number().int(),
|
|
17167
17304
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17168
|
-
embeddings: number().int()
|
|
17305
|
+
embeddings: number().int(),
|
|
17306
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17307
|
+
groups: number().int()
|
|
17169
17308
|
});
|
|
17170
17309
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17171
17310
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17311,7 +17450,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17311
17450
|
* stationary registry). Default false: the timeline lists passages,
|
|
17312
17451
|
* not parking records (operator decision, 2026-08-15). */
|
|
17313
17452
|
includeStationary: boolean().optional()
|
|
17314
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17453
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17454
|
+
deviceId: number(),
|
|
17455
|
+
groupId: string().min(1)
|
|
17456
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17315
17457
|
kind: "mutation",
|
|
17316
17458
|
auth: "admin"
|
|
17317
17459
|
}), 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({
|
|
@@ -17393,6 +17535,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17393
17535
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17394
17536
|
kind: "mutation",
|
|
17395
17537
|
auth: "admin"
|
|
17538
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17539
|
+
kind: "mutation",
|
|
17540
|
+
auth: "admin"
|
|
17541
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17542
|
+
kind: "query",
|
|
17543
|
+
auth: "admin"
|
|
17544
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17545
|
+
kind: "mutation",
|
|
17546
|
+
auth: "admin"
|
|
17396
17547
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17397
17548
|
kind: "query",
|
|
17398
17549
|
auth: "admin"
|
|
@@ -17547,6 +17698,11 @@ object({
|
|
|
17547
17698
|
"jpeg"
|
|
17548
17699
|
])
|
|
17549
17700
|
});
|
|
17701
|
+
/**
|
|
17702
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17703
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17704
|
+
* other process or execution group.
|
|
17705
|
+
*/
|
|
17550
17706
|
var FrameRefSchema = object({
|
|
17551
17707
|
registryId: string().min(1),
|
|
17552
17708
|
id: string().min(1),
|
|
@@ -17621,7 +17777,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17621
17777
|
sizeMB: number()
|
|
17622
17778
|
})),
|
|
17623
17779
|
group: ModelVariantGroupSchema.optional(),
|
|
17624
|
-
legacy: boolean().optional()
|
|
17780
|
+
legacy: boolean().optional(),
|
|
17781
|
+
provider: ModelProviderIdSchema.optional()
|
|
17625
17782
|
});
|
|
17626
17783
|
var ConfigFieldBridge = custom();
|
|
17627
17784
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -19855,7 +20012,7 @@ method(object({
|
|
|
19855
20012
|
* linking rather than produce an eternal token.
|
|
19856
20013
|
*/
|
|
19857
20014
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19858
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
20015
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19859
20016
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19860
20017
|
providerId: string().min(1),
|
|
19861
20018
|
displayName: string().min(1),
|
|
@@ -19950,10 +20107,13 @@ var EvictResultSchema = object({
|
|
|
19950
20107
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19951
20108
|
exhausted: boolean()
|
|
19952
20109
|
});
|
|
19953
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
20110
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19954
20111
|
locationId: string(),
|
|
19955
20112
|
targetBytes: number().int().positive()
|
|
19956
|
-
}), EvictResultSchema, {
|
|
20113
|
+
}), EvictResultSchema, {
|
|
20114
|
+
kind: "mutation",
|
|
20115
|
+
auth: "admin"
|
|
20116
|
+
});
|
|
19957
20117
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19958
20118
|
kind: "mutation",
|
|
19959
20119
|
auth: "admin"
|
|
@@ -20013,26 +20173,50 @@ var ReadChunkInputSchema = object({
|
|
|
20013
20173
|
length: number()
|
|
20014
20174
|
});
|
|
20015
20175
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
20016
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20176
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20017
20177
|
location: StorageLocationSchema,
|
|
20018
20178
|
relativePath: string()
|
|
20019
|
-
}), string()), method(object({
|
|
20179
|
+
}), string(), { auth: "admin" }), method(object({
|
|
20020
20180
|
location: StorageLocationSchema,
|
|
20021
20181
|
relativePath: string(),
|
|
20022
20182
|
data: _instanceof(Uint8Array)
|
|
20023
|
-
}), _void(), {
|
|
20183
|
+
}), _void(), {
|
|
20184
|
+
kind: "mutation",
|
|
20185
|
+
auth: "admin"
|
|
20186
|
+
}), method(object({
|
|
20024
20187
|
location: StorageLocationSchema,
|
|
20025
20188
|
relativePath: string()
|
|
20026
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
20189
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
20027
20190
|
location: StorageLocationSchema,
|
|
20028
20191
|
relativePath: string()
|
|
20029
|
-
}), boolean()), method(object({
|
|
20192
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
20030
20193
|
location: StorageLocationSchema,
|
|
20031
20194
|
prefix: string().optional()
|
|
20032
|
-
}), array(string()).readonly()), method(object({
|
|
20195
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
20033
20196
|
location: StorageLocationSchema,
|
|
20034
20197
|
relativePath: string()
|
|
20035
|
-
}), _void(), {
|
|
20198
|
+
}), _void(), {
|
|
20199
|
+
kind: "mutation",
|
|
20200
|
+
auth: "admin"
|
|
20201
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
20202
|
+
kind: "mutation",
|
|
20203
|
+
auth: "admin"
|
|
20204
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
20205
|
+
kind: "mutation",
|
|
20206
|
+
auth: "admin"
|
|
20207
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
20208
|
+
kind: "mutation",
|
|
20209
|
+
auth: "admin"
|
|
20210
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
20211
|
+
kind: "mutation",
|
|
20212
|
+
auth: "admin"
|
|
20213
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
20214
|
+
kind: "mutation",
|
|
20215
|
+
auth: "admin"
|
|
20216
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
20217
|
+
kind: "mutation",
|
|
20218
|
+
auth: "admin"
|
|
20219
|
+
});
|
|
20036
20220
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20037
20221
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20038
20222
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -20290,7 +20474,8 @@ method(object({
|
|
|
20290
20474
|
access: "create"
|
|
20291
20475
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20292
20476
|
kind: "mutation",
|
|
20293
|
-
access: "view"
|
|
20477
|
+
access: "view",
|
|
20478
|
+
auth: "admin"
|
|
20294
20479
|
}), method(object({
|
|
20295
20480
|
/** Required — the user the assertion belongs to (verified). */
|
|
20296
20481
|
userId: string(),
|
|
@@ -20298,10 +20483,12 @@ method(object({
|
|
|
20298
20483
|
response: record(string(), unknown())
|
|
20299
20484
|
}), object({ verified: boolean() }), {
|
|
20300
20485
|
kind: "mutation",
|
|
20301
|
-
access: "view"
|
|
20486
|
+
access: "view",
|
|
20487
|
+
auth: "admin"
|
|
20302
20488
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20303
20489
|
kind: "mutation",
|
|
20304
|
-
access: "view"
|
|
20490
|
+
access: "view",
|
|
20491
|
+
auth: "admin"
|
|
20305
20492
|
}), method(object({
|
|
20306
20493
|
/** AuthenticationResponseJSON from the browser. */
|
|
20307
20494
|
response: record(string(), unknown()) }), object({
|
|
@@ -20309,7 +20496,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20309
20496
|
userId: string().nullable()
|
|
20310
20497
|
}), {
|
|
20311
20498
|
kind: "mutation",
|
|
20312
|
-
access: "view"
|
|
20499
|
+
access: "view",
|
|
20500
|
+
auth: "admin"
|
|
20313
20501
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20314
20502
|
userId: string(),
|
|
20315
20503
|
credentialId: string()
|
|
@@ -20481,7 +20669,19 @@ var VectorStatsResultSchema = object({
|
|
|
20481
20669
|
/** False when the backend ranks approximately. */
|
|
20482
20670
|
exact: boolean()
|
|
20483
20671
|
});
|
|
20484
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20672
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20673
|
+
kind: "mutation",
|
|
20674
|
+
auth: "admin"
|
|
20675
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20676
|
+
kind: "mutation",
|
|
20677
|
+
auth: "admin"
|
|
20678
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20679
|
+
kind: "mutation",
|
|
20680
|
+
auth: "admin"
|
|
20681
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20682
|
+
kind: "mutation",
|
|
20683
|
+
auth: "admin"
|
|
20684
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20485
20685
|
var ClipSchema = object({
|
|
20486
20686
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20487
20687
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -22934,7 +23134,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
22934
23134
|
sizeBytes: number(),
|
|
22935
23135
|
timestamp: number()
|
|
22936
23136
|
});
|
|
22937
|
-
method(
|
|
23137
|
+
method(object({
|
|
23138
|
+
/**
|
|
23139
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
23140
|
+
*
|
|
23141
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
23142
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
23143
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
23144
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
23145
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
23146
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
23147
|
+
*
|
|
23148
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
23149
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
23150
|
+
*
|
|
23151
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
23152
|
+
* next train** — the hub router validates cap inputs against its own
|
|
23153
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
23154
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
23155
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
23156
|
+
*/
|
|
23157
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
22938
23158
|
kind: "mutation",
|
|
22939
23159
|
auth: "admin"
|
|
22940
23160
|
}), method(object({
|
|
@@ -25868,7 +26088,14 @@ var PlateInfoSchema = object({
|
|
|
25868
26088
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25869
26089
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25870
26090
|
keyFrameMediaKey: string().optional(),
|
|
25871
|
-
base64: string().optional()
|
|
26091
|
+
base64: string().optional(),
|
|
26092
|
+
/**
|
|
26093
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
26094
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
26095
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
26096
|
+
* left at its `true` default.
|
|
26097
|
+
*/
|
|
26098
|
+
cropUrl: string().optional()
|
|
25872
26099
|
});
|
|
25873
26100
|
var MediaFileLiteSchema = object({
|
|
25874
26101
|
key: string(),
|
|
@@ -25886,14 +26113,34 @@ var PlateClusterSchema = object({
|
|
|
25886
26113
|
});
|
|
25887
26114
|
method(object({
|
|
25888
26115
|
deviceId: number().int().optional(),
|
|
25889
|
-
limit: number().int().positive().optional()
|
|
26116
|
+
limit: number().int().positive().optional(),
|
|
26117
|
+
/**
|
|
26118
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
26119
|
+
* behaviour, kept so no caller breaks.
|
|
26120
|
+
*
|
|
26121
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
26122
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
26123
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
26124
|
+
* metadata without them — and the browser then caches the images.
|
|
26125
|
+
*
|
|
26126
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
26127
|
+
* plates were the one gallery list left without it.
|
|
26128
|
+
*
|
|
26129
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
26130
|
+
* next train.** The hub router validates cap inputs against its own
|
|
26131
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
26132
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
26133
|
+
*/
|
|
26134
|
+
includeCrops: boolean().optional()
|
|
25890
26135
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
25891
26136
|
deviceId: number().int(),
|
|
25892
26137
|
trackId: string()
|
|
25893
26138
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
25894
26139
|
text: string().min(1),
|
|
25895
26140
|
maxDistance: number().int().min(0).optional(),
|
|
25896
|
-
limit: number().int().positive().optional()
|
|
26141
|
+
limit: number().int().positive().optional(),
|
|
26142
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
26143
|
+
includeCrops: boolean().optional()
|
|
25897
26144
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
25898
26145
|
maxDistance: number().int().min(0).optional(),
|
|
25899
26146
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -25907,7 +26154,13 @@ method(object({
|
|
|
25907
26154
|
}), method(object({ plateId: string() }), _void(), {
|
|
25908
26155
|
kind: "mutation",
|
|
25909
26156
|
auth: "admin"
|
|
25910
|
-
}), method(
|
|
26157
|
+
}), method(object({
|
|
26158
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
26159
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
26160
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
26161
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
26162
|
+
* resolves to `false` and is exactly the intended default. */
|
|
26163
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
25911
26164
|
kind: "mutation",
|
|
25912
26165
|
auth: "admin"
|
|
25913
26166
|
}), method(object({
|
|
@@ -31838,6 +32091,12 @@ Object.freeze({
|
|
|
31838
32091
|
addonId: null,
|
|
31839
32092
|
access: "view"
|
|
31840
32093
|
},
|
|
32094
|
+
"deviceManager.getBindingsBatch": {
|
|
32095
|
+
capName: "device-manager",
|
|
32096
|
+
capScope: "system",
|
|
32097
|
+
addonId: null,
|
|
32098
|
+
access: "view"
|
|
32099
|
+
},
|
|
31841
32100
|
"deviceManager.getChildren": {
|
|
31842
32101
|
capName: "device-manager",
|
|
31843
32102
|
capScope: "system",
|
|
@@ -31898,6 +32157,12 @@ Object.freeze({
|
|
|
31898
32157
|
addonId: null,
|
|
31899
32158
|
access: "view"
|
|
31900
32159
|
},
|
|
32160
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
32161
|
+
capName: "device-manager",
|
|
32162
|
+
capScope: "system",
|
|
32163
|
+
addonId: null,
|
|
32164
|
+
access: "view"
|
|
32165
|
+
},
|
|
31901
32166
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31902
32167
|
capName: "device-manager",
|
|
31903
32168
|
capScope: "system",
|
|
@@ -33602,6 +33867,12 @@ Object.freeze({
|
|
|
33602
33867
|
addonId: null,
|
|
33603
33868
|
access: "create"
|
|
33604
33869
|
},
|
|
33870
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
33871
|
+
capName: "pipeline-analytics",
|
|
33872
|
+
capScope: "device",
|
|
33873
|
+
addonId: null,
|
|
33874
|
+
access: "create"
|
|
33875
|
+
},
|
|
33605
33876
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
33606
33877
|
capName: "pipeline-analytics",
|
|
33607
33878
|
capScope: "device",
|
|
@@ -33668,6 +33939,12 @@ Object.freeze({
|
|
|
33668
33939
|
addonId: null,
|
|
33669
33940
|
access: "view"
|
|
33670
33941
|
},
|
|
33942
|
+
"pipelineAnalytics.getGroup": {
|
|
33943
|
+
capName: "pipeline-analytics",
|
|
33944
|
+
capScope: "device",
|
|
33945
|
+
addonId: null,
|
|
33946
|
+
access: "view"
|
|
33947
|
+
},
|
|
33671
33948
|
"pipelineAnalytics.getKeyEvents": {
|
|
33672
33949
|
capName: "pipeline-analytics",
|
|
33673
33950
|
capScope: "device",
|
|
@@ -33752,6 +34029,12 @@ Object.freeze({
|
|
|
33752
34029
|
addonId: null,
|
|
33753
34030
|
access: "view"
|
|
33754
34031
|
},
|
|
34032
|
+
"pipelineAnalytics.listGroups": {
|
|
34033
|
+
capName: "pipeline-analytics",
|
|
34034
|
+
capScope: "device",
|
|
34035
|
+
addonId: null,
|
|
34036
|
+
access: "view"
|
|
34037
|
+
},
|
|
33755
34038
|
"pipelineAnalytics.listOpsLog": {
|
|
33756
34039
|
capName: "pipeline-analytics",
|
|
33757
34040
|
capScope: "device",
|
|
@@ -33764,6 +34047,12 @@ Object.freeze({
|
|
|
33764
34047
|
addonId: null,
|
|
33765
34048
|
access: "view"
|
|
33766
34049
|
},
|
|
34050
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
34051
|
+
capName: "pipeline-analytics",
|
|
34052
|
+
capScope: "device",
|
|
34053
|
+
addonId: null,
|
|
34054
|
+
access: "view"
|
|
34055
|
+
},
|
|
33767
34056
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
33768
34057
|
capName: "pipeline-analytics",
|
|
33769
34058
|
capScope: "device",
|
|
@@ -33842,6 +34131,12 @@ Object.freeze({
|
|
|
33842
34131
|
addonId: null,
|
|
33843
34132
|
access: "create"
|
|
33844
34133
|
},
|
|
34134
|
+
"pipelineAnalytics.relocateMedia": {
|
|
34135
|
+
capName: "pipeline-analytics",
|
|
34136
|
+
capScope: "device",
|
|
34137
|
+
addonId: null,
|
|
34138
|
+
access: "create"
|
|
34139
|
+
},
|
|
33845
34140
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
33846
34141
|
capName: "pipeline-analytics",
|
|
33847
34142
|
capScope: "device",
|
|
@@ -36533,6 +36828,11 @@ Object.freeze({
|
|
|
36533
36828
|
form: "single",
|
|
36534
36829
|
optional: false
|
|
36535
36830
|
}],
|
|
36831
|
+
"deviceManager.getBindingsBatch": [{
|
|
36832
|
+
name: "deviceIds",
|
|
36833
|
+
form: "array",
|
|
36834
|
+
optional: false
|
|
36835
|
+
}],
|
|
36536
36836
|
"deviceManager.getChildren": [{
|
|
36537
36837
|
name: "parentDeviceId",
|
|
36538
36838
|
form: "single",
|
|
@@ -36578,6 +36878,11 @@ Object.freeze({
|
|
|
36578
36878
|
form: "single",
|
|
36579
36879
|
optional: false
|
|
36580
36880
|
}],
|
|
36881
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36882
|
+
name: "deviceIds",
|
|
36883
|
+
form: "array",
|
|
36884
|
+
optional: false
|
|
36885
|
+
}],
|
|
36581
36886
|
"deviceManager.getSettingsSchema": [{
|
|
36582
36887
|
name: "deviceId",
|
|
36583
36888
|
form: "single",
|
|
@@ -36598,6 +36903,11 @@ Object.freeze({
|
|
|
36598
36903
|
form: "single",
|
|
36599
36904
|
optional: false
|
|
36600
36905
|
}],
|
|
36906
|
+
"deviceManager.listAll": [{
|
|
36907
|
+
name: "deviceIds",
|
|
36908
|
+
form: "array",
|
|
36909
|
+
optional: true
|
|
36910
|
+
}],
|
|
36601
36911
|
"deviceManager.loadConfig": [{
|
|
36602
36912
|
name: "deviceId",
|
|
36603
36913
|
form: "single",
|
|
@@ -37171,6 +37481,11 @@ Object.freeze({
|
|
|
37171
37481
|
form: "single",
|
|
37172
37482
|
optional: false
|
|
37173
37483
|
}],
|
|
37484
|
+
"pipelineAnalytics.getGroup": [{
|
|
37485
|
+
name: "deviceId",
|
|
37486
|
+
form: "single",
|
|
37487
|
+
optional: false
|
|
37488
|
+
}],
|
|
37174
37489
|
"pipelineAnalytics.getKeyEvents": [{
|
|
37175
37490
|
name: "deviceId",
|
|
37176
37491
|
form: "single",
|
|
@@ -37226,6 +37541,11 @@ Object.freeze({
|
|
|
37226
37541
|
form: "array",
|
|
37227
37542
|
optional: false
|
|
37228
37543
|
}],
|
|
37544
|
+
"pipelineAnalytics.listGroups": [{
|
|
37545
|
+
name: "deviceIds",
|
|
37546
|
+
form: "array",
|
|
37547
|
+
optional: false
|
|
37548
|
+
}],
|
|
37229
37549
|
"pipelineAnalytics.listOpsLog": [{
|
|
37230
37550
|
name: "deviceId",
|
|
37231
37551
|
form: "single",
|