@camstack/addon-agent-ui 1.2.104 → 1.2.106

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.
package/dist/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-DAXzJeTX.mjs
3
+ //#region ../types/dist/event-category-ZyX6jcse.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -561,7 +561,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
561
561
  * a package zone — a newly-appeared stationary object of a package class
562
562
  * that cleared the class / zone / dwell / size gates. Payload:
563
563
  * `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
564
- * entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
564
+ * entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
565
565
  * Telemetry (D8): the durable record is the `package-events` store row;
566
566
  * this bus topic drives notifier rules + live UI. See
567
567
  * docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
@@ -5347,7 +5347,7 @@ var ZodIssueCode = {
5347
5347
  var ZodFirstPartyTypeKind;
5348
5348
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5349
5349
  //#endregion
5350
- //#region ../types/dist/sleep-BnujYGPe.mjs
5350
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5351
5351
  /**
5352
5352
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5353
5353
  * window to float samples (D455).
@@ -7316,13 +7316,30 @@ new Set([
7316
7316
  "scene",
7317
7317
  "motion",
7318
7318
  "object",
7319
- "audio"
7319
+ "audio",
7320
+ "mosaic"
7320
7321
  ]);
7321
- new Set([
7322
+ /**
7323
+ * The owner types that are event tables, in the order the event-media resolver
7324
+ * should consider them. Exported so a consumer asking "is this key an event?"
7325
+ * does not re-spell the list and drift from it.
7326
+ */
7327
+ var EVENT_OWNER_TYPES = [
7322
7328
  "motion",
7323
7329
  "object",
7324
7330
  "audio"
7325
- ]);
7331
+ ];
7332
+ /**
7333
+ * The same list as a Zod enum, for the cap inputs that must NAME the table
7334
+ * (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
7335
+ * `(table, id)`).
7336
+ *
7337
+ * Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
7338
+ * table would otherwise be accepted by the codec and refused at the door, with
7339
+ * nothing failing until a caller asked.
7340
+ */
7341
+ var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
7342
+ new Set(EVENT_OWNER_TYPES);
7326
7343
  var EncodeProfileSchema = object({
7327
7344
  video: object({
7328
7345
  codec: _enum([
@@ -7361,7 +7378,23 @@ var EncodeProfileSchema = object({
7361
7378
  "zerolatency",
7362
7379
  "film",
7363
7380
  "animation"
7364
- ]).optional()
7381
+ ]).optional(),
7382
+ /**
7383
+ * ONE slice per access unit.
7384
+ *
7385
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7386
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7387
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7388
+ * frame-end per frame: the first pictures render and the video then freezes
7389
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7390
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7391
+ *
7392
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7393
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7394
+ * consumers meaning the same thing spelled differently would stop sharing one
7395
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7396
+ */
7397
+ singleSlicePerFrame: boolean().optional()
7365
7398
  }),
7366
7399
  audio: union([literal("passthrough"), object({
7367
7400
  codec: _enum([
@@ -7411,7 +7444,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7411
7444
  audio: "passthrough"
7412
7445
  };
7413
7446
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7414
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7447
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7415
7448
  /**
7416
7449
  * Deep wiring healthcheck — snapshot of active reachability probes across
7417
7450
  * every declared capability + widget of every installed plugin, on every
@@ -12419,6 +12452,16 @@ method(object({
12419
12452
  filter: QueryFilterSchema.optional(),
12420
12453
  columns: array(string()).readonly().optional()
12421
12454
  }), array(SettingsRecordSchema).readonly()), method(object({
12455
+ namespace: string().optional(),
12456
+ collection: string(),
12457
+ /** Declared columns identifying the slot; must be covered by a UNIQUE
12458
+ * index on the collection. Never empty. */
12459
+ conflict: array(string()).readonly(),
12460
+ record: BulkRecordSchema
12461
+ }), object({
12462
+ /** The id the row HAS: assigned by SQLite on an insert, or the existing
12463
+ * row's own id on an update. */
12464
+ id: union([string(), number()]) }), { kind: "mutation" }), method(object({
12422
12465
  namespace: string().optional(),
12423
12466
  collection: string(),
12424
12467
  record: object({
@@ -12553,6 +12596,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
12553
12596
  id: union([string(), number()]) }), {
12554
12597
  kind: "mutation",
12555
12598
  auth: "admin"
12599
+ }), method(object({
12600
+ namespace: string().optional(),
12601
+ collection: string(),
12602
+ conflict: array(string()).readonly(),
12603
+ record: BulkRecordSchema
12604
+ }), object({ id: union([string(), number()]) }), {
12605
+ kind: "mutation",
12606
+ auth: "admin"
12556
12607
  }), method(object({
12557
12608
  namespace: string().optional(),
12558
12609
  collection: string(),
@@ -18769,8 +18820,8 @@ var TrackPositionSchema = object({
18769
18820
  var TrackSnapshotSchema = object({
18770
18821
  timestamp: number(),
18771
18822
  position: TrackPositionSchema,
18772
- /** MediaStore key; resolve via `getTrackMedia({ trackId })`. */
18773
- mediaKey: string()
18823
+ /** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
18824
+ mediaId: number().int()
18774
18825
  });
18775
18826
  /**
18776
18827
  * Normalized 0..1 trajectory envelope (min/max over every position bbox,
@@ -19374,14 +19425,14 @@ var ObjectEventSchema = object({
19374
19425
  * pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
19375
19426
  frameWidth: number().optional(),
19376
19427
  frameHeight: number().optional(),
19377
- /** MediaStore key for the crop attached to this event (if any). */
19378
- mediaKey: string().optional(),
19379
- /** Design B: MediaStore key of the track's native-resolution key frame (the
19428
+ /** Media row id of the crop attached to this event (if any) — D482. */
19429
+ mediaId: number().int().optional(),
19430
+ /** Design B: media row id of the track's native-resolution key frame (the
19380
19431
  * best-detection full frame). Resolve via the event-media data-plane
19381
- * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
19432
+ * (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
19382
19433
  * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
19383
- * sources — consumers fall back to `mediaKey` (the tight crop). */
19384
- keyFrameMediaKey: string().optional(),
19434
+ * sources — consumers fall back to `mediaId` (the tight crop). */
19435
+ keyFrameMediaId: number().int().optional(),
19385
19436
  /** Populated by B5 (recording playback URL for this event). */
19386
19437
  mediaUrl: string().optional(),
19387
19438
  /** The parent track's key-event importance [0,1], propagated to every object
@@ -19431,7 +19482,7 @@ var MediaFileKindEnum = _enum([
19431
19482
  * hub-main's heap on the way past — for an `<img>` that would have cached it.
19432
19483
  *
19433
19484
  * `url` points at the `event-media` data plane
19434
- * (`/addon/<addonId>/event-media/<storedKey>`), which serves the same blob
19485
+ * (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
19435
19486
  * with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
19436
19487
  * render a `?variant=thumb`, and streams. The hub gate in front of it requires
19437
19488
  * a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
@@ -19439,10 +19490,13 @@ var MediaFileKindEnum = _enum([
19439
19490
  * `data-plane-access.ts` for the rule and the one gap it does not close
19440
19491
  * (per-device scoping).
19441
19492
  *
19442
- * The URL is built from the row's **stored** key, which is not always its
19443
- * published `kind`: a track's face/plate crop is stored as `crop` under
19493
+ * The URL is built from the row's own id, which since D482 says nothing about
19494
+ * the row's owner or kind and that is the point. The published `kind` is not
19495
+ * the stored one (a track's face/plate crop is stored as `crop` under
19444
19496
  * `('face'|'plate', '<prefix>-<trackId>')` and published as
19445
- * `faceCrop`/`plateCrop`. `MediaStore.getByKey` knows only the stored key.
19497
+ * `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
19498
+ * taken from `row.key` verbatim or it 404'd exactly those two rows. An id
19499
+ * cannot be mis-reconstructed, because there is nothing in it to reconstruct.
19446
19500
  *
