@camstack/addon-provider-onvif 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/addon.js +431 -111
  2. package/dist/addon.mjs +431 -111
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5804,6 +5804,13 @@ var BaseAddon = class {
5804
5804
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5805
5805
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5806
5806
  _registeredCapNames = [];
5807
+ /**
5808
+ * True only after `readAddonStore` actually answered. Constructor
5809
+ * defaults look like stored config when the store is down — a forked
5810
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5811
+ * mode, 2026-08-25) is not "the operator chose this".
5812
+ */
5813
+ settingsStoreReady = false;
5807
5814
  /** Default config values. Provided via constructor. */
5808
5815
  defaults;
5809
5816
  constructor(defaults) {
@@ -6204,7 +6211,9 @@ var BaseAddon = class {
6204
6211
  ];
6205
6212
  let lastErr;
6206
6213
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6207
- return await settings.readAddonStore() ?? {};
6214
+ const stored = await settings.readAddonStore() ?? {};
6215
+ this.settingsStoreReady = true;
6216
+ return stored;
6208
6217
  } catch (err) {
6209
6218
  lastErr = err;
6210
6219
  const msg = err instanceof Error ? err.message : String(err);
@@ -6212,6 +6221,7 @@ var BaseAddon = class {
6212
6221
  if (attempt === delaysMs.length) break;
6213
6222
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6214
6223
  }
6224
+ this.settingsStoreReady = false;
6215
6225
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6216
6226
  return {};
6217
6227
  }
@@ -6623,7 +6633,7 @@ function method(input, output, options) {
6623
6633
  input,
6624
6634
  output,
6625
6635
  kind: options?.kind ?? "query",
6626
- auth: options?.auth ?? "protected",
6636
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6627
6637
  ...options?.access !== void 0 ? { access: options.access } : {},
6628
6638
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6629
6639
  timeoutMs: options?.timeoutMs
@@ -6643,7 +6653,7 @@ function systemMethod(input, output, options) {
6643
6653
  }
6644
6654
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6645
6655
  var VersionOutputSchema$1 = object({ version: string() });
6646
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6656
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6647
6657
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6648
6658
  DeviceType["Camera"] = "camera";
6649
6659
  DeviceType["Hub"] = "hub";
@@ -6964,7 +6974,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6964
6974
  }({});
6965
6975
  var StaticDirOutputSchema = object({ staticDir: string() });
6966
6976
  var VersionOutputSchema = object({ version: string() });
6967
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
6977
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
6968
6978
  /**
6969
6979
  * device-ops — device-scoped cap that unifies the per-IDevice operations
6970
6980
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7590,24 +7600,6 @@ var RecordingRetentionSchema = object({
7590
7600
  maxSizeGb: number().min(0).optional()
7591
7601
  });
7592
7602
  /**
7593
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7594
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7595
- * previews at. Five graduated steps; absent on a config = `standard` (the
7596
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7597
- *
7598
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7599
- * Each window's index sidecar carries its own tile dims, so a camera whose
7600
- * preset changed over time renders every historical window at the dims it was
7601
- * written with.
7602
- */
7603
- var ScrubThumbnailPresetSchema = _enum([
7604
- "minimal",
7605
- "low",
7606
- "standard",
7607
- "high",
7608
- "max"
7609
- ]);
7610
- /**
7611
7603
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7612
7604
  *
7613
7605
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7615,7 +7607,11 @@ var ScrubThumbnailPresetSchema = _enum([
7615
7607
  * other field is a storage knob (profiles, segment length, retention, scrub).
7616
7608
  *
7617
7609
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7618
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7610
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7611
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7612
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7613
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7614
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7619
7615
  * A stale caller must fail loudly — silently stripping its legacy intent would
7620
7616
  * persist a band-less config, i.e. silently stop recording the camera.
7621
7617
  */
@@ -7638,14 +7634,7 @@ var RecordingConfigSchema = object({
7638
7634
  * "off" is the absence of a covering band, never a band value.
7639
7635
  */
7640
7636
  bands: array(RecordingBandSchema).default([]),
7641
- retention: RecordingRetentionSchema.optional(),
7642
- /**
7643
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7644
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7645
- * windows only — existing sheets are immutable, and each window's index
7646
- * carries its own tile dims so mixed-preset history renders correctly.
7647
- */
7648
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7637
+ retention: RecordingRetentionSchema.optional()
7649
7638
  }).strict();
7650
7639
  /**
7651
7640
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7721,10 +7710,11 @@ var RelocateFootageInputSchema = object({
7721
7710
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7722
7711
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7723
7712
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7724
- var StorageMigrationMediaMoveInputSchema = object({
7713
+ var RelocateMediaInputSchema = object({
7725
7714
  toLocationId: string(),
7726
7715
  throttleMbps: number().min(1).max(1e3).optional()
7727
- }).extend({ leaseId: string().min(1) });
7716
+ });
7717
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7728
7718
  /** The independently selectable logical storage classes. `recordings`
7729
7719
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7730
7720
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8019,7 +8009,26 @@ var LabelDefinitionSchema = object({
8019
8009
  description: string().optional(),
8020
8010
  icon: string().optional()
8021
8011
  });
8022
- var ClassMapDefinitionSchema = object({
8012
+ /**
8013
+ * Wire schema for a per-model CATALOG classMap override
8014
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8015
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8016
+ * detection pipeline executor actually routes.
8017
+ *
8018
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8019
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8020
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8021
+ * enum) — the two used to share the name `ClassMapDefinition`/
8022
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8023
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8024
+ * are not: it is two different concepts colliding on a name. Keep this type
8025
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8026
+ * would either narrow every `ClassMapDefinition` consumer to the four
8027
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8028
+ * schema exists for (see the "rejects a classMap whose target is not a
8029
+ * detection macro" test in `model-catalog-schema.test.ts`).
8030
+ */
8031
+ var DetectionCatalogClassMapSchema = object({
8023
8032
  mapping: record(string(), _enum([
8024
8033
  "person",
8025
8034
  "vehicle",
@@ -8111,6 +8120,12 @@ var ModelVariantGroupSchema = object({
8111
8120
  */
8112
8121
  resolution: number().int().positive().optional()
8113
8122
  });
8123
+ var ModelProviderIdSchema = _enum([
8124
+ "camstack",
8125
+ "frigate",
8126
+ "scrypted",
8127
+ "custom"
8128
+ ]);
8114
8129
  var ModelCatalogEntrySchema = object({
8115
8130
  id: string(),
8116
8131
  name: string(),
@@ -8208,11 +8223,17 @@ var ModelCatalogEntrySchema = object({
8208
8223
  */
8209
8224
  group: ModelVariantGroupSchema.optional(),
8210
8225
  /**
8226
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8227
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8228
+ * persisted before this field existed (`inferModelProvider` fills those).
8229
+ */
8230
+ provider: ModelProviderIdSchema.optional(),
8231
+ /**
8211
8232
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8212
8233
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8213
8234
  * labels already ARE the CamStack macros (Scrypted identity map).
8214
8235
  */
8215
- classMap: ClassMapDefinitionSchema.optional()
8236
+ classMap: DetectionCatalogClassMapSchema.optional()
8216
8237
  });
8217
8238
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8218
8239
  format: literal("openvino"),
@@ -8242,7 +8263,7 @@ var ModelConvertMetadataSchema = object({
8242
8263
  "segmentation"
8243
8264
  ]),
8244
8265
  faceAlignment: boolean().optional(),
8245
- classMap: ClassMapDefinitionSchema.optional()
8266
+ classMap: DetectionCatalogClassMapSchema.optional()
8246
8267
  });
8247
8268
  var ConvertResultSchema = object({
8248
8269
  entry: ModelCatalogEntrySchema,
@@ -9105,7 +9126,7 @@ var AddonPageDeclarationSchema = object({
9105
9126
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9106
9127
  sectionLabel: string().optional()
9107
9128
  });
9108
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9129
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9109
9130
  var AddonHttpRouteSchema = object({
9110
9131
  method: _enum([
9111
9132
  "GET",
@@ -9340,7 +9361,7 @@ var WidgetMetadataSchema = object({
9340
9361
  defaultColumns: number().int().min(1).max(12).default(6),
9341
9362
  defaultRows: number().int().min(1).max(12).default(1)
9342
9363
  });
9343
- method(_void(), array(WidgetMetadataSchema).readonly());
9364
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9344
9365
  /**
9345
9366
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9346
9367
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -10862,7 +10883,7 @@ var CustomModelDescriptorSchema = object({
10862
10883
  stepId: string(),
10863
10884
  entry: ModelCatalogEntrySchema
10864
10885
  });
10865
- method(_void(), array(CustomModelDescriptorSchema).readonly());
10886
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
10866
10887
  /**
10867
10888
  * Query filter for settings-store collections.
10868
10889
  */
@@ -10949,7 +10970,8 @@ method(object({
10949
10970
  }), _void(), { kind: "mutation" }), method(object({
10950
10971
  namespace: string().optional(),
10951
10972
  collection: string(),
10952
- filter: QueryFilterSchema.optional()
10973
+ filter: QueryFilterSchema.optional(),
10974
+ columns: array(string()).readonly().optional()
10953
10975
  }), array(SettingsRecordSchema).readonly()), method(object({
10954
10976
  namespace: string().optional(),
10955
10977
  collection: string(),
@@ -11012,46 +11034,87 @@ var EngineInfoSchema = object({
11012
11034
  kind: _enum(["relational", "vector"]),
11013
11035
  displayName: string()
11014
11036
  });
11015
- method(_void(), EngineInfoSchema), method(object({
11037
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11016
11038
  namespace: string().optional(),
11017
11039
  collection: string(),
11018
11040
  key: string()
11019
- }), unknown()), method(object({
11041
+ }), unknown(), { auth: "admin" }), method(object({
11020
11042
  namespace: string().optional(),
11021
11043
  collection: string(),
11022
11044
  key: string(),
11023
11045
  value: unknown()
11024
- }), _void(), { kind: "mutation" }), method(object({
11046
+ }), _void(), {
11047
+ kind: "mutation",
11048
+ auth: "admin"
11049
+ }), method(object({
11025
11050
  namespace: string().optional(),
11026
11051
  collection: string(),
11027
- filter: QueryFilterSchema.optional()
11028
- }), array(SettingsRecordSchema).readonly()), method(object({
11052
+ filter: QueryFilterSchema.optional(),
11053
+ /**
11054
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11055
+ *
11056
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11057
+ * was wrong — corrected 2026-08-26 after the hop map
11058
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11059
+ * There is **no Zod parse at all** between the door and the engine: the
11060
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11061
+ * field declared here reaches `SqliteSettingsBackend` either way.
11062
+ *
11063
+ * What actually lost `columns` was the THIRD declaration of this shape:
11064
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11065
+ * interface the engine destructures from. The field existed on both
11066
+ * schemas and the engine still never read it, because nothing checks a
11067
+ * registered provider against `InferProvider<cap>` —
11068
+ * `ProviderRegistration.provider` is typed `object`.
11069
+ *
11070
+ * It is declared here anyway, and must stay in step with
11071
+ * `settings-store.query`: a caller reading only the cap definitions has
11072
+ * to be able to see that this call carries a projection.
11073
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11074
+ */
11075
+ columns: array(string()).readonly().optional()
11076
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11029
11077
  namespace: string().optional(),
11030
11078
  collection: string(),
11031
11079
  record: SettingsRecordSchema
11032
- }), _void(), { kind: "mutation" }), method(object({
11080
+ }), _void(), {
11081
+ kind: "mutation",
11082
+ auth: "admin"
11083
+ }), method(object({
11033
11084
  namespace: string().optional(),
11034
11085
  collection: string(),
11035
11086
  id: string(),
11036
11087
  data: record(string(), unknown())
11037
- }), _void(), { kind: "mutation" }), method(object({
11088
+ }), _void(), {
11089
+ kind: "mutation",
11090
+ auth: "admin"
11091
+ }), method(object({
11038
11092
  namespace: string().optional(),
11039
11093
  collection: string(),
11040
11094
  key: string()
11041
- }), _void(), { kind: "mutation" }), method(object({
11095
+ }), _void(), {
11096
+ kind: "mutation",
11097
+ auth: "admin"
11098
+ }), method(object({
11042
11099
  namespace: string().optional(),
11043
11100
  collection: string(),
11044
11101
  filter: MutationFilterSchema
11045
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11102
+ }), object({ deleted: number().int() }), {
11103
+ kind: "mutation",
11104
+ auth: "admin"
11105
+ }), method(object({
11046
11106
  namespace: string().optional(),
11047
11107
  collection: string(),
11048
11108
  filter: MutationFilterSchema,
11049
11109
  data: record(string(), unknown())
11050
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11110
+ }), object({ updated: number().int() }), {
11111
+ kind: "mutation",
11112
+ auth: "admin"
11113
+ }), method(object({
11051
11114
  namespace: string().optional(),
11052
11115
  collection: string(),
11053
11116
  filter: QueryFilterSchema.optional()
11054
- }), number()), method(object({
11117
+ }), number(), { auth: "admin" }), method(object({
11055
11118
  namespace: string().optional(),
11056
11119
  collection: string(),
11057
11120
  field: string(),
@@ -11061,15 +11124,18 @@ method(_void(), EngineInfoSchema), method(object({
11061
11124
  }), array(object({
11062
11125
  bucket: number().int(),
11063
11126
  count: number().int()
11064
- })).readonly()), method(object({
11127
+ })).readonly(), { auth: "admin" }), method(object({
11065
11128
  namespace: string().optional(),
11066
11129
  collection: string()
11067
- }), boolean()), method(object({
11130
+ }), boolean(), { auth: "admin" }), method(object({
11068
11131
  namespace: string().optional(),
11069
11132
  collection: string(),
11070
11133
  columns: array(CollectionColumnSchema).readonly(),
11071
11134
  indexes: array(CollectionIndexSchema).readonly().optional()
11072
- }), _void(), { kind: "mutation" });
11135
+ }), _void(), {
11136
+ kind: "mutation",
11137
+ auth: "admin"
11138
+ });
11073
11139
  /**
11074
11140
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11075
11141
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -11790,6 +11856,27 @@ var LinkedDeviceSchema = object({
11790
11856
  features: array(string()),
11791
11857
  producesTrackedEvents: boolean().optional()
11792
11858
  });
11859
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
11860
+ * The batch answer needs the tag; the single-device answer already has it
11861
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
11862
+ var LinkedDevicesForDeviceSchema = object({
11863
+ deviceId: number(),
11864
+ mode: LinkedDevicesModeSchema,
11865
+ devices: array(LinkedDeviceSchema)
11866
+ });
11867
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
11868
+ * `getAllBindings` all answer in. Declared once: three copies of the same
11869
+ * object literal is exactly how the three drift apart. */
11870
+ var DeviceBindingsForDeviceSchema = object({
11871
+ deviceId: number(),
11872
+ entries: array(object({
11873
+ capName: string(),
11874
+ kind: _enum(["native", "wrapped"]),
11875
+ providerAddonId: string(),
11876
+ providerNodeId: string(),
11877
+ nativeAddonId: string()
11878
+ }))
11879
+ });
11793
11880
  var SavedDeviceRowSchema = object({
11794
11881
  /** Numeric id reserved at allocateDeviceId time. */
11795
11882
  id: number(),
@@ -12015,11 +12102,25 @@ method(object({
12015
12102
  projection: _enum(["full", "slim"]).optional(),
12016
12103
  /** Return only camera devices. Filtering server-side instead of
12017
12104
  * shipping 293 rows to find 12. */
12018
- isCamera: boolean().optional()
12105
+ isCamera: boolean().optional(),
12106
+ /**
12107
+ * Return only these device ids. For the caller that already KNOWS the
12108
+ * handful it wants and needs a field the id-bearing answer does not
12109
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12110
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12111
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12112
+ * refetches on the reconcile interval, on a phone.
12113
+ *
12114
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12115
+ * keys rather than rejecting them (verified against the live hub
12116
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12117
+ * it answers today and the caller filters as it already does.
12118
+ */
12119
+ deviceIds: array(number()).optional()
12019
12120
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
12020
12121
  mode: LinkedDevicesModeSchema,
12021
12122
  devices: array(LinkedDeviceSchema)
12022
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12123
+ })), 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({
12023
12124
  deviceId: number(),
12024
12125
  values: record(string(), unknown())
12025
12126
  }), object({ success: literal(true) }), {
@@ -12046,25 +12147,7 @@ method(object({
12046
12147
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12047
12148
  kind: "mutation",
12048
12149
  auth: "admin"
12049
- }), method(object({ deviceId: number() }), object({
12050
- deviceId: number(),
12051
- entries: array(object({
12052
- capName: string(),
12053
- kind: _enum(["native", "wrapped"]),
12054
- providerAddonId: string(),
12055
- providerNodeId: string(),
12056
- nativeAddonId: string()
12057
- }))
12058
- })), method(object({}), array(object({
12059
- deviceId: number(),
12060
- entries: array(object({
12061
- capName: string(),
12062
- kind: _enum(["native", "wrapped"]),
12063
- providerAddonId: string(),
12064
- providerNodeId: string(),
12065
- nativeAddonId: string()
12066
- }))
12067
- }))), method(object({
12150
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12068
12151
  deviceId: number(),
12069
12152
  capName: string(),
12070
12153
  wrapperAddonId: string(),
@@ -12235,7 +12318,7 @@ method(object({
12235
12318
  crop: _instanceof(Uint8Array),
12236
12319
  width: number(),
12237
12320
  height: number()
12238
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12321
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12239
12322
  /**
12240
12323
  * filesystem-browse — per-node capability for browsing the node's local
12241
12324
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12528,19 +12611,22 @@ method(LlmGenerateBaseInputSchema.extend({
12528
12611
  runtime: ManagedRuntimeConfigSchema,
12529
12612
  /** The managed profile's timeout, threaded by the hub provider. */
12530
12613
  timeoutMs: number().int().positive().optional()
12531
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12614
+ }), LlmGenerateResultSchema, {
12615
+ kind: "mutation",
12616
+ auth: "admin"
12617
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12532
12618
  kind: "mutation",
12533
12619
  auth: "admin"
12534
12620
  }), method(object({}), _void(), {
12535
12621
  kind: "mutation",
12536
12622
  auth: "admin"
12537
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12623
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12538
12624
  kind: "mutation",
12539
12625
  auth: "admin"
12540
12626
  }), method(object({ file: string() }), _void(), {
12541
12627
  kind: "mutation",
12542
12628
  auth: "admin"
12543
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12629
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12544
12630
  /**
12545
12631
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12546
12632
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14436,12 +14522,15 @@ var NcOccupancyConditionSchema = object({
14436
14522
  * there is no second switch that can disagree with the first and every rule
14437
14523
  * authored before the decision migrates for free (`audioModeOf`):
14438
14524
  *
14439
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14440
- * classifier labels with one of them. No window, no percentage:
14441
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14442
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14443
- * the analyzer's (`classificationMinScore`, per device) a label only
14444
- * reaches this condition if the classifier was already confident enough.
14525
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14526
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14527
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14528
+ * frames is the wrong question for a classifier that labels 1–3 frames
14529
+ * per episode. The count window is the brake that drops a single-frame
14530
+ * false positive; the rule's own `throttle` cooldown is the other. The
14531
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14532
+ * per device) — a label only reaches this condition if the classifier was
14533
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14445
14534
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14446
14535
  * the condition: at least `hitPercent`% of the samples over
14447
14536
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14468,14 +14557,22 @@ var NcOccupancyConditionSchema = object({
14468
14557
  * an operator who typed `dog` mean the same thing.
14469
14558
  */
14470
14559
  var NcAudioConditionSchema = object({
14471
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14560
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14472
14561
  labels: array(string().min(1)).min(1).optional(),
14473
14562
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14474
14563
  dbThreshold: number().min(-96).max(0).optional(),
14475
14564
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14476
14565
  hitPercent: number().int().min(1).max(100).default(60),
14477
14566
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14478
- samplingSeconds: number().int().min(1).max(300).default(10)
14567
+ samplingSeconds: number().int().min(1).max(300).default(10),
14568
+ /**
14569
+ * LABEL MODE: how many labelled frames must land inside
14570
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14571
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14572
+ */
14573
+ confirmHits: number().int().min(1).max(20).optional(),
14574
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14575
+ confirmWindowSec: number().int().min(1).max(60).optional()
14479
14576
  });
14480
14577
  /**
14481
14578
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16002,7 +16099,7 @@ var OauthIntegrationDescriptorSchema = object({
16002
16099
  */
16003
16100
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
16004
16101
  });
16005
- method(_void(), OauthIntegrationDescriptorSchema);
16102
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
16006
16103
  /**
16007
16104
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
16008
16105
  * per-frame detections emitted by the pipeline runner into tracked
@@ -16849,6 +16946,46 @@ var RecentTracksPageSchema = object({
16849
16946
  /** Cursor for the next page, or null when this page is the last. */
16850
16947
  nextCursor: string().nullable()
16851
16948
  });
16949
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
16950
+ var LIST_GROUPS_MAX_LIMIT = 100;
16951
+ var AnalyticsGroupRecordSchema = object({
16952
+ id: string(),
16953
+ deviceId: number().int(),
16954
+ openedAt: number().int(),
16955
+ closedAt: number().int(),
16956
+ timestamp: number().int(),
16957
+ memberCount: number().int(),
16958
+ memberTrackIds: array(string()).readonly(),
16959
+ className: string(),
16960
+ classes: array(string()).readonly(),
16961
+ /** Relative event-media path, or null when the group has no picture yet. */
16962
+ mediaUrl: string().nullable(),
16963
+ singleton: boolean()
16964
+ });
16965
+ var AnalyticsGroupMemberSchema = object({
16966
+ trackId: string(),
16967
+ deviceId: number().int(),
16968
+ className: string(),
16969
+ firstSeen: number().int(),
16970
+ lastSeen: number().int(),
16971
+ mediaUrl: string().nullable()
16972
+ });
16973
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
16974
+ var ListGroupsQueryInput = object({
16975
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
16976
+ deviceIds: array(number()),
16977
+ /** Window lower bound on `closedAt` (inclusive). */
16978
+ since: number().optional(),
16979
+ /** Window upper bound on `openedAt` (inclusive). */
16980
+ until: number().optional(),
16981
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
16982
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
16983
+ cursor: string().optional()
16984
+ });
16985
+ var ListGroupsPageSchema = object({
16986
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
16987
+ nextCursor: string().nullable()
16988
+ });
16852
16989
  var KeyEventQueryInput = object({
16853
16990
  deviceId: number(),
16854
16991
  /** Window lower bound (track firstSeen ≥ since). */
@@ -16924,7 +17061,9 @@ var TrackCascadeCountsSchema = object({
16924
17061
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
16925
17062
  plates: number().int(),
16926
17063
  /** Per-track CLIP search vectors removed (best-effort). */
16927
- embeddings: number().int()
17064
+ embeddings: number().int(),
17065
+ /** Group membership + group rows removed with their last member (best-effort). */
17066
+ groups: number().int()
16928
17067
  });
16929
17068
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
16930
17069
  var DiskReconcileCountsSchema = object({
@@ -17070,7 +17209,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17070
17209
  * stationary registry). Default false: the timeline lists passages,
17071
17210
  * not parking records (operator decision, 2026-08-15). */
17072
17211
  includeStationary: boolean().optional()
17073
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17212
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17213
+ deviceId: number(),
17214
+ groupId: string().min(1)
17215
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17074
17216
  kind: "mutation",
17075
17217
  auth: "admin"
17076
17218
  }), 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({
@@ -17152,6 +17294,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17152
17294
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17153
17295
  kind: "mutation",
17154
17296
  auth: "admin"
17297
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17298
+ kind: "mutation",
17299
+ auth: "admin"
17300
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17301
+ kind: "query",
17302
+ auth: "admin"
17303
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17304
+ kind: "mutation",
17305
+ auth: "admin"
17155
17306
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17156
17307
  kind: "query",
17157
17308
  auth: "admin"
@@ -17306,6 +17457,11 @@ object({
17306
17457
  "jpeg"
17307
17458
  ])
17308
17459
  });
17460
+ /**
17461
+ * Process-local frame identity. It is serializable so it can ride an in-process
17462
+ * capability call, but `registryId` deliberately prevents resolution in any
17463
+ * other process or execution group.
17464
+ */
17309
17465
  var FrameRefSchema = object({
17310
17466
  registryId: string().min(1),
17311
17467
  id: string().min(1),
@@ -17380,7 +17536,8 @@ var PipelineModelOptionSchema = object({
17380
17536
  sizeMB: number()
17381
17537
  })),
17382
17538
  group: ModelVariantGroupSchema.optional(),
17383
- legacy: boolean().optional()
17539
+ legacy: boolean().optional(),
17540
+ provider: ModelProviderIdSchema.optional()
17384
17541
  });
17385
17542
  var ConfigFieldBridge = custom();
17386
17543
  var PipelineAddonSchemaSchema = object({
@@ -19574,7 +19731,7 @@ method(object({
19574
19731
  * linking rather than produce an eternal token.
19575
19732
  */
19576
19733
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19577
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
19734
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19578
19735
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19579
19736
  providerId: string().min(1),
19580
19737
  displayName: string().min(1),
@@ -19669,10 +19826,13 @@ var EvictResultSchema = object({
19669
19826
  /** True when the provider has nothing left it is willing to drop on this location. */
19670
19827
  exhausted: boolean()
19671
19828
  });
19672
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
19829
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19673
19830
  locationId: string(),
19674
19831
  targetBytes: number().int().positive()
19675
- }), EvictResultSchema, { kind: "mutation" });
19832
+ }), EvictResultSchema, {
19833
+ kind: "mutation",
19834
+ auth: "admin"
19835
+ });
19676
19836
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19677
19837
  kind: "mutation",
19678
19838
  auth: "admin"
@@ -19732,26 +19892,50 @@ var ReadChunkInputSchema = object({
19732
19892
  length: number()
19733
19893
  });
19734
19894
  var EndDownloadInputSchema = object({ downloadId: string() });
19735
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19895
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19736
19896
  location: StorageLocationSchema,
19737
19897
  relativePath: string()
19738
- }), string()), method(object({
19898
+ }), string(), { auth: "admin" }), method(object({
19739
19899
  location: StorageLocationSchema,
19740
19900
  relativePath: string(),
19741
19901
  data: _instanceof(Uint8Array)
19742
- }), _void(), { kind: "mutation" }), method(object({
19902
+ }), _void(), {
19903
+ kind: "mutation",
19904
+ auth: "admin"
19905
+ }), method(object({
19743
19906
  location: StorageLocationSchema,
19744
19907
  relativePath: string()
19745
- }), _instanceof(Uint8Array)), method(object({
19908
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
19746
19909
  location: StorageLocationSchema,
19747
19910
  relativePath: string()
19748
- }), boolean()), method(object({
19911
+ }), boolean(), { auth: "admin" }), method(object({
19749
19912
  location: StorageLocationSchema,
19750
19913
  prefix: string().optional()
19751
- }), array(string()).readonly()), method(object({
19914
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
19752
19915
  location: StorageLocationSchema,
19753
19916
  relativePath: string()
19754
- }), _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" });
19917
+ }), _void(), {
19918
+ kind: "mutation",
19919
+ auth: "admin"
19920
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
19921
+ kind: "mutation",
19922
+ auth: "admin"
19923
+ }), method(WriteChunkInputSchema, _void(), {
19924
+ kind: "mutation",
19925
+ auth: "admin"
19926
+ }), method(FinalizeUploadInputSchema, _void(), {
19927
+ kind: "mutation",
19928
+ auth: "admin"
19929
+ }), method(AbortUploadInputSchema, _void(), {
19930
+ kind: "mutation",
19931
+ auth: "admin"
19932
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
19933
+ kind: "mutation",
19934
+ auth: "admin"
19935
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
19936
+ kind: "mutation",
19937
+ auth: "admin"
19938
+ });
19755
19939
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
19756
19940
  var ProfileSettingsSchemaBridge = unknown().nullable();
19757
19941
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -20009,7 +20193,8 @@ method(object({
20009
20193
  access: "create"
20010
20194
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
20011
20195
  kind: "mutation",
20012
- access: "view"
20196
+ access: "view",
20197
+ auth: "admin"
20013
20198
  }), method(object({
20014
20199
  /** Required — the user the assertion belongs to (verified). */
20015
20200
  userId: string(),
@@ -20017,10 +20202,12 @@ method(object({
20017
20202
  response: record(string(), unknown())
20018
20203
  }), object({ verified: boolean() }), {
20019
20204
  kind: "mutation",
20020
- access: "view"
20205
+ access: "view",
20206
+ auth: "admin"
20021
20207
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20022
20208
  kind: "mutation",
20023
- access: "view"
20209
+ access: "view",
20210
+ auth: "admin"
20024
20211
  }), method(object({
20025
20212
  /** AuthenticationResponseJSON from the browser. */
20026
20213
  response: record(string(), unknown()) }), object({
@@ -20028,7 +20215,8 @@ response: record(string(), unknown()) }), object({
20028
20215
  userId: string().nullable()
20029
20216
  }), {
20030
20217
  kind: "mutation",
20031
- access: "view"
20218
+ access: "view",
20219
+ auth: "admin"
20032
20220
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
20033
20221
  userId: string(),
20034
20222
  credentialId: string()
@@ -20200,7 +20388,19 @@ var VectorStatsResultSchema = object({
20200
20388
  /** False when the backend ranks approximately. */
20201
20389
  exact: boolean()
20202
20390
  });
20203
- 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);
20391
+ method(VectorDeclareIndexInputSchema, _void(), {
20392
+ kind: "mutation",
20393
+ auth: "admin"
20394
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20395
+ kind: "mutation",
20396
+ auth: "admin"
20397
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20398
+ kind: "mutation",
20399
+ auth: "admin"
20400
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20401
+ kind: "mutation",
20402
+ auth: "admin"
20403
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20204
20404
  var ClipSchema = object({
20205
20405
  /** Opaque, provider-namespaced id. The default provider encodes the time
20206
20406
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -21923,7 +22123,27 @@ var MediaFileLiteSchema$1 = object({
21923
22123
  sizeBytes: number(),
21924
22124
  timestamp: number()
21925
22125
  });
21926
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22126
+ method(object({
22127
+ /**
22128
+ * Inline {@link IdentitySchema.coverBase64} on every row.
22129
+ *
22130
+ * Default `false`, the same inversion `listRecentFaces` and
22131
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
22132
+ * why the burden belongs on the caller that WANTS the bytes). Measured
22133
+ * on the live hub the same day: four identities cost 40,979 B with the
22134
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
22135
+ * four times and the viewer holds at `staleTime: 30_000`.
22136
+ *
22137
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
22138
+ * the `event-media` plane serves that key `immutable` with an ETag.
22139
+ *
22140
+ * **This is an INPUT field, so it does not reach the addon until the
22141
+ * next train** — the hub router validates cap inputs against its own
22142
+ * compiled Zod and strips a key it does not know. Until then the
22143
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
22144
+ * is what ships, and the opt-in becomes reachable when the train lands.
22145
+ */
22146
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
21927
22147
  kind: "mutation",
21928
22148
  auth: "admin"
21929
22149
  }), method(object({
@@ -24068,7 +24288,14 @@ var PlateInfoSchema = object({
24068
24288
  plateBbox: BoundingBoxSchema.optional(),
24069
24289
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
24070
24290
  keyFrameMediaKey: string().optional(),
24071
- base64: string().optional()
24291
+ base64: string().optional(),
24292
+ /**
24293
+ * Same crop as a data-plane URL, always present when the plate has a stored
24294
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
24295
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
24296
+ * left at its `true` default.
24297
+ */
24298
+ cropUrl: string().optional()
24072
24299
  });
24073
24300
  var MediaFileLiteSchema = object({
24074
24301
  key: string(),
@@ -24086,14 +24313,34 @@ var PlateClusterSchema = object({
24086
24313
  });
24087
24314
  method(object({
24088
24315
  deviceId: number().int().optional(),
24089
- limit: number().int().positive().optional()
24316
+ limit: number().int().positive().optional(),
24317
+ /**
24318
+ * Inline the base64 crop on every row. Default `true` — the existing
24319
+ * behaviour, kept so no caller breaks.
24320
+ *
24321
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
24322
+ * Measured on the live hub at the 500 rows the Plates view asks for:
24323
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
24324
+ * metadata without them — and the browser then caches the images.
24325
+ *
24326
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
24327
+ * plates were the one gallery list left without it.
24328
+ *
24329
+ * **This is an INPUT field, so it does not reach the addon until the
24330
+ * next train.** The hub router validates cap inputs against its own
24331
+ * compiled Zod and strips a key it does not know. Until the train
24332
+ * ships, sending `false` is harmless and keeps the crops inline.
24333
+ */
24334
+ includeCrops: boolean().optional()
24090
24335
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
24091
24336
  deviceId: number().int(),
24092
24337
  trackId: string()
24093
24338
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
24094
24339
  text: string().min(1),
24095
24340
  maxDistance: number().int().min(0).optional(),
24096
- limit: number().int().positive().optional()
24341
+ limit: number().int().positive().optional(),
24342
+ /** See `listPlates.includeCrops`. Default `true`. */
24343
+ includeCrops: boolean().optional()
24097
24344
  }), array(PlateInfoSchema).readonly()), method(object({
24098
24345
  maxDistance: number().int().min(0).optional(),
24099
24346
  minClusterSize: number().int().min(2).optional(),
@@ -24107,7 +24354,13 @@ method(object({
24107
24354
  }), method(object({ plateId: string() }), _void(), {
24108
24355
  kind: "mutation",
24109
24356
  auth: "admin"
24110
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24357
+ }), method(object({
24358
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
24359
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
24360
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
24361
+ * INPUT field: stripped by the hub router until the train ships, which
24362
+ * resolves to `false` and is exactly the intended default. */
24363
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24111
24364
  kind: "mutation",
24112
24365
  auth: "admin"
24113
24366
  }), method(object({
@@ -28160,6 +28413,12 @@ Object.freeze({
28160
28413
  addonId: null,
28161
28414
  access: "view"
28162
28415
  },
28416
+ "deviceManager.getBindingsBatch": {
28417
+ capName: "device-manager",
28418
+ capScope: "system",
28419
+ addonId: null,
28420
+ access: "view"
28421
+ },
28163
28422
  "deviceManager.getChildren": {
28164
28423
  capName: "device-manager",
28165
28424
  capScope: "system",
@@ -28220,6 +28479,12 @@ Object.freeze({
28220
28479
  addonId: null,
28221
28480
  access: "view"
28222
28481
  },
28482
+ "deviceManager.getLinkedDevicesBatch": {
28483
+ capName: "device-manager",
28484
+ capScope: "system",
28485
+ addonId: null,
28486
+ access: "view"
28487
+ },
28223
28488
  "deviceManager.getRoleDisplayDefaults": {
28224
28489
  capName: "device-manager",
28225
28490
  capScope: "system",
@@ -29924,6 +30189,12 @@ Object.freeze({
29924
30189
  addonId: null,
29925
30190
  access: "create"
29926
30191
  },
30192
+ "pipelineAnalytics.cancelRelocateMedia": {
30193
+ capName: "pipeline-analytics",
30194
+ capScope: "device",
30195
+ addonId: null,
30196
+ access: "create"
30197
+ },
29927
30198
  "pipelineAnalytics.cancelStorageMigrationMove": {
29928
30199
  capName: "pipeline-analytics",
29929
30200
  capScope: "device",
@@ -29990,6 +30261,12 @@ Object.freeze({
29990
30261
  addonId: null,
29991
30262
  access: "view"
29992
30263
  },
30264
+ "pipelineAnalytics.getGroup": {
30265
+ capName: "pipeline-analytics",
30266
+ capScope: "device",
30267
+ addonId: null,
30268
+ access: "view"
30269
+ },
29993
30270
  "pipelineAnalytics.getKeyEvents": {
29994
30271
  capName: "pipeline-analytics",
29995
30272
  capScope: "device",
@@ -30074,6 +30351,12 @@ Object.freeze({
30074
30351
  addonId: null,
30075
30352
  access: "view"
30076
30353
  },
30354
+ "pipelineAnalytics.listGroups": {
30355
+ capName: "pipeline-analytics",
30356
+ capScope: "device",
30357
+ addonId: null,
30358
+ access: "view"
30359
+ },
30077
30360
  "pipelineAnalytics.listOpsLog": {
30078
30361
  capName: "pipeline-analytics",
30079
30362
  capScope: "device",
@@ -30086,6 +30369,12 @@ Object.freeze({
30086
30369
  addonId: null,
30087
30370
  access: "view"
30088
30371
  },
30372
+ "pipelineAnalytics.listRelocateMediaJobs": {
30373
+ capName: "pipeline-analytics",
30374
+ capScope: "device",
30375
+ addonId: null,
30376
+ access: "view"
30377
+ },
30089
30378
  "pipelineAnalytics.listRetrainAnnotations": {
30090
30379
  capName: "pipeline-analytics",
30091
30380
  capScope: "device",
@@ -30164,6 +30453,12 @@ Object.freeze({
30164
30453
  addonId: null,
30165
30454
  access: "create"
30166
30455
  },
30456
+ "pipelineAnalytics.relocateMedia": {
30457
+ capName: "pipeline-analytics",
30458
+ capScope: "device",
30459
+ addonId: null,
30460
+ access: "create"
30461
+ },
30167
30462
  "pipelineAnalytics.restageRetrainTrack": {
30168
30463
  capName: "pipeline-analytics",
30169
30464
  capScope: "device",
@@ -32855,6 +33150,11 @@ Object.freeze({
32855
33150
  form: "single",
32856
33151
  optional: false
32857
33152
  }],
33153
+ "deviceManager.getBindingsBatch": [{
33154
+ name: "deviceIds",
33155
+ form: "array",
33156
+ optional: false
33157
+ }],
32858
33158
  "deviceManager.getChildren": [{
32859
33159
  name: "parentDeviceId",
32860
33160
  form: "single",
@@ -32900,6 +33200,11 @@ Object.freeze({
32900
33200
  form: "single",
32901
33201
  optional: false
32902
33202
  }],
33203
+ "deviceManager.getLinkedDevicesBatch": [{
33204
+ name: "deviceIds",
33205
+ form: "array",
33206
+ optional: false
33207
+ }],
32903
33208
  "deviceManager.getSettingsSchema": [{
32904
33209
  name: "deviceId",
32905
33210
  form: "single",
@@ -32920,6 +33225,11 @@ Object.freeze({
32920
33225
  form: "single",
32921
33226
  optional: false
32922
33227
  }],
33228
+ "deviceManager.listAll": [{
33229
+ name: "deviceIds",
33230
+ form: "array",
33231
+ optional: true
33232
+ }],
32923
33233
  "deviceManager.loadConfig": [{
32924
33234
  name: "deviceId",
32925
33235
  form: "single",
@@ -33493,6 +33803,11 @@ Object.freeze({
33493
33803
  form: "single",
33494
33804
  optional: false
33495
33805
  }],
33806
+ "pipelineAnalytics.getGroup": [{
33807
+ name: "deviceId",
33808
+ form: "single",
33809
+ optional: false
33810
+ }],
33496
33811
  "pipelineAnalytics.getKeyEvents": [{
33497
33812
  name: "deviceId",
33498
33813
  form: "single",
@@ -33548,6 +33863,11 @@ Object.freeze({
33548
33863
  form: "array",
33549
33864
  optional: false
33550
33865
  }],
33866
+ "pipelineAnalytics.listGroups": [{
33867
+ name: "deviceIds",
33868
+ form: "array",
33869
+ optional: false
33870
+ }],
33551
33871
  "pipelineAnalytics.listOpsLog": [{
33552
33872
  name: "deviceId",
33553
33873
  form: "single",