@camstack/addon-model-studio 1.1.63 → 1.1.64

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 (18) hide show
  1. package/dist/{MotionZonesSettings-B_OmCAXn.mjs → MotionZonesSettings-Csh9Okvs.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-rewJAGm0.mjs → PrivacyMaskSettings-D7aBKmIl.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BY4tJte_.mjs → SceneMonitorEditor-C7d4QdK2.mjs} +3 -3
  4. package/dist/_stub.js +11 -11
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BUHSjtFq.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-_UMbIXm8.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BEv5J4au.mjs +26 -0
  7. package/dist/{hostInit-BqDhrCXu.mjs → hostInit-ChZMP5Bt.mjs} +3 -3
  8. package/dist/model-studio.addon.js +259 -174
  9. package/dist/model-studio.addon.mjs +259 -174
  10. package/dist/{player-overlays-DN9nqGXk.mjs → player-overlays-C3k5161p.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-DdrSu5QF.mjs → responsive-DumBDPmA.mjs} +1 -1
  13. package/dist/{square-BVmTlLTE.mjs → square-39X7CNAb.mjs} +1 -1
  14. package/dist/{trash-2-BxEQ66D3.mjs → trash-2-CqLF5pGv.mjs} +1 -1
  15. package/dist/{use-device-snapshot-CbpsFwcI.mjs → use-device-snapshot-B7Pamux4.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CQ_gHSHU.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DkSj9fD3.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D0yi4BW4.mjs +0 -26
@@ -13543,6 +13543,114 @@ method(object({
13543
13543
  height: number()
13544
13544
  }), EmbeddingResultSchema, { auth: "admin" }), method(object({ text: string() }), EmbeddingResultSchema, { auth: "admin" }), method(_void(), EmbeddingInfoSchema, { auth: "admin" });
13545
13545
  /**
13546
+ * `failure-contribution` — the capability an addon reports its OWN losses
13547
+ * through, per camera, with the denominator attached. It stores nothing.
13548
+ *
13549
+ * ## The twin of `load-contribution`, and why it is a twin and not a field
13550
+ *
13551
+ * `load-contribution` answers *what did this camera COST*. This answers *what
13552
+ * did this camera LOSE*. The reporting discipline is identical and deliberately
13553
+ * copied: the contributor reports what it already knows, hub-main adds only
13554
+ * `addonId`, nothing needs global knowledge, and there is no central list for
13555
+ * somebody to forget to edit.
13556
+ *
13557
+ * They are not merged, because their invariants are opposites:
13558
+ *
13559
+ * - a `load-contribution` measurement is **absent, never zero** — a zero would
13560
+ * claim a camera cost nothing, which is a measurement nobody made;
13561
+ * - a `failure-contribution` zero is the **most valuable value on the
13562
+ * surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
13563
+ * and it is exactly what an absent entry cannot say.
13564
+ *
13565
+ * Putting a loss counter on a cost entry would also break the reconciliation
13566
+ * that gives `load-contribution` its point: contributions are subtracted from
13567
+ * `metrics.node-processes-snapshot` to find processes nobody claims. A failure
13568
+ * has no process.
13569
+ *
13570
+ * ## Why not a log line, since the counters already exist
13571
+ *
13572
+ * Several of these paths already counted themselves — `CaptureScheduler`'s
13573
+ * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
13574
+ * ends in a log line, and a log line is the thing the operator asked to stop
13575
+ * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
13576
+ * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
13577
+ * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
13578
+ * media blackout were both diagnosed. The counters stay; this is where they can
13579
+ * be READ.
13580
+ *
13581
+ * ## The rate is served with its denominator or not at all
13582
+ *
13583
+ * Every entry carries `attempts` and `succeeded`. A miss count alone is
13584
+ * unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
13585
+ * than yesterday" and was **flat across twelve hours** once divided by the
13586
+ * successes on the same path. A surface that publishes only the numerator
13587
+ * reproduces that mistake on every read.
13588
+ *
13589
+ * ## Shape
13590
+ *
13591
+ * Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
13592
+ * `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
13593
+ * generated hooks, while `addons.listCapabilityProviders` still enumerates it
13594
+ * and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
13595
+ * a forked runner's entries reach hub-main over transport that already exists.
13596
+ * No new UDS message, no second registry (D3). The operator reads the assembled
13597
+ * result through `system.getFailureContributions`.
13598
+ */
13599
+ var FailureReasonCountSchema = object({
13600
+ /**
13601
+ * Why the attempt did not land, in the contributor's own vocabulary —
13602
+ * `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
13603
+ * strings that already appear in this repo's logs and, where one exists, the
13604
+ * same string the per-track `previewMissReason` records (D276): a second
13605
+ * vocabulary for the same loss would make the row and the counter
13606
+ * un-joinable.
13607
+ */
13608
+ reason: string(),
13609
+ count: number().int().nonnegative()
13610
+ });
13611
+ var FailureContributionSchema = object({
13612
+ /**
13613
+ * The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
13614
+ * `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
13615
+ * `unit` free: the families are owned by different addons and a shared enum
13616
+ * is a central list that rots invisibly.
13617
+ */
13618
+ family: string(),
13619
+ /**
13620
+ * The NUMERIC device id — the same value every log line carries as
13621
+ * `tags.deviceId`. Never nullable and never absent: a contributor that
13622
+ * cannot name the camera must not emit the entry, because a fleet total
13623
+ * cannot answer the only question anybody asks of this surface.
13624
+ */
13625
+ deviceId: number().int().positive(),
13626
+ /**
13627
+ * A second dimension inside the family: the model / step id for an inference
13628
+ * timeout, so "which camera AND which model" is one read. Absent when the
13629
+ * family has a single variant.
13630
+ */
13631
+ variant: string().optional(),
13632
+ /**
13633
+ * Epoch ms this counter started — the INCARNATION MARKER. A consumer
13634
+ * differencing two reads must drop the interval when it changes, because the
13635
+ * counter restarted from zero in a respawned runner. Same discipline as
13636
+ * `LoadContribution.startedAtMs`.
13637
+ */
13638
+ sinceMs: number(),
13639
+ /** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
13640
+ atMs: number(),
13641
+ /**
13642
+ * THE DENOMINATOR — every attempt on this path for this camera in the
13643
+ * window. A failure count published without it is the mistake this schema
13644
+ * exists to make impossible.
13645
+ */
13646
+ attempts: number().int().nonnegative(),
13647
+ /** Attempts that landed. `attempts - succeeded` is the loss. */
13648
+ succeeded: number().int().nonnegative(),
13649
+ /** The loss, partitioned. Sums to `attempts - succeeded`. */
13650
+ reasons: array(FailureReasonCountSchema).readonly()
13651
+ });
13652
+ method(_void(), array(FailureContributionSchema).readonly());
13653
+ /**
13546
13654
  * filesystem-browse — per-node capability for browsing the node's local
13547
13655
  * filesystem. Reads are unconfined (whole filesystem, from `/` down); WRITES
13548
13656
  * are sandboxed to operator-configured allowed roots (D115). Used by the
@@ -14064,6 +14172,68 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
14064
14172
  kind: "mutation",
14065
14173
  auth: "admin"
14066
14174
  });
14175
+ var LoadContributionSchema = object({
14176
+ role: _enum([
14177
+ "decode",
14178
+ "transcode",
14179
+ "recording",
14180
+ "streaming",
14181
+ "detection"
14182
+ ]),
14183
+ /**
14184
+ * The NUMERIC device id — the same value every log line carries as
14185
+ * `tags.deviceId`. `null` means this cost genuinely belongs to no single
14186
+ * camera (a shared pool), NOT that the contributor forgot to look it up: a
14187
+ * contributor that cannot name its camera must not emit the entry at all,
14188
+ * because an unnamed per-camera entry is indistinguishable from a shared one
14189
+ * and would quietly turn one camera's cost into everybody's.
14190
+ */
14191
+ deviceId: number().int().positive().nullable(),
14192
+ attribution: _enum([
14193
+ "measured",
14194
+ "accounted",
14195
+ "unattributable"
14196
+ ]),
14197
+ /**
14198
+ * What ONE entry is, in the contributor's own words — `615/high`,
14199
+ * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
14200
+ * family and inventing a common one would lose the only information that
14201
+ * makes two entries for the same camera distinguishable.
14202
+ */
14203
+ unit: string(),
14204
+ /**
14205
+ * The OS process this cost lives in, when there is one. Present so a
14206
+ * consumer can (a) tell two generations of the same unit apart across a
14207
+ * restart, and (b) subtract claimed processes from the node's process
14208
+ * snapshot to see what NOBODY claimed. Absent for an entry that owns no
14209
+ * process of its own.
14210
+ */
14211
+ pid: number().int().positive().optional(),
14212
+ /**
14213
+ * When this generation started. The pid's incarnation marker: a consumer
14214
+ * differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
14215
+ * window when this changes, because the counter restarted from zero in a new
14216
+ * process.
14217
+ */
14218
+ startedAtMs: number().optional(),
14219
+ /**
14220
+ * CUMULATIVE CPU seconds this unit has consumed since it started — user +
14221
+ * system, read from the child's own `/proc/<pid>/stat` at the moment the
14222
+ * contribution is asked for.
14223
+ *
14224
+ * Cumulative and not a rate on purpose: a rate needs a window, a window
14225
+ * needs a sampler, and a new per-node sampler is the defect half of
14226
+ * `docs/architecture/load-ledger.md` documents. A counter can be differenced
14227
+ * by whoever already keeps a history; a rate cannot be un-averaged.
14228
+ *
14229
+ * Absent — never zero — on a node with no `/proc`, on a read failure, and on
14230
+ * an entry with no process.
14231
+ */
14232
+ cpuSeconds: number().optional(),
14233
+ /** Resident bytes of this unit's process, same source and same rules. */
14234
+ rssBytes: number().optional()
14235
+ });
14236
+ method(_void(), array(LoadContributionSchema).readonly());
14067
14237
  /**
14068
14238
  * `log-channels` — the capability an addon DECLARES its diagnostic channels
14069
14239
  * through. It stores nothing.
@@ -14140,176 +14310,6 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
14140
14310
  tags: record(string(), string()).optional()
14141
14311
  }), array(LogEntrySchema).readonly());
14142
14312
  /**
14143
- * `failure-contribution` — the capability an addon reports its OWN losses
14144
- * through, per camera, with the denominator attached. It stores nothing.
14145
- *
14146
- * ## The twin of `load-contribution`, and why it is a twin and not a field
14147
- *
14148
- * `load-contribution` answers *what did this camera COST*. This answers *what
14149
- * did this camera LOSE*. The reporting discipline is identical and deliberately
14150
- * copied: the contributor reports what it already knows, hub-main adds only
14151
- * `addonId`, nothing needs global knowledge, and there is no central list for
14152
- * somebody to forget to edit.
14153
- *
14154
- * They are not merged, because their invariants are opposites:
14155
- *
14156
- * - a `load-contribution` measurement is **absent, never zero** — a zero would
14157
- * claim a camera cost nothing, which is a measurement nobody made;
14158
- * - a `failure-contribution` zero is the **most valuable value on the
14159
- * surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
14160
- * and it is exactly what an absent entry cannot say.
14161
- *
14162
- * Putting a loss counter on a cost entry would also break the reconciliation
14163
- * that gives `load-contribution` its point: contributions are subtracted from
14164
- * `metrics.node-processes-snapshot` to find processes nobody claims. A failure
14165
- * has no process.
14166
- *
14167
- * ## Why not a log line, since the counters already exist
14168
- *
14169
- * Several of these paths already counted themselves — `CaptureScheduler`'s
14170
- * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
14171
- * ends in a log line, and a log line is the thing the operator asked to stop
14172
- * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
14173
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
14174
- * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
14175
- * media blackout were both diagnosed. The counters stay; this is where they can
14176
- * be READ.
14177
- *
14178
- * ## The rate is served with its denominator or not at all
14179
- *
14180
- * Every entry carries `attempts` and `succeeded`. A miss count alone is
14181
- * unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
14182
- * than yesterday" and was **flat across twelve hours** once divided by the
14183
- * successes on the same path. A surface that publishes only the numerator
14184
- * reproduces that mistake on every read.
14185
- *
14186
- * ## Shape
14187
- *
14188
- * Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
14189
- * `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
14190
- * generated hooks, while `addons.listCapabilityProviders` still enumerates it
14191
- * and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
14192
- * a forked runner's entries reach hub-main over transport that already exists.
14193
- * No new UDS message, no second registry (D3). The operator reads the assembled
14194
- * result through `system.getFailureContributions`.
14195
- */
14196
- var FailureReasonCountSchema = object({
14197
- /**
14198
- * Why the attempt did not land, in the contributor's own vocabulary —
14199
- * `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
14200
- * strings that already appear in this repo's logs and, where one exists, the
14201
- * same string the per-track `previewMissReason` records (D276): a second
14202
- * vocabulary for the same loss would make the row and the counter
14203
- * un-joinable.
14204
- */
14205
- reason: string(),
14206
- count: number().int().nonnegative()
14207
- });
14208
- var FailureContributionSchema = object({
14209
- /**
14210
- * The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
14211
- * `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
14212
- * `unit` free: the families are owned by different addons and a shared enum
14213
- * is a central list that rots invisibly.
14214
- */
14215
- family: string(),
14216
- /**
14217
- * The NUMERIC device id — the same value every log line carries as
14218
- * `tags.deviceId`. Never nullable and never absent: a contributor that
14219
- * cannot name the camera must not emit the entry, because a fleet total
14220
- * cannot answer the only question anybody asks of this surface.
14221
- */
14222
- deviceId: number().int().positive(),
14223
- /**
14224
- * A second dimension inside the family: the model / step id for an inference
14225
- * timeout, so "which camera AND which model" is one read. Absent when the
14226
- * family has a single variant.
14227
- */
14228
- variant: string().optional(),
14229
- /**
14230
- * Epoch ms this counter started — the INCARNATION MARKER. A consumer
14231
- * differencing two reads must drop the interval when it changes, because the
14232
- * counter restarted from zero in a respawned runner. Same discipline as
14233
- * `LoadContribution.startedAtMs`.
14234
- */
14235
- sinceMs: number(),
14236
- /** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
14237
- atMs: number(),
14238
- /**
14239
- * THE DENOMINATOR — every attempt on this path for this camera in the
14240
- * window. A failure count published without it is the mistake this schema
14241
- * exists to make impossible.
14242
- */
14243
- attempts: number().int().nonnegative(),
14244
- /** Attempts that landed. `attempts - succeeded` is the loss. */
14245
- succeeded: number().int().nonnegative(),
14246
- /** The loss, partitioned. Sums to `attempts - succeeded`. */
14247
- reasons: array(FailureReasonCountSchema).readonly()
14248
- });
14249
- method(_void(), array(FailureContributionSchema).readonly());
14250
- var LoadContributionSchema = object({
14251
- role: _enum([
14252
- "decode",
14253
- "transcode",
14254
- "recording",
14255
- "streaming",
14256
- "detection"
14257
- ]),
14258
- /**
14259
- * The NUMERIC device id — the same value every log line carries as
14260
- * `tags.deviceId`. `null` means this cost genuinely belongs to no single
14261
- * camera (a shared pool), NOT that the contributor forgot to look it up: a
14262
- * contributor that cannot name its camera must not emit the entry at all,
14263
- * because an unnamed per-camera entry is indistinguishable from a shared one
14264
- * and would quietly turn one camera's cost into everybody's.
14265
- */
14266
- deviceId: number().int().positive().nullable(),
14267
- attribution: _enum([
14268
- "measured",
14269
- "accounted",
14270
- "unattributable"
14271
- ]),
14272
- /**
14273
- * What ONE entry is, in the contributor's own words — `615/high`,
14274
- * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
14275
- * family and inventing a common one would lose the only information that
14276
- * makes two entries for the same camera distinguishable.
14277
- */
14278
- unit: string(),
14279
- /**
14280
- * The OS process this cost lives in, when there is one. Present so a
14281
- * consumer can (a) tell two generations of the same unit apart across a
14282
- * restart, and (b) subtract claimed processes from the node's process
14283
- * snapshot to see what NOBODY claimed. Absent for an entry that owns no
14284
- * process of its own.
14285
- */
14286
- pid: number().int().positive().optional(),
14287
- /**
14288
- * When this generation started. The pid's incarnation marker: a consumer
14289
- * differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
14290
- * window when this changes, because the counter restarted from zero in a new
14291
- * process.
14292
- */
14293
- startedAtMs: number().optional(),
14294
- /**
14295
- * CUMULATIVE CPU seconds this unit has consumed since it started — user +
14296
- * system, read from the child's own `/proc/<pid>/stat` at the moment the
14297
- * contribution is asked for.
14298
- *
14299
- * Cumulative and not a rate on purpose: a rate needs a window, a window
14300
- * needs a sampler, and a new per-node sampler is the defect half of
14301
- * `docs/architecture/load-ledger.md` documents. A counter can be differenced
14302
- * by whoever already keeps a history; a rate cannot be un-averaged.
14303
- *
14304
- * Absent — never zero — on a node with no `/proc`, on a read failure, and on
14305
- * an entry with no process.
14306
- */
14307
- cpuSeconds: number().optional(),
14308
- /** Resident bytes of this unit's process, same source and same rules. */
14309
- rssBytes: number().optional()
14310
- });
14311
- method(_void(), array(LoadContributionSchema).readonly());
14312
- /**
14313
14313
  * `login-method` — collection cap through which auth addons contribute
14314
14314
  * their pre-auth login surfaces to the login page. This is the SINGLE,
14315
14315
  * generic mechanism that supersedes the dead `auth.listProviders` reader:
@@ -18975,12 +18975,53 @@ var MediaFileKindEnum = _enum([
18975
18975
  "keyFrameSmall",
18976
18976
  "thumbnailSmall"
18977
18977
  ]);
18978
+ /**
18979
+ * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
18980
+ * ARE — never the bytes themselves.
18981
+ *
18982
+ * ## Why `url` and not `base64`
18983
+ *
18984
+ * Measured on the live hub 2026-08-30: `getTrackMedia {trackId, deviceId}`
18985
+ * with no `kinds` returned 6 rows / **3 597 219 B**, of which `keyFrame` alone
18986
+ * was **2 824 077 B** — one full-resolution frame, base64, so +33 % on the
18987
+ * wire. Forty events is ~144 MB. Every byte of it was read off disk,
18988
+ * base64-encoded, held whole in a unary tRPC envelope, and materialised in
18989
+ * hub-main's heap on the way past — for an `<img>` that would have cached it.
18990
+ *
18991
+ * `url` points at the `event-media` data plane
18992
+ * (`/addon/<addonId>/event-media/<storedKey>`), which serves the same blob
18993
+ * with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
18994
+ * render a `?variant=thumb`, and streams. The hub gate in front of it requires
18995
+ * a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
18996
+ * no less protected than they were inside a `view`-level cap response — see
18997
+ * `data-plane-access.ts` for the rule and the one gap it does not close
18998
+ * (per-device scoping).
18999
+ *
19000
+ * The URL is built from the row's **stored** key, which is not always its
19001
+ * published `kind`: a track's face/plate crop is stored as `crop` under
19002
+ * `('face'|'plate', '<prefix>-<trackId>')` and published as
19003
+ * `faceCrop`/`plateCrop`. `MediaStore.getByKey` knows only the stored key.
19004
+ *
19005
+ * ## `base64` is TRANSITIONAL and is going away
19006
+ *
19007
+ * It is still populated for one reason: the deployed viewer's track-detail
19008
+ * HERO tile reads it (`use-track-media-entry.ts` → `parseMediaFiles`, which
19009
+ * REQUIRES the field), and a row without it parses as a FAILED read — the red
19010
+ * triangle — not as absence. Removing the field before that viewer ships is an
19011
+ * outage, not a cleanup. Once the viewer takes its hero bytes from `url`,
19012
+ * delete this line and the `withBytes` pass-through in
19013
+ * `analytics-query-facade.ts`; nothing else reads it.
19014
+ */
18978
19015
  var MediaFileSchema = object({
18979
19016
  key: string(),
18980
19017
  kind: MediaFileKindEnum,
18981
- base64: string(),
18982
19018
  sizeBytes: number(),
18983
19019
  timestamp: number()
19020
+ }).extend({
19021
+ /** `/addon/<addonId>/event-media/<encoded stored key>`. Always present. */
19022
+ url: string(),
19023
+ /** @deprecated Transitional — see the schema docblock. Use {@link url}. */
19024
+ base64: string()
18984
19025
  });
