@camstack/addon-provider-rtsp 1.2.27 → 1.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.
Files changed (3) hide show
  1. package/dist/addon.js +431 -111
  2. package/dist/addon.mjs +431 -111
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5825,6 +5825,13 @@ var BaseAddon = class {
5825
5825
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5826
5826
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5827
5827
  _registeredCapNames = [];
5828
+ /**
5829
+ * True only after `readAddonStore` actually answered. Constructor
5830
+ * defaults look like stored config when the store is down — a forked
5831
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5832
+ * mode, 2026-08-25) is not "the operator chose this".
5833
+ */
5834
+ settingsStoreReady = false;
5828
5835
  /** Default config values. Provided via constructor. */
5829
5836
  defaults;
5830
5837
  constructor(defaults) {
@@ -6225,7 +6232,9 @@ var BaseAddon = class {
6225
6232
  ];
6226
6233
  let lastErr;
6227
6234
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6228
- return await settings.readAddonStore() ?? {};
6235
+ const stored = await settings.readAddonStore() ?? {};
6236
+ this.settingsStoreReady = true;
6237
+ return stored;
6229
6238
  } catch (err) {
6230
6239
  lastErr = err;
6231
6240
  const msg = err instanceof Error ? err.message : String(err);
@@ -6233,6 +6242,7 @@ var BaseAddon = class {
6233
6242
  if (attempt === delaysMs.length) break;
6234
6243
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6235
6244
  }
6245
+ this.settingsStoreReady = false;
6236
6246
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6237
6247
  return {};
6238
6248
  }
@@ -6644,7 +6654,7 @@ function method(input, output, options) {
6644
6654
  input,
6645
6655
  output,
6646
6656
  kind: options?.kind ?? "query",
6647
- auth: options?.auth ?? "protected",
6657
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6648
6658
  ...options?.access !== void 0 ? { access: options.access } : {},
6649
6659
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6650
6660
  timeoutMs: options?.timeoutMs
@@ -6668,7 +6678,7 @@ function event(data) {
6668
6678
  }
6669
6679
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6670
6680
  var VersionOutputSchema$1 = object({ version: string() });
6671
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6681
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6672
6682
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6673
6683
  DeviceType["Camera"] = "camera";
6674
6684
  DeviceType["Hub"] = "hub";
@@ -6989,7 +6999,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6989
6999
  }({});
6990
7000
  var StaticDirOutputSchema = object({ staticDir: string() });
6991
7001
  var VersionOutputSchema = object({ version: string() });
6992
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
7002
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6993
7003
  /**
6994
7004
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6995
7005
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7647,24 +7657,6 @@ var RecordingRetentionSchema = object({
7647
7657
  maxSizeGb: number().min(0).optional()
7648
7658
  });
7649
7659
  /**
7650
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7651
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7652
- * previews at. Five graduated steps; absent on a config = `standard` (the
7653
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7654
- *
7655
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7656
- * Each window's index sidecar carries its own tile dims, so a camera whose
7657
- * preset changed over time renders every historical window at the dims it was
7658
- * written with.
7659
- */
7660
- var ScrubThumbnailPresetSchema = _enum([
7661
- "minimal",
7662
- "low",
7663
- "standard",
7664
- "high",
7665
- "max"
7666
- ]);
7667
- /**
7668
7660
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7669
7661
  *
7670
7662
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7672,7 +7664,11 @@ var ScrubThumbnailPresetSchema = _enum([
7672
7664
  * other field is a storage knob (profiles, segment length, retention, scrub).
7673
7665
  *
7674
7666
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7675
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7667
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7668
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7669
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7670
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7671
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7676
7672
  * A stale caller must fail loudly — silently stripping its legacy intent would
7677
7673
  * persist a band-less config, i.e. silently stop recording the camera.
7678
7674
  */
@@ -7695,14 +7691,7 @@ var RecordingConfigSchema = object({
7695
7691
  * "off" is the absence of a covering band, never a band value.
7696
7692
  */
7697
7693
  bands: array(RecordingBandSchema).default([]),
7698
- retention: RecordingRetentionSchema.optional(),
7699
- /**
7700
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7701
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7702
- * windows only — existing sheets are immutable, and each window's index
7703
- * carries its own tile dims so mixed-preset history renders correctly.
7704
- */
7705
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7694
+ retention: RecordingRetentionSchema.optional()
7706
7695
  }).strict();
7707
7696
  /**
7708
7697
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7778,10 +7767,11 @@ var RelocateFootageInputSchema = object({
7778
7767
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7779
7768
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7780
7769
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7781
- var StorageMigrationMediaMoveInputSchema = object({
7770
+ var RelocateMediaInputSchema = object({
7782
7771
  toLocationId: string(),
7783
7772
  throttleMbps: number().min(1).max(1e3).optional()
7784
- }).extend({ leaseId: string().min(1) });
7773
+ });
7774
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7785
7775
  /** The independently selectable logical storage classes. `recordings`
7786
7776
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7787
7777
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8076,7 +8066,26 @@ var LabelDefinitionSchema = object({
8076
8066
  description: string().optional(),
8077
8067
  icon: string().optional()
8078
8068
  });
8079
- var ClassMapDefinitionSchema = object({
8069
+ /**
8070
+ * Wire schema for a per-model CATALOG classMap override
8071
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8072
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8073
+ * detection pipeline executor actually routes.
8074
+ *
8075
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8076
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8077
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8078
+ * enum) — the two used to share the name `ClassMapDefinition`/
8079
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8080
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8081
+ * are not: it is two different concepts colliding on a name. Keep this type
8082
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8083
+ * would either narrow every `ClassMapDefinition` consumer to the four
8084
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8085
+ * schema exists for (see the "rejects a classMap whose target is not a
8086
+ * detection macro" test in `model-catalog-schema.test.ts`).
8087
+ */
8088
+ var DetectionCatalogClassMapSchema = object({
8080
8089
  mapping: record(string(), _enum([
8081
8090
  "person",
8082
8091
  "vehicle",
@@ -8168,6 +8177,12 @@ var ModelVariantGroupSchema = object({
8168
8177
  */
8169
8178
  resolution: number().int().positive().optional()
8170
8179
  });
8180
+ var ModelProviderIdSchema = _enum([
8181
+ "camstack",
8182
+ "frigate",
8183
+ "scrypted",
8184
+ "custom"
8185
+ ]);
8171
8186
  var ModelCatalogEntrySchema = object({
8172
8187
  id: string(),
8173
8188
  name: string(),
@@ -8265,11 +8280,17 @@ var ModelCatalogEntrySchema = object({
8265
8280
  */
8266
8281
  group: ModelVariantGroupSchema.optional(),
8267
8282
  /**
8283
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8284
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8285
+ * persisted before this field existed (`inferModelProvider` fills those).
8286
+ */
8287
+ provider: ModelProviderIdSchema.optional(),
8288
+ /**
8268
8289
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8269
8290
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8270
8291
  * labels already ARE the CamStack macros (Scrypted identity map).
8271
8292
  */
8272
- classMap: ClassMapDefinitionSchema.optional()
8293
+ classMap: DetectionCatalogClassMapSchema.optional()
8273
8294
  });
8274
8295
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8275
8296
  format: literal("openvino"),
@@ -8299,7 +8320,7 @@ var ModelConvertMetadataSchema = object({
8299
8320
  "segmentation"
8300
8321
  ]),
8301
8322
  faceAlignment: boolean().optional(),
8302
- classMap: ClassMapDefinitionSchema.optional()
8323
+ classMap: DetectionCatalogClassMapSchema.optional()
8303
8324
  });
8304
8325
  var ConvertResultSchema = object({
8305
8326
  entry: ModelCatalogEntrySchema,
@@ -9162,7 +9183,7 @@ var AddonPageDeclarationSchema = object({
9162
9183
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9163
9184
  sectionLabel: string().optional()
9164
9185
  });
9165
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9186
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9166
9187
  var AddonHttpRouteSchema = object({
9167
9188
  method: _enum([
9168
9189
  "GET",
@@ -9397,7 +9418,7 @@ var WidgetMetadataSchema = object({
9397
9418
  defaultColumns: number().int().min(1).max(12).default(6),
9398
9419
  defaultRows: number().int().min(1).max(12).default(1)
9399
9420
  });
9400
- method(_void(), array(WidgetMetadataSchema).readonly());
9421
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9401
9422
  /**
9402
9423
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9403
9424
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11021,7 +11042,7 @@ var CustomModelDescriptorSchema = object({
11021
11042
  stepId: string(),
11022
11043
  entry: ModelCatalogEntrySchema
11023
11044
  });
11024
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11045
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11025
11046
  /**
11026
11047
  * Query filter for settings-store collections.
11027
11048
  */
@@ -11108,7 +11129,8 @@ method(object({
11108
11129
  }), _void(), { kind: "mutation" }), method(object({
11109
11130
  namespace: string().optional(),
11110
11131
  collection: string(),
11111
- filter: QueryFilterSchema.optional()
11132
+ filter: QueryFilterSchema.optional(),
11133
+ columns: array(string()).readonly().optional()
11112
11134
  }), array(SettingsRecordSchema).readonly()), method(object({
11113
11135
  namespace: string().optional(),
11114
11136
  collection: string(),
@@ -11171,46 +11193,87 @@ var EngineInfoSchema = object({
11171
11193
  kind: _enum(["relational", "vector"]),
11172
11194
  displayName: string()
11173
11195
  });
11174
- method(_void(), EngineInfoSchema), method(object({
11196
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11175
11197
  namespace: string().optional(),
11176
11198
  collection: string(),
11177
11199
  key: string()
11178
- }), unknown()), method(object({
11200
+ }), unknown(), { auth: "admin" }), method(object({
11179
11201
  namespace: string().optional(),
11180
11202
  collection: string(),
11181
11203
  key: string(),
11182
11204
  value: unknown()
11183
- }), _void(), { kind: "mutation" }), method(object({
11205
+ }), _void(), {
11206
+ kind: "mutation",
11207
+ auth: "admin"
11208
+ }), method(object({
11184
11209
  namespace: string().optional(),
11185
11210
  collection: string(),
11186
- filter: QueryFilterSchema.optional()
11187
- }), array(SettingsRecordSchema).readonly()), method(object({
11211
+ filter: QueryFilterSchema.optional(),
11212
+ /**
11213
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11214
+ *
11215
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11216
+ * was wrong — corrected 2026-08-26 after the hop map
11217
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11218
+ * There is **no Zod parse at all** between the door and the engine: the
11219
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11220
+ * field declared here reaches `SqliteSettingsBackend` either way.
11221
+ *
11222
+ * What actually lost `columns` was the THIRD declaration of this shape:
11223
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11224
+ * interface the engine destructures from. The field existed on both
11225
+ * schemas and the engine still never read it, because nothing checks a
11226
+ * registered provider against `InferProvider<cap>` —
11227
+ * `ProviderRegistration.provider` is typed `object`.
11228
+ *
11229
+ * It is declared here anyway, and must stay in step with
11230
+ * `settings-store.query`: a caller reading only the cap definitions has
11231
+ * to be able to see that this call carries a projection.
11232
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11233
+ */
11234
+ columns: array(string()).readonly().optional()
11235
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11188
11236
  namespace: string().optional(),
11189
11237
  collection: string(),
11190
11238
  record: SettingsRecordSchema
11191
- }), _void(), { kind: "mutation" }), method(object({
11239
+ }), _void(), {
11240
+ kind: "mutation",
11241
+ auth: "admin"
11242
+ }), method(object({
11192
11243
  namespace: string().optional(),
11193
11244
  collection: string(),
11194
11245
  id: string(),
11195
11246
  data: record(string(), unknown())
11196
- }), _void(), { kind: "mutation" }), method(object({
11247
+ }), _void(), {
11248
+ kind: "mutation",
11249
+ auth: "admin"
11250
+ }), method(object({
11197
11251
  namespace: string().optional(),
11198
11252
  collection: string(),
11199
11253
  key: string()
11200
- }), _void(), { kind: "mutation" }), method(object({
11254
+ }), _void(), {
11255
+ kind: "mutation",
11256
+ auth: "admin"
11257
+ }), method(object({
11201
11258
  namespace: string().optional(),
11202
11259
  collection: string(),
11203
11260
  filter: MutationFilterSchema
11204
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11261
+ }), object({ deleted: number().int() }), {
11262
+ kind: "mutation",
11263
+ auth: "admin"
11264
+ }), method(object({
11205
11265
  namespace: string().optional(),
11206
11266
  collection: string(),
11207
11267
  filter: MutationFilterSchema,
11208
11268
  data: record(string(), unknown())
11209
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11269
+ }), object({ updated: number().int() }), {
11270
+ kind: "mutation",
11271
+ auth: "admin"
11272
+ }), method(object({
11210
11273
  namespace: string().optional(),
11211
11274
  collection: string(),
11212
11275
  filter: QueryFilterSchema.optional()
11213
- }), number()), method(object({
11276
+ }), number(), { auth: "admin" }), method(object({
11214
11277
  namespace: string().optional(),
11215
11278
  collection: string(),
11216
11279
  field: string(),
@@ -11220,15 +11283,18 @@ method(_void(), EngineInfoSchema), method(object({
11220
11283
  }), array(object({
11221
11284
  bucket: number().int(),
11222
11285
  count: number().int()
11223
- })).readonly()), method(object({
11286
+ })).readonly(), { auth: "admin" }), method(object({
11224
11287
  namespace: string().optional(),
11225
11288
  collection: string()
11226
- }), boolean()), method(object({
11289
+ }), boolean(), { auth: "admin" }), method(object({
11227
11290
  namespace: string().optional(),
11228
11291
  collection: string(),
11229
11292
  columns: array(CollectionColumnSchema).readonly(),
11230
11293
  indexes: array(CollectionIndexSchema).readonly().optional()
11231
- }), _void(), { kind: "mutation" });
11294
+ }), _void(), {
11295
+ kind: "mutation",
11296
+ auth: "admin"
11297
+ });
11232
11298
  /**
11233
11299
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11234
11300
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12056,6 +12122,27 @@ var LinkedDeviceSchema = object({
12056
12122
  features: array(string()),
12057
12123
  producesTrackedEvents: boolean().optional()
12058
12124
  });
12125
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12126
+ * The batch answer needs the tag; the single-device answer already has it
12127
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12128
+ var LinkedDevicesForDeviceSchema = object({
12129
+ deviceId: number(),
12130
+ mode: LinkedDevicesModeSchema,
12131
+ devices: array(LinkedDeviceSchema)
12132
+ });
12133
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12134
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12135
+ * object literal is exactly how the three drift apart. */
12136
+ var DeviceBindingsForDeviceSchema = object({
12137
+ deviceId: number(),
12138
+ entries: array(object({
12139
+ capName: string(),
12140
+ kind: _enum(["native", "wrapped"]),
12141
+ providerAddonId: string(),
12142
+ providerNodeId: string(),
12143
+ nativeAddonId: string()
12144
+ }))
12145
+ });
12059
12146
  var SavedDeviceRowSchema = object({
12060
12147
  /** Numeric id reserved at allocateDeviceId time. */
12061
12148
  id: number(),
@@ -12281,11 +12368,25 @@ method(object({
12281
12368
  projection: _enum(["full", "slim"]).optional(),
12282
12369
  /** Return only camera devices. Filtering server-side instead of
12283
12370
  * shipping 293 rows to find 12. */
12284
- isCamera: boolean().optional()
12371
+ isCamera: boolean().optional(),
12372
+ /**
12373
+ * Return only these device ids. For the caller that already KNOWS the
12374
+ * handful it wants and needs a field the id-bearing answer does not
12375
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12376
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12377
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12378
+ * refetches on the reconcile interval, on a phone.
12379
+ *
12380
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12381
+ * keys rather than rejecting them (verified against the live hub
12382
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12383
+ * it answers today and the caller filters as it already does.
12384
+ */
12385
+ deviceIds: array(number()).optional()
12285
12386
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12286
12387
  mode: LinkedDevicesModeSchema,
12287
12388
  devices: array(LinkedDeviceSchema)
12288
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12389
+ })), 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({
12289
12390
  deviceId: number(),
12290
12391
  values: record(string(), unknown())
12291
12392
  }), object({ success: literal(true) }), {
@@ -12312,25 +12413,7 @@ method(object({
12312
12413
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12313
12414
  kind: "mutation",
12314
12415
  auth: "admin"
12315
- }), method(object({ deviceId: number() }), object({
12316
- deviceId: number(),
12317
- entries: array(object({
12318
- capName: string(),
12319
- kind: _enum(["native", "wrapped"]),
12320
- providerAddonId: string(),
12321
- providerNodeId: string(),
12322
- nativeAddonId: string()
12323
- }))
12324
- })), method(object({}), array(object({
12325
- deviceId: number(),
12326
- entries: array(object({
12327
- capName: string(),
12328
- kind: _enum(["native", "wrapped"]),
12329
- providerAddonId: string(),
12330
- providerNodeId: string(),
12331
- nativeAddonId: string()
12332
- }))
12333
- }))), method(object({
12416
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12334
12417
  deviceId: number(),
12335
12418
  capName: string(),
12336
12419
  wrapperAddonId: string(),
@@ -12501,7 +12584,7 @@ method(object({
12501
12584
  crop: _instanceof(Uint8Array),
12502
12585
  width: number(),
12503
12586
  height: number()
12504
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12587
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12505
12588
  /**
12506
12589
  * filesystem-browse — per-node capability for browsing the node's local
12507
12590
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12794,19 +12877,22 @@ method(LlmGenerateBaseInputSchema.extend({
12794
12877
  runtime: ManagedRuntimeConfigSchema,
12795
12878
  /** The managed profile's timeout, threaded by the hub provider. */
12796
12879
  timeoutMs: number().int().positive().optional()
12797
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12880
+ }), LlmGenerateResultSchema, {
12881
+ kind: "mutation",
12882
+ auth: "admin"
12883
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12798
12884
  kind: "mutation",
12799
12885
  auth: "admin"
12800
12886
  }), method(object({}), _void(), {
12801
12887
  kind: "mutation",
12802
12888
  auth: "admin"
12803
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12889
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12804
12890
  kind: "mutation",
12805
12891
  auth: "admin"
12806
12892
  }), method(object({ file: string() }), _void(), {
12807
12893
  kind: "mutation",
12808
12894
  auth: "admin"
12809
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12895
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12810
12896
  /**
12811
12897
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12812
12898
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14740,12 +14826,15 @@ var NcOccupancyConditionSchema = object({
14740
14826
  * there is no second switch that can disagree with the first and every rule
14741
14827
  * authored before the decision migrates for free (`audioModeOf`):
14742
14828
  *
14743
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14744
- * classifier labels with one of them. No window, no percentage:
14745
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14746
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14747
- * the analyzer's (`classificationMinScore`, per device) a label only
14748
- * reaches this condition if the classifier was already confident enough.
14829
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14830
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14831
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14832
+ * frames is the wrong question for a classifier that labels 1–3 frames
14833
+ * per episode. The count window is the brake that drops a single-frame
14834
+ * false positive; the rule's own `throttle` cooldown is the other. The
14835
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14836
+ * per device) — a label only reaches this condition if the classifier was
14837
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14749
14838
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14750
14839
  * the condition: at least `hitPercent`% of the samples over
14751
14840
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14772,14 +14861,22 @@ var NcOccupancyConditionSchema = object({
14772
14861
  * an operator who typed `dog` mean the same thing.
14773
14862
  */
14774
14863
  var NcAudioConditionSchema = object({
14775
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14864
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14776
14865
  labels: array(string().min(1)).min(1).optional(),
14777
14866
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14778
14867
  dbThreshold: number().min(-96).max(0).optional(),
14779
14868
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14780
14869
  hitPercent: number().int().min(1).max(100).default(60),
14781
14870
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14782
- samplingSeconds: number().int().min(1).max(300).default(10)
14871
+ samplingSeconds: number().int().min(1).max(300).default(10),
14872
+ /**
14873
+ * LABEL MODE: how many labelled frames must land inside
14874
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14875
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14876
+ */
14877
+ confirmHits: number().int().min(1).max(20).optional(),
14878
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14879
+ confirmWindowSec: number().int().min(1).max(60).optional()
14783
14880
  });
14784
14881
  /**
14785
14882
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16306,7 +16403,7 @@ var OauthIntegrationDescriptorSchema = object({
16306
16403
  */
16307
16404
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16308
16405
  });
16309
- method(_void(), OauthIntegrationDescriptorSchema);
16406
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16310
16407
  /**
16311
16408
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16312
16409
  * per-frame detections emitted by the pipeline runner into tracked
@@ -17153,6 +17250,46 @@ var RecentTracksPageSchema = object({
17153
17250
  /** Cursor for the next page, or null when this page is the last. */
17154
17251
  nextCursor: string().nullable()
17155
17252
  });
17253
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17254
+ var LIST_GROUPS_MAX_LIMIT = 100;
17255
+ var AnalyticsGroupRecordSchema = object({
17256
+ id: string(),
17257
+ deviceId: number().int(),
17258
+ openedAt: number().int(),
17259
+ closedAt: number().int(),
17260
+ timestamp: number().int(),
17261
+ memberCount: number().int(),
17262
+ memberTrackIds: array(string()).readonly(),
17263
+ className: string(),
17264
+ classes: array(string()).readonly(),
17265
+ /** Relative event-media path, or null when the group has no picture yet. */
17266
+ mediaUrl: string().nullable(),
17267
+ singleton: boolean()
17268
+ });
17269
+ var AnalyticsGroupMemberSchema = object({
17270
+ trackId: string(),
17271
+ deviceId: number().int(),
17272
+ className: string(),
17273
+ firstSeen: number().int(),
17274
+ lastSeen: number().int(),
17275
+ mediaUrl: string().nullable()
17276
+ });
17277
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17278
+ var ListGroupsQueryInput = object({
17279
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17280
+ deviceIds: array(number()),
17281
+ /** Window lower bound on `closedAt` (inclusive). */
17282
+ since: number().optional(),
17283
+ /** Window upper bound on `openedAt` (inclusive). */
17284
+ until: number().optional(),
17285
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17286
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17287
+ cursor: string().optional()
17288
+ });
17289
+ var ListGroupsPageSchema = object({
17290
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17291
+ nextCursor: string().nullable()
17292
+ });
17156
17293
  var KeyEventQueryInput = object({
17157
17294
  deviceId: number(),
17158
17295
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17228,7 +17365,9 @@ var TrackCascadeCountsSchema = object({
17228
17365
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17229
17366
  plates: number().int(),
17230
17367
  /** Per-track CLIP search vectors removed (best-effort). */
17231
- embeddings: number().int()
17368
+ embeddings: number().int(),
17369
+ /** Group membership + group rows removed with their last member (best-effort). */
17370
+ groups: number().int()
17232
17371
  });
17233
17372
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17234
17373
  var DiskReconcileCountsSchema = object({
@@ -17374,7 +17513,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17374
17513
  * stationary registry). Default false: the timeline lists passages,
17375
17514
  * not parking records (operator decision, 2026-08-15). */
17376
17515
  includeStationary: boolean().optional()
17377
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17516
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17517
+ deviceId: number(),
17518
+ groupId: string().min(1)
17519
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17378
17520
  kind: "mutation",
17379
17521
  auth: "admin"
17380
17522
  }), 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({
@@ -17456,6 +17598,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17456
17598
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17457
17599
  kind: "mutation",
17458
17600
  auth: "admin"
17601
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17602
+ kind: "mutation",
17603
+ auth: "admin"
17604
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17605
+ kind: "query",
17606
+ auth: "admin"
17607
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17608
+ kind: "mutation",
17609
+ auth: "admin"
17459
17610
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17460
17611
  kind: "query",
17461
17612
  auth: "admin"
@@ -17610,6 +17761,11 @@ object({
17610
17761
  "jpeg"
17611
17762
  ])
17612
17763
  });
17764
+ /**
17765
+ * Process-local frame identity. It is serializable so it can ride an in-process
17766
+ * capability call, but `registryId` deliberately prevents resolution in any
17767
+ * other process or execution group.
17768
+ */
17613
17769
  var FrameRefSchema = object({
17614
17770
  registryId: string().min(1),
17615
17771
  id: string().min(1),
@@ -17684,7 +17840,8 @@ var PipelineModelOptionSchema = object({
17684
17840
  sizeMB: number()
17685
17841
  })),
17686
17842
  group: ModelVariantGroupSchema.optional(),
17687
- legacy: boolean().optional()
17843
+ legacy: boolean().optional(),
17844
+ provider: ModelProviderIdSchema.optional()
17688
17845
  });
17689
17846
  var ConfigFieldBridge = custom();
17690
17847
  var PipelineAddonSchemaSchema = object({
@@ -19918,7 +20075,7 @@ method(object({
19918
20075
  * linking rather than produce an eternal token.
19919
20076
  */
19920
20077
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19921
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
20078
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19922
20079
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19923
20080
  providerId: string().min(1),
19924
20081
  displayName: string().min(1),
@@ -20013,10 +20170,13 @@ var EvictResultSchema = object({
20013
20170
  /** True when the provider has nothing left it is willing to drop on this location. */
20014
20171
  exhausted: boolean()
20015
20172
  });
20016
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20173
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
20017
20174
  locationId: string(),
20018
20175
  targetBytes: number().int().positive()
20019
- }), EvictResultSchema, { kind: "mutation" });
20176
+ }), EvictResultSchema, {
20177
+ kind: "mutation",
20178
+ auth: "admin"
20179
+ });
20020
20180
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
20021
20181
  kind: "mutation",
20022
20182
  auth: "admin"
@@ -20076,26 +20236,50 @@ var ReadChunkInputSchema = object({
20076
20236
  length: number()
20077
20237
  });
20078
20238
  var EndDownloadInputSchema = object({ downloadId: string() });
20079
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20239
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20080
20240
  location: StorageLocationSchema,
20081
20241
  relativePath: string()
20082
- }), string()), method(object({
20242
+ }), string(), { auth: "admin" }), method(object({
20083
20243
  location: StorageLocationSchema,
20084
20244
  relativePath: string(),
20085
20245
  data: _instanceof(Uint8Array)
20086
- }), _void(), { kind: "mutation" }), method(object({
20246
+ }), _void(), {
20247
+ kind: "mutation",
20248
+ auth: "admin"
20249
+ }), method(object({
20087
20250
  location: StorageLocationSchema,
20088
20251
  relativePath: string()
20089
- }), _instanceof(Uint8Array)), method(object({
20252
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20090
20253
  location: StorageLocationSchema,
20091
20254
  relativePath: string()
20092
- }), boolean()), method(object({
20255
+ }), boolean(), { auth: "admin" }), method(object({
20093
20256
  location: StorageLocationSchema,
20094
20257
  prefix: string().optional()
20095
- }), array(string()).readonly()), method(object({
20258
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20096
20259
  location: StorageLocationSchema,
20097
20260
  relativePath: string()
20098
- }), _void(), { kind: "mutation" }), method(object({ location: StorageLocationSchema }), number().nullable()), method(BeginUploadInputSchema, BeginUploadResultSchema, { kind: "mutation" }), method(WriteChunkInputSchema, _void(), { kind: "mutation" }), method(FinalizeUploadInputSchema, _void(), { kind: "mutation" }), method(AbortUploadInputSchema, _void(), { kind: "mutation" }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, { kind: "mutation" }), method(ReadChunkInputSchema, _instanceof(Uint8Array)), method(EndDownloadInputSchema, _void(), { kind: "mutation" });
20261
+ }), _void(), {
20262
+ kind: "mutation",
20263
+ auth: "admin"
20264
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20265
+ kind: "mutation",
20266
+ auth: "admin"
20267
+ }), method(WriteChunkInputSchema, _void(), {
20268
+ kind: "mutation",
20269
+ auth: "admin"
20270
+ }), method(FinalizeUploadInputSchema, _void(), {
20271
+ kind: "mutation",
20272
+ auth: "admin"
20273
+ }), method(AbortUploadInputSchema, _void(), {
20274
+ kind: "mutation",
20275
+ auth: "admin"
20276
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20277
+ kind: "mutation",
20278
+ auth: "admin"
20279
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20280
+ kind: "mutation",
20281
+ auth: "admin"
20282
+ });
20099
20283
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20100
20284
  var ProfileSettingsSchemaBridge = unknown().nullable();
20101
20285
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20353,7 +20537,8 @@ method(object({
20353
20537
  access: "create"
20354
20538
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20355
20539
  kind: "mutation",
20356
- access: "view"
20540
+ access: "view",
20541
+ auth: "admin"
20357
20542
  }), method(object({
20358
20543
  /** Required — the user the assertion belongs to (verified). */
20359
20544
  userId: string(),
@@ -20361,10 +20546,12 @@ method(object({
20361
20546
  response: record(string(), unknown())
20362
20547
  }), object({ verified: boolean() }), {
20363
20548
  kind: "mutation",
20364
- access: "view"
20549
+ access: "view",
20550
+ auth: "admin"
20365
20551
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20366
20552
  kind: "mutation",
20367
- access: "view"
20553
+ access: "view",
20554
+ auth: "admin"
20368
20555
  }), method(object({
20369
20556
  /** AuthenticationResponseJSON from the browser. */
20370
20557
  response: record(string(), unknown()) }), object({
@@ -20372,7 +20559,8 @@ response: record(string(), unknown()) }), object({
20372
20559
  userId: string().nullable()
20373
20560
  }), {
20374
20561
  kind: "mutation",
20375
- access: "view"
20562
+ access: "view",
20563
+ auth: "admin"
20376
20564
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20377
20565
  userId: string(),
20378
20566
  credentialId: string()
@@ -20544,7 +20732,19 @@ var VectorStatsResultSchema = object({
20544
20732
  /** False when the backend ranks approximately. */
20545
20733
  exact: boolean()
20546
20734
  });
20547
- method(VectorDeclareIndexInputSchema, _void(), { kind: "mutation" }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, { kind: "mutation" }), method(VectorQueryInputSchema, VectorQueryResultSchema), method(VectorGetInputSchema, VectorGetResultSchema), method(VectorDeleteInputSchema, VectorDeleteResultSchema, { kind: "mutation" }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, { kind: "mutation" }), method(VectorStatsInputSchema, VectorStatsResultSchema);
20735
+ method(VectorDeclareIndexInputSchema, _void(), {
20736
+ kind: "mutation",
20737
+ auth: "admin"
20738
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20739
+ kind: "mutation",
20740
+ auth: "admin"
20741
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20742
+ kind: "mutation",
20743
+ auth: "admin"
20744
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20745
+ kind: "mutation",
20746
+ auth: "admin"
20747
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20548
20748
  var ClipSchema = object({
20549
20749
  /** Opaque, provider-namespaced id. The default provider encodes the time
20550
20750
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -23005,7 +23205,27 @@ var MediaFileLiteSchema$1 = object({
23005
23205
  sizeBytes: number(),
23006
23206
  timestamp: number()
23007
23207
  });
23008
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23208
+ method(object({
23209
+ /**
23210
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23211
+ *
23212
+ * Default `false`, the same inversion `listRecentFaces` and
23213
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23214
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23215
+ * on the live hub the same day: four identities cost 40,979 B with the
23216
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23217
+ * four times and the viewer holds at `staleTime: 30_000`.
23218
+ *
23219
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23220
+ * the `event-media` plane serves that key `immutable` with an ETag.
23221
+ *
23222
+ * **This is an INPUT field, so it does not reach the addon until the
23223
+ * next train** — the hub router validates cap inputs against its own
23224
+ * compiled Zod and strips a key it does not know. Until then the
23225
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23226
+ * is what ships, and the opt-in becomes reachable when the train lands.
23227
+ */
23228
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23009
23229
  kind: "mutation",
23010
23230
  auth: "admin"
23011
23231
  }), method(object({
@@ -25893,7 +26113,14 @@ var PlateInfoSchema = object({
25893
26113
  plateBbox: BoundingBoxSchema.optional(),
25894
26114
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
25895
26115
  keyFrameMediaKey: string().optional(),
25896
- base64: string().optional()
26116
+ base64: string().optional(),
26117
+ /**
26118
+ * Same crop as a data-plane URL, always present when the plate has a stored
26119
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26120
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26121
+ * left at its `true` default.
26122
+ */
26123
+ cropUrl: string().optional()
25897
26124
  });
25898
26125
  var MediaFileLiteSchema = object({
25899
26126
  key: string(),
@@ -25911,14 +26138,34 @@ var PlateClusterSchema = object({
25911
26138
  });
25912
26139
  method(object({
25913
26140
  deviceId: number().int().optional(),
25914
- limit: number().int().positive().optional()
26141
+ limit: number().int().positive().optional(),
26142
+ /**
26143
+ * Inline the base64 crop on every row. Default `true` — the existing
26144
+ * behaviour, kept so no caller breaks.
26145
+ *
26146
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26147
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26148
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26149
+ * metadata without them — and the browser then caches the images.
26150
+ *
26151
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26152
+ * plates were the one gallery list left without it.
26153
+ *
26154
+ * **This is an INPUT field, so it does not reach the addon until the
26155
+ * next train.** The hub router validates cap inputs against its own
26156
+ * compiled Zod and strips a key it does not know. Until the train
26157
+ * ships, sending `false` is harmless and keeps the crops inline.
26158
+ */
26159
+ includeCrops: boolean().optional()
25915
26160
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
25916
26161
  deviceId: number().int(),
25917
26162
  trackId: string()
25918
26163
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
25919
26164
  text: string().min(1),
25920
26165
  maxDistance: number().int().min(0).optional(),
25921
- limit: number().int().positive().optional()
26166
+ limit: number().int().positive().optional(),
26167
+ /** See `listPlates.includeCrops`. Default `true`. */
26168
+ includeCrops: boolean().optional()
25922
26169
  }), array(PlateInfoSchema).readonly()), method(object({
25923
26170
  maxDistance: number().int().min(0).optional(),
25924
26171
  minClusterSize: number().int().min(2).optional(),
@@ -25932,7 +26179,13 @@ method(object({
25932
26179
  }), method(object({ plateId: string() }), _void(), {
25933
26180
  kind: "mutation",
25934
26181
  auth: "admin"
25935
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26182
+ }), method(object({
26183
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26184
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26185
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26186
+ * INPUT field: stripped by the hub router until the train ships, which
26187
+ * resolves to `false` and is exactly the intended default. */
26188
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
25936
26189
  kind: "mutation",
25937
26190
  auth: "admin"
25938
26191
  }), method(object({
@@ -31483,6 +31736,12 @@ Object.freeze({
31483
31736
  addonId: null,
31484
31737
  access: "view"
31485
31738
  },
31739
+ "deviceManager.getBindingsBatch": {
31740
+ capName: "device-manager",
31741
+ capScope: "system",
31742
+ addonId: null,
31743
+ access: "view"
31744
+ },
31486
31745
  "deviceManager.getChildren": {
31487
31746
  capName: "device-manager",
31488
31747
  capScope: "system",
@@ -31543,6 +31802,12 @@ Object.freeze({
31543
31802
  addonId: null,
31544
31803
  access: "view"
31545
31804
  },
31805
+ "deviceManager.getLinkedDevicesBatch": {
31806
+ capName: "device-manager",
31807
+ capScope: "system",
31808
+ addonId: null,
31809
+ access: "view"
31810
+ },
31546
31811
  "deviceManager.getRoleDisplayDefaults": {
31547
31812
  capName: "device-manager",
31548
31813
  capScope: "system",
@@ -33247,6 +33512,12 @@ Object.freeze({
33247
33512
  addonId: null,
33248
33513
  access: "create"
33249
33514
  },
33515
+ "pipelineAnalytics.cancelRelocateMedia": {
33516
+ capName: "pipeline-analytics",
33517
+ capScope: "device",
33518
+ addonId: null,
33519
+ access: "create"
33520
+ },
33250
33521
  "pipelineAnalytics.cancelStorageMigrationMove": {
33251
33522
  capName: "pipeline-analytics",
33252
33523
  capScope: "device",
@@ -33313,6 +33584,12 @@ Object.freeze({
33313
33584
  addonId: null,
33314
33585
  access: "view"
33315
33586
  },
33587
+ "pipelineAnalytics.getGroup": {
33588
+ capName: "pipeline-analytics",
33589
+ capScope: "device",
33590
+ addonId: null,
33591
+ access: "view"
33592
+ },
33316
33593
  "pipelineAnalytics.getKeyEvents": {
33317
33594
  capName: "pipeline-analytics",
33318
33595
  capScope: "device",
@@ -33397,6 +33674,12 @@ Object.freeze({
33397
33674
  addonId: null,
33398
33675
  access: "view"
33399
33676
  },
33677
+ "pipelineAnalytics.listGroups": {
33678
+ capName: "pipeline-analytics",
33679
+ capScope: "device",
33680
+ addonId: null,
33681
+ access: "view"
33682
+ },
33400
33683
  "pipelineAnalytics.listOpsLog": {
33401
33684
  capName: "pipeline-analytics",
33402
33685
  capScope: "device",
@@ -33409,6 +33692,12 @@ Object.freeze({
33409
33692
  addonId: null,
33410
33693
  access: "view"
33411
33694
  },
33695
+ "pipelineAnalytics.listRelocateMediaJobs": {
33696
+ capName: "pipeline-analytics",
33697
+ capScope: "device",
33698
+ addonId: null,
33699
+ access: "view"
33700
+ },
33412
33701
  "pipelineAnalytics.listRetrainAnnotations": {
33413
33702
  capName: "pipeline-analytics",
33414
33703
  capScope: "device",
@@ -33487,6 +33776,12 @@ Object.freeze({
33487
33776
  addonId: null,
33488
33777
  access: "create"
33489
33778
  },
33779
+ "pipelineAnalytics.relocateMedia": {
33780
+ capName: "pipeline-analytics",
33781
+ capScope: "device",
33782
+ addonId: null,
33783
+ access: "create"
33784
+ },
33490
33785
  "pipelineAnalytics.restageRetrainTrack": {
33491
33786
  capName: "pipeline-analytics",
33492
33787
  capScope: "device",
@@ -36178,6 +36473,11 @@ Object.freeze({
36178
36473
  form: "single",
36179
36474
  optional: false
36180
36475
  }],
36476
+ "deviceManager.getBindingsBatch": [{
36477
+ name: "deviceIds",
36478
+ form: "array",
36479
+ optional: false
36480
+ }],
36181
36481
  "deviceManager.getChildren": [{
36182
36482
  name: "parentDeviceId",
36183
36483
  form: "single",
@@ -36223,6 +36523,11 @@ Object.freeze({
36223
36523
  form: "single",
36224
36524
  optional: false
36225
36525
  }],
36526
+ "deviceManager.getLinkedDevicesBatch": [{
36527
+ name: "deviceIds",
36528
+ form: "array",
36529
+ optional: false
36530
+ }],
36226
36531
  "deviceManager.getSettingsSchema": [{
36227
36532
  name: "deviceId",
36228
36533
  form: "single",
@@ -36243,6 +36548,11 @@ Object.freeze({
36243
36548
  form: "single",
36244
36549
  optional: false
36245
36550
  }],
36551
+ "deviceManager.listAll": [{
36552
+ name: "deviceIds",
36553
+ form: "array",
36554
+ optional: true
36555
+ }],
36246
36556
  "deviceManager.loadConfig": [{
36247
36557
  name: "deviceId",
36248
36558
  form: "single",
@@ -36816,6 +37126,11 @@ Object.freeze({
36816
37126
  form: "single",
36817
37127
  optional: false
36818
37128
  }],
37129
+ "pipelineAnalytics.getGroup": [{
37130
+ name: "deviceId",
37131
+ form: "single",
37132
+ optional: false
37133
+ }],
36819
37134
  "pipelineAnalytics.getKeyEvents": [{
36820
37135
  name: "deviceId",
36821
37136
  form: "single",
@@ -36871,6 +37186,11 @@ Object.freeze({
36871
37186
  form: "array",
36872
37187
  optional: false
36873
37188
  }],
37189
+ "pipelineAnalytics.listGroups": [{
37190
+ name: "deviceIds",
37191
+ form: "array",
37192
+ optional: false
37193
+ }],
36874
37194
  "pipelineAnalytics.listOpsLog": [{
36875
37195
  name: "deviceId",
36876
37196
  form: "single",