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