@camstack/addon-smtp-nodemailer 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.
@@ -5836,6 +5836,13 @@ var BaseAddon = class {
5836
5836
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5837
5837
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5838
5838
  _registeredCapNames = [];
5839
+ /**
5840
+ * True only after `readAddonStore` actually answered. Constructor
5841
+ * defaults look like stored config when the store is down — a forked
5842
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5843
+ * mode, 2026-08-25) is not "the operator chose this".
5844
+ */
5845
+ settingsStoreReady = false;
5839
5846
  /** Default config values. Provided via constructor. */
5840
5847
  defaults;
5841
5848
  constructor(defaults) {
@@ -6236,7 +6243,9 @@ var BaseAddon = class {
6236
6243
  ];
6237
6244
  let lastErr;
6238
6245
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6239
- return await settings.readAddonStore() ?? {};
6246
+ const stored = await settings.readAddonStore() ?? {};
6247
+ this.settingsStoreReady = true;
6248
+ return stored;
6240
6249
  } catch (err) {
6241
6250
  lastErr = err;
6242
6251
  const msg = err instanceof Error ? err.message : String(err);
@@ -6244,6 +6253,7 @@ var BaseAddon = class {
6244
6253
  if (attempt === delaysMs.length) break;
6245
6254
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6246
6255
  }
6256
+ this.settingsStoreReady = false;
6247
6257
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6248
6258
  return {};
6249
6259
  }
@@ -6655,7 +6665,7 @@ function method(input, output, options) {
6655
6665
  input,
6656
6666
  output,
6657
6667
  kind: options?.kind ?? "query",
6658
- auth: options?.auth ?? "protected",
6668
+ ...options?.auth !== void 0 ? { auth: options.auth } : {},
6659
6669
  ...options?.access !== void 0 ? { access: options.access } : {},
6660
6670
  ...options?.caller !== void 0 ? { caller: options.caller } : {},
6661
6671
  timeoutMs: options?.timeoutMs
@@ -6675,7 +6685,7 @@ function systemMethod(input, output, options) {
6675
6685
  }
6676
6686
  var StaticDirOutputSchema$1 = object({ staticDir: string() });
6677
6687
  var VersionOutputSchema$1 = object({ version: string() });
6678
- method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6688
+ method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
6679
6689
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
6680
6690
  DeviceType["Camera"] = "camera";
6681
6691
  DeviceType["Hub"] = "hub";
@@ -6996,7 +7006,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6996
7006
  }({});
6997
7007
  var StaticDirOutputSchema = object({ staticDir: string() });
6998
7008
  var VersionOutputSchema = object({ version: string() });
6999
- method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
7009
+ method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
7000
7010
  /**
7001
7011
  * device-ops — device-scoped cap that unifies the per-IDevice operations
7002
7012
  * previously routed through the `.device-ops` Moleculer bridge service.
@@ -7610,24 +7620,6 @@ var RecordingRetentionSchema = object({
7610
7620
  maxSizeGb: number().min(0).optional()
7611
7621
  });
7612
7622
  /**
7613
- * Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
7614
- * sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
7615
- * previews at. Five graduated steps; absent on a config = `standard` (the
7616
- * shipped default, matching `sheet-geometry`/`sheet-composer`).
7617
- *
7618
- * Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
7619
- * Each window's index sidecar carries its own tile dims, so a camera whose
7620
- * preset changed over time renders every historical window at the dims it was
7621
- * written with.
7622
- */
7623
- var ScrubThumbnailPresetSchema = _enum([
7624
- "minimal",
7625
- "low",
7626
- "standard",
7627
- "high",
7628
- "max"
7629
- ]);
7630
- /**
7631
7623
  * The full per-camera recording intent — the wire shape of a RecordingTarget.
7632
7624
  *
7633
7625
  * `bands` is the ONLY authored recording intent: what to record, when, and on
@@ -7635,7 +7627,11 @@ var ScrubThumbnailPresetSchema = _enum([
7635
7627
  * other field is a storage knob (profiles, segment length, retention, scrub).
7636
7628
  *
7637
7629
  * STRICT on purpose: the legacy authoring surface (`schedule`/`schedules`/
7638
- * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30.
7630
+ * `triggers`/`preBufferSec`/`postBufferSec`/`rules`) was retired 2026-07-30,
7631
+ * and `scrubThumbnails` — a five-step fidelity knob for a sprite tier that was
7632
+ * deleted on 2026-07-24 and had ZERO consumers in the recorder — on 2026-08-25
7633
+ * (D62: a switch that writes a store nobody reads is worse than no switch).
7634
+ * Stored rows keep loading: the READ schema is `.strip()` (config-store.ts).
7639
7635
  * A stale caller must fail loudly — silently stripping its legacy intent would
7640
7636
  * persist a band-less config, i.e. silently stop recording the camera.
7641
7637
  */
@@ -7658,14 +7654,7 @@ var RecordingConfigSchema = object({
7658
7654
  * "off" is the absence of a covering band, never a band value.
7659
7655
  */
7660
7656
  bands: array(RecordingBandSchema).default([]),
7661
- retention: RecordingRetentionSchema.optional(),
7662
- /**
7663
- * Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
7664
- * timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
7665
- * windows only — existing sheets are immutable, and each window's index
7666
- * carries its own tile dims so mixed-preset history renders correctly.
7667
- */
7668
- scrubThumbnails: ScrubThumbnailPresetSchema.optional()
7657
+ retention: RecordingRetentionSchema.optional()
7669
7658
  }).strict();
7670
7659
  /**
7671
7660
  * Entity-relocation job state (storage entity-routing spec, Phase 4).
@@ -7741,10 +7730,11 @@ var RelocateFootageInputSchema = object({
7741
7730
  * `RecordingConfig.enabled` or camera wrapper bindings. */
7742
7731
  var StorageMigrationLeaseInputSchema = object({ leaseId: string().min(1) });
7743
7732
  var StorageMigrationFootageMoveInputSchema = RelocateFootageInputSchema.extend({ leaseId: string().min(1) });
7744
- var StorageMigrationMediaMoveInputSchema = object({
7733
+ var RelocateMediaInputSchema = object({
7745
7734
  toLocationId: string(),
7746
7735
  throttleMbps: number().min(1).max(1e3).optional()
7747
- }).extend({ leaseId: string().min(1) });
7736
+ });
7737
+ var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
7748
7738
  /** The independently selectable logical storage classes. `recordings`
7749
7739
  * encompasses the high and mid segment profiles; `recordingsLow` is low
7750
7740
  * segments; `eventMedia` is post-analysis blobs. */
@@ -8039,7 +8029,26 @@ var LabelDefinitionSchema = object({
8039
8029
  description: string().optional(),
8040
8030
  icon: string().optional()
8041
8031
  });
8042
- var ClassMapDefinitionSchema = object({
8032
+ /**
8033
+ * Wire schema for a per-model CATALOG classMap override
8034
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8035
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8036
+ * detection pipeline executor actually routes.
8037
+ *
8038
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8039
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8040
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8041
+ * enum) — the two used to share the name `ClassMapDefinition`/
8042
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8043
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8044
+ * are not: it is two different concepts colliding on a name. Keep this type
8045
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
8046
+ * would either narrow every `ClassMapDefinition` consumer to the four
8047
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8048
+ * schema exists for (see the "rejects a classMap whose target is not a
8049
+ * detection macro" test in `model-catalog-schema.test.ts`).
8050
+ */
8051
+ var DetectionCatalogClassMapSchema = object({
8043
8052
  mapping: record(string(), _enum([
8044
8053
  "person",
8045
8054
  "vehicle",
@@ -8131,6 +8140,12 @@ var ModelVariantGroupSchema = object({
8131
8140
  */
8132
8141
  resolution: number().int().positive().optional()
8133
8142
  });
8143
+ var ModelProviderIdSchema = _enum([
8144
+ "camstack",
8145
+ "frigate",
8146
+ "scrypted",
8147
+ "custom"
8148
+ ]);
8134
8149
  var ModelCatalogEntrySchema = object({
8135
8150
  id: string(),
8136
8151
  name: string(),
@@ -8228,11 +8243,17 @@ var ModelCatalogEntrySchema = object({
8228
8243
  */
8229
8244
  group: ModelVariantGroupSchema.optional(),
8230
8245
  /**
8246
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8247
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8248
+ * persisted before this field existed (`inferModelProvider` fills those).
8249
+ */
8250
+ provider: ModelProviderIdSchema.optional(),
8251
+ /**
8231
8252
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8232
8253
  * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8233
8254
  * labels already ARE the CamStack macros (Scrypted identity map).
8234
8255
  */
8235
- classMap: ClassMapDefinitionSchema.optional()
8256
+ classMap: DetectionCatalogClassMapSchema.optional()
8236
8257
  });
8237
8258
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8238
8259
  format: literal("openvino"),
@@ -8262,7 +8283,7 @@ var ModelConvertMetadataSchema = object({
8262
8283
  "segmentation"
8263
8284
  ]),
8264
8285
  faceAlignment: boolean().optional(),
8265
- classMap: ClassMapDefinitionSchema.optional()
8286
+ classMap: DetectionCatalogClassMapSchema.optional()
8266
8287
  });
8267
8288
  var ConvertResultSchema = object({
8268
8289
  entry: ModelCatalogEntrySchema,
@@ -9125,7 +9146,7 @@ var AddonPageDeclarationSchema = object({
9125
9146
  /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
9126
9147
  sectionLabel: string().optional()
9127
9148
  });
9128
- method(_void(), array(AddonPageDeclarationSchema).readonly());
9149
+ method(_void(), array(AddonPageDeclarationSchema).readonly(), { auth: "admin" });
9129
9150
  var AddonHttpRouteSchema = object({
9130
9151
  method: _enum([
9131
9152
  "GET",
@@ -9360,7 +9381,7 @@ var WidgetMetadataSchema = object({
9360
9381
  defaultColumns: number().int().min(1).max(12).default(6),
9361
9382
  defaultRows: number().int().min(1).max(12).default(1)
9362
9383
  });
9363
- method(_void(), array(WidgetMetadataSchema).readonly());
9384
+ method(_void(), array(WidgetMetadataSchema).readonly(), { auth: "admin" });
9364
9385
  /**
9365
9386
  * `addon-widgets` — system-scoped singleton aggregator cap. Public-facing
9366
9387
  * surface that admin-ui consumes through `useAddonWidgetsListWidgets()`.
@@ -10882,7 +10903,7 @@ var CustomModelDescriptorSchema = object({
10882
10903
  stepId: string(),
10883
10904
  entry: ModelCatalogEntrySchema
10884
10905
  });
10885
- method(_void(), array(CustomModelDescriptorSchema).readonly());
10906
+ method(_void(), array(CustomModelDescriptorSchema).readonly(), { auth: "admin" });
10886
10907
  /**
10887
10908
  * Query filter for settings-store collections.
10888
10909
  */
@@ -10969,7 +10990,8 @@ method(object({
10969
10990
  }), _void(), { kind: "mutation" }), method(object({
10970
10991
  namespace: string().optional(),
10971
10992
  collection: string(),
10972
- filter: QueryFilterSchema.optional()
10993
+ filter: QueryFilterSchema.optional(),
10994
+ columns: array(string()).readonly().optional()
10973
10995
  }), array(SettingsRecordSchema).readonly()), method(object({
10974
10996
  namespace: string().optional(),
10975
10997
  collection: string(),
@@ -11032,46 +11054,87 @@ var EngineInfoSchema = object({
11032
11054
  kind: _enum(["relational", "vector"]),
11033
11055
  displayName: string()
11034
11056
  });
11035
- method(_void(), EngineInfoSchema), method(object({
11057
+ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
11036
11058
  namespace: string().optional(),
11037
11059
  collection: string(),
11038
11060
  key: string()
11039
- }), unknown()), method(object({
11061
+ }), unknown(), { auth: "admin" }), method(object({
11040
11062
  namespace: string().optional(),
11041
11063
  collection: string(),
11042
11064
  key: string(),
11043
11065
  value: unknown()
11044
- }), _void(), { kind: "mutation" }), method(object({
11066
+ }), _void(), {
11067
+ kind: "mutation",
11068
+ auth: "admin"
11069
+ }), method(object({
11045
11070
  namespace: string().optional(),
11046
11071
  collection: string(),
11047
- filter: QueryFilterSchema.optional()
11048
- }), array(SettingsRecordSchema).readonly()), method(object({
11072
+ filter: QueryFilterSchema.optional(),
11073
+ /**
11074
+ * SQL-level column projection — MUST mirror `settings-store.query`.
11075
+ *
11076
+ * ⚠ An earlier version of this comment blamed Zod stripping, and that
11077
+ * was wrong — corrected 2026-08-26 after the hop map
11078
+ * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
11079
+ * There is **no Zod parse at all** between the door and the engine: the
11080
+ * dispatcher forwards the payload verbatim and UDS carries it whole. A
11081
+ * field declared here reaches `SqliteSettingsBackend` either way.
11082
+ *
11083
+ * What actually lost `columns` was the THIRD declaration of this shape:
11084
+ * `SettingsQueryInput` in `interfaces/storage.ts`, a hand-written TS
11085
+ * interface the engine destructures from. The field existed on both
11086
+ * schemas and the engine still never read it, because nothing checks a
11087
+ * registered provider against `InferProvider<cap>` —
11088
+ * `ProviderRegistration.provider` is typed `object`.
11089
+ *
11090
+ * It is declared here anyway, and must stay in step with
11091
+ * `settings-store.query`: a caller reading only the cap definitions has
11092
+ * to be able to see that this call carries a projection.
11093
+ * `data-door-schema-parity.spec.ts` keeps the two aligned.
11094
+ */
11095
+ columns: array(string()).readonly().optional()
11096
+ }), array(SettingsRecordSchema).readonly(), { auth: "admin" }), method(object({
11049
11097
  namespace: string().optional(),
11050
11098
  collection: string(),
11051
11099
  record: SettingsRecordSchema
11052
- }), _void(), { kind: "mutation" }), method(object({
11100
+ }), _void(), {
11101
+ kind: "mutation",
11102
+ auth: "admin"
11103
+ }), method(object({
11053
11104
  namespace: string().optional(),
11054
11105
  collection: string(),
11055
11106
  id: string(),
11056
11107
  data: record(string(), unknown())
11057
- }), _void(), { kind: "mutation" }), method(object({
11108
+ }), _void(), {
11109
+ kind: "mutation",
11110
+ auth: "admin"
11111
+ }), method(object({
11058
11112
  namespace: string().optional(),
11059
11113
  collection: string(),
11060
11114
  key: string()
11061
- }), _void(), { kind: "mutation" }), method(object({
11115
+ }), _void(), {
11116
+ kind: "mutation",
11117
+ auth: "admin"
11118
+ }), method(object({
11062
11119
  namespace: string().optional(),
11063
11120
  collection: string(),
11064
11121
  filter: MutationFilterSchema
11065
- }), object({ deleted: number().int() }), { kind: "mutation" }), method(object({
11122
+ }), object({ deleted: number().int() }), {
11123
+ kind: "mutation",
11124
+ auth: "admin"
11125
+ }), method(object({
11066
11126
  namespace: string().optional(),
11067
11127
  collection: string(),
11068
11128
  filter: MutationFilterSchema,
11069
11129
  data: record(string(), unknown())
11070
- }), object({ updated: number().int() }), { kind: "mutation" }), method(object({
11130
+ }), object({ updated: number().int() }), {
11131
+ kind: "mutation",
11132
+ auth: "admin"
11133
+ }), method(object({
11071
11134
  namespace: string().optional(),
11072
11135
  collection: string(),
11073
11136
  filter: QueryFilterSchema.optional()
11074
- }), number()), method(object({
11137
+ }), number(), { auth: "admin" }), method(object({
11075
11138
  namespace: string().optional(),
11076
11139
  collection: string(),
11077
11140
  field: string(),
@@ -11081,15 +11144,18 @@ method(_void(), EngineInfoSchema), method(object({
11081
11144
  }), array(object({
11082
11145
  bucket: number().int(),
11083
11146
  count: number().int()
11084
- })).readonly()), method(object({
11147
+ })).readonly(), { auth: "admin" }), method(object({
11085
11148
  namespace: string().optional(),
11086
11149
  collection: string()
11087
- }), boolean()), method(object({
11150
+ }), boolean(), { auth: "admin" }), method(object({
11088
11151
  namespace: string().optional(),
11089
11152
  collection: string(),
11090
11153
  columns: array(CollectionColumnSchema).readonly(),
11091
11154
  indexes: array(CollectionIndexSchema).readonly().optional()
11092
- }), _void(), { kind: "mutation" });
11155
+ }), _void(), {
11156
+ kind: "mutation",
11157
+ auth: "admin"
11158
+ });
11093
11159
  /**
11094
11160
  * shm ring usage stats for a `frameSink: 'shm'` decoder session —
11095
11161
  * exposed via `decoder.getShmStats` so downstream consumers can
@@ -11755,6 +11821,27 @@ var LinkedDeviceSchema = object({
11755
11821
  features: array(string()),
11756
11822
  producesTrackedEvents: boolean().optional()
11757
11823
  });
11824
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
11825
+ * The batch answer needs the tag; the single-device answer already has it
11826
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
11827
+ var LinkedDevicesForDeviceSchema = object({
11828
+ deviceId: number(),
11829
+ mode: LinkedDevicesModeSchema,
11830
+ devices: array(LinkedDeviceSchema)
11831
+ });
11832
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
11833
+ * `getAllBindings` all answer in. Declared once: three copies of the same
11834
+ * object literal is exactly how the three drift apart. */
11835
+ var DeviceBindingsForDeviceSchema = object({
11836
+ deviceId: number(),
11837
+ entries: array(object({
11838
+ capName: string(),
11839
+ kind: _enum(["native", "wrapped"]),
11840
+ providerAddonId: string(),
11841
+ providerNodeId: string(),
11842
+ nativeAddonId: string()
11843
+ }))
11844
+ });
11758
11845
  var SavedDeviceRowSchema = object({
11759
11846
  /** Numeric id reserved at allocateDeviceId time. */
11760
11847
  id: number(),
@@ -11980,11 +12067,25 @@ method(object({
11980
12067
  projection: _enum(["full", "slim"]).optional(),
11981
12068
  /** Return only camera devices. Filtering server-side instead of
11982
12069
  * shipping 293 rows to find 12. */
11983
- isCamera: boolean().optional()
12070
+ isCamera: boolean().optional(),
12071
+ /**
12072
+ * Return only these device ids. For the caller that already KNOWS the
12073
+ * handful it wants and needs a field the id-bearing answer does not
12074
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12075
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12076
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12077
+ * refetches on the reconcile interval, on a phone.
12078
+ *
12079
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12080
+ * keys rather than rejecting them (verified against the live hub
12081
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12082
+ * it answers today and the caller filters as it already does.
12083
+ */
12084
+ deviceIds: array(number()).optional()
11984
12085
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
11985
12086
  mode: LinkedDevicesModeSchema,
11986
12087
  devices: array(LinkedDeviceSchema)
11987
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12088
+ })), 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({
11988
12089
  deviceId: number(),
11989
12090
  values: record(string(), unknown())
11990
12091
  }), object({ success: literal(true) }), {
@@ -12011,25 +12112,7 @@ method(object({
12011
12112
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
12012
12113
  kind: "mutation",
12013
12114
  auth: "admin"
12014
- }), method(object({ deviceId: number() }), object({
12015
- deviceId: number(),
12016
- entries: array(object({
12017
- capName: string(),
12018
- kind: _enum(["native", "wrapped"]),
12019
- providerAddonId: string(),
12020
- providerNodeId: string(),
12021
- nativeAddonId: string()
12022
- }))
12023
- })), method(object({}), array(object({
12024
- deviceId: number(),
12025
- entries: array(object({
12026
- capName: string(),
12027
- kind: _enum(["native", "wrapped"]),
12028
- providerAddonId: string(),
12029
- providerNodeId: string(),
12030
- nativeAddonId: string()
12031
- }))
12032
- }))), method(object({
12115
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12033
12116
  deviceId: number(),
12034
12117
  capName: string(),
12035
12118
  wrapperAddonId: string(),
@@ -12200,7 +12283,7 @@ method(object({
12200
12283
  crop: _instanceof(Uint8Array),
12201
12284
  width: number(),
12202
12285
  height: number()
12203
- }), EmbeddingResultSchema), method(object({ text: string() }), EmbeddingResultSchema), method(_void(), EmbeddingInfoSchema);
12286
+ }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
12204
12287
  /**
12205
12288
  * filesystem-browse — per-node capability for browsing the node's local
12206
12289
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
@@ -12493,19 +12576,22 @@ method(LlmGenerateBaseInputSchema.extend({
12493
12576
  runtime: ManagedRuntimeConfigSchema,
12494
12577
  /** The managed profile's timeout, threaded by the hub provider. */
12495
12578
  timeoutMs: number().int().positive().optional()
12496
- }), LlmGenerateResultSchema, { kind: "mutation" }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12579
+ }), LlmGenerateResultSchema, {
12580
+ kind: "mutation",
12581
+ auth: "admin"
12582
+ }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
12497
12583
  kind: "mutation",
12498
12584
  auth: "admin"
12499
12585
  }), method(object({}), _void(), {
12500
12586
  kind: "mutation",
12501
12587
  auth: "admin"
12502
- }), method(object({}), LlmRuntimeStatusSchema), method(object({ model: ManagedModelRefSchema }), _void(), {
12588
+ }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
12503
12589
  kind: "mutation",
12504
12590
  auth: "admin"
12505
12591
  }), method(object({ file: string() }), _void(), {
12506
12592
  kind: "mutation",
12507
12593
  auth: "admin"
12508
- }), method(object({}), array(LlmNodeModelSchema)), method(object({}), LlmRuntimeDiskUsageSchema);
12594
+ }), method(object({}), array(LlmNodeModelSchema), { auth: "admin" }), method(object({}), LlmRuntimeDiskUsageSchema, { auth: "admin" });
12509
12595
  /**
12510
12596
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
12511
12597
  * methods concat-fan across providers; single-row methods route to ONE
@@ -14401,12 +14487,15 @@ var NcOccupancyConditionSchema = object({
14401
14487
  * there is no second switch that can disagree with the first and every rule
14402
14488
  * authored before the decision migrates for free (`audioModeOf`):
14403
14489
  *
14404
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14405
- * classifier labels with one of them. No window, no percentage:
14406
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14407
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14408
- * the analyzer's (`classificationMinScore`, per device) a label only
14409
- * reaches this condition if the classifier was already confident enough.
14490
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14491
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14492
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14493
+ * frames is the wrong question for a classifier that labels 1–3 frames
14494
+ * per episode. The count window is the brake that drops a single-frame
14495
+ * false positive; the rule's own `throttle` cooldown is the other. The
14496
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14497
+ * per device) — a label only reaches this condition if the classifier was
14498
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14410
14499
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14411
14500
  * the condition: at least `hitPercent`% of the samples over
14412
14501
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14433,14 +14522,22 @@ var NcOccupancyConditionSchema = object({
14433
14522
  * an operator who typed `dog` mean the same thing.
14434
14523
  */
14435
14524
  var NcAudioConditionSchema = object({
14436
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14525
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14437
14526
  labels: array(string().min(1)).min(1).optional(),
14438
14527
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14439
14528
  dbThreshold: number().min(-96).max(0).optional(),
14440
14529
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14441
14530
  hitPercent: number().int().min(1).max(100).default(60),
14442
14531
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14443
- samplingSeconds: number().int().min(1).max(300).default(10)
14532
+ samplingSeconds: number().int().min(1).max(300).default(10),
14533
+ /**
14534
+ * LABEL MODE: how many labelled frames must land inside
14535
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14536
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14537
+ */
14538
+ confirmHits: number().int().min(1).max(20).optional(),
14539
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14540
+ confirmWindowSec: number().int().min(1).max(60).optional()
14444
14541
  });
14445
14542
  /**
14446
14543
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -15967,7 +16064,7 @@ var OauthIntegrationDescriptorSchema = object({
15967
16064
  */
15968
16065
  refreshTokenTtlSec: union([number().int().positive(), literal("never")]).optional()
15969
16066
  });
15970
- method(_void(), OauthIntegrationDescriptorSchema);
16067
+ method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
15971
16068
  /**
15972
16069
  * pipeline-analytics — device-scoped wrapper cap. Refines raw
15973
16070
  * per-frame detections emitted by the pipeline runner into tracked
@@ -16814,6 +16911,46 @@ var RecentTracksPageSchema = object({
16814
16911
  /** Cursor for the next page, or null when this page is the last. */
16815
16912
  nextCursor: string().nullable()
16816
16913
  });
16914
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
16915
+ var LIST_GROUPS_MAX_LIMIT = 100;
16916
+ var AnalyticsGroupRecordSchema = object({
16917
+ id: string(),
16918
+ deviceId: number().int(),
16919
+ openedAt: number().int(),
16920
+ closedAt: number().int(),
16921
+ timestamp: number().int(),
16922
+ memberCount: number().int(),
16923
+ memberTrackIds: array(string()).readonly(),
16924
+ className: string(),
16925
+ classes: array(string()).readonly(),
16926
+ /** Relative event-media path, or null when the group has no picture yet. */
16927
+ mediaUrl: string().nullable(),
16928
+ singleton: boolean()
16929
+ });
16930
+ var AnalyticsGroupMemberSchema = object({
16931
+ trackId: string(),
16932
+ deviceId: number().int(),
16933
+ className: string(),
16934
+ firstSeen: number().int(),
16935
+ lastSeen: number().int(),
16936
+ mediaUrl: string().nullable()
16937
+ });
16938
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
16939
+ var ListGroupsQueryInput = object({
16940
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
16941
+ deviceIds: array(number()),
16942
+ /** Window lower bound on `closedAt` (inclusive). */
16943
+ since: number().optional(),
16944
+ /** Window upper bound on `openedAt` (inclusive). */
16945
+ until: number().optional(),
16946
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
16947
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
16948
+ cursor: string().optional()
16949
+ });
16950
+ var ListGroupsPageSchema = object({
16951
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
16952
+ nextCursor: string().nullable()
16953
+ });
16817
16954
  var KeyEventQueryInput = object({
16818
16955
  deviceId: number(),
16819
16956
  /** Window lower bound (track firstSeen ≥ since). */
@@ -16889,7 +17026,9 @@ var TrackCascadeCountsSchema = object({
16889
17026
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
16890
17027
  plates: number().int(),
16891
17028
  /** Per-track CLIP search vectors removed (best-effort). */
16892
- embeddings: number().int()
17029
+ embeddings: number().int(),
17030
+ /** Group membership + group rows removed with their last member (best-effort). */
17031
+ groups: number().int()
16893
17032
  });
16894
17033
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
16895
17034
  var DiskReconcileCountsSchema = object({
@@ -17035,7 +17174,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17035
17174
  * stationary registry). Default false: the timeline lists passages,
17036
17175
  * not parking records (operator decision, 2026-08-15). */
17037
17176
  includeStationary: boolean().optional()
17038
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17177
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17178
+ deviceId: number(),
17179
+ groupId: string().min(1)
17180
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17039
17181
  kind: "mutation",
17040
17182
  auth: "admin"
17041
17183
  }), 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({
@@ -17117,6 +17259,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17117
17259
  }), method(object({ jobId: string() }), RelocateJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17118
17260
  kind: "mutation",
17119
17261
  auth: "admin"
17262
+ }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
17263
+ kind: "mutation",
17264
+ auth: "admin"
17265
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
17266
+ kind: "query",
17267
+ auth: "admin"
17268
+ }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
17269
+ kind: "mutation",
17270
+ auth: "admin"
17120
17271
  }), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
17121
17272
  kind: "query",
17122
17273
  auth: "admin"
@@ -17271,6 +17422,11 @@ object({
17271
17422
  "jpeg"
17272
17423
  ])
17273
17424
  });
17425
+ /**
17426
+ * Process-local frame identity. It is serializable so it can ride an in-process
17427
+ * capability call, but `registryId` deliberately prevents resolution in any
17428
+ * other process or execution group.
17429
+ */
17274
17430
  var FrameRefSchema = object({
17275
17431
  registryId: string().min(1),
17276
17432
  id: string().min(1),
@@ -17345,7 +17501,8 @@ var PipelineModelOptionSchema = object({
17345
17501
  sizeMB: number()
17346
17502
  })),
17347
17503
  group: ModelVariantGroupSchema.optional(),
17348
- legacy: boolean().optional()
17504
+ legacy: boolean().optional(),
17505
+ provider: ModelProviderIdSchema.optional()
17349
17506
  });
17350
17507
  var ConfigFieldBridge = custom();
17351
17508
  var PipelineAddonSchemaSchema = object({
@@ -19448,7 +19605,7 @@ method(object({
19448
19605
  * linking rather than produce an eternal token.
19449
19606
  */
19450
19607
  ttlSec: union([number().int().positive(), literal("never")]).optional()
19451
- }), object({ token: string() })), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable());
19608
+ }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
19452
19609
  var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
19453
19610
  providerId: string().min(1),
19454
19611
  displayName: string().min(1),
@@ -19543,10 +19700,13 @@ var EvictResultSchema = object({
19543
19700
  /** True when the provider has nothing left it is willing to drop on this location. */
19544
19701
  exhausted: boolean()
19545
19702
  });
19546
- method(object({ locationId: string() }), EvictableUsageSchema), method(object({
19703
+ method(object({ locationId: string() }), EvictableUsageSchema, { auth: "admin" }), method(object({
19547
19704
  locationId: string(),
19548
19705
  targetBytes: number().int().positive()
19549
- }), EvictResultSchema, { kind: "mutation" });
19706
+ }), EvictResultSchema, {
19707
+ kind: "mutation",
19708
+ auth: "admin"
19709
+ });
19550
19710
  method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }), method(StorageMigrationInputSchema, object({ jobId: string() }), {
19551
19711
  kind: "mutation",
19552
19712
  auth: "admin"
@@ -19606,26 +19766,50 @@ var ReadChunkInputSchema = object({
19606
19766
  length: number()
19607
19767
  });
19608
19768
  var EndDownloadInputSchema = object({ downloadId: string() });
19609
- method(_void(), ProviderInfoSchema), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19769
+ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
19610
19770
  location: StorageLocationSchema,
19611
19771
  relativePath: string()
19612
- }), string()), method(object({
19772
+ }), string(), { auth: "admin" }), method(object({
19613
19773
  location: StorageLocationSchema,
19614
19774
  relativePath: string(),
19615
19775
  data: _instanceof(Uint8Array)
19616
- }), _void(), { kind: "mutation" }), method(object({
19776
+ }), _void(), {
19777
+ kind: "mutation",
19778
+ auth: "admin"
19779
+ }), method(object({
19617
19780
  location: StorageLocationSchema,
19618
19781
  relativePath: string()
19619
- }), _instanceof(Uint8Array)), method(object({
19782
+ }), _instanceof(Uint8Array), { auth: "admin" }), method(object({
19620
19783
  location: StorageLocationSchema,
19621
19784
  relativePath: string()
19622
- }), boolean()), method(object({
19785
+ }), boolean(), { auth: "admin" }), method(object({
19623
19786
  location: StorageLocationSchema,
19624
19787
  prefix: string().optional()
19625
- }), array(string()).readonly()), method(object({
19788
+ }), array(string()).readonly(), { auth: "admin" }), method(object({
19626
19789
  location: StorageLocationSchema,
19627
19790
  relativePath: string()
19628
- }), _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" });
19791
+ }), _void(), {
19792
+ kind: "mutation",
19793
+ auth: "admin"
19794
+ }), method(object({ location: StorageLocationSchema }), number().nullable(), { auth: "admin" }), method(BeginUploadInputSchema, BeginUploadResultSchema, {
19795
+ kind: "mutation",
19796
+ auth: "admin"
19797
+ }), method(WriteChunkInputSchema, _void(), {
19798
+ kind: "mutation",
19799
+ auth: "admin"
19800
+ }), method(FinalizeUploadInputSchema, _void(), {
19801
+ kind: "mutation",
19802
+ auth: "admin"
19803
+ }), method(AbortUploadInputSchema, _void(), {
19804
+ kind: "mutation",
19805
+ auth: "admin"
19806
+ }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
19807
+ kind: "mutation",
19808
+ auth: "admin"
19809
+ }), method(ReadChunkInputSchema, _instanceof(Uint8Array), { auth: "admin" }), method(EndDownloadInputSchema, _void(), {
19810
+ kind: "mutation",
19811
+ auth: "admin"
19812
+ });
19629
19813
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
19630
19814
  var ProfileSettingsSchemaBridge = unknown().nullable();