19447
19501
  * ## `base64` is TRANSITIONAL and is going away
19448
19502
  *
@@ -19455,7 +19509,19 @@ var MediaFileKindEnum = _enum([
19455
19509
  * `analytics-query-facade.ts`; nothing else reads it.
19456
19510
  */
19457
19511
  var MediaFileSchema = object({
19458
- key: string(),
19512
+ /**
19513
+ * The media row's OWN id — the rowid SQLite assigned it (D482).
19514
+ *
19515
+ * It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
19516
+ * [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
19517
+ * per-table rowid aliases, so `object:101314` and `motion:101314` are two
19518
+ * different rows that spell the same number, and a track whose
19519
+ * `bestEventId` was an object event was served a motion event's snapshot —
19520
+ * a night-time thumbnail on an afternoon track, with no error anywhere. A
19521
+ * surrogate id cannot name the wrong row's owner, because it names no owner
19522
+ * at all.
19523
+ */
19524
+ mediaId: number().int(),
19459
19525
  kind: MediaFileKindEnum,
19460
19526
  sizeBytes: number(),
19461
19527
  timestamp: number()
@@ -19563,7 +19629,7 @@ var RetrainTrackSchema = object({
19563
19629
  });
19564
19630
  /** A frame the picker may offer — an index row, no blob was read to produce it. */
19565
19631
  var RetrainFrameCandidateSchema = object({
19566
- mediaKey: string(),
19632
+ mediaId: number().int(),
19567
19633
  kind: MediaFileKindEnum,
19568
19634
  timestamp: number(),
19569
19635
  sizeBytes: number().int(),
@@ -19577,7 +19643,7 @@ var RetrainFrameSchema = object({
19577
19643
  deviceId: number(),
19578
19644
  trackId: string(),
19579
19645
  /** Provenance only. It may already point at nothing — that is expected. */
19580
- sourceMediaKey: string(),
19646
+ sourceMediaId: number().int(),
19581
19647
  sourceKind: MediaFileKindEnum,
19582
19648
  sizeBytes: number().int(),
19583
19649
  width: number().int(),
@@ -19593,7 +19659,7 @@ var RetrainCopyRefusalSchema = _enum([
19593
19659
  var RetrainFrameSelectionSchema = object({
19594
19660
  copied: array(RetrainFrameSchema).readonly(),
19595
19661
  refused: array(object({
19596
- sourceMediaKey: string(),
19662
+ sourceMediaId: number().int(),
19597
19663
  reason: RetrainCopyRefusalSchema
19598
19664
  })).readonly()
19599
19665
  });
@@ -19601,7 +19667,7 @@ var RetrainFrameListSchema = object({
19601
19667
  candidates: array(RetrainFrameCandidateSchema).readonly(),
19602
19668
  copies: array(RetrainFrameSchema).readonly(),
19603
19669
  /** What the page pre-selects — the native key frame when one survives. */
19604
- autoPickMediaKey: string().optional()
19670
+ autoPickMediaId: number().int().optional()
19605
19671
  });
19606
19672
  /** What the operator asked the assist to look for. */
19607
19673
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
@@ -19696,9 +19762,11 @@ var RecentTracksQueryInput = object({
19696
19762
  });
19697
19763
  /**
19698
19764
  * A Summary (D359): the per-camera session envelope that references tracks.
19699
- * `groupShotKey` is the media key of its group shot (`ownerKind: 'summary'`,
19700
- * served by the event-media plane by key), null until the first frame with a
19701
- * member visible has been materialised.
19765
+ * `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
19766
+ * 'summary'`, served by the event-media plane at `/m/<id>`), null until the
19767
+ * first frame with a member visible has been materialised (D482 — it was the
19768
+ * row's composite key, which embedded the owner and could name another table's
19769
+ * row once event ids became per-table rowids).
19702
19770
  */
19703
19771
  var SummarySchema = object({
19704
19772
  id: string(),
@@ -19707,19 +19775,115 @@ var SummarySchema = object({
19707
19775
  lastActiveAt: number(),
19708
19776
  sealedAt: number().nullable(),
19709
19777
  memberCount: number().int().nonnegative(),
19710
- groupShotKey: string().nullable()
19778
+ groupShotMediaId: number().int().nullable()
19711
19779
  });
19712
19780
  var SummariesQueryInput = object({
19713
19781
  deviceIds: array(number()).min(1),
19714
19782
  since: number().optional(),
19715
19783
  until: number().optional(),
19716
- limit: number().int().min(1).max(200).default(50)
19784
+ limit: number().int().min(1).max(200).default(50),
19785
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
19786
+ * meaning of "dog" on every summary surface. */
19787
+ classes: array(string().min(1).max(60)).max(40).optional()
19717
19788
  });
19718
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19719
19789
  var SummaryDetailSchema = object({
19720
19790
  summary: SummarySchema,
19721
- /** Member track ids, in absorption order. */
19722
- trackIds: array(string()).readonly()
19791
+ /** Members in absorption order, oldest join first. */
19792
+ members: array(object({
19793
+ trackId: string(),
19794
+ /**
19795
+ * The track's class at the time it JOINED, or `null` when it was unresolved
19796
+ * and the track no longer exists to fill it.
19797
+ *
19798
+ * The join, not the latest opinion: class voting can re-decide a track's
19799
+ * class afterwards, and a group's composition is the history of who came
19800
+ * together. A consumer counts these to badge a thumbnail — "two people and a
19801
+ * dog" — rather than being handed a second, denormalised tally that would
19802
+ * drift from the members it claims to describe.
19803
+ */
19804
+ className: string().nullable(),
19805
+ /** `primary` is the one member that carries the group's identity. */
19806
+ role: _enum([
19807
+ "primary",
19808
+ "sibling",
19809
+ "child"
19810
+ ]).nullable(),
19811
+ joinedAt: number(),
19812
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
19813
+ * at read time. Absent when nothing resolved, never an empty string. */
19814
+ label: string().optional(),
19815
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
19816
+ * recognised nobody, and absent for a member whose track has been pruned —
19817
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
19818
+ subLabel: string().optional()
19819
+ })).readonly()
19820
+ });
19821
+ /**
19822
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
19823
+ *
19824
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
19825
+ * we extend when we notice we need more". Enough to draw the card ("two people
19826
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
19827
+ * are on {@link getSummary}: shipping every member of every group so a client
19828
+ * can count them turns a page of two hundred groups into a thousand records to
19829
+ * draw two hundred badges.
19830
+ */
19831
+ var SummaryListItemSchema = object({
19832
+ summary: SummarySchema,
19833
+ /** Class counts, most numerous first; `className: null` is a member whose
19834
+ * class never resolved, counted so the counts add up to `memberCount`. */
19835
+ classes: array(object({
19836
+ className: string().nullable(),
19837
+ count: number().int().positive()
19838
+ })).readonly()
19839
+ });
19840
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
19841
+ /**
19842
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
19843
+ *
19844
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
19845
+ * summaries feed that could only answer "the last N for these cameras"
19846
+ * (`listSummaries`) would make groups available in the timeline and nowhere
19847
+ * else. Two feeds with different ordering contracts would be two ideas of what
19848
+ * "newest" means, on one screen.
19849
+ */
19850
+ var RecentSummariesQueryInput = object({
19851
+ /** Devices to merge. An empty array yields an empty page. */
19852
+ deviceIds: array(number()),
19853
+ /** Window lower bound on `lastActiveAt` (inclusive). */
19854
+ since: number().optional(),
19855
+ /** Window upper bound on `lastActiveAt` (inclusive). */
19856
+ until: number().optional(),
19857
+ limit: number().int().min(1).max(500).default(100),
19858
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
19859
+ cursor: string().optional(),
19860
+ /**
19861
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
19862
+ * deliberately the same name: the events filter tree emits one list of ticked
19863
+ * taxonomy nodes, and a summaries feed that called it something else would
19864
+ * make the operator's one filter component produce two shapes.
19865
+ *
19866
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
19867
+ * me the arrivals with a dog" has to return the group of four people who had
19868
+ * one with them; a filter on the group's own fields could only ever answer
19869
+ * about its primary.
19870
+ *
19871
+ * Matched against all THREE tiers of a member — the class (`animal`), the
19872
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
19873
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
19874
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
19875
+ * that read only the class would answer "animal" and never "dog".
19876
+ *
19877
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
19878
+ */
19879
+ classes: array(string().min(1).max(60)).max(40).optional()
19880
+ });
19881
+ var RecentSummariesPageSchema = object({
19882
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
19883
+ * {@link listSummaries} — one list shape, so a card renders the same
19884
+ * whichever feed drew it. */
19885
+ summaries: array(SummaryListItemSchema).readonly(),
19886
+ nextCursor: string().nullable()
19723
19887
  });
19724
19888
  var RecentTracksPageSchema = object({
19725
19889
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20133,7 +20297,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20133
20297
  classes: array(string()).optional(),
20134
20298
  /** See {@link ExcludeSourcesDoc}. */
20135
20299
  excludeSources: array(TrackSourceSchema).optional()
20136
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20300
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20137
20301
  kind: "mutation",
20138
20302
  auth: "admin"
20139
20303
  }), 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({
@@ -20261,7 +20425,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20261
20425
  }), method(object({
20262
20426
  deviceId: number(),
20263
20427
  trackId: string(),
20264
- mediaKeys: array(string()).min(1)
20428
+ mediaIds: array(number().int()).min(1)
20265
20429
  }), RetrainFrameSelectionSchema, {
20266
20430
  kind: "mutation",
20267
20431
  auth: "admin"
@@ -20329,7 +20493,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20329
20493
  kind: "query",
20330
20494
  auth: "admin"
20331
20495
  }), method(object({
20332
- eventId: string(),
20496
+ /** Which of the three event tables owns the row. */
20497
+ ownerType: EventOwnerTypeSchema,
20498
+ /** The event's rowid in that table (D474: an event id is a number). */
20499
+ eventId: number().int(),
20333
20500
  kind: MediaFileKindEnum.optional(),
20334
20501
  deviceId: number()
20335
20502
  }), array(MediaFileSchema).readonly()), method(object({
@@ -20340,7 +20507,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20340
20507
  trackId: string(),
20341
20508
  deviceId: number()
20342
20509
  }), array(MediaFileInfoSchema).readonly()), method(object({
20343
- eventId: string(),
20510
+ ownerType: EventOwnerTypeSchema,
20511
+ eventId: number().int(),
20344
20512
  deviceId: number()
20345
20513
  }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
20346
20514
  kind: "mutation",
@@ -24803,8 +24971,8 @@ var IdentitySchema = object({
24803
24971
  id: string(),
24804
24972
  name: string(),
24805
24973
  sampleCount: number().int().nonnegative(),
24806
- coverMediaKey: string().optional(),
24807
- /** Inline base64 of the cover sample's crop, resolved from `coverMediaKey`.
24974
+ coverMediaId: number().int().optional(),
24975
+ /** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
24808
24976
  * Lets the UI render the person's face avatar instead of a placeholder icon. */
24809
24977
  coverBase64: string().optional()
24810
24978
  });
@@ -24830,8 +24998,8 @@ var IdentitySampleAuditRowSchema = object({
24830
24998
  enrolledAt: number().int(),
24831
24999
  deviceId: number().int().optional(),
24832
25000
  source: _enum(["detected", "photo"]),
24833
- /** The enrolled crop's media key, so the panel can show the evidence. */
24834
- mediaKey: string().optional(),
25001
+ /** The enrolled crop's media row id, so the panel can show the evidence. */
25002
+ mediaId: number().int().optional(),
24835
25003
  /**
24836
25004
  * False = the sample is stamped with a DIFFERENT face model, and a cosine
24837
25005
  * across feature spaces is a well-formed float with no meaning. Every number
@@ -24900,15 +25068,15 @@ var FaceInfoSchema = object({
24900
25068
  */
24901
25069
  cropUrl: string().optional(),
24902
25070
  /** Design B: the face bbox (pixel space) on the key frame — lets a detail
24903
- * view draw the box over the native `keyFrameMediaKey` frame. Absent on
25071
+ * view draw the box over the native `keyFrameMediaId` frame. Absent on
24904
25072
  * legacy rows written before design B. */
24905
25073
  faceBbox: BoundingBoxSchema.optional(),
24906
25074
  /** Design B: MediaStore key of the track's native-resolution key frame.
24907
25075
  * Fetch the native JPEG via the event-media data-plane
24908
- * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
25076
+ * (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
24909
25077
  * track produced no key frame (e.g. native/onboard source) — the UI falls
24910
25078
  * back to the inline `base64` face crop. */
24911
- keyFrameMediaKey: string().optional(),
25079
+ keyFrameMediaId: number().int().optional(),
24912
25080
  /** Winning identity-match cosine (0..1) for this face's track, when an
24913
25081
  * identity was auto-confirmed. Lets the UI surface WHY a face was assigned
24914
25082
  * (confidence badge / low-confidence audit). Absent on legacy rows and on
@@ -24977,11 +25145,14 @@ var FaceClusterSchema = object({
24977
25145
  * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
24978
25146
  * dialog already rendering its key FRAME from the `event-media` plane.
24979
25147
  *
24980
- * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
24981
- * media key directly, so this needed no new plane and no new access decision.
25148
+ * `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
25149
+ * resolves a media row by its own id, so this needed no new plane and no new
25150
+ * access decision.
24982
25151
  */
24983
25152
  var MediaFileLiteSchema$1 = object({
24984
- key: string(),
25153
+ /** The media row's own id — the same address `MediaFileRef.mediaId` carries
25154
+ * (D482). It was the row's composite key, which embedded the owner. */
25155
+ mediaId: number().int(),
24985
25156
  kind: string(),
24986
25157
  url: string(),
24987
25158
  sizeBytes: number(),
@@ -24998,7 +25169,7 @@ method(object({
24998
25169
  * covers inline, ~10 KB of base64 per row, on a query this UI mounts
24999
25170
  * four times and the viewer holds at `staleTime: 30_000`.
25000
25171
  *
25001
- * Nothing loses its avatar: `coverMediaKey` is already on every row and
25172
+ * Nothing loses its avatar: `coverMediaId` is already on every row and
25002
25173
  * the `event-media` plane serves that key `immutable` with an ETag.
25003
25174
  *
25004
25175
  * **This is an INPUT field, so it does not reach the addon until the
@@ -27466,8 +27637,8 @@ var VehicleSchema = object({
27466
27637
  id: string(),
27467
27638
  name: string(),
27468
27639
  sampleCount: number().int().nonnegative(),
27469
- coverMediaKey: string().optional(),
27470
- /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaKey`. */
27640
+ coverMediaId: number().int().optional(),
27641
+ /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
27471
27642
  coverBase64: string().optional()
27472
27643
  });
27473
27644
  var VehicleSampleInfoSchema = object({
@@ -27500,7 +27671,7 @@ var PlateInfoSchema = object({
27500
27671
  /** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
27501
27672
  plateBbox: BoundingBoxSchema.optional(),
27502
27673
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
27503
- keyFrameMediaKey: string().optional(),
27674
+ keyFrameMediaId: number().int().optional(),
27504
27675
  base64: string().optional(),
27505
27676
  /**
27506
27677
  * Same crop as a data-plane URL, always present when the plate has a stored
@@ -27521,11 +27692,14 @@ var PlateInfoSchema = object({
27521
27692
  * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
27522
27693
  * dialog already rendering its key FRAME from the `event-media` plane.
27523
27694
  *
27524
- * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
27525
- * media key directly, so this needed no new plane and no new access decision.
27695
+ * `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
27696
+ * resolves a media row by its own id, so this needed no new plane and no new
27697
+ * access decision.
27526
27698
  */
27527
27699
  var MediaFileLiteSchema = object({
27528
- key: string(),
27700
+ /** The media row's own id — the same address `MediaFileRef.mediaId` carries
27701
+ * (D482). It was the row's composite key, which embedded the owner. */
27702
+ mediaId: number().int(),
27529
27703
  kind: string(),
27530
27704
  url: string(),
27531
27705
  sizeBytes: number(),
@@ -27584,7 +27758,7 @@ method(object({
27584
27758
  }), method(object({
27585
27759
  /** Inline {@link VehicleSchema.coverBase64} on every row. Default
27586
27760
  * `false` — the vehicle twin of `faceGallery.listIdentities`'s
27587
- * option; `coverMediaKey` + the `event-media` plane carry the picture.
27761
+ * option; `coverMediaId` + the `event-media` plane carry the picture.
27588
27762
  * INPUT field: stripped by the hub router until the train ships, which
27589
27763
  * resolves to `false` and is exactly the intended default. */
27590
27764
  includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
@@ -28908,7 +29082,14 @@ var SceneReferenceSchema = object({
28908
29082
  modelId: string(),
28909
29083
  condition: SceneConditionSchema,
28910
29084
  capturedAt: number(),
28911
- thumbnailMediaId: string().optional(),
29085
+ /**
29086
+ * The reference thumbnail's media ROW id (D482).
29087
+ *
29088
+ * The name already said `mediaId` while the value was the row's composite
29089
+ * key — a leftover that read as done and was not. It is the row's own id
29090
+ * now, addressed at `/addon/<addonId>/event-media/m/<id>`.
29091
+ */
29092
+ thumbnailMediaId: number().int().optional(),
28912
29093
  /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
28913
29094
  * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
28914
29095
  * normalized rect frame a different piece of world, and the scene would
@@ -29722,7 +29903,29 @@ var LoggingSettingsPatchSchema = object({
29722
29903
  * disarmed the channels it did not mention would make the Levels page and
29723
29904
  * the Diagnostics page fight over the same value.
29724
29905
  */
29725
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
29906
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
29907
+ /**
29908
+ * How many days the analytics OPS LOG is kept — the audit trail of what
29909
+ * retention actually deleted.
29910
+ *
29911
+ * It lives HERE, on the logging document, and not on the analytics addon's
29912
+ * settings form, on the operator's instruction: every other log-ish window in
29913
+ * this system is configured through this one document, and a retention audit
29914
+ * configured somewhere else is a second place to look when the question is
29915
+ * "what happened to my data".
29916
+ *
29917
+ * That placement has a cost worth stating: this document ships in the
29918
+ * framework closure, so this knob needs a published `@camstack/server` while
29919
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
29920
+ *
29921
+ * `retention-model.ts` argued this one must NOT follow a device window,
29922
+ * because the audit trail is the history of the SWEEP and not of the camera.
29923
+ * That argument stands and is untouched — what changes is that 30 days stops
29924
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
29925
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
29926
+ * state in which the next 9.5 GiB leak cannot be explained.
29927
+ */
29928
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29726
29929
  });
29727
29930
  /**
29728
29931
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29795,6 +29998,14 @@ var LoggingSettingsStateSchema = object({
29795
29998
  channels: array(LogChannelDescriptorSchema).readonly(),
29796
29999
  /** The channels ARMED right now, each with its deadline. */
29797
30000
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30001
+ /**
30002
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30003
+ *
30004
+ * Reported rather than left to the caller's memory of what it wrote: this is
30005
+ * the value the analytics sweep will actually use, and an operator asking how
30006
+ * long their audit trail lives should not have to infer it from a default.
30007
+ */
30008
+ opsLogRetentionDays: number().int().min(0),
29798
30009
  persisted: boolean()
29799
30010
  });
29800
30011
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -30356,7 +30567,7 @@ var StationaryObjectSchema = object({
30356
30567
  /** Enrichment label carried from the source track (identity / plate). */
30357
30568
  label: string().optional(),
30358
30569
  /** Native-resolution key-frame media key for the parked object's best image. */
30359
- keyFrameMediaKey: string().optional()
30570
+ keyFrameMediaId: number().int().optional()
30360
30571
  });
30361
30572
  var CameraOccupancySnapshotSchema = object({
30362
30573
  /** Frame timestamp of the inference result that produced this snapshot. */
@@ -31512,6 +31723,12 @@ Object.freeze({
31512
31723
  addonId: null,
31513
31724
  access: "create"
31514
31725
  },
31726
+ "dataStoreProvider.upsert": {
31727
+ capName: "data-store-provider",
31728
+ capScope: "system",
31729
+ addonId: null,
31730
+ access: "create"
31731
+ },
31515
31732
  "dayNight.getOptions": {
31516
31733
  capName: "day-night",
31517
31734
  capScope: "device",
@@ -33948,6 +34165,12 @@ Object.freeze({
33948
34165
  addonId: null,
33949
34166
  access: "view"
33950
34167
  },
34168
+ "pipelineAnalytics.listRecentSummaries": {
34169
+ capName: "pipeline-analytics",
34170
+ capScope: "device",
34171
+ addonId: null,
34172
+ access: "view"
34173
+ },
33951
34174
  "pipelineAnalytics.listRecentTracks": {
33952
34175
  capName: "pipeline-analytics",
33953
34176
  capScope: "device",
@@ -35376,6 +35599,12 @@ Object.freeze({
35376
35599
  addonId: null,
35377
35600
  access: "create"
35378
35601
  },
35602
+ "settingsStore.upsert": {
35603
+ capName: "settings-store",
35604
+ capScope: "system",
35605
+ addonId: null,
35606
+ access: "create"
35607
+ },
35379
35608
  "smtpProvider.getStatus": {
35380
35609
  capName: "smtp-provider",
35381
35610
  capScope: "system",
@@ -37769,6 +37998,11 @@ Object.freeze({
37769
37998
  form: "single",
37770
37999
  optional: true
37771
38000
  }],
38001
+ "pipelineAnalytics.listRecentSummaries": [{
38002
+ name: "deviceIds",
38003
+ form: "array",
38004
+ optional: false
38005
+ }],
37772
38006
  "pipelineAnalytics.listRecentTracks": [{
37773
38007
  name: "deviceIds",
37774
38008
  form: "array",
@@ -39134,7 +39368,7 @@ var AgentUIAddon = class extends BaseAddon {
39134
39368
  capability: adminUiCapability,
39135
39369
  provider: {
39136
39370
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
39137
- getVersion: async () => ({ version: "1.2.104" })
39371
+ getVersion: async () => ({ version: "1.2.106" })
39138
39372
  }
39139
39373
  }];
39140
39374
  }