@camstack/addon-provider-amcrest 0.2.28 → 0.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +431 -111
  2. package/dist/addon.mjs +431 -111
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -5807,6 +5807,13 @@ var BaseAddon = class {
5807
5807
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5808
5808
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5809
5809
  _registeredCapNames = [];
5810
+ /**
5811
+ * True only after `readAddonStore` actually answered. Constructor
5812
+ * defaults look like stored config when the store is down — a forked
5813
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5814
+ * mode, 2026-08-25) is not "the operator chose this".
5815
+ */
5816
+ settingsStoreReady = false;
5810
5817
  /** Default config values. Provided via constructor. */
5811
5818
  defaults;
5812
5819
  constructor(defaults) {
@@ -6207,7 +6214,9 @@ var BaseAddon = class {
6207
6214
  ];
6208
6215
  let lastErr;
6209
6216
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6210
- return await settings.readAddonStore() ?? {};
6217
+ const stored = await settings.readAddonStore() ?? {};
6218
+ this.settingsStoreReady = true;
6219
+ return stored;
6211
6220
  } catch (err) {
6212
6221
  lastErr = err;
6213
6222
  const msg = err instanceof Error ? err.message : String(err);
@@ -6215,6 +6224,7 @@ var BaseAddon = class {
6215
6224
  if (attempt === delaysMs.length) break;
6216
6225
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6217
6226
  }
6227
+ this.settingsStoreReady = false;
6218
6228
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6219
6229
  return {};
6220
6230
  }
@@ -6626,7 +6636,7 @@ function method(input, output, options) {
6626
6636
  input,
6627
6637
  output,
6628
6638
  kind: options?.kind ?? "query",
6629
- auth: options?.auth ?? "protected",
6639
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6630
6640
  ...options?.access !== void 0 ? { access: options.access } : {},
6631
6641
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6632
6642
  timeoutMs: options?.timeoutMs
@@ -6650,7 +6660,7 @@ function event(data) {
6650
6660
  }
6651
6661
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6652
6662
  var VersionOutputSchema$1 = object({ version: string() });
6653
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6663
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6654
6664
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6655
6665
  DeviceType["Camera"] = "camera";
6656
6666
  DeviceType["Hub"] = "hub";
@@ -6971,7 +6981,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6971
6981
  }({});
6972
6982
  var StaticDirOutputSchema = object({ staticDir: string() });
6973
6983
  var VersionOutputSchema = object({ version: string() });
6974
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6984
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6975
6985
  /**
6976
6986
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6977
6987
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7585,24 +7595,6 @@ var RecordingRetentionSchema = object({
7585
7595
  maxSizeGb: number().min(0).optional()
7586
7596
  });
7587
7597
  /**
7588
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7589
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7590
- * previews at. Five graduated steps; absent on a config = `standard` (the
7591
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7592
- *
7593
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7594
- * Each window's index sidecar carries its own tile dims, so a camera whose
7595
- * preset changed over time renders every historical window at the dims it was
7596
- * written with.
7597
- */
7598
- var ScrubThumbnailPresetSchema = _enum([
7599
- "minimal",
7600
- "low",
7601
- "standard",
7602
- "high",
7603
- "max"
7604
- ]);
7605
- /**
7606
7598
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7607
7599
  *
7608
7600
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7610,7 +7602,11 @@ var ScrubThumbnailPresetSchema = _enum([
7610
7602
  * other field is a storage knob (profiles, segment length, retention, scrub).
7611
7603
  *
7612
7604
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7613
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7605
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7606
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7607
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7608
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7609
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7614
7610
  * A stale caller must fail loudly — silently stripping its legacy intent would
7615
7611
  * persist a band-less config, i.e. silently stop recording the camera.
7616
7612
  */
@@ -7633,14 +7629,7 @@ var RecordingConfigSchema = object({
7633
7629
  * "off" is the absence of a covering band, never a band value.
7634
7630
  */
7635
7631
  bands: array(RecordingBandSchema).default([]),
7636
- retention: RecordingRetentionSchema.optional(),
7637
- /**
7638
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7639
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7640
- * windows only — existing sheets are immutable, and each window's index
7641
- * carries its own tile dims so mixed-preset history renders correctly.
7642
- */
7643
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7632
+ retention: RecordingRetentionSchema.optional()
7644
7633
  }).strict();
7645
7634
  /**
7646
7635
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7716,10 +7705,11 @@ var RelocateFootageInputSchema = object({
7716
7705
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7717
7706
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7718
7707
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7719
- var StorageMigrationMediaMoveInputSchema = object({
7708
+ var RelocateMediaInputSchema = object({
7720
7709
  toLocationId: string(),
7721
7710
  throttleMbps: number().min(1).max(1e3).optional()
7722
- }).extend({ leaseId: string().min(1) });
7711
+ });
7712
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7723
7713
  /** The independently selectable logical storage classes. `recordings`
7724
7714
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7725
7715
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8014,7 +8004,26 @@ var LabelDefinitionSchema = object({
8014
8004
  description: string().optional(),
8015
8005
  icon: string().optional()
8016
8006
  });
8017
- var ClassMapDefinitionSchema = object({
8007
+ /**
8008
+ * Wire schema for a per-model CATALOG classMap override
8009
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8010
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8011
+ * detection pipeline executor actually routes.
8012
+ *
8013
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8014
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8015
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8016
+ * enum) — the two used to share the name `ClassMapDefinition`/
8017
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8018
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8019
+ * are not: it is two different concepts colliding on a name. Keep this type
8020
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8021
+ * would either narrow every `ClassMapDefinition` consumer to the four
8022
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8023
+ * schema exists for (see the "rejects a classMap whose target is not a
8024
+ * detection macro" test in `model-catalog-schema.test.ts`).
8025
+ */
8026
+ var DetectionCatalogClassMapSchema = object({
8018
8027
  mapping: record(string(), _enum([
8019
8028
  "person",
8020
8029
  "vehicle",
@@ -8106,6 +8115,12 @@ var ModelVariantGroupSchema = object({
8106
8115
  */
8107
8116
  resolution: number().int().positive().optional()
8108
8117
  });
8118
+ var ModelProviderIdSchema = _enum([
8119
+ "camstack",
8120
+ "frigate",
8121
+ "scrypted",
8122
+ "custom"
8123
+ ]);
8109
8124
  var ModelCatalogEntrySchema = object({
8110
8125
  id: string(),
8111
8126
  name: string(),
@@ -8203,11 +8218,17 @@ var ModelCatalogEntrySchema = object({
8203
8218
  */
8204
8219
  group: ModelVariantGroupSchema.optional(),
8205
8220
  /**
8221
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8222
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8223
+ * persisted before this field existed (`inferModelProvider` fills those).
8224
+ */
8225
+ provider: ModelProviderIdSchema.optional(),
8226
+ /**
8206
8227
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8207
8228
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8208
8229
  * labels already ARE the CamStack macros (Scrypted identity map).
8209
8230
  */
8210
- classMap: ClassMapDefinitionSchema.optional()
8231
+ classMap: DetectionCatalogClassMapSchema.optional()
8211
8232
  });
8212
8233
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8213
8234
  format: literal("openvino"),
@@ -8237,7 +8258,7 @@ var ModelConvertMetadataSchema = object({
8237
8258
  "segmentation"
8238
8259
  ]),
8239
8260
  faceAlignment: boolean().optional(),
8240
- classMap: ClassMapDefinitionSchema.optional()
8261
+ classMap: DetectionCatalogClassMapSchema.optional()
8241
8262
  });
8242
8263
  var ConvertResultSchema = object({
8243
8264
  entry: ModelCatalogEntrySchema,
@@ -9100,7 +9121,7 @@ var AddonPageDeclarationSchema = object({
9100
9121
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9101
9122
  sectionLabel: string().optional()
9102
9123
  });
9103
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9124
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9104
9125
  var AddonHttpRouteSchema = object({
9105
9126
  method: _enum([
9106
9127
  "GET",
@@ -9335,7 +9356,7 @@ var WidgetMetadataSchema = object({
9335
9356
  defaultColumns: number().int().min(1).max(12).default(6),
9336
9357
  defaultRows: number().int().min(1).max(12).default(1)
9337
9358
  });
9338
- method(_void(), array(WidgetMetadataSchema).readonly());
9359
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9339
9360
  /**
9340
9361
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9341
9362
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -10959,7 +10980,7 @@ var CustomModelDescriptorSchema = object({
10959
10980
  stepId: string(),
10960
10981
  entry: ModelCatalogEntrySchema
10961
10982
  });
10962
- method(_void(), array(CustomModelDescriptorSchema).readonly());
10983
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
10963
10984
  /**
10964
10985
  * Query filter for settings-store collections.
10965
10986
  */
@@ -11046,7 +11067,8 @@ method(object({
11046
11067
  }), _void(), { kind: "mutation" }), method(object({
11047
11068
  namespace: string().optional(),
11048
11069
  collection: string(),
11049
- filter: QueryFilterSchema.optional()
11070
+ filter: QueryFilterSchema.optional(),
11071
+ columns: array(string()).readonly().optional()
11050
11072
  }), array(SettingsRecordSchema).readonly()), method(object({
11051
11073
  namespace: string().optional(),
11052
11074
  collection: string(),
@@ -11109,46 +11131,87 @@ var EngineInfoSchema = object({
11109
11131
  kind: _enum(["relational", "vector"]),
11110
11132
  displayName: string()
11111
11133
  });
11112
- method(_void(), EngineInfoSchema), method(object({
11134
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11113
11135
  namespace: string().optional(),
11114
11136
  collection: string(),
11115
11137
  key: string()
11116
- }), unknown()), method(object({
11138
+ }), unknown(), { auth: "admin" }), method(object({
11117
11139
  namespace: string().optional(),
11118
11140
  collection: string(),
11119
11141
  key: string(),
11120
11142
  value: unknown()
11121
- }), _void(), { kind: "mutation" }), method(object({
11143
+ }), _void(), {
11144
+ kind: "mutation",
11145
+ auth: "admin"
11146
+ }), method(object({
11122
11147
  namespace: string().optional(),
11123
11148
  collection: string(),
11124
- filter: QueryFilterSchema.optional()
11125
- }), array(SettingsRecordSchema).readonly()), method(object({
11149
+ filter: QueryFilterSchema.optional(),
11150
+ /**
11151
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11152
+ *
11153
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11154
+ * was wrong — corrected 2026-08-26 after the hop map
11155
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11156
+ * There is **no Zod parse at all** between the door and the engine: the
11157
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11158
+ * field declared here reaches `SqliteSettingsBackend` either way.
11159
+ *
11160
+ * What actually lost `columns` was the THIRD declaration of this shape:
11161
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11162
+ * interface the engine destructures from. The field existed on both
11163
+ * schemas and the engine still never read it, because nothing checks a
11164
+ * registered provider against `InferProvider<cap>` —
11165
+ * `ProviderRegistration.provider` is typed `object`.
11166
+ *
11167
+ * It is declared here anyway, and must stay in step with
11168
+ * `settings-store.query`: a caller reading only the cap definitions has
11169
+ * to be able to see that this call carries a projection.
11170
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11171
+ */
11172
+ columns: array(string()).readonly().optional()
11173
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11126
11174
  namespace: string().optional(),
11127
11175
  collection: string(),
11128
11176
  record: SettingsRecordSchema
11129
- }), _void(), { kind: "mutation" }), method(object({
11177
+ }), _void(), {
11178
+ kind: "mutation",
11179
+ auth: "admin"
11180
+ }), method(object({
11130
11181
  namespace: string().optional(),
11131
11182
  collection: string(),
11132
11183
  id: string(),
11133
11184
  data: record(string(), unknown())
11134
- }), _void(), { kind: "mutation" }), method(object({
11185
+ }), _void(), {
11186
+ kind: "mutation",
11187
+ auth: "admin"
11188
+ }), method(object({
11135
11189
  namespace: string().optional(),
11136
11190
  collection: string(),
11137
11191
  key: string()
11138
- }), _void(), { kind: "mutation" }), method(object({
11192
+ }), _void(), {
11193
+ kind: "mutation",
11194
+ auth: "admin"
11195
+ }), method(object({
11139
11196
  namespace: string().optional(),
11140
11197
  collection: string(),
11141
11198
  filter: MutationFilterSchema
11142
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11199
+ }), object({ deleted: number().int() }), {
11200
+ kind: "mutation",
11201
+ auth: "admin"
11202
+ }), method(object({
11143
11203
  namespace: string().optional(),
11144
11204
  collection: string(),
11145
11205
  filter: MutationFilterSchema,
11146
11206
  data: record(string(), unknown())
11147
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11207
+ }), object({ updated: number().int() }), {
11208
+ kind: "mutation",
11209
+ auth: "admin"
11210
+ }), method(object({
11148
11211
  namespace: string().optional(),
11149
11212
  collection: string(),
11150
11213
  filter: QueryFilterSchema.optional()
11151
- }), number()), method(object({
11214
+ }), number(), { auth: "admin" }), method(object({
11152
11215
  namespace: string().optional(),
11153
11216
  collection: string(),
11154
11217
  field: string(),
@@ -11158,15 +11221,18 @@ method(_void(), EngineInfoSchema), method(object({
11158
11221
  }), array(object({
11159
11222
  bucket: number().int(),
11160
11223
  count: number().int()
11161
- })).readonly()), method(object({
11224
+ })).readonly(), { auth: "admin" }), method(object({
11162
11225
  namespace: string().optional(),
11163
11226
  collection: string()
11164
- }), boolean()), method(object({
11227
+ }), boolean(), { auth: "admin" }), method(object({
11165
11228
  namespace: string().optional(),
11166
11229
  collection: string(),
11167
11230
  columns: array(CollectionColumnSchema).readonly(),
11168
11231
  indexes: array(CollectionIndexSchema).readonly().optional()
11169
- }), _void(), { kind: "mutation" });
11232
+ }), _void(), {
11233
+ kind: "mutation",
11234
+ auth: "admin"
11235
+ });
11170
11236
  /**
11171
11237
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11172
11238
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -11994,6 +12060,27 @@ var LinkedDeviceSchema = object({
11994
12060
  features: array(string()),
11995
12061
  producesTrackedEvents: boolean().optional()
11996
12062
  });
12063
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12064
+ * The batch answer needs the tag; the single-device answer already has it
12065
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12066
+ var LinkedDevicesForDeviceSchema = object({
12067
+ deviceId: number(),
12068
+ mode: LinkedDevicesModeSchema,
12069
+ devices: array(LinkedDeviceSchema)
12070
+ });
12071
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12072
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12073
+ * object literal is exactly how the three drift apart. */
12074
+ var DeviceBindingsForDeviceSchema = object({
12075
+ deviceId: number(),
12076
+ entries: array(object({
12077
+ capName: string(),
12078
+ kind: _enum(["native", "wrapped"]),
12079
+ providerAddonId: string(),
12080
+ providerNodeId: string(),
12081
+ nativeAddonId: string()
12082
+ }))
12083
+ });
11997
12084
  var SavedDeviceRowSchema = object({
11998
12085
  /** Numeric id reserved at allocateDeviceId time. */
11999
12086
  id: number(),
@@ -12219,11 +12306,25 @@ method(object({
12219
12306
  projection: _enum(["full", "slim"]).optional(),
12220
12307
  /** Return only camera devices. Filtering server-side instead of
12221
12308
  * shipping 293 rows to find 12. */
12222
- isCamera: boolean().optional()
12309
+ isCamera: boolean().optional(),
12310
+ /**
12311
+ * Return only these device ids. For the caller that already KNOWS the
12312
+ * handful it wants and needs a field the id-bearing answer does not
12313
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12314
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12315
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12316
+ * refetches on the reconcile interval, on a phone.
12317
+ *
12318
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12319
+ * keys rather than rejecting them (verified against the live hub
12320
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12321
+ * it answers today and the caller filters as it already does.
12322
+ */
12323
+ deviceIds: array(number()).optional()
12223
12324
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12224
12325
  mode: LinkedDevicesModeSchema,
12225
12326
  devices: array(LinkedDeviceSchema)
12226
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12327
+ })), 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({
12227
12328
  deviceId: number(),
12228
12329
  values: record(string(), unknown())
12229
12330
  }), object({ success: literal(true) }), {
@@ -12250,25 +12351,7 @@ method(object({
12250
12351
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12251
12352
  kind: "mutation",
12252
12353
  auth: "admin"
12253
- }), method(object({ deviceId: number() }), object({
12254
- deviceId: number(),
12255
- entries: array(object({
12256
- capName: string(),
12257
- kind: _enum(["native", "wrapped"]),
12258
- providerAddonId: string(),
12259
- providerNodeId: string(),
12260
- nativeAddonId: string()
12261
- }))
12262
- })), method(object({}), array(object({
12263
- deviceId: number(),
12264
- entries: array(object({
12265
- capName: string(),
12266
- kind: _enum(["native", "wrapped"]),
12267
- providerAddonId: string(),
12268
- providerNodeId: string(),
12269
- nativeAddonId: string()
12270
- }))
12271
- }))), method(object({
12354
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12272
12355
  deviceId: number(),
12273
12356
  capName: string(),
12274
12357
  wrapperAddonId: string(),
@@ -12439,7 +12522,7 @@ method(object({
12439
12522
  crop: _instanceof(Uint8Array),
12440
12523
  width: number(),
12441
12524
  height: number()
12442
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12525
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12443
12526
  /**
12444
12527
  * filesystem-browse — per-node capability for browsing the node's local
12445
12528
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12732,19 +12815,22 @@ method(LlmGenerateBaseInputSchema.extend({
12732
12815
  runtime: ManagedRuntimeConfigSchema,
12733
12816
  /** The managed profile's timeout, threaded by the hub provider. */
12734
12817
  timeoutMs: number().int().positive().optional()
12735
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12818
+ }), LlmGenerateResultSchema, {
12819
+ kind: "mutation",
12820
+ auth: "admin"
12821
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12736
12822
  kind: "mutation",
12737
12823
  auth: "admin"
12738
12824
  }), method(object({}), _void(), {
12739
12825
  kind: "mutation",
12740
12826
  auth: "admin"
12741
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12827
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12742
12828
  kind: "mutation",
12743
12829
  auth: "admin"
12744
12830
  }), method(object({ file: string() }), _void(), {
12745
12831
  kind: "mutation",
12746
12832
  auth: "admin"
12747
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12833
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12748
12834
  /**
12749
12835
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12750
12836
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14678,12 +14764,15 @@ var NcOccupancyConditionSchema = object({
14678
14764
  * there is no second switch that can disagree with the first and every rule
14679
14765
  * authored before the decision migrates for free (`audioModeOf`):
14680
14766
  *
14681
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14682
- * classifier labels with one of them. No window, no percentage:
14683
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14684
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14685
- * the analyzer's (`classificationMinScore`, per device) a label only
14686
- * reaches this condition if the classifier was already confident enough.
14767
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14768
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14769
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14770
+ * frames is the wrong question for a classifier that labels 1–3 frames
14771
+ * per episode. The count window is the brake that drops a single-frame
14772
+ * false positive; the rule's own `throttle` cooldown is the other. The
14773
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14774
+ * per device) — a label only reaches this condition if the classifier was
14775
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14687
14776
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14688
14777
  * the condition: at least `hitPercent`% of the samples over
14689
14778
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14710,14 +14799,22 @@ var NcOccupancyConditionSchema = object({
14710
14799
  * an operator who typed `dog` mean the same thing.
14711
14800
  */
14712
14801
  var NcAudioConditionSchema = object({
14713
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14802
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14714
14803
  labels: array(string().min(1)).min(1).optional(),
14715
14804
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14716
14805
  dbThreshold: number().min(-96).max(0).optional(),
14717
14806
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14718
14807
  hitPercent: number().int().min(1).max(100).default(60),
14719
14808
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14720
- samplingSeconds: number().int().min(1).max(300).default(10)
14809
+ samplingSeconds: number().int().min(1).max(300).default(10),
14810
+ /**
14811
+ * LABEL MODE: how many labelled frames must land inside
14812
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14813
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14814
+ */
14815
+ confirmHits: number().int().min(1).max(20).optional(),
14816
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14817
+ confirmWindowSec: number().int().min(1).max(60).optional()
14721
14818
  });
14722
14819
  /**
14723
14820
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16244,7 +16341,7 @@ var OauthIntegrationDescriptorSchema = object({
16244
16341
  */
16245
16342
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16246
16343
  });
16247
- method(_void(), OauthIntegrationDescriptorSchema);
16344
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16248
16345
  /**
16249
16346
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16250
16347
  * per-frame detections emitted by the pipeline runner into tracked
@@ -17091,6 +17188,46 @@ var RecentTracksPageSchema = object({
17091
17188
  /** Cursor for the next page, or null when this page is the last. */
17092
17189
  nextCursor: string().nullable()
17093
17190
  });
17191
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17192
+ var LIST_GROUPS_MAX_LIMIT = 100;
17193
+ var AnalyticsGroupRecordSchema = object({
17194
+ id: string(),
17195
+ deviceId: number().int(),
17196
+ openedAt: number().int(),
17197
+ closedAt: number().int(),
17198
+ timestamp: number().int(),
17199
+ memberCount: number().int(),
17200
+ memberTrackIds: array(string()).readonly(),
17201
+ className: string(),
17202
+ classes: array(string()).readonly(),
17203
+ /** Relative event-media path, or null when the group has no picture yet. */
17204
+ mediaUrl: string().nullable(),
17205
+ singleton: boolean()
17206
+ });
17207
+ var AnalyticsGroupMemberSchema = object({
17208
+ trackId: string(),
17209
+ deviceId: number().int(),
17210
+ className: string(),
17211
+ firstSeen: number().int(),
17212
+ lastSeen: number().int(),
17213
+ mediaUrl: string().nullable()
17214
+ });
17215
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17216
+ var ListGroupsQueryInput = object({
17217
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17218
+ deviceIds: array(number()),
17219
+ /** Window lower bound on `closedAt` (inclusive). */
17220
+ since: number().optional(),
17221
+ /** Window upper bound on `openedAt` (inclusive). */
17222
+ until: number().optional(),
17223
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17224
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17225
+ cursor: string().optional()
17226
+ });
17227
+ var ListGroupsPageSchema = object({
17228
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17229
+ nextCursor: string().nullable()
17230
+ });
17094
17231
  var KeyEventQueryInput = object({
17095
17232
  deviceId: number(),
17096
17233
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17166,7 +17303,9 @@ var TrackCascadeCountsSchema = object({
17166
17303
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17167
17304
  plates: number().int(),
17168
17305
  /** Per-track CLIP search vectors removed (best-effort). */
17169
- embeddings: number().int()
17306
+ embeddings: number().int(),
17307
+ /** Group membership + group rows removed with their last member (best-effort). */
17308
+ groups: number().int()
17170
17309
  });
17171
17310
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17172
17311
  var DiskReconcileCountsSchema = object({
@@ -17312,7 +17451,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17312
17451
  * stationary registry). Default false: the timeline lists passages,
17313
17452
  * not parking records (operator decision, 2026-08-15). */
17314
17453
  includeStationary: boolean().optional()
17315
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17454
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17455
+ deviceId: number(),
17456
+ groupId: string().min(1)
17457
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17316
17458
  kind: "mutation",
17317
17459
  auth: "admin"
17318
17460
  }), 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({
@@ -17394,6 +17536,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17394
17536
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17395
17537
  kind: "mutation",
17396
17538
  auth: "admin"
17539
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17540
+ kind: "mutation",
17541
+ auth: "admin"
17542
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17543
+ kind: "query",
17544
+ auth: "admin"
17545
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17546
+ kind: "mutation",
17547
+ auth: "admin"
17397
17548
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17398
17549
  kind: "query",
17399
17550
  auth: "admin"
@@ -17548,6 +17699,11 @@ object({
17548
17699
  "jpeg"
17549
17700
  ])
17550
17701
  });
17702
+ /**
17703
+ * Process-local frame identity. It is serializable so it can ride an in-process
17704
+ * capability call, but `registryId` deliberately prevents resolution in any
17705
+ * other process or execution group.
17706
+ */
17551
17707
  var FrameRefSchema = object({
17552
17708
  registryId: string().min(1),
17553
17709
  id: string().min(1),
@@ -17622,7 +17778,8 @@ var PipelineModelOptionSchema = object({
17622
17778
  sizeMB: number()
17623
17779
  })),
17624
17780
  group: ModelVariantGroupSchema.optional(),
17625
- legacy: boolean().optional()
17781
+ legacy: boolean().optional(),
17782
+ provider: ModelProviderIdSchema.optional()
17626
17783
  });
17627
17784
  var ConfigFieldBridge = custom();
17628
17785
  var PipelineAddonSchemaSchema = object({
@@ -19856,7 +20013,7 @@ method(object({
19856
20013
  * linking rather than produce an eternal token.
19857
20014
  */
19858
20015
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19859
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
20016
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19860
20017
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19861
20018
  providerId: string().min(1),
19862
20019
  displayName: string().min(1),
@@ -19951,10 +20108,13 @@ var EvictResultSchema = object({
19951
20108
  /** True when the provider has nothing left it is willing to drop on this location. */
19952
20109
  exhausted: boolean()
19953
20110
  });
19954
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20111
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19955
20112
  locationId: string(),
19956
20113
  targetBytes: number().int().positive()
19957
- }), EvictResultSchema, { kind: "mutation" });
20114
+ }), EvictResultSchema, {
20115
+ kind: "mutation",
20116
+ auth: "admin"
20117
+ });
19958
20118
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19959
20119
  kind: "mutation",
19960
20120
  auth: "admin"
@@ -20014,26 +20174,50 @@ var ReadChunkInputSchema = object({
20014
20174
  length: number()
20015
20175
  });
20016
20176
  var EndDownloadInputSchema = object({ downloadId: string() });
20017
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20177
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20018
20178
  location: StorageLocationSchema,
20019
20179
  relativePath: string()
20020
- }), string()), method(object({
20180
+ }), string(), { auth: "admin" }), method(object({
20021
20181
  location: StorageLocationSchema,
20022
20182
  relativePath: string(),
20023
20183
  data: _instanceof(Uint8Array)
20024
- }), _void(), { kind: "mutation" }), method(object({
20184
+ }), _void(), {
20185
+ kind: "mutation",
20186
+ auth: "admin"
20187
+ }), method(object({
20025
20188
  location: StorageLocationSchema,
20026
20189
  relativePath: string()
20027
- }), _instanceof(Uint8Array)), method(object({
20190
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
20028
20191
  location: StorageLocationSchema,
20029
20192
  relativePath: string()
20030
- }), boolean()), method(object({
20193
+ }), boolean(), { auth: "admin" }), method(object({
20031
20194
  location: StorageLocationSchema,
20032
20195
  prefix: string().optional()
20033
- }), array(string()).readonly()), method(object({
20196
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
20034
20197
  location: StorageLocationSchema,
20035
20198
  relativePath: string()
20036
- }), _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" });
20199
+ }), _void(), {
20200
+ kind: "mutation",
20201
+ auth: "admin"
20202
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20203
+ kind: "mutation",
20204
+ auth: "admin"
20205
+ }), method(WriteChunkInputSchema, _void(), {
20206
+ kind: "mutation",
20207
+ auth: "admin"
20208
+ }), method(FinalizeUploadInputSchema, _void(), {
20209
+ kind: "mutation",
20210
+ auth: "admin"
20211
+ }), method(AbortUploadInputSchema, _void(), {
20212
+ kind: "mutation",
20213
+ auth: "admin"
20214
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20215
+ kind: "mutation",
20216
+ auth: "admin"
20217
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20218
+ kind: "mutation",
20219
+ auth: "admin"
20220
+ });
20037
20221
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
20038
20222
  var ProfileSettingsSchemaBridge = unknown().nullable();
20039
20223
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20291,7 +20475,8 @@ method(object({
20291
20475
  access: "create"
20292
20476
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20293
20477
  kind: "mutation",
20294
- access: "view"
20478
+ access: "view",
20479
+ auth: "admin"
20295
20480
  }), method(object({
20296
20481
  /** Required — the user the assertion belongs to (verified). */
20297
20482
  userId: string(),
@@ -20299,10 +20484,12 @@ method(object({
20299
20484
  response: record(string(), unknown())
20300
20485
  }), object({ verified: boolean() }), {
20301
20486
  kind: "mutation",
20302
- access: "view"
20487
+ access: "view",
20488
+ auth: "admin"
20303
20489
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20304
20490
  kind: "mutation",
20305
- access: "view"
20491
+ access: "view",
20492
+ auth: "admin"
20306
20493
  }), method(object({
20307
20494
  /** AuthenticationResponseJSON from the browser. */
20308
20495
  response: record(string(), unknown()) }), object({
@@ -20310,7 +20497,8 @@ response: record(string(), unknown()) }), object({
20310
20497
  userId: string().nullable()
20311
20498
  }), {
20312
20499
  kind: "mutation",
20313
- access: "view"
20500
+ access: "view",
20501
+ auth: "admin"
20314
20502
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20315
20503
  userId: string(),
20316
20504
  credentialId: string()
@@ -20482,7 +20670,19 @@ var VectorStatsResultSchema = object({
20482
20670
  /** False when the backend ranks approximately. */
20483
20671
  exact: boolean()
20484
20672
  });
20485
- 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);
20673
+ method(VectorDeclareIndexInputSchema, _void(), {
20674
+ kind: "mutation",
20675
+ auth: "admin"
20676
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20677
+ kind: "mutation",
20678
+ auth: "admin"
20679
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20680
+ kind: "mutation",
20681
+ auth: "admin"
20682
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20683
+ kind: "mutation",
20684
+ auth: "admin"
20685
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20486
20686
  var ClipSchema = object({
20487
20687
  /** Opaque, provider-namespaced id. The default provider encodes the time
20488
20688
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -22935,7 +23135,27 @@ var MediaFileLiteSchema$1 = object({
22935
23135
  sizeBytes: number(),
22936
23136
  timestamp: number()
22937
23137
  });
22938
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23138
+ method(object({
23139
+ /**
23140
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23141
+ *
23142
+ * Default `false`, the same inversion `listRecentFaces` and
23143
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23144
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23145
+ * on the live hub the same day: four identities cost 40,979 B with the
23146
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23147
+ * four times and the viewer holds at `staleTime: 30_000`.
23148
+ *
23149
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23150
+ * the `event-media` plane serves that key `immutable` with an ETag.
23151
+ *
23152
+ * **This is an INPUT field, so it does not reach the addon until the
23153
+ * next train** — the hub router validates cap inputs against its own
23154
+ * compiled Zod and strips a key it does not know. Until then the
23155
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23156
+ * is what ships, and the opt-in becomes reachable when the train lands.
23157
+ */
23158
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22939
23159
  kind: "mutation",
22940
23160
  auth: "admin"
22941
23161
  }), method(object({
@@ -25869,7 +26089,14 @@ var PlateInfoSchema = object({
25869
26089
  plateBbox: BoundingBoxSchema.optional(),
25870
26090
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
25871
26091
  keyFrameMediaKey: string().optional(),
25872
- base64: string().optional()
26092
+ base64: string().optional(),
26093
+ /**
26094
+ * Same crop as a data-plane URL, always present when the plate has a stored
26095
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
26096
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
26097
+ * left at its `true` default.
26098
+ */
26099
+ cropUrl: string().optional()
25873
26100
  });
25874
26101
  var MediaFileLiteSchema = object({
25875
26102
  key: string(),
@@ -25887,14 +26114,34 @@ var PlateClusterSchema = object({
25887
26114
  });
25888
26115
  method(object({
25889
26116
  deviceId: number().int().optional(),
25890
- limit: number().int().positive().optional()
26117
+ limit: number().int().positive().optional(),
26118
+ /**
26119
+ * Inline the base64 crop on every row. Default `true` — the existing
26120
+ * behaviour, kept so no caller breaks.
26121
+ *
26122
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
26123
+ * Measured on the live hub at the 500 rows the Plates view asks for:
26124
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
26125
+ * metadata without them — and the browser then caches the images.
26126
+ *
26127
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
26128
+ * plates were the one gallery list left without it.
26129
+ *
26130
+ * **This is an INPUT field, so it does not reach the addon until the
26131
+ * next train.** The hub router validates cap inputs against its own
26132
+ * compiled Zod and strips a key it does not know. Until the train
26133
+ * ships, sending `false` is harmless and keeps the crops inline.
26134
+ */
26135
+ includeCrops: boolean().optional()
25891
26136
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
25892
26137
  deviceId: number().int(),
25893
26138
  trackId: string()
25894
26139
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
25895
26140
  text: string().min(1),
25896
26141
  maxDistance: number().int().min(0).optional(),
25897
- limit: number().int().positive().optional()
26142
+ limit: number().int().positive().optional(),
26143
+ /** See `listPlates.includeCrops`. Default `true`. */
26144
+ includeCrops: boolean().optional()
25898
26145
  }), array(PlateInfoSchema).readonly()), method(object({
25899
26146
  maxDistance: number().int().min(0).optional(),
25900
26147
  minClusterSize: number().int().min(2).optional(),
@@ -25908,7 +26155,13 @@ method(object({
25908
26155
  }), method(object({ plateId: string() }), _void(), {
25909
26156
  kind: "mutation",
25910
26157
  auth: "admin"
25911
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26158
+ }), method(object({
26159
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26160
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26161
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26162
+ * INPUT field: stripped by the hub router until the train ships, which
26163
+ * resolves to `false` and is exactly the intended default. */
26164
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
25912
26165
  kind: "mutation",
25913
26166
  auth: "admin"
25914
26167
  }), method(object({
@@ -31839,6 +32092,12 @@ Object.freeze({
31839
32092
  addonId: null,
31840
32093
  access: "view"
31841
32094
  },
32095
+ "deviceManager.getBindingsBatch": {
32096
+ capName: "device-manager",
32097
+ capScope: "system",
32098
+ addonId: null,
32099
+ access: "view"
32100
+ },
31842
32101
  "deviceManager.getChildren": {
31843
32102
  capName: "device-manager",
31844
32103
  capScope: "system",
@@ -31899,6 +32158,12 @@ Object.freeze({
31899
32158
  addonId: null,
31900
32159
  access: "view"
31901
32160
  },
32161
+ "deviceManager.getLinkedDevicesBatch": {
32162
+ capName: "device-manager",
32163
+ capScope: "system",
32164
+ addonId: null,
32165
+ access: "view"
32166
+ },
31902
32167
  "deviceManager.getRoleDisplayDefaults": {
31903
32168
  capName: "device-manager",
31904
32169
  capScope: "system",
@@ -33603,6 +33868,12 @@ Object.freeze({
33603
33868
  addonId: null,
33604
33869
  access: "create"
33605
33870
  },
33871
+ "pipelineAnalytics.cancelRelocateMedia": {
33872
+ capName: "pipeline-analytics",
33873
+ capScope: "device",
33874
+ addonId: null,
33875
+ access: "create"
33876
+ },
33606
33877
  "pipelineAnalytics.cancelStorageMigrationMove": {
33607
33878
  capName: "pipeline-analytics",
33608
33879
  capScope: "device",
@@ -33669,6 +33940,12 @@ Object.freeze({
33669
33940
  addonId: null,
33670
33941
  access: "view"
33671
33942
  },
33943
+ "pipelineAnalytics.getGroup": {
33944
+ capName: "pipeline-analytics",
33945
+ capScope: "device",
33946
+ addonId: null,
33947
+ access: "view"
33948
+ },
33672
33949
  "pipelineAnalytics.getKeyEvents": {
33673
33950
  capName: "pipeline-analytics",
33674
33951
  capScope: "device",
@@ -33753,6 +34030,12 @@ Object.freeze({
33753
34030
  addonId: null,
33754
34031
  access: "view"
33755
34032
  },
34033
+ "pipelineAnalytics.listGroups": {
34034
+ capName: "pipeline-analytics",
34035
+ capScope: "device",
34036
+ addonId: null,
34037
+ access: "view"
34038
+ },
33756
34039
  "pipelineAnalytics.listOpsLog": {
33757
34040
  capName: "pipeline-analytics",
33758
34041
  capScope: "device",
@@ -33765,6 +34048,12 @@ Object.freeze({
33765
34048
  addonId: null,
33766
34049
  access: "view"
33767
34050
  },
34051
+ "pipelineAnalytics.listRelocateMediaJobs": {
34052
+ capName: "pipeline-analytics",
34053
+ capScope: "device",
34054
+ addonId: null,
34055
+ access: "view"
34056
+ },
33768
34057
  "pipelineAnalytics.listRetrainAnnotations": {
33769
34058
  capName: "pipeline-analytics",
33770
34059
  capScope: "device",
@@ -33843,6 +34132,12 @@ Object.freeze({
33843
34132
  addonId: null,
33844
34133
  access: "create"
33845
34134
  },
34135
+ "pipelineAnalytics.relocateMedia": {
34136
+ capName: "pipeline-analytics",
34137
+ capScope: "device",
34138
+ addonId: null,
34139
+ access: "create"
34140
+ },
33846
34141
  "pipelineAnalytics.restageRetrainTrack": {
33847
34142
  capName: "pipeline-analytics",
33848
34143
  capScope: "device",
@@ -36534,6 +36829,11 @@ Object.freeze({
36534
36829
  form: "single",
36535
36830
  optional: false
36536
36831
  }],
36832
+ "deviceManager.getBindingsBatch": [{
36833
+ name: "deviceIds",
36834
+ form: "array",
36835
+ optional: false
36836
+ }],
36537
36837
  "deviceManager.getChildren": [{
36538
36838
  name: "parentDeviceId",
36539
36839
  form: "single",
@@ -36579,6 +36879,11 @@ Object.freeze({
36579
36879
  form: "single",
36580
36880
  optional: false
36581
36881
  }],
36882
+ "deviceManager.getLinkedDevicesBatch": [{
36883
+ name: "deviceIds",
36884
+ form: "array",
36885
+ optional: false
36886
+ }],
36582
36887
  "deviceManager.getSettingsSchema": [{
36583
36888
  name: "deviceId",
36584
36889
  form: "single",
@@ -36599,6 +36904,11 @@ Object.freeze({
36599
36904
  form: "single",
36600
36905
  optional: false
36601
36906
  }],
36907
+ "deviceManager.listAll": [{
36908
+ name: "deviceIds",
36909
+ form: "array",
36910
+ optional: true
36911
+ }],
36602
36912
  "deviceManager.loadConfig": [{
36603
36913
  name: "deviceId",
36604
36914
  form: "single",
@@ -37172,6 +37482,11 @@ Object.freeze({
37172
37482
  form: "single",
37173
37483
  optional: false
37174
37484
  }],
37485
+ "pipelineAnalytics.getGroup": [{
37486
+ name: "deviceId",
37487
+ form: "single",
37488
+ optional: false
37489
+ }],
37175
37490
  "pipelineAnalytics.getKeyEvents": [{
37176
37491
  name: "deviceId",
37177
37492
  form: "single",
@@ -37227,6 +37542,11 @@ Object.freeze({
37227
37542
  form: "array",
37228
37543
  optional: false
37229
37544
  }],
37545
+ "pipelineAnalytics.listGroups": [{
37546
+ name: "deviceIds",
37547
+ form: "array",
37548
+ optional: false
37549
+ }],
37230
37550
  "pipelineAnalytics.listOpsLog": [{
37231
37551
  name: "deviceId",
37232
37552
  form: "single",