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