@camstack/addon-provider-homeassistant 1.2.40 → 1.2.42

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.
@@ -5800,6 +5800,13 @@ var BaseAddon = class {
5800
5800
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5801
5801
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5802
5802
  _registeredCapNames = [];
5803
+ /**
5804
+ * True only after `readAddonStore` actually answered. Constructor
5805
+ * defaults look like stored config when the store is down — a forked
5806
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5807
+ * mode, 2026-08-25) is not "the operator chose this".
5808
+ */
5809
+ settingsStoreReady = false;
5803
5810
  /** Default config values. Provided via constructor. */
5804
5811
  defaults;
5805
5812
  constructor(defaults) {
@@ -6200,7 +6207,9 @@ var BaseAddon = class {
6200
6207
  ];
6201
6208
  let lastErr;
6202
6209
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6203
- return await settings.readAddonStore() ?? {};
6210
+ const stored = await settings.readAddonStore() ?? {};
6211
+ this.settingsStoreReady = true;
6212
+ return stored;
6204
6213
  } catch (err) {
6205
6214
  lastErr = err;
6206
6215
  const msg = err instanceof Error ? err.message : String(err);
@@ -6208,6 +6217,7 @@ var BaseAddon = class {
6208
6217
  if (attempt === delaysMs.length) break;
6209
6218
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6210
6219
  }
6220
+ this.settingsStoreReady = false;
6211
6221
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6212
6222
  return {};
6213
6223
  }
@@ -6619,7 +6629,7 @@ function method(input, output, options) {
6619
6629
  input,
6620
6630
  output,
6621
6631
  kind: options?.kind ?? "query",
6622
- auth: options?.auth ?? "protected",
6632
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6623
6633
  ...options?.access !== void 0 ? { access: options.access } : {},
6624
6634
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6625
6635
  timeoutMs: options?.timeoutMs
@@ -6643,7 +6653,7 @@ function event(data) {
6643
6653
  }
6644
6654
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6645
6655
  var VersionOutputSchema$1 = object({ version: string() });
6646
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6656
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6647
6657
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6648
6658
  DeviceType["Camera"] = "camera";
6649
6659
  DeviceType["Hub"] = "hub";
@@ -6964,7 +6974,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6964
6974
  }({});
6965
6975
  var StaticDirOutputSchema = object({ staticDir: string() });
6966
6976
  var VersionOutputSchema = object({ version: string() });
6967
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6977
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6968
6978
  /**
6969
6979
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6970
6980
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7709,24 +7719,6 @@ var RecordingRetentionSchema = object({
7709
7719
  maxSizeGb: number().min(0).optional()
7710
7720
  });
7711
7721
  /**
7712
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7713
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7714
- * previews at. Five graduated steps; absent on a config = `standard` (the
7715
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7716
- *
7717
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7718
- * Each window's index sidecar carries its own tile dims, so a camera whose
7719
- * preset changed over time renders every historical window at the dims it was
7720
- * written with.
7721
- */
7722
- var ScrubThumbnailPresetSchema = _enum([
7723
- "minimal",
7724
- "low",
7725
- "standard",
7726
- "high",
7727
- "max"
7728
- ]);
7729
- /**
7730
7722
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7731
7723
  *
7732
7724
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7734,7 +7726,11 @@ var ScrubThumbnailPresetSchema = _enum([
7734
7726
  * other field is a storage knob (profiles, segment length, retention, scrub).
7735
7727
  *
7736
7728
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7737
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7729
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7730
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7731
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7732
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7733
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7738
7734
  * A stale caller must fail loudly — silently stripping its legacy intent would
7739
7735
  * persist a band-less config, i.e. silently stop recording the camera.
7740
7736
  */
@@ -7757,14 +7753,7 @@ var RecordingConfigSchema = object({
7757
7753
  * "off" is the absence of a covering band, never a band value.
7758
7754
  */
7759
7755
  bands: array(RecordingBandSchema).default([]),
7760
- retention: RecordingRetentionSchema.optional(),
7761
- /**
7762
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7763
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7764
- * windows only — existing sheets are immutable, and each window's index
7765
- * carries its own tile dims so mixed-preset history renders correctly.
7766
- */
7767
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7756
+ retention: RecordingRetentionSchema.optional()
7768
7757
  }).strict();
7769
7758
  /**
7770
7759
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7840,10 +7829,11 @@ var RelocateFootageInputSchema = object({
7840
7829
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7841
7830
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7842
7831
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7843
- var StorageMigrationMediaMoveInputSchema = object({
7832
+ var RelocateMediaInputSchema = object({
7844
7833
  toLocationId: string(),
7845
7834
  throttleMbps: number().min(1).max(1e3).optional()
7846
- }).extend({ leaseId: string().min(1) });
7835
+ });
7836
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7847
7837
  /** The independently selectable logical storage classes. `recordings`
7848
7838
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7849
7839
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8138,7 +8128,26 @@ var LabelDefinitionSchema = object({
8138
8128
  description: string().optional(),
8139
8129
  icon: string().optional()
8140
8130
  });
8141
- var ClassMapDefinitionSchema = object({
8131
+ /**
8132
+ * Wire schema for a per-model CATALOG classMap override
8133
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8134
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8135
+ * detection pipeline executor actually routes.
8136
+ *
8137
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8138
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8139
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8140
+ * enum) — the two used to share the name `ClassMapDefinition`/
8141
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8142
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8143
+ * are not: it is two different concepts colliding on a name. Keep this type
8144
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8145
+ * would either narrow every `ClassMapDefinition` consumer to the four
8146
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8147
+ * schema exists for (see the "rejects a classMap whose target is not a
8148
+ * detection macro" test in `model-catalog-schema.test.ts`).
8149
+ */
8150
+ var DetectionCatalogClassMapSchema = object({
8142
8151
  mapping: record(string(), _enum([
8143
8152
  "person",
8144
8153
  "vehicle",
@@ -8230,6 +8239,12 @@ var ModelVariantGroupSchema = object({
8230
8239
  */
8231
8240
  resolution: number().int().positive().optional()
8232
8241
  });
8242
+ var ModelProviderIdSchema = _enum([
8243
+ "camstack",
8244
+ "frigate",
8245
+ "scrypted",
8246
+ "custom"
8247
+ ]);
8233
8248
  var ModelCatalogEntrySchema = object({
8234
8249
  id: string(),
8235
8250
  name: string(),
@@ -8327,11 +8342,17 @@ var ModelCatalogEntrySchema = object({
8327
8342
  */
8328
8343
  group: ModelVariantGroupSchema.optional(),
8329
8344
  /**
8345
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8346
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8347
+ * persisted before this field existed (`inferModelProvider` fills those).
8348
+ */
8349
+ provider: ModelProviderIdSchema.optional(),
8350
+ /**
8330
8351
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8331
8352
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8332
8353
  * labels already ARE the CamStack macros (Scrypted identity map).
8333
8354
  */
8334
- classMap: ClassMapDefinitionSchema.optional()
8355
+ classMap: DetectionCatalogClassMapSchema.optional()
8335
8356
  });
8336
8357
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8337
8358
  format: literal("openvino"),
@@ -8361,7 +8382,7 @@ var ModelConvertMetadataSchema = object({
8361
8382
  "segmentation"
8362
8383
  ]),
8363
8384
  faceAlignment: boolean().optional(),
8364
- classMap: ClassMapDefinitionSchema.optional()
8385
+ classMap: DetectionCatalogClassMapSchema.optional()
8365
8386
  });
8366
8387
  var ConvertResultSchema = object({
8367
8388
  entry: ModelCatalogEntrySchema,
@@ -9224,7 +9245,7 @@ var AddonPageDeclarationSchema = object({
9224
9245
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9225
9246
  sectionLabel: string().optional()
9226
9247
  });
9227
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9248
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9228
9249
  var AddonHttpRouteSchema = object({
9229
9250
  method: _enum([
9230
9251
  "GET",
@@ -9478,7 +9499,7 @@ var WidgetMetadataSchema = object({
9478
9499
  defaultColumns: number().int().min(1).max(12).default(6),
9479
9500
  defaultRows: number().int().min(1).max(12).default(1)
9480
9501
  });
9481
- method(_void(), array(WidgetMetadataSchema).readonly());
9502
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9482
9503
  /**
9483
9504
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9484
9505
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11151,7 +11172,7 @@ var CustomModelDescriptorSchema = object({
11151
11172
  stepId: string(),
11152
11173
  entry: ModelCatalogEntrySchema
11153
11174
  });
11154
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11175
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11155
11176
  /**
11156
11177
  * Query filter for settings-store collections.
11157
11178
  */
@@ -11238,7 +11259,8 @@ method(object({
11238
11259
  }), _void(), { kind: "mutation" }), method(object({
11239
11260
  namespace: string().optional(),
11240
11261
  collection: string(),
11241
- filter: QueryFilterSchema.optional()
11262
+ filter: QueryFilterSchema.optional(),
11263
+ columns: array(string()).readonly().optional()
11242
11264
  }), array(SettingsRecordSchema).readonly()), method(object({
11243
11265
  namespace: string().optional(),
11244
11266
  collection: string(),
@@ -11301,46 +11323,87 @@ var EngineInfoSchema = object({
11301
11323
  kind: _enum(["relational", "vector"]),
11302
11324
  displayName: string()
11303
11325
  });
11304
- method(_void(), EngineInfoSchema), method(object({
11326
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11305
11327
  namespace: string().optional(),
11306
11328
  collection: string(),
11307
11329
  key: string()
11308
- }), unknown()), method(object({
11330
+ }), unknown(), { auth: "admin" }), method(object({
11309
11331
  namespace: string().optional(),
11310
11332
  collection: string(),
11311
11333
  key: string(),
11312
11334
  value: unknown()
11313
- }), _void(), { kind: "mutation" }), method(object({
11335
+ }), _void(), {
11336
+ kind: "mutation",
11337
+ auth: "admin"
11338
+ }), method(object({
11314
11339
  namespace: string().optional(),
11315
11340
  collection: string(),
11316
- filter: QueryFilterSchema.optional()
11317
- }), array(SettingsRecordSchema).readonly()), method(object({
11341
+ filter: QueryFilterSchema.optional(),
11342
+ /**
11343
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11344
+ *
11345
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11346
+ * was wrong — corrected 2026-08-26 after the hop map
11347
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11348
+ * There is **no Zod parse at all** between the door and the engine: the
11349
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11350
+ * field declared here reaches `SqliteSettingsBackend` either way.
11351
+ *
11352
+ * What actually lost `columns` was the THIRD declaration of this shape:
11353
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11354
+ * interface the engine destructures from. The field existed on both
11355
+ * schemas and the engine still never read it, because nothing checks a
11356
+ * registered provider against `InferProvider<cap>` —
11357
+ * `ProviderRegistration.provider` is typed `object`.
11358
+ *
11359
+ * It is declared here anyway, and must stay in step with
11360
+ * `settings-store.query`: a caller reading only the cap definitions has
11361
+ * to be able to see that this call carries a projection.
11362
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11363
+ */
11364
+ columns: array(string()).readonly().optional()
11365
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11318
11366
  namespace: string().optional(),
11319
11367
  collection: string(),
11320
11368
  record: SettingsRecordSchema
11321
- }), _void(), { kind: "mutation" }), method(object({
11369
+ }), _void(), {
11370
+ kind: "mutation",
11371
+ auth: "admin"
11372
+ }), method(object({
11322
11373
  namespace: string().optional(),
11323
11374
  collection: string(),
11324
11375
  id: string(),
11325
11376
  data: record(string(), unknown())
11326
- }), _void(), { kind: "mutation" }), method(object({
11377
+ }), _void(), {
11378
+ kind: "mutation",
11379
+ auth: "admin"
11380
+ }), method(object({
11327
11381
  namespace: string().optional(),
11328
11382
  collection: string(),
11329
11383
  key: string()
11330
- }), _void(), { kind: "mutation" }), method(object({
11384
+ }), _void(), {
11385
+ kind: "mutation",
11386
+ auth: "admin"
11387
+ }), method(object({
11331
11388
  namespace: string().optional(),
11332
11389
  collection: string(),
11333
11390
  filter: MutationFilterSchema
11334
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11391
+ }), object({ deleted: number().int() }), {
11392
+ kind: "mutation",
11393
+ auth: "admin"
11394
+ }), method(object({
11335
11395
  namespace: string().optional(),
11336
11396
  collection: string(),
11337
11397
  filter: MutationFilterSchema,
11338
11398
  data: record(string(), unknown())
11339
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11399
+ }), object({ updated: number().int() }), {
11400
+ kind: "mutation",
11401
+ auth: "admin"
11402
+ }), method(object({
11340
11403
  namespace: string().optional(),
11341
11404
  collection: string(),
11342
11405
  filter: QueryFilterSchema.optional()
11343
- }), number()), method(object({
11406
+ }), number(), { auth: "admin" }), method(object({
11344
11407
  namespace: string().optional(),
11345
11408
  collection: string(),
11346
11409
  field: string(),
@@ -11350,15 +11413,18 @@ method(_void(), EngineInfoSchema), method(object({
11350
11413
  }), array(object({
11351
11414
  bucket: number().int(),
11352
11415
  count: number().int()
11353
- })).readonly()), method(object({
11416
+ })).readonly(), { auth: "admin" }), method(object({
11354
11417
  namespace: string().optional(),
11355
11418
  collection: string()
11356
- }), boolean()), method(object({
11419
+ }), boolean(), { auth: "admin" }), method(object({
11357
11420
  namespace: string().optional(),
11358
11421
  collection: string(),
11359
11422
  columns: array(CollectionColumnSchema).readonly(),
11360
11423
  indexes: array(CollectionIndexSchema).readonly().optional()
11361
- }), _void(), { kind: "mutation" });
11424
+ }), _void(), {
11425
+ kind: "mutation",
11426
+ auth: "admin"
11427
+ });
11362
11428
  /**
11363
11429
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11364
11430
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12273,6 +12339,27 @@ var LinkedDeviceSchema = object({
12273
12339
  features: array(string()),
12274
12340
  producesTrackedEvents: boolean().optional()
12275
12341
  });
12342
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12343
+ * The batch answer needs the tag; the single-device answer already has it
12344
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12345
+ var LinkedDevicesForDeviceSchema = object({
12346
+ deviceId: number(),
12347
+ mode: LinkedDevicesModeSchema,
12348
+ devices: array(LinkedDeviceSchema)
12349
+ });
12350
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12351
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12352
+ * object literal is exactly how the three drift apart. */
12353
+ var DeviceBindingsForDeviceSchema = object({
12354
+ deviceId: number(),
12355
+ entries: array(object({
12356
+ capName: string(),
12357
+ kind: _enum(["native", "wrapped"]),
12358
+ providerAddonId: string(),
12359
+ providerNodeId: string(),
12360
+ nativeAddonId: string()
12361
+ }))
12362
+ });
12276
12363
  var SavedDeviceRowSchema = object({
12277
12364
  /** Numeric id reserved at allocateDeviceId time. */
12278
12365
  id: number(),
@@ -12498,11 +12585,25 @@ method(object({
12498
12585
  projection: _enum(["full", "slim"]).optional(),
12499
12586
  /** Return only camera devices. Filtering server-side instead of
12500
12587
  * shipping 293 rows to find 12. */
12501
- isCamera: boolean().optional()
12588
+ isCamera: boolean().optional(),
12589
+ /**
12590
+ * Return only these device ids. For the caller that already KNOWS the
12591
+ * handful it wants and needs a field the id-bearing answer does not
12592
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12593
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12594
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12595
+ * refetches on the reconcile interval, on a phone.
12596
+ *
12597
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12598
+ * keys rather than rejecting them (verified against the live hub
12599
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12600
+ * it answers today and the caller filters as it already does.
12601
+ */
12602
+ deviceIds: array(number()).optional()
12502
12603
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12503
12604
  mode: LinkedDevicesModeSchema,
12504
12605
  devices: array(LinkedDeviceSchema)
12505
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12606
+ })), 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({
12506
12607
  deviceId: number(),
12507
12608
  values: record(string(), unknown())
12508
12609
  }), object({ success: literal(true) }), {
@@ -12529,25 +12630,7 @@ method(object({
12529
12630
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12530
12631
  kind: "mutation",
12531
12632
  auth: "admin"
12532
- }), method(object({ deviceId: number() }), object({
12533
- deviceId: number(),
12534
- entries: array(object({
12535
- capName: string(),
12536
- kind: _enum(["native", "wrapped"]),
12537
- providerAddonId: string(),
12538
- providerNodeId: string(),
12539
- nativeAddonId: string()
12540
- }))
12541
- })), method(object({}), array(object({
12542
- deviceId: number(),
12543
- entries: array(object({
12544
- capName: string(),
12545
- kind: _enum(["native", "wrapped"]),
12546
- providerAddonId: string(),
12547
- providerNodeId: string(),
12548
- nativeAddonId: string()
12549
- }))
12550
- }))), method(object({
12633
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12551
12634
  deviceId: number(),
12552
12635
  capName: string(),
12553
12636
  wrapperAddonId: string(),
@@ -12718,7 +12801,7 @@ method(object({
12718
12801
  crop: _instanceof(Uint8Array),
12719
12802
  width: number(),
12720
12803
  height: number()
12721
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12804
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12722
12805
  /**
12723
12806
  * filesystem-browse — per-node capability for browsing the node's local
12724
12807
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -13011,19 +13094,22 @@ method(LlmGenerateBaseInputSchema.extend({
13011
13094
  runtime: ManagedRuntimeConfigSchema,
13012
13095
  /** The managed profile's timeout, threaded by the hub provider. */
13013
13096
  timeoutMs: number().int().positive().optional()
13014
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
13097
+ }), LlmGenerateResultSchema, {
13098
+ kind: "mutation",
13099
+ auth: "admin"
13100
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
13015
13101
  kind: "mutation",
13016
13102
  auth: "admin"
13017
13103
  }), method(object({}), _void(), {
13018
13104
  kind: "mutation",
13019
13105
  auth: "admin"
13020
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
13106
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
13021
13107
  kind: "mutation",
13022
13108
  auth: "admin"
13023
13109
  }), method(object({ file: string() }), _void(), {
13024
13110
  kind: "mutation",
13025
13111
  auth: "admin"
13026
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
13112
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
13027
13113
  /**
13028
13114
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
13029
13115
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14971,12 +15057,15 @@ var NcOccupancyConditionSchema = object({
14971
15057
  * there is no second switch that can disagree with the first and every rule
14972
15058
  * authored before the decision migrates for free (`audioModeOf`):
14973
15059
  *
14974
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14975
- * classifier labels with one of them. No window, no percentage:
14976
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14977
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14978
- * the analyzer's (`classificationMinScore`, per device) a label only
14979
- * reaches this condition if the classifier was already confident enough.
15060
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
15061
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
15062
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
15063
+ * frames is the wrong question for a classifier that labels 1–3 frames
15064
+ * per episode. The count window is the brake that drops a single-frame
15065
+ * false positive; the rule's own `throttle` cooldown is the other. The
15066
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
15067
+ * per device) — a label only reaches this condition if the classifier was
15068
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14980
15069
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14981
15070
  * the condition: at least `hitPercent`% of the samples over
14982
15071
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -15003,14 +15092,22 @@ var NcOccupancyConditionSchema = object({
15003
15092
  * an operator who typed `dog` mean the same thing.
15004
15093
  */
15005
15094
  var NcAudioConditionSchema = object({
15006
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
15095
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
15007
15096
  labels: array(string().min(1)).min(1).optional(),
15008
15097
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15009
15098
  dbThreshold: number().min(-96).max(0).optional(),
15010
15099
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15011
15100
  hitPercent: number().int().min(1).max(100).default(60),
15012
15101
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15013
- samplingSeconds: number().int().min(1).max(300).default(10)
15102
+ samplingSeconds: number().int().min(1).max(300).default(10),
15103
+ /**
15104
+ * LABEL MODE: how many labelled frames must land inside
15105
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
15106
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
15107
+ */
15108
+ confirmHits: number().int().min(1).max(20).optional(),
15109
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
15110
+ confirmWindowSec: number().int().min(1).max(60).optional()
15014
15111
  });
15015
15112
  /**
15016
15113
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16542,7 +16639,17 @@ var oauthIntegrationCapability = {
16542
16639
  scope: "system",
16543
16640
  mode: "collection",
16544
16641
  internal: true,
16545
- methods: { getDescriptor: method(_void(), OauthIntegrationDescriptorSchema) }
16642
+ methods: {
16643
+ /**
16644
+ * `internal: true` did not gate the mount (see the 2026-08-26 note on
16645
+ * `data-store-provider`) — `getDescriptor` was reachable on the AppRouter
16646
+ * by ANY authenticated session at the default `auth: 'protected'`. The
16647
+ * real caller is `/api/oauth2/authorize` and `/api/oauth2/integrations`
16648
+ * (`oauth2-routes.ts`), which resolve the provider directly off the
16649
+ * capability registry — never through tRPC. `auth: 'admin'` closes the
16650
+ * tRPC surface without touching that path.
16651
+ */
16652
+ getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
16546
16653
  };
16547
16654
  /**
16548
16655
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
@@ -17390,6 +17497,46 @@ var RecentTracksPageSchema = object({
17390
17497
  /** Cursor for the next page, or null when this page is the last. */
17391
17498
  nextCursor: string().nullable()
17392
17499
  });
17500
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17501
+ var LIST_GROUPS_MAX_LIMIT = 100;
17502
+ var AnalyticsGroupRecordSchema = object({
17503
+ id: string(),
17504
+ deviceId: number().int(),
17505
+ openedAt: number().int(),
17506
+ closedAt: number().int(),
17507
+ timestamp: number().int(),
17508
+ memberCount: number().int(),
17509
+ memberTrackIds: array(string()).readonly(),
17510
+ className: string(),
17511
+ classes: array(string()).readonly(),
17512
+ /** Relative event-media path, or null when the group has no picture yet. */
17513
+ mediaUrl: string().nullable(),
17514
+ singleton: boolean()
17515
+ });
17516
+ var AnalyticsGroupMemberSchema = object({
17517
+ trackId: string(),
17518
+ deviceId: number().int(),
17519
+ className: string(),
17520
+ firstSeen: number().int(),
17521
+ lastSeen: number().int(),
17522
+ mediaUrl: string().nullable()
17523
+ });
17524
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17525
+ var ListGroupsQueryInput = object({
17526
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17527
+ deviceIds: array(number()),
17528
+ /** Window lower bound on `closedAt` (inclusive). */
17529
+ since: number().optional(),
17530
+ /** Window upper bound on `openedAt` (inclusive). */
17531
+ until: number().optional(),
17532
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17533
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17534
+ cursor: string().optional()
17535
+ });
17536
+ var ListGroupsPageSchema = object({
17537
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17538
+ nextCursor: string().nullable()
17539
+ });
17393
17540
  var KeyEventQueryInput = object({
17394
17541
  deviceId: number(),
17395
17542
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17465,7 +17612,9 @@ var TrackCascadeCountsSchema = object({
17465
17612
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17466
17613
  plates: number().int(),
17467
17614
  /** Per-track CLIP search vectors removed (best-effort). */
17468
- embeddings: number().int()
17615
+ embeddings: number().int(),
17616
+ /** Group membership + group rows removed with their last member (best-effort). */
17617
+ groups: number().int()
17469
17618
  });
17470
17619
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17471
17620
  var DiskReconcileCountsSchema = object({
@@ -17611,7 +17760,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17611
17760
  * stationary registry). Default false: the timeline lists passages,
17612
17761
  * not parking records (operator decision, 2026-08-15). */
17613
17762
  includeStationary: boolean().optional()
17614
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17763
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17764
+ deviceId: number(),
17765
+ groupId: string().min(1)
17766
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17615
17767
  kind: "mutation",
17616
17768
  auth: "admin"
17617
17769
  }), 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({
@@ -17693,6 +17845,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17693
17845
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17694
17846
  kind: "mutation",
17695
17847
  auth: "admin"
17848
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17849
+ kind: "mutation",
17850
+ auth: "admin"
17851
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17852
+ kind: "query",
17853
+ auth: "admin"
17854
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17855
+ kind: "mutation",
17856
+ auth: "admin"
17696
17857
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17697
17858
  kind: "query",
17698
17859
  auth: "admin"
@@ -17847,6 +18008,11 @@ object({
17847
18008
  "jpeg"
17848
18009
  ])
17849
18010
  });
18011
+ /**
18012
+ * Process-local frame identity. It is serializable so it can ride an in-process
18013
+ * capability call, but `registryId` deliberately prevents resolution in any
18014
+ * other process or execution group.
18015
+ */
17850
18016
  var FrameRefSchema = object({
17851
18017
  registryId: string().min(1),
17852
18018
  id: string().min(1),
@@ -17921,7 +18087,8 @@ var PipelineModelOptionSchema = object({
17921
18087
  sizeMB: number()
17922
18088
  })),
17923
18089
  group: ModelVariantGroupSchema.optional(),
17924
- legacy: boolean().optional()
18090
+ legacy: boolean().optional(),
18091
+ provider: ModelProviderIdSchema.optional()
17925
18092
  });
17926
18093
  var ConfigFieldBridge = custom();
17927
18094
  var PipelineAddonSchemaSchema = object({
@@ -20051,7 +20218,7 @@ method(object({
20051
20218
  * linking rather than produce an eternal token.
20052
20219
  */
20053
20220
  ttlSec: union([number().int().positive(), literal("never")]).optional()
20054
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
20221
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
20055
20222
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20056
20223
  providerId: string().min(1),
20057
20224
  displayName: string().min(1),
@@ -20146,10 +20313,13 @@ var EvictResultSchema = object({
20146
20313
  /** True when the provider has nothing left it is willing to drop on this location. */
20147
20314
  exhausted: boolean()
20148
20315
  });
20149
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20316
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
20150
20317
  locationId: string(),
20151
20318
  targetBytes: number().int().positive()
20152
- }), EvictResultSchema, { kind: "mutation" });
20319
+ }), EvictResultSchema, {
20320
+ kind: "mutation",
20321
+ auth: "admin"
20322
+ });
20153
20323
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
20154
20324
  kind: "mutation",
20155
20325
  auth: "admin"
@@ -20209,26 +20379,50 @@ var ReadChunkInputSchema = object({
20209
20379
  length: number()
20210
20380
  });
20211
20381
  var EndDownloadInputSchema = object({ downloadId: string() });
20212
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20382
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20213
20383
  location: StorageLocationSchema,
20214
20384
  relativePath: string()
20215
- }), string()), method(object({
20385
+ }), string(), { auth: "admin" }), method(object({
20216
20386
  location: StorageLocationSchema,
20217
20387
  relativePath: string(),
20218
20388
  data: _instanceof(Uint8Array)
20219
- }), _void(), { kind: "mutation" }), method(object({
20389
+ }), _void(), {
20390
+ kind: "mutation",
20391
+ auth: "admin"
20392
+ }), method(object({
20220
20393
  location: StorageLocationSchema,
20221
20394
  relativePath: string()
20222
- }), _instanceof(Uint8Array)), method(object({
20395
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20223
20396
  location: StorageLocationSchema,
20224
20397
  relativePath: string()
20225
- }), boolean()), method(object({
20398
+ }), boolean(), { auth: "admin" }), method(object({
20226
20399
  location: StorageLocationSchema,
20227
20400
  prefix: string().optional()
20228
- }), array(string()).readonly()), method(object({
20401
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20229
20402
  location: StorageLocationSchema,
20230
20403
  relativePath: string()
20231
- }), _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" });
20404
+ }), _void(), {
20405
+ kind: "mutation",
20406
+ auth: "admin"
20407
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20408
+ kind: "mutation",
20409
+ auth: "admin"
20410
+ }), method(WriteChunkInputSchema, _void(), {
20411
+ kind: "mutation",
20412
+ auth: "admin"
20413
+ }), method(FinalizeUploadInputSchema, _void(), {
20414
+ kind: "mutation",
20415
+ auth: "admin"
20416
+ }), method(AbortUploadInputSchema, _void(), {
20417
+ kind: "mutation",
20418
+ auth: "admin"
20419
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20420
+ kind: "mutation",
20421
+ auth: "admin"
20422
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20423
+ kind: "mutation",
20424
+ auth: "admin"
20425
+ });
20232
20426
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20233
20427
  var ProfileSettingsSchemaBridge = unknown().nullable();
20234
20428
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20486,7 +20680,8 @@ method(object({
20486
20680
  access: "create"
20487
20681
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20488
20682
  kind: "mutation",
20489
- access: "view"
20683
+ access: "view",
20684
+ auth: "admin"
20490
20685
  }), method(object({
20491
20686
  /** Required — the user the assertion belongs to (verified). */
20492
20687
  userId: string(),
@@ -20494,10 +20689,12 @@ method(object({
20494
20689
  response: record(string(), unknown())
20495
20690
  }), object({ verified: boolean() }), {
20496
20691
  kind: "mutation",
20497
- access: "view"
20692
+ access: "view",
20693
+ auth: "admin"
20498
20694
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20499
20695
  kind: "mutation",
20500
- access: "view"
20696
+ access: "view",
20697
+ auth: "admin"
20501
20698
  }), method(object({
20502
20699
  /** AuthenticationResponseJSON from the browser. */
20503
20700
  response: record(string(), unknown()) }), object({
@@ -20505,7 +20702,8 @@ response: record(string(), unknown()) }), object({
20505
20702
  userId: string().nullable()
20506
20703
  }), {
20507
20704
  kind: "mutation",
20508
- access: "view"
20705
+ access: "view",
20706
+ auth: "admin"
20509
20707
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20510
20708
  userId: string(),
20511
20709
  credentialId: string()
@@ -20677,7 +20875,19 @@ var VectorStatsResultSchema = object({
20677
20875
  /** False when the backend ranks approximately. */
20678
20876
  exact: boolean()
20679
20877
  });
20680
- 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);
20878
+ method(VectorDeclareIndexInputSchema, _void(), {
20879
+ kind: "mutation",
20880
+ auth: "admin"
20881
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20882
+ kind: "mutation",
20883
+ auth: "admin"
20884
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20885
+ kind: "mutation",
20886
+ auth: "admin"
20887
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20888
+ kind: "mutation",
20889
+ auth: "admin"
20890
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20681
20891
  var ClipSchema = object({
20682
20892
  /** Opaque, provider-namespaced id. The default provider encodes the time
20683
20893
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -23219,7 +23429,27 @@ var MediaFileLiteSchema$1 = object({
23219
23429
  sizeBytes: number(),
23220
23430
  timestamp: number()
23221
23431
  });
23222
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23432
+ method(object({
23433
+ /**
23434
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23435
+ *
23436
+ * Default `false`, the same inversion `listRecentFaces` and
23437
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23438
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23439
+ * on the live hub the same day: four identities cost 40,979 B with the
23440
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23441
+ * four times and the viewer holds at `staleTime: 30_000`.
23442
+ *
23443
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23444
+ * the `event-media` plane serves that key `immutable` with an ETag.
23445
+ *
23446
+ * **This is an INPUT field, so it does not reach the addon until the
23447
+ * next train** — the hub router validates cap inputs against its own
23448
+ * compiled Zod and strips a key it does not know. Until then the
23449
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23450
+ * is what ships, and the opt-in becomes reachable when the train lands.
23451
+ */
23452
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23223
23453
  kind: "mutation",
23224
23454
  auth: "admin"
23225
23455
  }), method(object({
@@ -26107,7 +26337,14 @@ var PlateInfoSchema = object({
26107
26337
  plateBbox: BoundingBoxSchema.optional(),
26108
26338
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
26109
26339
  keyFrameMediaKey: string().optional(),
26110
- base64: string().optional()
26340
+ base64: string().optional(),
26341
+ /**
26342
+ * Same crop as a data-plane URL, always present when the plate has a stored
26343
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26344
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26345
+ * left at its `true` default.
26346
+ */
26347
+ cropUrl: string().optional()
26111
26348
  });
26112
26349
  var MediaFileLiteSchema = object({
26113
26350
  key: string(),
@@ -26125,14 +26362,34 @@ var PlateClusterSchema = object({
26125
26362
  });
26126
26363
  method(object({
26127
26364
  deviceId: number().int().optional(),
26128
- limit: number().int().positive().optional()
26365
+ limit: number().int().positive().optional(),
26366
+ /**
26367
+ * Inline the base64 crop on every row. Default `true` — the existing
26368
+ * behaviour, kept so no caller breaks.
26369
+ *
26370
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26371
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26372
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26373
+ * metadata without them — and the browser then caches the images.
26374
+ *
26375
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26376
+ * plates were the one gallery list left without it.
26377
+ *
26378
+ * **This is an INPUT field, so it does not reach the addon until the
26379
+ * next train.** The hub router validates cap inputs against its own
26380
+ * compiled Zod and strips a key it does not know. Until the train
26381
+ * ships, sending `false` is harmless and keeps the crops inline.
26382
+ */
26383
+ includeCrops: boolean().optional()
26129
26384
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
26130
26385
  deviceId: number().int(),
26131
26386
  trackId: string()
26132
26387
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
26133
26388
  text: string().min(1),
26134
26389
  maxDistance: number().int().min(0).optional(),
26135
- limit: number().int().positive().optional()
26390
+ limit: number().int().positive().optional(),
26391
+ /** See `listPlates.includeCrops`. Default `true`. */
26392
+ includeCrops: boolean().optional()
26136
26393
  }), array(PlateInfoSchema).readonly()), method(object({
26137
26394
  maxDistance: number().int().min(0).optional(),
26138
26395
  minClusterSize: number().int().min(2).optional(),
@@ -26146,7 +26403,13 @@ method(object({
26146
26403
  }), method(object({ plateId: string() }), _void(), {
26147
26404
  kind: "mutation",
26148
26405
  auth: "admin"
26149
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26406
+ }), method(object({
26407
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26408
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26409
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26410
+ * INPUT field: stripped by the hub router until the train ships, which
26411
+ * resolves to `false` and is exactly the intended default. */
26412
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26150
26413
  kind: "mutation",
26151
26414
  auth: "admin"
26152
26415
  }), method(object({
@@ -31631,6 +31894,12 @@ Object.freeze({
31631
31894
  addonId: null,
31632
31895
  access: "view"
31633
31896
  },
31897
+ "deviceManager.getBindingsBatch": {
31898
+ capName: "device-manager",
31899
+ capScope: "system",
31900
+ addonId: null,
31901
+ access: "view"
31902
+ },
31634
31903
  "deviceManager.getChildren": {
31635
31904
  capName: "device-manager",
31636
31905
  capScope: "system",
@@ -31691,6 +31960,12 @@ Object.freeze({
31691
31960
  addonId: null,
31692
31961
  access: "view"
31693
31962
  },
31963
+ "deviceManager.getLinkedDevicesBatch": {
31964
+ capName: "device-manager",
31965
+ capScope: "system",
31966
+ addonId: null,
31967
+ access: "view"
31968
+ },
31694
31969
  "deviceManager.getRoleDisplayDefaults": {
31695
31970
  capName: "device-manager",
31696
31971
  capScope: "system",
@@ -33395,6 +33670,12 @@ Object.freeze({
33395
33670
  addonId: null,
33396
33671
  access: "create"
33397
33672
  },
33673
+ "pipelineAnalytics.cancelRelocateMedia": {
33674
+ capName: "pipeline-analytics",
33675
+ capScope: "device",
33676
+ addonId: null,
33677
+ access: "create"
33678
+ },
33398
33679
  "pipelineAnalytics.cancelStorageMigrationMove": {
33399
33680
  capName: "pipeline-analytics",
33400
33681
  capScope: "device",
@@ -33461,6 +33742,12 @@ Object.freeze({
33461
33742
  addonId: null,
33462
33743
  access: "view"
33463
33744
  },
33745
+ "pipelineAnalytics.getGroup": {
33746
+ capName: "pipeline-analytics",
33747
+ capScope: "device",
33748
+ addonId: null,
33749
+ access: "view"
33750
+ },
33464
33751
  "pipelineAnalytics.getKeyEvents": {
33465
33752
  capName: "pipeline-analytics",
33466
33753
  capScope: "device",
@@ -33545,6 +33832,12 @@ Object.freeze({
33545
33832
  addonId: null,
33546
33833
  access: "view"
33547
33834
  },
33835
+ "pipelineAnalytics.listGroups": {
33836
+ capName: "pipeline-analytics",
33837
+ capScope: "device",
33838
+ addonId: null,
33839
+ access: "view"
33840
+ },
33548
33841
  "pipelineAnalytics.listOpsLog": {
33549
33842
  capName: "pipeline-analytics",
33550
33843
  capScope: "device",
@@ -33557,6 +33850,12 @@ Object.freeze({
33557
33850
  addonId: null,
33558
33851
  access: "view"
33559
33852
  },
33853
+ "pipelineAnalytics.listRelocateMediaJobs": {
33854
+ capName: "pipeline-analytics",
33855
+ capScope: "device",
33856
+ addonId: null,
33857
+ access: "view"
33858
+ },
33560
33859
  "pipelineAnalytics.listRetrainAnnotations": {
33561
33860
  capName: "pipeline-analytics",
33562
33861
  capScope: "device",
@@ -33635,6 +33934,12 @@ Object.freeze({
33635
33934
  addonId: null,
33636
33935
  access: "create"
33637
33936
  },
33937
+ "pipelineAnalytics.relocateMedia": {
33938
+ capName: "pipeline-analytics",
33939
+ capScope: "device",
33940
+ addonId: null,
33941
+ access: "create"
33942
+ },
33638
33943
  "pipelineAnalytics.restageRetrainTrack": {
33639
33944
  capName: "pipeline-analytics",
33640
33945
  capScope: "device",
@@ -36326,6 +36631,11 @@ Object.freeze({
36326
36631
  form: "single",
36327
36632
  optional: false
36328
36633
  }],
36634
+ "deviceManager.getBindingsBatch": [{
36635
+ name: "deviceIds",
36636
+ form: "array",
36637
+ optional: false
36638
+ }],
36329
36639
  "deviceManager.getChildren": [{
36330
36640
  name: "parentDeviceId",
36331
36641
  form: "single",
@@ -36371,6 +36681,11 @@ Object.freeze({
36371
36681
  form: "single",
36372
36682
  optional: false
36373
36683
  }],
36684
+ "deviceManager.getLinkedDevicesBatch": [{
36685
+ name: "deviceIds",
36686
+ form: "array",
36687
+ optional: false
36688
+ }],
36374
36689
  "deviceManager.getSettingsSchema": [{
36375
36690
  name: "deviceId",
36376
36691
  form: "single",
@@ -36391,6 +36706,11 @@ Object.freeze({
36391
36706
  form: "single",
36392
36707
  optional: false
36393
36708
  }],
36709
+ "deviceManager.listAll": [{
36710
+ name: "deviceIds",
36711
+ form: "array",
36712
+ optional: true
36713
+ }],
36394
36714
  "deviceManager.loadConfig": [{
36395
36715
  name: "deviceId",
36396
36716
  form: "single",
@@ -36964,6 +37284,11 @@ Object.freeze({
36964
37284
  form: "single",
36965
37285
  optional: false
36966
37286
  }],
37287
+ "pipelineAnalytics.getGroup": [{
37288
+ name: "deviceId",
37289
+ form: "single",
37290
+ optional: false
37291
+ }],
36967
37292
  "pipelineAnalytics.getKeyEvents": [{
36968
37293
  name: "deviceId",
36969
37294
  form: "single",
@@ -37019,6 +37344,11 @@ Object.freeze({
37019
37344
  form: "array",
37020
37345
  optional: false
37021
37346
  }],
37347
+ "pipelineAnalytics.listGroups": [{
37348
+ name: "deviceIds",
37349
+ form: "array",
37350
+ optional: false
37351
+ }],
37022
37352
  "pipelineAnalytics.listOpsLog": [{
37023
37353
  name: "deviceId",
37024
37354
  form: "single",