@camstack/addon-provider-homematic 1.2.100 → 1.2.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +292 -58
  2. package/dist/addon.mjs +292 -58
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -8,7 +8,7 @@ let http = require("http");
8
8
  let crypto$1 = require("crypto");
9
9
  let fs_promises = require("fs/promises");
10
10
  let path = require("path");
11
- //#region ../types/dist/event-category-DAXzJeTX.mjs
11
+ //#region ../types/dist/event-category-ZyX6jcse.mjs
12
12
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
13
13
  EventCategory["SystemBoot"] = "system.boot";
14
14
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -569,7 +569,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
569
569
  * a package zone — a newly-appeared stationary object of a package class
570
570
  * that cleared the class / zone / dwell / size gates. Payload:
571
571
  * `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
572
- * entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
572
+ * entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
573
573
  * Telemetry (D8): the durable record is the `package-events` store row;
574
574
  * this bus topic drives notifier rules + live UI. See
575
575
  * docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
@@ -5355,7 +5355,7 @@ var ZodIssueCode = {
5355
5355
  var ZodFirstPartyTypeKind;
5356
5356
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5357
5357
  //#endregion
5358
- //#region ../types/dist/sleep-BnujYGPe.mjs
5358
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5359
5359
  /**
5360
5360
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5361
5361
  * window to float samples (D455).
@@ -7322,13 +7322,30 @@ new Set([
7322
7322
  "scene",
7323
7323
  "motion",
7324
7324
  "object",
7325
- "audio"
7325
+ "audio",
7326
+ "mosaic"
7326
7327
  ]);
7327
- new Set([
7328
+ /**
7329
+ * The owner types that are event tables, in the order the event-media resolver
7330
+ * should consider them. Exported so a consumer asking "is this key an event?"
7331
+ * does not re-spell the list and drift from it.
7332
+ */
7333
+ var EVENT_OWNER_TYPES = [
7328
7334
  "motion",
7329
7335
  "object",
7330
7336
  "audio"
7331
- ]);
7337
+ ];
7338
+ /**
7339
+ * The same list as a Zod enum, for the cap inputs that must NAME the table
7340
+ * (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
7341
+ * `(table, id)`).
7342
+ *
7343
+ * Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
7344
+ * table would otherwise be accepted by the codec and refused at the door, with
7345
+ * nothing failing until a caller asked.
7346
+ */
7347
+ var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
7348
+ new Set(EVENT_OWNER_TYPES);
7332
7349
  var EncodeProfileSchema = object({
7333
7350
  video: object({
7334
7351
  codec: _enum([
@@ -7367,7 +7384,23 @@ var EncodeProfileSchema = object({
7367
7384
  "zerolatency",
7368
7385
  "film",
7369
7386
  "animation"
7370
- ]).optional()
7387
+ ]).optional(),
7388
+ /**
7389
+ * ONE slice per access unit.
7390
+ *
7391
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7392
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7393
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7394
+ * frame-end per frame: the first pictures render and the video then freezes
7395
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7396
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7397
+ *
7398
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7399
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7400
+ * consumers meaning the same thing spelled differently would stop sharing one
7401
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7402
+ */
7403
+ singleSlicePerFrame: boolean().optional()
7371
7404
  }),
7372
7405
  audio: union([literal("passthrough"), object({
7373
7406
  codec: _enum([
@@ -7417,7 +7450,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7417
7450
  audio: "passthrough"
7418
7451
  };
7419
7452
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7420
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7453
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7421
7454
  /**
7422
7455
  * Deep wiring healthcheck — snapshot of active reachability probes across
7423
7456
  * every declared capability + widget of every installed plugin, on every
@@ -12576,6 +12609,16 @@ method(object({
12576
12609
  filter: QueryFilterSchema.optional(),
12577
12610
  columns: array(string()).readonly().optional()
12578
12611
  }), array(SettingsRecordSchema).readonly()), method(object({
12612
+ namespace: string().optional(),
12613
+ collection: string(),
12614
+ /** Declared columns identifying the slot; must be covered by a UNIQUE
12615
+ * index on the collection. Never empty. */
12616
+ conflict: array(string()).readonly(),
12617
+ record: BulkRecordSchema
12618
+ }), object({
12619
+ /** The id the row HAS: assigned by SQLite on an insert, or the existing
12620
+ * row's own id on an update. */
12621
+ id: union([string(), number()]) }), { kind: "mutation" }), method(object({
12579
12622
  namespace: string().optional(),
12580
12623
  collection: string(),
12581
12624
  record: object({
@@ -12710,6 +12753,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
12710
12753
  id: union([string(), number()]) }), {
12711
12754
  kind: "mutation",
12712
12755
  auth: "admin"
12756
+ }), method(object({
12757
+ namespace: string().optional(),
12758
+ collection: string(),
12759
+ conflict: array(string()).readonly(),
12760
+ record: BulkRecordSchema
12761
+ }), object({ id: union([string(), number()]) }), {
12762
+ kind: "mutation",
12763
+ auth: "admin"
12713
12764
  }), method(object({
12714
12765
  namespace: string().optional(),
12715
12766
  collection: string(),
@@ -19209,8 +19260,8 @@ var TrackPositionSchema = object({
19209
19260
  var TrackSnapshotSchema = object({
19210
19261
  timestamp: number(),
19211
19262
  position: TrackPositionSchema,
19212
- /** MediaStore key; resolve via `getTrackMedia({ trackId })`. */
19213
- mediaKey: string()
19263
+ /** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
19264
+ mediaId: number().int()
19214
19265
  });
19215
19266
  /**
19216
19267
  * Normalized 0..1 trajectory envelope (min/max over every position bbox,
@@ -19814,14 +19865,14 @@ var ObjectEventSchema = object({
19814
19865
  * pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
19815
19866
  frameWidth: number().optional(),
19816
19867
  frameHeight: number().optional(),
19817
- /** MediaStore key for the crop attached to this event (if any). */
19818
- mediaKey: string().optional(),
19819
- /** Design B: MediaStore key of the track's native-resolution key frame (the
19868
+ /** Media row id of the crop attached to this event (if any) — D482. */
19869
+ mediaId: number().int().optional(),
19870
+ /** Design B: media row id of the track's native-resolution key frame (the
19820
19871
  * best-detection full frame). Resolve via the event-media data-plane
19821
- * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
19872
+ * (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
19822
19873
  * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
19823
- * sources — consumers fall back to `mediaKey` (the tight crop). */
19824
- keyFrameMediaKey: string().optional(),
19874
+ * sources — consumers fall back to `mediaId` (the tight crop). */
19875
+ keyFrameMediaId: number().int().optional(),
19825
19876
  /** Populated by B5 (recording playback URL for this event). */
19826
19877
  mediaUrl: string().optional(),
19827
19878
  /** The parent track's key-event importance [0,1], propagated to every object
@@ -19871,7 +19922,7 @@ var MediaFileKindEnum = _enum([
19871
19922
  * hub-main's heap on the way past — for an `<img>` that would have cached it.
19872
19923
  *
19873
19924
  * `url` points at the `event-media` data plane
19874
- * (`/addon/<addonId>/event-media/<storedKey>`), which serves the same blob
19925
+ * (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
19875
19926
  * with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
19876
19927
  * render a `?variant=thumb`, and streams. The hub gate in front of it requires
19877
19928
  * a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
@@ -19879,10 +19930,13 @@ var MediaFileKindEnum = _enum([
19879
19930
  * `data-plane-access.ts` for the rule and the one gap it does not close
19880
19931
  * (per-device scoping).
19881
19932
  *
19882
- * The URL is built from the row's **stored** key, which is not always its
19883
- * published `kind`: a track's face/plate crop is stored as `crop` under
19933
+ * The URL is built from the row's own id, which since D482 says nothing about
19934
+ * the row's owner or kind — and that is the point. The published `kind` is not
19935
+ * the stored one (a track's face/plate crop is stored as `crop` under
19884
19936
  * `('face'|'plate', '<prefix>-<trackId>')` and published as
19885
- * `faceCrop`/`plateCrop`. `MediaStore.getByKey` knows only the stored key.
19937
+ * `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
19938
+ * taken from `row.key` verbatim or it 404'd exactly those two rows. An id
19939
+ * cannot be mis-reconstructed, because there is nothing in it to reconstruct.
19886
19940
  *
