@camstack/addon-provider-onvif 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/addon.js +431 -111
- package/dist/addon.mjs +431 -111
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -5805,6 +5805,13 @@ var BaseAddon = class {
|
|
|
5805
5805
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5806
5806
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5807
5807
|
_registeredCapNames = [];
|
|
5808
|
+
/**
|
|
5809
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5810
|
+
* defaults look like stored config when the store is down — a forked
|
|
5811
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5812
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5813
|
+
*/
|
|
5814
|
+
settingsStoreReady = false;
|
|
5808
5815
|
/** Default config values. Provided via constructor. */
|
|
5809
5816
|
defaults;
|
|
5810
5817
|
constructor(defaults) {
|
|
@@ -6205,7 +6212,9 @@ var BaseAddon = class {
|
|
|
6205
6212
|
];
|
|
6206
6213
|
let lastErr;
|
|
6207
6214
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6208
|
-
|
|
6215
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6216
|
+
this.settingsStoreReady = true;
|
|
6217
|
+
return stored;
|
|
6209
6218
|
} catch (err) {
|
|
6210
6219
|
lastErr = err;
|
|
6211
6220
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6213,6 +6222,7 @@ var BaseAddon = class {
|
|
|
6213
6222
|
if (attempt === delaysMs.length) break;
|
|
6214
6223
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6215
6224
|
}
|
|
6225
|
+
this.settingsStoreReady = false;
|
|
6216
6226
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6217
6227
|
return {};
|
|
6218
6228
|
}
|
|
@@ -6624,7 +6634,7 @@ function method(input, output, options) {
|
|
|
6624
6634
|
input,
|
|
6625
6635
|
output,
|
|
6626
6636
|
kind: options?.kind ?? "query",
|
|
6627
|
-
auth: options
|
|
6637
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6628
6638
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6629
6639
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6630
6640
|
timeoutMs: options?.timeoutMs
|
|
@@ -6644,7 +6654,7 @@ function systemMethod(input, output, options) {
|
|
|
6644
6654
|
}
|
|
6645
6655
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6646
6656
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6647
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6657
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6648
6658
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6649
6659
|
DeviceType["Camera"] = "camera";
|
|
6650
6660
|
DeviceType["Hub"] = "hub";
|
|
@@ -6965,7 +6975,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6965
6975
|
}({});
|
|
6966
6976
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6967
6977
|
var VersionOutputSchema = object({ version: string() });
|
|
6968
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6978
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6969
6979
|
/**
|
|
6970
6980
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6971
6981
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7591,24 +7601,6 @@ var RecordingRetentionSchema = object({
|
|
|
7591
7601
|
maxSizeGb: number().min(0).optional()
|
|
7592
7602
|
});
|
|
7593
7603
|
/**
|
|
7594
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7595
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7596
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7597
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7598
|
-
*
|
|
7599
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7600
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7601
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7602
|
-
* written with.
|
|
7603
|
-
*/
|
|
7604
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7605
|
-
"minimal",
|
|
7606
|
-
"low",
|
|
7607
|
-
"standard",
|
|
7608
|
-
"high",
|
|
7609
|
-
"max"
|
|
7610
|
-
]);
|
|
7611
|
-
/**
|
|
7612
7604
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7613
7605
|
*
|
|
7614
7606
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7616,7 +7608,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7616
7608
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7617
7609
|
*
|
|
7618
7610
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7619
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7611
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7612
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7613
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7614
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7615
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7620
7616
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7621
7617
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7622
7618
|
*/
|
|
@@ -7639,14 +7635,7 @@ var RecordingConfigSchema = object({
|
|
|
7639
7635
|
* "off" is the absence of a covering band, never a band value.
|
|
7640
7636
|
*/
|
|
7641
7637
|
bands: array(RecordingBandSchema).default([]),
|
|
7642
|
-
retention: RecordingRetentionSchema.optional()
|
|
7643
|
-
/**
|
|
7644
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7645
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7646
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7647
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7648
|
-
*/
|
|
7649
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7638
|
+
retention: RecordingRetentionSchema.optional()
|
|
7650
7639
|
}).strict();
|
|
7651
7640
|
/**
|
|
7652
7641
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7722,10 +7711,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7722
7711
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7723
7712
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7724
7713
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7725
|
-
var
|
|
7714
|
+
var RelocateMediaInputSchema = object({
|
|
7726
7715
|
toLocationId: string(),
|
|
7727
7716
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7728
|
-
})
|
|
7717
|
+
});
|
|
7718
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7729
7719
|
/** The independently selectable logical storage classes. `recordings`
|
|
7730
7720
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7731
7721
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8020,7 +8010,26 @@ var LabelDefinitionSchema = object({
|
|
|
8020
8010
|
description: string().optional(),
|
|
8021
8011
|
icon: string().optional()
|
|
8022
8012
|
});
|
|
8023
|
-
|
|
8013
|
+
/**
|
|
8014
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8015
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8016
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8017
|
+
* detection pipeline executor actually routes.
|
|
8018
|
+
*
|
|
8019
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8020
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8021
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8022
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8023
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8024
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8025
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8026
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8027
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8028
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8029
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8030
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8031
|
+
*/
|
|
8032
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8024
8033
|
mapping: record(string(), _enum([
|
|
8025
8034
|
"person",
|
|
8026
8035
|
"vehicle",
|
|
@@ -8112,6 +8121,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8112
8121
|
*/
|
|
8113
8122
|
resolution: number().int().positive().optional()
|
|
8114
8123
|
});
|
|
8124
|
+
var ModelProviderIdSchema = _enum([
|
|
8125
|
+
"camstack",
|
|
8126
|
+
"frigate",
|
|
8127
|
+
"scrypted",
|
|
8128
|
+
"custom"
|
|
8129
|
+
]);
|
|
8115
8130
|
var ModelCatalogEntrySchema = object({
|
|
8116
8131
|
id: string(),
|
|
8117
8132
|
name: string(),
|
|
@@ -8209,11 +8224,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
8209
8224
|
*/
|
|
8210
8225
|
group: ModelVariantGroupSchema.optional(),
|
|
8211
8226
|
/**
|
|
8227
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8228
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8229
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8230
|
+
*/
|
|
8231
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8232
|
+
/**
|
|
8212
8233
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8213
8234
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8214
8235
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8215
8236
|
*/
|
|
8216
|
-
classMap:
|
|
8237
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8217
8238
|
});
|
|
8218
8239
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8219
8240
|
format: literal("openvino"),
|
|
@@ -8243,7 +8264,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8243
8264
|
"segmentation"
|
|
8244
8265
|
]),
|
|
8245
8266
|
faceAlignment: boolean().optional(),
|
|
8246
|
-
classMap:
|
|
8267
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8247
8268
|
});
|
|
8248
8269
|
var ConvertResultSchema = object({
|
|
8249
8270
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9106,7 +9127,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9106
9127
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9107
9128
|
sectionLabel: string().optional()
|
|
9108
9129
|
});
|
|
9109
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9130
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9110
9131
|
var AddonHttpRouteSchema = object({
|
|
9111
9132
|
method: _enum([
|
|
9112
9133
|
"GET",
|
|
@@ -9341,7 +9362,7 @@ var WidgetMetadataSchema = object({
|
|
|
9341
9362
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9342
9363
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9343
9364
|
});
|
|
9344
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9365
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9345
9366
|
/**
|
|
9346
9367
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9347
9368
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -10863,7 +10884,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10863
10884
|
stepId: string(),
|
|
10864
10885
|
entry: ModelCatalogEntrySchema
|
|
10865
10886
|
});
|
|
10866
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10887
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10867
10888
|
/**
|
|
10868
10889
|
* Query filter for settings-store collections.
|
|
10869
10890
|
*/
|
|
@@ -10950,7 +10971,8 @@ method(object({
|
|
|
10950
10971
|
}), _void(), { kind: "mutation" }), method(object({
|
|
10951
10972
|
namespace: string().optional(),
|
|
10952
10973
|
collection: string(),
|
|
10953
|
-
filter: QueryFilterSchema.optional()
|
|
10974
|
+
filter: QueryFilterSchema.optional(),
|
|
10975
|
+
columns: array(string()).readonly().optional()
|
|
10954
10976
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
10955
10977
|
namespace: string().optional(),
|
|
10956
10978
|
collection: string(),
|
|
@@ -11013,46 +11035,87 @@ var EngineInfoSchema = object({
|
|
|
11013
11035
|
kind: _enum(["relational", "vector"]),
|
|
11014
11036
|
displayName: string()
|
|
11015
11037
|
});
|
|
11016
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11038
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11017
11039
|
namespace: string().optional(),
|
|
11018
11040
|
collection: string(),
|
|
11019
11041
|
key: string()
|
|
11020
|
-
}), unknown()), method(object({
|
|
11042
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11021
11043
|
namespace: string().optional(),
|
|
11022
11044
|
collection: string(),
|
|
11023
11045
|
key: string(),
|
|
11024
11046
|
value: unknown()
|
|
11025
|
-
}), _void(), {
|
|
11047
|
+
}), _void(), {
|
|
11048
|
+
kind: "mutation",
|
|
11049
|
+
auth: "admin"
|
|
11050
|
+
}), method(object({
|
|
11026
11051
|
namespace: string().optional(),
|
|
11027
11052
|
collection: string(),
|
|
11028
|
-
filter: QueryFilterSchema.optional()
|
|
11029
|
-
|
|
11053
|
+
filter: QueryFilterSchema.optional(),
|
|
11054
|
+
/**
|
|
11055
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11056
|
+
*
|
|
11057
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11058
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11059
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11060
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11061
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11062
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11063
|
+
*
|
|
11064
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11065
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11066
|
+
* interface the engine destructures from. The field existed on both
|
|
11067
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11068
|
+
* registered provider against `InferProvider<cap>` —
|
|
11069
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11070
|
+
*
|
|
11071
|
+
* It is declared here anyway, and must stay in step with
|
|
11072
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11073
|
+
* to be able to see that this call carries a projection.
|
|
11074
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11075
|
+
*/
|
|
11076
|
+
columns: array(string()).readonly().optional()
|
|
11077
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11030
11078
|
namespace: string().optional(),
|
|
11031
11079
|
collection: string(),
|
|
11032
11080
|
record: SettingsRecordSchema
|
|
11033
|
-
}), _void(), {
|
|
11081
|
+
}), _void(), {
|
|
11082
|
+
kind: "mutation",
|
|
11083
|
+
auth: "admin"
|
|
11084
|
+
}), method(object({
|
|
11034
11085
|
namespace: string().optional(),
|
|
11035
11086
|
collection: string(),
|
|
11036
11087
|
id: string(),
|
|
11037
11088
|
data: record(string(), unknown())
|
|
11038
|
-
}), _void(), {
|
|
11089
|
+
}), _void(), {
|
|
11090
|
+
kind: "mutation",
|
|
11091
|
+
auth: "admin"
|
|
11092
|
+
}), method(object({
|
|
11039
11093
|
namespace: string().optional(),
|
|
11040
11094
|
collection: string(),
|
|
11041
11095
|
key: string()
|
|
11042
|
-
}), _void(), {
|
|
11096
|
+
}), _void(), {
|
|
11097
|
+
kind: "mutation",
|
|
11098
|
+
auth: "admin"
|
|
11099
|
+
}), method(object({
|
|
11043
11100
|
namespace: string().optional(),
|
|
11044
11101
|
collection: string(),
|
|
11045
11102
|
filter: MutationFilterSchema
|
|
11046
|
-
}), object({ deleted: number().int() }), {
|
|
11103
|
+
}), object({ deleted: number().int() }), {
|
|
11104
|
+
kind: "mutation",
|
|
11105
|
+
auth: "admin"
|
|
11106
|
+
}), method(object({
|
|
11047
11107
|
namespace: string().optional(),
|
|
11048
11108
|
collection: string(),
|
|
11049
11109
|
filter: MutationFilterSchema,
|
|
11050
11110
|
data: record(string(), unknown())
|
|
11051
|
-
}), object({ updated: number().int() }), {
|
|
11111
|
+
}), object({ updated: number().int() }), {
|
|
11112
|
+
kind: "mutation",
|
|
11113
|
+
auth: "admin"
|
|
11114
|
+
}), method(object({
|
|
11052
11115
|
namespace: string().optional(),
|
|
11053
11116
|
collection: string(),
|
|
11054
11117
|
filter: QueryFilterSchema.optional()
|
|
11055
|
-
}), number()), method(object({
|
|
11118
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11056
11119
|
namespace: string().optional(),
|
|
11057
11120
|
collection: string(),
|
|
11058
11121
|
field: string(),
|
|
@@ -11062,15 +11125,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11062
11125
|
}), array(object({
|
|
11063
11126
|
bucket: number().int(),
|
|
11064
11127
|
count: number().int()
|
|
11065
|
-
})).readonly()), method(object({
|
|
11128
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11066
11129
|
namespace: string().optional(),
|
|
11067
11130
|
collection: string()
|
|
11068
|
-
}), boolean()), method(object({
|
|
11131
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11069
11132
|
namespace: string().optional(),
|
|
11070
11133
|
collection: string(),
|
|
11071
11134
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11072
11135
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11073
|
-
}), _void(), {
|
|
11136
|
+
}), _void(), {
|
|
11137
|
+
kind: "mutation",
|
|
11138
|
+
auth: "admin"
|
|
11139
|
+
});
|
|
11074
11140
|
/**
|
|
11075
11141
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11076
11142
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -11791,6 +11857,27 @@ var LinkedDeviceSchema = object({
|
|
|
11791
11857
|
features: array(string()),
|
|
11792
11858
|
producesTrackedEvents: boolean().optional()
|
|
11793
11859
|
});
|
|
11860
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
11861
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
11862
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
11863
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
11864
|
+
deviceId: number(),
|
|
11865
|
+
mode: LinkedDevicesModeSchema,
|
|
11866
|
+
devices: array(LinkedDeviceSchema)
|
|
11867
|
+
});
|
|
11868
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
11869
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
11870
|
+
* object literal is exactly how the three drift apart. */
|
|
11871
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
11872
|
+
deviceId: number(),
|
|
11873
|
+
entries: array(object({
|
|
11874
|
+
capName: string(),
|
|
11875
|
+
kind: _enum(["native", "wrapped"]),
|
|
11876
|
+
providerAddonId: string(),
|
|
11877
|
+
providerNodeId: string(),
|
|
11878
|
+
nativeAddonId: string()
|
|
11879
|
+
}))
|
|
11880
|
+
});
|
|
11794
11881
|
var SavedDeviceRowSchema = object({
|
|
11795
11882
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11796
11883
|
id: number(),
|
|
@@ -12016,11 +12103,25 @@ method(object({
|
|
|
12016
12103
|
projection: _enum(["full", "slim"]).optional(),
|
|
12017
12104
|
/** Return only camera devices. Filtering server-side instead of
|
|
12018
12105
|
* shipping 293 rows to find 12. */
|
|
12019
|
-
isCamera: boolean().optional()
|
|
12106
|
+
isCamera: boolean().optional(),
|
|
12107
|
+
/**
|
|
12108
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12109
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12110
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12111
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12112
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12113
|
+
* refetches on the reconcile interval, on a phone.
|
|
12114
|
+
*
|
|
12115
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12116
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12117
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12118
|
+
* it answers today and the caller filters as it already does.
|
|
12119
|
+
*/
|
|
12120
|
+
deviceIds: array(number()).optional()
|
|
12020
12121
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12021
12122
|
mode: LinkedDevicesModeSchema,
|
|
12022
12123
|
devices: array(LinkedDeviceSchema)
|
|
12023
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12124
|
+
})), 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({
|
|
12024
12125
|
deviceId: number(),
|
|
12025
12126
|
values: record(string(), unknown())
|
|
12026
12127
|
}), object({ success: literal(true) }), {
|
|
@@ -12047,25 +12148,7 @@ method(object({
|
|
|
12047
12148
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12048
12149
|
kind: "mutation",
|
|
12049
12150
|
auth: "admin"
|
|
12050
|
-
}), method(object({ deviceId: number() }), object({
|
|
12051
|
-
deviceId: number(),
|
|
12052
|
-
entries: array(object({
|
|
12053
|
-
capName: string(),
|
|
12054
|
-
kind: _enum(["native", "wrapped"]),
|
|
12055
|
-
providerAddonId: string(),
|
|
12056
|
-
providerNodeId: string(),
|
|
12057
|
-
nativeAddonId: string()
|
|
12058
|
-
}))
|
|
12059
|
-
})), method(object({}), array(object({
|
|
12060
|
-
deviceId: number(),
|
|
12061
|
-
entries: array(object({
|
|
12062
|
-
capName: string(),
|
|
12063
|
-
kind: _enum(["native", "wrapped"]),
|
|
12064
|
-
providerAddonId: string(),
|
|
12065
|
-
providerNodeId: string(),
|
|
12066
|
-
nativeAddonId: string()
|
|
12067
|
-
}))
|
|
12068
|
-
}))), method(object({
|
|
12151
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12069
12152
|
deviceId: number(),
|
|
12070
12153
|
capName: string(),
|
|
12071
12154
|
wrapperAddonId: string(),
|
|
@@ -12236,7 +12319,7 @@ method(object({
|
|
|
12236
12319
|
crop: _instanceof(Uint8Array),
|
|
12237
12320
|
width: number(),
|
|
12238
12321
|
height: number()
|
|
12239
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12322
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12240
12323
|
/**
|
|
12241
12324
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12242
12325
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12529,19 +12612,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12529
12612
|
runtime: ManagedRuntimeConfigSchema,
|
|
12530
12613
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12531
12614
|
timeoutMs: number().int().positive().optional()
|
|
12532
|
-
}), LlmGenerateResultSchema, {
|
|
12615
|
+
}), LlmGenerateResultSchema, {
|
|
12616
|
+
kind: "mutation",
|
|
12617
|
+
auth: "admin"
|
|
12618
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12533
12619
|
kind: "mutation",
|
|
12534
12620
|
auth: "admin"
|
|
12535
12621
|
}), method(object({}), _void(), {
|
|
12536
12622
|
kind: "mutation",
|
|
12537
12623
|
auth: "admin"
|
|
12538
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12624
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12539
12625
|
kind: "mutation",
|
|
12540
12626
|
auth: "admin"
|
|
12541
12627
|
}), method(object({ file: string() }), _void(), {
|
|
12542
12628
|
kind: "mutation",
|
|
12543
12629
|
auth: "admin"
|
|
12544
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12630
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12545
12631
|
/**
|
|
12546
12632
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12547
12633
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -14437,12 +14523,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14437
14523
|
* there is no second switch that can disagree with the first and every rule
|
|
14438
14524
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14439
14525
|
*
|
|
14440
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14441
|
-
*
|
|
14442
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14443
|
-
*
|
|
14444
|
-
*
|
|
14445
|
-
*
|
|
14526
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14527
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14528
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14529
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14530
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14531
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14532
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14533
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14534
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14446
14535
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14447
14536
|
* the condition: at least `hitPercent`% of the samples over
|
|
14448
14537
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14469,14 +14558,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14469
14558
|
* an operator who typed `dog` mean the same thing.
|
|
14470
14559
|
*/
|
|
14471
14560
|
var NcAudioConditionSchema = object({
|
|
14472
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14561
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14473
14562
|
labels: array(string().min(1)).min(1).optional(),
|
|
14474
14563
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14475
14564
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14476
14565
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14477
14566
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14478
14567
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14479
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14568
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14569
|
+
/**
|
|
14570
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14571
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14572
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14573
|
+
*/
|
|
14574
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14575
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14576
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14480
14577
|
});
|
|
14481
14578
|
/**
|
|
14482
14579
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16003,7 +16100,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16003
16100
|
*/
|
|
16004
16101
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16005
16102
|
});
|
|
16006
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16103
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16007
16104
|
/**
|
|
16008
16105
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16009
16106
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -16850,6 +16947,46 @@ var RecentTracksPageSchema = object({
|
|
|
16850
16947
|
/** Cursor for the next page, or null when this page is the last. */
|
|
16851
16948
|
nextCursor: string().nullable()
|
|
16852
16949
|
});
|
|
16950
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
16951
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
16952
|
+
var AnalyticsGroupRecordSchema = object({
|
|
16953
|
+
id: string(),
|
|
16954
|
+
deviceId: number().int(),
|
|
16955
|
+
openedAt: number().int(),
|
|
16956
|
+
closedAt: number().int(),
|
|
16957
|
+
timestamp: number().int(),
|
|
16958
|
+
memberCount: number().int(),
|
|
16959
|
+
memberTrackIds: array(string()).readonly(),
|
|
16960
|
+
className: string(),
|
|
16961
|
+
classes: array(string()).readonly(),
|
|
16962
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
16963
|
+
mediaUrl: string().nullable(),
|
|
16964
|
+
singleton: boolean()
|
|
16965
|
+
});
|
|
16966
|
+
var AnalyticsGroupMemberSchema = object({
|
|
16967
|
+
trackId: string(),
|
|
16968
|
+
deviceId: number().int(),
|
|
16969
|
+
className: string(),
|
|
16970
|
+
firstSeen: number().int(),
|
|
16971
|
+
lastSeen: number().int(),
|
|
16972
|
+
mediaUrl: string().nullable()
|
|
16973
|
+
});
|
|
16974
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
16975
|
+
var ListGroupsQueryInput = object({
|
|
16976
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
16977
|
+
deviceIds: array(number()),
|
|
16978
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
16979
|
+
since: number().optional(),
|
|
16980
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
16981
|
+
until: number().optional(),
|
|
16982
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
16983
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
16984
|
+
cursor: string().optional()
|
|
16985
|
+
});
|
|
16986
|
+
var ListGroupsPageSchema = object({
|
|
16987
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
16988
|
+
nextCursor: string().nullable()
|
|
16989
|
+
});
|
|
16853
16990
|
var KeyEventQueryInput = object({
|
|
16854
16991
|
deviceId: number(),
|
|
16855
16992
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -16925,7 +17062,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
16925
17062
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
16926
17063
|
plates: number().int(),
|
|
16927
17064
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16928
|
-
embeddings: number().int()
|
|
17065
|
+
embeddings: number().int(),
|
|
17066
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17067
|
+
groups: number().int()
|
|
16929
17068
|
});
|
|
16930
17069
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
16931
17070
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17071,7 +17210,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17071
17210
|
* stationary registry). Default false: the timeline lists passages,
|
|
17072
17211
|
* not parking records (operator decision, 2026-08-15). */
|
|
17073
17212
|
includeStationary: boolean().optional()
|
|
17074
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17213
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17214
|
+
deviceId: number(),
|
|
17215
|
+
groupId: string().min(1)
|
|
17216
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17075
17217
|
kind: "mutation",
|
|
17076
17218
|
auth: "admin"
|
|
17077
17219
|
}), 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({
|
|
@@ -17153,6 +17295,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17153
17295
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17154
17296
|
kind: "mutation",
|
|
17155
17297
|
auth: "admin"
|
|
17298
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17299
|
+
kind: "mutation",
|
|
17300
|
+
auth: "admin"
|
|
17301
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17302
|
+
kind: "query",
|
|
17303
|
+
auth: "admin"
|
|
17304
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17305
|
+
kind: "mutation",
|
|
17306
|
+
auth: "admin"
|
|
17156
17307
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17157
17308
|
kind: "query",
|
|
17158
17309
|
auth: "admin"
|
|
@@ -17307,6 +17458,11 @@ object({
|
|
|
17307
17458
|
"jpeg"
|
|
17308
17459
|
])
|
|
17309
17460
|
});
|
|
17461
|
+
/**
|
|
17462
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17463
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17464
|
+
* other process or execution group.
|
|
17465
|
+
*/
|
|
17310
17466
|
var FrameRefSchema = object({
|
|
17311
17467
|
registryId: string().min(1),
|
|
17312
17468
|
id: string().min(1),
|
|
@@ -17381,7 +17537,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17381
17537
|
sizeMB: number()
|
|
17382
17538
|
})),
|
|
17383
17539
|
group: ModelVariantGroupSchema.optional(),
|
|
17384
|
-
legacy: boolean().optional()
|
|
17540
|
+
legacy: boolean().optional(),
|
|
17541
|
+
provider: ModelProviderIdSchema.optional()
|
|
17385
17542
|
});
|
|
17386
17543
|
var ConfigFieldBridge = custom();
|
|
17387
17544
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -19575,7 +19732,7 @@ method(object({
|
|
|
19575
19732
|
* linking rather than produce an eternal token.
|
|
19576
19733
|
*/
|
|
19577
19734
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19578
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
19735
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19579
19736
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19580
19737
|
providerId: string().min(1),
|
|
19581
19738
|
displayName: string().min(1),
|
|
@@ -19670,10 +19827,13 @@ var EvictResultSchema = object({
|
|
|
19670
19827
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19671
19828
|
exhausted: boolean()
|
|
19672
19829
|
});
|
|
19673
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
19830
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19674
19831
|
locationId: string(),
|
|
19675
19832
|
targetBytes: number().int().positive()
|
|
19676
|
-
}), EvictResultSchema, {
|
|
19833
|
+
}), EvictResultSchema, {
|
|
19834
|
+
kind: "mutation",
|
|
19835
|
+
auth: "admin"
|
|
19836
|
+
});
|
|
19677
19837
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19678
19838
|
kind: "mutation",
|
|
19679
19839
|
auth: "admin"
|
|
@@ -19733,26 +19893,50 @@ var ReadChunkInputSchema = object({
|
|
|
19733
19893
|
length: number()
|
|
19734
19894
|
});
|
|
19735
19895
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
19736
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19896
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
19737
19897
|
location: StorageLocationSchema,
|
|
19738
19898
|
relativePath: string()
|
|
19739
|
-
}), string()), method(object({
|
|
19899
|
+
}), string(), { auth: "admin" }), method(object({
|
|
19740
19900
|
location: StorageLocationSchema,
|
|
19741
19901
|
relativePath: string(),
|
|
19742
19902
|
data: _instanceof(Uint8Array)
|
|
19743
|
-
}), _void(), {
|
|
19903
|
+
}), _void(), {
|
|
19904
|
+
kind: "mutation",
|
|
19905
|
+
auth: "admin"
|
|
19906
|
+
}), method(object({
|
|
19744
19907
|
location: StorageLocationSchema,
|
|
19745
19908
|
relativePath: string()
|
|
19746
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
19909
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
19747
19910
|
location: StorageLocationSchema,
|
|
19748
19911
|
relativePath: string()
|
|
19749
|
-
}), boolean()), method(object({
|
|
19912
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
19750
19913
|
location: StorageLocationSchema,
|
|
19751
19914
|
prefix: string().optional()
|
|
19752
|
-
}), array(string()).readonly()), method(object({
|
|
19915
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
19753
19916
|
location: StorageLocationSchema,
|
|
19754
19917
|
relativePath: string()
|
|
19755
|
-
}), _void(), {
|
|
19918
|
+
}), _void(), {
|
|
19919
|
+
kind: "mutation",
|
|
19920
|
+
auth: "admin"
|
|
19921
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
19922
|
+
kind: "mutation",
|
|
19923
|
+
auth: "admin"
|
|
19924
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
19925
|
+
kind: "mutation",
|
|
19926
|
+
auth: "admin"
|
|
19927
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
19928
|
+
kind: "mutation",
|
|
19929
|
+
auth: "admin"
|
|
19930
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
19931
|
+
kind: "mutation",
|
|
19932
|
+
auth: "admin"
|
|
19933
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
19934
|
+
kind: "mutation",
|
|
19935
|
+
auth: "admin"
|
|
19936
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
19937
|
+
kind: "mutation",
|
|
19938
|
+
auth: "admin"
|
|
19939
|
+
});
|
|
19756
19940
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19757
19941
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19758
19942
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -20010,7 +20194,8 @@ method(object({
|
|
|
20010
20194
|
access: "create"
|
|
20011
20195
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20012
20196
|
kind: "mutation",
|
|
20013
|
-
access: "view"
|
|
20197
|
+
access: "view",
|
|
20198
|
+
auth: "admin"
|
|
20014
20199
|
}), method(object({
|
|
20015
20200
|
/** Required — the user the assertion belongs to (verified). */
|
|
20016
20201
|
userId: string(),
|
|
@@ -20018,10 +20203,12 @@ method(object({
|
|
|
20018
20203
|
response: record(string(), unknown())
|
|
20019
20204
|
}), object({ verified: boolean() }), {
|
|
20020
20205
|
kind: "mutation",
|
|
20021
|
-
access: "view"
|
|
20206
|
+
access: "view",
|
|
20207
|
+
auth: "admin"
|
|
20022
20208
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20023
20209
|
kind: "mutation",
|
|
20024
|
-
access: "view"
|
|
20210
|
+
access: "view",
|
|
20211
|
+
auth: "admin"
|
|
20025
20212
|
}), method(object({
|
|
20026
20213
|
/** AuthenticationResponseJSON from the browser. */
|
|
20027
20214
|
response: record(string(), unknown()) }), object({
|
|
@@ -20029,7 +20216,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20029
20216
|
userId: string().nullable()
|
|
20030
20217
|
}), {
|
|
20031
20218
|
kind: "mutation",
|
|
20032
|
-
access: "view"
|
|
20219
|
+
access: "view",
|
|
20220
|
+
auth: "admin"
|
|
20033
20221
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20034
20222
|
userId: string(),
|
|
20035
20223
|
credentialId: string()
|
|
@@ -20201,7 +20389,19 @@ var VectorStatsResultSchema = object({
|
|
|
20201
20389
|
/** False when the backend ranks approximately. */
|
|
20202
20390
|
exact: boolean()
|
|
20203
20391
|
});
|
|
20204
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20392
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20393
|
+
kind: "mutation",
|
|
20394
|
+
auth: "admin"
|
|
20395
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20396
|
+
kind: "mutation",
|
|
20397
|
+
auth: "admin"
|
|
20398
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20399
|
+
kind: "mutation",
|
|
20400
|
+
auth: "admin"
|
|
20401
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20402
|
+
kind: "mutation",
|
|
20403
|
+
auth: "admin"
|
|
20404
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20205
20405
|
var ClipSchema = object({
|
|
20206
20406
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20207
20407
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -21924,7 +22124,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
21924
22124
|
sizeBytes: number(),
|
|
21925
22125
|
timestamp: number()
|
|
21926
22126
|
});
|
|
21927
|
-
method(
|
|
22127
|
+
method(object({
|
|
22128
|
+
/**
|
|
22129
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
22130
|
+
*
|
|
22131
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
22132
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
22133
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
22134
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
22135
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
22136
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
22137
|
+
*
|
|
22138
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
22139
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
22140
|
+
*
|
|
22141
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
22142
|
+
* next train** — the hub router validates cap inputs against its own
|
|
22143
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
22144
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
22145
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
22146
|
+
*/
|
|
22147
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
21928
22148
|
kind: "mutation",
|
|
21929
22149
|
auth: "admin"
|
|
21930
22150
|
}), method(object({
|
|
@@ -24069,7 +24289,14 @@ var PlateInfoSchema = object({
|
|
|
24069
24289
|
plateBbox: BoundingBoxSchema.optional(),
|
|
24070
24290
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
24071
24291
|
keyFrameMediaKey: string().optional(),
|
|
24072
|
-
base64: string().optional()
|
|
24292
|
+
base64: string().optional(),
|
|
24293
|
+
/**
|
|
24294
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
24295
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
24296
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
24297
|
+
* left at its `true` default.
|
|
24298
|
+
*/
|
|
24299
|
+
cropUrl: string().optional()
|
|
24073
24300
|
});
|
|
24074
24301
|
var MediaFileLiteSchema = object({
|
|
24075
24302
|
key: string(),
|
|
@@ -24087,14 +24314,34 @@ var PlateClusterSchema = object({
|
|
|
24087
24314
|
});
|
|
24088
24315
|
method(object({
|
|
24089
24316
|
deviceId: number().int().optional(),
|
|
24090
|
-
limit: number().int().positive().optional()
|
|
24317
|
+
limit: number().int().positive().optional(),
|
|
24318
|
+
/**
|
|
24319
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
24320
|
+
* behaviour, kept so no caller breaks.
|
|
24321
|
+
*
|
|
24322
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
24323
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
24324
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
24325
|
+
* metadata without them — and the browser then caches the images.
|
|
24326
|
+
*
|
|
24327
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
24328
|
+
* plates were the one gallery list left without it.
|
|
24329
|
+
*
|
|
24330
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
24331
|
+
* next train.** The hub router validates cap inputs against its own
|
|
24332
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
24333
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
24334
|
+
*/
|
|
24335
|
+
includeCrops: boolean().optional()
|
|
24091
24336
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
24092
24337
|
deviceId: number().int(),
|
|
24093
24338
|
trackId: string()
|
|
24094
24339
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
24095
24340
|
text: string().min(1),
|
|
24096
24341
|
maxDistance: number().int().min(0).optional(),
|
|
24097
|
-
limit: number().int().positive().optional()
|
|
24342
|
+
limit: number().int().positive().optional(),
|
|
24343
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
24344
|
+
includeCrops: boolean().optional()
|
|
24098
24345
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
24099
24346
|
maxDistance: number().int().min(0).optional(),
|
|
24100
24347
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -24108,7 +24355,13 @@ method(object({
|
|
|
24108
24355
|
}), method(object({ plateId: string() }), _void(), {
|
|
24109
24356
|
kind: "mutation",
|
|
24110
24357
|
auth: "admin"
|
|
24111
|
-
}), method(
|
|
24358
|
+
}), method(object({
|
|
24359
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
24360
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
24361
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
24362
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
24363
|
+
* resolves to `false` and is exactly the intended default. */
|
|
24364
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
24112
24365
|
kind: "mutation",
|
|
24113
24366
|
auth: "admin"
|
|
24114
24367
|
}), method(object({
|
|
@@ -28161,6 +28414,12 @@ Object.freeze({
|
|
|
28161
28414
|
addonId: null,
|
|
28162
28415
|
access: "view"
|
|
28163
28416
|
},
|
|
28417
|
+
"deviceManager.getBindingsBatch": {
|
|
28418
|
+
capName: "device-manager",
|
|
28419
|
+
capScope: "system",
|
|
28420
|
+
addonId: null,
|
|
28421
|
+
access: "view"
|
|
28422
|
+
},
|
|
28164
28423
|
"deviceManager.getChildren": {
|
|
28165
28424
|
capName: "device-manager",
|
|
28166
28425
|
capScope: "system",
|
|
@@ -28221,6 +28480,12 @@ Object.freeze({
|
|
|
28221
28480
|
addonId: null,
|
|
28222
28481
|
access: "view"
|
|
28223
28482
|
},
|
|
28483
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
28484
|
+
capName: "device-manager",
|
|
28485
|
+
capScope: "system",
|
|
28486
|
+
addonId: null,
|
|
28487
|
+
access: "view"
|
|
28488
|
+
},
|
|
28224
28489
|
"deviceManager.getRoleDisplayDefaults": {
|
|
28225
28490
|
capName: "device-manager",
|
|
28226
28491
|
capScope: "system",
|
|
@@ -29925,6 +30190,12 @@ Object.freeze({
|
|
|
29925
30190
|
addonId: null,
|
|
29926
30191
|
access: "create"
|
|
29927
30192
|
},
|
|
30193
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
30194
|
+
capName: "pipeline-analytics",
|
|
30195
|
+
capScope: "device",
|
|
30196
|
+
addonId: null,
|
|
30197
|
+
access: "create"
|
|
30198
|
+
},
|
|
29928
30199
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
29929
30200
|
capName: "pipeline-analytics",
|
|
29930
30201
|
capScope: "device",
|
|
@@ -29991,6 +30262,12 @@ Object.freeze({
|
|
|
29991
30262
|
addonId: null,
|
|
29992
30263
|
access: "view"
|
|
29993
30264
|
},
|
|
30265
|
+
"pipelineAnalytics.getGroup": {
|
|
30266
|
+
capName: "pipeline-analytics",
|
|
30267
|
+
capScope: "device",
|
|
30268
|
+
addonId: null,
|
|
30269
|
+
access: "view"
|
|
30270
|
+
},
|
|
29994
30271
|
"pipelineAnalytics.getKeyEvents": {
|
|
29995
30272
|
capName: "pipeline-analytics",
|
|
29996
30273
|
capScope: "device",
|
|
@@ -30075,6 +30352,12 @@ Object.freeze({
|
|
|
30075
30352
|
addonId: null,
|
|
30076
30353
|
access: "view"
|
|
30077
30354
|
},
|
|
30355
|
+
"pipelineAnalytics.listGroups": {
|
|
30356
|
+
capName: "pipeline-analytics",
|
|
30357
|
+
capScope: "device",
|
|
30358
|
+
addonId: null,
|
|
30359
|
+
access: "view"
|
|
30360
|
+
},
|
|
30078
30361
|
"pipelineAnalytics.listOpsLog": {
|
|
30079
30362
|
capName: "pipeline-analytics",
|
|
30080
30363
|
capScope: "device",
|
|
@@ -30087,6 +30370,12 @@ Object.freeze({
|
|
|
30087
30370
|
addonId: null,
|
|
30088
30371
|
access: "view"
|
|
30089
30372
|
},
|
|
30373
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
30374
|
+
capName: "pipeline-analytics",
|
|
30375
|
+
capScope: "device",
|
|
30376
|
+
addonId: null,
|
|
30377
|
+
access: "view"
|
|
30378
|
+
},
|
|
30090
30379
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
30091
30380
|
capName: "pipeline-analytics",
|
|
30092
30381
|
capScope: "device",
|
|
@@ -30165,6 +30454,12 @@ Object.freeze({
|
|
|
30165
30454
|
addonId: null,
|
|
30166
30455
|
access: "create"
|
|
30167
30456
|
},
|
|
30457
|
+
"pipelineAnalytics.relocateMedia": {
|
|
30458
|
+
capName: "pipeline-analytics",
|
|
30459
|
+
capScope: "device",
|
|
30460
|
+
addonId: null,
|
|
30461
|
+
access: "create"
|
|
30462
|
+
},
|
|
30168
30463
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
30169
30464
|
capName: "pipeline-analytics",
|
|
30170
30465
|
capScope: "device",
|
|
@@ -32856,6 +33151,11 @@ Object.freeze({
|
|
|
32856
33151
|
form: "single",
|
|
32857
33152
|
optional: false
|
|
32858
33153
|
}],
|
|
33154
|
+
"deviceManager.getBindingsBatch": [{
|
|
33155
|
+
name: "deviceIds",
|
|
33156
|
+
form: "array",
|
|
33157
|
+
optional: false
|
|
33158
|
+
}],
|
|
32859
33159
|
"deviceManager.getChildren": [{
|
|
32860
33160
|
name: "parentDeviceId",
|
|
32861
33161
|
form: "single",
|
|
@@ -32901,6 +33201,11 @@ Object.freeze({
|
|
|
32901
33201
|
form: "single",
|
|
32902
33202
|
optional: false
|
|
32903
33203
|
}],
|
|
33204
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
33205
|
+
name: "deviceIds",
|
|
33206
|
+
form: "array",
|
|
33207
|
+
optional: false
|
|
33208
|
+
}],
|
|
32904
33209
|
"deviceManager.getSettingsSchema": [{
|
|
32905
33210
|
name: "deviceId",
|
|
32906
33211
|
form: "single",
|
|
@@ -32921,6 +33226,11 @@ Object.freeze({
|
|
|
32921
33226
|
form: "single",
|
|
32922
33227
|
optional: false
|
|
32923
33228
|
}],
|
|
33229
|
+
"deviceManager.listAll": [{
|
|
33230
|
+
name: "deviceIds",
|
|
33231
|
+
form: "array",
|
|
33232
|
+
optional: true
|
|
33233
|
+
}],
|
|
32924
33234
|
"deviceManager.loadConfig": [{
|
|
32925
33235
|
name: "deviceId",
|
|
32926
33236
|
form: "single",
|
|
@@ -33494,6 +33804,11 @@ Object.freeze({
|
|
|
33494
33804
|
form: "single",
|
|
33495
33805
|
optional: false
|
|
33496
33806
|
}],
|
|
33807
|
+
"pipelineAnalytics.getGroup": [{
|
|
33808
|
+
name: "deviceId",
|
|
33809
|
+
form: "single",
|
|
33810
|
+
optional: false
|
|
33811
|
+
}],
|
|
33497
33812
|
"pipelineAnalytics.getKeyEvents": [{
|
|
33498
33813
|
name: "deviceId",
|
|
33499
33814
|
form: "single",
|
|
@@ -33549,6 +33864,11 @@ Object.freeze({
|
|
|
33549
33864
|
form: "array",
|
|
33550
33865
|
optional: false
|
|
33551
33866
|
}],
|
|
33867
|
+
"pipelineAnalytics.listGroups": [{
|
|
33868
|
+
name: "deviceIds",
|
|
33869
|
+
form: "array",
|
|
33870
|
+
optional: false
|
|
33871
|
+
}],
|
|
33552
33872
|
"pipelineAnalytics.listOpsLog": [{
|
|
33553
33873
|
name: "deviceId",
|
|
33554
33874
|
form: "single",
|