@camstack/addon-export-alexa 1.2.33 → 1.2.35

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.
@@ -5828,6 +5828,13 @@ var BaseAddon = class {
5828
5828
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5829
5829
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5830
5830
  _registeredCapNames = [];
5831
+ /**
5832
+ * True only after `readAddonStore` actually answered. Constructor
5833
+ * defaults look like stored config when the store is down — a forked
5834
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5835
+ * mode, 2026-08-25) is not "the operator chose this".
5836
+ */
5837
+ settingsStoreReady = false;
5831
5838
  /** Default config values. Provided via constructor. */
5832
5839
  defaults;
5833
5840
  constructor(defaults) {
@@ -6228,7 +6235,9 @@ var BaseAddon = class {
6228
6235
  ];
6229
6236
  let lastErr;
6230
6237
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6231
- return await settings.readAddonStore() ?? {};
6238
+ const stored = await settings.readAddonStore() ?? {};
6239
+ this.settingsStoreReady = true;
6240
+ return stored;
6232
6241
  } catch (err) {
6233
6242
  lastErr = err;
6234
6243
  const msg = err instanceof Error ? err.message : String(err);
@@ -6236,6 +6245,7 @@ var BaseAddon = class {
6236
6245
  if (attempt === delaysMs.length) break;
6237
6246
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6238
6247
  }
6248
+ this.settingsStoreReady = false;
6239
6249
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6240
6250
  return {};
6241
6251
  }
@@ -6647,7 +6657,7 @@ function method(input, output, options) {
6647
6657
  input,
6648
6658
  output,
6649
6659
  kind: options?.kind ?? "query",
6650
- auth: options?.auth ?? "protected",
6660
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6651
6661
  ...options?.access !== void 0 ? { access: options.access } : {},
6652
6662
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6653
6663
  timeoutMs: options?.timeoutMs
@@ -6667,7 +6677,7 @@ function systemMethod(input, output, options) {
6667
6677
  }
6668
6678
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6669
6679
  var VersionOutputSchema$1 = object({ version: string() });
6670
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6680
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6671
6681
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6672
6682
  DeviceType["Camera"] = "camera";
6673
6683
  DeviceType["Hub"] = "hub";
@@ -6988,7 +6998,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6988
6998
  }({});
6989
6999
  var StaticDirOutputSchema = object({ staticDir: string() });
6990
7000
  var VersionOutputSchema = object({ version: string() });
6991
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
7001
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6992
7002
  /**
6993
7003
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6994
7004
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7759,24 +7769,6 @@ var RecordingRetentionSchema = object({
7759
7769
  maxSizeGb: number().min(0).optional()
7760
7770
  });
7761
7771
  /**
7762
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7763
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7764
- * previews at. Five graduated steps; absent on a config = `standard` (the
7765
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7766
- *
7767
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7768
- * Each window's index sidecar carries its own tile dims, so a camera whose
7769
- * preset changed over time renders every historical window at the dims it was
7770
- * written with.
7771
- */
7772
- var ScrubThumbnailPresetSchema = _enum([
7773
- "minimal",
7774
- "low",
7775
- "standard",
7776
- "high",
7777
- "max"
7778
- ]);
7779
- /**
7780
7772
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7781
7773
  *
7782
7774
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7784,7 +7776,11 @@ var ScrubThumbnailPresetSchema = _enum([
7784
7776
  * other field is a storage knob (profiles, segment length, retention, scrub).
7785
7777
  *
7786
7778
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7787
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7779
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7780
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7781
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7782
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7783
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7788
7784
  * A stale caller must fail loudly — silently stripping its legacy intent would
7789
7785
  * persist a band-less config, i.e. silently stop recording the camera.
7790
7786
  */
@@ -7807,14 +7803,7 @@ var RecordingConfigSchema = object({
7807
7803
  * "off" is the absence of a covering band, never a band value.
7808
7804
  */
7809
7805
  bands: array(RecordingBandSchema).default([]),
7810
- retention: RecordingRetentionSchema.optional(),
7811
- /**
7812
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7813
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7814
- * windows only — existing sheets are immutable, and each window's index
7815
- * carries its own tile dims so mixed-preset history renders correctly.
7816
- */
7817
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7806
+ retention: RecordingRetentionSchema.optional()
7818
7807
  }).strict();
7819
7808
  /**
7820
7809
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7890,10 +7879,11 @@ var RelocateFootageInputSchema = object({
7890
7879
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7891
7880
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7892
7881
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7893
- var StorageMigrationMediaMoveInputSchema = object({
7882
+ var RelocateMediaInputSchema = object({
7894
7883
  toLocationId: string(),
7895
7884
  throttleMbps: number().min(1).max(1e3).optional()
7896
- }).extend({ leaseId: string().min(1) });
7885
+ });
7886
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7897
7887
  /** The independently selectable logical storage classes. `recordings`
7898
7888
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7899
7889
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8242,7 +8232,26 @@ var LabelDefinitionSchema = object({
8242
8232
  description: string().optional(),
8243
8233
  icon: string().optional()
8244
8234
  });
8245
- var ClassMapDefinitionSchema = object({
8235
+ /**
8236
+ * Wire schema for a per-model CATALOG classMap override
8237
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8238
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8239
+ * detection pipeline executor actually routes.
8240
+ *
8241
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8242
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8243
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8244
+ * enum) — the two used to share the name `ClassMapDefinition`/
8245
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8246
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8247
+ * are not: it is two different concepts colliding on a name. Keep this type
8248
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8249
+ * would either narrow every `ClassMapDefinition` consumer to the four
8250
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8251
+ * schema exists for (see the "rejects a classMap whose target is not a
8252
+ * detection macro" test in `model-catalog-schema.test.ts`).
8253
+ */
8254
+ var DetectionCatalogClassMapSchema = object({
8246
8255
  mapping: record(string(), _enum([
8247
8256
  "person",
8248
8257
  "vehicle",
@@ -8334,6 +8343,12 @@ var ModelVariantGroupSchema = object({
8334
8343
  */
8335
8344
  resolution: number().int().positive().optional()
8336
8345
  });
8346
+ var ModelProviderIdSchema = _enum([
8347
+ "camstack",
8348
+ "frigate",
8349
+ "scrypted",
8350
+ "custom"
8351
+ ]);
8337
8352
  var ModelCatalogEntrySchema = object({
8338
8353
  id: string(),
8339
8354
  name: string(),
@@ -8431,11 +8446,17 @@ var ModelCatalogEntrySchema = object({
8431
8446
  */
8432
8447
  group: ModelVariantGroupSchema.optional(),
8433
8448
  /**
8449
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8450
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8451
+ * persisted before this field existed (`inferModelProvider` fills those).
8452
+ */
8453
+ provider: ModelProviderIdSchema.optional(),
8454
+ /**
8434
8455
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8435
8456
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8436
8457
  * labels already ARE the CamStack macros (Scrypted identity map).
8437
8458
  */
8438
- classMap: ClassMapDefinitionSchema.optional()
8459
+ classMap: DetectionCatalogClassMapSchema.optional()
8439
8460
  });
8440
8461
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8441
8462
  format: literal("openvino"),
@@ -8465,7 +8486,7 @@ var ModelConvertMetadataSchema = object({
8465
8486
  "segmentation"
8466
8487
  ]),
8467
8488
  faceAlignment: boolean().optional(),
8468
- classMap: ClassMapDefinitionSchema.optional()
8489
+ classMap: DetectionCatalogClassMapSchema.optional()
8469
8490
  });
8470
8491
  var ConvertResultSchema = object({
8471
8492
  entry: ModelCatalogEntrySchema,
@@ -9335,7 +9356,7 @@ var AddonPageDeclarationSchema = object({
9335
9356
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9336
9357
  sectionLabel: string().optional()
9337
9358
  });
9338
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9359
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9339
9360
  var AddonHttpRouteSchema = object({
9340
9361
  method: _enum([
9341
9362
  "GET",
@@ -9589,7 +9610,7 @@ var WidgetMetadataSchema = object({
9589
9610
  defaultColumns: number().int().min(1).max(12).default(6),
9590
9611
  defaultRows: number().int().min(1).max(12).default(1)
9591
9612
  });
9592
- method(_void(), array(WidgetMetadataSchema).readonly());
9613
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9593
9614
  /**
9594
9615
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9595
9616
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -11133,7 +11154,7 @@ var CustomModelDescriptorSchema = object({
11133
11154
  stepId: string(),
11134
11155
  entry: ModelCatalogEntrySchema
11135
11156
  });
11136
- method(_void(), array(CustomModelDescriptorSchema).readonly());
11157
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
11137
11158
  /**
11138
11159
  * Query filter for settings-store collections.
11139
11160
  */
@@ -11220,7 +11241,8 @@ method(object({
11220
11241
  }), _void(), { kind: "mutation" }), method(object({
11221
11242
  namespace: string().optional(),
11222
11243
  collection: string(),
11223
- filter: QueryFilterSchema.optional()
11244
+ filter: QueryFilterSchema.optional(),
11245
+ columns: array(string()).readonly().optional()
11224
11246
  }), array(SettingsRecordSchema).readonly()), method(object({
11225
11247
  namespace: string().optional(),
11226
11248
  collection: string(),
@@ -11283,46 +11305,87 @@ var EngineInfoSchema = object({
11283
11305
  kind: _enum(["relational", "vector"]),
11284
11306
  displayName: string()
11285
11307
  });
11286
- method(_void(), EngineInfoSchema), method(object({
11308
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11287
11309
  namespace: string().optional(),
11288
11310
  collection: string(),
11289
11311
  key: string()
11290
- }), unknown()), method(object({
11312
+ }), unknown(), { auth: "admin" }), method(object({
11291
11313
  namespace: string().optional(),
11292
11314
  collection: string(),
11293
11315
  key: string(),
11294
11316
  value: unknown()
11295
- }), _void(), { kind: "mutation" }), method(object({
11317
+ }), _void(), {
11318
+ kind: "mutation",
11319
+ auth: "admin"
11320
+ }), method(object({
11296
11321
  namespace: string().optional(),
11297
11322
  collection: string(),
11298
- filter: QueryFilterSchema.optional()
11299
- }), array(SettingsRecordSchema).readonly()), method(object({
11323
+ filter: QueryFilterSchema.optional(),
11324
+ /**
11325
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11326
+ *
11327
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11328
+ * was wrong — corrected 2026-08-26 after the hop map
11329
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11330
+ * There is **no Zod parse at all** between the door and the engine: the
11331
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11332
+ * field declared here reaches `SqliteSettingsBackend` either way.
11333
+ *
11334
+ * What actually lost `columns` was the THIRD declaration of this shape:
11335
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11336
+ * interface the engine destructures from. The field existed on both
11337
+ * schemas and the engine still never read it, because nothing checks a
11338
+ * registered provider against `InferProvider<cap>` —
11339
+ * `ProviderRegistration.provider` is typed `object`.
11340
+ *
11341
+ * It is declared here anyway, and must stay in step with
11342
+ * `settings-store.query`: a caller reading only the cap definitions has
11343
+ * to be able to see that this call carries a projection.
11344
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11345
+ */
11346
+ columns: array(string()).readonly().optional()
11347
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11300
11348
  namespace: string().optional(),
11301
11349
  collection: string(),
11302
11350
  record: SettingsRecordSchema
11303
- }), _void(), { kind: "mutation" }), method(object({
11351
+ }), _void(), {
11352
+ kind: "mutation",
11353
+ auth: "admin"
11354
+ }), method(object({
11304
11355
  namespace: string().optional(),
11305
11356
  collection: string(),
11306
11357
  id: string(),
11307
11358
  data: record(string(), unknown())
11308
- }), _void(), { kind: "mutation" }), method(object({
11359
+ }), _void(), {
11360
+ kind: "mutation",
11361
+ auth: "admin"
11362
+ }), method(object({
11309
11363
  namespace: string().optional(),
11310
11364
  collection: string(),
11311
11365
  key: string()
11312
- }), _void(), { kind: "mutation" }), method(object({
11366
+ }), _void(), {
11367
+ kind: "mutation",
11368
+ auth: "admin"
11369
+ }), method(object({
11313
11370
  namespace: string().optional(),
11314
11371
  collection: string(),
11315
11372
  filter: MutationFilterSchema
11316
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11373
+ }), object({ deleted: number().int() }), {
11374
+ kind: "mutation",
11375
+ auth: "admin"
11376
+ }), method(object({
11317
11377
  namespace: string().optional(),
11318
11378
  collection: string(),
11319
11379
  filter: MutationFilterSchema,
11320
11380
  data: record(string(), unknown())
11321
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11381
+ }), object({ updated: number().int() }), {
11382
+ kind: "mutation",
11383
+ auth: "admin"
11384
+ }), method(object({
11322
11385
  namespace: string().optional(),
11323
11386
  collection: string(),
11324
11387
  filter: QueryFilterSchema.optional()
11325
- }), number()), method(object({
11388
+ }), number(), { auth: "admin" }), method(object({
11326
11389
  namespace: string().optional(),
11327
11390
  collection: string(),
11328
11391
  field: string(),
@@ -11332,15 +11395,18 @@ method(_void(), EngineInfoSchema), method(object({
11332
11395
  }), array(object({
11333
11396
  bucket: number().int(),
11334
11397
  count: number().int()
11335
- })).readonly()), method(object({
11398
+ })).readonly(), { auth: "admin" }), method(object({
11336
11399
  namespace: string().optional(),
11337
11400
  collection: string()
11338
- }), boolean()), method(object({
11401
+ }), boolean(), { auth: "admin" }), method(object({
11339
11402
  namespace: string().optional(),
11340
11403
  collection: string(),
11341
11404
  columns: array(CollectionColumnSchema).readonly(),
11342
11405
  indexes: array(CollectionIndexSchema).readonly().optional()
11343
- }), _void(), { kind: "mutation" });
11406
+ }), _void(), {
11407
+ kind: "mutation",
11408
+ auth: "admin"
11409
+ });
11344
11410
  /**
11345
11411
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11346
11412
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -12031,6 +12097,27 @@ var LinkedDeviceSchema = object({
12031
12097
  features: array(string()),
12032
12098
  producesTrackedEvents: boolean().optional()
12033
12099
  });
12100
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
12101
+ * The batch answer needs the tag; the single-device answer already has it
12102
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
12103
+ var LinkedDevicesForDeviceSchema = object({
12104
+ deviceId: number(),
12105
+ mode: LinkedDevicesModeSchema,
12106
+ devices: array(LinkedDeviceSchema)
12107
+ });
12108
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
12109
+ * `getAllBindings` all answer in. Declared once: three copies of the same
12110
+ * object literal is exactly how the three drift apart. */
12111
+ var DeviceBindingsForDeviceSchema = object({
12112
+ deviceId: number(),
12113
+ entries: array(object({
12114
+ capName: string(),
12115
+ kind: _enum(["native", "wrapped"]),
12116
+ providerAddonId: string(),
12117
+ providerNodeId: string(),
12118
+ nativeAddonId: string()
12119
+ }))
12120
+ });
12034
12121
  var SavedDeviceRowSchema = object({
12035
12122
  /** Numeric id reserved at allocateDeviceId time. */
12036
12123
  id: number(),
@@ -12256,11 +12343,25 @@ method(object({
12256
12343
  projection: _enum(["full", "slim"]).optional(),
12257
12344
  /** Return only camera devices. Filtering server-side instead of
12258
12345
  * shipping 293 rows to find 12. */
12259
- isCamera: boolean().optional()
12346
+ isCamera: boolean().optional(),
12347
+ /**
12348
+ * Return only these device ids. For the caller that already KNOWS the
12349
+ * handful it wants and needs a field the id-bearing answer does not
12350
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12351
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12352
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12353
+ * refetches on the reconcile interval, on a phone.
12354
+ *
12355
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12356
+ * keys rather than rejecting them (verified against the live hub
12357
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12358
+ * it answers today and the caller filters as it already does.
12359
+ */
12360
+ deviceIds: array(number()).optional()
12260
12361
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12261
12362
  mode: LinkedDevicesModeSchema,
12262
12363
  devices: array(LinkedDeviceSchema)
12263
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12364
+ })), 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({
12264
12365
  deviceId: number(),
12265
12366
  values: record(string(), unknown())
12266
12367
  }), object({ success: literal(true) }), {
@@ -12287,25 +12388,7 @@ method(object({
12287
12388
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12288
12389
  kind: "mutation",
12289
12390
  auth: "admin"
12290
- }), method(object({ deviceId: number() }), object({
12291
- deviceId: number(),
12292
- entries: array(object({
12293
- capName: string(),
12294
- kind: _enum(["native", "wrapped"]),
12295
- providerAddonId: string(),
12296
- providerNodeId: string(),
12297
- nativeAddonId: string()
12298
- }))
12299
- })), method(object({}), array(object({
12300
- deviceId: number(),
12301
- entries: array(object({
12302
- capName: string(),
12303
- kind: _enum(["native", "wrapped"]),
12304
- providerAddonId: string(),
12305
- providerNodeId: string(),
12306
- nativeAddonId: string()
12307
- }))
12308
- }))), method(object({
12391
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12309
12392
  deviceId: number(),
12310
12393
  capName: string(),
12311
12394
  wrapperAddonId: string(),
@@ -12476,7 +12559,7 @@ method(object({
12476
12559
  crop: _instanceof(Uint8Array),
12477
12560
  width: number(),
12478
12561
  height: number()
12479
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12562
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12480
12563
  /**
12481
12564
  * filesystem-browse — per-node capability for browsing the node's local
12482
12565
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12769,19 +12852,22 @@ method(LlmGenerateBaseInputSchema.extend({
12769
12852
  runtime: ManagedRuntimeConfigSchema,
12770
12853
  /** The managed profile's timeout, threaded by the hub provider. */
12771
12854
  timeoutMs: number().int().positive().optional()
12772
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12855
+ }), LlmGenerateResultSchema, {
12856
+ kind: "mutation",
12857
+ auth: "admin"
12858
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12773
12859
  kind: "mutation",
12774
12860
  auth: "admin"
12775
12861
  }), method(object({}), _void(), {
12776
12862
  kind: "mutation",
12777
12863
  auth: "admin"
12778
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12864
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12779
12865
  kind: "mutation",
12780
12866
  auth: "admin"
12781
12867
  }), method(object({ file: string() }), _void(), {
12782
12868
  kind: "mutation",
12783
12869
  auth: "admin"
12784
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12870
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12785
12871
  /**
12786
12872
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12787
12873
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14677,12 +14763,15 @@ var NcOccupancyConditionSchema = object({
14677
14763
  * there is no second switch that can disagree with the first and every rule
14678
14764
  * authored before the decision migrates for free (`audioModeOf`):
14679
14765
  *
14680
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14681
- * classifier labels with one of them. No window, no percentage:
14682
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14683
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14684
- * the analyzer's (`classificationMinScore`, per device) — a label only
14685
- * reaches this condition if the classifier was already confident enough.
14766
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14767
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14768
+ * `hitPercent` and `samplingSeconds` are still ignored — a percentage of
14769
+ * frames is the wrong question for a classifier that labels 1–3 frames
14770
+ * per episode. The count window is the brake that drops a single-frame
14771
+ * false positive; the rule's own `throttle` cooldown is the other. The
14772
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14773
+ * per device) — a label only reaches this condition if the classifier was
14774
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14686
14775
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14687
14776
  * the condition: at least `hitPercent`% of the samples over
14688
14777
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14709,14 +14798,22 @@ var NcOccupancyConditionSchema = object({
14709
14798
  * an operator who typed `dog` mean the same thing.
14710
14799
  */
14711
14800
  var NcAudioConditionSchema = object({
14712
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14801
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14713
14802
  labels: array(string().min(1)).min(1).optional(),
14714
14803
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14715
14804
  dbThreshold: number().min(-96).max(0).optional(),
14716
14805
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14717
14806
  hitPercent: number().int().min(1).max(100).default(60),
14718
14807
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14719
- samplingSeconds: number().int().min(1).max(300).default(10)
14808
+ samplingSeconds: number().int().min(1).max(300).default(10),
14809
+ /**
14810
+ * LABEL MODE: how many labelled frames must land inside
14811
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14812
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14813
+ */
14814
+ confirmHits: number().int().min(1).max(20).optional(),
14815
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14816
+ confirmWindowSec: number().int().min(1).max(60).optional()
14720
14817
  });
14721
14818
  /**
14722
14819
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16248,7 +16345,17 @@ var oauthIntegrationCapability = {
16248
16345
  scope: "system",
16249
16346
  mode: "collection",
16250
16347
  internal: true,
16251
- methods: { getDescriptor: method(_void(), OauthIntegrationDescriptorSchema) }
16348
+ methods: {
16349
+ /**
16350
+ * `internal: true` did not gate the mount (see the 2026-08-26 note on
16351
+ * `data-store-provider`) — `getDescriptor` was reachable on the AppRouter
16352
+ * by ANY authenticated session at the default `auth: 'protected'`. The
16353
+ * real caller is `/api/oauth2/authorize` and `/api/oauth2/integrations`
16354
+ * (`oauth2-routes.ts`), which resolve the provider directly off the
16355
+ * capability registry — never through tRPC. `auth: 'admin'` closes the
16356
+ * tRPC surface without touching that path.
16357
+ */
16358
+ getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
16252
16359
  };
16253
16360
  /**
16254
16361
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
@@ -17096,6 +17203,46 @@ var RecentTracksPageSchema = object({
17096
17203
  /** Cursor for the next page, or null when this page is the last. */
17097
17204
  nextCursor: string().nullable()
17098
17205
  });
17206
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17207
+ var LIST_GROUPS_MAX_LIMIT = 100;
17208
+ var AnalyticsGroupRecordSchema = object({
17209
+ id: string(),
17210
+ deviceId: number().int(),
17211
+ openedAt: number().int(),
17212
+ closedAt: number().int(),
17213
+ timestamp: number().int(),
17214
+ memberCount: number().int(),
17215
+ memberTrackIds: array(string()).readonly(),
17216
+ className: string(),
17217
+ classes: array(string()).readonly(),
17218
+ /** Relative event-media path, or null when the group has no picture yet. */
17219
+ mediaUrl: string().nullable(),
17220
+ singleton: boolean()
17221
+ });
17222
+ var AnalyticsGroupMemberSchema = object({
17223
+ trackId: string(),
17224
+ deviceId: number().int(),
17225
+ className: string(),
17226
+ firstSeen: number().int(),
17227
+ lastSeen: number().int(),
17228
+ mediaUrl: string().nullable()
17229
+ });
17230
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17231
+ var ListGroupsQueryInput = object({
17232
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17233
+ deviceIds: array(number()),
17234
+ /** Window lower bound on `closedAt` (inclusive). */
17235
+ since: number().optional(),
17236
+ /** Window upper bound on `openedAt` (inclusive). */
17237
+ until: number().optional(),
17238
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17239
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17240
+ cursor: string().optional()
17241
+ });
17242
+ var ListGroupsPageSchema = object({
17243
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17244
+ nextCursor: string().nullable()
17245
+ });
17099
17246
  var KeyEventQueryInput = object({
17100
17247
  deviceId: number(),
17101
17248
  /** Window lower bound (track firstSeen ≥ since). */
@@ -17171,7 +17318,9 @@ var TrackCascadeCountsSchema = object({
17171
17318
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
17172
17319
  plates: number().int(),
17173
17320
  /** Per-track CLIP search vectors removed (best-effort). */
17174
- embeddings: number().int()
17321
+ embeddings: number().int(),
17322
+ /** Group membership + group rows removed with their last member (best-effort). */
17323
+ groups: number().int()
17175
17324
  });
17176
17325
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17177
17326
  var DiskReconcileCountsSchema = object({
@@ -17317,7 +17466,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17317
17466
  * stationary registry). Default false: the timeline lists passages,
17318
17467
  * not parking records (operator decision, 2026-08-15). */
17319
17468
  includeStationary: boolean().optional()
17320
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17469
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17470
+ deviceId: number(),
17471
+ groupId: string().min(1)
17472
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17321
17473
  kind: "mutation",
17322
17474
  auth: "admin"
17323
17475
  }), 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({
@@ -17399,6 +17551,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17399
17551
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17400
17552
  kind: "mutation",
17401
17553
  auth: "admin"
17554
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17555
+ kind: "mutation",
17556
+ auth: "admin"
17557
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17558
+ kind: "query",
17559
+ auth: "admin"
17560
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17561
+ kind: "mutation",
17562
+ auth: "admin"
17402
17563
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17403
17564
  kind: "query",
17404
17565
  auth: "admin"
@@ -17553,6 +17714,11 @@ object({
17553
17714
  "jpeg"
17554
17715
  ])
17555
17716
  });
17717
+ /**
17718
+ * Process-local frame identity. It is serializable so it can ride an in-process
17719
+ * capability call, but `registryId` deliberately prevents resolution in any
17720
+ * other process or execution group.
17721
+ */
17556
17722
  var FrameRefSchema = object({
17557
17723
  registryId: string().min(1),
17558
17724
  id: string().min(1),
@@ -17627,7 +17793,8 @@ var PipelineModelOptionSchema = object({
17627
17793
  sizeMB: number()
17628
17794
  })),
17629
17795
  group: ModelVariantGroupSchema.optional(),
17630
- legacy: boolean().optional()
17796
+ legacy: boolean().optional(),
17797
+ provider: ModelProviderIdSchema.optional()
17631
17798
  });
17632
17799
  var ConfigFieldBridge = custom();
17633
17800
  var PipelineAddonSchemaSchema = object({
@@ -19717,7 +19884,7 @@ method(object({
19717
19884
  * linking rather than produce an eternal token.
19718
19885
  */
19719
19886
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19720
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
19887
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19721
19888
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19722
19889
  providerId: string().min(1),
19723
19890
  displayName: string().min(1),
@@ -19812,10 +19979,13 @@ var EvictResultSchema = object({
19812
19979
  /** True when the provider has nothing left it is willing to drop on this location. */
19813
19980
  exhausted: boolean()
19814
19981
  });
19815
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
19982
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19816
19983
  locationId: string(),
19817
19984
  targetBytes: number().int().positive()
19818
- }), EvictResultSchema, { kind: "mutation" });
19985
+ }), EvictResultSchema, {
19986
+ kind: "mutation",
19987
+ auth: "admin"
19988
+ });
19819
19989
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19820
19990
  kind: "mutation",
19821
19991
  auth: "admin"
@@ -19875,26 +20045,50 @@ var ReadChunkInputSchema = object({
19875
20045
  length: number()
19876
20046
  });
19877
20047
  var EndDownloadInputSchema = object({ downloadId: string() });
19878
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
20048
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19879
20049
  location: StorageLocationSchema,
19880
20050
  relativePath: string()
19881
- }), string()), method(object({
20051
+ }), string(), { auth: "admin" }), method(object({
19882
20052
  location: StorageLocationSchema,
19883
20053
  relativePath: string(),
19884
20054
  data: _instanceof(Uint8Array)
19885
- }), _void(), { kind: "mutation" }), method(object({
20055
+ }), _void(), {
20056
+ kind: "mutation",
20057
+ auth: "admin"
20058
+ }), method(object({
19886
20059
  location: StorageLocationSchema,
19887
20060
  relativePath: string()
19888
- }), _instanceof(Uint8Array)), method(object({
20061
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
19889
20062
  location: StorageLocationSchema,
19890
20063
  relativePath: string()
19891
- }), boolean()), method(object({
20064
+ }), boolean(), { auth: "admin" }), method(object({
19892
20065
  location: StorageLocationSchema,
19893
20066
  prefix: string().optional()
19894
- }), array(string()).readonly()), method(object({
20067
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
19895
20068
  location: StorageLocationSchema,
19896
20069
  relativePath: string()
19897
- }), _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" });
20070
+ }), _void(), {
20071
+ kind: "mutation",
20072
+ auth: "admin"
20073
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
20074
+ kind: "mutation",
20075
+ auth: "admin"
20076
+ }), method(WriteChunkInputSchema, _void(), {
20077
+ kind: "mutation",
20078
+ auth: "admin"
20079
+ }), method(FinalizeUploadInputSchema, _void(), {
20080
+ kind: "mutation",
20081
+ auth: "admin"
20082
+ }), method(AbortUploadInputSchema, _void(), {
20083
+ kind: "mutation",
20084
+ auth: "admin"
20085
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
20086
+ kind: "mutation",
20087
+ auth: "admin"
20088
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
20089
+ kind: "mutation",
20090
+ auth: "admin"
20091
+ });
19898
20092
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
19899
20093
  var ProfileSettingsSchemaBridge = unknown().nullable();
19900
20094
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20152,7 +20346,8 @@ method(object({
20152
20346
  access: "create"
20153
20347
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20154
20348
  kind: "mutation",
20155
- access: "view"
20349
+ access: "view",
20350
+ auth: "admin"
20156
20351
  }), method(object({
20157
20352
  /** Required — the user the assertion belongs to (verified). */
20158
20353
  userId: string(),
@@ -20160,10 +20355,12 @@ method(object({
20160
20355
  response: record(string(), unknown())
20161
20356
  }), object({ verified: boolean() }), {
20162
20357
  kind: "mutation",
20163
- access: "view"
20358
+ access: "view",
20359
+ auth: "admin"
20164
20360
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20165
20361
  kind: "mutation",
20166
- access: "view"
20362
+ access: "view",
20363
+ auth: "admin"
20167
20364
  }), method(object({
20168
20365
  /** AuthenticationResponseJSON from the browser. */
20169
20366
  response: record(string(), unknown()) }), object({
@@ -20171,7 +20368,8 @@ response: record(string(), unknown()) }), object({
20171
20368
  userId: string().nullable()
20172
20369
  }), {
20173
20370
  kind: "mutation",
20174
- access: "view"
20371
+ access: "view",
20372
+ auth: "admin"
20175
20373
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20176
20374
  userId: string(),
20177
20375
  credentialId: string()
@@ -20343,7 +20541,19 @@ var VectorStatsResultSchema = object({
20343
20541
  /** False when the backend ranks approximately. */
20344
20542
  exact: boolean()
20345
20543
  });
20346
- 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);
20544
+ method(VectorDeclareIndexInputSchema, _void(), {
20545
+ kind: "mutation",
20546
+ auth: "admin"
20547
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20548
+ kind: "mutation",
20549
+ auth: "admin"
20550
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20551
+ kind: "mutation",
20552
+ auth: "admin"
20553
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20554
+ kind: "mutation",
20555
+ auth: "admin"
20556
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20347
20557
  var ClipSchema = object({
20348
20558
  /** Opaque, provider-namespaced id. The default provider encodes the time
20349
20559
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -22066,7 +22276,27 @@ var MediaFileLiteSchema$1 = object({
22066
22276
  sizeBytes: number(),
22067
22277
  timestamp: number()
22068
22278
  });
22069
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22279
+ method(object({
22280
+ /**
22281
+ * Inline {@link IdentitySchema.coverBase64} on every row.
22282
+ *
22283
+ * Default `false`, the same inversion `listRecentFaces` and
22284
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
22285
+ * why the burden belongs on the caller that WANTS the bytes). Measured
22286
+ * on the live hub the same day: four identities cost 40,979 B with the
22287
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
22288
+ * four times and the viewer holds at `staleTime: 30_000`.
22289
+ *
22290
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
22291
+ * the `event-media` plane serves that key `immutable` with an ETag.
22292
+ *
22293
+ * **This is an INPUT field, so it does not reach the addon until the
22294
+ * next train** — the hub router validates cap inputs against its own
22295
+ * compiled Zod and strips a key it does not know. Until then the
22296
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
22297
+ * is what ships, and the opt-in becomes reachable when the train lands.
22298
+ */
22299
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22070
22300
  kind: "mutation",
22071
22301
  auth: "admin"
22072
22302
  }), method(object({
@@ -24211,7 +24441,14 @@ var PlateInfoSchema = object({
24211
24441
  plateBbox: BoundingBoxSchema.optional(),
24212
24442
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
24213
24443
  keyFrameMediaKey: string().optional(),
24214
- base64: string().optional()
24444
+ base64: string().optional(),
24445
+ /**
24446
+ * Same crop as a data-plane URL, always present when the plate has a stored
24447
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
24448
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
24449
+ * left at its `true` default.
24450
+ */
24451
+ cropUrl: string().optional()
24215
24452
  });
24216
24453
  var MediaFileLiteSchema = object({
24217
24454
  key: string(),
@@ -24229,14 +24466,34 @@ var PlateClusterSchema = object({
24229
24466
  });
24230
24467
  method(object({
24231
24468
  deviceId: number().int().optional(),
24232
- limit: number().int().positive().optional()
24469
+ limit: number().int().positive().optional(),
24470
+ /**
24471
+ * Inline the base64 crop on every row. Default `true` — the existing
24472
+ * behaviour, kept so no caller breaks.
24473
+ *
24474
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
24475
+ * Measured on the live hub at the 500 rows the Plates view asks for:
24476
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
24477
+ * metadata without them — and the browser then caches the images.
24478
+ *
24479
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
24480
+ * plates were the one gallery list left without it.
24481
+ *
24482
+ * **This is an INPUT field, so it does not reach the addon until the
24483
+ * next train.** The hub router validates cap inputs against its own
24484
+ * compiled Zod and strips a key it does not know. Until the train
24485
+ * ships, sending `false` is harmless and keeps the crops inline.
24486
+ */
24487
+ includeCrops: boolean().optional()
24233
24488
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
24234
24489
  deviceId: number().int(),
24235
24490
  trackId: string()
24236
24491
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
24237
24492
  text: string().min(1),
24238
24493
  maxDistance: number().int().min(0).optional(),
24239
- limit: number().int().positive().optional()
24494
+ limit: number().int().positive().optional(),
24495
+ /** See `listPlates.includeCrops`. Default `true`. */
24496
+ includeCrops: boolean().optional()
24240
24497
  }), array(PlateInfoSchema).readonly()), method(object({
24241
24498
  maxDistance: number().int().min(0).optional(),
24242
24499
  minClusterSize: number().int().min(2).optional(),
@@ -24250,7 +24507,13 @@ method(object({
24250
24507
  }), method(object({ plateId: string() }), _void(), {
24251
24508
  kind: "mutation",
24252
24509
  auth: "admin"
24253
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24510
+ }), method(object({
24511
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
24512
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
24513
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
24514
+ * INPUT field: stripped by the hub router until the train ships, which
24515
+ * resolves to `false` and is exactly the intended default. */
24516
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24254
24517
  kind: "mutation",
24255
24518
  auth: "admin"
24256
24519
  }), method(object({
@@ -27851,6 +28114,12 @@ Object.freeze({
27851
28114
  addonId: null,
27852
28115
  access: "view"
27853
28116
  },
28117
+ "deviceManager.getBindingsBatch": {
28118
+ capName: "device-manager",
28119
+ capScope: "system",
28120
+ addonId: null,
28121
+ access: "view"
28122
+ },
27854
28123
  "deviceManager.getChildren": {
27855
28124
  capName: "device-manager",
27856
28125
  capScope: "system",
@@ -27911,6 +28180,12 @@ Object.freeze({
27911
28180
  addonId: null,
27912
28181
  access: "view"
27913
28182
  },
28183
+ "deviceManager.getLinkedDevicesBatch": {
28184
+ capName: "device-manager",
28185
+ capScope: "system",
28186
+ addonId: null,
28187
+ access: "view"
28188
+ },
27914
28189
  "deviceManager.getRoleDisplayDefaults": {
27915
28190
  capName: "device-manager",
27916
28191
  capScope: "system",
@@ -29615,6 +29890,12 @@ Object.freeze({
29615
29890
  addonId: null,
29616
29891
  access: "create"
29617
29892
  },
29893
+ "pipelineAnalytics.cancelRelocateMedia": {
29894
+ capName: "pipeline-analytics",
29895
+ capScope: "device",
29896
+ addonId: null,
29897
+ access: "create"
29898
+ },
29618
29899
  "pipelineAnalytics.cancelStorageMigrationMove": {
29619
29900
  capName: "pipeline-analytics",
29620
29901
  capScope: "device",
@@ -29681,6 +29962,12 @@ Object.freeze({
29681
29962
  addonId: null,
29682
29963
  access: "view"
29683
29964
  },
29965
+ "pipelineAnalytics.getGroup": {
29966
+ capName: "pipeline-analytics",
29967
+ capScope: "device",
29968
+ addonId: null,
29969
+ access: "view"
29970
+ },
29684
29971
  "pipelineAnalytics.getKeyEvents": {
29685
29972
  capName: "pipeline-analytics",
29686
29973
  capScope: "device",
@@ -29765,6 +30052,12 @@ Object.freeze({
29765
30052
  addonId: null,
29766
30053
  access: "view"
29767
30054
  },
30055
+ "pipelineAnalytics.listGroups": {
30056
+ capName: "pipeline-analytics",
30057
+ capScope: "device",
30058
+ addonId: null,
30059
+ access: "view"
30060
+ },
29768
30061
  "pipelineAnalytics.listOpsLog": {
29769
30062
  capName: "pipeline-analytics",
29770
30063
  capScope: "device",
@@ -29777,6 +30070,12 @@ Object.freeze({
29777
30070
  addonId: null,
29778
30071
  access: "view"
29779
30072
  },
30073
+ "pipelineAnalytics.listRelocateMediaJobs": {
30074
+ capName: "pipeline-analytics",
30075
+ capScope: "device",
30076
+ addonId: null,
30077
+ access: "view"
30078
+ },
29780
30079
  "pipelineAnalytics.listRetrainAnnotations": {
29781
30080
  capName: "pipeline-analytics",
29782
30081
  capScope: "device",
@@ -29855,6 +30154,12 @@ Object.freeze({
29855
30154
  addonId: null,
29856
30155
  access: "create"
29857
30156
  },
30157
+ "pipelineAnalytics.relocateMedia": {
30158
+ capName: "pipeline-analytics",
30159
+ capScope: "device",
30160
+ addonId: null,
30161
+ access: "create"
30162
+ },
29858
30163
  "pipelineAnalytics.restageRetrainTrack": {
29859
30164
  capName: "pipeline-analytics",
29860
30165
  capScope: "device",
@@ -32546,6 +32851,11 @@ Object.freeze({
32546
32851
  form: "single",
32547
32852
  optional: false
32548
32853
  }],
32854
+ "deviceManager.getBindingsBatch": [{
32855
+ name: "deviceIds",
32856
+ form: "array",
32857
+ optional: false
32858
+ }],
32549
32859
  "deviceManager.getChildren": [{
32550
32860
  name: "parentDeviceId",
32551
32861
  form: "single",
@@ -32591,6 +32901,11 @@ Object.freeze({
32591
32901
  form: "single",
32592
32902
  optional: false
32593
32903
  }],
32904
+ "deviceManager.getLinkedDevicesBatch": [{
32905
+ name: "deviceIds",
32906
+ form: "array",
32907
+ optional: false
32908
+ }],
32594
32909
  "deviceManager.getSettingsSchema": [{
32595
32910
  name: "deviceId",
32596
32911
  form: "single",
@@ -32611,6 +32926,11 @@ Object.freeze({
32611
32926
  form: "single",
32612
32927
  optional: false
32613
32928
  }],
32929
+ "deviceManager.listAll": [{
32930
+ name: "deviceIds",
32931
+ form: "array",
32932
+ optional: true
32933
+ }],
32614
32934
  "deviceManager.loadConfig": [{
32615
32935
  name: "deviceId",
32616
32936
  form: "single",
@@ -33184,6 +33504,11 @@ Object.freeze({
33184
33504
  form: "single",
33185
33505
  optional: false
33186
33506
  }],
33507
+ "pipelineAnalytics.getGroup": [{
33508
+ name: "deviceId",
33509
+ form: "single",
33510
+ optional: false
33511
+ }],
33187
33512
  "pipelineAnalytics.getKeyEvents": [{
33188
33513
  name: "deviceId",
33189
33514
  form: "single",
@@ -33239,6 +33564,11 @@ Object.freeze({
33239
33564
  form: "array",
33240
33565
  optional: false
33241
33566
  }],
33567
+ "pipelineAnalytics.listGroups": [{
33568
+ name: "deviceIds",
33569
+ form: "array",
33570
+ optional: false
33571
+ }],
33242
33572
  "pipelineAnalytics.listOpsLog": [{
33243
33573
  name: "deviceId",
33244
33574
  form: "single",