18985
19026
  /**
18986
19027
  * One media row WITHOUT its bytes.
@@ -18992,7 +19033,9 @@ var MediaFileSchema = object({
18992
19033
  * blocks the whole view.
18993
19034
  *
18994
19035
  * `sizeBytes` is carried because it is what lets a client decide between the
18995
- * stored blob and a `?variant=thumb` rendering without fetching either.
19036
+ * stored blob and a `?variant=thumb` rendering without fetching either, and
19037
+ * `url` because a client that had to build the plane path itself is a second
19038
+ * copy of a route — the embed, the viewer and the admin UI each grew one.
18996
19039
  */
18997
19040
  var MediaFileInfoSchema = MediaFileSchema.omit({ base64: true });
18998
19041
  /**
@@ -19681,6 +19724,9 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19681
19724
  }), array(MediaFileSchema).readonly()), method(object({
19682
19725
  trackId: string(),
19683
19726
  deviceId: number()
19727
+ }), array(MediaFileInfoSchema).readonly()), method(object({
19728
+ eventId: string(),
19729
+ deviceId: number()
19684
19730
  }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
19685
19731
  kind: "mutation",
19686
19732
  auth: "admin"
@@ -23941,10 +23987,24 @@ var FaceClusterSchema = object({
23941
23987
  size: number().int(),
23942
23988
  cohesion: number()
23943
23989
  });
23990
+ /**
23991
+ * One gallery media row: what the crop is, how big it is, and WHERE its bytes
23992
+ * are — never the bytes.
23993
+ *
23994
+ * `base64` was deleted here rather than deprecated. `MediaFile.base64` (the
23995
+ * track/event contract) is still populated because a deployed viewer requires
23996
+ * the field to parse a row at all; this method has no such reader. Its ONE
23997
+ * caller is the admin UI's detail modal, which was building
23998
+ * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
23999
+ * dialog already rendering its key FRAME from the `event-media` plane.
24000
+ *
24001
+ * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
24002
+ * media key directly, so this needed no new plane and no new access decision.
24003
+ */
23944
24004
  var MediaFileLiteSchema$1 = object({
23945
24005
  key: string(),
23946
24006
  kind: string(),
23947
- base64: string(),
24007
+ url: string(),
23948
24008
  sizeBytes: number(),
23949
24009
  timestamp: number()
23950
24010
  });
