@camstack/addon-provider-reolink 1.2.49 → 1.2.51

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.mjs CHANGED
@@ -5823,6 +5823,13 @@ var BaseAddon = class {
5823
5823
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5824
5824
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5825
5825
  _registeredCapNames = [];
5826
+ /**
5827
+ * True only after `readAddonStore` actually answered. Constructor
5828
+ * defaults look like stored config when the store is down — a forked
5829
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5830
+ * mode, 2026-08-25) is not "the operator chose this".
5831
+ */
5832
+ settingsStoreReady = false;
5826
5833
  /** Default config values. Provided via constructor. */
5827
5834
  defaults;
5828
5835
  constructor(defaults) {
@@ -6223,7 +6230,9 @@ var BaseAddon = class {
6223
6230
  ];
6224
6231
  let lastErr;
6225
6232
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6226
- return await settings.readAddonStore() ?? {};
6233
+ const stored = await settings.readAddonStore() ?? {};
6234
+ this.settingsStoreReady = true;
6235
+ return stored;
6227
6236
  } catch (err) {
6228
6237
  lastErr = err;
6229
6238
  const msg = err instanceof Error ? err.message : String(err);
@@ -6231,6 +6240,7 @@ var BaseAddon = class {
6231
6240
  if (attempt === delaysMs.length) break;
6232
6241
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6233
6242
  }
6243
+ this.settingsStoreReady = false;
6234
6244
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6235
6245
  return {};
6236
6246
  }
@@ -6642,7 +6652,7 @@ function method(input, output, options) {
6642
6652
  input,
6643
6653
  output,
6644
6654
  kind: options?.kind ?? "query",
6645
- auth: options?.auth ?? "protected",
6655
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6646
6656
  ...options?.access !== void 0 ? { access: options.access } : {},
6647
6657
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6648
6658
  timeoutMs: options?.timeoutMs
@@ -6666,7 +6676,7 @@ function event(data) {
6666
6676
  }
6667
6677
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6668
6678
  var VersionOutputSchema$1 = object({ version: string() });
6669
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6679
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6670
6680
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6671
6681
  DeviceType["Camera"] = "camera";
6672
6682
  DeviceType["Hub"] = "hub";
@@ -6987,7 +6997,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6987
6997
  }({});
6988
6998
  var StaticDirOutputSchema = object({ staticDir: string() });
6989
6999
  var VersionOutputSchema = object({ version: string() });
6990
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
7000
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6991
7001
  /**
6992
7002
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6993
7003
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7625,24 +7635,6 @@ var RecordingRetentionSchema = object({
7625
7635
  maxSizeGb: number().min(0).optional()
7626
7636
  });
7627
7637
  /**
7628
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7629
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7630
- * previews at. Five graduated steps; absent on a config = `standard` (the
7631
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7632
- *
7633
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7634
- * Each window's index sidecar carries its own tile dims, so a camera whose
7635
- * preset changed over time renders every historical window at the dims it was
7636
- * written with.
7637
- */
7638
- var ScrubThumbnailPresetSchema = _enum([
7639
- "minimal",
7640
- "low",
7641
- "standard",
7642
- "high",
7643
- "max"
7644
- ]);
7645
- /**
7646
7638
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7647
7639
  *
7648
7640
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7650,7 +7642,11 @@ var ScrubThumbnailPresetSchema = _enum([
7650
7642
  * other field is a storage knob (profiles, segment length, retention, scrub).
7651
7643
  *
7652
7644
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7653
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7645
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7646
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7647
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7648
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7649
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7654
7650
  * A stale caller must fail loudly — silently stripping its legacy intent would
7655
7651
  * persist a band-less config, i.e. silently stop recording the camera.
7656
7652
  */
@@ -7673,14 +7669,7 @@ var RecordingConfigSchema = object({
7673
7669
  * "off" is the absence of a covering band, never a band value.
7674
7670
  */
7675
7671
  bands: array(RecordingBandSchema).default([]),
7676
- retention: RecordingRetentionSchema.optional(),
7677
- /**
7678
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7679
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7680
- * windows only — existing sheets are immutable, and each window's index
7681
- * carries its own tile dims so mixed-preset history renders correctly.
7682
- */
7683
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7672
+ retention: RecordingRetentionSchema.optional()
7684
7673
  }).strict();
7685
7674
  /**
7686
7675
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7756,10 +7745,11 @@ var RelocateFootageInputSchema = object({
7756
7745
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7757
7746
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7758
7747
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7759
- var StorageMigrationMediaMoveInputSchema = object({
7748
+ var RelocateMediaInputSchema = object({
7760
7749
  toLocationId: string(),
7761
7750
  throttleMbps: number().min(1).max(1e3).optional()
7762
- }).extend({ leaseId: string().min(1) });
7751
+ });
7752
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7763
7753
  /** The independently selectable logical storage classes. `recordings`
7764
7754
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7765
7755
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8229,7 +8219,26 @@ var LabelDefinitionSchema = object({
8229
8219
  description: string().optional(),
8230
8220
  icon: string().optional()
8231
8221
  });
8232
- var ClassMapDefinitionSchema = object({
8222
+ /**
8223
+ * Wire schema for a per-model CATALOG classMap override
8224
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8225
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8226
+ * detection pipeline executor actually routes.
8227
+ *
8228
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8229
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8230
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8231
+ * enum) — the two used to share the name `ClassMapDefinition`/
8232
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8233
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8234
+ * are not: it is two different concepts colliding on a name. Keep this type
8235
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8236
+ * would either narrow every `ClassMapDefinition` consumer to the four
8237
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8238
+ * schema exists for (see the "rejects a classMap whose target is not a
8239
+ * detection macro" test in `model-catalog-schema.test.ts`).
8240
+ */
8241
+ var DetectionCatalogClassMapSchema = object({
8233
8242
  mapping: record(string(), _enum([
8234
8243
  "person",
8235
8244
  "vehicle",
@@ -8321,6 +8330,12 @@ var ModelVariantGroupSchema = object({
8321
8330
  */
8322
8331
  resolution: number().int().positive().optional()
8323
8332
  });
8333
+ var ModelProviderIdSchema = _enum([
8334
+ "camstack",
8335
+ "frigate",
8336
+ "scrypted",
8337
+ "custom"
8338
+ ]);
8324
8339
  var ModelCatalogEntrySchema = object({
8325
8340
  id: string(),
8326
8341
  name: string(),
@@ -8418,11 +8433,17 @@ var ModelCatalogEntrySchema = object({
8418
8433
  */
8419
8434
  group: ModelVariantGroupSchema.optional(),
8420
8435
  /**
8436
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8437
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8438
+ * persisted before this field existed (`inferModelProvider` fills those).
8439
+ */
8440
+ provider: ModelProviderIdSchema.optional(),
8441
+ /**
8421
8442
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8422
8443
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8423
8444
  * labels already ARE the CamStack macros (Scrypted identity map).
8424
8445
  */
8425
- classMap: ClassMapDefinitionSchema.optional()
8446
+ classMap: DetectionCatalogClassMapSchema.optional()
8426
8447
  });
8427
8448
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8428
8449
  format: literal("openvino"),
@@ -8452,7 +8473,7 @@ var ModelConvertMetadataSchema = object({
8452
8473
  "segmentation"
8453
8474
  ]),
8454
8475
  faceAlignment: boolean().optional(),
8455
- classMap: ClassMapDefinitionSchema.optional()
8476
+ classMap: DetectionCatalogClassMapSchema.optional()
8456
8477
  });
8457
8478
  var ConvertResultSchema = object({
8458
8479
  entry: ModelCatalogEntrySchema,
@@ -9315,7 +9336,7 @@ var AddonPageDeclarationSchema = object({
9315
9336
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9316
9337
  sectionLabel: string().optional()
9317
9338
  });
9318
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9339
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9319
9340
  var AddonHttpRouteSchema = object({
9320
9341
  method: _enum([
9321
9342
  "GET",
@@ -9550,7 +9571,7 @@ var WidgetMetadataSchema = object({
9550
9571
  defaultColumns: number().int().min(1).max(12).default(6),
9551
9572
  defaultRows: number().int().min(1).max(12).default(1)
9552
9573
  });
9553
- method(_void(), array(WidgetMetadataSchema).readonly());
9574
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9554
9575
  /**
9555
9576
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9556
9577
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11186,7 +11207,7 @@ var CustomModelDescriptorSchema = object({
11186
11207
  stepId: string(),
11187
11208
  entry: ModelCatalogEntrySchema
11188
11209
  });
11189
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11210
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11190
11211
  /**
11191
11212
  * Query filter for settings-store collections.
11192
11213
  */
@@ -11273,7 +11294,8 @@ method(object({
11273
11294
  }), _void(), { kind: "mutation" }), method(object({
11274
11295
  namespace: string().optional(),
11275
11296
  collection: string(),
11276
- filter: QueryFilterSchema.optional()
11297
+ filter: QueryFilterSchema.optional(),
11298
+ columns: array(string()).readonly().optional()
11277
11299
  }), array(SettingsRecordSchema).readonly()), method(object({
11278
11300
  namespace: string().optional(),
11279
11301
  collection: string(),
@@ -11336,46 +11358,87 @@ var EngineInfoSchema = object({
11336
11358
  kind: _enum(["relational", "vector"]),
11337
11359
  displayName: string()
11338
11360
  });
11339
- method(_void(), EngineInfoSchema), method(object({
11361
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11340
11362
  namespace: string().optional(),
11341
11363
  collection: string(),
11342
11364
  key: string()
11343
- }), unknown()), method(object({
11365
+ }), unknown(), { auth: "admin" }), method(object({
11344
11366
  namespace: string().optional(),
11345
11367
  collection: string(),
11346
11368
  key: string(),
11347
11369
  value: unknown()
11348
- }), _void(), { kind: "mutation" }), method(object({
11370
+ }), _void(), {
11371
+ kind: "mutation",
11372
+ auth: "admin"
11373
+ }), method(object({
11349
11374
  namespace: string().optional(),
11350
11375
  collection: string(),
11351
- filter: QueryFilterSchema.optional()
11352
- }), array(SettingsRecordSchema).readonly()), method(object({
11376
+ filter: QueryFilterSchema.optional(),
11377
+ /**
11378
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11379
+ *
11380
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11381
+ * was wrong — corrected 2026-08-26 after the hop map
11382
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11383
+ * There is **no Zod parse at all** between the door and the engine: the
11384
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11385
+ * field declared here reaches `SqliteSettingsBackend` either way.
11386
+ *
11387
+ * What actually lost `columns` was the THIRD declaration of this shape:
11388
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11389
+ * interface the engine destructures from. The field existed on both
11390
+ * schemas and the engine still never read it, because nothing checks a
11391
+ * registered provider against `InferProvider<cap>` —
11392
+ * `ProviderRegistration.provider` is typed `object`.
11393
+ *
11394
+ * It is declared here anyway, and must stay in step with
11395
+ * `settings-store.query`: a caller reading only the cap definitions has
11396
+ * to be able to see that this call carries a projection.
11397
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11398
+ */
11399
+ columns: array(string()).readonly().optional()
11400
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11353
11401
  namespace: string().optional(),
11354
11402
  collection: string(),
11355
11403
  record: SettingsRecordSchema
11356
- }), _void(), { kind: "mutation" }), method(object({
11404
+ }), _void(), {
11405
+ kind: "mutation",
11406
+ auth: "admin"
11407
+ }), method(object({
11357
11408
  namespace: string().optional(),
11358
11409
  collection: string(),
11359
11410
  id: string(),
11360
11411
  data: record(string(), unknown())
11361
- }), _void(), { kind: "mutation" }), method(object({
11412
+ }), _void(), {
11413
+ kind: "mutation",
11414
+ auth: "admin"
11415
+ }), method(object({
11362
11416
  namespace: string().optional(),
11363
11417
  collection: string(),
11364
11418
  key: string()
11365
- }), _void(), { kind: "mutation" }), method(object({
11419
+ }), _void(), {
11420
+ kind: "mutation",
11421
+ auth: "admin"
11422
+ }), method(object({
11366
11423
  namespace: string().optional(),
11367
11424
  collection: string(),
11368
11425
  filter: MutationFilterSchema
11369
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11426
+ }), object({ deleted: number().int() }), {
11427
+ kind: "mutation",
11428
+ auth: "admin"
11429
+ }), method(object({
11370
11430
  namespace: string().optional(),
11371
11431
  collection: string(),
11372
11432
  filter: MutationFilterSchema,
11373
11433
  data: record(string(), unknown())
11374
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11434
+ }), object({ updated: number().int() }), {
11435
+ kind: "mutation",
11436
+ auth: "admin"
11437
+ }), method(object({
11375
11438
  namespace: string().optional(),
11376
11439
  collection: string(),
11377
11440
  filter: QueryFilterSchema.optional()
11378
- }), number()), method(object({
11441
+ }), number(), { auth: "admin" }), method(object({
11379
11442
  namespace: string().optional(),
11380
11443
  collection: string(),
11381
11444
  field: string(),
@@ -11385,15 +11448,18 @@ method(_void(), EngineInfoSchema), method(object({
11385
11448
  }), array(object({
11386
11449
  bucket: number().int(),
11387
11450
  count: number().int()
11388
- })).readonly()), method(object({
11451
+ })).readonly(), { auth: "admin" }), method(object({
11389
11452
  namespace: string().optional(),
11390
11453
  collection: string()
11391
- }), boolean()), method(object({
11454
+ }), boolean(), { auth: "admin" }), method(object({
11392
11455
  namespace: string().optional(),
11393
11456
  collection: string(),
11394
11457
  columns: array(CollectionColumnSchema).readonly(),
11395
11458
  indexes: array(CollectionIndexSchema).readonly().optional()
11396
- }), _void(), { kind: "mutation" });
11459
+ }), _void(), {
11460
+ kind: "mutation",
11461
+ auth: "admin"
11462
+ });
11397
11463
  /**
11398
11464
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11399
11465
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12221,6 +12287,27 @@ var LinkedDeviceSchema = object({
12221
12287
  features: array(string()),
12222
12288
  producesTrackedEvents: boolean().optional()
12223
12289
  });
12290
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12291
+ * The batch answer needs the tag; the single-device answer already has it
12292
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12293
+ var LinkedDevicesForDeviceSchema = object({
12294
+ deviceId: number(),
12295
+ mode: LinkedDevicesModeSchema,
12296
+ devices: array(LinkedDeviceSchema)
12297
+ });
12298
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12299
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12300
+ * object literal is exactly how the three drift apart. */
12301
+ var DeviceBindingsForDeviceSchema = object({
12302
+ deviceId: number(),
12303
+ entries: array(object({
12304
+ capName: string(),
12305
+ kind: _enum(["native", "wrapped"]),
12306
+ providerAddonId: string(),
12307
+ providerNodeId: string(),
12308
+ nativeAddonId: string()
12309
+ }))
12310
+ });
12224
12311
  var SavedDeviceRowSchema = object({
12225
12312
  /** Numeric id reserved at allocateDeviceId time. */
12226
12313
  id: number(),
@@ -12446,11 +12533,25 @@ method(object({
12446
12533
  projection: _enum(["full", "slim"]).optional(),
12447
12534
  /** Return only camera devices. Filtering server-side instead of
12448
12535
  * shipping 293 rows to find 12. */
12449
- isCamera: boolean().optional()
12536
+ isCamera: boolean().optional(),
12537
+ /**
12538
+ * Return only these device ids. For the caller that already KNOWS the
12539
+ * handful it wants and needs a field the id-bearing answer does not
12540
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12541
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12542
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12543
+ * refetches on the reconcile interval, on a phone.
12544
+ *
12545
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12546
+ * keys rather than rejecting them (verified against the live hub
12547
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12548
+ * it answers today and the caller filters as it already does.
12549
+ */
12550
+ deviceIds: array(number()).optional()
12450
12551
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12451
12552
  mode: LinkedDevicesModeSchema,
12452
12553
  devices: array(LinkedDeviceSchema)
12453
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12554
+ })), 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({
12454
12555
  deviceId: number(),
12455
12556
  values: record(string(), unknown())
12456
12557
  }), object({ success: literal(true) }), {
@@ -12477,25 +12578,7 @@ method(object({
12477
12578
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12478
12579
  kind: "mutation",
12479
12580
  auth: "admin"
12480
- }), method(object({ deviceId: number() }), object({
12481
- deviceId: number(),
12482
- entries: array(object({
12483
- capName: string(),
12484
- kind: _enum(["native", "wrapped"]),
12485
- providerAddonId: string(),
12486
- providerNodeId: string(),
12487
- nativeAddonId: string()
12488
- }))
12489
- })), method(object({}), array(object({
12490
- deviceId: number(),
12491
- entries: array(object({
12492
- capName: string(),
12493
- kind: _enum(["native", "wrapped"]),
12494
- providerAddonId: string(),
12495
- providerNodeId: string(),
12496
- nativeAddonId: string()
12497
- }))
12498
- }))), method(object({
12581
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12499
12582
  deviceId: number(),
12500
12583
  capName: string(),
12501
12584
  wrapperAddonId: string(),
@@ -12666,7 +12749,7 @@ method(object({
12666
12749
  crop: _instanceof(Uint8Array),
12667
12750
  width: number(),
12668
12751
  height: number()
12669
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12752
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12670
12753
  /**
12671
12754
  * filesystem-browse — per-node capability for browsing the node's local
12672
12755
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12959,19 +13042,22 @@ method(LlmGenerateBaseInputSchema.extend({
12959
13042
  runtime: ManagedRuntimeConfigSchema,
12960
13043
  /** The managed profile's timeout, threaded by the hub provider. */
12961
13044
  timeoutMs: number().int().positive().optional()
12962
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
13045
+ }), LlmGenerateResultSchema, {
13046
+ kind: "mutation",
13047
+ auth: "admin"
13048
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12963
13049
  kind: "mutation",
12964
13050
  auth: "admin"
12965
13051
  }), method(object({}), _void(), {
12966
13052
  kind: "mutation",
12967
13053
  auth: "admin"
12968
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
13054
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12969
13055
  kind: "mutation",
12970
13056
  auth: "admin"
12971
13057
  }), method(object({ file: string() }), _void(), {
12972
13058
  kind: "mutation",
12973
13059
  auth: "admin"
12974
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
13060
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12975
13061
  /**
12976
13062
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12977
13063
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14905,12 +14991,15 @@ var NcOccupancyConditionSchema = object({
14905
14991
  * there is no second switch that can disagree with the first and every rule
14906
14992
  * authored before the decision migrates for free (`audioModeOf`):
14907
14993
  *
14908
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14909
- * classifier labels with one of them. No window, no percentage:
14910
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14911
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14912
- * the analyzer's (`classificationMinScore`, per device) a label only
14913
- * reaches this condition if the classifier was already confident enough.
14994
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14995
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14996
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14997
+ * frames is the wrong question for a classifier that labels 1–3 frames
14998
+ * per episode. The count window is the brake that drops a single-frame
14999
+ * false positive; the rule's own `throttle` cooldown is the other. The
15000
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
15001
+ * per device) — a label only reaches this condition if the classifier was
15002
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14914
15003
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14915
15004
  * the condition: at least `hitPercent`% of the samples over
14916
15005
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14937,14 +15026,22 @@ var NcOccupancyConditionSchema = object({
14937
15026
  * an operator who typed `dog` mean the same thing.
14938
15027
  */
14939
15028
  var NcAudioConditionSchema = object({
14940
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
15029
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14941
15030
  labels: array(string().min(1)).min(1).optional(),
14942
15031
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14943
15032
  dbThreshold: number().min(-96).max(0).optional(),
14944
15033
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14945
15034
  hitPercent: number().int().min(1).max(100).default(60),
14946
15035
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14947
- samplingSeconds: number().int().min(1).max(300).default(10)
15036
+ samplingSeconds: number().int().min(1).max(300).default(10),
15037
+ /**
15038
+ * LABEL MODE: how many labelled frames must land inside
15039
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
15040
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
15041
+ */
15042
+ confirmHits: number().int().min(1).max(20).optional(),
15043
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
15044
+ confirmWindowSec: number().int().min(1).max(60).optional()
14948
15045
  });
14949
15046
  /**
14950
15047
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16471,7 +16568,7 @@ var OauthIntegrationDescriptorSchema = object({
16471
16568
  */
16472
16569
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16473
16570
  });
16474
- method(_void(), OauthIntegrationDescriptorSchema);
16571
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16475
16572
  /**
16476
16573
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16477
16574
  * per-frame detections emitted by the pipeline runner into tracked
@@ -17318,6 +17415,46 @@ var RecentTracksPageSchema = object({
17318
17415
  /** Cursor for the next page, or null when this page is the last. */
17319
17416
  nextCursor: string().nullable()
17320
17417
  });
17418
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17419
+ var LIST_GROUPS_MAX_LIMIT = 100;
17420
+ var AnalyticsGroupRecordSchema = object({
17421
+ id: string(),
17422
+ deviceId: number().int(),
17423
+ openedAt: number().int(),
17424
+ closedAt: number().int(),
17425
+ timestamp: number().int(),
17426
+ memberCount: number().int(),
17427
+ memberTrackIds: array(string()).readonly(),
17428
+ className: string(),
17429
+ classes: array(string()).readonly(),
17430
+ /** Relative event-media path, or null when the group has no picture yet. */
17431
+ mediaUrl: string().nullable(),
17432
+ singleton: boolean()
17433
+ });
17434
+ var AnalyticsGroupMemberSchema = object({
17435
+ trackId: string(),
17436
+ deviceId: number().int(),
17437
+ className: string(),
17438
+ firstSeen: number().int(),
17439
+ lastSeen: number().int(),
17440
+ mediaUrl: string().nullable()
17441
+ });
17442
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17443
+ var ListGroupsQueryInput = object({
17444
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17445
+ deviceIds: array(number()),
17446
+ /** Window lower bound on `closedAt` (inclusive). */
17447
+ since: number().optional(),
17448
+ /** Window upper bound on `openedAt` (inclusive). */
17449
+ until: number().optional(),
17450
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17451
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17452
+ cursor: string().optional()
17453
+ });
17454
+ var ListGroupsPageSchema = object({
17455
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17456
+ nextCursor: string().nullable()
17457
+ });
17321
17458
  var KeyEventQueryInput = object({
17322
17459
  deviceId: number(),
17323
17460
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17393,7 +17530,9 @@ var TrackCascadeCountsSchema = object({
17393
17530
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17394
17531
  plates: number().int(),
17395
17532
  /** Per-track CLIP search vectors removed (best-effort). */
17396
- embeddings: number().int()
17533
+ embeddings: number().int(),
17534
+ /** Group membership + group rows removed with their last member (best-effort). */
17535
+ groups: number().int()
17397
17536
  });
17398
17537
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17399
17538
  var DiskReconcileCountsSchema = object({
@@ -17539,7 +17678,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17539
17678
  * stationary registry). Default false: the timeline lists passages,
17540
17679
  * not parking records (operator decision, 2026-08-15). */
17541
17680
  includeStationary: boolean().optional()
17542
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17681
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17682
+ deviceId: number(),
17683
+ groupId: string().min(1)
17684
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17543
17685
  kind: "mutation",
17544
17686
  auth: "admin"
17545
17687
  }), 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({
@@ -17621,6 +17763,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17621
17763
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17622
17764
  kind: "mutation",
17623
17765
  auth: "admin"
17766
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17767
+ kind: "mutation",
17768
+ auth: "admin"
17769
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17770
+ kind: "query",
17771
+ auth: "admin"
17772
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17773
+ kind: "mutation",
17774
+ auth: "admin"
17624
17775
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17625
17776
  kind: "query",
17626
17777
  auth: "admin"
@@ -17775,6 +17926,11 @@ object({
17775
17926
  "jpeg"
17776
17927
  ])
17777
17928
  });
17929
+ /**
17930
+ * Process-local frame identity. It is serializable so it can ride an in-process
17931
+ * capability call, but `registryId` deliberately prevents resolution in any
17932
+ * other process or execution group.
17933
+ */
17778
17934
  var FrameRefSchema = object({
17779
17935
  registryId: string().min(1),
17780
17936
  id: string().min(1),
@@ -17849,7 +18005,8 @@ var PipelineModelOptionSchema = object({
17849
18005
  sizeMB: number()
17850
18006
  })),
17851
18007
  group: ModelVariantGroupSchema.optional(),
17852
- legacy: boolean().optional()
18008
+ legacy: boolean().optional(),
18009
+ provider: ModelProviderIdSchema.optional()
17853
18010
  });
17854
18011
  var ConfigFieldBridge = custom$2();
17855
18012
  var PipelineAddonSchemaSchema = object({
@@ -20083,7 +20240,7 @@ method(object({
20083
20240
  * linking rather than produce an eternal token.
20084
20241
  */
20085
20242
  ttlSec: union([number().int().positive(), literal("never")]).optional()
20086
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
20243
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
20087
20244
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20088
20245
  providerId: string().min(1),
20089
20246
  displayName: string().min(1),
@@ -20178,10 +20335,13 @@ var EvictResultSchema = object({
20178
20335
  /** True when the provider has nothing left it is willing to drop on this location. */
20179
20336
  exhausted: boolean()
20180
20337
  });
20181
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20338
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
20182
20339
  locationId: string(),
20183
20340
  targetBytes: number().int().positive()
20184
- }), EvictResultSchema, { kind: "mutation" });
20341
+ }), EvictResultSchema, {
20342
+ kind: "mutation",
20343
+ auth: "admin"
20344
+ });
20185
20345
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
20186
20346
  kind: "mutation",
20187
20347
  auth: "admin"
@@ -20241,26 +20401,50 @@ var ReadChunkInputSchema = object({
20241
20401
  length: number()
20242
20402
  });
20243
20403
  var EndDownloadInputSchema = object({ downloadId: string() });
20244
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20404
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20245
20405
  location: StorageLocationSchema,
20246
20406
  relativePath: string()
20247
- }), string()), method(object({
20407
+ }), string(), { auth: "admin" }), method(object({
20248
20408
  location: StorageLocationSchema,
20249
20409
  relativePath: string(),
20250
20410
  data: _instanceof(Uint8Array)
20251
- }), _void(), { kind: "mutation" }), method(object({
20411
+ }), _void(), {
20412
+ kind: "mutation",
20413
+ auth: "admin"
20414
+ }), method(object({
20252
20415
  location: StorageLocationSchema,
20253
20416
  relativePath: string()
20254
- }), _instanceof(Uint8Array)), method(object({
20417
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20255
20418
  location: StorageLocationSchema,
20256
20419
  relativePath: string()
20257
- }), boolean()), method(object({
20420
+ }), boolean(), { auth: "admin" }), method(object({
20258
20421
  location: StorageLocationSchema,
20259
20422
  prefix: string().optional()
20260
- }), array(string()).readonly()), method(object({
20423
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20261
20424
  location: StorageLocationSchema,
20262
20425
  relativePath: string()
20263
- }), _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" });
20426
+ }), _void(), {
20427
+ kind: "mutation",
20428
+ auth: "admin"
20429
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20430
+ kind: "mutation",
20431
+ auth: "admin"
20432
+ }), method(WriteChunkInputSchema, _void(), {
20433
+ kind: "mutation",
20434
+ auth: "admin"
20435
+ }), method(FinalizeUploadInputSchema, _void(), {
20436
+ kind: "mutation",
20437
+ auth: "admin"
20438
+ }), method(AbortUploadInputSchema, _void(), {
20439
+ kind: "mutation",
20440
+ auth: "admin"
20441
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20442
+ kind: "mutation",
20443
+ auth: "admin"
20444
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20445
+ kind: "mutation",
20446
+ auth: "admin"
20447
+ });
20264
20448
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20265
20449
  var ProfileSettingsSchemaBridge = unknown().nullable();
20266
20450
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20518,7 +20702,8 @@ method(object({
20518
20702
  access: "create"
20519
20703
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20520
20704
  kind: "mutation",
20521
- access: "view"
20705
+ access: "view",
20706
+ auth: "admin"
20522
20707
  }), method(object({
20523
20708
  /** Required — the user the assertion belongs to (verified). */
20524
20709
  userId: string(),
@@ -20526,10 +20711,12 @@ method(object({
20526
20711
  response: record(string(), unknown())
20527
20712
  }), object({ verified: boolean() }), {
20528
20713
  kind: "mutation",
20529
- access: "view"
20714
+ access: "view",
20715
+ auth: "admin"
20530
20716
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20531
20717
  kind: "mutation",
20532
- access: "view"
20718
+ access: "view",
20719
+ auth: "admin"
20533
20720
  }), method(object({
20534
20721
  /** AuthenticationResponseJSON from the browser. */
20535
20722
  response: record(string(), unknown()) }), object({
@@ -20537,7 +20724,8 @@ response: record(string(), unknown()) }), object({
20537
20724
  userId: string().nullable()
20538
20725
  }), {
20539
20726
  kind: "mutation",
20540
- access: "view"
20727
+ access: "view",
20728
+ auth: "admin"
20541
20729
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20542
20730
  userId: string(),
20543
20731
  credentialId: string()
@@ -20709,7 +20897,19 @@ var VectorStatsResultSchema = object({
20709
20897
  /** False when the backend ranks approximately. */
20710
20898
  exact: boolean()
20711
20899
  });
20712
- 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);
20900
+ method(VectorDeclareIndexInputSchema, _void(), {
20901
+ kind: "mutation",
20902
+ auth: "admin"
20903
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20904
+ kind: "mutation",
20905
+ auth: "admin"
20906
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20907
+ kind: "mutation",
20908
+ auth: "admin"
20909
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20910
+ kind: "mutation",
20911
+ auth: "admin"
20912
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20713
20913
  var ClipSchema = object({
20714
20914
  /** Opaque, provider-namespaced id. The default provider encodes the time
20715
20915
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -23162,7 +23362,27 @@ var MediaFileLiteSchema$1 = object({
23162
23362
  sizeBytes: number(),
23163
23363
  timestamp: number()
23164
23364
  });
23165
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23365
+ method(object({
23366
+ /**
23367
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23368
+ *
23369
+ * Default `false`, the same inversion `listRecentFaces` and
23370
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23371
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23372
+ * on the live hub the same day: four identities cost 40,979 B with the
23373
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23374
+ * four times and the viewer holds at `staleTime: 30_000`.
23375
+ *
23376
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23377
+ * the `event-media` plane serves that key `immutable` with an ETag.
23378
+ *
23379
+ * **This is an INPUT field, so it does not reach the addon until the
23380
+ * next train** — the hub router validates cap inputs against its own
23381
+ * compiled Zod and strips a key it does not know. Until then the
23382
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23383
+ * is what ships, and the opt-in becomes reachable when the train lands.
23384
+ */
23385
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23166
23386
  kind: "mutation",
23167
23387
  auth: "admin"
23168
23388
  }), method(object({
@@ -26050,7 +26270,14 @@ var PlateInfoSchema = object({
26050
26270
  plateBbox: BoundingBoxSchema.optional(),
26051
26271
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
26052
26272
  keyFrameMediaKey: string().optional(),
26053
- base64: string().optional()
26273
+ base64: string().optional(),
26274
+ /**
26275
+ * Same crop as a data-plane URL, always present when the plate has a stored
26276
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26277
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26278
+ * left at its `true` default.
26279
+ */
26280
+ cropUrl: string().optional()
26054
26281
  });
26055
26282
  var MediaFileLiteSchema = object({
26056
26283
  key: string(),
@@ -26068,14 +26295,34 @@ var PlateClusterSchema = object({
26068
26295
  });
26069
26296
  method(object({
26070
26297
  deviceId: number().int().optional(),
26071
- limit: number().int().positive().optional()
26298
+ limit: number().int().positive().optional(),
26299
+ /**
26300
+ * Inline the base64 crop on every row. Default `true` — the existing
26301
+ * behaviour, kept so no caller breaks.
26302
+ *
26303
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26304
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26305
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26306
+ * metadata without them — and the browser then caches the images.
26307
+ *
26308
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26309
+ * plates were the one gallery list left without it.
26310
+ *
26311
+ * **This is an INPUT field, so it does not reach the addon until the
26312
+ * next train.** The hub router validates cap inputs against its own
26313
+ * compiled Zod and strips a key it does not know. Until the train
26314
+ * ships, sending `false` is harmless and keeps the crops inline.
26315
+ */
26316
+ includeCrops: boolean().optional()
26072
26317
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
26073
26318
  deviceId: number().int(),
26074
26319
  trackId: string()
26075
26320
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
26076
26321
  text: string().min(1),
26077
26322
  maxDistance: number().int().min(0).optional(),
26078
- limit: number().int().positive().optional()
26323
+ limit: number().int().positive().optional(),
26324
+ /** See `listPlates.includeCrops`. Default `true`. */
26325
+ includeCrops: boolean().optional()
26079
26326
  }), array(PlateInfoSchema).readonly()), method(object({
26080
26327
  maxDistance: number().int().min(0).optional(),
26081
26328
  minClusterSize: number().int().min(2).optional(),
@@ -26089,7 +26336,13 @@ method(object({
26089
26336
  }), method(object({ plateId: string() }), _void(), {
26090
26337
  kind: "mutation",
26091
26338
  auth: "admin"
26092
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26339
+ }), method(object({
26340
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26341
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26342
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26343
+ * INPUT field: stripped by the hub router until the train ships, which
26344
+ * resolves to `false` and is exactly the intended default. */
26345
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26093
26346
  kind: "mutation",
26094
26347
  auth: "admin"
26095
26348
  }), method(object({
@@ -32026,6 +32279,12 @@ Object.freeze({
32026
32279
  addonId: null,
32027
32280
  access: "view"
32028
32281
  },
32282
+ "deviceManager.getBindingsBatch": {
32283
+ capName: "device-manager",
32284
+ capScope: "system",
32285
+ addonId: null,
32286
+ access: "view"
32287
+ },
32029
32288
  "deviceManager.getChildren": {
32030
32289
  capName: "device-manager",
32031
32290
  capScope: "system",
@@ -32086,6 +32345,12 @@ Object.freeze({
32086
32345
  addonId: null,
32087
32346
  access: "view"
32088
32347
  },
32348
+ "deviceManager.getLinkedDevicesBatch": {
32349
+ capName: "device-manager",
32350
+ capScope: "system",
32351
+ addonId: null,
32352
+ access: "view"
32353
+ },
32089
32354
  "deviceManager.getRoleDisplayDefaults": {
32090
32355
  capName: "device-manager",
32091
32356
  capScope: "system",
@@ -33790,6 +34055,12 @@ Object.freeze({
33790
34055
  addonId: null,
33791
34056
  access: "create"
33792
34057
  },
34058
+ "pipelineAnalytics.cancelRelocateMedia": {
34059
+ capName: "pipeline-analytics",
34060
+ capScope: "device",
34061
+ addonId: null,
34062
+ access: "create"
34063
+ },
33793
34064
  "pipelineAnalytics.cancelStorageMigrationMove": {
33794
34065
  capName: "pipeline-analytics",
33795
34066
  capScope: "device",
@@ -33856,6 +34127,12 @@ Object.freeze({
33856
34127
  addonId: null,
33857
34128
  access: "view"
33858
34129
  },
34130
+ "pipelineAnalytics.getGroup": {
34131
+ capName: "pipeline-analytics",
34132
+ capScope: "device",
34133
+ addonId: null,
34134
+ access: "view"
34135
+ },
33859
34136
  "pipelineAnalytics.getKeyEvents": {
33860
34137
  capName: "pipeline-analytics",
33861
34138
  capScope: "device",
@@ -33940,6 +34217,12 @@ Object.freeze({
33940
34217
  addonId: null,
33941
34218
  access: "view"
33942
34219
  },
34220
+ "pipelineAnalytics.listGroups": {
34221
+ capName: "pipeline-analytics",
34222
+ capScope: "device",
34223
+ addonId: null,
34224
+ access: "view"
34225
+ },
33943
34226
  "pipelineAnalytics.listOpsLog": {
33944
34227
  capName: "pipeline-analytics",
33945
34228
  capScope: "device",
@@ -33952,6 +34235,12 @@ Object.freeze({
33952
34235
  addonId: null,
33953
34236
  access: "view"
33954
34237
  },
34238
+ "pipelineAnalytics.listRelocateMediaJobs": {
34239
+ capName: "pipeline-analytics",
34240
+ capScope: "device",
34241
+ addonId: null,
34242
+ access: "view"
34243
+ },
33955
34244
  "pipelineAnalytics.listRetrainAnnotations": {
33956
34245
  capName: "pipeline-analytics",
33957
34246
  capScope: "device",
@@ -34030,6 +34319,12 @@ Object.freeze({
34030
34319
  addonId: null,
34031
34320
  access: "create"
34032
34321
  },
34322
+ "pipelineAnalytics.relocateMedia": {
34323
+ capName: "pipeline-analytics",
34324
+ capScope: "device",
34325
+ addonId: null,
34326
+ access: "create"
34327
+ },
34033
34328
  "pipelineAnalytics.restageRetrainTrack": {
34034
34329
  capName: "pipeline-analytics",
34035
34330
  capScope: "device",
@@ -36721,6 +37016,11 @@ Object.freeze({
36721
37016
  form: "single",
36722
37017
  optional: false
36723
37018
  }],
37019
+ "deviceManager.getBindingsBatch": [{
37020
+ name: "deviceIds",
37021
+ form: "array",
37022
+ optional: false
37023
+ }],
36724
37024
  "deviceManager.getChildren": [{
36725
37025
  name: "parentDeviceId",
36726
37026
  form: "single",
@@ -36766,6 +37066,11 @@ Object.freeze({
36766
37066
  form: "single",
36767
37067
  optional: false
36768
37068
  }],
37069
+ "deviceManager.getLinkedDevicesBatch": [{
37070
+ name: "deviceIds",
37071
+ form: "array",
37072
+ optional: false
37073
+ }],
36769
37074
  "deviceManager.getSettingsSchema": [{
36770
37075
  name: "deviceId",
36771
37076
  form: "single",
@@ -36786,6 +37091,11 @@ Object.freeze({
36786
37091
  form: "single",
36787
37092
  optional: false
36788
37093
  }],
37094
+ "deviceManager.listAll": [{
37095
+ name: "deviceIds",
37096
+ form: "array",
37097
+ optional: true
37098
+ }],
36789
37099
  "deviceManager.loadConfig": [{
36790
37100
  name: "deviceId",
36791
37101
  form: "single",
@@ -37359,6 +37669,11 @@ Object.freeze({
37359
37669
  form: "single",
37360
37670
  optional: false
37361
37671
  }],
37672
+ "pipelineAnalytics.getGroup": [{
37673
+ name: "deviceId",
37674
+ form: "single",
37675
+ optional: false
37676
+ }],
37362
37677
  "pipelineAnalytics.getKeyEvents": [{
37363
37678
  name: "deviceId",
37364
37679
  form: "single",
@@ -37414,6 +37729,11 @@ Object.freeze({
37414
37729
  form: "array",
37415
37730
  optional: false
37416
37731
  }],
37732
+ "pipelineAnalytics.listGroups": [{
37733
+ name: "deviceIds",
37734
+ form: "array",
37735
+ optional: false
37736
+ }],
37417
37737
  "pipelineAnalytics.listOpsLog": [{
37418
37738
  name: "deviceId",
37419
37739
  form: "single",