@camstack/addon-provider-rademacher 0.2.26 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +431 -111
  2. package/dist/addon.mjs +431 -111
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -6786,6 +6786,13 @@ var BaseAddon = class {
6786
6786
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
6787
6787
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
6788
6788
  _registeredCapNames = [];
6789
+ /**
6790
+ * True only after `readAddonStore` actually answered. Constructor
6791
+ * defaults look like stored config when the store is down — a forked
6792
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
6793
+ * mode, 2026-08-25) is not "the operator chose this".
6794
+ */
6795
+ settingsStoreReady = false;
6789
6796
  /** Default config values. Provided via constructor. */
6790
6797
  defaults;
6791
6798
  constructor(defaults) {
@@ -7186,7 +7193,9 @@ var BaseAddon = class {
7186
7193
  ];
7187
7194
  let lastErr;
7188
7195
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
7189
- return await settings.readAddonStore() ?? {};
7196
+ const stored = await settings.readAddonStore() ?? {};
7197
+ this.settingsStoreReady = true;
7198
+ return stored;
7190
7199
  } catch (err) {
7191
7200
  lastErr = err;
7192
7201
  const msg = err instanceof Error ? err.message : String(err);
@@ -7194,6 +7203,7 @@ var BaseAddon = class {
7194
7203
  if (attempt === delaysMs.length) break;
7195
7204
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
7196
7205
  }
7206
+ this.settingsStoreReady = false;
7197
7207
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
7198
7208
  return {};
7199
7209
  }
@@ -7605,7 +7615,7 @@ function method(input, output, options) {
7605
7615
  input,
7606
7616
  output,
7607
7617
  kind: options?.kind ?? "query",
7608
- auth: options?.auth ?? "protected",
7618
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
7609
7619
  ...options?.access !== void 0 ? { access: options.access } : {},
7610
7620
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
7611
7621
  timeoutMs: options?.timeoutMs
@@ -7629,7 +7639,7 @@ function event(data) {
7629
7639
  }
7630
7640
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
7631
7641
  var VersionOutputSchema$1 = object({ version: string() });
7632
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
7642
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
7633
7643
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
7634
7644
  DeviceType["Camera"] = "camera";
7635
7645
  DeviceType["Hub"] = "hub";
@@ -7950,7 +7960,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
7950
7960
  }({});
7951
7961
  var StaticDirOutputSchema = object({ staticDir: string() });
7952
7962
  var VersionOutputSchema = object({ version: string() });
7953
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
7963
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
7954
7964
  /**
7955
7965
  * device-ops — device-scoped cap that unifies the per-IDevice operations
7956
7966
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -8576,24 +8586,6 @@ var RecordingRetentionSchema = object({
8576
8586
  maxSizeGb: number().min(0).optional()
8577
8587
  });
8578
8588
  /**
8579
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
8580
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
8581
- * previews at. Five graduated steps; absent on a config = `standard` (the
8582
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
8583
- *
8584
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
8585
- * Each window's index sidecar carries its own tile dims, so a camera whose
8586
- * preset changed over time renders every historical window at the dims it was
8587
- * written with.
8588
- */
8589
- var ScrubThumbnailPresetSchema = _enum([
8590
- "minimal",
8591
- "low",
8592
- "standard",
8593
- "high",
8594
- "max"
8595
- ]);
8596
- /**
8597
8589
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
8598
8590
  *
8599
8591
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -8601,7 +8593,11 @@ var ScrubThumbnailPresetSchema = _enum([
8601
8593
  * other field is a storage knob (profiles, segment length, retention, scrub).
8602
8594
  *
8603
8595
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
8604
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
8596
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
8597
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
8598
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
8599
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
8600
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
8605
8601
  * A stale caller must fail loudly — silently stripping its legacy intent would
8606
8602
  * persist a band-less config, i.e. silently stop recording the camera.
8607
8603
  */
@@ -8624,14 +8620,7 @@ var RecordingConfigSchema = object({
8624
8620
  * "off" is the absence of a covering band, never a band value.
8625
8621
  */
8626
8622
  bands: array(RecordingBandSchema).default([]),
8627
- retention: RecordingRetentionSchema.optional(),
8628
- /**
8629
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
8630
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
8631
- * windows only — existing sheets are immutable, and each window's index
8632
- * carries its own tile dims so mixed-preset history renders correctly.
8633
- */
8634
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
8623
+ retention: RecordingRetentionSchema.optional()
8635
8624
  }).strict();
8636
8625
  /**
8637
8626
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -8707,10 +8696,11 @@ var RelocateFootageInputSchema = object({
8707
8696
  * `RecordingConfig.enabled` or camera wrapper bindings. */
8708
8697
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
8709
8698
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
8710
- var StorageMigrationMediaMoveInputSchema = object({
8699
+ var RelocateMediaInputSchema = object({
8711
8700
  toLocationId: string(),
8712
8701
  throttleMbps: number().min(1).max(1e3).optional()
8713
- }).extend({ leaseId: string().min(1) });
8702
+ });
8703
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
8714
8704
  /** The independently selectable logical storage classes. `recordings`
8715
8705
  * encompasses the high and mid segment profiles; `recordingsLow` is low
8716
8706
  * segments; `eventMedia` is post-analysis blobs. */
@@ -9005,7 +8995,26 @@ var LabelDefinitionSchema = object({
9005
8995
  description: string().optional(),
9006
8996
  icon: string().optional()
9007
8997
  });
9008
- var ClassMapDefinitionSchema = object({
8998
+ /**
8999
+ * Wire schema for a per-model CATALOG classMap override
9000
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
9001
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
9002
+ * detection pipeline executor actually routes.
9003
+ *
9004
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
9005
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
9006
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
9007
+ * enum) — the two used to share the name `ClassMapDefinition`/
9008
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
9009
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
9010
+ * are not: it is two different concepts colliding on a name. Keep this type
9011
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
9012
+ * would either narrow every `ClassMapDefinition` consumer to the four
9013
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
9014
+ * schema exists for (see the "rejects a classMap whose target is not a
9015
+ * detection macro" test in `model-catalog-schema.test.ts`).
9016
+ */
9017
+ var DetectionCatalogClassMapSchema = object({
9009
9018
  mapping: record(string(), _enum([
9010
9019
  "person",
9011
9020
  "vehicle",
@@ -9097,6 +9106,12 @@ var ModelVariantGroupSchema = object({
9097
9106
  */
9098
9107
  resolution: number().int().positive().optional()
9099
9108
  });
9109
+ var ModelProviderIdSchema = _enum([
9110
+ "camstack",
9111
+ "frigate",
9112
+ "scrypted",
9113
+ "custom"
9114
+ ]);
9100
9115
  var ModelCatalogEntrySchema = object({
9101
9116
  id: string(),
9102
9117
  name: string(),
@@ -9194,11 +9209,17 @@ var ModelCatalogEntrySchema = object({
9194
9209
  */
9195
9210
  group: ModelVariantGroupSchema.optional(),
9196
9211
  /**
9212
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
9213
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
9214
+ * persisted before this field existed (`inferModelProvider` fills those).
9215
+ */
9216
+ provider: ModelProviderIdSchema.optional(),
9217
+ /**
9197
9218
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
9198
9219
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
9199
9220
  * labels already ARE the CamStack macros (Scrypted identity map).
9200
9221
  */
9201
- classMap: ClassMapDefinitionSchema.optional()
9222
+ classMap: DetectionCatalogClassMapSchema.optional()
9202
9223
  });
9203
9224
  var ConvertTargetSchema = discriminatedUnion("format", [object({
9204
9225
  format: literal("openvino"),
@@ -9228,7 +9249,7 @@ var ModelConvertMetadataSchema = object({
9228
9249
  "segmentation"
9229
9250
  ]),
9230
9251
  faceAlignment: boolean().optional(),
9231
- classMap: ClassMapDefinitionSchema.optional()
9252
+ classMap: DetectionCatalogClassMapSchema.optional()
9232
9253
  });
9233
9254
  var ConvertResultSchema = object({
9234
9255
  entry: ModelCatalogEntrySchema,
@@ -10091,7 +10112,7 @@ var AddonPageDeclarationSchema = object({
10091
10112
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
10092
10113
  sectionLabel: string().optional()
10093
10114
  });
10094
- method(_void(), array(AddonPageDeclarationSchema).readonly());
10115
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
10095
10116
  var AddonHttpRouteSchema = object({
10096
10117
  method: _enum([
10097
10118
  "GET",
@@ -10326,7 +10347,7 @@ var WidgetMetadataSchema = object({
10326
10347
  defaultColumns: number().int().min(1).max(12).default(6),
10327
10348
  defaultRows: number().int().min(1).max(12).default(1)
10328
10349
  });
10329
- method(_void(), array(WidgetMetadataSchema).readonly());
10350
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
10330
10351
  /**
10331
10352
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
10332
10353
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11950,7 +11971,7 @@ var CustomModelDescriptorSchema = object({
11950
11971
  stepId: string(),
11951
11972
  entry: ModelCatalogEntrySchema
11952
11973
  });
11953
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11974
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11954
11975
  /**
11955
11976
  * Query filter for settings-store collections.
11956
11977
  */
@@ -12037,7 +12058,8 @@ method(object({
12037
12058
  }), _void(), { kind: "mutation" }), method(object({
12038
12059
  namespace: string().optional(),
12039
12060
  collection: string(),
12040
- filter: QueryFilterSchema.optional()
12061
+ filter: QueryFilterSchema.optional(),
12062
+ columns: array(string()).readonly().optional()
12041
12063
  }), array(SettingsRecordSchema).readonly()), method(object({
12042
12064
  namespace: string().optional(),
12043
12065
  collection: string(),
@@ -12100,46 +12122,87 @@ var EngineInfoSchema = object({
12100
12122
  kind: _enum(["relational", "vector"]),
12101
12123
  displayName: string()
12102
12124
  });
12103
- method(_void(), EngineInfoSchema), method(object({
12125
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
12104
12126
  namespace: string().optional(),
12105
12127
  collection: string(),
12106
12128
  key: string()
12107
- }), unknown()), method(object({
12129
+ }), unknown(), { auth: "admin" }), method(object({
12108
12130
  namespace: string().optional(),
12109
12131
  collection: string(),
12110
12132
  key: string(),
12111
12133
  value: unknown()
12112
- }), _void(), { kind: "mutation" }), method(object({
12134
+ }), _void(), {
12135
+ kind: "mutation",
12136
+ auth: "admin"
12137
+ }), method(object({
12113
12138
  namespace: string().optional(),
12114
12139
  collection: string(),
12115
- filter: QueryFilterSchema.optional()
12116
- }), array(SettingsRecordSchema).readonly()), method(object({
12140
+ filter: QueryFilterSchema.optional(),
12141
+ /**
12142
+ * SQL-level column projection — MUST mirror `settings-store.query`.
12143
+ *
12144
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
12145
+ * was wrong — corrected 2026-08-26 after the hop map
12146
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
12147
+ * There is **no Zod parse at all** between the door and the engine: the
12148
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
12149
+ * field declared here reaches `SqliteSettingsBackend` either way.
12150
+ *
12151
+ * What actually lost `columns` was the THIRD declaration of this shape:
12152
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
12153
+ * interface the engine destructures from. The field existed on both
12154
+ * schemas and the engine still never read it, because nothing checks a
12155
+ * registered provider against `InferProvider<cap>` —
12156
+ * `ProviderRegistration.provider` is typed `object`.
12157
+ *
12158
+ * It is declared here anyway, and must stay in step with
12159
+ * `settings-store.query`: a caller reading only the cap definitions has
12160
+ * to be able to see that this call carries a projection.
12161
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
12162
+ */
12163
+ columns: array(string()).readonly().optional()
12164
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
12117
12165
  namespace: string().optional(),
12118
12166
  collection: string(),
12119
12167
  record: SettingsRecordSchema
12120
- }), _void(), { kind: "mutation" }), method(object({
12168
+ }), _void(), {
12169
+ kind: "mutation",
12170
+ auth: "admin"
12171
+ }), method(object({
12121
12172
  namespace: string().optional(),
12122
12173
  collection: string(),
12123
12174
  id: string(),
12124
12175
  data: record(string(), unknown())
12125
- }), _void(), { kind: "mutation" }), method(object({
12176
+ }), _void(), {
12177
+ kind: "mutation",
12178
+ auth: "admin"
12179
+ }), method(object({
12126
12180
  namespace: string().optional(),
12127
12181
  collection: string(),
12128
12182
  key: string()
12129
- }), _void(), { kind: "mutation" }), method(object({
12183
+ }), _void(), {
12184
+ kind: "mutation",
12185
+ auth: "admin"
12186
+ }), method(object({
12130
12187
  namespace: string().optional(),
12131
12188
  collection: string(),
12132
12189
  filter: MutationFilterSchema
12133
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
12190
+ }), object({ deleted: number().int() }), {
12191
+ kind: "mutation",
12192
+ auth: "admin"
12193
+ }), method(object({
12134
12194
  namespace: string().optional(),
12135
12195
  collection: string(),
12136
12196
  filter: MutationFilterSchema,
12137
12197
  data: record(string(), unknown())
12138
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
12198
+ }), object({ updated: number().int() }), {
12199
+ kind: "mutation",
12200
+ auth: "admin"
12201
+ }), method(object({
12139
12202
  namespace: string().optional(),
12140
12203
  collection: string(),
12141
12204
  filter: QueryFilterSchema.optional()
12142
- }), number()), method(object({
12205
+ }), number(), { auth: "admin" }), method(object({
12143
12206
  namespace: string().optional(),
12144
12207
  collection: string(),
12145
12208
  field: string(),
@@ -12149,15 +12212,18 @@ method(_void(), EngineInfoSchema), method(object({
12149
12212
  }), array(object({
12150
12213
  bucket: number().int(),
12151
12214
  count: number().int()
12152
- })).readonly()), method(object({
12215
+ })).readonly(), { auth: "admin" }), method(object({
12153
12216
  namespace: string().optional(),
12154
12217
  collection: string()
12155
- }), boolean()), method(object({
12218
+ }), boolean(), { auth: "admin" }), method(object({
12156
12219
  namespace: string().optional(),
12157
12220
  collection: string(),
12158
12221
  columns: array(CollectionColumnSchema).readonly(),
12159
12222
  indexes: array(CollectionIndexSchema).readonly().optional()
12160
- }), _void(), { kind: "mutation" });
12223
+ }), _void(), {
12224
+ kind: "mutation",
12225
+ auth: "admin"
12226
+ });
12161
12227
  /**
12162
12228
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
12163
12229
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12985,6 +13051,27 @@ var LinkedDeviceSchema = object({
12985
13051
  features: array(string()),
12986
13052
  producesTrackedEvents: boolean().optional()
12987
13053
  });
13054
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
13055
+ * The batch answer needs the tag; the single-device answer already has it
13056
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
13057
+ var LinkedDevicesForDeviceSchema = object({
13058
+ deviceId: number(),
13059
+ mode: LinkedDevicesModeSchema,
13060
+ devices: array(LinkedDeviceSchema)
13061
+ });
13062
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
13063
+ * `getAllBindings` all answer in. Declared once: three copies of the same
13064
+ * object literal is exactly how the three drift apart. */
13065
+ var DeviceBindingsForDeviceSchema = object({
13066
+ deviceId: number(),
13067
+ entries: array(object({
13068
+ capName: string(),
13069
+ kind: _enum(["native", "wrapped"]),
13070
+ providerAddonId: string(),
13071
+ providerNodeId: string(),
13072
+ nativeAddonId: string()
13073
+ }))
13074
+ });
12988
13075
  var SavedDeviceRowSchema = object({
12989
13076
  /** Numeric id reserved at allocateDeviceId time. */
12990
13077
  id: number(),
@@ -13210,11 +13297,25 @@ method(object({
13210
13297
  projection: _enum(["full", "slim"]).optional(),
13211
13298
  /** Return only camera devices. Filtering server-side instead of
13212
13299
  * shipping 293 rows to find 12. */
13213
- isCamera: boolean().optional()
13300
+ isCamera: boolean().optional(),
13301
+ /**
13302
+ * Return only these device ids. For the caller that already KNOWS the
13303
+ * handful it wants and needs a field the id-bearing answer does not
13304
+ * carry — the viewer's linked-devices panel joins `type` and `online`
13305
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
13306
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
13307
+ * refetches on the reconcile interval, on a phone.
13308
+ *
13309
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
13310
+ * keys rather than rejecting them (verified against the live hub
13311
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
13312
+ * it answers today and the caller filters as it already does.
13313
+ */
13314
+ deviceIds: array(number()).optional()
13214
13315
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
13215
13316
  mode: LinkedDevicesModeSchema,
13216
13317
  devices: array(LinkedDeviceSchema)
13217
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
13318
+ })), 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({
13218
13319
  deviceId: number(),
13219
13320
  values: record(string(), unknown())
13220
13321
  }), object({ success: literal(true) }), {
@@ -13241,25 +13342,7 @@ method(object({
13241
13342
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
13242
13343
  kind: "mutation",
13243
13344
  auth: "admin"
13244
- }), method(object({ deviceId: number() }), object({
13245
- deviceId: number(),
13246
- entries: array(object({
13247
- capName: string(),
13248
- kind: _enum(["native", "wrapped"]),
13249
- providerAddonId: string(),
13250
- providerNodeId: string(),
13251
- nativeAddonId: string()
13252
- }))
13253
- })), method(object({}), array(object({
13254
- deviceId: number(),
13255
- entries: array(object({
13256
- capName: string(),
13257
- kind: _enum(["native", "wrapped"]),
13258
- providerAddonId: string(),
13259
- providerNodeId: string(),
13260
- nativeAddonId: string()
13261
- }))
13262
- }))), method(object({
13345
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
13263
13346
  deviceId: number(),
13264
13347
  capName: string(),
13265
13348
  wrapperAddonId: string(),
@@ -13430,7 +13513,7 @@ method(object({
13430
13513
  crop: _instanceof(Uint8Array),
13431
13514
  width: number(),
13432
13515
  height: number()
13433
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
13516
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
13434
13517
  /**
13435
13518
  * filesystem-browse — per-node capability for browsing the node's local
13436
13519
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -13723,19 +13806,22 @@ method(LlmGenerateBaseInputSchema.extend({
13723
13806
  runtime: ManagedRuntimeConfigSchema,
13724
13807
  /** The managed profile's timeout, threaded by the hub provider. */
13725
13808
  timeoutMs: number().int().positive().optional()
13726
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
13809
+ }), LlmGenerateResultSchema, {
13810
+ kind: "mutation",
13811
+ auth: "admin"
13812
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
13727
13813
  kind: "mutation",
13728
13814
  auth: "admin"
13729
13815
  }), method(object({}), _void(), {
13730
13816
  kind: "mutation",
13731
13817
  auth: "admin"
13732
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
13818
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
13733
13819
  kind: "mutation",
13734
13820
  auth: "admin"
13735
13821
  }), method(object({ file: string() }), _void(), {
13736
13822
  kind: "mutation",
13737
13823
  auth: "admin"
13738
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
13824
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
13739
13825
  /**
13740
13826
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
13741
13827
  * methods concat-fan across providers; single-row methods route to ONE
@@ -15669,12 +15755,15 @@ var NcOccupancyConditionSchema = object({
15669
15755
  * there is no second switch that can disagree with the first and every rule
15670
15756
  * authored before the decision migrates for free (`audioModeOf`):
15671
15757
  *
15672
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
15673
- * classifier labels with one of them. No window, no percentage:
15674
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
15675
- * `throttle` cooldown is the only brake. The per-label confidence floor is
15676
- * the analyzer's (`classificationMinScore`, per device) a label only
15677
- * reaches this condition if the classifier was already confident enough.
15758
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
15759
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
15760
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
15761
+ * frames is the wrong question for a classifier that labels 1–3 frames
15762
+ * per episode. The count window is the brake that drops a single-frame
15763
+ * false positive; the rule's own `throttle` cooldown is the other. The
15764
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
15765
+ * per device) — a label only reaches this condition if the classifier was
15766
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
15678
15767
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
15679
15768
  * the condition: at least `hitPercent`% of the samples over
15680
15769
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -15701,14 +15790,22 @@ var NcOccupancyConditionSchema = object({
15701
15790
  * an operator who typed `dog` mean the same thing.
15702
15791
  */
15703
15792
  var NcAudioConditionSchema = object({
15704
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
15793
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
15705
15794
  labels: array(string().min(1)).min(1).optional(),
15706
15795
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15707
15796
  dbThreshold: number().min(-96).max(0).optional(),
15708
15797
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15709
15798
  hitPercent: number().int().min(1).max(100).default(60),
15710
15799
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15711
- samplingSeconds: number().int().min(1).max(300).default(10)
15800
+ samplingSeconds: number().int().min(1).max(300).default(10),
15801
+ /**
15802
+ * LABEL MODE: how many labelled frames must land inside
15803
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
15804
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
15805
+ */
15806
+ confirmHits: number().int().min(1).max(20).optional(),
15807
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
15808
+ confirmWindowSec: number().int().min(1).max(60).optional()
15712
15809
  });
15713
15810
  /**
15714
15811
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -17235,7 +17332,7 @@ var OauthIntegrationDescriptorSchema = object({
17235
17332
  */
17236
17333
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
17237
17334
  });
17238
- method(_void(), OauthIntegrationDescriptorSchema);
17335
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
17239
17336
  /**
17240
17337
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
17241
17338
  * per-frame detections emitted by the pipeline runner into tracked
@@ -18082,6 +18179,46 @@ var RecentTracksPageSchema = object({
18082
18179
  /** Cursor for the next page, or null when this page is the last. */
18083
18180
  nextCursor: string().nullable()
18084
18181
  });
18182
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
18183
+ var LIST_GROUPS_MAX_LIMIT = 100;
18184
+ var AnalyticsGroupRecordSchema = object({
18185
+ id: string(),
18186
+ deviceId: number().int(),
18187
+ openedAt: number().int(),
18188
+ closedAt: number().int(),
18189
+ timestamp: number().int(),
18190
+ memberCount: number().int(),
18191
+ memberTrackIds: array(string()).readonly(),
18192
+ className: string(),
18193
+ classes: array(string()).readonly(),
18194
+ /** Relative event-media path, or null when the group has no picture yet. */
18195
+ mediaUrl: string().nullable(),
18196
+ singleton: boolean()
18197
+ });
18198
+ var AnalyticsGroupMemberSchema = object({
18199
+ trackId: string(),
18200
+ deviceId: number().int(),
18201
+ className: string(),
18202
+ firstSeen: number().int(),
18203
+ lastSeen: number().int(),
18204
+ mediaUrl: string().nullable()
18205
+ });
18206
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
18207
+ var ListGroupsQueryInput = object({
18208
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
18209
+ deviceIds: array(number()),
18210
+ /** Window lower bound on `closedAt` (inclusive). */
18211
+ since: number().optional(),
18212
+ /** Window upper bound on `openedAt` (inclusive). */
18213
+ until: number().optional(),
18214
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
18215
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
18216
+ cursor: string().optional()
18217
+ });
18218
+ var ListGroupsPageSchema = object({
18219
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
18220
+ nextCursor: string().nullable()
18221
+ });
18085
18222
  var KeyEventQueryInput = object({
18086
18223
  deviceId: number(),
18087
18224
  /** Window lower bound (track firstSeen ≥ since). */
@@ -18157,7 +18294,9 @@ var TrackCascadeCountsSchema = object({
18157
18294
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
18158
18295
  plates: number().int(),
18159
18296
  /** Per-track CLIP search vectors removed (best-effort). */
18160
- embeddings: number().int()
18297
+ embeddings: number().int(),
18298
+ /** Group membership + group rows removed with their last member (best-effort). */
18299
+ groups: number().int()
18161
18300
  });
18162
18301
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
18163
18302
  var DiskReconcileCountsSchema = object({
@@ -18303,7 +18442,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18303
18442
  * stationary registry). Default false: the timeline lists passages,
18304
18443
  * not parking records (operator decision, 2026-08-15). */
18305
18444
  includeStationary: boolean().optional()
18306
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
18445
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
18446
+ deviceId: number(),
18447
+ groupId: string().min(1)
18448
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18307
18449
  kind: "mutation",
18308
18450
  auth: "admin"
18309
18451
  }), 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({
@@ -18385,6 +18527,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18385
18527
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
18386
18528
  kind: "mutation",
18387
18529
  auth: "admin"
18530
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
18531
+ kind: "mutation",
18532
+ auth: "admin"
18533
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
18534
+ kind: "query",
18535
+ auth: "admin"
18536
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
18537
+ kind: "mutation",
18538
+ auth: "admin"
18388
18539
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
18389
18540
  kind: "query",
18390
18541
  auth: "admin"
@@ -18539,6 +18690,11 @@ object({
18539
18690
  "jpeg"
18540
18691
  ])
18541
18692
  });
18693
+ /**
18694
+ * Process-local frame identity. It is serializable so it can ride an in-process
18695
+ * capability call, but `registryId` deliberately prevents resolution in any
18696
+ * other process or execution group.
18697
+ */
18542
18698
  var FrameRefSchema = object({
18543
18699
  registryId: string().min(1),
18544
18700
  id: string().min(1),
@@ -18613,7 +18769,8 @@ var PipelineModelOptionSchema = object({
18613
18769
  sizeMB: number()
18614
18770
  })),
18615
18771
  group: ModelVariantGroupSchema.optional(),
18616
- legacy: boolean().optional()
18772
+ legacy: boolean().optional(),
18773
+ provider: ModelProviderIdSchema.optional()
18617
18774
  });
18618
18775
  var ConfigFieldBridge = custom();
18619
18776
  var PipelineAddonSchemaSchema = object({
@@ -20743,7 +20900,7 @@ method(object({
20743
20900
  * linking rather than produce an eternal token.
20744
20901
  */
20745
20902
  ttlSec: union([number().int().positive(), literal("never")]).optional()
20746
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
20903
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
20747
20904
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
20748
20905
  providerId: string().min(1),
20749
20906
  displayName: string().min(1),
@@ -20838,10 +20995,13 @@ var EvictResultSchema = object({
20838
20995
  /** True when the provider has nothing left it is willing to drop on this location. */
20839
20996
  exhausted: boolean()
20840
20997
  });
20841
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20998
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
20842
20999
  locationId: string(),
20843
21000
  targetBytes: number().int().positive()
20844
- }), EvictResultSchema, { kind: "mutation" });
21001
+ }), EvictResultSchema, {
21002
+ kind: "mutation",
21003
+ auth: "admin"
21004
+ });
20845
21005
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
20846
21006
  kind: "mutation",
20847
21007
  auth: "admin"
@@ -20901,26 +21061,50 @@ var ReadChunkInputSchema = object({
20901
21061
  length: number()
20902
21062
  });
20903
21063
  var EndDownloadInputSchema = object({ downloadId: string() });
20904
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
21064
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20905
21065
  location: StorageLocationSchema,
20906
21066
  relativePath: string()
20907
- }), string()), method(object({
21067
+ }), string(), { auth: "admin" }), method(object({
20908
21068
  location: StorageLocationSchema,
20909
21069
  relativePath: string(),
20910
21070
  data: _instanceof(Uint8Array)
20911
- }), _void(), { kind: "mutation" }), method(object({
21071
+ }), _void(), {
21072
+ kind: "mutation",
21073
+ auth: "admin"
21074
+ }), method(object({
20912
21075
  location: StorageLocationSchema,
20913
21076
  relativePath: string()
20914
- }), _instanceof(Uint8Array)), method(object({
21077
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20915
21078
  location: StorageLocationSchema,
20916
21079
  relativePath: string()
20917
- }), boolean()), method(object({
21080
+ }), boolean(), { auth: "admin" }), method(object({
20918
21081
  location: StorageLocationSchema,
20919
21082
  prefix: string().optional()
20920
- }), array(string()).readonly()), method(object({
21083
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20921
21084
  location: StorageLocationSchema,
20922
21085
  relativePath: string()
20923
- }), _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" });
21086
+ }), _void(), {
21087
+ kind: "mutation",
21088
+ auth: "admin"
21089
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
21090
+ kind: "mutation",
21091
+ auth: "admin"
21092
+ }), method(WriteChunkInputSchema, _void(), {
21093
+ kind: "mutation",
21094
+ auth: "admin"
21095
+ }), method(FinalizeUploadInputSchema, _void(), {
21096
+ kind: "mutation",
21097
+ auth: "admin"
21098
+ }), method(AbortUploadInputSchema, _void(), {
21099
+ kind: "mutation",
21100
+ auth: "admin"
21101
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
21102
+ kind: "mutation",
21103
+ auth: "admin"
21104
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
21105
+ kind: "mutation",
21106
+ auth: "admin"
21107
+ });
20924
21108
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20925
21109
  var ProfileSettingsSchemaBridge = unknown().nullable();
20926
21110
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -21178,7 +21362,8 @@ method(object({
21178
21362
  access: "create"
21179
21363
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
21180
21364
  kind: "mutation",
21181
- access: "view"
21365
+ access: "view",
21366
+ auth: "admin"
21182
21367
  }), method(object({
21183
21368
  /** Required — the user the assertion belongs to (verified). */
21184
21369
  userId: string(),
@@ -21186,10 +21371,12 @@ method(object({
21186
21371
  response: record(string(), unknown())
21187
21372
  }), object({ verified: boolean() }), {
21188
21373
  kind: "mutation",
21189
- access: "view"
21374
+ access: "view",
21375
+ auth: "admin"
21190
21376
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
21191
21377
  kind: "mutation",
21192
- access: "view"
21378
+ access: "view",
21379
+ auth: "admin"
21193
21380
  }), method(object({
21194
21381
  /** AuthenticationResponseJSON from the browser. */
21195
21382
  response: record(string(), unknown()) }), object({
@@ -21197,7 +21384,8 @@ response: record(string(), unknown()) }), object({
21197
21384
  userId: string().nullable()
21198
21385
  }), {
21199
21386
  kind: "mutation",
21200
- access: "view"
21387
+ access: "view",
21388
+ auth: "admin"
21201
21389
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
21202
21390
  userId: string(),
21203
21391
  credentialId: string()
@@ -21369,7 +21557,19 @@ var VectorStatsResultSchema = object({
21369
21557
  /** False when the backend ranks approximately. */
21370
21558
  exact: boolean()
21371
21559
  });
21372
- 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);
21560
+ method(VectorDeclareIndexInputSchema, _void(), {
21561
+ kind: "mutation",
21562
+ auth: "admin"
21563
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
21564
+ kind: "mutation",
21565
+ auth: "admin"
21566
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21567
+ kind: "mutation",
21568
+ auth: "admin"
21569
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
21570
+ kind: "mutation",
21571
+ auth: "admin"
21572
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
21373
21573
  var ClipSchema = object({
21374
21574
  /** Opaque, provider-namespaced id. The default provider encodes the time
21375
21575
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -23822,7 +24022,27 @@ var MediaFileLiteSchema$1 = object({
23822
24022
  sizeBytes: number(),
23823
24023
  timestamp: number()
23824
24024
  });
23825
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
24025
+ method(object({
24026
+ /**
24027
+ * Inline {@link IdentitySchema.coverBase64} on every row.
24028
+ *
24029
+ * Default `false`, the same inversion `listRecentFaces` and
24030
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
24031
+ * why the burden belongs on the caller that WANTS the bytes). Measured
24032
+ * on the live hub the same day: four identities cost 40,979 B with the
24033
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
24034
+ * four times and the viewer holds at `staleTime: 30_000`.
24035
+ *
24036
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
24037
+ * the `event-media` plane serves that key `immutable` with an ETag.
24038
+ *
24039
+ * **This is an INPUT field, so it does not reach the addon until the
24040
+ * next train** — the hub router validates cap inputs against its own
24041
+ * compiled Zod and strips a key it does not know. Until then the
24042
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
24043
+ * is what ships, and the opt-in becomes reachable when the train lands.
24044
+ */
24045
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23826
24046
  kind: "mutation",
23827
24047
  auth: "admin"
23828
24048
  }), method(object({
@@ -26710,7 +26930,14 @@ var PlateInfoSchema = object({
26710
26930
  plateBbox: BoundingBoxSchema.optional(),
26711
26931
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
26712
26932
  keyFrameMediaKey: string().optional(),
26713
- base64: string().optional()
26933
+ base64: string().optional(),
26934
+ /**
26935
+ * Same crop as a data-plane URL, always present when the plate has a stored
26936
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26937
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26938
+ * left at its `true` default.
26939
+ */
26940
+ cropUrl: string().optional()
26714
26941
  });
26715
26942
  var MediaFileLiteSchema = object({
26716
26943
  key: string(),
@@ -26728,14 +26955,34 @@ var PlateClusterSchema = object({
26728
26955
  });
26729
26956
  method(object({
26730
26957
  deviceId: number().int().optional(),
26731
- limit: number().int().positive().optional()
26958
+ limit: number().int().positive().optional(),
26959
+ /**
26960
+ * Inline the base64 crop on every row. Default `true` — the existing
26961
+ * behaviour, kept so no caller breaks.
26962
+ *
26963
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26964
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26965
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26966
+ * metadata without them — and the browser then caches the images.
26967
+ *
26968
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26969
+ * plates were the one gallery list left without it.
26970
+ *
26971
+ * **This is an INPUT field, so it does not reach the addon until the
26972
+ * next train.** The hub router validates cap inputs against its own
26973
+ * compiled Zod and strips a key it does not know. Until the train
26974
+ * ships, sending `false` is harmless and keeps the crops inline.
26975
+ */
26976
+ includeCrops: boolean().optional()
26732
26977
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
26733
26978
  deviceId: number().int(),
26734
26979
  trackId: string()
26735
26980
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
26736
26981
  text: string().min(1),
26737
26982
  maxDistance: number().int().min(0).optional(),
26738
- limit: number().int().positive().optional()
26983
+ limit: number().int().positive().optional(),
26984
+ /** See `listPlates.includeCrops`. Default `true`. */
26985
+ includeCrops: boolean().optional()
26739
26986
  }), array(PlateInfoSchema).readonly()), method(object({
26740
26987
  maxDistance: number().int().min(0).optional(),
26741
26988
  minClusterSize: number().int().min(2).optional(),
@@ -26749,7 +26996,13 @@ method(object({
26749
26996
  }), method(object({ plateId: string() }), _void(), {
26750
26997
  kind: "mutation",
26751
26998
  auth: "admin"
26752
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26999
+ }), method(object({
27000
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
27001
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
27002
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
27003
+ * INPUT field: stripped by the hub router until the train ships, which
27004
+ * resolves to `false` and is exactly the intended default. */
27005
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26753
27006
  kind: "mutation",
26754
27007
  auth: "admin"
26755
27008
  }), method(object({
@@ -32234,6 +32487,12 @@ Object.freeze({
32234
32487
  addonId: null,
32235
32488
  access: "view"
32236
32489
  },
32490
+ "deviceManager.getBindingsBatch": {
32491
+ capName: "device-manager",
32492
+ capScope: "system",
32493
+ addonId: null,
32494
+ access: "view"
32495
+ },
32237
32496
  "deviceManager.getChildren": {
32238
32497
  capName: "device-manager",
32239
32498
  capScope: "system",
@@ -32294,6 +32553,12 @@ Object.freeze({
32294
32553
  addonId: null,
32295
32554
  access: "view"
32296
32555
  },
32556
+ "deviceManager.getLinkedDevicesBatch": {
32557
+ capName: "device-manager",
32558
+ capScope: "system",
32559
+ addonId: null,
32560
+ access: "view"
32561
+ },
32297
32562
  "deviceManager.getRoleDisplayDefaults": {
32298
32563
  capName: "device-manager",
32299
32564
  capScope: "system",
@@ -33998,6 +34263,12 @@ Object.freeze({
33998
34263
  addonId: null,
33999
34264
  access: "create"
34000
34265
  },
34266
+ "pipelineAnalytics.cancelRelocateMedia": {
34267
+ capName: "pipeline-analytics",
34268
+ capScope: "device",
34269
+ addonId: null,
34270
+ access: "create"
34271
+ },
34001
34272
  "pipelineAnalytics.cancelStorageMigrationMove": {
34002
34273
  capName: "pipeline-analytics",
34003
34274
  capScope: "device",
@@ -34064,6 +34335,12 @@ Object.freeze({
34064
34335
  addonId: null,
34065
34336
  access: "view"
34066
34337
  },
34338
+ "pipelineAnalytics.getGroup": {
34339
+ capName: "pipeline-analytics",
34340
+ capScope: "device",
34341
+ addonId: null,
34342
+ access: "view"
34343
+ },
34067
34344
  "pipelineAnalytics.getKeyEvents": {
34068
34345
  capName: "pipeline-analytics",
34069
34346
  capScope: "device",
@@ -34148,6 +34425,12 @@ Object.freeze({
34148
34425
  addonId: null,
34149
34426
  access: "view"
34150
34427
  },
34428
+ "pipelineAnalytics.listGroups": {
34429
+ capName: "pipeline-analytics",
34430
+ capScope: "device",
34431
+ addonId: null,
34432
+ access: "view"
34433
+ },
34151
34434
  "pipelineAnalytics.listOpsLog": {
34152
34435
  capName: "pipeline-analytics",
34153
34436
  capScope: "device",
@@ -34160,6 +34443,12 @@ Object.freeze({
34160
34443
  addonId: null,
34161
34444
  access: "view"
34162
34445
  },
34446
+ "pipelineAnalytics.listRelocateMediaJobs": {
34447
+ capName: "pipeline-analytics",
34448
+ capScope: "device",
34449
+ addonId: null,
34450
+ access: "view"
34451
+ },
34163
34452
  "pipelineAnalytics.listRetrainAnnotations": {
34164
34453
  capName: "pipeline-analytics",
34165
34454
  capScope: "device",
@@ -34238,6 +34527,12 @@ Object.freeze({
34238
34527
  addonId: null,
34239
34528
  access: "create"
34240
34529
  },
34530
+ "pipelineAnalytics.relocateMedia": {
34531
+ capName: "pipeline-analytics",
34532
+ capScope: "device",
34533
+ addonId: null,
34534
+ access: "create"
34535
+ },
34241
34536
  "pipelineAnalytics.restageRetrainTrack": {
34242
34537
  capName: "pipeline-analytics",
34243
34538
  capScope: "device",
@@ -36929,6 +37224,11 @@ Object.freeze({
36929
37224
  form: "single",
36930
37225
  optional: false
36931
37226
  }],
37227
+ "deviceManager.getBindingsBatch": [{
37228
+ name: "deviceIds",
37229
+ form: "array",
37230
+ optional: false
37231
+ }],
36932
37232
  "deviceManager.getChildren": [{
36933
37233
  name: "parentDeviceId",
36934
37234
  form: "single",
@@ -36974,6 +37274,11 @@ Object.freeze({
36974
37274
  form: "single",
36975
37275
  optional: false
36976
37276
  }],
37277
+ "deviceManager.getLinkedDevicesBatch": [{
37278
+ name: "deviceIds",
37279
+ form: "array",
37280
+ optional: false
37281
+ }],
36977
37282
  "deviceManager.getSettingsSchema": [{
36978
37283
  name: "deviceId",
36979
37284
  form: "single",
@@ -36994,6 +37299,11 @@ Object.freeze({
36994
37299
  form: "single",
36995
37300
  optional: false
36996
37301
  }],
37302
+ "deviceManager.listAll": [{
37303
+ name: "deviceIds",
37304
+ form: "array",
37305
+ optional: true
37306
+ }],
36997
37307
  "deviceManager.loadConfig": [{
36998
37308
  name: "deviceId",
36999
37309
  form: "single",
@@ -37567,6 +37877,11 @@ Object.freeze({
37567
37877
  form: "single",
37568
37878
  optional: false
37569
37879
  }],
37880
+ "pipelineAnalytics.getGroup": [{
37881
+ name: "deviceId",
37882
+ form: "single",
37883
+ optional: false
37884
+ }],
37570
37885
  "pipelineAnalytics.getKeyEvents": [{
37571
37886
  name: "deviceId",
37572
37887
  form: "single",
@@ -37622,6 +37937,11 @@ Object.freeze({
37622
37937
  form: "array",
37623
37938
  optional: false
37624
37939
  }],
37940
+ "pipelineAnalytics.listGroups": [{
37941
+ name: "deviceIds",
37942
+ form: "array",
37943
+ optional: false
37944
+ }],
37625
37945
  "pipelineAnalytics.listOpsLog": [{
37626
37946
  name: "deviceId",
37627
37947
  form: "single",