@camstack/addon-provider-gree 0.2.26 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +431 -111
  2. package/dist/addon.mjs +431 -111
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5804,6 +5804,13 @@ var BaseAddon = class {
5804
5804
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5805
5805
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5806
5806
  _registeredCapNames = [];
5807
+ /**
5808
+ * True only after `readAddonStore` actually answered. Constructor
5809
+ * defaults look like stored config when the store is down — a forked
5810
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5811
+ * mode, 2026-08-25) is not "the operator chose this".
5812
+ */
5813
+ settingsStoreReady = false;
5807
5814
  /** Default config values. Provided via constructor. */
5808
5815
  defaults;
5809
5816
  constructor(defaults) {
@@ -6204,7 +6211,9 @@ var BaseAddon = class {
6204
6211
  ];
6205
6212
  let lastErr;
6206
6213
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6207
- return await settings.readAddonStore() ?? {};
6214
+ const stored = await settings.readAddonStore() ?? {};
6215
+ this.settingsStoreReady = true;
6216
+ return stored;
6208
6217
  } catch (err) {
6209
6218
  lastErr = err;
6210
6219
  const msg = err instanceof Error ? err.message : String(err);
@@ -6212,6 +6221,7 @@ var BaseAddon = class {
6212
6221
  if (attempt === delaysMs.length) break;
6213
6222
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6214
6223
  }
6224
+ this.settingsStoreReady = false;
6215
6225
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6216
6226
  return {};
6217
6227
  }
@@ -6623,7 +6633,7 @@ function method(input, output, options) {
6623
6633
  input,
6624
6634
  output,
6625
6635
  kind: options?.kind ?? "query",
6626
- auth: options?.auth ?? "protected",
6636
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6627
6637
  ...options?.access !== void 0 ? { access: options.access } : {},
6628
6638
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6629
6639
  timeoutMs: options?.timeoutMs
@@ -6647,7 +6657,7 @@ function event(data) {
6647
6657
  }
6648
6658
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6649
6659
  var VersionOutputSchema$1 = object({ version: string() });
6650
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6660
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6651
6661
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6652
6662
  DeviceType["Camera"] = "camera";
6653
6663
  DeviceType["Hub"] = "hub";
@@ -6968,7 +6978,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6968
6978
  }({});
6969
6979
  var StaticDirOutputSchema = object({ staticDir: string() });
6970
6980
  var VersionOutputSchema = object({ version: string() });
6971
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6981
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6972
6982
  /**
6973
6983
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6974
6984
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7594,24 +7604,6 @@ var RecordingRetentionSchema = object({
7594
7604
  maxSizeGb: number().min(0).optional()
7595
7605
  });
7596
7606
  /**
7597
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7598
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7599
- * previews at. Five graduated steps; absent on a config = `standard` (the
7600
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7601
- *
7602
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7603
- * Each window's index sidecar carries its own tile dims, so a camera whose
7604
- * preset changed over time renders every historical window at the dims it was
7605
- * written with.
7606
- */
7607
- var ScrubThumbnailPresetSchema = _enum([
7608
- "minimal",
7609
- "low",
7610
- "standard",
7611
- "high",
7612
- "max"
7613
- ]);
7614
- /**
7615
7607
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7616
7608
  *
7617
7609
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7619,7 +7611,11 @@ var ScrubThumbnailPresetSchema = _enum([
7619
7611
  * other field is a storage knob (profiles, segment length, retention, scrub).
7620
7612
  *
7621
7613
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7622
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7614
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7615
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7616
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7617
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7618
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7623
7619
  * A stale caller must fail loudly — silently stripping its legacy intent would
7624
7620
  * persist a band-less config, i.e. silently stop recording the camera.
7625
7621
  */
@@ -7642,14 +7638,7 @@ var RecordingConfigSchema = object({
7642
7638
  * "off" is the absence of a covering band, never a band value.
7643
7639
  */
7644
7640
  bands: array(RecordingBandSchema).default([]),
7645
- retention: RecordingRetentionSchema.optional(),
7646
- /**
7647
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7648
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7649
- * windows only — existing sheets are immutable, and each window's index
7650
- * carries its own tile dims so mixed-preset history renders correctly.
7651
- */
7652
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7641
+ retention: RecordingRetentionSchema.optional()
7653
7642
  }).strict();
7654
7643
  /**
7655
7644
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7725,10 +7714,11 @@ var RelocateFootageInputSchema = object({
7725
7714
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7726
7715
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7727
7716
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7728
- var StorageMigrationMediaMoveInputSchema = object({
7717
+ var RelocateMediaInputSchema = object({
7729
7718
  toLocationId: string(),
7730
7719
  throttleMbps: number().min(1).max(1e3).optional()
7731
- }).extend({ leaseId: string().min(1) });
7720
+ });
7721
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7732
7722
  /** The independently selectable logical storage classes. `recordings`
7733
7723
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7734
7724
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8023,7 +8013,26 @@ var LabelDefinitionSchema = object({
8023
8013
  description: string().optional(),
8024
8014
  icon: string().optional()
8025
8015
  });
8026
- var ClassMapDefinitionSchema = object({
8016
+ /**
8017
+ * Wire schema for a per-model CATALOG classMap override
8018
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8019
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8020
+ * detection pipeline executor actually routes.
8021
+ *
8022
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8023
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8024
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8025
+ * enum) — the two used to share the name `ClassMapDefinition`/
8026
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8027
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8028
+ * are not: it is two different concepts colliding on a name. Keep this type
8029
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8030
+ * would either narrow every `ClassMapDefinition` consumer to the four
8031
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8032
+ * schema exists for (see the "rejects a classMap whose target is not a
8033
+ * detection macro" test in `model-catalog-schema.test.ts`).
8034
+ */
8035
+ var DetectionCatalogClassMapSchema = object({
8027
8036
  mapping: record(string(), _enum([
8028
8037
  "person",
8029
8038
  "vehicle",
@@ -8115,6 +8124,12 @@ var ModelVariantGroupSchema = object({
8115
8124
  */
8116
8125
  resolution: number().int().positive().optional()
8117
8126
  });
8127
+ var ModelProviderIdSchema = _enum([
8128
+ "camstack",
8129
+ "frigate",
8130
+ "scrypted",
8131
+ "custom"
8132
+ ]);
8118
8133
  var ModelCatalogEntrySchema = object({
8119
8134
  id: string(),
8120
8135
  name: string(),
@@ -8212,11 +8227,17 @@ var ModelCatalogEntrySchema = object({
8212
8227
  */
8213
8228
  group: ModelVariantGroupSchema.optional(),
8214
8229
  /**
8230
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8231
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8232
+ * persisted before this field existed (`inferModelProvider` fills those).
8233
+ */
8234
+ provider: ModelProviderIdSchema.optional(),
8235
+ /**
8215
8236
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8216
8237
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8217
8238
  * labels already ARE the CamStack macros (Scrypted identity map).
8218
8239
  */
8219
- classMap: ClassMapDefinitionSchema.optional()
8240
+ classMap: DetectionCatalogClassMapSchema.optional()
8220
8241
  });
8221
8242
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8222
8243
  format: literal("openvino"),
@@ -8246,7 +8267,7 @@ var ModelConvertMetadataSchema = object({
8246
8267
  "segmentation"
8247
8268
  ]),
8248
8269
  faceAlignment: boolean().optional(),
8249
- classMap: ClassMapDefinitionSchema.optional()
8270
+ classMap: DetectionCatalogClassMapSchema.optional()
8250
8271
  });
8251
8272
  var ConvertResultSchema = object({
8252
8273
  entry: ModelCatalogEntrySchema,
@@ -9109,7 +9130,7 @@ var AddonPageDeclarationSchema = object({
9109
9130
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9110
9131
  sectionLabel: string().optional()
9111
9132
  });
9112
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9133
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9113
9134
  var AddonHttpRouteSchema = object({
9114
9135
  method: _enum([
9115
9136
  "GET",
@@ -9344,7 +9365,7 @@ var WidgetMetadataSchema = object({
9344
9365
  defaultColumns: number().int().min(1).max(12).default(6),
9345
9366
  defaultRows: number().int().min(1).max(12).default(1)
9346
9367
  });
9347
- method(_void(), array(WidgetMetadataSchema).readonly());
9368
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9348
9369
  /**
9349
9370
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9350
9371
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -10968,7 +10989,7 @@ var CustomModelDescriptorSchema = object({
10968
10989
  stepId: string(),
10969
10990
  entry: ModelCatalogEntrySchema
10970
10991
  });
10971
- method(_void(), array(CustomModelDescriptorSchema).readonly());
10992
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
10972
10993
  /**
10973
10994
  * Query filter for settings-store collections.
10974
10995
  */
@@ -11055,7 +11076,8 @@ method(object({
11055
11076
  }), _void(), { kind: "mutation" }), method(object({
11056
11077
  namespace: string().optional(),
11057
11078
  collection: string(),
11058
- filter: QueryFilterSchema.optional()
11079
+ filter: QueryFilterSchema.optional(),
11080
+ columns: array(string()).readonly().optional()
11059
11081
  }), array(SettingsRecordSchema).readonly()), method(object({
11060
11082
  namespace: string().optional(),
11061
11083
  collection: string(),
@@ -11118,46 +11140,87 @@ var EngineInfoSchema = object({
11118
11140
  kind: _enum(["relational", "vector"]),
11119
11141
  displayName: string()
11120
11142
  });
11121
- method(_void(), EngineInfoSchema), method(object({
11143
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11122
11144
  namespace: string().optional(),
11123
11145
  collection: string(),
11124
11146
  key: string()
11125
- }), unknown()), method(object({
11147
+ }), unknown(), { auth: "admin" }), method(object({
11126
11148
  namespace: string().optional(),
11127
11149
  collection: string(),
11128
11150
  key: string(),
11129
11151
  value: unknown()
11130
- }), _void(), { kind: "mutation" }), method(object({
11152
+ }), _void(), {
11153
+ kind: "mutation",
11154
+ auth: "admin"
11155
+ }), method(object({
11131
11156
  namespace: string().optional(),
11132
11157
  collection: string(),
11133
- filter: QueryFilterSchema.optional()
11134
- }), array(SettingsRecordSchema).readonly()), method(object({
11158
+ filter: QueryFilterSchema.optional(),
11159
+ /**
11160
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11161
+ *
11162
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11163
+ * was wrong — corrected 2026-08-26 after the hop map
11164
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11165
+ * There is **no Zod parse at all** between the door and the engine: the
11166
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11167
+ * field declared here reaches `SqliteSettingsBackend` either way.
11168
+ *
11169
+ * What actually lost `columns` was the THIRD declaration of this shape:
11170
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11171
+ * interface the engine destructures from. The field existed on both
11172
+ * schemas and the engine still never read it, because nothing checks a
11173
+ * registered provider against `InferProvider<cap>` —
11174
+ * `ProviderRegistration.provider` is typed `object`.
11175
+ *
11176
+ * It is declared here anyway, and must stay in step with
11177
+ * `settings-store.query`: a caller reading only the cap definitions has
11178
+ * to be able to see that this call carries a projection.
11179
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11180
+ */
11181
+ columns: array(string()).readonly().optional()
11182
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11135
11183
  namespace: string().optional(),
11136
11184
  collection: string(),
11137
11185
  record: SettingsRecordSchema
11138
- }), _void(), { kind: "mutation" }), method(object({
11186
+ }), _void(), {
11187
+ kind: "mutation",
11188
+ auth: "admin"
11189
+ }), method(object({
11139
11190
  namespace: string().optional(),
11140
11191
  collection: string(),
11141
11192
  id: string(),
11142
11193
  data: record(string(), unknown())
11143
- }), _void(), { kind: "mutation" }), method(object({
11194
+ }), _void(), {
11195
+ kind: "mutation",
11196
+ auth: "admin"
11197
+ }), method(object({
11144
11198
  namespace: string().optional(),
11145
11199
  collection: string(),
11146
11200
  key: string()
11147
- }), _void(), { kind: "mutation" }), method(object({
11201
+ }), _void(), {
11202
+ kind: "mutation",
11203
+ auth: "admin"
11204
+ }), method(object({
11148
11205
  namespace: string().optional(),
11149
11206
  collection: string(),
11150
11207
  filter: MutationFilterSchema
11151
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11208
+ }), object({ deleted: number().int() }), {
11209
+ kind: "mutation",
11210
+ auth: "admin"
11211
+ }), method(object({
11152
11212
  namespace: string().optional(),
11153
11213
  collection: string(),
11154
11214
  filter: MutationFilterSchema,
11155
11215
  data: record(string(), unknown())
11156
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11216
+ }), object({ updated: number().int() }), {
11217
+ kind: "mutation",
11218
+ auth: "admin"
11219
+ }), method(object({
11157
11220
  namespace: string().optional(),
11158
11221
  collection: string(),
11159
11222
  filter: QueryFilterSchema.optional()
11160
- }), number()), method(object({
11223
+ }), number(), { auth: "admin" }), method(object({
11161
11224
  namespace: string().optional(),
11162
11225
  collection: string(),
11163
11226
  field: string(),
@@ -11167,15 +11230,18 @@ method(_void(), EngineInfoSchema), method(object({
11167
11230
  }), array(object({
11168
11231
  bucket: number().int(),
11169
11232
  count: number().int()
11170
- })).readonly()), method(object({
11233
+ })).readonly(), { auth: "admin" }), method(object({
11171
11234
  namespace: string().optional(),
11172
11235
  collection: string()
11173
- }), boolean()), method(object({
11236
+ }), boolean(), { auth: "admin" }), method(object({
11174
11237
  namespace: string().optional(),
11175
11238
  collection: string(),
11176
11239
  columns: array(CollectionColumnSchema).readonly(),
11177
11240
  indexes: array(CollectionIndexSchema).readonly().optional()
11178
- }), _void(), { kind: "mutation" });
11241
+ }), _void(), {
11242
+ kind: "mutation",
11243
+ auth: "admin"
11244
+ });
11179
11245
  /**
11180
11246
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11181
11247
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12003,6 +12069,27 @@ var LinkedDeviceSchema = object({
12003
12069
  features: array(string()),
12004
12070
  producesTrackedEvents: boolean().optional()
12005
12071
  });
12072
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12073
+ * The batch answer needs the tag; the single-device answer already has it
12074
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12075
+ var LinkedDevicesForDeviceSchema = object({
12076
+ deviceId: number(),
12077
+ mode: LinkedDevicesModeSchema,
12078
+ devices: array(LinkedDeviceSchema)
12079
+ });
12080
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12081
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12082
+ * object literal is exactly how the three drift apart. */
12083
+ var DeviceBindingsForDeviceSchema = object({
12084
+ deviceId: number(),
12085
+ entries: array(object({
12086
+ capName: string(),
12087
+ kind: _enum(["native", "wrapped"]),
12088
+ providerAddonId: string(),
12089
+ providerNodeId: string(),
12090
+ nativeAddonId: string()
12091
+ }))
12092
+ });
12006
12093
  var SavedDeviceRowSchema = object({
12007
12094
  /** Numeric id reserved at allocateDeviceId time. */
12008
12095
  id: number(),
@@ -12228,11 +12315,25 @@ method(object({
12228
12315
  projection: _enum(["full", "slim"]).optional(),
12229
12316
  /** Return only camera devices. Filtering server-side instead of
12230
12317
  * shipping 293 rows to find 12. */
12231
- isCamera: boolean().optional()
12318
+ isCamera: boolean().optional(),
12319
+ /**
12320
+ * Return only these device ids. For the caller that already KNOWS the
12321
+ * handful it wants and needs a field the id-bearing answer does not
12322
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12323
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12324
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12325
+ * refetches on the reconcile interval, on a phone.
12326
+ *
12327
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12328
+ * keys rather than rejecting them (verified against the live hub
12329
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12330
+ * it answers today and the caller filters as it already does.
12331
+ */
12332
+ deviceIds: array(number()).optional()
12232
12333
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12233
12334
  mode: LinkedDevicesModeSchema,
12234
12335
  devices: array(LinkedDeviceSchema)
12235
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12336
+ })), 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({
12236
12337
  deviceId: number(),
12237
12338
  values: record(string(), unknown())
12238
12339
  }), object({ success: literal(true) }), {
@@ -12259,25 +12360,7 @@ method(object({
12259
12360
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12260
12361
  kind: "mutation",
12261
12362
  auth: "admin"
12262
- }), method(object({ deviceId: number() }), 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({}), array(object({
12272
- deviceId: number(),
12273
- entries: array(object({
12274
- capName: string(),
12275
- kind: _enum(["native", "wrapped"]),
12276
- providerAddonId: string(),
12277
- providerNodeId: string(),
12278
- nativeAddonId: string()
12279
- }))
12280
- }))), method(object({
12363
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12281
12364
  deviceId: number(),
12282
12365
  capName: string(),
12283
12366
  wrapperAddonId: string(),
@@ -12448,7 +12531,7 @@ method(object({
12448
12531
  crop: _instanceof(Uint8Array),
12449
12532
  width: number(),
12450
12533
  height: number()
12451
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12534
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12452
12535
  /**
12453
12536
  * filesystem-browse — per-node capability for browsing the node's local
12454
12537
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12741,19 +12824,22 @@ method(LlmGenerateBaseInputSchema.extend({
12741
12824
  runtime: ManagedRuntimeConfigSchema,
12742
12825
  /** The managed profile's timeout, threaded by the hub provider. */
12743
12826
  timeoutMs: number().int().positive().optional()
12744
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12827
+ }), LlmGenerateResultSchema, {
12828
+ kind: "mutation",
12829
+ auth: "admin"
12830
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12745
12831
  kind: "mutation",
12746
12832
  auth: "admin"
12747
12833
  }), method(object({}), _void(), {
12748
12834
  kind: "mutation",
12749
12835
  auth: "admin"
12750
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12836
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12751
12837
  kind: "mutation",
12752
12838
  auth: "admin"
12753
12839
  }), method(object({ file: string() }), _void(), {
12754
12840
  kind: "mutation",
12755
12841
  auth: "admin"
12756
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12842
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12757
12843
  /**
12758
12844
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12759
12845
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14687,12 +14773,15 @@ var NcOccupancyConditionSchema = object({
14687
14773
  * there is no second switch that can disagree with the first and every rule
14688
14774
  * authored before the decision migrates for free (`audioModeOf`):
14689
14775
  *
14690
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14691
- * classifier labels with one of them. No window, no percentage:
14692
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14693
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14694
- * the analyzer's (`classificationMinScore`, per device) — a label only
14695
- * reaches this condition if the classifier was already confident enough.
14776
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14777
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14778
+ * `hitPercent` and `samplingSeconds` are still ignored — a percentage of
14779
+ * frames is the wrong question for a classifier that labels 1–3 frames
14780
+ * per episode. The count window is the brake that drops a single-frame
14781
+ * false positive; the rule's own `throttle` cooldown is the other. The
14782
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14783
+ * per device) — a label only reaches this condition if the classifier was
14784
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14696
14785
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14697
14786
  * the condition: at least `hitPercent`% of the samples over
14698
14787
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14719,14 +14808,22 @@ var NcOccupancyConditionSchema = object({
14719
14808
  * an operator who typed `dog` mean the same thing.
14720
14809
  */
14721
14810
  var NcAudioConditionSchema = object({
14722
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14811
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14723
14812
  labels: array(string().min(1)).min(1).optional(),
14724
14813
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14725
14814
  dbThreshold: number().min(-96).max(0).optional(),
14726
14815
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14727
14816
  hitPercent: number().int().min(1).max(100).default(60),
14728
14817
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14729
- samplingSeconds: number().int().min(1).max(300).default(10)
14818
+ samplingSeconds: number().int().min(1).max(300).default(10),
14819
+ /**
14820
+ * LABEL MODE: how many labelled frames must land inside
14821
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14822
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14823
+ */
14824
+ confirmHits: number().int().min(1).max(20).optional(),
14825
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14826
+ confirmWindowSec: number().int().min(1).max(60).optional()
14730
14827
  });
14731
14828
  /**
14732
14829
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16253,7 +16350,7 @@ var OauthIntegrationDescriptorSchema = object({
16253
16350
  */
16254
16351
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16255
16352
  });
16256
- method(_void(), OauthIntegrationDescriptorSchema);
16353
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16257
16354
  /**
16258
16355
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16259
16356
  * per-frame detections emitted by the pipeline runner into tracked
@@ -17100,6 +17197,46 @@ var RecentTracksPageSchema = object({
17100
17197
  /** Cursor for the next page, or null when this page is the last. */
17101
17198
  nextCursor: string().nullable()
17102
17199
  });
17200
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17201
+ var LIST_GROUPS_MAX_LIMIT = 100;
17202
+ var AnalyticsGroupRecordSchema = object({
17203
+ id: string(),
17204
+ deviceId: number().int(),
17205
+ openedAt: number().int(),
17206
+ closedAt: number().int(),
17207
+ timestamp: number().int(),
17208
+ memberCount: number().int(),
17209
+ memberTrackIds: array(string()).readonly(),
17210
+ className: string(),
17211
+ classes: array(string()).readonly(),
17212
+ /** Relative event-media path, or null when the group has no picture yet. */
17213
+ mediaUrl: string().nullable(),
17214
+ singleton: boolean()
17215
+ });
17216
+ var AnalyticsGroupMemberSchema = object({
17217
+ trackId: string(),
17218
+ deviceId: number().int(),
17219
+ className: string(),
17220
+ firstSeen: number().int(),
17221
+ lastSeen: number().int(),
17222
+ mediaUrl: string().nullable()
17223
+ });
17224
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17225
+ var ListGroupsQueryInput = object({
17226
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17227
+ deviceIds: array(number()),
17228
+ /** Window lower bound on `closedAt` (inclusive). */
17229
+ since: number().optional(),
17230
+ /** Window upper bound on `openedAt` (inclusive). */
17231
+ until: number().optional(),
17232
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17233
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17234
+ cursor: string().optional()
17235
+ });
17236
+ var ListGroupsPageSchema = object({
17237
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17238
+ nextCursor: string().nullable()
17239
+ });
17103
17240
  var KeyEventQueryInput = object({
17104
17241
  deviceId: number(),
17105
17242
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17175,7 +17312,9 @@ var TrackCascadeCountsSchema = object({
17175
17312
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17176
17313
  plates: number().int(),
17177
17314
  /** Per-track CLIP search vectors removed (best-effort). */
17178
- embeddings: number().int()
17315
+ embeddings: number().int(),
17316
+ /** Group membership + group rows removed with their last member (best-effort). */
17317
+ groups: number().int()
17179
17318
  });
17180
17319
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17181
17320
  var DiskReconcileCountsSchema = object({
@@ -17321,7 +17460,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17321
17460
  * stationary registry). Default false: the timeline lists passages,
17322
17461
  * not parking records (operator decision, 2026-08-15). */
17323
17462
  includeStationary: boolean().optional()
17324
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17463
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17464
+ deviceId: number(),
17465
+ groupId: string().min(1)
17466
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17325
17467
  kind: "mutation",
17326
17468
  auth: "admin"
17327
17469
  }), 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({
@@ -17403,6 +17545,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17403
17545
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17404
17546
  kind: "mutation",
17405
17547
  auth: "admin"
17548
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17549
+ kind: "mutation",
17550
+ auth: "admin"
17551
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17552
+ kind: "query",
17553
+ auth: "admin"
17554
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17555
+ kind: "mutation",
17556
+ auth: "admin"
17406
17557
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17407
17558
  kind: "query",
17408
17559
  auth: "admin"
@@ -17557,6 +17708,11 @@ object({
17557
17708
  "jpeg"
17558
17709
  ])
17559
17710
  });
17711
+ /**
17712
+ * Process-local frame identity. It is serializable so it can ride an in-process
17713
+ * capability call, but `registryId` deliberately prevents resolution in any
17714
+ * other process or execution group.
17715
+ */
17560
17716
  var FrameRefSchema = object({
17561
17717
  registryId: string().min(1),
17562
17718
  id: string().min(1),
@@ -17631,7 +17787,8 @@ var PipelineModelOptionSchema = object({
17631
17787
  sizeMB: number()
17632
17788
  })),
17633
17789
  group: ModelVariantGroupSchema.optional(),
17634
- legacy: boolean().optional()
17790
+ legacy: boolean().optional(),
17791
+ provider: ModelProviderIdSchema.optional()
17635
17792
  });
17636
17793
  var ConfigFieldBridge = custom();
17637
17794
  var PipelineAddonSchemaSchema = object({
@@ -19761,7 +19918,7 @@ method(object({
19761
19918
  * linking rather than produce an eternal token.
19762
19919
  */
19763
19920
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19764
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
19921
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19765
19922
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19766
19923
  providerId: string().min(1),
19767
19924
  displayName: string().min(1),
@@ -19856,10 +20013,13 @@ var EvictResultSchema = object({
19856
20013
  /** True when the provider has nothing left it is willing to drop on this location. */
19857
20014
  exhausted: boolean()
19858
20015
  });
19859
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
20016
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19860
20017
  locationId: string(),
19861
20018
  targetBytes: number().int().positive()
19862
- }), EvictResultSchema, { kind: "mutation" });
20019
+ }), EvictResultSchema, {
20020
+ kind: "mutation",
20021
+ auth: "admin"
20022
+ });
19863
20023
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19864
20024
  kind: "mutation",
19865
20025
  auth: "admin"
@@ -19919,26 +20079,50 @@ var ReadChunkInputSchema = object({
19919
20079
  length: number()
19920
20080
  });
19921
20081
  var EndDownloadInputSchema = object({ downloadId: string() });
19922
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20082
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19923
20083
  location: StorageLocationSchema,
19924
20084
  relativePath: string()
19925
- }), string()), method(object({
20085
+ }), string(), { auth: "admin" }), method(object({
19926
20086
  location: StorageLocationSchema,
19927
20087
  relativePath: string(),
19928
20088
  data: _instanceof(Uint8Array)
19929
- }), _void(), { kind: "mutation" }), method(object({
20089
+ }), _void(), {
20090
+ kind: "mutation",
20091
+ auth: "admin"
20092
+ }), method(object({
19930
20093
  location: StorageLocationSchema,
19931
20094
  relativePath: string()
19932
- }), _instanceof(Uint8Array)), method(object({
20095
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
19933
20096
  location: StorageLocationSchema,
19934
20097
  relativePath: string()
19935
- }), boolean()), method(object({
20098
+ }), boolean(), { auth: "admin" }), method(object({
19936
20099
  location: StorageLocationSchema,
19937
20100
  prefix: string().optional()
19938
- }), array(string()).readonly()), method(object({
20101
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
19939
20102
  location: StorageLocationSchema,
19940
20103
  relativePath: string()
19941
- }), _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" });
20104
+ }), _void(), {
20105
+ kind: "mutation",
20106
+ auth: "admin"
20107
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20108
+ kind: "mutation",
20109
+ auth: "admin"
20110
+ }), method(WriteChunkInputSchema, _void(), {
20111
+ kind: "mutation",
20112
+ auth: "admin"
20113
+ }), method(FinalizeUploadInputSchema, _void(), {
20114
+ kind: "mutation",
20115
+ auth: "admin"
20116
+ }), method(AbortUploadInputSchema, _void(), {
20117
+ kind: "mutation",
20118
+ auth: "admin"
20119
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20120
+ kind: "mutation",
20121
+ auth: "admin"
20122
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20123
+ kind: "mutation",
20124
+ auth: "admin"
20125
+ });
19942
20126
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
19943
20127
  var ProfileSettingsSchemaBridge = unknown().nullable();
19944
20128
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20196,7 +20380,8 @@ method(object({
20196
20380
  access: "create"
20197
20381
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20198
20382
  kind: "mutation",
20199
- access: "view"
20383
+ access: "view",
20384
+ auth: "admin"
20200
20385
  }), method(object({
20201
20386
  /** Required — the user the assertion belongs to (verified). */
20202
20387
  userId: string(),
@@ -20204,10 +20389,12 @@ method(object({
20204
20389
  response: record(string(), unknown())
20205
20390
  }), object({ verified: boolean() }), {
20206
20391
  kind: "mutation",
20207
- access: "view"
20392
+ access: "view",
20393
+ auth: "admin"
20208
20394
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20209
20395
  kind: "mutation",
20210
- access: "view"
20396
+ access: "view",
20397
+ auth: "admin"
20211
20398
  }), method(object({
20212
20399
  /** AuthenticationResponseJSON from the browser. */
20213
20400
  response: record(string(), unknown()) }), object({
@@ -20215,7 +20402,8 @@ response: record(string(), unknown()) }), object({
20215
20402
  userId: string().nullable()
20216
20403
  }), {
20217
20404
  kind: "mutation",
20218
- access: "view"
20405
+ access: "view",
20406
+ auth: "admin"
20219
20407
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20220
20408
  userId: string(),
20221
20409
  credentialId: string()
@@ -20387,7 +20575,19 @@ var VectorStatsResultSchema = object({
20387
20575
  /** False when the backend ranks approximately. */
20388
20576
  exact: boolean()
20389
20577
  });
20390
- 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);
20578
+ method(VectorDeclareIndexInputSchema, _void(), {
20579
+ kind: "mutation",
20580
+ auth: "admin"
20581
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20582
+ kind: "mutation",
20583
+ auth: "admin"
20584
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20585
+ kind: "mutation",
20586
+ auth: "admin"
20587
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20588
+ kind: "mutation",
20589
+ auth: "admin"
20590
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20391
20591
  var ClipSchema = object({
20392
20592
  /** Opaque, provider-namespaced id. The default provider encodes the time
20393
20593
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -22840,7 +23040,27 @@ var MediaFileLiteSchema$1 = object({
22840
23040
  sizeBytes: number(),
22841
23041
  timestamp: number()
22842
23042
  });
22843
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
23043
+ method(object({
23044
+ /**
23045
+ * Inline {@link IdentitySchema.coverBase64} on every row.
23046
+ *
23047
+ * Default `false`, the same inversion `listRecentFaces` and
23048
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
23049
+ * why the burden belongs on the caller that WANTS the bytes). Measured
23050
+ * on the live hub the same day: four identities cost 40,979 B with the
23051
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
23052
+ * four times and the viewer holds at `staleTime: 30_000`.
23053
+ *
23054
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
23055
+ * the `event-media` plane serves that key `immutable` with an ETag.
23056
+ *
23057
+ * **This is an INPUT field, so it does not reach the addon until the
23058
+ * next train** — the hub router validates cap inputs against its own
23059
+ * compiled Zod and strips a key it does not know. Until then the
23060
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
23061
+ * is what ships, and the opt-in becomes reachable when the train lands.
23062
+ */
23063
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22844
23064
  kind: "mutation",
22845
23065
  auth: "admin"
22846
23066
  }), method(object({
@@ -25728,7 +25948,14 @@ var PlateInfoSchema = object({
25728
25948
  plateBbox: BoundingBoxSchema.optional(),
25729
25949
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
25730
25950
  keyFrameMediaKey: string().optional(),
25731
- base64: string().optional()
25951
+ base64: string().optional(),
25952
+ /**
25953
+ * Same crop as a data-plane URL, always present when the plate has a stored
25954
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
25955
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
25956
+ * left at its `true` default.
25957
+ */
25958
+ cropUrl: string().optional()
25732
25959
  });
25733
25960
  var MediaFileLiteSchema = object({
25734
25961
  key: string(),
@@ -25746,14 +25973,34 @@ var PlateClusterSchema = object({
25746
25973
  });
25747
25974
  method(object({
25748
25975
  deviceId: number().int().optional(),
25749
- limit: number().int().positive().optional()
25976
+ limit: number().int().positive().optional(),
25977
+ /**
25978
+ * Inline the base64 crop on every row. Default `true` — the existing
25979
+ * behaviour, kept so no caller breaks.
25980
+ *
25981
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
25982
+ * Measured on the live hub at the 500 rows the Plates view asks for:
25983
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
25984
+ * metadata without them — and the browser then caches the images.
25985
+ *
25986
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
25987
+ * plates were the one gallery list left without it.
25988
+ *
25989
+ * **This is an INPUT field, so it does not reach the addon until the
25990
+ * next train.** The hub router validates cap inputs against its own
25991
+ * compiled Zod and strips a key it does not know. Until the train
25992
+ * ships, sending `false` is harmless and keeps the crops inline.
25993
+ */
25994
+ includeCrops: boolean().optional()
25750
25995
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
25751
25996
  deviceId: number().int(),
25752
25997
  trackId: string()
25753
25998
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
25754
25999
  text: string().min(1),
25755
26000
  maxDistance: number().int().min(0).optional(),
25756
- limit: number().int().positive().optional()
26001
+ limit: number().int().positive().optional(),
26002
+ /** See `listPlates.includeCrops`. Default `true`. */
26003
+ includeCrops: boolean().optional()
25757
26004
  }), array(PlateInfoSchema).readonly()), method(object({
25758
26005
  maxDistance: number().int().min(0).optional(),
25759
26006
  minClusterSize: number().int().min(2).optional(),
@@ -25767,7 +26014,13 @@ method(object({
25767
26014
  }), method(object({ plateId: string() }), _void(), {
25768
26015
  kind: "mutation",
25769
26016
  auth: "admin"
25770
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
26017
+ }), method(object({
26018
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
26019
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
26020
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
26021
+ * INPUT field: stripped by the hub router until the train ships, which
26022
+ * resolves to `false` and is exactly the intended default. */
26023
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
25771
26024
  kind: "mutation",
25772
26025
  auth: "admin"
25773
26026
  }), method(object({
@@ -31252,6 +31505,12 @@ Object.freeze({
31252
31505
  addonId: null,
31253
31506
  access: "view"
31254
31507
  },
31508
+ "deviceManager.getBindingsBatch": {
31509
+ capName: "device-manager",
31510
+ capScope: "system",
31511
+ addonId: null,
31512
+ access: "view"
31513
+ },
31255
31514
  "deviceManager.getChildren": {
31256
31515
  capName: "device-manager",
31257
31516
  capScope: "system",
@@ -31312,6 +31571,12 @@ Object.freeze({
31312
31571
  addonId: null,
31313
31572
  access: "view"
31314
31573
  },
31574
+ "deviceManager.getLinkedDevicesBatch": {
31575
+ capName: "device-manager",
31576
+ capScope: "system",
31577
+ addonId: null,
31578
+ access: "view"
31579
+ },
31315
31580
  "deviceManager.getRoleDisplayDefaults": {
31316
31581
  capName: "device-manager",
31317
31582
  capScope: "system",
@@ -33016,6 +33281,12 @@ Object.freeze({
33016
33281
  addonId: null,
33017
33282
  access: "create"
33018
33283
  },
33284
+ "pipelineAnalytics.cancelRelocateMedia": {
33285
+ capName: "pipeline-analytics",
33286
+ capScope: "device",
33287
+ addonId: null,
33288
+ access: "create"
33289
+ },
33019
33290
  "pipelineAnalytics.cancelStorageMigrationMove": {
33020
33291
  capName: "pipeline-analytics",
33021
33292
  capScope: "device",
@@ -33082,6 +33353,12 @@ Object.freeze({
33082
33353
  addonId: null,
33083
33354
  access: "view"
33084
33355
  },
33356
+ "pipelineAnalytics.getGroup": {
33357
+ capName: "pipeline-analytics",
33358
+ capScope: "device",
33359
+ addonId: null,
33360
+ access: "view"
33361
+ },
33085
33362
  "pipelineAnalytics.getKeyEvents": {
33086
33363
  capName: "pipeline-analytics",
33087
33364
  capScope: "device",
@@ -33166,6 +33443,12 @@ Object.freeze({
33166
33443
  addonId: null,
33167
33444
  access: "view"
33168
33445
  },
33446
+ "pipelineAnalytics.listGroups": {
33447
+ capName: "pipeline-analytics",
33448
+ capScope: "device",
33449
+ addonId: null,
33450
+ access: "view"
33451
+ },
33169
33452
  "pipelineAnalytics.listOpsLog": {
33170
33453
  capName: "pipeline-analytics",
33171
33454
  capScope: "device",
@@ -33178,6 +33461,12 @@ Object.freeze({
33178
33461
  addonId: null,
33179
33462
  access: "view"
33180
33463
  },
33464
+ "pipelineAnalytics.listRelocateMediaJobs": {
33465
+ capName: "pipeline-analytics",
33466
+ capScope: "device",
33467
+ addonId: null,
33468
+ access: "view"
33469
+ },
33181
33470
  "pipelineAnalytics.listRetrainAnnotations": {
33182
33471
  capName: "pipeline-analytics",
33183
33472
  capScope: "device",
@@ -33256,6 +33545,12 @@ Object.freeze({
33256
33545
  addonId: null,
33257
33546
  access: "create"
33258
33547
  },
33548
+ "pipelineAnalytics.relocateMedia": {
33549
+ capName: "pipeline-analytics",
33550
+ capScope: "device",
33551
+ addonId: null,
33552
+ access: "create"
33553
+ },
33259
33554
  "pipelineAnalytics.restageRetrainTrack": {
33260
33555
  capName: "pipeline-analytics",
33261
33556
  capScope: "device",
@@ -35947,6 +36242,11 @@ Object.freeze({
35947
36242
  form: "single",
35948
36243
  optional: false
35949
36244
  }],
36245
+ "deviceManager.getBindingsBatch": [{
36246
+ name: "deviceIds",
36247
+ form: "array",
36248
+ optional: false
36249
+ }],
35950
36250
  "deviceManager.getChildren": [{
35951
36251
  name: "parentDeviceId",
35952
36252
  form: "single",
@@ -35992,6 +36292,11 @@ Object.freeze({
35992
36292
  form: "single",
35993
36293
  optional: false
35994
36294
  }],
36295
+ "deviceManager.getLinkedDevicesBatch": [{
36296
+ name: "deviceIds",
36297
+ form: "array",
36298
+ optional: false
36299
+ }],
35995
36300
  "deviceManager.getSettingsSchema": [{
35996
36301
  name: "deviceId",
35997
36302
  form: "single",
@@ -36012,6 +36317,11 @@ Object.freeze({
36012
36317
  form: "single",
36013
36318
  optional: false
36014
36319
  }],
36320
+ "deviceManager.listAll": [{
36321
+ name: "deviceIds",
36322
+ form: "array",
36323
+ optional: true
36324
+ }],
36015
36325
  "deviceManager.loadConfig": [{
36016
36326
  name: "deviceId",
36017
36327
  form: "single",
@@ -36585,6 +36895,11 @@ Object.freeze({
36585
36895
  form: "single",
36586
36896
  optional: false
36587
36897
  }],
36898
+ "pipelineAnalytics.getGroup": [{
36899
+ name: "deviceId",
36900
+ form: "single",
36901
+ optional: false
36902
+ }],
36588
36903
  "pipelineAnalytics.getKeyEvents": [{
36589
36904
  name: "deviceId",
36590
36905
  form: "single",
@@ -36640,6 +36955,11 @@ Object.freeze({
36640
36955
  form: "array",
36641
36956
  optional: false
36642
36957
  }],
36958
+ "pipelineAnalytics.listGroups": [{
36959
+ name: "deviceIds",
36960
+ form: "array",
36961
+ optional: false
36962
+ }],
36643
36963
  "pipelineAnalytics.listOpsLog": [{
36644
36964
  name: "deviceId",
36645
36965
  form: "single",