@camstack/addon-provider-hikvision 1.2.34 → 1.2.36

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
@@ -5808,6 +5808,13 @@ var BaseAddon = class {
5808
5808
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5809
5809
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5810
5810
  _registeredCapNames = [];
5811
+ /**
5812
+ * True only after `readAddonStore` actually answered. Constructor
5813
+ * defaults look like stored config when the store is down — a forked
5814
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5815
+ * mode, 2026-08-25) is not "the operator chose this".
5816
+ */
5817
+ settingsStoreReady = false;
5811
5818
  /** Default config values. Provided via constructor. */
5812
5819
  defaults;
5813
5820
  constructor(defaults) {
@@ -6208,7 +6215,9 @@ var BaseAddon = class {
6208
6215
  ];
6209
6216
  let lastErr;
6210
6217
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6211
- return await settings.readAddonStore() ?? {};
6218
+ const stored = await settings.readAddonStore() ?? {};
6219
+ this.settingsStoreReady = true;
6220
+ return stored;
6212
6221
  } catch (err) {
6213
6222
  lastErr = err;
6214
6223
  const msg = err instanceof Error ? err.message : String(err);
@@ -6216,6 +6225,7 @@ var BaseAddon = class {
6216
6225
  if (attempt === delaysMs.length) break;
6217
6226
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6218
6227
  }
6228
+ this.settingsStoreReady = false;
6219
6229
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6220
6230
  return {};
6221
6231
  }
@@ -6627,7 +6637,7 @@ function method(input, output, options) {
6627
6637
  input,
6628
6638
  output,
6629
6639
  kind: options?.kind ?? "query",
6630
- auth: options?.auth ?? "protected",
6640
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6631
6641
  ...options?.access !== void 0 ? { access: options.access } : {},
6632
6642
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6633
6643
  timeoutMs: options?.timeoutMs
@@ -6651,7 +6661,7 @@ function event(data) {
6651
6661
  }
6652
6662
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6653
6663
  var VersionOutputSchema$1 = object({ version: string() });
6654
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6664
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6655
6665
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6656
6666
  DeviceType["Camera"] = "camera";
6657
6667
  DeviceType["Hub"] = "hub";
@@ -6972,7 +6982,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6972
6982
  }({});
6973
6983
  var StaticDirOutputSchema = object({ staticDir: string() });
6974
6984
  var VersionOutputSchema = object({ version: string() });
6975
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6985
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6976
6986
  /**
6977
6987
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6978
6988
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7586,24 +7596,6 @@ var RecordingRetentionSchema = object({
7586
7596
  maxSizeGb: number().min(0).optional()
7587
7597
  });
7588
7598
  /**
7589
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7590
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7591
- * previews at. Five graduated steps; absent on a config = `standard` (the
7592
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7593
- *
7594
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7595
- * Each window's index sidecar carries its own tile dims, so a camera whose
7596
- * preset changed over time renders every historical window at the dims it was
7597
- * written with.
7598
- */
7599
- var ScrubThumbnailPresetSchema = _enum([
7600
- "minimal",
7601
- "low",
7602
- "standard",
7603
- "high",
7604
- "max"
7605
- ]);
7606
- /**
7607
7599
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7608
7600
  *
7609
7601
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7611,7 +7603,11 @@ var ScrubThumbnailPresetSchema = _enum([
7611
7603
  * other field is a storage knob (profiles, segment length, retention, scrub).
7612
7604
  *
7613
7605
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7614
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7606
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7607
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7608
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7609
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7610
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7615
7611
  * A stale caller must fail loudly — silently stripping its legacy intent would
7616
7612
  * persist a band-less config, i.e. silently stop recording the camera.
7617
7613
  */
@@ -7634,14 +7630,7 @@ var RecordingConfigSchema = object({
7634
7630
  * "off" is the absence of a covering band, never a band value.
7635
7631
  */
7636
7632
  bands: array(RecordingBandSchema).default([]),
7637
- retention: RecordingRetentionSchema.optional(),
7638
- /**
7639
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7640
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7641
- * windows only — existing sheets are immutable, and each window's index
7642
- * carries its own tile dims so mixed-preset history renders correctly.
7643
- */
7644
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7633
+ retention: RecordingRetentionSchema.optional()
7645
7634
  }).strict();
7646
7635
  /**
7647
7636
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7717,10 +7706,11 @@ var RelocateFootageInputSchema = object({
7717
7706
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7718
7707
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7719
7708
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7720
- var StorageMigrationMediaMoveInputSchema = object({
7709
+ var RelocateMediaInputSchema = object({
7721
7710
  toLocationId: string(),
7722
7711
  throttleMbps: number().min(1).max(1e3).optional()
7723
- }).extend({ leaseId: string().min(1) });
7712
+ });
7713
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7724
7714
  /** The independently selectable logical storage classes. `recordings`
7725
7715
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7726
7716
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8190,7 +8180,26 @@ var LabelDefinitionSchema = object({
8190
8180
  description: string().optional(),
8191
8181
  icon: string().optional()
8192
8182
  });
8193
- var ClassMapDefinitionSchema = object({
8183
+ /**
8184
+ * Wire schema for a per-model CATALOG classMap override
8185
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8186
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8187
+ * detection pipeline executor actually routes.
8188
+ *
8189
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8190
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8191
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8192
+ * enum) — the two used to share the name `ClassMapDefinition`/
8193
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8194
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8195
+ * are not: it is two different concepts colliding on a name. Keep this type
8196
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8197
+ * would either narrow every `ClassMapDefinition` consumer to the four
8198
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8199
+ * schema exists for (see the "rejects a classMap whose target is not a
8200
+ * detection macro" test in `model-catalog-schema.test.ts`).
8201
+ */
8202
+ var DetectionCatalogClassMapSchema = object({
8194
8203
  mapping: record(string(), _enum([
8195
8204
  "person",
8196
8205
  "vehicle",
@@ -8282,6 +8291,12 @@ var ModelVariantGroupSchema = object({
8282
8291
  */
8283
8292
  resolution: number().int().positive().optional()
8284
8293
  });
8294
+ var ModelProviderIdSchema = _enum([
8295
+ "camstack",
8296
+ "frigate",
8297
+ "scrypted",
8298
+ "custom"
8299
+ ]);
8285
8300
  var ModelCatalogEntrySchema = object({
8286
8301
  id: string(),
8287
8302
  name: string(),
@@ -8379,11 +8394,17 @@ var ModelCatalogEntrySchema = object({
8379
8394
  */
8380
8395
  group: ModelVariantGroupSchema.optional(),
8381
8396
  /**
8397
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8398
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8399
+ * persisted before this field existed (`inferModelProvider` fills those).
8400
+ */
8401
+ provider: ModelProviderIdSchema.optional(),
8402
+ /**
8382
8403
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8383
8404
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8384
8405
  * labels already ARE the CamStack macros (Scrypted identity map).
8385
8406
  */
8386
- classMap: ClassMapDefinitionSchema.optional()
8407
+ classMap: DetectionCatalogClassMapSchema.optional()
8387
8408
  });
8388
8409
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8389
8410
  format: literal("openvino"),
@@ -8413,7 +8434,7 @@ var ModelConvertMetadataSchema = object({
8413
8434
  "segmentation"
8414
8435
  ]),
8415
8436
  faceAlignment: boolean().optional(),
8416
- classMap: ClassMapDefinitionSchema.optional()
8437
+ classMap: DetectionCatalogClassMapSchema.optional()
8417
8438
  });
8418
8439
  var ConvertResultSchema = object({
8419
8440
  entry: ModelCatalogEntrySchema,
@@ -9276,7 +9297,7 @@ var AddonPageDeclarationSchema = object({
9276
9297
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9277
9298
  sectionLabel: string().optional()
9278
9299
  });
9279
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9300
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9280
9301
  var AddonHttpRouteSchema = object({
9281
9302
  method: _enum([
9282
9303
  "GET",
@@ -9511,7 +9532,7 @@ var WidgetMetadataSchema = object({
9511
9532
  defaultColumns: number().int().min(1).max(12).default(6),
9512
9533
  defaultRows: number().int().min(1).max(12).default(1)
9513
9534
  });
9514
- method(_void(), array(WidgetMetadataSchema).readonly());
9535
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9515
9536
  /**
9516
9537
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9517
9538
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11147,7 +11168,7 @@ var CustomModelDescriptorSchema = object({
11147
11168
  stepId: string(),
11148
11169
  entry: ModelCatalogEntrySchema
11149
11170
  });
11150
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11171
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11151
11172
  /**
11152
11173
  * Query filter for settings-store collections.
11153
11174
  */
@@ -11234,7 +11255,8 @@ method(object({
11234
11255
  }), _void(), { kind: "mutation" }), method(object({
11235
11256
  namespace: string().optional(),
11236
11257
  collection: string(),
11237
- filter: QueryFilterSchema.optional()
11258
+ filter: QueryFilterSchema.optional(),
11259
+ columns: array(string()).readonly().optional()
11238
11260
  }), array(SettingsRecordSchema).readonly()), method(object({
11239
11261
  namespace: string().optional(),
11240
11262
  collection: string(),
@@ -11297,46 +11319,87 @@ var EngineInfoSchema = object({
11297
11319
  kind: _enum(["relational", "vector"]),
11298
11320
  displayName: string()
11299
11321
  });
11300
- method(_void(), EngineInfoSchema), method(object({
11322
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11301
11323
  namespace: string().optional(),
11302
11324
  collection: string(),
11303
11325
  key: string()
11304
- }), unknown()), method(object({
11326
+ }), unknown(), { auth: "admin" }), method(object({
11305
11327
  namespace: string().optional(),
11306
11328
  collection: string(),
11307
11329
  key: string(),
11308
11330
  value: unknown()
11309
- }), _void(), { kind: "mutation" }), method(object({
11331
+ }), _void(), {
11332
+ kind: "mutation",
11333
+ auth: "admin"
11334
+ }), method(object({
11310
11335
  namespace: string().optional(),
11311
11336
  collection: string(),
11312
- filter: QueryFilterSchema.optional()
11313
- }), array(SettingsRecordSchema).readonly()), method(object({
11337
+ filter: QueryFilterSchema.optional(),
11338
+ /**
11339
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11340
+ *
11341
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11342
+ * was wrong — corrected 2026-08-26 after the hop map
11343
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11344
+ * There is **no Zod parse at all** between the door and the engine: the
11345
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11346
+ * field declared here reaches `SqliteSettingsBackend` either way.
11347
+ *
11348
+ * What actually lost `columns` was the THIRD declaration of this shape:
11349
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11350
+ * interface the engine destructures from. The field existed on both
11351
+ * schemas and the engine still never read it, because nothing checks a
11352
+ * registered provider against `InferProvider<cap>` —
11353
+ * `ProviderRegistration.provider` is typed `object`.
11354
+ *
11355
+ * It is declared here anyway, and must stay in step with
11356
+ * `settings-store.query`: a caller reading only the cap definitions has
11357
+ * to be able to see that this call carries a projection.
11358
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11359
+ */
11360
+ columns: array(string()).readonly().optional()
11361
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11314
11362
  namespace: string().optional(),
11315
11363
  collection: string(),
11316
11364
  record: SettingsRecordSchema
11317
- }), _void(), { kind: "mutation" }), method(object({
11365
+ }), _void(), {
11366
+ kind: "mutation",
11367
+ auth: "admin"
11368
+ }), method(object({
11318
11369
  namespace: string().optional(),
11319
11370
  collection: string(),
11320
11371
  id: string(),
11321
11372
  data: record(string(), unknown())
11322
- }), _void(), { kind: "mutation" }), method(object({
11373
+ }), _void(), {
11374
+ kind: "mutation",
11375
+ auth: "admin"
11376
+ }), method(object({
11323
11377
  namespace: string().optional(),
11324
11378
  collection: string(),
11325
11379
  key: string()
11326
- }), _void(), { kind: "mutation" }), method(object({
11380
+ }), _void(), {
11381
+ kind: "mutation",
11382
+ auth: "admin"
11383
+ }), method(object({
11327
11384
  namespace: string().optional(),
11328
11385
  collection: string(),
11329
11386
  filter: MutationFilterSchema
11330
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11387
+ }), object({ deleted: number().int() }), {
11388
+ kind: "mutation",
11389
+ auth: "admin"
11390
+ }), method(object({
11331
11391
  namespace: string().optional(),
11332
11392
  collection: string(),
11333
11393
  filter: MutationFilterSchema,
11334
11394
  data: record(string(), unknown())
11335
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11395
+ }), object({ updated: number().int() }), {
11396
+ kind: "mutation",
11397
+ auth: "admin"
11398
+ }), method(object({
11336
11399
  namespace: string().optional(),
11337
11400
  collection: string(),
11338
11401
  filter: QueryFilterSchema.optional()
11339
- }), number()), method(object({
11402
+ }), number(), { auth: "admin" }), method(object({
11340
11403
  namespace: string().optional(),
11341
11404
  collection: string(),
11342
11405
  field: string(),
@@ -11346,15 +11409,18 @@ method(_void(), EngineInfoSchema), method(object({
11346
11409
  }), array(object({
11347
11410
  bucket: number().int(),
11348
11411
  count: number().int()
11349
- })).readonly()), method(object({
11412
+ })).readonly(), { auth: "admin" }), method(object({
11350
11413
  namespace: string().optional(),
11351
11414
  collection: string()
11352
- }), boolean()), method(object({
11415
+ }), boolean(), { auth: "admin" }), method(object({
11353
11416
  namespace: string().optional(),
11354
11417
  collection: string(),
11355
11418
  columns: array(CollectionColumnSchema).readonly(),
11356
11419
  indexes: array(CollectionIndexSchema).readonly().optional()
11357
- }), _void(), { kind: "mutation" });
11420
+ }), _void(), {
11421
+ kind: "mutation",
11422
+ auth: "admin"
11423
+ });
11358
11424
  /**
11359
11425
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11360
11426
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12182,6 +12248,27 @@ var LinkedDeviceSchema = object({
12182
12248
  features: array(string()),
12183
12249
  producesTrackedEvents: boolean().optional()
12184
12250
  });
12251
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12252
+ * The batch answer needs the tag; the single-device answer already has it
12253
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12254
+ var LinkedDevicesForDeviceSchema = object({
12255
+ deviceId: number(),
12256
+ mode: LinkedDevicesModeSchema,
12257
+ devices: array(LinkedDeviceSchema)
12258
+ });
12259
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12260
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12261
+ * object literal is exactly how the three drift apart. */
12262
+ var DeviceBindingsForDeviceSchema = object({
12263
+ deviceId: number(),
12264
+ entries: array(object({
12265
+ capName: string(),
12266
+ kind: _enum(["native", "wrapped"]),
12267
+ providerAddonId: string(),
12268
+ providerNodeId: string(),
12269
+ nativeAddonId: string()
12270
+ }))
12271
+ });
12185
12272
  var SavedDeviceRowSchema = object({
12186
12273
  /** Numeric id reserved at allocateDeviceId time. */
12187
12274
  id: number(),
@@ -12407,11 +12494,25 @@ method(object({
12407
12494
  projection: _enum(["full", "slim"]).optional(),
12408
12495
  /** Return only camera devices. Filtering server-side instead of
12409
12496
  * shipping 293 rows to find 12. */
12410
- isCamera: boolean().optional()
12497
+ isCamera: boolean().optional(),
12498
+ /**
12499
+ * Return only these device ids. For the caller that already KNOWS the
12500
+ * handful it wants and needs a field the id-bearing answer does not
12501
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12502
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12503
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12504
+ * refetches on the reconcile interval, on a phone.
12505
+ *
12506
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12507
+ * keys rather than rejecting them (verified against the live hub
12508
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12509
+ * it answers today and the caller filters as it already does.
12510
+ */
12511
+ deviceIds: array(number()).optional()
12411
12512
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12412
12513
  mode: LinkedDevicesModeSchema,
12413
12514
  devices: array(LinkedDeviceSchema)
12414
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12515
+ })), 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({
12415
12516
  deviceId: number(),
12416
12517
  values: record(string(), unknown())
12417
12518
  }), object({ success: literal(true) }), {
@@ -12438,25 +12539,7 @@ method(object({
12438
12539
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12439
12540
  kind: "mutation",
12440
12541
  auth: "admin"
12441
- }), method(object({ deviceId: number() }), object({
12442
- deviceId: number(),
12443
- entries: array(object({
12444
- capName: string(),
12445
- kind: _enum(["native", "wrapped"]),
12446
- providerAddonId: string(),
12447
- providerNodeId: string(),
12448
- nativeAddonId: string()
12449
- }))
12450
- })), method(object({}), array(object({
12451
- deviceId: number(),
12452
- entries: array(object({
12453
- capName: string(),
12454
- kind: _enum(["native", "wrapped"]),
12455
- providerAddonId: string(),
12456
- providerNodeId: string(),
12457
- nativeAddonId: string()
12458
- }))
12459
- }))), method(object({
12542
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12460
12543
  deviceId: number(),
12461
12544
  capName: string(),
12462
12545
  wrapperAddonId: string(),
@@ -12627,7 +12710,7 @@ method(object({
12627
12710
  crop: _instanceof(Uint8Array),
12628
12711
  width: number(),
12629
12712
  height: number()
12630
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12713
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12631
12714
  /**
12632
12715
  * filesystem-browse — per-node capability for browsing the node's local
12633
12716
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12920,19 +13003,22 @@ method(LlmGenerateBaseInputSchema.extend({
12920
13003
  runtime: ManagedRuntimeConfigSchema,
12921
13004
  /** The managed profile's timeout, threaded by the hub provider. */
12922
13005
  timeoutMs: number().int().positive().optional()
12923
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
13006
+ }), LlmGenerateResultSchema, {
13007
+ kind: "mutation",
13008
+ auth: "admin"
13009
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12924
13010
  kind: "mutation",
12925
13011
  auth: "admin"
12926
13012
  }), method(object({}), _void(), {
12927
13013
  kind: "mutation",
12928
13014
  auth: "admin"
12929
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
13015
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12930
13016
  kind: "mutation",
12931
13017
  auth: "admin"
12932
13018
  }), method(object({ file: string() }), _void(), {
12933
13019
  kind: "mutation",
12934
13020
  auth: "admin"
12935
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
13021
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12936
13022
  /**
12937
13023
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12938
13024
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14866,12 +14952,15 @@ var NcOccupancyConditionSchema = object({
14866
14952
  * there is no second switch that can disagree with the first and every rule
14867
14953
  * authored before the decision migrates for free (`audioModeOf`):
14868
14954
  *
14869
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14870
- * classifier labels with one of them. No window, no percentage:
14871
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14872
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14873
- * the analyzer's (`classificationMinScore`, per device) a label only
14874
- * reaches this condition if the classifier was already confident enough.
14955
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14956
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14957
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14958
+ * frames is the wrong question for a classifier that labels 1–3 frames
14959
+ * per episode. The count window is the brake that drops a single-frame
14960
+ * false positive; the rule's own `throttle` cooldown is the other. The
14961
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14962
+ * per device) — a label only reaches this condition if the classifier was
14963
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14875
14964
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14876
14965
  * the condition: at least `hitPercent`% of the samples over
14877
14966
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14898,14 +14987,22 @@ var NcOccupancyConditionSchema = object({
14898
14987
  * an operator who typed `dog` mean the same thing.
14899
14988
  */
14900
14989
  var NcAudioConditionSchema = object({
14901
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14990
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14902
14991
  labels: array(string().min(1)).min(1).optional(),
14903
14992
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14904
14993
  dbThreshold: number().min(-96).max(0).optional(),
14905
14994
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14906
14995
  hitPercent: number().int().min(1).max(100).default(60),
14907
14996
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14908
- samplingSeconds: number().int().min(1).max(300).default(10)
14997
+ samplingSeconds: number().int().min(1).max(300).default(10),
14998
+ /**
14999
+ * LABEL MODE: how many labelled frames must land inside
15000
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
15001
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
15002
+ */
15003
+ confirmHits: number().int().min(1).max(20).optional(),
15004
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
15005
+ confirmWindowSec: number().int().min(1).max(60).optional()
14909
15006
  });
14910
15007
  /**
14911
15008
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16432,7 +16529,7 @@ var OauthIntegrationDescriptorSchema = object({
16432
16529
  */
16433
16530
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16434
16531
  });
16435
- method(_void(), OauthIntegrationDescriptorSchema);
16532
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16436
16533
  /**
16437
16534
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16438
16535
  * per-frame detections emitted by the pipeline runner into tracked
@@ -17279,6 +17376,46 @@ var RecentTracksPageSchema = object({
17279
17376
  /** Cursor for the next page, or null when this page is the last. */
17280
17377
  nextCursor: string().nullable()
17281
17378
  });
17379
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17380
+ var LIST_GROUPS_MAX_LIMIT = 100;
17381
+ var AnalyticsGroupRecordSchema = object({
17382
+ id: string(),
17383
+ deviceId: number().int(),
17384
+ openedAt: number().int(),
17385
+ closedAt: number().int(),
17386
+ timestamp: number().int(),
17387
+ memberCount: number().int(),
17388
+ memberTrackIds: array(string()).readonly(),
17389
+ className: string(),
17390
+ classes: array(string()).readonly(),
17391
+ /** Relative event-media path, or null when the group has no picture yet. */
17392
+ mediaUrl: string().nullable(),
17393
+ singleton: boolean()
17394
+ });
17395
+ var AnalyticsGroupMemberSchema = object({
17396
+ trackId: string(),
17397
+ deviceId: number().int(),
17398
+ className: string(),
17399
+ firstSeen: number().int(),
17400
+ lastSeen: number().int(),
17401
+ mediaUrl: string().nullable()
17402
+ });
17403
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17404
+ var ListGroupsQueryInput = object({
17405
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17406
+ deviceIds: array(number()),
17407
+ /** Window lower bound on `closedAt` (inclusive). */
17408
+ since: number().optional(),
17409
+ /** Window upper bound on `openedAt` (inclusive). */
17410
+ until: number().optional(),
17411
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17412
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17413
+ cursor: string().optional()
17414
+ });
17415
+ var ListGroupsPageSchema = object({
17416
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17417
+ nextCursor: string().nullable()
17418
+ });
17282
17419
  var KeyEventQueryInput = object({
17283
17420
  deviceId: number(),
17284
17421
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17354,7 +17491,9 @@ var TrackCascadeCountsSchema = object({
17354
17491
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17355
17492
  plates: number().int(),
17356
17493
  /** Per-track CLIP search vectors removed (best-effort). */
17357
- embeddings: number().int()
17494
+ embeddings: number().int(),
17495
+ /** Group membership + group rows removed with their last member (best-effort). */
17496
+ groups: number().int()
17358
17497
  });
17359
17498
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17360
17499
  var DiskReconcileCountsSchema = object({
@@ -17500,7 +17639,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17500
17639
  * stationary registry). Default false: the timeline lists passages,
17501
17640
  * not parking records (operator decision, 2026-08-15). */
17502
17641
  includeStationary: boolean().optional()
17503
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17642
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17643
+ deviceId: number(),
17644
+ groupId: string().min(1)
17645
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17504
17646
  kind: "mutation",
17505
17647
  auth: "admin"
17506
17648
  }), 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({
@@ -17582,6 +17724,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17582
17724
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17583
17725
  kind: "mutation",
17584
17726
  auth: "admin"
17727
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17728
+ kind: "mutation",
17729
+ auth: "admin"
17730
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17731
+ kind: "query",
17732
+ auth: "admin"
17733
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17734
+ kind: "mutation",
17735
+ auth: "admin"
17585
17736
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17586
17737
  kind: "query",
17587
17738
  auth: "admin"
@@ -17736,6 +17887,11 @@ object({
17736
17887
  "jpeg"
17737
17888
  ])
17738
17889
  });
17890
+ /**
17891
+ * Process-local frame identity. It is serializable so it can ride an in-process
17892
+ * capability call, but `registryId` deliberately prevents resolution in any
17893
+ * other process or execution group.
17894
+ */
17739
17895
  var FrameRefSchema = object({
17740
17896
  registryId: string().min(1),
17741
17897
  id: string().min(1),
@@ -17810,7 +17966,8 @@ var PipelineModelOptionSchema = object({
17810
17966
  sizeMB: number()
17811
17967
  })),
17812
17968
  group: ModelVariantGroupSchema.optional(),
17813
- legacy: boolean().optional()
17969
+ legacy: boolean().optional(),
17970
+ provider: ModelProviderIdSchema.optional()
17814
17971
  });
17815
17972
  var ConfigFieldBridge = custom();
17816
17973
  var PipelineAddonSchemaSchema = object({
@@ -20044,7 +20201,7 @@ method(object({
20044
20201
  * linking rather than produce an eternal token.
20045
20202
  */
20046
20203
  ttlSec: union([number().int().positive(), literal("never")]).optional()
20047
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
20204
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
20048
20205
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20049
20206
  providerId: string().min(1),
20050
20207
  displayName: string().min(1),
@@ -20139,10 +20296,13 @@ var EvictResultSchema = object({
20139
20296
  /** True when the provider has nothing left it is willing to drop on this location. */
20140
20297
  exhausted: boolean()
20141
20298
  });
20142
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20299
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
20143
20300
  locationId: string(),
20144
20301
  targetBytes: number().int().positive()
20145
- }), EvictResultSchema, { kind: "mutation" });
20302
+ }), EvictResultSchema, {
20303
+ kind: "mutation",
20304
+ auth: "admin"
20305
+ });
20146
20306
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
20147
20307
  kind: "mutation",
20148
20308
  auth: "admin"
@@ -20202,26 +20362,50 @@ var ReadChunkInputSchema = object({
20202
20362
  length: number()
20203
20363
  });
20204
20364
  var EndDownloadInputSchema = object({ downloadId: string() });
20205
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20365
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20206
20366
  location: StorageLocationSchema,
20207
20367
  relativePath: string()
20208
- }), string()), method(object({
20368
+ }), string(), { auth: "admin" }), method(object({
20209
20369
  location: StorageLocationSchema,
20210
20370
  relativePath: string(),
20211
20371
  data: _instanceof(Uint8Array)
20212
- }), _void(), { kind: "mutation" }), method(object({
20372
+ }), _void(), {
20373
+ kind: "mutation",
20374
+ auth: "admin"
20375
+ }), method(object({
20213
20376
  location: StorageLocationSchema,
20214
20377
  relativePath: string()
20215
- }), _instanceof(Uint8Array)), method(object({
20378
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20216
20379
  location: StorageLocationSchema,
20217
20380
  relativePath: string()
20218
- }), boolean()), method(object({
20381
+ }), boolean(), { auth: "admin" }), method(object({
20219
20382
  location: StorageLocationSchema,
20220
20383
  prefix: string().optional()
20221
- }), array(string()).readonly()), method(object({
20384
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20222
20385
  location: StorageLocationSchema,
20223
20386
  relativePath: string()
20224
- }), _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" });
20387
+ }), _void(), {
20388
+ kind: "mutation",
20389
+ auth: "admin"
20390
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20391
+ kind: "mutation",
20392
+ auth: "admin"
20393
+ }), method(WriteChunkInputSchema, _void(), {
20394
+ kind: "mutation",
20395
+ auth: "admin"
20396
+ }), method(FinalizeUploadInputSchema, _void(), {
20397
+ kind: "mutation",
20398
+ auth: "admin"
20399
+ }), method(AbortUploadInputSchema, _void(), {
20400
+ kind: "mutation",
20401
+ auth: "admin"
20402
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20403
+ kind: "mutation",
20404
+ auth: "admin"
20405
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20406
+ kind: "mutation",
20407
+ auth: "admin"
20408
+ });
20225
20409
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20226
20410
  var ProfileSettingsSchemaBridge = unknown().nullable();
20227
20411
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20479,7 +20663,8 @@ method(object({
20479
20663
  access: "create"
20480
20664
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20481
20665
  kind: "mutation",
20482
- access: "view"
20666
+ access: "view",
20667
+ auth: "admin"
20483
20668
  }), method(object({
20484
20669
  /** Required — the user the assertion belongs to (verified). */
20485
20670
  userId: string(),
@@ -20487,10 +20672,12 @@ method(object({
20487
20672
  response: record(string(), unknown())
20488
20673
  }), object({ verified: boolean() }), {
20489
20674
  kind: "mutation",
20490
- access: "view"
20675
+ access: "view",
20676
+ auth: "admin"
20491
20677
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20492
20678
  kind: "mutation",
20493
- access: "view"
20679
+ access: "view",
20680
+ auth: "admin"
20494
20681
  }), method(object({
20495
20682
  /** AuthenticationResponseJSON from the browser. */
20496
20683
  response: record(string(), unknown()) }), object({
@@ -20498,7 +20685,8 @@ response: record(string(), unknown()) }), object({
20498
20685
  userId: string().nullable()
20499
20686
  }), {
20500
20687
  kind: "mutation",
20501
- access: "view"
20688
+ access: "view",
20689
+ auth: "admin"
20502
20690
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20503
20691
  userId: string(),
20504
20692
  credentialId: string()
@@ -20670,7 +20858,19 @@ var VectorStatsResultSchema = object({
20670
20858
  /** False when the backend ranks approximately. */
20671
20859
  exact: boolean()
20672
20860
  });
20673
- 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);
20861
+ method(VectorDeclareIndexInputSchema, _void(), {
20862
+ kind: "mutation",
20863
+ auth: "admin"
20864
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20865
+ kind: "mutation",
20866
+ auth: "admin"
20867
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20868
+ kind: "mutation",
20869
+ auth: "admin"
20870
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20871
+ kind: "mutation",
20872
+ auth: "admin"
20873
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20674
20874
  var ClipSchema = object({
20675
20875
  /** Opaque, provider-namespaced id. The default provider encodes the time
20676
20876
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -23123,7 +23323,27 @@ var MediaFileLiteSchema$1 = object({
23123
23323
  sizeBytes: number(),
23124
23324
  timestamp: number()
23125
23325
  });
23126
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23326
+ method(object({
23327
+ /**
23328
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23329
+ *
23330
+ * Default `false`, the same inversion `listRecentFaces` and
23331
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23332
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23333
+ * on the live hub the same day: four identities cost 40,979 B with the
23334
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23335
+ * four times and the viewer holds at `staleTime: 30_000`.
23336
+ *
23337
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23338
+ * the `event-media` plane serves that key `immutable` with an ETag.
23339
+ *
23340
+ * **This is an INPUT field, so it does not reach the addon until the
23341
+ * next train** — the hub router validates cap inputs against its own
23342
+ * compiled Zod and strips a key it does not know. Until then the
23343
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23344
+ * is what ships, and the opt-in becomes reachable when the train lands.
23345
+ */
23346
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23127
23347
  kind: "mutation",
23128
23348
  auth: "admin"
23129
23349
  }), method(object({
@@ -26057,7 +26277,14 @@ var PlateInfoSchema = object({
26057
26277
  plateBbox: BoundingBoxSchema.optional(),
26058
26278
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
26059
26279
  keyFrameMediaKey: string().optional(),
26060
- base64: string().optional()
26280
+ base64: string().optional(),
26281
+ /**
26282
+ * Same crop as a data-plane URL, always present when the plate has a stored
26283
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26284
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26285
+ * left at its `true` default.
26286
+ */
26287
+ cropUrl: string().optional()
26061
26288
  });
26062
26289
  var MediaFileLiteSchema = object({
26063
26290
  key: string(),
@@ -26075,14 +26302,34 @@ var PlateClusterSchema = object({
26075
26302
  });
26076
26303
  method(object({
26077
26304
  deviceId: number().int().optional(),
26078
- limit: number().int().positive().optional()
26305
+ limit: number().int().positive().optional(),
26306
+ /**
26307
+ * Inline the base64 crop on every row. Default `true` — the existing
26308
+ * behaviour, kept so no caller breaks.
26309
+ *
26310
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26311
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26312
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26313
+ * metadata without them — and the browser then caches the images.
26314
+ *
26315
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26316
+ * plates were the one gallery list left without it.
26317
+ *
26318
+ * **This is an INPUT field, so it does not reach the addon until the
26319
+ * next train.** The hub router validates cap inputs against its own
26320
+ * compiled Zod and strips a key it does not know. Until the train
26321
+ * ships, sending `false` is harmless and keeps the crops inline.
26322
+ */
26323
+ includeCrops: boolean().optional()
26079
26324
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
26080
26325
  deviceId: number().int(),
26081
26326
  trackId: string()
26082
26327
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
26083
26328
  text: string().min(1),
26084
26329
  maxDistance: number().int().min(0).optional(),
26085
- limit: number().int().positive().optional()
26330
+ limit: number().int().positive().optional(),
26331
+ /** See `listPlates.includeCrops`. Default `true`. */
26332
+ includeCrops: boolean().optional()
26086
26333
  }), array(PlateInfoSchema).readonly()), method(object({
26087
26334
  maxDistance: number().int().min(0).optional(),
26088
26335
  minClusterSize: number().int().min(2).optional(),
@@ -26096,7 +26343,13 @@ method(object({
26096
26343
  }), method(object({ plateId: string() }), _void(), {
26097
26344
  kind: "mutation",
26098
26345
  auth: "admin"
26099
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26346
+ }), method(object({
26347
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26348
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26349
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26350
+ * INPUT field: stripped by the hub router until the train ships, which
26351
+ * resolves to `false` and is exactly the intended default. */
26352
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26100
26353
  kind: "mutation",
26101
26354
  auth: "admin"
26102
26355
  }), method(object({
@@ -32099,6 +32352,12 @@ Object.freeze({
32099
32352
  addonId: null,
32100
32353
  access: "view"
32101
32354
  },
32355
+ "deviceManager.getBindingsBatch": {
32356
+ capName: "device-manager",
32357
+ capScope: "system",
32358
+ addonId: null,
32359
+ access: "view"
32360
+ },
32102
32361
  "deviceManager.getChildren": {
32103
32362
  capName: "device-manager",
32104
32363
  capScope: "system",
@@ -32159,6 +32418,12 @@ Object.freeze({
32159
32418
  addonId: null,
32160
32419
  access: "view"
32161
32420
  },
32421
+ "deviceManager.getLinkedDevicesBatch": {
32422
+ capName: "device-manager",
32423
+ capScope: "system",
32424
+ addonId: null,
32425
+ access: "view"
32426
+ },
32162
32427
  "deviceManager.getRoleDisplayDefaults": {
32163
32428
  capName: "device-manager",
32164
32429
  capScope: "system",
@@ -33863,6 +34128,12 @@ Object.freeze({
33863
34128
  addonId: null,
33864
34129
  access: "create"
33865
34130
  },
34131
+ "pipelineAnalytics.cancelRelocateMedia": {
34132
+ capName: "pipeline-analytics",
34133
+ capScope: "device",
34134
+ addonId: null,
34135
+ access: "create"
34136
+ },
33866
34137
  "pipelineAnalytics.cancelStorageMigrationMove": {
33867
34138
  capName: "pipeline-analytics",
33868
34139
  capScope: "device",
@@ -33929,6 +34200,12 @@ Object.freeze({
33929
34200
  addonId: null,
33930
34201
  access: "view"
33931
34202
  },
34203
+ "pipelineAnalytics.getGroup": {
34204
+ capName: "pipeline-analytics",
34205
+ capScope: "device",
34206
+ addonId: null,
34207
+ access: "view"
34208
+ },
33932
34209
  "pipelineAnalytics.getKeyEvents": {
33933
34210
  capName: "pipeline-analytics",
33934
34211
  capScope: "device",
@@ -34013,6 +34290,12 @@ Object.freeze({
34013
34290
  addonId: null,
34014
34291
  access: "view"
34015
34292
  },
34293
+ "pipelineAnalytics.listGroups": {
34294
+ capName: "pipeline-analytics",
34295
+ capScope: "device",
34296
+ addonId: null,
34297
+ access: "view"
34298
+ },
34016
34299
  "pipelineAnalytics.listOpsLog": {
34017
34300
  capName: "pipeline-analytics",
34018
34301
  capScope: "device",
@@ -34025,6 +34308,12 @@ Object.freeze({
34025
34308
  addonId: null,
34026
34309
  access: "view"
34027
34310
  },
34311
+ "pipelineAnalytics.listRelocateMediaJobs": {
34312
+ capName: "pipeline-analytics",
34313
+ capScope: "device",
34314
+ addonId: null,
34315
+ access: "view"
34316
+ },
34028
34317
  "pipelineAnalytics.listRetrainAnnotations": {
34029
34318
  capName: "pipeline-analytics",
34030
34319
  capScope: "device",
@@ -34103,6 +34392,12 @@ Object.freeze({
34103
34392
  addonId: null,
34104
34393
  access: "create"
34105
34394
  },
34395
+ "pipelineAnalytics.relocateMedia": {
34396
+ capName: "pipeline-analytics",
34397
+ capScope: "device",
34398
+ addonId: null,
34399
+ access: "create"
34400
+ },
34106
34401
  "pipelineAnalytics.restageRetrainTrack": {
34107
34402
  capName: "pipeline-analytics",
34108
34403
  capScope: "device",
@@ -36794,6 +37089,11 @@ Object.freeze({
36794
37089
  form: "single",
36795
37090
  optional: false
36796
37091
  }],
37092
+ "deviceManager.getBindingsBatch": [{
37093
+ name: "deviceIds",
37094
+ form: "array",
37095
+ optional: false
37096
+ }],
36797
37097
  "deviceManager.getChildren": [{
36798
37098
  name: "parentDeviceId",
36799
37099
  form: "single",
@@ -36839,6 +37139,11 @@ Object.freeze({
36839
37139
  form: "single",
36840
37140
  optional: false
36841
37141
  }],
37142
+ "deviceManager.getLinkedDevicesBatch": [{
37143
+ name: "deviceIds",
37144
+ form: "array",
37145
+ optional: false
37146
+ }],
36842
37147
  "deviceManager.getSettingsSchema": [{
36843
37148
  name: "deviceId",
36844
37149
  form: "single",
@@ -36859,6 +37164,11 @@ Object.freeze({
36859
37164
  form: "single",
36860
37165
  optional: false
36861
37166
  }],
37167
+ "deviceManager.listAll": [{
37168
+ name: "deviceIds",
37169
+ form: "array",
37170
+ optional: true
37171
+ }],
36862
37172
  "deviceManager.loadConfig": [{
36863
37173
  name: "deviceId",
36864
37174
  form: "single",
@@ -37432,6 +37742,11 @@ Object.freeze({
37432
37742
  form: "single",
37433
37743
  optional: false
37434
37744
  }],
37745
+ "pipelineAnalytics.getGroup": [{
37746
+ name: "deviceId",
37747
+ form: "single",
37748
+ optional: false
37749
+ }],
37435
37750
  "pipelineAnalytics.getKeyEvents": [{
37436
37751
  name: "deviceId",
37437
37752
  form: "single",
@@ -37487,6 +37802,11 @@ Object.freeze({
37487
37802
  form: "array",
37488
37803
  optional: false
37489
37804
  }],
37805
+ "pipelineAnalytics.listGroups": [{
37806
+ name: "deviceIds",
37807
+ form: "array",
37808
+ optional: false
37809
+ }],
37490
37810
  "pipelineAnalytics.listOpsLog": [{
37491
37811
  name: "deviceId",
37492
37812
  form: "single",