@camstack/addon-matter-broker 0.2.99 → 0.2.100

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
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
5360
5360
  var ZodFirstPartyTypeKind;
5361
5361
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5362
5362
  //#endregion
5363
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5363
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5364
5364
  /**
5365
5365
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5366
5366
  * window to float samples (D455).
@@ -7389,7 +7389,23 @@ var EncodeProfileSchema = object({
7389
7389
  "zerolatency",
7390
7390
  "film",
7391
7391
  "animation"
7392
- ]).optional()
7392
+ ]).optional(),
7393
+ /**
7394
+ * ONE slice per access unit.
7395
+ *
7396
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7397
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7398
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7399
+ * frame-end per frame: the first pictures render and the video then freezes
7400
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7401
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7402
+ *
7403
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7404
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7405
+ * consumers meaning the same thing spelled differently would stop sharing one
7406
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7407
+ */
7408
+ singleSlicePerFrame: boolean().optional()
7393
7409
  }),
7394
7410
  audio: union([literal("passthrough"), object({
7395
7411
  codec: _enum([
@@ -7439,7 +7455,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7439
7455
  audio: "passthrough"
7440
7456
  };
7441
7457
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7442
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7458
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7443
7459
  /**
7444
7460
  * Deep wiring healthcheck — snapshot of active reachability probes across
7445
7461
  * every declared capability + widget of every installed plugin, on every
@@ -20210,13 +20226,109 @@ var SummariesQueryInput = object({
20210
20226
  deviceIds: array(number()).min(1),
20211
20227
  since: number().optional(),
20212
20228
  until: number().optional(),
20213
- limit: number().int().min(1).max(200).default(50)
20229
+ limit: number().int().min(1).max(200).default(50),
20230
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20231
+ * meaning of "dog" on every summary surface. */
20232
+ classes: array(string$2().min(1).max(60)).max(40).optional()
20214
20233
  });
20215
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20216
20234
  var SummaryDetailSchema = object({
20217
20235
  summary: SummarySchema,
20218
- /** Member track ids, in absorption order. */
20219
- trackIds: array(string$2()).readonly()
20236
+ /** Members in absorption order, oldest join first. */
20237
+ members: array(object({
20238
+ trackId: string$2(),
20239
+ /**
20240
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20241
+ * and the track no longer exists to fill it.
20242
+ *
20243
+ * The join, not the latest opinion: class voting can re-decide a track's
20244
+ * class afterwards, and a group's composition is the history of who came
20245
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20246
+ * dog" — rather than being handed a second, denormalised tally that would
20247
+ * drift from the members it claims to describe.
20248
+ */
20249
+ className: string$2().nullable(),
20250
+ /** `primary` is the one member that carries the group's identity. */
20251
+ role: _enum([
20252
+ "primary",
20253
+ "sibling",
20254
+ "child"
20255
+ ]).nullable(),
20256
+ joinedAt: number(),
20257
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20258
+ * at read time. Absent when nothing resolved, never an empty string. */
20259
+ label: string$2().optional(),
20260
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20261
+ * recognised nobody, and absent for a member whose track has been pruned —
20262
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20263
+ subLabel: string$2().optional()
20264
+ })).readonly()
20265
+ });
20266
+ /**
20267
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20268
+ *
20269
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20270
+ * we extend when we notice we need more". Enough to draw the card ("two people
20271
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20272
+ * are on {@link getSummary}: shipping every member of every group so a client
20273
+ * can count them turns a page of two hundred groups into a thousand records to
20274
+ * draw two hundred badges.
20275
+ */
20276
+ var SummaryListItemSchema = object({
20277
+ summary: SummarySchema,
20278
+ /** Class counts, most numerous first; `className: null` is a member whose
20279
+ * class never resolved, counted so the counts add up to `memberCount`. */
20280
+ classes: array(object({
20281
+ className: string$2().nullable(),
20282
+ count: number().int().positive()
20283
+ })).readonly()
20284
+ });
20285
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20286
+ /**
20287
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20288
+ *
20289
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20290
+ * summaries feed that could only answer "the last N for these cameras"
20291
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20292
+ * else. Two feeds with different ordering contracts would be two ideas of what
20293
+ * "newest" means, on one screen.
20294
+ */
20295
+ var RecentSummariesQueryInput = object({
20296
+ /** Devices to merge. An empty array yields an empty page. */
20297
+ deviceIds: array(number()),
20298
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20299
+ since: number().optional(),
20300
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20301
+ until: number().optional(),
20302
+ limit: number().int().min(1).max(500).default(100),
20303
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20304
+ cursor: string$2().optional(),
20305
+ /**
20306
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20307
+ * deliberately the same name: the events filter tree emits one list of ticked
20308
+ * taxonomy nodes, and a summaries feed that called it something else would
20309
+ * make the operator's one filter component produce two shapes.
20310
+ *
20311
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20312
+ * me the arrivals with a dog" has to return the group of four people who had
20313
+ * one with them; a filter on the group's own fields could only ever answer
20314
+ * about its primary.
20315
+ *
20316
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20317
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20318
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20319
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20320
+ * that read only the class would answer "animal" and never "dog".
20321
+ *
20322
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20323
+ */
20324
+ classes: array(string$2().min(1).max(60)).max(40).optional()
20325
+ });
20326
+ var RecentSummariesPageSchema = object({
20327
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20328
+ * {@link listSummaries} — one list shape, so a card renders the same
20329
+ * whichever feed drew it. */
20330
+ summaries: array(SummaryListItemSchema).readonly(),
20331
+ nextCursor: string$2().nullable()
20220
20332
  });
20221
20333
  var RecentTracksPageSchema = object({
20222
20334
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20630,7 +20742,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20630
20742
  classes: array(string$2()).optional(),
20631
20743
  /** See {@link ExcludeSourcesDoc}. */
20632
20744
  excludeSources: array(TrackSourceSchema).optional()
20633
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string$2() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20745
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string$2() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20634
20746
  kind: "mutation",
20635
20747
  auth: "admin"
20636
20748
  }), 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({
@@ -32400,7 +32512,29 @@ var LoggingSettingsPatchSchema = object({
32400
32512
  * disarmed the channels it did not mention would make the Levels page and
32401
32513
  * the Diagnostics page fight over the same value.
32402
32514
  */
32403
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32515
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32516
+ /**
32517
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32518
+ * retention actually deleted.
32519
+ *
32520
+ * It lives HERE, on the logging document, and not on the analytics addon's
32521
+ * settings form, on the operator's instruction: every other log-ish window in
32522
+ * this system is configured through this one document, and a retention audit
32523
+ * configured somewhere else is a second place to look when the question is
32524
+ * "what happened to my data".
32525
+ *
32526
+ * That placement has a cost worth stating: this document ships in the
32527
+ * framework closure, so this knob needs a published `@camstack/server` while
32528
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32529
+ *
32530
+ * `retention-model.ts` argued this one must NOT follow a device window,
32531
+ * because the audit trail is the history of the SWEEP and not of the camera.
32532
+ * That argument stands and is untouched — what changes is that 30 days stops
32533
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32534
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32535
+ * state in which the next 9.5 GiB leak cannot be explained.
32536
+ */
32537
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32404
32538
  });
32405
32539
  /**
32406
32540
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32473,6 +32607,14 @@ var LoggingSettingsStateSchema = object({
32473
32607
  channels: array(LogChannelDescriptorSchema).readonly(),
32474
32608
  /** The channels ARMED right now, each with its deadline. */
32475
32609
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32610
+ /**
32611
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32612
+ *
32613
+ * Reported rather than left to the caller's memory of what it wrote: this is
32614
+ * the value the analytics sweep will actually use, and an operator asking how
32615
+ * long their audit trail lives should not have to infer it from a default.
32616
+ */
32617
+ opsLogRetentionDays: number().int().min(0),
32476
32618
  persisted: boolean()
32477
32619
  });
32478
32620
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string$2(), unknown()), _null(), {
@@ -38473,6 +38615,12 @@ Object.freeze({
38473
38615
  addonId: null,
38474
38616
  access: "view"
38475
38617
  },
38618
+ "pipelineAnalytics.listRecentSummaries": {
38619
+ capName: "pipeline-analytics",
38620
+ capScope: "device",
38621
+ addonId: null,
38622
+ access: "view"
38623
+ },
38476
38624
  "pipelineAnalytics.listRecentTracks": {
38477
38625
  capName: "pipeline-analytics",
38478
38626
  capScope: "device",
@@ -42300,6 +42448,11 @@ Object.freeze({
42300
42448
  form: "single",
42301
42449
  optional: true
42302
42450
  }],
42451
+ "pipelineAnalytics.listRecentSummaries": [{
42452
+ name: "deviceIds",
42453
+ form: "array",
42454
+ optional: false
42455
+ }],
42303
42456
  "pipelineAnalytics.listRecentTracks": [{
42304
42457
  name: "deviceIds",
42305
42458
  form: "array",
package/dist/addon.mjs CHANGED
@@ -5358,7 +5358,7 @@ var ZodIssueCode = {
5358
5358
  var ZodFirstPartyTypeKind;
5359
5359
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5360
5360
  //#endregion
5361
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5361
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5362
5362
  /**
5363
5363
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5364
5364
  * window to float samples (D455).
@@ -7387,7 +7387,23 @@ var EncodeProfileSchema = object({
7387
7387
  "zerolatency",
7388
7388
  "film",
7389
7389
  "animation"
7390
- ]).optional()
7390
+ ]).optional(),
7391
+ /**
7392
+ * ONE slice per access unit.
7393
+ *
7394
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7395
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7396
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7397
+ * frame-end per frame: the first pictures render and the video then freezes
7398
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7399
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7400
+ *
7401
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7402
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7403
+ * consumers meaning the same thing spelled differently would stop sharing one
7404
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7405
+ */
7406
+ singleSlicePerFrame: boolean().optional()
7391
7407
  }),
7392
7408
  audio: union([literal("passthrough"), object({
7393
7409
  codec: _enum([
@@ -7437,7 +7453,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7437
7453
  audio: "passthrough"
7438
7454
  };
7439
7455
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7440
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7456
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7441
7457
  /**
7442
7458
  * Deep wiring healthcheck — snapshot of active reachability probes across
7443
7459
  * every declared capability + widget of every installed plugin, on every
@@ -20208,13 +20224,109 @@ var SummariesQueryInput = object({
20208
20224
  deviceIds: array(number()).min(1),
20209
20225
  since: number().optional(),
20210
20226
  until: number().optional(),
20211
- limit: number().int().min(1).max(200).default(50)
20227
+ limit: number().int().min(1).max(200).default(50),
20228
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20229
+ * meaning of "dog" on every summary surface. */
20230
+ classes: array(string$2().min(1).max(60)).max(40).optional()
20212
20231
  });
20213
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20214
20232
  var SummaryDetailSchema = object({
20215
20233
  summary: SummarySchema,
20216
- /** Member track ids, in absorption order. */
20217
- trackIds: array(string$2()).readonly()
20234
+ /** Members in absorption order, oldest join first. */
20235
+ members: array(object({
20236
+ trackId: string$2(),
20237
+ /**
20238
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20239
+ * and the track no longer exists to fill it.
20240
+ *
20241
+ * The join, not the latest opinion: class voting can re-decide a track's
20242
+ * class afterwards, and a group's composition is the history of who came
20243
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20244
+ * dog" — rather than being handed a second, denormalised tally that would
20245
+ * drift from the members it claims to describe.
20246
+ */
20247
+ className: string$2().nullable(),
20248
+ /** `primary` is the one member that carries the group's identity. */
20249
+ role: _enum([
20250
+ "primary",
20251
+ "sibling",
20252
+ "child"
20253
+ ]).nullable(),
20254
+ joinedAt: number(),
20255
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20256
+ * at read time. Absent when nothing resolved, never an empty string. */
20257
+ label: string$2().optional(),
20258
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20259
+ * recognised nobody, and absent for a member whose track has been pruned —
20260
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20261
+ subLabel: string$2().optional()
20262
+ })).readonly()
20263
+ });
20264
+ /**
20265
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20266
+ *
20267
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20268
+ * we extend when we notice we need more". Enough to draw the card ("two people
20269
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20270
+ * are on {@link getSummary}: shipping every member of every group so a client
20271
+ * can count them turns a page of two hundred groups into a thousand records to
20272
+ * draw two hundred badges.
20273
+ */
20274
+ var SummaryListItemSchema = object({
20275
+ summary: SummarySchema,
20276
+ /** Class counts, most numerous first; `className: null` is a member whose
20277
+ * class never resolved, counted so the counts add up to `memberCount`. */
20278
+ classes: array(object({
20279
+ className: string$2().nullable(),
20280
+ count: number().int().positive()
20281
+ })).readonly()
20282
+ });
20283
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20284
+ /**
20285
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20286
+ *
20287
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20288
+ * summaries feed that could only answer "the last N for these cameras"
20289
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20290
+ * else. Two feeds with different ordering contracts would be two ideas of what
20291
+ * "newest" means, on one screen.
20292
+ */
20293
+ var RecentSummariesQueryInput = object({
20294
+ /** Devices to merge. An empty array yields an empty page. */
20295
+ deviceIds: array(number()),
20296
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20297
+ since: number().optional(),
20298
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20299
+ until: number().optional(),
20300
+ limit: number().int().min(1).max(500).default(100),
20301
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20302
+ cursor: string$2().optional(),
20303
+ /**
20304
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20305
+ * deliberately the same name: the events filter tree emits one list of ticked
20306
+ * taxonomy nodes, and a summaries feed that called it something else would
20307
+ * make the operator's one filter component produce two shapes.
20308
+ *
20309
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20310
+ * me the arrivals with a dog" has to return the group of four people who had
20311
+ * one with them; a filter on the group's own fields could only ever answer
20312
+ * about its primary.
20313
+ *
20314
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20315
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20316
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20317
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20318
+ * that read only the class would answer "animal" and never "dog".
20319
+ *
20320
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20321
+ */
20322
+ classes: array(string$2().min(1).max(60)).max(40).optional()
20323
+ });
20324
+ var RecentSummariesPageSchema = object({
20325
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20326
+ * {@link listSummaries} — one list shape, so a card renders the same
20327
+ * whichever feed drew it. */
20328
+ summaries: array(SummaryListItemSchema).readonly(),
20329
+ nextCursor: string$2().nullable()
20218
20330
  });
20219
20331
  var RecentTracksPageSchema = object({
20220
20332
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20628,7 +20740,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20628
20740
  classes: array(string$2()).optional(),
20629
20741
  /** See {@link ExcludeSourcesDoc}. */
20630
20742
  excludeSources: array(TrackSourceSchema).optional()
20631
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string$2() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20743
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string$2() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20632
20744
  kind: "mutation",
20633
20745
  auth: "admin"
20634
20746
  }), 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({
@@ -32398,7 +32510,29 @@ var LoggingSettingsPatchSchema = object({
32398
32510
  * disarmed the channels it did not mention would make the Levels page and
32399
32511
  * the Diagnostics page fight over the same value.
32400
32512
  */
32401
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32513
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32514
+ /**
32515
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32516
+ * retention actually deleted.
32517
+ *
32518
+ * It lives HERE, on the logging document, and not on the analytics addon's
32519
+ * settings form, on the operator's instruction: every other log-ish window in
32520
+ * this system is configured through this one document, and a retention audit
32521
+ * configured somewhere else is a second place to look when the question is
32522
+ * "what happened to my data".
32523
+ *
32524
+ * That placement has a cost worth stating: this document ships in the
32525
+ * framework closure, so this knob needs a published `@camstack/server` while
32526
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32527
+ *
32528
+ * `retention-model.ts` argued this one must NOT follow a device window,
32529
+ * because the audit trail is the history of the SWEEP and not of the camera.
32530
+ * That argument stands and is untouched — what changes is that 30 days stops
32531
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32532
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32533
+ * state in which the next 9.5 GiB leak cannot be explained.
32534
+ */
32535
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32402
32536
  });
32403
32537
  /**
32404
32538
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32471,6 +32605,14 @@ var LoggingSettingsStateSchema = object({
32471
32605
  channels: array(LogChannelDescriptorSchema).readonly(),
32472
32606
  /** The channels ARMED right now, each with its deadline. */
32473
32607
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32608
+ /**
32609
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32610
+ *
32611
+ * Reported rather than left to the caller's memory of what it wrote: this is
32612
+ * the value the analytics sweep will actually use, and an operator asking how
32613
+ * long their audit trail lives should not have to infer it from a default.
32614
+ */
32615
+ opsLogRetentionDays: number().int().min(0),
32474
32616
  persisted: boolean()
32475
32617
  });
32476
32618
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string$2(), unknown()), _null(), {
@@ -38471,6 +38613,12 @@ Object.freeze({
38471
38613
  addonId: null,
38472
38614
  access: "view"
38473
38615
  },
38616
+ "pipelineAnalytics.listRecentSummaries": {
38617
+ capName: "pipeline-analytics",
38618
+ capScope: "device",
38619
+ addonId: null,
38620
+ access: "view"
38621
+ },
38474
38622
  "pipelineAnalytics.listRecentTracks": {
38475
38623
  capName: "pipeline-analytics",
38476
38624
  capScope: "device",
@@ -42298,6 +42446,11 @@ Object.freeze({
42298
42446
  form: "single",
42299
42447
  optional: true
42300
42448
  }],
42449
+ "pipelineAnalytics.listRecentSummaries": [{
42450
+ name: "deviceIds",
42451
+ form: "array",
42452
+ optional: false
42453
+ }],
42301
42454
  "pipelineAnalytics.listRecentTracks": [{
42302
42455
  name: "deviceIds",
42303
42456
  form: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.99",
3
+ "version": "0.2.100",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",