@@ -26196,10 +26256,24 @@ var PlateInfoSchema = object({
26196
26256
  */
26197
26257
  cropUrl: string().optional()
26198
26258
  });
26259
+ /**
26260
+ * One gallery media row: what the crop is, how big it is, and WHERE its bytes
26261
+ * are — never the bytes.
26262
+ *
26263
+ * `base64` was deleted here rather than deprecated. `MediaFile.base64` (the
26264
+ * track/event contract) is still populated because a deployed viewer requires
26265
+ * the field to parse a row at all; this method has no such reader. Its ONE
26266
+ * caller is the admin UI's detail modal, which was building
26267
+ * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
26268
+ * dialog already rendering its key FRAME from the `event-media` plane.
26269
+ *
26270
+ * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
26271
+ * media key directly, so this needed no new plane and no new access decision.
26272
+ */
26199
26273
  var MediaFileLiteSchema = object({
26200
26274
  key: string(),
26201
26275
  kind: string(),
26202
- base64: string(),
26276
+ url: string(),
26203
26277
  sizeBytes: number(),
26204
26278
  timestamp: number()
26205
26279
  });
@@ -32212,6 +32286,12 @@ Object.freeze({
32212
32286
  addonId: null,
32213
32287
  access: "view"
32214
32288
  },
32289
+ "pipelineAnalytics.listEventMedia": {
32290
+ capName: "pipeline-analytics",
32291
+ capScope: "device",
32292
+ addonId: null,
32293
+ access: "view"
32294
+ },
32215
32295
  "pipelineAnalytics.listGroups": {
32216
32296
  capName: "pipeline-analytics",
32217
32297
  capScope: "device",
@@ -35835,6 +35915,11 @@ Object.freeze({
35835
35915
  form: "array",
35836
35916
  optional: false
35837
35917
  }],
35918
+ "pipelineAnalytics.listEventMedia": [{
35919
+ name: "deviceId",
35920
+ form: "single",
35921
+ optional: false
35922
+ }],
35838
35923
  "pipelineAnalytics.listGroups": [{
35839
35924
  name: "deviceIds",
35840
35925
  form: "array",