@camstack/addon-provider-homematic 1.2.28 → 1.2.30

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
@@ -5811,6 +5811,13 @@ var BaseAddon = class {
5811
5811
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5812
5812
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5813
5813
  _registeredCapNames = [];
5814
+ /**
5815
+ * True only after `readAddonStore` actually answered. Constructor
5816
+ * defaults look like stored config when the store is down — a forked
5817
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5818
+ * mode, 2026-08-25) is not "the operator chose this".
5819
+ */
5820
+ settingsStoreReady = false;
5814
5821
  /** Default config values. Provided via constructor. */
5815
5822
  defaults;
5816
5823
  constructor(defaults) {
@@ -6211,7 +6218,9 @@ var BaseAddon = class {
6211
6218
  ];
6212
6219
  let lastErr;
6213
6220
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6214
- return await settings.readAddonStore() ?? {};
6221
+ const stored = await settings.readAddonStore() ?? {};
6222
+ this.settingsStoreReady = true;
6223
+ return stored;
6215
6224
  } catch (err) {
6216
6225
  lastErr = err;
6217
6226
  const msg = err instanceof Error ? err.message : String(err);
@@ -6219,6 +6228,7 @@ var BaseAddon = class {
6219
6228
  if (attempt === delaysMs.length) break;
6220
6229
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6221
6230
  }
6231
+ this.settingsStoreReady = false;
6222
6232
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6223
6233
  return {};
6224
6234
  }
@@ -6630,7 +6640,7 @@ function method(input, output, options) {
6630
6640
  input,
6631
6641
  output,
6632
6642
  kind: options?.kind ?? "query",
6633
- auth: options?.auth ?? "protected",
6643
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6634
6644
  ...options?.access !== void 0 ? { access: options.access } : {},
6635
6645
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6636
6646
  timeoutMs: options?.timeoutMs
@@ -6654,7 +6664,7 @@ function event(data) {
6654
6664
  }
6655
6665
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6656
6666
  var VersionOutputSchema$1 = object({ version: string() });
6657
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6667
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6658
6668
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6659
6669
  DeviceType["Camera"] = "camera";
6660
6670
  DeviceType["Hub"] = "hub";
@@ -6975,7 +6985,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6975
6985
  }({});
6976
6986
  var StaticDirOutputSchema = object({ staticDir: string() });
6977
6987
  var VersionOutputSchema = object({ version: string() });
6978
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6988
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6979
6989
  /**
6980
6990
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6981
6991
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7601,24 +7611,6 @@ var RecordingRetentionSchema = object({
7601
7611
  maxSizeGb: number().min(0).optional()
7602
7612
  });
7603
7613
  /**
7604
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7605
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7606
- * previews at. Five graduated steps; absent on a config = `standard` (the
7607
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7608
- *
7609
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7610
- * Each window's index sidecar carries its own tile dims, so a camera whose
7611
- * preset changed over time renders every historical window at the dims it was
7612
- * written with.
7613
- */
7614
- var ScrubThumbnailPresetSchema = _enum([
7615
- "minimal",
7616
- "low",
7617
- "standard",
7618
- "high",
7619
- "max"
7620
- ]);
7621
- /**
7622
7614
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7623
7615
  *
7624
7616
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7626,7 +7618,11 @@ var ScrubThumbnailPresetSchema = _enum([
7626
7618
  * other field is a storage knob (profiles, segment length, retention, scrub).
7627
7619
  *
7628
7620
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7629
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7621
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7622
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7623
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7624
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7625
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7630
7626
  * A stale caller must fail loudly — silently stripping its legacy intent would
7631
7627
  * persist a band-less config, i.e. silently stop recording the camera.
7632
7628
  */
@@ -7649,14 +7645,7 @@ var RecordingConfigSchema = object({
7649
7645
  * "off" is the absence of a covering band, never a band value.
7650
7646
  */
7651
7647
  bands: array(RecordingBandSchema).default([]),
7652
- retention: RecordingRetentionSchema.optional(),
7653
- /**
7654
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7655
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7656
- * windows only — existing sheets are immutable, and each window's index
7657
- * carries its own tile dims so mixed-preset history renders correctly.
7658
- */
7659
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7648
+ retention: RecordingRetentionSchema.optional()
7660
7649
  }).strict();
7661
7650
  /**
7662
7651
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7732,10 +7721,11 @@ var RelocateFootageInputSchema = object({
7732
7721
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7733
7722
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7734
7723
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7735
- var StorageMigrationMediaMoveInputSchema = object({
7724
+ var RelocateMediaInputSchema = object({
7736
7725
  toLocationId: string(),
7737
7726
  throttleMbps: number().min(1).max(1e3).optional()
7738
- }).extend({ leaseId: string().min(1) });
7727
+ });
7728
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7739
7729
  /** The independently selectable logical storage classes. `recordings`
7740
7730
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7741
7731
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8030,7 +8020,26 @@ var LabelDefinitionSchema = object({
8030
8020
  description: string().optional(),
8031
8021
  icon: string().optional()
8032
8022
  });
8033
- var ClassMapDefinitionSchema = object({
8023
+ /**
8024
+ * Wire schema for a per-model CATALOG classMap override
8025
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8026
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8027
+ * detection pipeline executor actually routes.
8028
+ *
8029
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8030
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8031
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8032
+ * enum) — the two used to share the name `ClassMapDefinition`/
8033
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8034
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8035
+ * are not: it is two different concepts colliding on a name. Keep this type
8036
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8037
+ * would either narrow every `ClassMapDefinition` consumer to the four
8038
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8039
+ * schema exists for (see the "rejects a classMap whose target is not a
8040
+ * detection macro" test in `model-catalog-schema.test.ts`).
8041
+ */
8042
+ var DetectionCatalogClassMapSchema = object({
8034
8043
  mapping: record(string(), _enum([
8035
8044
  "person",
8036
8045
  "vehicle",
@@ -8122,6 +8131,12 @@ var ModelVariantGroupSchema = object({
8122
8131
  */
8123
8132
  resolution: number().int().positive().optional()
8124
8133
  });
8134
+ var ModelProviderIdSchema = _enum([
8135
+ "camstack",
8136
+ "frigate",
8137
+ "scrypted",
8138
+ "custom"
8139
+ ]);
8125
8140
  var ModelCatalogEntrySchema = object({
8126
8141
  id: string(),
8127
8142
  name: string(),
@@ -8219,11 +8234,17 @@ var ModelCatalogEntrySchema = object({
8219
8234
  */
8220
8235
  group: ModelVariantGroupSchema.optional(),
8221
8236
  /**
8237
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8238
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8239
+ * persisted before this field existed (`inferModelProvider` fills those).
8240
+ */
8241
+ provider: ModelProviderIdSchema.optional(),
8242
+ /**
8222
8243
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8223
8244
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8224
8245
  * labels already ARE the CamStack macros (Scrypted identity map).
8225
8246
  */
8226
- classMap: ClassMapDefinitionSchema.optional()
8247
+ classMap: DetectionCatalogClassMapSchema.optional()
8227
8248
  });
8228
8249
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8229
8250
  format: literal("openvino"),
@@ -8253,7 +8274,7 @@ var ModelConvertMetadataSchema = object({
8253
8274
  "segmentation"
8254
8275
  ]),
8255
8276
  faceAlignment: boolean().optional(),
8256
- classMap: ClassMapDefinitionSchema.optional()
8277
+ classMap: DetectionCatalogClassMapSchema.optional()
8257
8278
  });
8258
8279
  var ConvertResultSchema = object({
8259
8280
  entry: ModelCatalogEntrySchema,
@@ -9116,7 +9137,7 @@ var AddonPageDeclarationSchema = object({
9116
9137
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9117
9138
  sectionLabel: string().optional()
9118
9139
  });
9119
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9140
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9120
9141
  var AddonHttpRouteSchema = object({
9121
9142
  method: _enum([
9122
9143
  "GET",
@@ -9351,7 +9372,7 @@ var WidgetMetadataSchema = object({
9351
9372
  defaultColumns: number().int().min(1).max(12).default(6),
9352
9373
  defaultRows: number().int().min(1).max(12).default(1)
9353
9374
  });
9354
- method(_void(), array(WidgetMetadataSchema).readonly());
9375
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9355
9376
  /**
9356
9377
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9357
9378
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11024,7 +11045,7 @@ var CustomModelDescriptorSchema = object({
11024
11045
  stepId: string(),
11025
11046
  entry: ModelCatalogEntrySchema
11026
11047
  });
11027
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11048
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11028
11049
  /**
11029
11050
  * Query filter for settings-store collections.
11030
11051
  */
@@ -11111,7 +11132,8 @@ method(object({
11111
11132
  }), _void(), { kind: "mutation" }), method(object({
11112
11133
  namespace: string().optional(),
11113
11134
  collection: string(),
11114
- filter: QueryFilterSchema.optional()
11135
+ filter: QueryFilterSchema.optional(),
11136
+ columns: array(string()).readonly().optional()
11115
11137
  }), array(SettingsRecordSchema).readonly()), method(object({
11116
11138
  namespace: string().optional(),
11117
11139
  collection: string(),
@@ -11174,46 +11196,87 @@ var EngineInfoSchema = object({
11174
11196
  kind: _enum(["relational", "vector"]),
11175
11197
  displayName: string()
11176
11198
  });
11177
- method(_void(), EngineInfoSchema), method(object({
11199
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11178
11200
  namespace: string().optional(),
11179
11201
  collection: string(),
11180
11202
  key: string()
11181
- }), unknown()), method(object({
11203
+ }), unknown(), { auth: "admin" }), method(object({
11182
11204
  namespace: string().optional(),
11183
11205
  collection: string(),
11184
11206
  key: string(),
11185
11207
  value: unknown()
11186
- }), _void(), { kind: "mutation" }), method(object({
11208
+ }), _void(), {
11209
+ kind: "mutation",
11210
+ auth: "admin"
11211
+ }), method(object({
11187
11212
  namespace: string().optional(),
11188
11213
  collection: string(),
11189
- filter: QueryFilterSchema.optional()
11190
- }), array(SettingsRecordSchema).readonly()), method(object({
11214
+ filter: QueryFilterSchema.optional(),
11215
+ /**
11216
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11217
+ *
11218
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11219
+ * was wrong — corrected 2026-08-26 after the hop map
11220
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11221
+ * There is **no Zod parse at all** between the door and the engine: the
11222
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11223
+ * field declared here reaches `SqliteSettingsBackend` either way.
11224
+ *
11225
+ * What actually lost `columns` was the THIRD declaration of this shape:
11226
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11227
+ * interface the engine destructures from. The field existed on both
11228
+ * schemas and the engine still never read it, because nothing checks a
11229
+ * registered provider against `InferProvider<cap>` —
11230
+ * `ProviderRegistration.provider` is typed `object`.
11231
+ *
11232
+ * It is declared here anyway, and must stay in step with
11233
+ * `settings-store.query`: a caller reading only the cap definitions has
11234
+ * to be able to see that this call carries a projection.
11235
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11236
+ */
11237
+ columns: array(string()).readonly().optional()
11238
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11191
11239
  namespace: string().optional(),
11192
11240
  collection: string(),
11193
11241
  record: SettingsRecordSchema
11194
- }), _void(), { kind: "mutation" }), method(object({
11242
+ }), _void(), {
11243
+ kind: "mutation",
11244
+ auth: "admin"
11245
+ }), method(object({
11195
11246
  namespace: string().optional(),
11196
11247
  collection: string(),
11197
11248
  id: string(),
11198
11249
  data: record(string(), unknown())
11199
- }), _void(), { kind: "mutation" }), method(object({
11250
+ }), _void(), {
11251
+ kind: "mutation",
11252
+ auth: "admin"
11253
+ }), method(object({
11200
11254
  namespace: string().optional(),
11201
11255
  collection: string(),
11202
11256
  key: string()
11203
- }), _void(), { kind: "mutation" }), method(object({
11257
+ }), _void(), {
11258
+ kind: "mutation",
11259
+ auth: "admin"
11260
+ }), method(object({
11204
11261
  namespace: string().optional(),
11205
11262
  collection: string(),
11206
11263
  filter: MutationFilterSchema
11207
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11264
+ }), object({ deleted: number().int() }), {
11265
+ kind: "mutation",
11266
+ auth: "admin"
11267
+ }), method(object({
11208
11268
  namespace: string().optional(),
11209
11269
  collection: string(),
11210
11270
  filter: MutationFilterSchema,
11211
11271
  data: record(string(), unknown())
11212
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11272
+ }), object({ updated: number().int() }), {
11273
+ kind: "mutation",
11274
+ auth: "admin"
11275
+ }), method(object({
11213
11276
  namespace: string().optional(),
11214
11277
  collection: string(),
11215
11278
  filter: QueryFilterSchema.optional()
11216
- }), number()), method(object({
11279
+ }), number(), { auth: "admin" }), method(object({
11217
11280
  namespace: string().optional(),
11218
11281
  collection: string(),
11219
11282
  field: string(),
@@ -11223,15 +11286,18 @@ method(_void(), EngineInfoSchema), method(object({
11223
11286
  }), array(object({
11224
11287
  bucket: number().int(),
11225
11288
  count: number().int()
11226
- })).readonly()), method(object({
11289
+ })).readonly(), { auth: "admin" }), method(object({
11227
11290
  namespace: string().optional(),
11228
11291
  collection: string()
11229
- }), boolean()), method(object({
11292
+ }), boolean(), { auth: "admin" }), method(object({
11230
11293
  namespace: string().optional(),
11231
11294
  collection: string(),
11232
11295
  columns: array(CollectionColumnSchema).readonly(),
11233
11296
  indexes: array(CollectionIndexSchema).readonly().optional()
11234
- }), _void(), { kind: "mutation" });
11297
+ }), _void(), {
11298
+ kind: "mutation",
11299
+ auth: "admin"
11300
+ });
11235
11301
  /**
11236
11302
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11237
11303
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12076,6 +12142,27 @@ var LinkedDeviceSchema = object({
12076
12142
  features: array(string()),
12077
12143
  producesTrackedEvents: boolean().optional()
12078
12144
  });
12145
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12146
+ * The batch answer needs the tag; the single-device answer already has it
12147
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12148
+ var LinkedDevicesForDeviceSchema = object({
12149
+ deviceId: number(),
12150
+ mode: LinkedDevicesModeSchema,
12151
+ devices: array(LinkedDeviceSchema)
12152
+ });
12153
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12154
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12155
+ * object literal is exactly how the three drift apart. */
12156
+ var DeviceBindingsForDeviceSchema = object({
12157
+ deviceId: number(),
12158
+ entries: array(object({
12159
+ capName: string(),
12160
+ kind: _enum(["native", "wrapped"]),
12161
+ providerAddonId: string(),
12162
+ providerNodeId: string(),
12163
+ nativeAddonId: string()
12164
+ }))
12165
+ });
12079
12166
  var SavedDeviceRowSchema = object({
12080
12167
  /** Numeric id reserved at allocateDeviceId time. */
12081
12168
  id: number(),
@@ -12301,11 +12388,25 @@ method(object({
12301
12388
  projection: _enum(["full", "slim"]).optional(),
12302
12389
  /** Return only camera devices. Filtering server-side instead of
12303
12390
  * shipping 293 rows to find 12. */
12304
- isCamera: boolean().optional()
12391
+ isCamera: boolean().optional(),
12392
+ /**
12393
+ * Return only these device ids. For the caller that already KNOWS the
12394
+ * handful it wants and needs a field the id-bearing answer does not
12395
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12396
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12397
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12398
+ * refetches on the reconcile interval, on a phone.
12399
+ *
12400
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12401
+ * keys rather than rejecting them (verified against the live hub
12402
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12403
+ * it answers today and the caller filters as it already does.
12404
+ */
12405
+ deviceIds: array(number()).optional()
12305
12406
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12306
12407
  mode: LinkedDevicesModeSchema,
12307
12408
  devices: array(LinkedDeviceSchema)
12308
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12409
+ })), 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({
12309
12410
  deviceId: number(),
12310
12411
  values: record(string(), unknown())
12311
12412
  }), object({ success: literal(true) }), {
@@ -12332,25 +12433,7 @@ method(object({
12332
12433
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12333
12434
  kind: "mutation",
12334
12435
  auth: "admin"
12335
- }), method(object({ deviceId: number() }), object({
12336
- deviceId: number(),
12337
- entries: array(object({
12338
- capName: string(),
12339
- kind: _enum(["native", "wrapped"]),
12340
- providerAddonId: string(),
12341
- providerNodeId: string(),
12342
- nativeAddonId: string()
12343
- }))
12344
- })), method(object({}), array(object({
12345
- deviceId: number(),
12346
- entries: array(object({
12347
- capName: string(),
12348
- kind: _enum(["native", "wrapped"]),
12349
- providerAddonId: string(),
12350
- providerNodeId: string(),
12351
- nativeAddonId: string()
12352
- }))
12353
- }))), method(object({
12436
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12354
12437
  deviceId: number(),
12355
12438
  capName: string(),
12356
12439
  wrapperAddonId: string(),
@@ -12521,7 +12604,7 @@ method(object({
12521
12604
  crop: _instanceof(Uint8Array),
12522
12605
  width: number(),
12523
12606
  height: number()
12524
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12607
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12525
12608
  /**
12526
12609
  * filesystem-browse — per-node capability for browsing the node's local
12527
12610
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12814,19 +12897,22 @@ method(LlmGenerateBaseInputSchema.extend({
12814
12897
  runtime: ManagedRuntimeConfigSchema,
12815
12898
  /** The managed profile's timeout, threaded by the hub provider. */
12816
12899
  timeoutMs: number().int().positive().optional()
12817
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12900
+ }), LlmGenerateResultSchema, {
12901
+ kind: "mutation",
12902
+ auth: "admin"
12903
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12818
12904
  kind: "mutation",
12819
12905
  auth: "admin"
12820
12906
  }), method(object({}), _void(), {
12821
12907
  kind: "mutation",
12822
12908
  auth: "admin"
12823
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12909
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12824
12910
  kind: "mutation",
12825
12911
  auth: "admin"
12826
12912
  }), method(object({ file: string() }), _void(), {
12827
12913
  kind: "mutation",
12828
12914
  auth: "admin"
12829
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12915
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12830
12916
  /**
12831
12917
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12832
12918
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14760,12 +14846,15 @@ var NcOccupancyConditionSchema = object({
14760
14846
  * there is no second switch that can disagree with the first and every rule
14761
14847
  * authored before the decision migrates for free (`audioModeOf`):
14762
14848
  *
14763
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14764
- * classifier labels with one of them. No window, no percentage:
14765
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14766
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14767
- * the analyzer's (`classificationMinScore`, per device) — a label only
14768
- * reaches this condition if the classifier was already confident enough.
14849
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14850
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14851
+ * `hitPercent` and `samplingSeconds` are still ignored — a percentage of
14852
+ * frames is the wrong question for a classifier that labels 1–3 frames
14853
+ * per episode. The count window is the brake that drops a single-frame
14854
+ * false positive; the rule's own `throttle` cooldown is the other. The
14855
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14856
+ * per device) — a label only reaches this condition if the classifier was
14857
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14769
14858
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14770
14859
  * the condition: at least `hitPercent`% of the samples over
14771
14860
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14792,14 +14881,22 @@ var NcOccupancyConditionSchema = object({
14792
14881
  * an operator who typed `dog` mean the same thing.
14793
14882
  */
14794
14883
  var NcAudioConditionSchema = object({
14795
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14884
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14796
14885
  labels: array(string().min(1)).min(1).optional(),
14797
14886
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14798
14887
  dbThreshold: number().min(-96).max(0).optional(),
14799
14888
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14800
14889
  hitPercent: number().int().min(1).max(100).default(60),
14801
14890
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14802
- samplingSeconds: number().int().min(1).max(300).default(10)
14891
+ samplingSeconds: number().int().min(1).max(300).default(10),
14892
+ /**
14893
+ * LABEL MODE: how many labelled frames must land inside
14894
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14895
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14896
+ */
14897
+ confirmHits: number().int().min(1).max(20).optional(),
14898
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14899
+ confirmWindowSec: number().int().min(1).max(60).optional()
14803
14900
  });
14804
14901
  /**
14805
14902
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16326,7 +16423,7 @@ var OauthIntegrationDescriptorSchema = object({
16326
16423
  */
16327
16424
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16328
16425
  });
16329
- method(_void(), OauthIntegrationDescriptorSchema);
16426
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16330
16427
  /**
16331
16428
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16332
16429
  * per-frame detections emitted by the pipeline runner into tracked
@@ -17173,6 +17270,46 @@ var RecentTracksPageSchema = object({
17173
17270
  /** Cursor for the next page, or null when this page is the last. */
17174
17271
  nextCursor: string().nullable()
17175
17272
  });
17273
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17274
+ var LIST_GROUPS_MAX_LIMIT = 100;
17275
+ var AnalyticsGroupRecordSchema = object({
17276
+ id: string(),
17277
+ deviceId: number().int(),
17278
+ openedAt: number().int(),
17279
+ closedAt: number().int(),
17280
+ timestamp: number().int(),
17281
+ memberCount: number().int(),
17282
+ memberTrackIds: array(string()).readonly(),
17283
+ className: string(),
17284
+ classes: array(string()).readonly(),
17285
+ /** Relative event-media path, or null when the group has no picture yet. */
17286
+ mediaUrl: string().nullable(),
17287
+ singleton: boolean()
17288
+ });
17289
+ var AnalyticsGroupMemberSchema = object({
17290
+ trackId: string(),
17291
+ deviceId: number().int(),
17292
+ className: string(),
17293
+ firstSeen: number().int(),
17294
+ lastSeen: number().int(),
17295
+ mediaUrl: string().nullable()
17296
+ });
17297
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17298
+ var ListGroupsQueryInput = object({
17299
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17300
+ deviceIds: array(number()),
17301
+ /** Window lower bound on `closedAt` (inclusive). */
17302
+ since: number().optional(),
17303
+ /** Window upper bound on `openedAt` (inclusive). */
17304
+ until: number().optional(),
17305
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17306
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17307
+ cursor: string().optional()
17308
+ });
17309
+ var ListGroupsPageSchema = object({
17310
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17311
+ nextCursor: string().nullable()
17312
+ });
17176
17313
  var KeyEventQueryInput = object({
17177
17314
  deviceId: number(),
17178
17315
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17248,7 +17385,9 @@ var TrackCascadeCountsSchema = object({
17248
17385
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17249
17386
  plates: number().int(),
17250
17387
  /** Per-track CLIP search vectors removed (best-effort). */
17251
- embeddings: number().int()
17388
+ embeddings: number().int(),
17389
+ /** Group membership + group rows removed with their last member (best-effort). */
17390
+ groups: number().int()
17252
17391
  });
17253
17392
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17254
17393
  var DiskReconcileCountsSchema = object({
@@ -17394,7 +17533,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17394
17533
  * stationary registry). Default false: the timeline lists passages,
17395
17534
  * not parking records (operator decision, 2026-08-15). */
17396
17535
  includeStationary: boolean().optional()
17397
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17536
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17537
+ deviceId: number(),
17538
+ groupId: string().min(1)
17539
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17398
17540
  kind: "mutation",
17399
17541
  auth: "admin"
17400
17542
  }), 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({
@@ -17476,6 +17618,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17476
17618
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17477
17619
  kind: "mutation",
17478
17620
  auth: "admin"
17621
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17622
+ kind: "mutation",
17623
+ auth: "admin"
17624
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17625
+ kind: "query",
17626
+ auth: "admin"
17627
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17628
+ kind: "mutation",
17629
+ auth: "admin"
17479
17630
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17480
17631
  kind: "query",
17481
17632
  auth: "admin"
@@ -17630,6 +17781,11 @@ object({
17630
17781
  "jpeg"
17631
17782
  ])
17632
17783
  });
17784
+ /**
17785
+ * Process-local frame identity. It is serializable so it can ride an in-process
17786
+ * capability call, but `registryId` deliberately prevents resolution in any
17787
+ * other process or execution group.
17788
+ */
17633
17789
  var FrameRefSchema = object({
17634
17790
  registryId: string().min(1),
17635
17791
  id: string().min(1),
@@ -17704,7 +17860,8 @@ var PipelineModelOptionSchema = object({
17704
17860
  sizeMB: number()
17705
17861
  })),
17706
17862
  group: ModelVariantGroupSchema.optional(),
17707
- legacy: boolean().optional()
17863
+ legacy: boolean().optional(),
17864
+ provider: ModelProviderIdSchema.optional()
17708
17865
  });
17709
17866
  var ConfigFieldBridge = custom();
17710
17867
  var PipelineAddonSchemaSchema = object({
@@ -19834,7 +19991,7 @@ method(object({
19834
19991
  * linking rather than produce an eternal token.
19835
19992
  */
19836
19993
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19837
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
19994
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19838
19995
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19839
19996
  providerId: string().min(1),
19840
19997
  displayName: string().min(1),
@@ -19929,10 +20086,13 @@ var EvictResultSchema = object({
19929
20086
  /** True when the provider has nothing left it is willing to drop on this location. */
19930
20087
  exhausted: boolean()
19931
20088
  });
19932
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20089
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19933
20090
  locationId: string(),
19934
20091
  targetBytes: number().int().positive()
19935
- }), EvictResultSchema, { kind: "mutation" });
20092
+ }), EvictResultSchema, {
20093
+ kind: "mutation",
20094
+ auth: "admin"
20095
+ });
19936
20096
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19937
20097
  kind: "mutation",
19938
20098
  auth: "admin"
@@ -19992,26 +20152,50 @@ var ReadChunkInputSchema = object({
19992
20152
  length: number()
19993
20153
  });
19994
20154
  var EndDownloadInputSchema = object({ downloadId: string() });
19995
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20155
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19996
20156
  location: StorageLocationSchema,
19997
20157
  relativePath: string()
19998
- }), string()), method(object({
20158
+ }), string(), { auth: "admin" }), method(object({
19999
20159
  location: StorageLocationSchema,
20000
20160
  relativePath: string(),
20001
20161
  data: _instanceof(Uint8Array)
20002
- }), _void(), { kind: "mutation" }), method(object({
20162
+ }), _void(), {
20163
+ kind: "mutation",
20164
+ auth: "admin"
20165
+ }), method(object({
20003
20166
  location: StorageLocationSchema,
20004
20167
  relativePath: string()
20005
- }), _instanceof(Uint8Array)), method(object({
20168
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20006
20169
  location: StorageLocationSchema,
20007
20170
  relativePath: string()
20008
- }), boolean()), method(object({
20171
+ }), boolean(), { auth: "admin" }), method(object({
20009
20172
  location: StorageLocationSchema,
20010
20173
  prefix: string().optional()
20011
- }), array(string()).readonly()), method(object({
20174
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20012
20175
  location: StorageLocationSchema,
20013
20176
  relativePath: string()
20014
- }), _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" });
20177
+ }), _void(), {
20178
+ kind: "mutation",
20179
+ auth: "admin"
20180
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20181
+ kind: "mutation",
20182
+ auth: "admin"
20183
+ }), method(WriteChunkInputSchema, _void(), {
20184
+ kind: "mutation",
20185
+ auth: "admin"
20186
+ }), method(FinalizeUploadInputSchema, _void(), {
20187
+ kind: "mutation",
20188
+ auth: "admin"
20189
+ }), method(AbortUploadInputSchema, _void(), {
20190
+ kind: "mutation",
20191
+ auth: "admin"
20192
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20193
+ kind: "mutation",
20194
+ auth: "admin"
20195
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20196
+ kind: "mutation",
20197
+ auth: "admin"
20198
+ });
20015
20199
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20016
20200
  var ProfileSettingsSchemaBridge = unknown().nullable();
20017
20201
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20269,7 +20453,8 @@ method(object({
20269
20453
  access: "create"
20270
20454
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20271
20455
  kind: "mutation",
20272
- access: "view"
20456
+ access: "view",
20457
+ auth: "admin"
20273
20458
  }), method(object({
20274
20459
  /** Required — the user the assertion belongs to (verified). */
20275
20460
  userId: string(),
@@ -20277,10 +20462,12 @@ method(object({
20277
20462
  response: record(string(), unknown())
20278
20463
  }), object({ verified: boolean() }), {
20279
20464
  kind: "mutation",
20280
- access: "view"
20465
+ access: "view",
20466
+ auth: "admin"
20281
20467
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20282
20468
  kind: "mutation",
20283
- access: "view"
20469
+ access: "view",
20470
+ auth: "admin"
20284
20471
  }), method(object({
20285
20472
  /** AuthenticationResponseJSON from the browser. */
20286
20473
  response: record(string(), unknown()) }), object({
@@ -20288,7 +20475,8 @@ response: record(string(), unknown()) }), object({
20288
20475
  userId: string().nullable()
20289
20476
  }), {
20290
20477
  kind: "mutation",
20291
- access: "view"
20478
+ access: "view",
20479
+ auth: "admin"
20292
20480
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20293
20481
  userId: string(),
20294
20482
  credentialId: string()
@@ -20460,7 +20648,19 @@ var VectorStatsResultSchema = object({
20460
20648
  /** False when the backend ranks approximately. */
20461
20649
  exact: boolean()
20462
20650
  });
20463
- 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);
20651
+ method(VectorDeclareIndexInputSchema, _void(), {
20652
+ kind: "mutation",
20653
+ auth: "admin"
20654
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20655
+ kind: "mutation",
20656
+ auth: "admin"
20657
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20658
+ kind: "mutation",
20659
+ auth: "admin"
20660
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20661
+ kind: "mutation",
20662
+ auth: "admin"
20663
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20464
20664
  var ClipSchema = object({
20465
20665
  /** Opaque, provider-namespaced id. The default provider encodes the time
20466
20666
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -22913,7 +23113,27 @@ var MediaFileLiteSchema$1 = object({
22913
23113
  sizeBytes: number(),
22914
23114
  timestamp: number()
22915
23115
  });
22916
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23116
+ method(object({
23117
+ /**
23118
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23119
+ *
23120
+ * Default `false`, the same inversion `listRecentFaces` and
23121
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23122
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23123
+ * on the live hub the same day: four identities cost 40,979 B with the
23124
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23125
+ * four times and the viewer holds at `staleTime: 30_000`.
23126
+ *
23127
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23128
+ * the `event-media` plane serves that key `immutable` with an ETag.
23129
+ *
23130
+ * **This is an INPUT field, so it does not reach the addon until the
23131
+ * next train** — the hub router validates cap inputs against its own
23132
+ * compiled Zod and strips a key it does not know. Until then the
23133
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23134
+ * is what ships, and the opt-in becomes reachable when the train lands.
23135
+ */
23136
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22917
23137
  kind: "mutation",
22918
23138
  auth: "admin"
22919
23139
  }), method(object({
@@ -25801,7 +26021,14 @@ var PlateInfoSchema = object({
25801
26021
  plateBbox: BoundingBoxSchema.optional(),
25802
26022
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
25803
26023
  keyFrameMediaKey: string().optional(),
25804
- base64: string().optional()
26024
+ base64: string().optional(),
26025
+ /**
26026
+ * Same crop as a data-plane URL, always present when the plate has a stored
26027
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26028
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26029
+ * left at its `true` default.
26030
+ */
26031
+ cropUrl: string().optional()
25805
26032
  });
25806
26033
  var MediaFileLiteSchema = object({
25807
26034
  key: string(),
@@ -25819,14 +26046,34 @@ var PlateClusterSchema = object({
25819
26046
  });
25820
26047
  method(object({
25821
26048
  deviceId: number().int().optional(),
25822
- limit: number().int().positive().optional()
26049
+ limit: number().int().positive().optional(),
26050
+ /**
26051
+ * Inline the base64 crop on every row. Default `true` — the existing
26052
+ * behaviour, kept so no caller breaks.
26053
+ *
26054
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26055
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26056
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26057
+ * metadata without them — and the browser then caches the images.
26058
+ *
26059
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26060
+ * plates were the one gallery list left without it.
26061
+ *
26062
+ * **This is an INPUT field, so it does not reach the addon until the
26063
+ * next train.** The hub router validates cap inputs against its own
26064
+ * compiled Zod and strips a key it does not know. Until the train
26065
+ * ships, sending `false` is harmless and keeps the crops inline.
26066
+ */
26067
+ includeCrops: boolean().optional()
25823
26068
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
25824
26069
  deviceId: number().int(),
25825
26070
  trackId: string()
25826
26071
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
25827
26072
  text: string().min(1),
25828
26073
  maxDistance: number().int().min(0).optional(),
25829
- limit: number().int().positive().optional()
26074
+ limit: number().int().positive().optional(),
26075
+ /** See `listPlates.includeCrops`. Default `true`. */
26076
+ includeCrops: boolean().optional()
25830
26077
  }), array(PlateInfoSchema).readonly()), method(object({
25831
26078
  maxDistance: number().int().min(0).optional(),
25832
26079
  minClusterSize: number().int().min(2).optional(),
@@ -25840,7 +26087,13 @@ method(object({
25840
26087
  }), method(object({ plateId: string() }), _void(), {
25841
26088
  kind: "mutation",
25842
26089
  auth: "admin"
25843
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26090
+ }), method(object({
26091
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26092
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26093
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26094
+ * INPUT field: stripped by the hub router until the train ships, which
26095
+ * resolves to `false` and is exactly the intended default. */
26096
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
25844
26097
  kind: "mutation",
25845
26098
  auth: "admin"
25846
26099
  }), method(object({
@@ -31325,6 +31578,12 @@ Object.freeze({
31325
31578
  addonId: null,
31326
31579
  access: "view"
31327
31580
  },
31581
+ "deviceManager.getBindingsBatch": {
31582
+ capName: "device-manager",
31583
+ capScope: "system",
31584
+ addonId: null,
31585
+ access: "view"
31586
+ },
31328
31587
  "deviceManager.getChildren": {
31329
31588
  capName: "device-manager",
31330
31589
  capScope: "system",
@@ -31385,6 +31644,12 @@ Object.freeze({
31385
31644
  addonId: null,
31386
31645
  access: "view"
31387
31646
  },
31647
+ "deviceManager.getLinkedDevicesBatch": {
31648
+ capName: "device-manager",
31649
+ capScope: "system",
31650
+ addonId: null,
31651
+ access: "view"
31652
+ },
31388
31653
  "deviceManager.getRoleDisplayDefaults": {
31389
31654
  capName: "device-manager",
31390
31655
  capScope: "system",
@@ -33089,6 +33354,12 @@ Object.freeze({
33089
33354
  addonId: null,
33090
33355
  access: "create"
33091
33356
  },
33357
+ "pipelineAnalytics.cancelRelocateMedia": {
33358
+ capName: "pipeline-analytics",
33359
+ capScope: "device",
33360
+ addonId: null,
33361
+ access: "create"
33362
+ },
33092
33363
  "pipelineAnalytics.cancelStorageMigrationMove": {
33093
33364
  capName: "pipeline-analytics",
33094
33365
  capScope: "device",
@@ -33155,6 +33426,12 @@ Object.freeze({
33155
33426
  addonId: null,
33156
33427
  access: "view"
33157
33428
  },
33429
+ "pipelineAnalytics.getGroup": {
33430
+ capName: "pipeline-analytics",
33431
+ capScope: "device",
33432
+ addonId: null,
33433
+ access: "view"
33434
+ },
33158
33435
  "pipelineAnalytics.getKeyEvents": {
33159
33436
  capName: "pipeline-analytics",
33160
33437
  capScope: "device",
@@ -33239,6 +33516,12 @@ Object.freeze({
33239
33516
  addonId: null,
33240
33517
  access: "view"
33241
33518
  },
33519
+ "pipelineAnalytics.listGroups": {
33520
+ capName: "pipeline-analytics",
33521
+ capScope: "device",
33522
+ addonId: null,
33523
+ access: "view"
33524
+ },
33242
33525
  "pipelineAnalytics.listOpsLog": {
33243
33526
  capName: "pipeline-analytics",
33244
33527
  capScope: "device",
@@ -33251,6 +33534,12 @@ Object.freeze({
33251
33534
  addonId: null,
33252
33535
  access: "view"
33253
33536
  },
33537
+ "pipelineAnalytics.listRelocateMediaJobs": {
33538
+ capName: "pipeline-analytics",
33539
+ capScope: "device",
33540
+ addonId: null,
33541
+ access: "view"
33542
+ },
33254
33543
  "pipelineAnalytics.listRetrainAnnotations": {
33255
33544
  capName: "pipeline-analytics",
33256
33545
  capScope: "device",
@@ -33329,6 +33618,12 @@ Object.freeze({
33329
33618
  addonId: null,
33330
33619
  access: "create"
33331
33620
  },
33621
+ "pipelineAnalytics.relocateMedia": {
33622
+ capName: "pipeline-analytics",
33623
+ capScope: "device",
33624
+ addonId: null,
33625
+ access: "create"
33626
+ },
33332
33627
  "pipelineAnalytics.restageRetrainTrack": {
33333
33628
  capName: "pipeline-analytics",
33334
33629
  capScope: "device",
@@ -36020,6 +36315,11 @@ Object.freeze({
36020
36315
  form: "single",
36021
36316
  optional: false
36022
36317
  }],
36318
+ "deviceManager.getBindingsBatch": [{
36319
+ name: "deviceIds",
36320
+ form: "array",
36321
+ optional: false
36322
+ }],
36023
36323
  "deviceManager.getChildren": [{
36024
36324
  name: "parentDeviceId",
36025
36325
  form: "single",
@@ -36065,6 +36365,11 @@ Object.freeze({
36065
36365
  form: "single",
36066
36366
  optional: false
36067
36367
  }],
36368
+ "deviceManager.getLinkedDevicesBatch": [{
36369
+ name: "deviceIds",
36370
+ form: "array",
36371
+ optional: false
36372
+ }],
36068
36373
  "deviceManager.getSettingsSchema": [{
36069
36374
  name: "deviceId",
36070
36375
  form: "single",
@@ -36085,6 +36390,11 @@ Object.freeze({
36085
36390
  form: "single",
36086
36391
  optional: false
36087
36392
  }],
36393
+ "deviceManager.listAll": [{
36394
+ name: "deviceIds",
36395
+ form: "array",
36396
+ optional: true
36397
+ }],
36088
36398
  "deviceManager.loadConfig": [{
36089
36399
  name: "deviceId",
36090
36400
  form: "single",
@@ -36658,6 +36968,11 @@ Object.freeze({
36658
36968
  form: "single",
36659
36969
  optional: false
36660
36970
  }],
36971
+ "pipelineAnalytics.getGroup": [{
36972
+ name: "deviceId",
36973
+ form: "single",
36974
+ optional: false
36975
+ }],
36661
36976
  "pipelineAnalytics.getKeyEvents": [{
36662
36977
  name: "deviceId",
36663
36978
  form: "single",
@@ -36713,6 +37028,11 @@ Object.freeze({
36713
37028
  form: "array",
36714
37029
  optional: false
36715
37030
  }],
37031
+ "pipelineAnalytics.listGroups": [{
37032
+ name: "deviceIds",
37033
+ form: "array",
37034
+ optional: false
37035
+ }],
36716
37036
  "pipelineAnalytics.listOpsLog": [{
36717
37037
  name: "deviceId",
36718
37038
  form: "single",