19887
19941
  * ## `base64` is TRANSITIONAL and is going away
19888
19942
  *
@@ -19895,7 +19949,19 @@ var MediaFileKindEnum = _enum([
19895
19949
  * `analytics-query-facade.ts`; nothing else reads it.
19896
19950
  */
19897
19951
  var MediaFileSchema = object({
19898
- key: string(),
19952
+ /**
19953
+ * The media row's OWN id — the rowid SQLite assigned it (D482).
19954
+ *
19955
+ * It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
19956
+ * [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
19957
+ * per-table rowid aliases, so `object:101314` and `motion:101314` are two
19958
+ * different rows that spell the same number, and a track whose
19959
+ * `bestEventId` was an object event was served a motion event's snapshot —
19960
+ * a night-time thumbnail on an afternoon track, with no error anywhere. A
19961
+ * surrogate id cannot name the wrong row's owner, because it names no owner
19962
+ * at all.
19963
+ */
19964
+ mediaId: number().int(),
19899
19965
  kind: MediaFileKindEnum,
19900
19966
  sizeBytes: number(),
19901
19967
  timestamp: number()
@@ -20003,7 +20069,7 @@ var RetrainTrackSchema = object({
20003
20069
  });
20004
20070
  /** A frame the picker may offer — an index row, no blob was read to produce it. */
20005
20071
  var RetrainFrameCandidateSchema = object({
20006
- mediaKey: string(),
20072
+ mediaId: number().int(),
20007
20073
  kind: MediaFileKindEnum,
20008
20074
  timestamp: number(),
20009
20075
  sizeBytes: number().int(),
@@ -20017,7 +20083,7 @@ var RetrainFrameSchema = object({
20017
20083
  deviceId: number(),
20018
20084
  trackId: string(),
20019
20085
  /** Provenance only. It may already point at nothing — that is expected. */
20020
- sourceMediaKey: string(),
20086
+ sourceMediaId: number().int(),
20021
20087
  sourceKind: MediaFileKindEnum,
20022
20088
  sizeBytes: number().int(),
20023
20089
  width: number().int(),
@@ -20033,7 +20099,7 @@ var RetrainCopyRefusalSchema = _enum([
20033
20099
  var RetrainFrameSelectionSchema = object({
20034
20100
  copied: array(RetrainFrameSchema).readonly(),
20035
20101
  refused: array(object({
20036
- sourceMediaKey: string(),
20102
+ sourceMediaId: number().int(),
20037
20103
  reason: RetrainCopyRefusalSchema
20038
20104
  })).readonly()
20039
20105
  });
@@ -20041,7 +20107,7 @@ var RetrainFrameListSchema = object({
20041
20107
  candidates: array(RetrainFrameCandidateSchema).readonly(),
20042
20108
  copies: array(RetrainFrameSchema).readonly(),
20043
20109
  /** What the page pre-selects — the native key frame when one survives. */
20044
- autoPickMediaKey: string().optional()
20110
+ autoPickMediaId: number().int().optional()
20045
20111
  });
20046
20112
  /** What the operator asked the assist to look for. */
20047
20113
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
@@ -20136,9 +20202,11 @@ var RecentTracksQueryInput = object({
20136
20202
  });
20137
20203
  /**
20138
20204
  * A Summary (D359): the per-camera session envelope that references tracks.
20139
- * `groupShotKey` is the media key of its group shot (`ownerKind: 'summary'`,
20140
- * served by the event-media plane by key), null until the first frame with a
20141
- * member visible has been materialised.
20205
+ * `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
20206
+ * 'summary'`, served by the event-media plane at `/m/<id>`), null until the
20207
+ * first frame with a member visible has been materialised (D482 — it was the
20208
+ * row's composite key, which embedded the owner and could name another table's
20209
+ * row once event ids became per-table rowids).
20142
20210
  */
20143
20211
  var SummarySchema = object({
20144
20212
  id: string(),
@@ -20147,19 +20215,115 @@ var SummarySchema = object({
20147
20215
  lastActiveAt: number(),
20148
20216
  sealedAt: number().nullable(),
20149
20217
  memberCount: number().int().nonnegative(),
20150
- groupShotKey: string().nullable()
20218
+ groupShotMediaId: number().int().nullable()
20151
20219
  });
20152
20220
  var SummariesQueryInput = object({
20153
20221
  deviceIds: array(number()).min(1),
20154
20222
  since: number().optional(),
20155
20223
  until: number().optional(),
20156
- limit: number().int().min(1).max(200).default(50)
20224
+ limit: number().int().min(1).max(200).default(50),
20225
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20226
+ * meaning of "dog" on every summary surface. */
20227
+ classes: array(string().min(1).max(60)).max(40).optional()
20157
20228
  });
20158
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20159
20229
  var SummaryDetailSchema = object({
20160
20230
  summary: SummarySchema,
20161
- /** Member track ids, in absorption order. */
20162
- trackIds: array(string()).readonly()
20231
+ /** Members in absorption order, oldest join first. */
20232
+ members: array(object({
20233
+ trackId: string(),
20234
+ /**
20235
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20236
+ * and the track no longer exists to fill it.
20237
+ *
20238
+ * The join, not the latest opinion: class voting can re-decide a track's
20239
+ * class afterwards, and a group's composition is the history of who came
20240
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20241
+ * dog" — rather than being handed a second, denormalised tally that would
20242
+ * drift from the members it claims to describe.
20243
+ */
20244
+ className: string().nullable(),
20245
+ /** `primary` is the one member that carries the group's identity. */
20246
+ role: _enum([
20247
+ "primary",
20248
+ "sibling",
20249
+ "child"
20250
+ ]).nullable(),
20251
+ joinedAt: number(),
20252
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20253
+ * at read time. Absent when nothing resolved, never an empty string. */
20254
+ label: string().optional(),
20255
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20256
+ * recognised nobody, and absent for a member whose track has been pruned —
20257
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20258
+ subLabel: string().optional()
20259
+ })).readonly()
20260
+ });
20261
+ /**
20262
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20263
+ *
20264
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20265
+ * we extend when we notice we need more". Enough to draw the card ("two people
20266
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20267
+ * are on {@link getSummary}: shipping every member of every group so a client
20268
+ * can count them turns a page of two hundred groups into a thousand records to
20269
+ * draw two hundred badges.
20270
+ */
20271
+ var SummaryListItemSchema = object({
20272
+ summary: SummarySchema,
20273
+ /** Class counts, most numerous first; `className: null` is a member whose
20274
+ * class never resolved, counted so the counts add up to `memberCount`. */
20275
+ classes: array(object({
20276
+ className: string().nullable(),
20277
+ count: number().int().positive()
20278
+ })).readonly()
20279
+ });
20280
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20281
+ /**
20282
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20283
+ *
20284
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20285
+ * summaries feed that could only answer "the last N for these cameras"
20286
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20287
+ * else. Two feeds with different ordering contracts would be two ideas of what
20288
+ * "newest" means, on one screen.
20289
+ */
20290
+ var RecentSummariesQueryInput = object({
20291
+ /** Devices to merge. An empty array yields an empty page. */
20292
+ deviceIds: array(number()),
20293
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20294
+ since: number().optional(),
20295
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20296
+ until: number().optional(),
20297
+ limit: number().int().min(1).max(500).default(100),
20298
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20299
+ cursor: string().optional(),
20300
+ /**
20301
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20302
+ * deliberately the same name: the events filter tree emits one list of ticked
20303
+ * taxonomy nodes, and a summaries feed that called it something else would
20304
+ * make the operator's one filter component produce two shapes.
20305
+ *
20306
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20307
+ * me the arrivals with a dog" has to return the group of four people who had
20308
+ * one with them; a filter on the group's own fields could only ever answer
20309
+ * about its primary.
20310
+ *
20311
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20312
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20313
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20314
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20315
+ * that read only the class would answer "animal" and never "dog".
20316
+ *
20317
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20318
+ */
20319
+ classes: array(string().min(1).max(60)).max(40).optional()
20320
+ });
20321
+ var RecentSummariesPageSchema = object({
20322
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20323
+ * {@link listSummaries} — one list shape, so a card renders the same
20324
+ * whichever feed drew it. */
20325
+ summaries: array(SummaryListItemSchema).readonly(),
20326
+ nextCursor: string().nullable()
20163
20327
  });
20164
20328
  var RecentTracksPageSchema = object({
20165
20329
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20573,7 +20737,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20573
20737
  classes: array(string()).optional(),
20574
20738
  /** See {@link ExcludeSourcesDoc}. */
20575
20739
  excludeSources: array(TrackSourceSchema).optional()
20576
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20740
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20577
20741
  kind: "mutation",
20578
20742
  auth: "admin"
20579
20743
  }), 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({
@@ -20701,7 +20865,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20701
20865
  }), method(object({
20702
20866
  deviceId: number(),
20703
20867
  trackId: string(),
20704
- mediaKeys: array(string()).min(1)
20868
+ mediaIds: array(number().int()).min(1)
20705
20869
  }), RetrainFrameSelectionSchema, {
20706
20870
  kind: "mutation",
20707
20871
  auth: "admin"
@@ -20769,7 +20933,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20769
20933
  kind: "query",
20770
20934
  auth: "admin"
20771
20935
  }), method(object({
20772
- eventId: string(),
20936
+ /** Which of the three event tables owns the row. */
20937
+ ownerType: EventOwnerTypeSchema,
20938
+ /** The event's rowid in that table (D474: an event id is a number). */
20939
+ eventId: number().int(),
20773
20940
  kind: MediaFileKindEnum.optional(),
20774
20941
  deviceId: number()
20775
20942
  }), array(MediaFileSchema).readonly()), method(object({
@@ -20780,7 +20947,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20780
20947
  trackId: string(),
20781
20948
  deviceId: number()
20782
20949
  }), array(MediaFileInfoSchema).readonly()), method(object({
20783
- eventId: string(),
20950
+ ownerType: EventOwnerTypeSchema,
20951
+ eventId: number().int(),
20784
20952
  deviceId: number()
20785
20953
  }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
20786
20954
  kind: "mutation",
@@ -25973,8 +26141,8 @@ var IdentitySchema = object({
25973
26141
  id: string(),
25974
26142
  name: string(),
25975
26143
  sampleCount: number().int().nonnegative(),
25976
- coverMediaKey: string().optional(),
25977
- /** Inline base64 of the cover sample's crop, resolved from `coverMediaKey`.
26144
+ coverMediaId: number().int().optional(),
26145
+ /** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
25978
26146
  * Lets the UI render the person's face avatar instead of a placeholder icon. */
25979
26147
  coverBase64: string().optional()
25980
26148
  });
@@ -26000,8 +26168,8 @@ var IdentitySampleAuditRowSchema = object({
26000
26168
  enrolledAt: number().int(),
26001
26169
  deviceId: number().int().optional(),
26002
26170
  source: _enum(["detected", "photo"]),
26003
- /** The enrolled crop's media key, so the panel can show the evidence. */
26004
- mediaKey: string().optional(),
26171
+ /** The enrolled crop's media row id, so the panel can show the evidence. */
26172
+ mediaId: number().int().optional(),
26005
26173
  /**
26006
26174
  * False = the sample is stamped with a DIFFERENT face model, and a cosine
26007
26175
  * across feature spaces is a well-formed float with no meaning. Every number
@@ -26070,15 +26238,15 @@ var FaceInfoSchema = object({
26070
26238
  */
26071
26239
  cropUrl: string().optional(),
26072
26240
  /** Design B: the face bbox (pixel space) on the key frame — lets a detail
26073
- * view draw the box over the native `keyFrameMediaKey` frame. Absent on
26241
+ * view draw the box over the native `keyFrameMediaId` frame. Absent on
26074
26242
  * legacy rows written before design B. */
26075
26243
  faceBbox: BoundingBoxSchema.optional(),
26076
26244
  /** Design B: MediaStore key of the track's native-resolution key frame.
26077
26245
  * Fetch the native JPEG via the event-media data-plane
26078
- * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
26246
+ * (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
26079
26247
  * track produced no key frame (e.g. native/onboard source) — the UI falls
26080
26248
  * back to the inline `base64` face crop. */
26081
- keyFrameMediaKey: string().optional(),
26249
+ keyFrameMediaId: number().int().optional(),
26082
26250
  /** Winning identity-match cosine (0..1) for this face's track, when an
26083
26251
  * identity was auto-confirmed. Lets the UI surface WHY a face was assigned
26084
26252
  * (confidence badge / low-confidence audit). Absent on legacy rows and on
@@ -26147,11 +26315,14 @@ var FaceClusterSchema = object({
26147
26315
  * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
26148
26316
  * dialog already rendering its key FRAME from the `event-media` plane.
26149
26317
  *
26150
- * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
26151
- * media key directly, so this needed no new plane and no new access decision.
26318
+ * `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
26319
+ * resolves a media row by its own id, so this needed no new plane and no new
26320
+ * access decision.
26152
26321
  */
26153
26322
  var MediaFileLiteSchema$1 = object({
26154
- key: string(),
26323
+ /** The media row's own id — the same address `MediaFileRef.mediaId` carries
26324
+ * (D482). It was the row's composite key, which embedded the owner. */
26325
+ mediaId: number().int(),
26155
26326
  kind: string(),
26156
26327
  url: string(),
26157
26328
  sizeBytes: number(),
@@ -26168,7 +26339,7 @@ method(object({
26168
26339
  * covers inline, ~10 KB of base64 per row, on a query this UI mounts
26169
26340
  * four times and the viewer holds at `staleTime: 30_000`.
26170
26341
  *
26171
- * Nothing loses its avatar: `coverMediaKey` is already on every row and
26342
+ * Nothing loses its avatar: `coverMediaId` is already on every row and
26172
26343
  * the `event-media` plane serves that key `immutable` with an ETag.
26173
26344
  *
26174
26345
  * **This is an INPUT field, so it does not reach the addon until the
@@ -29531,8 +29702,8 @@ var VehicleSchema = object({
29531
29702
  id: string(),
29532
29703
  name: string(),
29533
29704
  sampleCount: number().int().nonnegative(),
29534
- coverMediaKey: string().optional(),
29535
- /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaKey`. */
29705
+ coverMediaId: number().int().optional(),
29706
+ /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
29536
29707
  coverBase64: string().optional()
29537
29708
  });
29538
29709
  var VehicleSampleInfoSchema = object({
@@ -29565,7 +29736,7 @@ var PlateInfoSchema = object({
29565
29736
  /** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
29566
29737
  plateBbox: BoundingBoxSchema.optional(),
29567
29738
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
29568
- keyFrameMediaKey: string().optional(),
29739
+ keyFrameMediaId: number().int().optional(),
29569
29740
  base64: string().optional(),
29570
29741
  /**
29571
29742
  * Same crop as a data-plane URL, always present when the plate has a stored
@@ -29586,11 +29757,14 @@ var PlateInfoSchema = object({
29586
29757
  * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
29587
29758
  * dialog already rendering its key FRAME from the `event-media` plane.
29588
29759
  *
29589
- * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
29590
- * media key directly, so this needed no new plane and no new access decision.
29760
+ * `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
29761
+ * resolves a media row by its own id, so this needed no new plane and no new
29762
+ * access decision.
29591
29763
  */
29592
29764
  var MediaFileLiteSchema = object({
29593
- key: string(),
29765
+ /** The media row's own id — the same address `MediaFileRef.mediaId` carries
29766
+ * (D482). It was the row's composite key, which embedded the owner. */
29767
+ mediaId: number().int(),
29594
29768
  kind: string(),
29595
29769
  url: string(),
29596
29770
  sizeBytes: number(),
@@ -29649,7 +29823,7 @@ method(object({
29649
29823
  }), method(object({
29650
29824
  /** Inline {@link VehicleSchema.coverBase64} on every row. Default
29651
29825
  * `false` — the vehicle twin of `faceGallery.listIdentities`'s
29652
- * option; `coverMediaKey` + the `event-media` plane carry the picture.
29826
+ * option; `coverMediaId` + the `event-media` plane carry the picture.
29653
29827
  * INPUT field: stripped by the hub router until the train ships, which
29654
29828
  * resolves to `false` and is exactly the intended default. */
29655
29829
  includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
@@ -31218,7 +31392,14 @@ var SceneReferenceSchema = object({
31218
31392
  modelId: string(),
31219
31393
  condition: SceneConditionSchema,
31220
31394
  capturedAt: number(),
31221
- thumbnailMediaId: string().optional(),
31395
+ /**
31396
+ * The reference thumbnail's media ROW id (D482).
31397
+ *
31398
+ * The name already said `mediaId` while the value was the row's composite
31399
+ * key — a leftover that read as done and was not. It is the row's own id
31400
+ * now, addressed at `/addon/<addonId>/event-media/m/<id>`.
31401
+ */
31402
+ thumbnailMediaId: number().int().optional(),
31222
31403
  /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
31223
31404
  * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
31224
31405
  * normalized rect frame a different piece of world, and the scene would
@@ -32309,7 +32490,29 @@ var LoggingSettingsPatchSchema = object({
32309
32490
  * disarmed the channels it did not mention would make the Levels page and
32310
32491
  * the Diagnostics page fight over the same value.
32311
32492
  */
32312
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32493
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32494
+ /**
32495
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32496
+ * retention actually deleted.
32497
+ *
32498
+ * It lives HERE, on the logging document, and not on the analytics addon's
32499
+ * settings form, on the operator's instruction: every other log-ish window in
32500
+ * this system is configured through this one document, and a retention audit
32501
+ * configured somewhere else is a second place to look when the question is
32502
+ * "what happened to my data".
32503
+ *
32504
+ * That placement has a cost worth stating: this document ships in the
32505
+ * framework closure, so this knob needs a published `@camstack/server` while
32506
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32507
+ *
32508
+ * `retention-model.ts` argued this one must NOT follow a device window,
32509
+ * because the audit trail is the history of the SWEEP and not of the camera.
32510
+ * That argument stands and is untouched — what changes is that 30 days stops
32511
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32512
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32513
+ * state in which the next 9.5 GiB leak cannot be explained.
32514
+ */
32515
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32313
32516
  });
32314
32517
  /**
32315
32518
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32382,6 +32585,14 @@ var LoggingSettingsStateSchema = object({
32382
32585
  channels: array(LogChannelDescriptorSchema).readonly(),
32383
32586
  /** The channels ARMED right now, each with its deadline. */
32384
32587
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32588
+ /**
32589
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32590
+ *
32591
+ * Reported rather than left to the caller's memory of what it wrote: this is
32592
+ * the value the analytics sweep will actually use, and an operator asking how
32593
+ * long their audit trail lives should not have to infer it from a default.
32594
+ */
32595
+ opsLogRetentionDays: number().int().min(0),
32385
32596
  persisted: boolean()
32386
32597
  });
32387
32598
  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(), {
@@ -33202,7 +33413,7 @@ var StationaryObjectSchema = object({
33202
33413
  /** Enrichment label carried from the source track (identity / plate). */
33203
33414
  label: string().optional(),
33204
33415
  /** Native-resolution key-frame media key for the parked object's best image. */
33205
- keyFrameMediaKey: string().optional()
33416
+ keyFrameMediaId: number().int().optional()
33206
33417
  });
33207
33418
  var CameraOccupancySnapshotSchema = object({
33208
33419
  /** Frame timestamp of the inference result that produced this snapshot. */
@@ -35940,6 +36151,12 @@ Object.freeze({
35940
36151
  addonId: null,
35941
36152
  access: "create"
35942
36153
  },
36154
+ "dataStoreProvider.upsert": {
36155
+ capName: "data-store-provider",
36156
+ capScope: "system",
36157
+ addonId: null,
36158
+ access: "create"
36159
+ },
35943
36160
  "dayNight.getOptions": {
35944
36161
  capName: "day-night",
35945
36162
  capScope: "device",
@@ -38376,6 +38593,12 @@ Object.freeze({
38376
38593
  addonId: null,
38377
38594
  access: "view"
38378
38595
  },
38596
+ "pipelineAnalytics.listRecentSummaries": {
38597
+ capName: "pipeline-analytics",
38598
+ capScope: "device",
38599
+ addonId: null,
38600
+ access: "view"
38601
+ },
38379
38602
  "pipelineAnalytics.listRecentTracks": {
38380
38603
  capName: "pipeline-analytics",
38381
38604
  capScope: "device",
@@ -39804,6 +40027,12 @@ Object.freeze({
39804
40027
  addonId: null,
39805
40028
  access: "create"
39806
40029
  },
40030
+ "settingsStore.upsert": {
40031
+ capName: "settings-store",
40032
+ capScope: "system",
40033
+ addonId: null,
40034
+ access: "create"
40035
+ },
39807
40036
  "smtpProvider.getStatus": {
39808
40037
  capName: "smtp-provider",
39809
40038
  capScope: "system",
@@ -42197,6 +42426,11 @@ Object.freeze({
42197
42426
  form: "single",
42198
42427
  optional: true
42199
42428
  }],
42429
+ "pipelineAnalytics.listRecentSummaries": [{
42430
+ name: "deviceIds",
42431
+ form: "array",
42432
+ optional: false
42433
+ }],
42200
42434
  "pipelineAnalytics.listRecentTracks": [{
42201
42435
  name: "deviceIds",
42202
42436
  form: "array",
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { join } from "path";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-DAXzJeTX.mjs
12
+ //#region ../types/dist/event-category-ZyX6jcse.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -570,7 +570,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
570
570
  * a package zone — a newly-appeared stationary object of a package class
571
571
  * that cleared the class / zone / dwell / size gates. Payload:
572
572
  * `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
573
- * entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
573
+ * entryId, className, zoneIds, keyFrameMediaId?, bbox, timestamp }`.
574
574
  * Telemetry (D8): the durable record is the `package-events` store row;
575
575
  * this bus topic drives notifier rules + live UI. See
576
576
  * docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
@@ -5356,7 +5356,7 @@ var ZodIssueCode = {
5356
5356
  var ZodFirstPartyTypeKind;
5357
5357
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5358
5358
  //#endregion
5359
- //#region ../types/dist/sleep-BnujYGPe.mjs
5359
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5360
5360
  /**
5361
5361
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5362
5362
  * window to float samples (D455).
@@ -7323,13 +7323,30 @@ new Set([
7323
7323
  "scene",
7324
7324
  "motion",
7325
7325
  "object",
7326
- "audio"
7326
+ "audio",
7327
+ "mosaic"
7327
7328
  ]);
7328
- new Set([
7329
+ /**
7330
+ * The owner types that are event tables, in the order the event-media resolver
7331
+ * should consider them. Exported so a consumer asking "is this key an event?"
7332
+ * does not re-spell the list and drift from it.
7333
+ */
7334
+ var EVENT_OWNER_TYPES = [
7329
7335
  "motion",
7330
7336
  "object",
7331
7337
  "audio"
7332
- ]);
7338
+ ];
7339
+ /**
7340
+ * The same list as a Zod enum, for the cap inputs that must NAME the table
7341
+ * (D482: `getEventMedia` / `listEventMedia` take an owner, and an owner is
7342
+ * `(table, id)`).
7343
+ *
7344
+ * Built FROM {@link EVENT_OWNER_TYPES} rather than re-spelled: a fourth event
7345
+ * table would otherwise be accepted by the codec and refused at the door, with
7346
+ * nothing failing until a caller asked.
7347
+ */
7348
+ var EventOwnerTypeSchema = _enum(EVENT_OWNER_TYPES);
7349
+ new Set(EVENT_OWNER_TYPES);
7333
7350
  var EncodeProfileSchema = object({
7334
7351
  video: object({
7335
7352
  codec: _enum([
@@ -7368,7 +7385,23 @@ var EncodeProfileSchema = object({
7368
7385
  "zerolatency",
7369
7386
  "film",
7370
7387
  "animation"
7371
- ]).optional()
7388
+ ]).optional(),
7389
+ /**
7390
+ * ONE slice per access unit.
7391
+ *
7392
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7393
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7394
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7395
+ * frame-end per frame: the first pictures render and the video then freezes
7396
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7397
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7398
+ *
7399
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7400
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7401
+ * consumers meaning the same thing spelled differently would stop sharing one
7402
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7403
+ */
7404
+ singleSlicePerFrame: boolean().optional()
7372
7405
  }),
7373
7406
  audio: union([literal("passthrough"), object({
7374
7407
  codec: _enum([
@@ -7418,7 +7451,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7418
7451
  audio: "passthrough"
7419
7452
  };
7420
7453
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7421
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7454
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7422
7455
  /**
7423
7456
  * Deep wiring healthcheck — snapshot of active reachability probes across
7424
7457
  * every declared capability + widget of every installed plugin, on every
@@ -12577,6 +12610,16 @@ method(object({
12577
12610
  filter: QueryFilterSchema.optional(),
12578
12611
  columns: array(string()).readonly().optional()
12579
12612
  }), array(SettingsRecordSchema).readonly()), method(object({
12613
+ namespace: string().optional(),
12614
+ collection: string(),
12615
+ /** Declared columns identifying the slot; must be covered by a UNIQUE
12616
+ * index on the collection. Never empty. */
12617
+ conflict: array(string()).readonly(),
12618
+ record: BulkRecordSchema
12619
+ }), object({
12620
+ /** The id the row HAS: assigned by SQLite on an insert, or the existing
12621
+ * row's own id on an update. */
12622
+ id: union([string(), number()]) }), { kind: "mutation" }), method(object({
12580
12623
  namespace: string().optional(),
12581
12624
  collection: string(),
12582
12625
  record: object({
@@ -12711,6 +12754,14 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
12711
12754
  id: union([string(), number()]) }), {
12712
12755
  kind: "mutation",
12713
12756
  auth: "admin"
12757
+ }), method(object({
12758
+ namespace: string().optional(),
12759
+ collection: string(),
12760
+ conflict: array(string()).readonly(),
12761
+ record: BulkRecordSchema
12762
+ }), object({ id: union([string(), number()]) }), {
12763
+ kind: "mutation",
12764
+ auth: "admin"
12714
12765
  }), method(object({
12715
12766
  namespace: string().optional(),
12716
12767
  collection: string(),
@@ -19210,8 +19261,8 @@ var TrackPositionSchema = object({
19210
19261
  var TrackSnapshotSchema = object({
19211
19262
  timestamp: number(),
19212
19263
  position: TrackPositionSchema,
19213
- /** MediaStore key; resolve via `getTrackMedia({ trackId })`. */
19214
- mediaKey: string()
19264
+ /** The snapshot's media row id (D482); resolve via `listTrackMedia({ trackId })`. */
19265
+ mediaId: number().int()
19215
19266
  });
19216
19267
  /**
19217
19268
  * Normalized 0..1 trajectory envelope (min/max over every position bbox,
@@ -19815,14 +19866,14 @@ var ObjectEventSchema = object({
19815
19866
  * pixel-space `bbox` onto a displayed image. Omitted in slim projection. */
19816
19867
  frameWidth: number().optional(),
19817
19868
  frameHeight: number().optional(),
19818
- /** MediaStore key for the crop attached to this event (if any). */
19819
- mediaKey: string().optional(),
19820
- /** Design B: MediaStore key of the track's native-resolution key frame (the
19869
+ /** Media row id of the crop attached to this event (if any) — D482. */
19870
+ mediaId: number().int().optional(),
19871
+ /** Design B: media row id of the track's native-resolution key frame (the
19821
19872
  * best-detection full frame). Resolve via the event-media data-plane
19822
- * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
19873
+ * (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`) for a detail view that
19823
19874
  * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
19824
- * sources — consumers fall back to `mediaKey` (the tight crop). */
19825
- keyFrameMediaKey: string().optional(),
19875
+ * sources — consumers fall back to `mediaId` (the tight crop). */
19876
+ keyFrameMediaId: number().int().optional(),
19826
19877
  /** Populated by B5 (recording playback URL for this event). */
19827
19878
  mediaUrl: string().optional(),
19828
19879
  /** The parent track's key-event importance [0,1], propagated to every object
@@ -19872,7 +19923,7 @@ var MediaFileKindEnum = _enum([
19872
19923
  * hub-main's heap on the way past — for an `<img>` that would have cached it.
19873
19924
  *
19874
19925
  * `url` points at the `event-media` data plane
19875
- * (`/addon/<addonId>/event-media/<storedKey>`), which serves the same blob
19926
+ * (`/addon/<addonId>/event-media/m/<mediaId>` — D482), which serves the same blob
19876
19927
  * with an ETag and `Cache-Control: immutable`, honours conditional GETs, can
19877
19928
  * render a `?variant=thumb`, and streams. The hub gate in front of it requires
19878
19929
  * a bearer or the session cookie (`access: 'authenticated'`), so the bytes are
@@ -19880,10 +19931,13 @@ var MediaFileKindEnum = _enum([
19880
19931
  * `data-plane-access.ts` for the rule and the one gap it does not close
19881
19932
  * (per-device scoping).
19882
19933
  *
19883
- * The URL is built from the row's **stored** key, which is not always its
19884
- * published `kind`: a track's face/plate crop is stored as `crop` under
19934
+ * The URL is built from the row's own id, which since D482 says nothing about
19935
+ * the row's owner or kind — and that is the point. The published `kind` is not
19936
+ * the stored one (a track's face/plate crop is stored as `crop` under
19885
19937
  * `('face'|'plate', '<prefix>-<trackId>')` and published as
19886
- * `faceCrop`/`plateCrop`. `MediaStore.getByKey` knows only the stored key.
19938
+ * `faceCrop`/`plateCrop`), and under the old composite key the URL had to be
19939
+ * taken from `row.key` verbatim or it 404'd exactly those two rows. An id
19940
+ * cannot be mis-reconstructed, because there is nothing in it to reconstruct.
19887
19941
  *
19888
19942
  * ## `base64` is TRANSITIONAL and is going away
19889
19943
  *
@@ -19896,7 +19950,19 @@ var MediaFileKindEnum = _enum([
19896
19950
  * `analytics-query-facade.ts`; nothing else reads it.
19897
19951
  */
19898
19952
  var MediaFileSchema = object({
19899
- key: string(),
19953
+ /**
19954
+ * The media row's OWN id — the rowid SQLite assigned it (D482).
19955
+ *
19956
+ * It used to be the row's composite key, `<ownerType>:<ownerId>:<fileKind>
19957
+ * [:<timestampMs>]`, which embedded a FOREIGN id. D474 made event ids
19958
+ * per-table rowid aliases, so `object:101314` and `motion:101314` are two
19959
+ * different rows that spell the same number, and a track whose
19960
+ * `bestEventId` was an object event was served a motion event's snapshot —
19961
+ * a night-time thumbnail on an afternoon track, with no error anywhere. A
19962
+ * surrogate id cannot name the wrong row's owner, because it names no owner
19963
+ * at all.
19964
+ */
19965
+ mediaId: number().int(),
19900
19966
  kind: MediaFileKindEnum,
19901
19967
  sizeBytes: number(),
19902
19968
  timestamp: number()
@@ -20004,7 +20070,7 @@ var RetrainTrackSchema = object({
20004
20070
  });
20005
20071
  /** A frame the picker may offer — an index row, no blob was read to produce it. */
20006
20072
  var RetrainFrameCandidateSchema = object({
20007
- mediaKey: string(),
20073
+ mediaId: number().int(),
20008
20074
  kind: MediaFileKindEnum,
20009
20075
  timestamp: number(),
20010
20076
  sizeBytes: number().int(),
@@ -20018,7 +20084,7 @@ var RetrainFrameSchema = object({
20018
20084
  deviceId: number(),
20019
20085
  trackId: string(),
20020
20086
  /** Provenance only. It may already point at nothing — that is expected. */
20021
- sourceMediaKey: string(),
20087
+ sourceMediaId: number().int(),
20022
20088
  sourceKind: MediaFileKindEnum,
20023
20089
  sizeBytes: number().int(),
20024
20090
  width: number().int(),
@@ -20034,7 +20100,7 @@ var RetrainCopyRefusalSchema = _enum([
20034
20100
  var RetrainFrameSelectionSchema = object({
20035
20101
  copied: array(RetrainFrameSchema).readonly(),
20036
20102
  refused: array(object({
20037
- sourceMediaKey: string(),
20103
+ sourceMediaId: number().int(),
20038
20104
  reason: RetrainCopyRefusalSchema
20039
20105
  })).readonly()
20040
20106
  });
@@ -20042,7 +20108,7 @@ var RetrainFrameListSchema = object({
20042
20108
  candidates: array(RetrainFrameCandidateSchema).readonly(),
20043
20109
  copies: array(RetrainFrameSchema).readonly(),
20044
20110
  /** What the page pre-selects — the native key frame when one survives. */
20045
- autoPickMediaKey: string().optional()
20111
+ autoPickMediaId: number().int().optional()
20046
20112
  });
20047
20113
  /** What the operator asked the assist to look for. */
20048
20114
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
@@ -20137,9 +20203,11 @@ var RecentTracksQueryInput = object({
20137
20203
  });
20138
20204
  /**
20139
20205
  * A Summary (D359): the per-camera session envelope that references tracks.
20140
- * `groupShotKey` is the media key of its group shot (`ownerKind: 'summary'`,
20141
- * served by the event-media plane by key), null until the first frame with a
20142
- * member visible has been materialised.
20206
+ * `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
20207
+ * 'summary'`, served by the event-media plane at `/m/<id>`), null until the
20208
+ * first frame with a member visible has been materialised (D482 — it was the
20209
+ * row's composite key, which embedded the owner and could name another table's
20210
+ * row once event ids became per-table rowids).
20143
20211
  */
20144
20212
  var SummarySchema = object({
20145
20213
  id: string(),
@@ -20148,19 +20216,115 @@ var SummarySchema = object({
20148
20216
  lastActiveAt: number(),
20149
20217
  sealedAt: number().nullable(),
20150
20218
  memberCount: number().int().nonnegative(),
20151
- groupShotKey: string().nullable()
20219
+ groupShotMediaId: number().int().nullable()
20152
20220
  });
20153
20221
  var SummariesQueryInput = object({
20154
20222
  deviceIds: array(number()).min(1),
20155
20223
  since: number().optional(),
20156
20224
  until: number().optional(),
20157
- limit: number().int().min(1).max(200).default(50)
20225
+ limit: number().int().min(1).max(200).default(50),
20226
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20227
+ * meaning of "dog" on every summary surface. */
20228
+ classes: array(string().min(1).max(60)).max(40).optional()
20158
20229
  });
20159
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20160
20230
  var SummaryDetailSchema = object({
20161
20231
  summary: SummarySchema,
20162
- /** Member track ids, in absorption order. */
20163
- trackIds: array(string()).readonly()
20232
+ /** Members in absorption order, oldest join first. */
20233
+ members: array(object({
20234
+ trackId: string(),
20235
+ /**
20236
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20237
+ * and the track no longer exists to fill it.
20238
+ *
20239
+ * The join, not the latest opinion: class voting can re-decide a track's
20240
+ * class afterwards, and a group's composition is the history of who came
20241
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20242
+ * dog" — rather than being handed a second, denormalised tally that would
20243
+ * drift from the members it claims to describe.
20244
+ */
20245
+ className: string().nullable(),
20246
+ /** `primary` is the one member that carries the group's identity. */
20247
+ role: _enum([
20248
+ "primary",
20249
+ "sibling",
20250
+ "child"
20251
+ ]).nullable(),
20252
+ joinedAt: number(),
20253
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20254
+ * at read time. Absent when nothing resolved, never an empty string. */
20255
+ label: string().optional(),
20256
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20257
+ * recognised nobody, and absent for a member whose track has been pruned —
20258
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20259
+ subLabel: string().optional()
20260
+ })).readonly()
20261
+ });
20262
+ /**
20263
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20264
+ *
20265
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20266
+ * we extend when we notice we need more". Enough to draw the card ("two people
20267
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20268
+ * are on {@link getSummary}: shipping every member of every group so a client
20269
+ * can count them turns a page of two hundred groups into a thousand records to
20270
+ * draw two hundred badges.
20271
+ */
20272
+ var SummaryListItemSchema = object({
20273
+ summary: SummarySchema,
20274
+ /** Class counts, most numerous first; `className: null` is a member whose
20275
+ * class never resolved, counted so the counts add up to `memberCount`. */
20276
+ classes: array(object({
20277
+ className: string().nullable(),
20278
+ count: number().int().positive()
20279
+ })).readonly()
20280
+ });
20281
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20282
+ /**
20283
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20284
+ *
20285
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20286
+ * summaries feed that could only answer "the last N for these cameras"
20287
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20288
+ * else. Two feeds with different ordering contracts would be two ideas of what
20289
+ * "newest" means, on one screen.
20290
+ */
20291
+ var RecentSummariesQueryInput = object({
20292
+ /** Devices to merge. An empty array yields an empty page. */
20293
+ deviceIds: array(number()),
20294
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20295
+ since: number().optional(),
20296
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20297
+ until: number().optional(),
20298
+ limit: number().int().min(1).max(500).default(100),
20299
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20300
+ cursor: string().optional(),
20301
+ /**
20302
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20303
+ * deliberately the same name: the events filter tree emits one list of ticked
20304
+ * taxonomy nodes, and a summaries feed that called it something else would
20305
+ * make the operator's one filter component produce two shapes.
20306
+ *
20307
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20308
+ * me the arrivals with a dog" has to return the group of four people who had
20309
+ * one with them; a filter on the group's own fields could only ever answer
20310
+ * about its primary.
20311
+ *
20312
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20313
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20314
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20315
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20316
+ * that read only the class would answer "animal" and never "dog".
20317
+ *
20318
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20319
+ */
20320
+ classes: array(string().min(1).max(60)).max(40).optional()
20321
+ });
20322
+ var RecentSummariesPageSchema = object({
20323
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20324
+ * {@link listSummaries} — one list shape, so a card renders the same
20325
+ * whichever feed drew it. */
20326
+ summaries: array(SummaryListItemSchema).readonly(),
20327
+ nextCursor: string().nullable()
20164
20328
  });
20165
20329
  var RecentTracksPageSchema = object({
20166
20330
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20574,7 +20738,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20574
20738
  classes: array(string()).optional(),
20575
20739
  /** See {@link ExcludeSourcesDoc}. */
20576
20740
  excludeSources: array(TrackSourceSchema).optional()
20577
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20741
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20578
20742
  kind: "mutation",
20579
20743
  auth: "admin"
20580
20744
  }), 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({
@@ -20702,7 +20866,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20702
20866
  }), method(object({
20703
20867
  deviceId: number(),
20704
20868
  trackId: string(),
20705
- mediaKeys: array(string()).min(1)
20869
+ mediaIds: array(number().int()).min(1)
20706
20870
  }), RetrainFrameSelectionSchema, {
20707
20871
  kind: "mutation",
20708
20872
  auth: "admin"
@@ -20770,7 +20934,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20770
20934
  kind: "query",
20771
20935
  auth: "admin"
20772
20936
  }), method(object({
20773
- eventId: string(),
20937
+ /** Which of the three event tables owns the row. */
20938
+ ownerType: EventOwnerTypeSchema,
20939
+ /** The event's rowid in that table (D474: an event id is a number). */
20940
+ eventId: number().int(),
20774
20941
  kind: MediaFileKindEnum.optional(),
20775
20942
  deviceId: number()
20776
20943
  }), array(MediaFileSchema).readonly()), method(object({
@@ -20781,7 +20948,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20781
20948
  trackId: string(),
20782
20949
  deviceId: number()
20783
20950
  }), array(MediaFileInfoSchema).readonly()), method(object({
20784
- eventId: string(),
20951
+ ownerType: EventOwnerTypeSchema,
20952
+ eventId: number().int(),
20785
20953
  deviceId: number()
20786
20954
  }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
20787
20955
  kind: "mutation",
@@ -25974,8 +26142,8 @@ var IdentitySchema = object({
25974
26142
  id: string(),
25975
26143
  name: string(),
25976
26144
  sampleCount: number().int().nonnegative(),
25977
- coverMediaKey: string().optional(),
25978
- /** Inline base64 of the cover sample's crop, resolved from `coverMediaKey`.
26145
+ coverMediaId: number().int().optional(),
26146
+ /** Inline base64 of the cover sample's crop, resolved from `coverMediaId`.
25979
26147
  * Lets the UI render the person's face avatar instead of a placeholder icon. */
25980
26148
  coverBase64: string().optional()
25981
26149
  });
@@ -26001,8 +26169,8 @@ var IdentitySampleAuditRowSchema = object({
26001
26169
  enrolledAt: number().int(),
26002
26170
  deviceId: number().int().optional(),
26003
26171
  source: _enum(["detected", "photo"]),
26004
- /** The enrolled crop's media key, so the panel can show the evidence. */
26005
- mediaKey: string().optional(),
26172
+ /** The enrolled crop's media row id, so the panel can show the evidence. */
26173
+ mediaId: number().int().optional(),
26006
26174
  /**
26007
26175
  * False = the sample is stamped with a DIFFERENT face model, and a cosine
26008
26176
  * across feature spaces is a well-formed float with no meaning. Every number
@@ -26071,15 +26239,15 @@ var FaceInfoSchema = object({
26071
26239
  */
26072
26240
  cropUrl: string().optional(),
26073
26241
  /** Design B: the face bbox (pixel space) on the key frame — lets a detail
26074
- * view draw the box over the native `keyFrameMediaKey` frame. Absent on
26242
+ * view draw the box over the native `keyFrameMediaId` frame. Absent on
26075
26243
  * legacy rows written before design B. */
26076
26244
  faceBbox: BoundingBoxSchema.optional(),
26077
26245
  /** Design B: MediaStore key of the track's native-resolution key frame.
26078
26246
  * Fetch the native JPEG via the event-media data-plane
26079
- * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
26247
+ * (`/addon/<addonId>/event-media/m/<keyFrameMediaId>`). Absent when the
26080
26248
  * track produced no key frame (e.g. native/onboard source) — the UI falls
26081
26249
  * back to the inline `base64` face crop. */
26082
- keyFrameMediaKey: string().optional(),
26250
+ keyFrameMediaId: number().int().optional(),
26083
26251
  /** Winning identity-match cosine (0..1) for this face's track, when an
26084
26252
  * identity was auto-confirmed. Lets the UI surface WHY a face was assigned
26085
26253
  * (confidence badge / low-confidence audit). Absent on legacy rows and on
@@ -26148,11 +26316,14 @@ var FaceClusterSchema = object({
26148
26316
  * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
26149
26317
  * dialog already rendering its key FRAME from the `event-media` plane.
26150
26318
  *
26151
- * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
26152
- * media key directly, so this needed no new plane and no new access decision.
26319
+ * `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
26320
+ * resolves a media row by its own id, so this needed no new plane and no new
26321
+ * access decision.
26153
26322
  */
26154
26323
  var MediaFileLiteSchema$1 = object({
26155
- key: string(),
26324
+ /** The media row's own id — the same address `MediaFileRef.mediaId` carries
26325
+ * (D482). It was the row's composite key, which embedded the owner. */
26326
+ mediaId: number().int(),
26156
26327
  kind: string(),
26157
26328
  url: string(),
26158
26329
  sizeBytes: number(),
@@ -26169,7 +26340,7 @@ method(object({
26169
26340
  * covers inline, ~10 KB of base64 per row, on a query this UI mounts
26170
26341
  * four times and the viewer holds at `staleTime: 30_000`.
26171
26342
  *
26172
- * Nothing loses its avatar: `coverMediaKey` is already on every row and
26343
+ * Nothing loses its avatar: `coverMediaId` is already on every row and
26173
26344
  * the `event-media` plane serves that key `immutable` with an ETag.
26174
26345
  *
26175
26346
  * **This is an INPUT field, so it does not reach the addon until the
@@ -29532,8 +29703,8 @@ var VehicleSchema = object({
29532
29703
  id: string(),
29533
29704
  name: string(),
29534
29705
  sampleCount: number().int().nonnegative(),
29535
- coverMediaKey: string().optional(),
29536
- /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaKey`. */
29706
+ coverMediaId: number().int().optional(),
29707
+ /** Inline base64 of the cover sample's plate crop, resolved from `coverMediaId`. */
29537
29708
  coverBase64: string().optional()
29538
29709
  });
29539
29710
  var VehicleSampleInfoSchema = object({
@@ -29566,7 +29737,7 @@ var PlateInfoSchema = object({
29566
29737
  /** keyFrame parity: the plate bbox (pixel space) on the native key frame. */
29567
29738
  plateBbox: BoundingBoxSchema.optional(),
29568
29739
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
29569
- keyFrameMediaKey: string().optional(),
29740
+ keyFrameMediaId: number().int().optional(),
29570
29741
  base64: string().optional(),
29571
29742
  /**
29572
29743
  * Same crop as a data-plane URL, always present when the plate has a stored
@@ -29587,11 +29758,14 @@ var PlateInfoSchema = object({
29587
29758
  * `data:image/jpeg;base64,…` from a row whose `key` sat right beside it, in a
29588
29759
  * dialog already rendering its key FRAME from the `event-media` plane.
29589
29760
  *
29590
- * `url` is `/addon/<addonId>/event-media/<encoded key>`. The plane resolves a
29591
- * media key directly, so this needed no new plane and no new access decision.
29761
+ * `url` is `/addon/<addonId>/event-media/m/<mediaId>` (D482). The plane
29762
+ * resolves a media row by its own id, so this needed no new plane and no new
29763
+ * access decision.
29592
29764
  */
29593
29765
  var MediaFileLiteSchema = object({
29594
- key: string(),
29766
+ /** The media row's own id — the same address `MediaFileRef.mediaId` carries
29767
+ * (D482). It was the row's composite key, which embedded the owner. */
29768
+ mediaId: number().int(),
29595
29769
  kind: string(),
29596
29770
  url: string(),
29597
29771
  sizeBytes: number(),
@@ -29650,7 +29824,7 @@ method(object({
29650
29824
  }), method(object({
29651
29825
  /** Inline {@link VehicleSchema.coverBase64} on every row. Default
29652
29826
  * `false` — the vehicle twin of `faceGallery.listIdentities`'s
29653
- * option; `coverMediaKey` + the `event-media` plane carry the picture.
29827
+ * option; `coverMediaId` + the `event-media` plane carry the picture.
29654
29828
  * INPUT field: stripped by the hub router until the train ships, which
29655
29829
  * resolves to `false` and is exactly the intended default. */
29656
29830
  includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly()), method(object({ name: string().min(1) }), VehicleSchema, {
@@ -31219,7 +31393,14 @@ var SceneReferenceSchema = object({
31219
31393
  modelId: string(),
31220
31394
  condition: SceneConditionSchema,
31221
31395
  capturedAt: number(),
31222
- thumbnailMediaId: string().optional(),
31396
+ /**
31397
+ * The reference thumbnail's media ROW id (D482).
31398
+ *
31399
+ * The name already said `mediaId` while the value was the row's composite
31400
+ * key — a leftover that read as done and was not. It is the row's own id
31401
+ * now, addressed at `/addon/<addonId>/event-media/m/<id>`.
31402
+ */
31403
+ thumbnailMediaId: number().int().optional(),
31223
31404
  /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
31224
31405
  * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
31225
31406
  * normalized rect frame a different piece of world, and the scene would
@@ -32310,7 +32491,29 @@ var LoggingSettingsPatchSchema = object({
32310
32491
  * disarmed the channels it did not mention would make the Levels page and
32311
32492
  * the Diagnostics page fight over the same value.
32312
32493
  */
32313
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32494
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32495
+ /**
32496
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32497
+ * retention actually deleted.
32498
+ *
32499
+ * It lives HERE, on the logging document, and not on the analytics addon's
32500
+ * settings form, on the operator's instruction: every other log-ish window in
32501
+ * this system is configured through this one document, and a retention audit
32502
+ * configured somewhere else is a second place to look when the question is
32503
+ * "what happened to my data".
32504
+ *
32505
+ * That placement has a cost worth stating: this document ships in the
32506
+ * framework closure, so this knob needs a published `@camstack/server` while
32507
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32508
+ *
32509
+ * `retention-model.ts` argued this one must NOT follow a device window,
32510
+ * because the audit trail is the history of the SWEEP and not of the camera.
32511
+ * That argument stands and is untouched — what changes is that 30 days stops
32512
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32513
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32514
+ * state in which the next 9.5 GiB leak cannot be explained.
32515
+ */
32516
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32314
32517
  });
32315
32518
  /**
32316
32519
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32383,6 +32586,14 @@ var LoggingSettingsStateSchema = object({
32383
32586
  channels: array(LogChannelDescriptorSchema).readonly(),
32384
32587
  /** The channels ARMED right now, each with its deadline. */
32385
32588
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32589
+ /**
32590
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32591
+ *
32592
+ * Reported rather than left to the caller's memory of what it wrote: this is
32593
+ * the value the analytics sweep will actually use, and an operator asking how
32594
+ * long their audit trail lives should not have to infer it from a default.
32595
+ */
32596
+ opsLogRetentionDays: number().int().min(0),
32386
32597
  persisted: boolean()
32387
32598
  });
32388
32599
  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(), {
@@ -33203,7 +33414,7 @@ var StationaryObjectSchema = object({
33203
33414
  /** Enrichment label carried from the source track (identity / plate). */
33204
33415
  label: string().optional(),
33205
33416
  /** Native-resolution key-frame media key for the parked object's best image. */
33206
- keyFrameMediaKey: string().optional()
33417
+ keyFrameMediaId: number().int().optional()
33207
33418
  });
33208
33419
  var CameraOccupancySnapshotSchema = object({
33209
33420
  /** Frame timestamp of the inference result that produced this snapshot. */
@@ -35941,6 +36152,12 @@ Object.freeze({
35941
36152
  addonId: null,
35942
36153
  access: "create"
35943
36154
  },
36155
+ "dataStoreProvider.upsert": {
36156
+ capName: "data-store-provider",
36157
+ capScope: "system",
36158
+ addonId: null,
36159
+ access: "create"
36160
+ },
35944
36161
  "dayNight.getOptions": {
35945
36162
  capName: "day-night",
35946
36163
  capScope: "device",
@@ -38377,6 +38594,12 @@ Object.freeze({
38377
38594
  addonId: null,
38378
38595
  access: "view"
38379
38596
  },
38597
+ "pipelineAnalytics.listRecentSummaries": {
38598
+ capName: "pipeline-analytics",
38599
+ capScope: "device",
38600
+ addonId: null,
38601
+ access: "view"
38602
+ },
38380
38603
  "pipelineAnalytics.listRecentTracks": {
38381
38604
  capName: "pipeline-analytics",
38382
38605
  capScope: "device",
@@ -39805,6 +40028,12 @@ Object.freeze({
39805
40028
  addonId: null,
39806
40029
  access: "create"
39807
40030
  },
40031
+ "settingsStore.upsert": {
40032
+ capName: "settings-store",
40033
+ capScope: "system",
40034
+ addonId: null,
40035
+ access: "create"
40036
+ },
39808
40037
  "smtpProvider.getStatus": {
39809
40038
  capName: "smtp-provider",
39810
40039
  capScope: "system",
@@ -42198,6 +42427,11 @@ Object.freeze({
42198
42427
  form: "single",
42199
42428
  optional: true
42200
42429
  }],
42430
+ "pipelineAnalytics.listRecentSummaries": [{
42431
+ name: "deviceIds",
42432
+ form: "array",
42433
+ optional: false
42434
+ }],
42201
42435
  "pipelineAnalytics.listRecentTracks": [{
42202
42436
  name: "deviceIds",
42203
42437
  form: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.100",
3
+ "version": "1.2.102",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",