@camstack/addon-provider-unifi 0.2.28 → 0.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +249 -79
- package/dist/addon.mjs +249 -79
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -6630,7 +6630,7 @@ function method(input, output, options) {
|
|
|
6630
6630
|
input,
|
|
6631
6631
|
output,
|
|
6632
6632
|
kind: options?.kind ?? "query",
|
|
6633
|
-
auth: options
|
|
6633
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6634
6634
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6635
6635
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6636
6636
|
timeoutMs: options?.timeoutMs
|
|
@@ -6654,7 +6654,7 @@ function event(data) {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6656
6656
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6657
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6657
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6658
6658
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6659
6659
|
DeviceType["Camera"] = "camera";
|
|
6660
6660
|
DeviceType["Hub"] = "hub";
|
|
@@ -6975,7 +6975,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6975
6975
|
}({});
|
|
6976
6976
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6977
6977
|
var VersionOutputSchema = object({ version: string() });
|
|
6978
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6978
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6979
6979
|
/**
|
|
6980
6980
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6981
6981
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7601,24 +7601,6 @@ var RecordingRetentionSchema = object({
|
|
|
7601
7601
|
maxSizeGb: number().min(0).optional()
|
|
7602
7602
|
});
|
|
7603
7603
|
/**
|
|
7604
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7605
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7606
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7607
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7608
|
-
*
|
|
7609
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7610
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7611
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7612
|
-
* written with.
|
|
7613
|
-
*/
|
|
7614
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7615
|
-
"minimal",
|
|
7616
|
-
"low",
|
|
7617
|
-
"standard",
|
|
7618
|
-
"high",
|
|
7619
|
-
"max"
|
|
7620
|
-
]);
|
|
7621
|
-
/**
|
|
7622
7604
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7623
7605
|
*
|
|
7624
7606
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7626,7 +7608,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7626
7608
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7627
7609
|
*
|
|
7628
7610
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7629
|
-
* `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).
|
|
7630
7616
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7631
7617
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7632
7618
|
*/
|
|
@@ -7649,14 +7635,7 @@ var RecordingConfigSchema = object({
|
|
|
7649
7635
|
* "off" is the absence of a covering band, never a band value.
|
|
7650
7636
|
*/
|
|
7651
7637
|
bands: array(RecordingBandSchema).default([]),
|
|
7652
|
-
retention: RecordingRetentionSchema.optional()
|
|
7653
|
-
/**
|
|
7654
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7655
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7656
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7657
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7658
|
-
*/
|
|
7659
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7638
|
+
retention: RecordingRetentionSchema.optional()
|
|
7660
7639
|
}).strict();
|
|
7661
7640
|
/**
|
|
7662
7641
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7732,10 +7711,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7732
7711
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7733
7712
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7734
7713
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7735
|
-
var
|
|
7714
|
+
var RelocateMediaInputSchema = object({
|
|
7736
7715
|
toLocationId: string(),
|
|
7737
7716
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7738
|
-
})
|
|
7717
|
+
});
|
|
7718
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7739
7719
|
/** The independently selectable logical storage classes. `recordings`
|
|
7740
7720
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7741
7721
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8030,7 +8010,26 @@ var LabelDefinitionSchema = object({
|
|
|
8030
8010
|
description: string().optional(),
|
|
8031
8011
|
icon: string().optional()
|
|
8032
8012
|
});
|
|
8033
|
-
|
|
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({
|
|
8034
8033
|
mapping: record(string(), _enum([
|
|
8035
8034
|
"person",
|
|
8036
8035
|
"vehicle",
|
|
@@ -8235,7 +8234,7 @@ var ModelCatalogEntrySchema = object({
|
|
|
8235
8234
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8236
8235
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8237
8236
|
*/
|
|
8238
|
-
classMap:
|
|
8237
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8239
8238
|
});
|
|
8240
8239
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8241
8240
|
format: literal("openvino"),
|
|
@@ -8265,7 +8264,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8265
8264
|
"segmentation"
|
|
8266
8265
|
]),
|
|
8267
8266
|
faceAlignment: boolean().optional(),
|
|
8268
|
-
classMap:
|
|
8267
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8269
8268
|
});
|
|
8270
8269
|
var ConvertResultSchema = object({
|
|
8271
8270
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9128,7 +9127,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9128
9127
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9129
9128
|
sectionLabel: string().optional()
|
|
9130
9129
|
});
|
|
9131
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9130
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9132
9131
|
var AddonHttpRouteSchema = object({
|
|
9133
9132
|
method: _enum([
|
|
9134
9133
|
"GET",
|
|
@@ -9363,7 +9362,7 @@ var WidgetMetadataSchema = object({
|
|
|
9363
9362
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9364
9363
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9365
9364
|
});
|
|
9366
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9365
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9367
9366
|
/**
|
|
9368
9367
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9369
9368
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -10987,7 +10986,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10987
10986
|
stepId: string(),
|
|
10988
10987
|
entry: ModelCatalogEntrySchema
|
|
10989
10988
|
});
|
|
10990
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10989
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10991
10990
|
/**
|
|
10992
10991
|
* Query filter for settings-store collections.
|
|
10993
10992
|
*/
|
|
@@ -11074,7 +11073,8 @@ method(object({
|
|
|
11074
11073
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11075
11074
|
namespace: string().optional(),
|
|
11076
11075
|
collection: string(),
|
|
11077
|
-
filter: QueryFilterSchema.optional()
|
|
11076
|
+
filter: QueryFilterSchema.optional(),
|
|
11077
|
+
columns: array(string()).readonly().optional()
|
|
11078
11078
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
11079
11079
|
namespace: string().optional(),
|
|
11080
11080
|
collection: string(),
|
|
@@ -11137,46 +11137,87 @@ var EngineInfoSchema = object({
|
|
|
11137
11137
|
kind: _enum(["relational", "vector"]),
|
|
11138
11138
|
displayName: string()
|
|
11139
11139
|
});
|
|
11140
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11140
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11141
11141
|
namespace: string().optional(),
|
|
11142
11142
|
collection: string(),
|
|
11143
11143
|
key: string()
|
|
11144
|
-
}), unknown()), method(object({
|
|
11144
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11145
11145
|
namespace: string().optional(),
|
|
11146
11146
|
collection: string(),
|
|
11147
11147
|
key: string(),
|
|
11148
11148
|
value: unknown()
|
|
11149
|
-
}), _void(), {
|
|
11149
|
+
}), _void(), {
|
|
11150
|
+
kind: "mutation",
|
|
11151
|
+
auth: "admin"
|
|
11152
|
+
}), method(object({
|
|
11150
11153
|
namespace: string().optional(),
|
|
11151
11154
|
collection: string(),
|
|
11152
|
-
filter: QueryFilterSchema.optional()
|
|
11153
|
-
|
|
11155
|
+
filter: QueryFilterSchema.optional(),
|
|
11156
|
+
/**
|
|
11157
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11158
|
+
*
|
|
11159
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11160
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11161
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11162
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11163
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11164
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11165
|
+
*
|
|
11166
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11167
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11168
|
+
* interface the engine destructures from. The field existed on both
|
|
11169
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11170
|
+
* registered provider against `InferProvider<cap>` —
|
|
11171
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11172
|
+
*
|
|
11173
|
+
* It is declared here anyway, and must stay in step with
|
|
11174
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11175
|
+
* to be able to see that this call carries a projection.
|
|
11176
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11177
|
+
*/
|
|
11178
|
+
columns: array(string()).readonly().optional()
|
|
11179
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11154
11180
|
namespace: string().optional(),
|
|
11155
11181
|
collection: string(),
|
|
11156
11182
|
record: SettingsRecordSchema
|
|
11157
|
-
}), _void(), {
|
|
11183
|
+
}), _void(), {
|
|
11184
|
+
kind: "mutation",
|
|
11185
|
+
auth: "admin"
|
|
11186
|
+
}), method(object({
|
|
11158
11187
|
namespace: string().optional(),
|
|
11159
11188
|
collection: string(),
|
|
11160
11189
|
id: string(),
|
|
11161
11190
|
data: record(string(), unknown())
|
|
11162
|
-
}), _void(), {
|
|
11191
|
+
}), _void(), {
|
|
11192
|
+
kind: "mutation",
|
|
11193
|
+
auth: "admin"
|
|
11194
|
+
}), method(object({
|
|
11163
11195
|
namespace: string().optional(),
|
|
11164
11196
|
collection: string(),
|
|
11165
11197
|
key: string()
|
|
11166
|
-
}), _void(), {
|
|
11198
|
+
}), _void(), {
|
|
11199
|
+
kind: "mutation",
|
|
11200
|
+
auth: "admin"
|
|
11201
|
+
}), method(object({
|
|
11167
11202
|
namespace: string().optional(),
|
|
11168
11203
|
collection: string(),
|
|
11169
11204
|
filter: MutationFilterSchema
|
|
11170
|
-
}), object({ deleted: number().int() }), {
|
|
11205
|
+
}), object({ deleted: number().int() }), {
|
|
11206
|
+
kind: "mutation",
|
|
11207
|
+
auth: "admin"
|
|
11208
|
+
}), method(object({
|
|
11171
11209
|
namespace: string().optional(),
|
|
11172
11210
|
collection: string(),
|
|
11173
11211
|
filter: MutationFilterSchema,
|
|
11174
11212
|
data: record(string(), unknown())
|
|
11175
|
-
}), object({ updated: number().int() }), {
|
|
11213
|
+
}), object({ updated: number().int() }), {
|
|
11214
|
+
kind: "mutation",
|
|
11215
|
+
auth: "admin"
|
|
11216
|
+
}), method(object({
|
|
11176
11217
|
namespace: string().optional(),
|
|
11177
11218
|
collection: string(),
|
|
11178
11219
|
filter: QueryFilterSchema.optional()
|
|
11179
|
-
}), number()), method(object({
|
|
11220
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11180
11221
|
namespace: string().optional(),
|
|
11181
11222
|
collection: string(),
|
|
11182
11223
|
field: string(),
|
|
@@ -11186,15 +11227,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11186
11227
|
}), array(object({
|
|
11187
11228
|
bucket: number().int(),
|
|
11188
11229
|
count: number().int()
|
|
11189
|
-
})).readonly()), method(object({
|
|
11230
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11190
11231
|
namespace: string().optional(),
|
|
11191
11232
|
collection: string()
|
|
11192
|
-
}), boolean()), method(object({
|
|
11233
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11193
11234
|
namespace: string().optional(),
|
|
11194
11235
|
collection: string(),
|
|
11195
11236
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11196
11237
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11197
|
-
}), _void(), {
|
|
11238
|
+
}), _void(), {
|
|
11239
|
+
kind: "mutation",
|
|
11240
|
+
auth: "admin"
|
|
11241
|
+
});
|
|
11198
11242
|
/**
|
|
11199
11243
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11200
11244
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -12484,7 +12528,7 @@ method(object({
|
|
|
12484
12528
|
crop: _instanceof(Uint8Array),
|
|
12485
12529
|
width: number(),
|
|
12486
12530
|
height: number()
|
|
12487
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12531
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12488
12532
|
/**
|
|
12489
12533
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12490
12534
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12777,19 +12821,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12777
12821
|
runtime: ManagedRuntimeConfigSchema,
|
|
12778
12822
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12779
12823
|
timeoutMs: number().int().positive().optional()
|
|
12780
|
-
}), LlmGenerateResultSchema, {
|
|
12824
|
+
}), LlmGenerateResultSchema, {
|
|
12825
|
+
kind: "mutation",
|
|
12826
|
+
auth: "admin"
|
|
12827
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12781
12828
|
kind: "mutation",
|
|
12782
12829
|
auth: "admin"
|
|
12783
12830
|
}), method(object({}), _void(), {
|
|
12784
12831
|
kind: "mutation",
|
|
12785
12832
|
auth: "admin"
|
|
12786
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12833
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12787
12834
|
kind: "mutation",
|
|
12788
12835
|
auth: "admin"
|
|
12789
12836
|
}), method(object({ file: string() }), _void(), {
|
|
12790
12837
|
kind: "mutation",
|
|
12791
12838
|
auth: "admin"
|
|
12792
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12839
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12793
12840
|
/**
|
|
12794
12841
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12795
12842
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -16300,7 +16347,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16300
16347
|
*/
|
|
16301
16348
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16302
16349
|
});
|
|
16303
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16350
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16304
16351
|
/**
|
|
16305
16352
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16306
16353
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -17495,6 +17542,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17495
17542
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17496
17543
|
kind: "mutation",
|
|
17497
17544
|
auth: "admin"
|
|
17545
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17546
|
+
kind: "mutation",
|
|
17547
|
+
auth: "admin"
|
|
17548
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17549
|
+
kind: "query",
|
|
17550
|
+
auth: "admin"
|
|
17551
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17552
|
+
kind: "mutation",
|
|
17553
|
+
auth: "admin"
|
|
17498
17554
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17499
17555
|
kind: "query",
|
|
17500
17556
|
auth: "admin"
|
|
@@ -17649,6 +17705,11 @@ object({
|
|
|
17649
17705
|
"jpeg"
|
|
17650
17706
|
])
|
|
17651
17707
|
});
|
|
17708
|
+
/**
|
|
17709
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17710
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17711
|
+
* other process or execution group.
|
|
17712
|
+
*/
|
|
17652
17713
|
var FrameRefSchema = object({
|
|
17653
17714
|
registryId: string().min(1),
|
|
17654
17715
|
id: string().min(1),
|
|
@@ -19854,7 +19915,7 @@ method(object({
|
|
|
19854
19915
|
* linking rather than produce an eternal token.
|
|
19855
19916
|
*/
|
|
19856
19917
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19857
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
19918
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19858
19919
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19859
19920
|
providerId: string().min(1),
|
|
19860
19921
|
displayName: string().min(1),
|
|
@@ -19949,10 +20010,13 @@ var EvictResultSchema = object({
|
|
|
19949
20010
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19950
20011
|
exhausted: boolean()
|
|
19951
20012
|
});
|
|
19952
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
20013
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19953
20014
|
locationId: string(),
|
|
19954
20015
|
targetBytes: number().int().positive()
|
|
19955
|
-
}), EvictResultSchema, {
|
|
20016
|
+
}), EvictResultSchema, {
|
|
20017
|
+
kind: "mutation",
|
|
20018
|
+
auth: "admin"
|
|
20019
|
+
});
|
|
19956
20020
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19957
20021
|
kind: "mutation",
|
|
19958
20022
|
auth: "admin"
|
|
@@ -20012,26 +20076,50 @@ var ReadChunkInputSchema = object({
|
|
|
20012
20076
|
length: number()
|
|
20013
20077
|
});
|
|
20014
20078
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
20015
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20079
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20016
20080
|
location: StorageLocationSchema,
|
|
20017
20081
|
relativePath: string()
|
|
20018
|
-
}), string()), method(object({
|
|
20082
|
+
}), string(), { auth: "admin" }), method(object({
|
|
20019
20083
|
location: StorageLocationSchema,
|
|
20020
20084
|
relativePath: string(),
|
|
20021
20085
|
data: _instanceof(Uint8Array)
|
|
20022
|
-
}), _void(), {
|
|
20086
|
+
}), _void(), {
|
|
20087
|
+
kind: "mutation",
|
|
20088
|
+
auth: "admin"
|
|
20089
|
+
}), method(object({
|
|
20023
20090
|
location: StorageLocationSchema,
|
|
20024
20091
|
relativePath: string()
|
|
20025
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
20092
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
20026
20093
|
location: StorageLocationSchema,
|
|
20027
20094
|
relativePath: string()
|
|
20028
|
-
}), boolean()), method(object({
|
|
20095
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
20029
20096
|
location: StorageLocationSchema,
|
|
20030
20097
|
prefix: string().optional()
|
|
20031
|
-
}), array(string()).readonly()), method(object({
|
|
20098
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
20032
20099
|
location: StorageLocationSchema,
|
|
20033
20100
|
relativePath: string()
|
|
20034
|
-
}), _void(), {
|
|
20101
|
+
}), _void(), {
|
|
20102
|
+
kind: "mutation",
|
|
20103
|
+
auth: "admin"
|
|
20104
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
20105
|
+
kind: "mutation",
|
|
20106
|
+
auth: "admin"
|
|
20107
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
20108
|
+
kind: "mutation",
|
|
20109
|
+
auth: "admin"
|
|
20110
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
20111
|
+
kind: "mutation",
|
|
20112
|
+
auth: "admin"
|
|
20113
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
20114
|
+
kind: "mutation",
|
|
20115
|
+
auth: "admin"
|
|
20116
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
20117
|
+
kind: "mutation",
|
|
20118
|
+
auth: "admin"
|
|
20119
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
20120
|
+
kind: "mutation",
|
|
20121
|
+
auth: "admin"
|
|
20122
|
+
});
|
|
20035
20123
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20036
20124
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20037
20125
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -20289,7 +20377,8 @@ method(object({
|
|
|
20289
20377
|
access: "create"
|
|
20290
20378
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20291
20379
|
kind: "mutation",
|
|
20292
|
-
access: "view"
|
|
20380
|
+
access: "view",
|
|
20381
|
+
auth: "admin"
|
|
20293
20382
|
}), method(object({
|
|
20294
20383
|
/** Required — the user the assertion belongs to (verified). */
|
|
20295
20384
|
userId: string(),
|
|
@@ -20297,10 +20386,12 @@ method(object({
|
|
|
20297
20386
|
response: record(string(), unknown())
|
|
20298
20387
|
}), object({ verified: boolean() }), {
|
|
20299
20388
|
kind: "mutation",
|
|
20300
|
-
access: "view"
|
|
20389
|
+
access: "view",
|
|
20390
|
+
auth: "admin"
|
|
20301
20391
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20302
20392
|
kind: "mutation",
|
|
20303
|
-
access: "view"
|
|
20393
|
+
access: "view",
|
|
20394
|
+
auth: "admin"
|
|
20304
20395
|
}), method(object({
|
|
20305
20396
|
/** AuthenticationResponseJSON from the browser. */
|
|
20306
20397
|
response: record(string(), unknown()) }), object({
|
|
@@ -20308,7 +20399,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20308
20399
|
userId: string().nullable()
|
|
20309
20400
|
}), {
|
|
20310
20401
|
kind: "mutation",
|
|
20311
|
-
access: "view"
|
|
20402
|
+
access: "view",
|
|
20403
|
+
auth: "admin"
|
|
20312
20404
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20313
20405
|
userId: string(),
|
|
20314
20406
|
credentialId: string()
|
|
@@ -20480,7 +20572,19 @@ var VectorStatsResultSchema = object({
|
|
|
20480
20572
|
/** False when the backend ranks approximately. */
|
|
20481
20573
|
exact: boolean()
|
|
20482
20574
|
});
|
|
20483
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20575
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20576
|
+
kind: "mutation",
|
|
20577
|
+
auth: "admin"
|
|
20578
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20579
|
+
kind: "mutation",
|
|
20580
|
+
auth: "admin"
|
|
20581
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20582
|
+
kind: "mutation",
|
|
20583
|
+
auth: "admin"
|
|
20584
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20585
|
+
kind: "mutation",
|
|
20586
|
+
auth: "admin"
|
|
20587
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20484
20588
|
var ClipSchema = object({
|
|
20485
20589
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20486
20590
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -22950,7 +23054,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
22950
23054
|
sizeBytes: number(),
|
|
22951
23055
|
timestamp: number()
|
|
22952
23056
|
});
|
|
22953
|
-
method(
|
|
23057
|
+
method(object({
|
|
23058
|
+
/**
|
|
23059
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
23060
|
+
*
|
|
23061
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
23062
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
23063
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
23064
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
23065
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
23066
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
23067
|
+
*
|
|
23068
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
23069
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
23070
|
+
*
|
|
23071
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
23072
|
+
* next train** — the hub router validates cap inputs against its own
|
|
23073
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
23074
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
23075
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
23076
|
+
*/
|
|
23077
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
22954
23078
|
kind: "mutation",
|
|
22955
23079
|
auth: "admin"
|
|
22956
23080
|
}), method(object({
|
|
@@ -25840,8 +25964,10 @@ var PlateInfoSchema = object({
|
|
|
25840
25964
|
keyFrameMediaKey: string().optional(),
|
|
25841
25965
|
base64: string().optional(),
|
|
25842
25966
|
/**
|
|
25843
|
-
* Same crop as a data-plane URL
|
|
25844
|
-
* never inlines JPEG; `listPlates`
|
|
25967
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
25968
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
25969
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
25970
|
+
* left at its `true` default.
|
|
25845
25971
|
*/
|
|
25846
25972
|
cropUrl: string().optional()
|
|
25847
25973
|
});
|
|
@@ -25861,14 +25987,34 @@ var PlateClusterSchema = object({
|
|
|
25861
25987
|
});
|
|
25862
25988
|
method(object({
|
|
25863
25989
|
deviceId: number().int().optional(),
|
|
25864
|
-
limit: number().int().positive().optional()
|
|
25990
|
+
limit: number().int().positive().optional(),
|
|
25991
|
+
/**
|
|
25992
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
25993
|
+
* behaviour, kept so no caller breaks.
|
|
25994
|
+
*
|
|
25995
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
25996
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
25997
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
25998
|
+
* metadata without them — and the browser then caches the images.
|
|
25999
|
+
*
|
|
26000
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
26001
|
+
* plates were the one gallery list left without it.
|
|
26002
|
+
*
|
|
26003
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
26004
|
+
* next train.** The hub router validates cap inputs against its own
|
|
26005
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
26006
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
26007
|
+
*/
|
|
26008
|
+
includeCrops: boolean().optional()
|
|
25865
26009
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
25866
26010
|
deviceId: number().int(),
|
|
25867
26011
|
trackId: string()
|
|
25868
26012
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
25869
26013
|
text: string().min(1),
|
|
25870
26014
|
maxDistance: number().int().min(0).optional(),
|
|
25871
|
-
limit: number().int().positive().optional()
|
|
26015
|
+
limit: number().int().positive().optional(),
|
|
26016
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
26017
|
+
includeCrops: boolean().optional()
|
|
25872
26018
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
25873
26019
|
maxDistance: number().int().min(0).optional(),
|
|
25874
26020
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -25882,7 +26028,13 @@ method(object({
|
|
|
25882
26028
|
}), method(object({ plateId: string() }), _void(), {
|
|
25883
26029
|
kind: "mutation",
|
|
25884
26030
|
auth: "admin"
|
|
25885
|
-
}), method(
|
|
26031
|
+
}), method(object({
|
|
26032
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
26033
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
26034
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
26035
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
26036
|
+
* resolves to `false` and is exactly the intended default. */
|
|
26037
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
25886
26038
|
kind: "mutation",
|
|
25887
26039
|
auth: "admin"
|
|
25888
26040
|
}), method(object({
|
|
@@ -33143,6 +33295,12 @@ Object.freeze({
|
|
|
33143
33295
|
addonId: null,
|
|
33144
33296
|
access: "create"
|
|
33145
33297
|
},
|
|
33298
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
33299
|
+
capName: "pipeline-analytics",
|
|
33300
|
+
capScope: "device",
|
|
33301
|
+
addonId: null,
|
|
33302
|
+
access: "create"
|
|
33303
|
+
},
|
|
33146
33304
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
33147
33305
|
capName: "pipeline-analytics",
|
|
33148
33306
|
capScope: "device",
|
|
@@ -33317,6 +33475,12 @@ Object.freeze({
|
|
|
33317
33475
|
addonId: null,
|
|
33318
33476
|
access: "view"
|
|
33319
33477
|
},
|
|
33478
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
33479
|
+
capName: "pipeline-analytics",
|
|
33480
|
+
capScope: "device",
|
|
33481
|
+
addonId: null,
|
|
33482
|
+
access: "view"
|
|
33483
|
+
},
|
|
33320
33484
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
33321
33485
|
capName: "pipeline-analytics",
|
|
33322
33486
|
capScope: "device",
|
|
@@ -33395,6 +33559,12 @@ Object.freeze({
|
|
|
33395
33559
|
addonId: null,
|
|
33396
33560
|
access: "create"
|
|
33397
33561
|
},
|
|
33562
|
+
"pipelineAnalytics.relocateMedia": {
|
|
33563
|
+
capName: "pipeline-analytics",
|
|
33564
|
+
capScope: "device",
|
|
33565
|
+
addonId: null,
|
|
33566
|
+
access: "create"
|
|
33567
|
+
},
|
|
33398
33568
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
33399
33569
|
capName: "pipeline-analytics",
|
|
33400
33570
|
capScope: "device",
|
package/dist/addon.mjs
CHANGED
|
@@ -6629,7 +6629,7 @@ function method(input, output, options) {
|
|
|
6629
6629
|
input,
|
|
6630
6630
|
output,
|
|
6631
6631
|
kind: options?.kind ?? "query",
|
|
6632
|
-
auth: options
|
|
6632
|
+
...options?.auth !== void 0 ? { auth: options.auth } : {},
|
|
6633
6633
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6634
6634
|
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
6635
6635
|
timeoutMs: options?.timeoutMs
|
|
@@ -6653,7 +6653,7 @@ function event(data) {
|
|
|
6653
6653
|
}
|
|
6654
6654
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6655
6655
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
6656
|
-
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6656
|
+
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
6657
6657
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6658
6658
|
DeviceType["Camera"] = "camera";
|
|
6659
6659
|
DeviceType["Hub"] = "hub";
|
|
@@ -6974,7 +6974,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
6974
6974
|
}({});
|
|
6975
6975
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6976
6976
|
var VersionOutputSchema = object({ version: string() });
|
|
6977
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6977
|
+
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
6978
6978
|
/**
|
|
6979
6979
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6980
6980
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -7600,24 +7600,6 @@ var RecordingRetentionSchema = object({
|
|
|
7600
7600
|
maxSizeGb: number().min(0).optional()
|
|
7601
7601
|
});
|
|
7602
7602
|
/**
|
|
7603
|
-
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7604
|
-
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7605
|
-
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7606
|
-
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7607
|
-
*
|
|
7608
|
-
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7609
|
-
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7610
|
-
* preset changed over time renders every historical window at the dims it was
|
|
7611
|
-
* written with.
|
|
7612
|
-
*/
|
|
7613
|
-
var ScrubThumbnailPresetSchema = _enum([
|
|
7614
|
-
"minimal",
|
|
7615
|
-
"low",
|
|
7616
|
-
"standard",
|
|
7617
|
-
"high",
|
|
7618
|
-
"max"
|
|
7619
|
-
]);
|
|
7620
|
-
/**
|
|
7621
7603
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7622
7604
|
*
|
|
7623
7605
|
* `bands` is the ONLY authored recording intent: what to record, when, and on
|
|
@@ -7625,7 +7607,11 @@ var ScrubThumbnailPresetSchema = _enum([
|
|
|
7625
7607
|
* other field is a storage knob (profiles, segment length, retention, scrub).
|
|
7626
7608
|
*
|
|
7627
7609
|
* STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
|
|
7628
|
-
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30
|
|
7610
|
+
* `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
|
|
7611
|
+
* and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
|
|
7612
|
+
* deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
|
|
7613
|
+
* (D62: a switch that writes a store nobody reads is worse than no switch).
|
|
7614
|
+
* Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
|
|
7629
7615
|
* A stale caller must fail loudly — silently stripping its legacy intent would
|
|
7630
7616
|
* persist a band-less config, i.e. silently stop recording the camera.
|
|
7631
7617
|
*/
|
|
@@ -7648,14 +7634,7 @@ var RecordingConfigSchema = object({
|
|
|
7648
7634
|
* "off" is the absence of a covering band, never a band value.
|
|
7649
7635
|
*/
|
|
7650
7636
|
bands: array(RecordingBandSchema).default([]),
|
|
7651
|
-
retention: RecordingRetentionSchema.optional()
|
|
7652
|
-
/**
|
|
7653
|
-
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7654
|
-
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7655
|
-
* windows only — existing sheets are immutable, and each window's index
|
|
7656
|
-
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7657
|
-
*/
|
|
7658
|
-
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7637
|
+
retention: RecordingRetentionSchema.optional()
|
|
7659
7638
|
}).strict();
|
|
7660
7639
|
/**
|
|
7661
7640
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
@@ -7731,10 +7710,11 @@ var RelocateFootageInputSchema = object({
|
|
|
7731
7710
|
* `RecordingConfig.enabled` or camera wrapper bindings. */
|
|
7732
7711
|
var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
|
|
7733
7712
|
var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
|
|
7734
|
-
var
|
|
7713
|
+
var RelocateMediaInputSchema = object({
|
|
7735
7714
|
toLocationId: string(),
|
|
7736
7715
|
throttleMbps: number().min(1).max(1e3).optional()
|
|
7737
|
-
})
|
|
7716
|
+
});
|
|
7717
|
+
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
|
|
7738
7718
|
/** The independently selectable logical storage classes. `recordings`
|
|
7739
7719
|
* encompasses the high and mid segment profiles; `recordingsLow` is low
|
|
7740
7720
|
* segments; `eventMedia` is post-analysis blobs. */
|
|
@@ -8029,7 +8009,26 @@ var LabelDefinitionSchema = object({
|
|
|
8029
8009
|
description: string().optional(),
|
|
8030
8010
|
icon: string().optional()
|
|
8031
8011
|
});
|
|
8032
|
-
|
|
8012
|
+
/**
|
|
8013
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
8014
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
8015
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
8016
|
+
* detection pipeline executor actually routes.
|
|
8017
|
+
*
|
|
8018
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
8019
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
8020
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
8021
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
8022
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
8023
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
8024
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
8025
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
8026
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
8027
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
8028
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
8029
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
8030
|
+
*/
|
|
8031
|
+
var DetectionCatalogClassMapSchema = object({
|
|
8033
8032
|
mapping: record(string(), _enum([
|
|
8034
8033
|
"person",
|
|
8035
8034
|
"vehicle",
|
|
@@ -8234,7 +8233,7 @@ var ModelCatalogEntrySchema = object({
|
|
|
8234
8233
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8235
8234
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8236
8235
|
*/
|
|
8237
|
-
classMap:
|
|
8236
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8238
8237
|
});
|
|
8239
8238
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8240
8239
|
format: literal("openvino"),
|
|
@@ -8264,7 +8263,7 @@ var ModelConvertMetadataSchema = object({
|
|
|
8264
8263
|
"segmentation"
|
|
8265
8264
|
]),
|
|
8266
8265
|
faceAlignment: boolean().optional(),
|
|
8267
|
-
classMap:
|
|
8266
|
+
classMap: DetectionCatalogClassMapSchema.optional()
|
|
8268
8267
|
});
|
|
8269
8268
|
var ConvertResultSchema = object({
|
|
8270
8269
|
entry: ModelCatalogEntrySchema,
|
|
@@ -9127,7 +9126,7 @@ var AddonPageDeclarationSchema = object({
|
|
|
9127
9126
|
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
9128
9127
|
sectionLabel: string().optional()
|
|
9129
9128
|
});
|
|
9130
|
-
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
9129
|
+
method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
|
|
9131
9130
|
var AddonHttpRouteSchema = object({
|
|
9132
9131
|
method: _enum([
|
|
9133
9132
|
"GET",
|
|
@@ -9362,7 +9361,7 @@ var WidgetMetadataSchema = object({
|
|
|
9362
9361
|
defaultColumns: number().int().min(1).max(12).default(6),
|
|
9363
9362
|
defaultRows: number().int().min(1).max(12).default(1)
|
|
9364
9363
|
});
|
|
9365
|
-
method(_void(), array(WidgetMetadataSchema).readonly());
|
|
9364
|
+
method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
|
|
9366
9365
|
/**
|
|
9367
9366
|
* `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
|
|
9368
9367
|
* surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
|
|
@@ -10986,7 +10985,7 @@ var CustomModelDescriptorSchema = object({
|
|
|
10986
10985
|
stepId: string(),
|
|
10987
10986
|
entry: ModelCatalogEntrySchema
|
|
10988
10987
|
});
|
|
10989
|
-
method(_void(), array(CustomModelDescriptorSchema).readonly());
|
|
10988
|
+
method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
|
|
10990
10989
|
/**
|
|
10991
10990
|
* Query filter for settings-store collections.
|
|
10992
10991
|
*/
|
|
@@ -11073,7 +11072,8 @@ method(object({
|
|
|
11073
11072
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11074
11073
|
namespace: string().optional(),
|
|
11075
11074
|
collection: string(),
|
|
11076
|
-
filter: QueryFilterSchema.optional()
|
|
11075
|
+
filter: QueryFilterSchema.optional(),
|
|
11076
|
+
columns: array(string()).readonly().optional()
|
|
11077
11077
|
}), array(SettingsRecordSchema).readonly()), method(object({
|
|
11078
11078
|
namespace: string().optional(),
|
|
11079
11079
|
collection: string(),
|
|
@@ -11136,46 +11136,87 @@ var EngineInfoSchema = object({
|
|
|
11136
11136
|
kind: _enum(["relational", "vector"]),
|
|
11137
11137
|
displayName: string()
|
|
11138
11138
|
});
|
|
11139
|
-
method(_void(), EngineInfoSchema), method(object({
|
|
11139
|
+
method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
11140
11140
|
namespace: string().optional(),
|
|
11141
11141
|
collection: string(),
|
|
11142
11142
|
key: string()
|
|
11143
|
-
}), unknown()), method(object({
|
|
11143
|
+
}), unknown(), { auth: "admin" }), method(object({
|
|
11144
11144
|
namespace: string().optional(),
|
|
11145
11145
|
collection: string(),
|
|
11146
11146
|
key: string(),
|
|
11147
11147
|
value: unknown()
|
|
11148
|
-
}), _void(), {
|
|
11148
|
+
}), _void(), {
|
|
11149
|
+
kind: "mutation",
|
|
11150
|
+
auth: "admin"
|
|
11151
|
+
}), method(object({
|
|
11149
11152
|
namespace: string().optional(),
|
|
11150
11153
|
collection: string(),
|
|
11151
|
-
filter: QueryFilterSchema.optional()
|
|
11152
|
-
|
|
11154
|
+
filter: QueryFilterSchema.optional(),
|
|
11155
|
+
/**
|
|
11156
|
+
* SQL-level column projection — MUST mirror `settings-store.query`.
|
|
11157
|
+
*
|
|
11158
|
+
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
11159
|
+
* was wrong — corrected 2026-08-26 after the hop map
|
|
11160
|
+
* (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
|
|
11161
|
+
* There is **no Zod parse at all** between the door and the engine: the
|
|
11162
|
+
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
11163
|
+
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
11164
|
+
*
|
|
11165
|
+
* What actually lost `columns` was the THIRD declaration of this shape:
|
|
11166
|
+
* `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
|
|
11167
|
+
* interface the engine destructures from. The field existed on both
|
|
11168
|
+
* schemas and the engine still never read it, because nothing checks a
|
|
11169
|
+
* registered provider against `InferProvider<cap>` —
|
|
11170
|
+
* `ProviderRegistration.provider` is typed `object`.
|
|
11171
|
+
*
|
|
11172
|
+
* It is declared here anyway, and must stay in step with
|
|
11173
|
+
* `settings-store.query`: a caller reading only the cap definitions has
|
|
11174
|
+
* to be able to see that this call carries a projection.
|
|
11175
|
+
* `data-door-schema-parity.spec.ts` keeps the two aligned.
|
|
11176
|
+
*/
|
|
11177
|
+
columns: array(string()).readonly().optional()
|
|
11178
|
+
}), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
|
|
11153
11179
|
namespace: string().optional(),
|
|
11154
11180
|
collection: string(),
|
|
11155
11181
|
record: SettingsRecordSchema
|
|
11156
|
-
}), _void(), {
|
|
11182
|
+
}), _void(), {
|
|
11183
|
+
kind: "mutation",
|
|
11184
|
+
auth: "admin"
|
|
11185
|
+
}), method(object({
|
|
11157
11186
|
namespace: string().optional(),
|
|
11158
11187
|
collection: string(),
|
|
11159
11188
|
id: string(),
|
|
11160
11189
|
data: record(string(), unknown())
|
|
11161
|
-
}), _void(), {
|
|
11190
|
+
}), _void(), {
|
|
11191
|
+
kind: "mutation",
|
|
11192
|
+
auth: "admin"
|
|
11193
|
+
}), method(object({
|
|
11162
11194
|
namespace: string().optional(),
|
|
11163
11195
|
collection: string(),
|
|
11164
11196
|
key: string()
|
|
11165
|
-
}), _void(), {
|
|
11197
|
+
}), _void(), {
|
|
11198
|
+
kind: "mutation",
|
|
11199
|
+
auth: "admin"
|
|
11200
|
+
}), method(object({
|
|
11166
11201
|
namespace: string().optional(),
|
|
11167
11202
|
collection: string(),
|
|
11168
11203
|
filter: MutationFilterSchema
|
|
11169
|
-
}), object({ deleted: number().int() }), {
|
|
11204
|
+
}), object({ deleted: number().int() }), {
|
|
11205
|
+
kind: "mutation",
|
|
11206
|
+
auth: "admin"
|
|
11207
|
+
}), method(object({
|
|
11170
11208
|
namespace: string().optional(),
|
|
11171
11209
|
collection: string(),
|
|
11172
11210
|
filter: MutationFilterSchema,
|
|
11173
11211
|
data: record(string(), unknown())
|
|
11174
|
-
}), object({ updated: number().int() }), {
|
|
11212
|
+
}), object({ updated: number().int() }), {
|
|
11213
|
+
kind: "mutation",
|
|
11214
|
+
auth: "admin"
|
|
11215
|
+
}), method(object({
|
|
11175
11216
|
namespace: string().optional(),
|
|
11176
11217
|
collection: string(),
|
|
11177
11218
|
filter: QueryFilterSchema.optional()
|
|
11178
|
-
}), number()), method(object({
|
|
11219
|
+
}), number(), { auth: "admin" }), method(object({
|
|
11179
11220
|
namespace: string().optional(),
|
|
11180
11221
|
collection: string(),
|
|
11181
11222
|
field: string(),
|
|
@@ -11185,15 +11226,18 @@ method(_void(), EngineInfoSchema), method(object({
|
|
|
11185
11226
|
}), array(object({
|
|
11186
11227
|
bucket: number().int(),
|
|
11187
11228
|
count: number().int()
|
|
11188
|
-
})).readonly()), method(object({
|
|
11229
|
+
})).readonly(), { auth: "admin" }), method(object({
|
|
11189
11230
|
namespace: string().optional(),
|
|
11190
11231
|
collection: string()
|
|
11191
|
-
}), boolean()), method(object({
|
|
11232
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
11192
11233
|
namespace: string().optional(),
|
|
11193
11234
|
collection: string(),
|
|
11194
11235
|
columns: array(CollectionColumnSchema).readonly(),
|
|
11195
11236
|
indexes: array(CollectionIndexSchema).readonly().optional()
|
|
11196
|
-
}), _void(), {
|
|
11237
|
+
}), _void(), {
|
|
11238
|
+
kind: "mutation",
|
|
11239
|
+
auth: "admin"
|
|
11240
|
+
});
|
|
11197
11241
|
/**
|
|
11198
11242
|
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
11199
11243
|
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
@@ -12483,7 +12527,7 @@ method(object({
|
|
|
12483
12527
|
crop: _instanceof(Uint8Array),
|
|
12484
12528
|
width: number(),
|
|
12485
12529
|
height: number()
|
|
12486
|
-
}), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
|
|
12530
|
+
}), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
|
|
12487
12531
|
/**
|
|
12488
12532
|
* filesystem-browse — per-node capability for browsing the node's local
|
|
12489
12533
|
* filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
|
|
@@ -12776,19 +12820,22 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
12776
12820
|
runtime: ManagedRuntimeConfigSchema,
|
|
12777
12821
|
/** The managed profile's timeout, threaded by the hub provider. */
|
|
12778
12822
|
timeoutMs: number().int().positive().optional()
|
|
12779
|
-
}), LlmGenerateResultSchema, {
|
|
12823
|
+
}), LlmGenerateResultSchema, {
|
|
12824
|
+
kind: "mutation",
|
|
12825
|
+
auth: "admin"
|
|
12826
|
+
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
12780
12827
|
kind: "mutation",
|
|
12781
12828
|
auth: "admin"
|
|
12782
12829
|
}), method(object({}), _void(), {
|
|
12783
12830
|
kind: "mutation",
|
|
12784
12831
|
auth: "admin"
|
|
12785
|
-
}), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12832
|
+
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
12786
12833
|
kind: "mutation",
|
|
12787
12834
|
auth: "admin"
|
|
12788
12835
|
}), method(object({ file: string() }), _void(), {
|
|
12789
12836
|
kind: "mutation",
|
|
12790
12837
|
auth: "admin"
|
|
12791
|
-
}), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
|
|
12838
|
+
}), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
|
|
12792
12839
|
/**
|
|
12793
12840
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
12794
12841
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
@@ -16299,7 +16346,7 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
16299
16346
|
*/
|
|
16300
16347
|
refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
|
|
16301
16348
|
});
|
|
16302
|
-
method(_void(), OauthIntegrationDescriptorSchema);
|
|
16349
|
+
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
16303
16350
|
/**
|
|
16304
16351
|
* pipeline-analytics — device-scoped wrapper cap. Refines raw
|
|
16305
16352
|
* per-frame detections emitted by the pipeline runner into tracked
|
|
@@ -17494,6 +17541,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17494
17541
|
}), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17495
17542
|
kind: "mutation",
|
|
17496
17543
|
auth: "admin"
|
|
17544
|
+
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
17545
|
+
kind: "mutation",
|
|
17546
|
+
auth: "admin"
|
|
17547
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
17548
|
+
kind: "query",
|
|
17549
|
+
auth: "admin"
|
|
17550
|
+
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
17551
|
+
kind: "mutation",
|
|
17552
|
+
auth: "admin"
|
|
17497
17553
|
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
17498
17554
|
kind: "query",
|
|
17499
17555
|
auth: "admin"
|
|
@@ -17648,6 +17704,11 @@ object({
|
|
|
17648
17704
|
"jpeg"
|
|
17649
17705
|
])
|
|
17650
17706
|
});
|
|
17707
|
+
/**
|
|
17708
|
+
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
17709
|
+
* capability call, but `registryId` deliberately prevents resolution in any
|
|
17710
|
+
* other process or execution group.
|
|
17711
|
+
*/
|
|
17651
17712
|
var FrameRefSchema = object({
|
|
17652
17713
|
registryId: string().min(1),
|
|
17653
17714
|
id: string().min(1),
|
|
@@ -19853,7 +19914,7 @@ method(object({
|
|
|
19853
19914
|
* linking rather than produce an eternal token.
|
|
19854
19915
|
*/
|
|
19855
19916
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
19856
|
-
}), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
|
|
19917
|
+
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
19857
19918
|
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
19858
19919
|
providerId: string().min(1),
|
|
19859
19920
|
displayName: string().min(1),
|
|
@@ -19948,10 +20009,13 @@ var EvictResultSchema = object({
|
|
|
19948
20009
|
/** True when the provider has nothing left it is willing to drop on this location. */
|
|
19949
20010
|
exhausted: boolean()
|
|
19950
20011
|
});
|
|
19951
|
-
method(object({ locationId: string() }), EvictableUsageSchema), method(object({
|
|
20012
|
+
method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
|
|
19952
20013
|
locationId: string(),
|
|
19953
20014
|
targetBytes: number().int().positive()
|
|
19954
|
-
}), EvictResultSchema, {
|
|
20015
|
+
}), EvictResultSchema, {
|
|
20016
|
+
kind: "mutation",
|
|
20017
|
+
auth: "admin"
|
|
20018
|
+
});
|
|
19955
20019
|
method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
|
|
19956
20020
|
kind: "mutation",
|
|
19957
20021
|
auth: "admin"
|
|
@@ -20011,26 +20075,50 @@ var ReadChunkInputSchema = object({
|
|
|
20011
20075
|
length: number()
|
|
20012
20076
|
});
|
|
20013
20077
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
20014
|
-
method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20078
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
20015
20079
|
location: StorageLocationSchema,
|
|
20016
20080
|
relativePath: string()
|
|
20017
|
-
}), string()), method(object({
|
|
20081
|
+
}), string(), { auth: "admin" }), method(object({
|
|
20018
20082
|
location: StorageLocationSchema,
|
|
20019
20083
|
relativePath: string(),
|
|
20020
20084
|
data: _instanceof(Uint8Array)
|
|
20021
|
-
}), _void(), {
|
|
20085
|
+
}), _void(), {
|
|
20086
|
+
kind: "mutation",
|
|
20087
|
+
auth: "admin"
|
|
20088
|
+
}), method(object({
|
|
20022
20089
|
location: StorageLocationSchema,
|
|
20023
20090
|
relativePath: string()
|
|
20024
|
-
}), _instanceof(Uint8Array)), method(object({
|
|
20091
|
+
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({
|
|
20025
20092
|
location: StorageLocationSchema,
|
|
20026
20093
|
relativePath: string()
|
|
20027
|
-
}), boolean()), method(object({
|
|
20094
|
+
}), boolean(), { auth: "admin" }), method(object({
|
|
20028
20095
|
location: StorageLocationSchema,
|
|
20029
20096
|
prefix: string().optional()
|
|
20030
|
-
}), array(string()).readonly()), method(object({
|
|
20097
|
+
}), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
20031
20098
|
location: StorageLocationSchema,
|
|
20032
20099
|
relativePath: string()
|
|
20033
|
-
}), _void(), {
|
|
20100
|
+
}), _void(), {
|
|
20101
|
+
kind: "mutation",
|
|
20102
|
+
auth: "admin"
|
|
20103
|
+
}), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
20104
|
+
kind: "mutation",
|
|
20105
|
+
auth: "admin"
|
|
20106
|
+
}), method(WriteChunkInputSchema, _void(), {
|
|
20107
|
+
kind: "mutation",
|
|
20108
|
+
auth: "admin"
|
|
20109
|
+
}), method(FinalizeUploadInputSchema, _void(), {
|
|
20110
|
+
kind: "mutation",
|
|
20111
|
+
auth: "admin"
|
|
20112
|
+
}), method(AbortUploadInputSchema, _void(), {
|
|
20113
|
+
kind: "mutation",
|
|
20114
|
+
auth: "admin"
|
|
20115
|
+
}), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
20116
|
+
kind: "mutation",
|
|
20117
|
+
auth: "admin"
|
|
20118
|
+
}), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
|
|
20119
|
+
kind: "mutation",
|
|
20120
|
+
auth: "admin"
|
|
20121
|
+
});
|
|
20034
20122
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20035
20123
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20036
20124
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -20288,7 +20376,8 @@ method(object({
|
|
|
20288
20376
|
access: "create"
|
|
20289
20377
|
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20290
20378
|
kind: "mutation",
|
|
20291
|
-
access: "view"
|
|
20379
|
+
access: "view",
|
|
20380
|
+
auth: "admin"
|
|
20292
20381
|
}), method(object({
|
|
20293
20382
|
/** Required — the user the assertion belongs to (verified). */
|
|
20294
20383
|
userId: string(),
|
|
@@ -20296,10 +20385,12 @@ method(object({
|
|
|
20296
20385
|
response: record(string(), unknown())
|
|
20297
20386
|
}), object({ verified: boolean() }), {
|
|
20298
20387
|
kind: "mutation",
|
|
20299
|
-
access: "view"
|
|
20388
|
+
access: "view",
|
|
20389
|
+
auth: "admin"
|
|
20300
20390
|
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20301
20391
|
kind: "mutation",
|
|
20302
|
-
access: "view"
|
|
20392
|
+
access: "view",
|
|
20393
|
+
auth: "admin"
|
|
20303
20394
|
}), method(object({
|
|
20304
20395
|
/** AuthenticationResponseJSON from the browser. */
|
|
20305
20396
|
response: record(string(), unknown()) }), object({
|
|
@@ -20307,7 +20398,8 @@ response: record(string(), unknown()) }), object({
|
|
|
20307
20398
|
userId: string().nullable()
|
|
20308
20399
|
}), {
|
|
20309
20400
|
kind: "mutation",
|
|
20310
|
-
access: "view"
|
|
20401
|
+
access: "view",
|
|
20402
|
+
auth: "admin"
|
|
20311
20403
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
20312
20404
|
userId: string(),
|
|
20313
20405
|
credentialId: string()
|
|
@@ -20479,7 +20571,19 @@ var VectorStatsResultSchema = object({
|
|
|
20479
20571
|
/** False when the backend ranks approximately. */
|
|
20480
20572
|
exact: boolean()
|
|
20481
20573
|
});
|
|
20482
|
-
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20574
|
+
method(VectorDeclareIndexInputSchema, _void(), {
|
|
20575
|
+
kind: "mutation",
|
|
20576
|
+
auth: "admin"
|
|
20577
|
+
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
20578
|
+
kind: "mutation",
|
|
20579
|
+
auth: "admin"
|
|
20580
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
20581
|
+
kind: "mutation",
|
|
20582
|
+
auth: "admin"
|
|
20583
|
+
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
20584
|
+
kind: "mutation",
|
|
20585
|
+
auth: "admin"
|
|
20586
|
+
}), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
|
|
20483
20587
|
var ClipSchema = object({
|
|
20484
20588
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
20485
20589
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -22949,7 +23053,27 @@ var MediaFileLiteSchema$1 = object({
|
|
|
22949
23053
|
sizeBytes: number(),
|
|
22950
23054
|
timestamp: number()
|
|
22951
23055
|
});
|
|
22952
|
-
method(
|
|
23056
|
+
method(object({
|
|
23057
|
+
/**
|
|
23058
|
+
* Inline {@link IdentitySchema.coverBase64} on every row.
|
|
23059
|
+
*
|
|
23060
|
+
* Default `false`, the same inversion `listRecentFaces` and
|
|
23061
|
+
* `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
|
|
23062
|
+
* why the burden belongs on the caller that WANTS the bytes). Measured
|
|
23063
|
+
* on the live hub the same day: four identities cost 40,979 B with the
|
|
23064
|
+
* covers inline, ~10 KB of base64 per row, on a query this UI mounts
|
|
23065
|
+
* four times and the viewer holds at `staleTime: 30_000`.
|
|
23066
|
+
*
|
|
23067
|
+
* Nothing loses its avatar: `coverMediaKey` is already on every row and
|
|
23068
|
+
* the `event-media` plane serves that key `immutable` with an ETag.
|
|
23069
|
+
*
|
|
23070
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
23071
|
+
* next train** — the hub router validates cap inputs against its own
|
|
23072
|
+
* compiled Zod and strips a key it does not know. Until then the
|
|
23073
|
+
* provider sees `undefined`, which resolves to `false`: the cheap shape
|
|
23074
|
+
* is what ships, and the opt-in becomes reachable when the train lands.
|
|
23075
|
+
*/
|
|
23076
|
+
includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
|
|
22953
23077
|
kind: "mutation",
|
|
22954
23078
|
auth: "admin"
|
|
22955
23079
|
}), method(object({
|
|
@@ -25839,8 +25963,10 @@ var PlateInfoSchema = object({
|
|
|
25839
25963
|
keyFrameMediaKey: string().optional(),
|
|
25840
25964
|
base64: string().optional(),
|
|
25841
25965
|
/**
|
|
25842
|
-
* Same crop as a data-plane URL
|
|
25843
|
-
* never inlines JPEG; `listPlates`
|
|
25966
|
+
* Same crop as a data-plane URL, always present when the plate has a stored
|
|
25967
|
+
* crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
|
|
25968
|
+
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
25969
|
+
* left at its `true` default.
|
|
25844
25970
|
*/
|
|
25845
25971
|
cropUrl: string().optional()
|
|
25846
25972
|
});
|
|
@@ -25860,14 +25986,34 @@ var PlateClusterSchema = object({
|
|
|
25860
25986
|
});
|
|
25861
25987
|
method(object({
|
|
25862
25988
|
deviceId: number().int().optional(),
|
|
25863
|
-
limit: number().int().positive().optional()
|
|
25989
|
+
limit: number().int().positive().optional(),
|
|
25990
|
+
/**
|
|
25991
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
25992
|
+
* behaviour, kept so no caller breaks.
|
|
25993
|
+
*
|
|
25994
|
+
* Set `false` once the caller renders {@link PlateInfo.cropUrl}.
|
|
25995
|
+
* Measured on the live hub at the 500 rows the Plates view asks for:
|
|
25996
|
+
* 879,403 B and 27.7 s with the crops inline, against a few KiB of
|
|
25997
|
+
* metadata without them — and the browser then caches the images.
|
|
25998
|
+
*
|
|
25999
|
+
* This is the plate twin of `faceGallery.listRecentFaces`'s option;
|
|
26000
|
+
* plates were the one gallery list left without it.
|
|
26001
|
+
*
|
|
26002
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
26003
|
+
* next train.** The hub router validates cap inputs against its own
|
|
26004
|
+
* compiled Zod and strips a key it does not know. Until the train
|
|
26005
|
+
* ships, sending `false` is harmless and keeps the crops inline.
|
|
26006
|
+
*/
|
|
26007
|
+
includeCrops: boolean().optional()
|
|
25864
26008
|
}).optional(), array(PlateInfoSchema).readonly()), method(object({
|
|
25865
26009
|
deviceId: number().int(),
|
|
25866
26010
|
trackId: string()
|
|
25867
26011
|
}), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
|
|
25868
26012
|
text: string().min(1),
|
|
25869
26013
|
maxDistance: number().int().min(0).optional(),
|
|
25870
|
-
limit: number().int().positive().optional()
|
|
26014
|
+
limit: number().int().positive().optional(),
|
|
26015
|
+
/** See `listPlates.includeCrops`. Default `true`. */
|
|
26016
|
+
includeCrops: boolean().optional()
|
|
25871
26017
|
}), array(PlateInfoSchema).readonly()), method(object({
|
|
25872
26018
|
maxDistance: number().int().min(0).optional(),
|
|
25873
26019
|
minClusterSize: number().int().min(2).optional(),
|
|
@@ -25881,7 +26027,13 @@ method(object({
|
|
|
25881
26027
|
}), method(object({ plateId: string() }), _void(), {
|
|
25882
26028
|
kind: "mutation",
|
|
25883
26029
|
auth: "admin"
|
|
25884
|
-
}), method(
|
|
26030
|
+
}), method(object({
|
|
26031
|
+
/** Inline {@link VehicleSchema.coverBase64} on every row. Default
|
|
26032
|
+
* `false` — the vehicle twin of `faceGallery.listIdentities`'s
|
|
26033
|
+
* option; `coverMediaKey` + the `event-media` plane carry the picture.
|
|
26034
|
+
* INPUT field: stripped by the hub router until the train ships, which
|
|
26035
|
+
* resolves to `false` and is exactly the intended default. */
|
|
26036
|
+
includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
|
|
25885
26037
|
kind: "mutation",
|
|
25886
26038
|
auth: "admin"
|
|
25887
26039
|
}), method(object({
|
|
@@ -33142,6 +33294,12 @@ Object.freeze({
|
|
|
33142
33294
|
addonId: null,
|
|
33143
33295
|
access: "create"
|
|
33144
33296
|
},
|
|
33297
|
+
"pipelineAnalytics.cancelRelocateMedia": {
|
|
33298
|
+
capName: "pipeline-analytics",
|
|
33299
|
+
capScope: "device",
|
|
33300
|
+
addonId: null,
|
|
33301
|
+
access: "create"
|
|
33302
|
+
},
|
|
33145
33303
|
"pipelineAnalytics.cancelStorageMigrationMove": {
|
|
33146
33304
|
capName: "pipeline-analytics",
|
|
33147
33305
|
capScope: "device",
|
|
@@ -33316,6 +33474,12 @@ Object.freeze({
|
|
|
33316
33474
|
addonId: null,
|
|
33317
33475
|
access: "view"
|
|
33318
33476
|
},
|
|
33477
|
+
"pipelineAnalytics.listRelocateMediaJobs": {
|
|
33478
|
+
capName: "pipeline-analytics",
|
|
33479
|
+
capScope: "device",
|
|
33480
|
+
addonId: null,
|
|
33481
|
+
access: "view"
|
|
33482
|
+
},
|
|
33319
33483
|
"pipelineAnalytics.listRetrainAnnotations": {
|
|
33320
33484
|
capName: "pipeline-analytics",
|
|
33321
33485
|
capScope: "device",
|
|
@@ -33394,6 +33558,12 @@ Object.freeze({
|
|
|
33394
33558
|
addonId: null,
|
|
33395
33559
|
access: "create"
|
|
33396
33560
|
},
|
|
33561
|
+
"pipelineAnalytics.relocateMedia": {
|
|
33562
|
+
capName: "pipeline-analytics",
|
|
33563
|
+
capScope: "device",
|
|
33564
|
+
addonId: null,
|
|
33565
|
+
access: "create"
|
|
33566
|
+
},
|
|
33397
33567
|
"pipelineAnalytics.restageRetrainTrack": {
|
|
33398
33568
|
capName: "pipeline-analytics",
|
|
33399
33569
|
capScope: "device",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|