19631
19815
  var ProfileSettingsBagSchema = record(string(), unknown());
@@ -19883,7 +20067,8 @@ method(object({
19883
20067
  access: "create"
19884
20068
  }), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
19885
20069
  kind: "mutation",
19886
- access: "view"
20070
+ access: "view",
20071
+ auth: "admin"
19887
20072
  }), method(object({
19888
20073
  /** Required — the user the assertion belongs to (verified). */
19889
20074
  userId: string(),
@@ -19891,10 +20076,12 @@ method(object({
19891
20076
  response: record(string(), unknown())
19892
20077
  }), object({ verified: boolean() }), {
19893
20078
  kind: "mutation",
19894
- access: "view"
20079
+ access: "view",
20080
+ auth: "admin"
19895
20081
  }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19896
20082
  kind: "mutation",
19897
- access: "view"
20083
+ access: "view",
20084
+ auth: "admin"
19898
20085
  }), method(object({
19899
20086
  /** AuthenticationResponseJSON from the browser. */
19900
20087
  response: record(string(), unknown()) }), object({
@@ -19902,7 +20089,8 @@ response: record(string(), unknown()) }), object({
19902
20089
  userId: string().nullable()
19903
20090
  }), {
19904
20091
  kind: "mutation",
19905
- access: "view"
20092
+ access: "view",
20093
+ auth: "admin"
19906
20094
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19907
20095
  userId: string(),
19908
20096
  credentialId: string()
@@ -20074,7 +20262,19 @@ var VectorStatsResultSchema = object({
20074
20262
  /** False when the backend ranks approximately. */
20075
20263
  exact: boolean()
20076
20264
  });
20077
- 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);
20265
+ method(VectorDeclareIndexInputSchema, _void(), {
20266
+ kind: "mutation",
20267
+ auth: "admin"
20268
+ }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
20269
+ kind: "mutation",
20270
+ auth: "admin"
20271
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
20272
+ kind: "mutation",
20273
+ auth: "admin"
20274
+ }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
20275
+ kind: "mutation",
20276
+ auth: "admin"
20277
+ }), method(VectorStatsInputSchema, VectorStatsResultSchema, { auth: "admin" });
20078
20278
  var ClipSchema = object({
20079
20279
  /** Opaque, provider-namespaced id. The default provider encodes the time
20080
20280
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -21797,7 +21997,27 @@ var MediaFileLiteSchema$1 = object({
21797
21997
  sizeBytes: number(),
21798
21998
  timestamp: number()
21799
21999
  });
21800
- method(_void(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
22000
+ method(object({
22001
+ /**
22002
+ * Inline {@link IdentitySchema.coverBase64} on every row.
22003
+ *
22004
+ * Default `false`, the same inversion `listRecentFaces` and
22005
+ * `listPlates` took on 2026-08-25 (see `include-crops-default.ts` for
22006
+ * why the burden belongs on the caller that WANTS the bytes). Measured
22007
+ * on the live hub the same day: four identities cost 40,979 B with the
22008
+ * covers inline, ~10 KB of base64 per row, on a query this UI mounts
22009
+ * four times and the viewer holds at `staleTime: 30_000`.
22010
+ *
22011
+ * Nothing loses its avatar: `coverMediaKey` is already on every row and
22012
+ * the `event-media` plane serves that key `immutable` with an ETag.
22013
+ *
22014
+ * **This is an INPUT field, so it does not reach the addon until the
22015
+ * next train** — the hub router validates cap inputs against its own
22016
+ * compiled Zod and strips a key it does not know. Until then the
22017
+ * provider sees `undefined`, which resolves to `false`: the cheap shape
22018
+ * is what ships, and the opt-in becomes reachable when the train lands.
22019
+ */
22020
+ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly()), method(object({ name: string().min(1) }), IdentitySchema, {
21801
22021
  kind: "mutation",
21802
22022
  auth: "admin"
21803
22023
  }), method(object({
@@ -23942,7 +24162,14 @@ var PlateInfoSchema = object({
23942
24162
  plateBbox: BoundingBoxSchema.optional(),
23943
24163
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
23944
24164
  keyFrameMediaKey: string().optional(),
23945
- base64: string().optional()
24165
+ base64: string().optional(),
24166
+ /**
24167
+ * Same crop as a data-plane URL, always present when the plate has a stored
24168
+ * crop. `getPlateByTrack` returns this and never inlines JPEG; `listPlates`
24169
+ * and `searchPlates` inline the crop only when their `includeCrops` input is
24170
+ * left at its `true` default.
24171
+ */
24172
+ cropUrl: string().optional()
23946
24173
  });
23947
24174
  var MediaFileLiteSchema = object({
23948
24175
  key: string(),
@@ -23960,14 +24187,34 @@ var PlateClusterSchema = object({
23960
24187
  });
23961
24188
  method(object({
23962
24189
  deviceId: number().int().optional(),
23963
- limit: number().int().positive().optional()
24190
+ limit: number().int().positive().optional(),
24191
+ /**
24192
+ * Inline the base64 crop on every row. Default `true` — the existing
24193
+ * behaviour, kept so no caller breaks.
24194
+ *
24195
+ * Set `false` once the caller renders {@link PlateInfo.cropUrl}.
24196
+ * Measured on the live hub at the 500 rows the Plates view asks for:
24197
+ * 879,403 B and 27.7 s with the crops inline, against a few KiB of
24198
+ * metadata without them — and the browser then caches the images.
24199
+ *
24200
+ * This is the plate twin of `faceGallery.listRecentFaces`'s option;
24201
+ * plates were the one gallery list left without it.
24202
+ *
24203
+ * **This is an INPUT field, so it does not reach the addon until the
24204
+ * next train.** The hub router validates cap inputs against its own
24205
+ * compiled Zod and strips a key it does not know. Until the train
24206
+ * ships, sending `false` is harmless and keeps the crops inline.
24207
+ */
24208
+ includeCrops: boolean().optional()
23964
24209
  }).optional(), array(PlateInfoSchema).readonly()), method(object({
23965
24210
  deviceId: number().int(),
23966
24211
  trackId: string()
23967
24212
  }), PlateInfoSchema.nullable()), method(object({ plateId: string() }), array(MediaFileLiteSchema).readonly()), method(object({
23968
24213
  text: string().min(1),
23969
24214
  maxDistance: number().int().min(0).optional(),
23970
- limit: number().int().positive().optional()
24215
+ limit: number().int().positive().optional(),
24216
+ /** See `listPlates.includeCrops`. Default `true`. */
24217
+ includeCrops: boolean().optional()
23971
24218
  }), array(PlateInfoSchema).readonly()), method(object({
23972
24219
  maxDistance: number().int().min(0).optional(),
23973
24220
  minClusterSize: number().int().min(2).optional(),
@@ -23981,7 +24228,13 @@ method(object({
23981
24228
  }), method(object({ plateId: string() }), _void(), {
23982
24229
  kind: "mutation",
23983
24230
  auth: "admin"
23984
- }), method(_void(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
24231
+ }), method(object({
24232
+ /** Inline {@link VehicleSchema.coverBase64} on every row. Default
24233
+ * `false` — the vehicle twin of `faceGallery.listIdentities`'s
24234
+ * option; `coverMediaKey` + the `event-media` plane carry the picture.
24235
+ * INPUT field: stripped by the hub router until the train ships, which
24236
+ * resolves to `false` and is exactly the intended default. */
24237
+ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
23985
24238
  kind: "mutation",
23986
24239
  auth: "admin"
23987
24240
  }), method(object({
@@ -27582,6 +27835,12 @@ Object.freeze({
27582
27835
  addonId: null,
27583
27836
  access: "view"
27584
27837
  },
27838
+ "deviceManager.getBindingsBatch": {
27839
+ capName: "device-manager",
27840
+ capScope: "system",
27841
+ addonId: null,
27842
+ access: "view"
27843
+ },
27585
27844
  "deviceManager.getChildren": {
27586
27845
  capName: "device-manager",
27587
27846
  capScope: "system",
@@ -27642,6 +27901,12 @@ Object.freeze({
27642
27901
  addonId: null,
27643
27902
  access: "view"
27644
27903
  },
27904
+ "deviceManager.getLinkedDevicesBatch": {
27905
+ capName: "device-manager",
27906
+ capScope: "system",
27907
+ addonId: null,
27908
+ access: "view"
27909
+ },
27645
27910
  "deviceManager.getRoleDisplayDefaults": {
27646
27911
  capName: "device-manager",
27647
27912
  capScope: "system",
@@ -29346,6 +29611,12 @@ Object.freeze({
29346
29611
  addonId: null,
29347
29612
  access: "create"
29348
29613
  },
29614
+ "pipelineAnalytics.cancelRelocateMedia": {
29615
+ capName: "pipeline-analytics",
29616
+ capScope: "device",
29617
+ addonId: null,
29618
+ access: "create"
29619
+ },
29349
29620
  "pipelineAnalytics.cancelStorageMigrationMove": {
29350
29621
  capName: "pipeline-analytics",
29351
29622
  capScope: "device",
@@ -29412,6 +29683,12 @@ Object.freeze({
29412
29683
  addonId: null,
29413
29684
  access: "view"
29414
29685
  },
29686
+ "pipelineAnalytics.getGroup": {
29687
+ capName: "pipeline-analytics",
29688
+ capScope: "device",
29689
+ addonId: null,
29690
+ access: "view"
29691
+ },
29415
29692
  "pipelineAnalytics.getKeyEvents": {
29416
29693
  capName: "pipeline-analytics",
29417
29694
  capScope: "device",
@@ -29496,6 +29773,12 @@ Object.freeze({
29496
29773
  addonId: null,
29497
29774
  access: "view"
29498
29775
  },
29776
+ "pipelineAnalytics.listGroups": {
29777
+ capName: "pipeline-analytics",
29778
+ capScope: "device",
29779
+ addonId: null,
29780
+ access: "view"
29781
+ },
29499
29782
  "pipelineAnalytics.listOpsLog": {
29500
29783
  capName: "pipeline-analytics",
29501
29784
  capScope: "device",
@@ -29508,6 +29791,12 @@ Object.freeze({
29508
29791
  addonId: null,
29509
29792
  access: "view"
29510
29793
  },
29794
+ "pipelineAnalytics.listRelocateMediaJobs": {
29795
+ capName: "pipeline-analytics",
29796
+ capScope: "device",
29797
+ addonId: null,
29798
+ access: "view"
29799
+ },
29511
29800
  "pipelineAnalytics.listRetrainAnnotations": {
29512
29801
  capName: "pipeline-analytics",
29513
29802
  capScope: "device",
@@ -29586,6 +29875,12 @@ Object.freeze({
29586
29875
  addonId: null,
29587
29876
  access: "create"
29588
29877
  },
29878
+ "pipelineAnalytics.relocateMedia": {
29879
+ capName: "pipeline-analytics",
29880
+ capScope: "device",
29881
+ addonId: null,
29882
+ access: "create"
29883
+ },
29589
29884
  "pipelineAnalytics.restageRetrainTrack": {
29590
29885
  capName: "pipeline-analytics",
29591
29886
  capScope: "device",
@@ -32277,6 +32572,11 @@ Object.freeze({
32277
32572
  form: "single",
32278
32573
  optional: false
32279
32574
  }],
32575
+ "deviceManager.getBindingsBatch": [{
32576
+ name: "deviceIds",
32577
+ form: "array",
32578
+ optional: false
32579
+ }],
32280
32580
  "deviceManager.getChildren": [{
32281
32581
  name: "parentDeviceId",
32282
32582
  form: "single",
@@ -32322,6 +32622,11 @@ Object.freeze({
32322
32622
  form: "single",
32323
32623
  optional: false
32324
32624
  }],
32625
+ "deviceManager.getLinkedDevicesBatch": [{
32626
+ name: "deviceIds",
32627
+ form: "array",
32628
+ optional: false
32629
+ }],
32325
32630
  "deviceManager.getSettingsSchema": [{
32326
32631
  name: "deviceId",
32327
32632
  form: "single",
@@ -32342,6 +32647,11 @@ Object.freeze({
32342
32647
  form: "single",
32343
32648
  optional: false
32344
32649
  }],
32650
+ "deviceManager.listAll": [{
32651
+ name: "deviceIds",
32652
+ form: "array",
32653
+ optional: true
32654
+ }],
32345
32655
  "deviceManager.loadConfig": [{
32346
32656
  name: "deviceId",
32347
32657
  form: "single",
@@ -32915,6 +33225,11 @@ Object.freeze({
32915
33225
  form: "single",
32916
33226
  optional: false
32917
33227
  }],
33228
+ "pipelineAnalytics.getGroup": [{
33229
+ name: "deviceId",
33230
+ form: "single",
33231
+ optional: false
33232
+ }],
32918
33233
  "pipelineAnalytics.getKeyEvents": [{
32919
33234
  name: "deviceId",
32920
33235
  form: "single",
@@ -32970,6 +33285,11 @@ Object.freeze({
32970
33285
  form: "array",
32971
33286
  optional: false
32972
33287
  }],
33288
+ "pipelineAnalytics.listGroups": [{
33289
+ name: "deviceIds",
33290
+ form: "array",
33291
+ optional: false
33292
+ }],
32973
33293
  "pipelineAnalytics.listOpsLog": [{
32974
33294
  name: "deviceId",
32975
33295
  form: "single",