@camstack/addon-decoder-ffmpeg 1.2.26 → 1.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/index.js +431 -111
  2. package/dist/index.mjs +431 -111
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -5802,6 +5802,13 @@ var BaseAddon = class {
5802
5802
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5803
5803
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5804
5804
  _registeredCapNames = [];
5805
+ /**
5806
+ * True only after `readAddonStore` actually answered. Constructor
5807
+ * defaults look like stored config when the store is down — a forked
5808
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5809
+ * mode, 2026-08-25) is not "the operator chose this".
5810
+ */
5811
+ settingsStoreReady = false;
5805
5812
  /** Default config values. Provided via constructor. */
5806
5813
  defaults;
5807
5814
  constructor(defaults) {
@@ -6202,7 +6209,9 @@ var BaseAddon = class {
6202
6209
  ];
6203
6210
  let lastErr;
6204
6211
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6205
- return await settings.readAddonStore() ?? {};
6212
+ const stored = await settings.readAddonStore() ?? {};
6213
+ this.settingsStoreReady = true;
6214
+ return stored;
6206
6215
  } catch (err) {
6207
6216
  lastErr = err;
6208
6217
  const msg = err instanceof Error ? err.message : String(err);
@@ -6210,6 +6219,7 @@ var BaseAddon = class {
6210
6219
  if (attempt === delaysMs.length) break;
6211
6220
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6212
6221
  }
6222
+ this.settingsStoreReady = false;
6213
6223
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6214
6224
  return {};
6215
6225
  }
@@ -6621,7 +6631,7 @@ function method(input, output, options) {
6621
6631
  input,
6622
6632
  output,
6623
6633
  kind: options?.kind ?? "query",
6624
- auth: options?.auth ?? "protected",
6634
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6625
6635
  ...options?.access !== void 0 ? { access: options.access } : {},
6626
6636
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6627
6637
  timeoutMs: options?.timeoutMs
@@ -6641,7 +6651,7 @@ function systemMethod(input, output, options) {
6641
6651
  }
6642
6652
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6643
6653
  var VersionOutputSchema$1 = object({ version: string() });
6644
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6654
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6645
6655
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6646
6656
  DeviceType["Camera"] = "camera";
6647
6657
  DeviceType["Hub"] = "hub";
@@ -6962,7 +6972,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6962
6972
  }({});
6963
6973
  var StaticDirOutputSchema = object({ staticDir: string() });
6964
6974
  var VersionOutputSchema = object({ version: string() });
6965
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6975
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6966
6976
  /**
6967
6977
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6968
6978
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7588,24 +7598,6 @@ var RecordingRetentionSchema = object({
7588
7598
  maxSizeGb: number().min(0).optional()
7589
7599
  });
7590
7600
  /**
7591
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7592
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7593
- * previews at. Five graduated steps; absent on a config = `standard` (the
7594
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7595
- *
7596
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7597
- * Each window's index sidecar carries its own tile dims, so a camera whose
7598
- * preset changed over time renders every historical window at the dims it was
7599
- * written with.
7600
- */
7601
- var ScrubThumbnailPresetSchema = _enum([
7602
- "minimal",
7603
- "low",
7604
- "standard",
7605
- "high",
7606
- "max"
7607
- ]);
7608
- /**
7609
7601
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7610
7602
  *
7611
7603
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7613,7 +7605,11 @@ var ScrubThumbnailPresetSchema = _enum([
7613
7605
  * other field is a storage knob (profiles, segment length, retention, scrub).
7614
7606
  *
7615
7607
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7616
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7608
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7609
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7610
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7611
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7612
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7617
7613
  * A stale caller must fail loudly — silently stripping its legacy intent would
7618
7614
  * persist a band-less config, i.e. silently stop recording the camera.
7619
7615
  */
@@ -7636,14 +7632,7 @@ var RecordingConfigSchema = object({
7636
7632
  * "off" is the absence of a covering band, never a band value.
7637
7633
  */
7638
7634
  bands: array(RecordingBandSchema).default([]),
7639
- retention: RecordingRetentionSchema.optional(),
7640
- /**
7641
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7642
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7643
- * windows only — existing sheets are immutable, and each window's index
7644
- * carries its own tile dims so mixed-preset history renders correctly.
7645
- */
7646
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7635
+ retention: RecordingRetentionSchema.optional()
7647
7636
  }).strict();
7648
7637
  /**
7649
7638
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7719,10 +7708,11 @@ var RelocateFootageInputSchema = object({
7719
7708
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7720
7709
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7721
7710
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7722
- var StorageMigrationMediaMoveInputSchema = object({
7711
+ var RelocateMediaInputSchema = object({
7723
7712
  toLocationId: string(),
7724
7713
  throttleMbps: number().min(1).max(1e3).optional()
7725
- }).extend({ leaseId: string().min(1) });
7714
+ });
7715
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7726
7716
  /** The independently selectable logical storage classes. `recordings`
7727
7717
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7728
7718
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8017,7 +8007,26 @@ var LabelDefinitionSchema = object({
8017
8007
  description: string().optional(),
8018
8008
  icon: string().optional()
8019
8009
  });
8020
- var ClassMapDefinitionSchema = object({
8010
+ /**
8011
+ * Wire schema for a per-model CATALOG classMap override
8012
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8013
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8014
+ * detection pipeline executor actually routes.
8015
+ *
8016
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8017
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8018
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8019
+ * enum) — the two used to share the name `ClassMapDefinition`/
8020
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8021
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8022
+ * are not: it is two different concepts colliding on a name. Keep this type
8023
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8024
+ * would either narrow every `ClassMapDefinition` consumer to the four
8025
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8026
+ * schema exists for (see the "rejects a classMap whose target is not a
8027
+ * detection macro" test in `model-catalog-schema.test.ts`).
8028
+ */
8029
+ var DetectionCatalogClassMapSchema = object({
8021
8030
  mapping: record(string(), _enum([
8022
8031
  "person",
8023
8032
  "vehicle",
@@ -8109,6 +8118,12 @@ var ModelVariantGroupSchema = object({
8109
8118
  */
8110
8119
  resolution: number().int().positive().optional()
8111
8120
  });
8121
+ var ModelProviderIdSchema = _enum([
8122
+ "camstack",
8123
+ "frigate",
8124
+ "scrypted",
8125
+ "custom"
8126
+ ]);
8112
8127
  var ModelCatalogEntrySchema = object({
8113
8128
  id: string(),
8114
8129
  name: string(),
@@ -8206,11 +8221,17 @@ var ModelCatalogEntrySchema = object({
8206
8221
  */
8207
8222
  group: ModelVariantGroupSchema.optional(),
8208
8223
  /**
8224
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8225
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8226
+ * persisted before this field existed (`inferModelProvider` fills those).
8227
+ */
8228
+ provider: ModelProviderIdSchema.optional(),
8229
+ /**
8209
8230
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8210
8231
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8211
8232
  * labels already ARE the CamStack macros (Scrypted identity map).
8212
8233
  */
8213
- classMap: ClassMapDefinitionSchema.optional()
8234
+ classMap: DetectionCatalogClassMapSchema.optional()
8214
8235
  });
8215
8236
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8216
8237
  format: literal("openvino"),
@@ -8240,7 +8261,7 @@ var ModelConvertMetadataSchema = object({
8240
8261
  "segmentation"
8241
8262
  ]),
8242
8263
  faceAlignment: boolean().optional(),
8243
- classMap: ClassMapDefinitionSchema.optional()
8264
+ classMap: DetectionCatalogClassMapSchema.optional()
8244
8265
  });
8245
8266
  var ConvertResultSchema = object({
8246
8267
  entry: ModelCatalogEntrySchema,
@@ -9103,7 +9124,7 @@ var AddonPageDeclarationSchema = object({
9103
9124
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9104
9125
  sectionLabel: string().optional()
9105
9126
  });
9106
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9127
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9107
9128
  var AddonHttpRouteSchema = object({
9108
9129
  method: _enum([
9109
9130
  "GET",
@@ -9338,7 +9359,7 @@ var WidgetMetadataSchema = object({
9338
9359
  defaultColumns: number().int().min(1).max(12).default(6),
9339
9360
  defaultRows: number().int().min(1).max(12).default(1)
9340
9361
  });
9341
- method(_void(), array(WidgetMetadataSchema).readonly());
9362
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9342
9363
  /**
9343
9364
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9344
9365
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -10897,7 +10918,7 @@ var CustomModelDescriptorSchema = object({
10897
10918
  stepId: string(),
10898
10919
  entry: ModelCatalogEntrySchema
10899
10920
  });
10900
- method(_void(), array(CustomModelDescriptorSchema).readonly());
10921
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
10901
10922
  /**
10902
10923
  * Query filter for settings-store collections.
10903
10924
  */
@@ -10984,7 +11005,8 @@ method(object({
10984
11005
  }), _void(), { kind: "mutation" }), method(object({
10985
11006
  namespace: string().optional(),
10986
11007
  collection: string(),
10987
- filter: QueryFilterSchema.optional()
11008
+ filter: QueryFilterSchema.optional(),
11009
+ columns: array(string()).readonly().optional()
10988
11010
  }), array(SettingsRecordSchema).readonly()), method(object({
10989
11011
  namespace: string().optional(),
10990
11012
  collection: string(),
@@ -11047,46 +11069,87 @@ var EngineInfoSchema = object({
11047
11069
  kind: _enum(["relational", "vector"]),
11048
11070
  displayName: string()
11049
11071
  });
11050
- method(_void(), EngineInfoSchema), method(object({
11072
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11051
11073
  namespace: string().optional(),
11052
11074
  collection: string(),
11053
11075
  key: string()
11054
- }), unknown()), method(object({
11076
+ }), unknown(), { auth: "admin" }), method(object({
11055
11077
  namespace: string().optional(),
11056
11078
  collection: string(),
11057
11079
  key: string(),
11058
11080
  value: unknown()
11059
- }), _void(), { kind: "mutation" }), method(object({
11081
+ }), _void(), {
11082
+ kind: "mutation",
11083
+ auth: "admin"
11084
+ }), method(object({
11060
11085
  namespace: string().optional(),
11061
11086
  collection: string(),
11062
- filter: QueryFilterSchema.optional()
11063
- }), array(SettingsRecordSchema).readonly()), method(object({
11087
+ filter: QueryFilterSchema.optional(),
11088
+ /**
11089
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11090
+ *
11091
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11092
+ * was wrong — corrected 2026-08-26 after the hop map
11093
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11094
+ * There is **no Zod parse at all** between the door and the engine: the
11095
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11096
+ * field declared here reaches `SqliteSettingsBackend` either way.
11097
+ *
11098
+ * What actually lost `columns` was the THIRD declaration of this shape:
11099
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11100
+ * interface the engine destructures from. The field existed on both
11101
+ * schemas and the engine still never read it, because nothing checks a
11102
+ * registered provider against `InferProvider<cap>` —
11103
+ * `ProviderRegistration.provider` is typed `object`.
11104
+ *
11105
+ * It is declared here anyway, and must stay in step with
11106
+ * `settings-store.query`: a caller reading only the cap definitions has
11107
+ * to be able to see that this call carries a projection.
11108
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11109
+ */
11110
+ columns: array(string()).readonly().optional()
11111
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11064
11112
  namespace: string().optional(),
11065
11113
  collection: string(),
11066
11114
  record: SettingsRecordSchema
11067
- }), _void(), { kind: "mutation" }), method(object({
11115
+ }), _void(), {
11116
+ kind: "mutation",
11117
+ auth: "admin"
11118
+ }), method(object({
11068
11119
  namespace: string().optional(),
11069
11120
  collection: string(),
11070
11121
  id: string(),
11071
11122
  data: record(string(), unknown())
11072
- }), _void(), { kind: "mutation" }), method(object({
11123
+ }), _void(), {
11124
+ kind: "mutation",
11125
+ auth: "admin"
11126
+ }), method(object({
11073
11127
  namespace: string().optional(),
11074
11128
  collection: string(),
11075
11129
  key: string()
11076
- }), _void(), { kind: "mutation" }), method(object({
11130
+ }), _void(), {
11131
+ kind: "mutation",
11132
+ auth: "admin"
11133
+ }), method(object({
11077
11134
  namespace: string().optional(),
11078
11135
  collection: string(),
11079
11136
  filter: MutationFilterSchema
11080
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11137
+ }), object({ deleted: number().int() }), {
11138
+ kind: "mutation",
11139
+ auth: "admin"
11140
+ }), method(object({
11081
11141
  namespace: string().optional(),
11082
11142
  collection: string(),
11083
11143
  filter: MutationFilterSchema,
11084
11144
  data: record(string(), unknown())
11085
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11145
+ }), object({ updated: number().int() }), {
11146
+ kind: "mutation",
11147
+ auth: "admin"
11148
+ }), method(object({
11086
11149
  namespace: string().optional(),
11087
11150
  collection: string(),
11088
11151
  filter: QueryFilterSchema.optional()
11089
- }), number()), method(object({
11152
+ }), number(), { auth: "admin" }), method(object({
11090
11153
  namespace: string().optional(),
11091
11154
  collection: string(),
11092
11155
  field: string(),
@@ -11096,15 +11159,18 @@ method(_void(), EngineInfoSchema), method(object({
11096
11159
  }), array(object({
11097
11160
  bucket: number().int(),
11098
11161
  count: number().int()
11099
- })).readonly()), method(object({
11162
+ })).readonly(), { auth: "admin" }), method(object({
11100
11163
  namespace: string().optional(),
11101
11164
  collection: string()
11102
- }), boolean()), method(object({
11165
+ }), boolean(), { auth: "admin" }), method(object({
11103
11166
  namespace: string().optional(),
11104
11167
  collection: string(),
11105
11168
  columns: array(CollectionColumnSchema).readonly(),
11106
11169
  indexes: array(CollectionIndexSchema).readonly().optional()
11107
- }), _void(), { kind: "mutation" });
11170
+ }), _void(), {
11171
+ kind: "mutation",
11172
+ auth: "admin"
11173
+ });
11108
11174
  /**
11109
11175
  * Stable UI option list for the `hwaccel` setting. Decoder addons
11110
11176
  * reuse this for `globalSettingsSchema()` so the dropdown is
@@ -11863,6 +11929,27 @@ var LinkedDeviceSchema = object({
11863
11929
  features: array(string()),
11864
11930
  producesTrackedEvents: boolean().optional()
11865
11931
  });
11932
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
11933
+ * The batch answer needs the tag; the single-device answer already has it
11934
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
11935
+ var LinkedDevicesForDeviceSchema = object({
11936
+ deviceId: number(),
11937
+ mode: LinkedDevicesModeSchema,
11938
+ devices: array(LinkedDeviceSchema)
11939
+ });
11940
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
11941
+ * `getAllBindings` all answer in. Declared once: three copies of the same
11942
+ * object literal is exactly how the three drift apart. */
11943
+ var DeviceBindingsForDeviceSchema = object({
11944
+ deviceId: number(),
11945
+ entries: array(object({
11946
+ capName: string(),
11947
+ kind: _enum(["native", "wrapped"]),
11948
+ providerAddonId: string(),
11949
+ providerNodeId: string(),
11950
+ nativeAddonId: string()
11951
+ }))
11952
+ });
11866
11953
  var SavedDeviceRowSchema = object({
11867
11954
  /** Numeric id reserved at allocateDeviceId time. */
11868
11955
  id: number(),
@@ -12088,11 +12175,25 @@ method(object({
12088
12175
  projection: _enum(["full", "slim"]).optional(),
12089
12176
  /** Return only camera devices. Filtering server-side instead of
12090
12177
  * shipping 293 rows to find 12. */
12091
- isCamera: boolean().optional()
12178
+ isCamera: boolean().optional(),
12179
+ /**
12180
+ * Return only these device ids. For the caller that already KNOWS the
12181
+ * handful it wants and needs a field the id-bearing answer does not
12182
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12183
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12184
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12185
+ * refetches on the reconcile interval, on a phone.
12186
+ *
12187
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12188
+ * keys rather than rejecting them (verified against the live hub
12189
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12190
+ * it answers today and the caller filters as it already does.
12191
+ */
12192
+ deviceIds: array(number()).optional()
12092
12193
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12093
12194
  mode: LinkedDevicesModeSchema,
12094
12195
  devices: array(LinkedDeviceSchema)
12095
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12196
+ })), 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({
12096
12197
  deviceId: number(),
12097
12198
  values: record(string(), unknown())
12098
12199
  }), object({ success: literal(true) }), {
@@ -12119,25 +12220,7 @@ method(object({
12119
12220
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12120
12221
  kind: "mutation",
12121
12222
  auth: "admin"
12122
- }), method(object({ deviceId: number() }), object({
12123
- deviceId: number(),
12124
- entries: array(object({
12125
- capName: string(),
12126
- kind: _enum(["native", "wrapped"]),
12127
- providerAddonId: string(),
12128
- providerNodeId: string(),
12129
- nativeAddonId: string()
12130
- }))
12131
- })), method(object({}), array(object({
12132
- deviceId: number(),
12133
- entries: array(object({
12134
- capName: string(),
12135
- kind: _enum(["native", "wrapped"]),
12136
- providerAddonId: string(),
12137
- providerNodeId: string(),
12138
- nativeAddonId: string()
12139
- }))
12140
- }))), method(object({
12223
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12141
12224
  deviceId: number(),
12142
12225
  capName: string(),
12143
12226
  wrapperAddonId: string(),
@@ -12308,7 +12391,7 @@ method(object({
12308
12391
  crop: _instanceof(Uint8Array),
12309
12392
  width: number(),
12310
12393
  height: number()
12311
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12394
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12312
12395
  /**
12313
12396
  * filesystem-browse — per-node capability for browsing the node's local
12314
12397
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12601,19 +12684,22 @@ method(LlmGenerateBaseInputSchema.extend({
12601
12684
  runtime: ManagedRuntimeConfigSchema,
12602
12685
  /** The managed profile's timeout, threaded by the hub provider. */
12603
12686
  timeoutMs: number().int().positive().optional()
12604
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12687
+ }), LlmGenerateResultSchema, {
12688
+ kind: "mutation",
12689
+ auth: "admin"
12690
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12605
12691
  kind: "mutation",
12606
12692
  auth: "admin"
12607
12693
  }), method(object({}), _void(), {
12608
12694
  kind: "mutation",
12609
12695
  auth: "admin"
12610
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12696
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12611
12697
  kind: "mutation",
12612
12698
  auth: "admin"
12613
12699
  }), method(object({ file: string() }), _void(), {
12614
12700
  kind: "mutation",
12615
12701
  auth: "admin"
12616
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12702
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12617
12703
  /**
12618
12704
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12619
12705
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14509,12 +14595,15 @@ var NcOccupancyConditionSchema = object({
14509
14595
  * there is no second switch that can disagree with the first and every rule
14510
14596
  * authored before the decision migrates for free (`audioModeOf`):
14511
14597
  *
14512
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14513
- * classifier labels with one of them. No window, no percentage:
14514
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14515
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14516
- * the analyzer's (`classificationMinScore`, per device) a label only
14517
- * reaches this condition if the classifier was already confident enough.
14598
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14599
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14600
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14601
+ * frames is the wrong question for a classifier that labels 1–3 frames
14602
+ * per episode. The count window is the brake that drops a single-frame
14603
+ * false positive; the rule's own `throttle` cooldown is the other. The
14604
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14605
+ * per device) — a label only reaches this condition if the classifier was
14606
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14518
14607
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14519
14608
  * the condition: at least `hitPercent`% of the samples over
14520
14609
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14541,14 +14630,22 @@ var NcOccupancyConditionSchema = object({
14541
14630
  * an operator who typed `dog` mean the same thing.
14542
14631
  */
14543
14632
  var NcAudioConditionSchema = object({
14544
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14633
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14545
14634
  labels: array(string().min(1)).min(1).optional(),
14546
14635
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14547
14636
  dbThreshold: number().min(-96).max(0).optional(),
14548
14637
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14549
14638
  hitPercent: number().int().min(1).max(100).default(60),
14550
14639
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14551
- samplingSeconds: number().int().min(1).max(300).default(10)
14640
+ samplingSeconds: number().int().min(1).max(300).default(10),
14641
+ /**
14642
+ * LABEL MODE: how many labelled frames must land inside
14643
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14644
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14645
+ */
14646
+ confirmHits: number().int().min(1).max(20).optional(),
14647
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14648
+ confirmWindowSec: number().int().min(1).max(60).optional()
14552
14649
  });
14553
14650
  /**
14554
14651
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16075,7 +16172,7 @@ var OauthIntegrationDescriptorSchema = object({
16075
16172
  */
16076
16173
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16077
16174
  });
16078
- method(_void(), OauthIntegrationDescriptorSchema);
16175
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16079
16176
  /**
16080
16177
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16081
16178
  * per-frame detections emitted by the pipeline runner into tracked
@@ -16922,6 +17019,46 @@ var RecentTracksPageSchema = object({
16922
17019
  /** Cursor for the next page, or null when this page is the last. */
16923
17020
  nextCursor: string().nullable()
16924
17021
  });
17022
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
17023
+ var LIST_GROUPS_MAX_LIMIT = 100;
17024
+ var AnalyticsGroupRecordSchema = object({
17025
+ id: string(),
17026
+ deviceId: number().int(),
17027
+ openedAt: number().int(),
17028
+ closedAt: number().int(),
17029
+ timestamp: number().int(),
17030
+ memberCount: number().int(),
17031
+ memberTrackIds: array(string()).readonly(),
17032
+ className: string(),
17033
+ classes: array(string()).readonly(),
17034
+ /** Relative event-media path, or null when the group has no picture yet. */
17035
+ mediaUrl: string().nullable(),
17036
+ singleton: boolean()
17037
+ });
17038
+ var AnalyticsGroupMemberSchema = object({
17039
+ trackId: string(),
17040
+ deviceId: number().int(),
17041
+ className: string(),
17042
+ firstSeen: number().int(),
17043
+ lastSeen: number().int(),
17044
+ mediaUrl: string().nullable()
17045
+ });
17046
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
17047
+ var ListGroupsQueryInput = object({
17048
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
17049
+ deviceIds: array(number()),
17050
+ /** Window lower bound on `closedAt` (inclusive). */
17051
+ since: number().optional(),
17052
+ /** Window upper bound on `openedAt` (inclusive). */
17053
+ until: number().optional(),
17054
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
17055
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
17056
+ cursor: string().optional()
17057
+ });
17058
+ var ListGroupsPageSchema = object({
17059
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
17060
+ nextCursor: string().nullable()
17061
+ });
16925
17062
  var KeyEventQueryInput = object({
16926
17063
  deviceId: number(),
16927
17064
  /** Window lower bound (track firstSeen ≥ since). */
@@ -16997,7 +17134,9 @@ var TrackCascadeCountsSchema = object({
16997
17134
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
16998
17135
  plates: number().int(),
16999
17136
  /** Per-track CLIP search vectors removed (best-effort). */
17000
- embeddings: number().int()
17137
+ embeddings: number().int(),
17138
+ /** Group membership + group rows removed with their last member (best-effort). */
17139
+ groups: number().int()
17001
17140
  });
17002
17141
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
17003
17142
  var DiskReconcileCountsSchema = object({
@@ -17143,7 +17282,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17143
17282
  * stationary registry). Default false: the timeline lists passages,
17144
17283
  * not parking records (operator decision, 2026-08-15). */
17145
17284
  includeStationary: boolean().optional()
17146
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17285
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17286
+ deviceId: number(),
17287
+ groupId: string().min(1)
17288
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17147
17289
  kind: "mutation",
17148
17290
  auth: "admin"
17149
17291
  }), 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({
@@ -17225,6 +17367,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17225
17367
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17226
17368
  kind: "mutation",
17227
17369
  auth: "admin"
17370
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17371
+ kind: "mutation",
17372
+ auth: "admin"
17373
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17374
+ kind: "query",
17375
+ auth: "admin"
17376
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17377
+ kind: "mutation",
17378
+ auth: "admin"
17228
17379
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17229
17380
  kind: "query",
17230
17381
  auth: "admin"
@@ -17379,6 +17530,11 @@ object({
17379
17530
  "jpeg"
17380
17531
  ])
17381
17532
  });
17533
+ /**
17534
+ * Process-local frame identity. It is serializable so it can ride an in-process
17535
+ * capability call, but `registryId` deliberately prevents resolution in any
17536
+ * other process or execution group.
17537
+ */
17382
17538
  var FrameRefSchema = object({
17383
17539
  registryId: string().min(1),
17384
17540
  id: string().min(1),
@@ -17453,7 +17609,8 @@ var PipelineModelOptionSchema = object({
17453
17609
  sizeMB: number()
17454
17610
  })),
17455
17611
  group: ModelVariantGroupSchema.optional(),
17456
- legacy: boolean().optional()
17612
+ legacy: boolean().optional(),
17613
+ provider: ModelProviderIdSchema.optional()
17457
17614
  });
17458
17615
  var ConfigFieldBridge = custom();
17459
17616
  var PipelineAddonSchemaSchema = object({
@@ -19543,7 +19700,7 @@ method(object({
19543
19700
  * linking rather than produce an eternal token.
19544
19701
  */
19545
19702
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19546
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
19703
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19547
19704
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19548
19705
  providerId: string().min(1),
19549
19706
  displayName: string().min(1),
@@ -19638,10 +19795,13 @@ var EvictResultSchema = object({
19638
19795
  /** True when the provider has nothing left it is willing to drop on this location. */
19639
19796
  exhausted: boolean()
19640
19797
  });
19641
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
19798
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19642
19799
  locationId: string(),
19643
19800
  targetBytes: number().int().positive()
19644
- }), EvictResultSchema, { kind: "mutation" });
19801
+ }), EvictResultSchema, {
19802
+ kind: "mutation",
19803
+ auth: "admin"
19804
+ });
19645
19805
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19646
19806
  kind: "mutation",
19647
19807
  auth: "admin"
@@ -19701,26 +19861,50 @@ var ReadChunkInputSchema = object({
19701
19861
  length: number()
19702
19862
  });
19703
19863
  var EndDownloadInputSchema = object({ downloadId: string() });
19704
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19864
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19705
19865
  location: StorageLocationSchema,
19706
19866
  relativePath: string()
19707
- }), string()), method(object({
19867
+ }), string(), { auth: "admin" }), method(object({
19708
19868
  location: StorageLocationSchema,
19709
19869
  relativePath: string(),
19710
19870
  data: _instanceof(Uint8Array)
19711
- }), _void(), { kind: "mutation" }), method(object({
19871
+ }), _void(), {
19872
+ kind: "mutation",
19873
+ auth: "admin"
19874
+ }), method(object({
19712
19875
  location: StorageLocationSchema,
19713
19876
  relativePath: string()
19714
- }), _instanceof(Uint8Array)), method(object({
19877
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
19715
19878
  location: StorageLocationSchema,
19716
19879
  relativePath: string()
19717
- }), boolean()), method(object({
19880
+ }), boolean(), { auth: "admin" }), method(object({
19718
19881
  location: StorageLocationSchema,
19719
19882
  prefix: string().optional()
19720
- }), array(string()).readonly()), method(object({
19883
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
19721
19884
  location: StorageLocationSchema,
19722
19885
  relativePath: string()
19723
- }), _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" });
19886
+ }), _void(), {
19887
+ kind: "mutation",
19888
+ auth: "admin"
19889
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
19890
+ kind: "mutation",
19891
+ auth: "admin"
19892
+ }), method(WriteChunkInputSchema, _void(), {
19893
+ kind: "mutation",
19894
+ auth: "admin"
19895
+ }), method(FinalizeUploadInputSchema, _void(), {
19896
+ kind: "mutation",
19897
+ auth: "admin"
19898
+ }), method(AbortUploadInputSchema, _void(), {
19899
+ kind: "mutation",
19900
+ auth: "admin"
19901
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
19902
+ kind: "mutation",
19903
+ auth: "admin"
19904
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
19905
+ kind: "mutation",
19906
+ auth: "admin"
19907
+ });
19724
19908
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
19725
19909
  var ProfileSettingsSchemaBridge = unknown().nullable();
19726
19910
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -19978,7 +20162,8 @@ method(object({
19978
20162
  access: "create"
19979
20163
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
19980
20164
  kind: "mutation",
19981
- access: "view"
20165
+ access: "view",
20166
+ auth: "admin"
19982
20167
  }), method(object({
19983
20168
  /** Required — the user the assertion belongs to (verified). */
19984
20169
  userId: string(),
@@ -19986,10 +20171,12 @@ method(object({
19986
20171
  response: record(string(), unknown())
19987
20172
  }), object({ verified: boolean() }), {
19988
20173
  kind: "mutation",
19989
- access: "view"
20174
+ access: "view",
20175
+ auth: "admin"
19990
20176
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19991
20177
  kind: "mutation",
19992
- access: "view"
20178
+ access: "view",
20179
+ auth: "admin"
19993
20180
  }), method(object({
19994
20181
  /** AuthenticationResponseJSON from the browser. */
19995
20182
  response: record(string(), unknown()) }), object({
@@ -19997,7 +20184,8 @@ response: record(string(), unknown()) }), object({
19997
20184
  userId: string().nullable()
19998
20185
  }), {
19999
20186
  kind: "mutation",
20000
- access: "view"
20187
+ access: "view",
20188
+ auth: "admin"
20001
20189
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20002
20190
  userId: string(),
20003
20191
  credentialId: string()
@@ -20169,7 +20357,19 @@ var VectorStatsResultSchema = object({
20169
20357
  /** False when the backend ranks approximately. */
20170
20358
  exact: boolean()
20171
20359
  });
20172
- 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);
20360
+ method(VectorDeclareIndexInputSchema, _void(), {
20361
+ kind: "mutation",
20362
+ auth: "admin"
20363
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20364
+ kind: "mutation",
20365
+ auth: "admin"
20366
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20367
+ kind: "mutation",
20368
+ auth: "admin"
20369
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20370
+ kind: "mutation",
20371
+ auth: "admin"
20372
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20173
20373
  var ClipSchema = object({
20174
20374
  /** Opaque, provider-namespaced id. The default provider encodes the time
20175
20375
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -21892,7 +22092,27 @@ var MediaFileLiteSchema$1 = object({
21892
22092
  sizeBytes: number(),
21893
22093
  timestamp: number()
21894
22094
  });
21895
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22095
+ method(object({
22096
+ /**
22097
+ * Inline {@link IdentitySchema.coverBase64} on every row.
22098
+ *
22099
+ * Default `false`, the same inversion `listRecentFaces` and
22100
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
22101
+ * why the burden belongs on the caller that WANTS the bytes). Measured
22102
+ * on the live hub the same day: four identities cost 40,979 B with the
22103
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
22104
+ * four times and the viewer holds at `staleTime: 30_000`.
22105
+ *
22106
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
22107
+ * the `event-media` plane serves that key `immutable` with an ETag.
22108
+ *
22109
+ * **This is an INPUT field, so it does not reach the addon until the
22110
+ * next train** — the hub router validates cap inputs against its own
22111
+ * compiled Zod and strips a key it does not know. Until then the
22112
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
22113
+ * is what ships, and the opt-in becomes reachable when the train lands.
22114
+ */
22115
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
21896
22116
  kind: "mutation",
21897
22117
  auth: "admin"
21898
22118
  }), method(object({
@@ -24037,7 +24257,14 @@ var PlateInfoSchema = object({
24037
24257
  plateBbox: BoundingBoxSchema.optional(),
24038
24258
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
24039
24259
  keyFrameMediaKey: string().optional(),
24040
- base64: string().optional()
24260
+ base64: string().optional(),
24261
+ /**
24262
+ * Same crop as a data-plane URL, always present when the plate has a stored
24263
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
24264
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
24265
+ * left at its `true` default.
24266
+ */
24267
+ cropUrl: string().optional()
24041
24268
  });
24042
24269
  var MediaFileLiteSchema = object({
24043
24270
  key: string(),
@@ -24055,14 +24282,34 @@ var PlateClusterSchema = object({
24055
24282
  });
24056
24283
  method(object({
24057
24284
  deviceId: number().int().optional(),
24058
- limit: number().int().positive().optional()
24285
+ limit: number().int().positive().optional(),
24286
+ /**
24287
+ * Inline the base64 crop on every row. Default `true` — the existing
24288
+ * behaviour, kept so no caller breaks.
24289
+ *
24290
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
24291
+ * Measured on the live hub at the 500 rows the Plates view asks for:
24292
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
24293
+ * metadata without them — and the browser then caches the images.
24294
+ *
24295
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
24296
+ * plates were the one gallery list left without it.
24297
+ *
24298
+ * **This is an INPUT field, so it does not reach the addon until the
24299
+ * next train.** The hub router validates cap inputs against its own
24300
+ * compiled Zod and strips a key it does not know. Until the train
24301
+ * ships, sending `false` is harmless and keeps the crops inline.
24302
+ */
24303
+ includeCrops: boolean().optional()
24059
24304
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
24060
24305
  deviceId: number().int(),
24061
24306
  trackId: string()
24062
24307
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
24063
24308
  text: string().min(1),
24064
24309
  maxDistance: number().int().min(0).optional(),
24065
- limit: number().int().positive().optional()
24310
+ limit: number().int().positive().optional(),
24311
+ /** See `listPlates.includeCrops`. Default `true`. */
24312
+ includeCrops: boolean().optional()
24066
24313
  }), array(PlateInfoSchema).readonly()), method(object({
24067
24314
  maxDistance: number().int().min(0).optional(),
24068
24315
  minClusterSize: number().int().min(2).optional(),
@@ -24076,7 +24323,13 @@ method(object({
24076
24323
  }), method(object({ plateId: string() }), _void(), {
24077
24324
  kind: "mutation",
24078
24325
  auth: "admin"
24079
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24326
+ }), method(object({
24327
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
24328
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
24329
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
24330
+ * INPUT field: stripped by the hub router until the train ships, which
24331
+ * resolves to `false` and is exactly the intended default. */
24332
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24080
24333
  kind: "mutation",
24081
24334
  auth: "admin"
24082
24335
  }), method(object({
@@ -27677,6 +27930,12 @@ Object.freeze({
27677
27930
  addonId: null,
27678
27931
  access: "view"
27679
27932
  },
27933
+ "deviceManager.getBindingsBatch": {
27934
+ capName: "device-manager",
27935
+ capScope: "system",
27936
+ addonId: null,
27937
+ access: "view"
27938
+ },
27680
27939
  "deviceManager.getChildren": {
27681
27940
  capName: "device-manager",
27682
27941
  capScope: "system",
@@ -27737,6 +27996,12 @@ Object.freeze({
27737
27996
  addonId: null,
27738
27997
  access: "view"
27739
27998
  },
27999
+ "deviceManager.getLinkedDevicesBatch": {
28000
+ capName: "device-manager",
28001
+ capScope: "system",
28002
+ addonId: null,
28003
+ access: "view"
28004
+ },
27740
28005
  "deviceManager.getRoleDisplayDefaults": {
27741
28006
  capName: "device-manager",
27742
28007
  capScope: "system",
@@ -29441,6 +29706,12 @@ Object.freeze({
29441
29706
  addonId: null,
29442
29707
  access: "create"
29443
29708
  },
29709
+ "pipelineAnalytics.cancelRelocateMedia": {
29710
+ capName: "pipeline-analytics",
29711
+ capScope: "device",
29712
+ addonId: null,
29713
+ access: "create"
29714
+ },
29444
29715
  "pipelineAnalytics.cancelStorageMigrationMove": {
29445
29716
  capName: "pipeline-analytics",
29446
29717
  capScope: "device",
@@ -29507,6 +29778,12 @@ Object.freeze({
29507
29778
  addonId: null,
29508
29779
  access: "view"
29509
29780
  },
29781
+ "pipelineAnalytics.getGroup": {
29782
+ capName: "pipeline-analytics",
29783
+ capScope: "device",
29784
+ addonId: null,
29785
+ access: "view"
29786
+ },
29510
29787
  "pipelineAnalytics.getKeyEvents": {
29511
29788
  capName: "pipeline-analytics",
29512
29789
  capScope: "device",
@@ -29591,6 +29868,12 @@ Object.freeze({
29591
29868
  addonId: null,
29592
29869
  access: "view"
29593
29870
  },
29871
+ "pipelineAnalytics.listGroups": {
29872
+ capName: "pipeline-analytics",
29873
+ capScope: "device",
29874
+ addonId: null,
29875
+ access: "view"
29876
+ },
29594
29877
  "pipelineAnalytics.listOpsLog": {
29595
29878
  capName: "pipeline-analytics",
29596
29879
  capScope: "device",
@@ -29603,6 +29886,12 @@ Object.freeze({
29603
29886
  addonId: null,
29604
29887
  access: "view"
29605
29888
  },
29889
+ "pipelineAnalytics.listRelocateMediaJobs": {
29890
+ capName: "pipeline-analytics",
29891
+ capScope: "device",
29892
+ addonId: null,
29893
+ access: "view"
29894
+ },
29606
29895
  "pipelineAnalytics.listRetrainAnnotations": {
29607
29896
  capName: "pipeline-analytics",
29608
29897
  capScope: "device",
@@ -29681,6 +29970,12 @@ Object.freeze({
29681
29970
  addonId: null,
29682
29971
  access: "create"
29683
29972
  },
29973
+ "pipelineAnalytics.relocateMedia": {
29974
+ capName: "pipeline-analytics",
29975
+ capScope: "device",
29976
+ addonId: null,
29977
+ access: "create"
29978
+ },
29684
29979
  "pipelineAnalytics.restageRetrainTrack": {
29685
29980
  capName: "pipeline-analytics",
29686
29981
  capScope: "device",
@@ -32372,6 +32667,11 @@ Object.freeze({
32372
32667
  form: "single",
32373
32668
  optional: false
32374
32669
  }],
32670
+ "deviceManager.getBindingsBatch": [{
32671
+ name: "deviceIds",
32672
+ form: "array",
32673
+ optional: false
32674
+ }],
32375
32675
  "deviceManager.getChildren": [{
32376
32676
  name: "parentDeviceId",
32377
32677
  form: "single",
@@ -32417,6 +32717,11 @@ Object.freeze({
32417
32717
  form: "single",
32418
32718
  optional: false
32419
32719
  }],
32720
+ "deviceManager.getLinkedDevicesBatch": [{
32721
+ name: "deviceIds",
32722
+ form: "array",
32723
+ optional: false
32724
+ }],
32420
32725
  "deviceManager.getSettingsSchema": [{
32421
32726
  name: "deviceId",
32422
32727
  form: "single",
@@ -32437,6 +32742,11 @@ Object.freeze({
32437
32742
  form: "single",
32438
32743
  optional: false
32439
32744
  }],
32745
+ "deviceManager.listAll": [{
32746
+ name: "deviceIds",
32747
+ form: "array",
32748
+ optional: true
32749
+ }],
32440
32750
  "deviceManager.loadConfig": [{
32441
32751
  name: "deviceId",
32442
32752
  form: "single",
@@ -33010,6 +33320,11 @@ Object.freeze({
33010
33320
  form: "single",
33011
33321
  optional: false
33012
33322
  }],
33323
+ "pipelineAnalytics.getGroup": [{
33324
+ name: "deviceId",
33325
+ form: "single",
33326
+ optional: false
33327
+ }],
33013
33328
  "pipelineAnalytics.getKeyEvents": [{
33014
33329
  name: "deviceId",
33015
33330
  form: "single",
@@ -33065,6 +33380,11 @@ Object.freeze({
33065
33380
  form: "array",
33066
33381
  optional: false
33067
33382
  }],
33383
+ "pipelineAnalytics.listGroups": [{
33384
+ name: "deviceIds",
33385
+ form: "array",
33386
+ optional: false
33387
+ }],
33068
33388
  "pipelineAnalytics.listOpsLog": [{
33069
33389
  name: "deviceId",
33070
33390
  form: "single",