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