@camstack/addon-mqtt-broker 1.2.100 → 1.2.101

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.
@@ -5391,7 +5391,7 @@ var ZodIssueCode = {
5391
5391
  var ZodFirstPartyTypeKind;
5392
5392
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5393
5393
  //#endregion
5394
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5394
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5395
5395
  /**
5396
5396
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5397
5397
  * window to float samples (D455).
@@ -7404,7 +7404,23 @@ var EncodeProfileSchema = object({
7404
7404
  "zerolatency",
7405
7405
  "film",
7406
7406
  "animation"
7407
- ]).optional()
7407
+ ]).optional(),
7408
+ /**
7409
+ * ONE slice per access unit.
7410
+ *
7411
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7412
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7413
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7414
+ * frame-end per frame: the first pictures render and the video then freezes
7415
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7416
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7417
+ *
7418
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7419
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7420
+ * consumers meaning the same thing spelled differently would stop sharing one
7421
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7422
+ */
7423
+ singleSlicePerFrame: boolean().optional()
7408
7424
  }),
7409
7425
  audio: union([literal("passthrough"), object({
7410
7426
  codec: _enum([
@@ -7454,7 +7470,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7454
7470
  audio: "passthrough"
7455
7471
  };
7456
7472
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7457
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7473
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7458
7474
  /**
7459
7475
  * Deep wiring healthcheck — snapshot of active reachability probes across
7460
7476
  * every declared capability + widget of every installed plugin, on every
@@ -19859,13 +19875,109 @@ var SummariesQueryInput = object({
19859
19875
  deviceIds: array(number()).min(1),
19860
19876
  since: number().optional(),
19861
19877
  until: number().optional(),
19862
- limit: number().int().min(1).max(200).default(50)
19878
+ limit: number().int().min(1).max(200).default(50),
19879
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
19880
+ * meaning of "dog" on every summary surface. */
19881
+ classes: array(string().min(1).max(60)).max(40).optional()
19863
19882
  });
19864
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19865
19883
  var SummaryDetailSchema = object({
19866
19884
  summary: SummarySchema,
19867
- /** Member track ids, in absorption order. */
19868
- trackIds: array(string()).readonly()
19885
+ /** Members in absorption order, oldest join first. */
19886
+ members: array(object({
19887
+ trackId: string(),
19888
+ /**
19889
+ * The track's class at the time it JOINED, or `null` when it was unresolved
19890
+ * and the track no longer exists to fill it.
19891
+ *
19892
+ * The join, not the latest opinion: class voting can re-decide a track's
19893
+ * class afterwards, and a group's composition is the history of who came
19894
+ * together. A consumer counts these to badge a thumbnail — "two people and a
19895
+ * dog" — rather than being handed a second, denormalised tally that would
19896
+ * drift from the members it claims to describe.
19897
+ */
19898
+ className: string().nullable(),
19899
+ /** `primary` is the one member that carries the group's identity. */
19900
+ role: _enum([
19901
+ "primary",
19902
+ "sibling",
19903
+ "child"
19904
+ ]).nullable(),
19905
+ joinedAt: number(),
19906
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
19907
+ * at read time. Absent when nothing resolved, never an empty string. */
19908
+ label: string().optional(),
19909
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
19910
+ * recognised nobody, and absent for a member whose track has been pruned —
19911
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
19912
+ subLabel: string().optional()
19913
+ })).readonly()
19914
+ });
19915
+ /**
19916
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
19917
+ *
19918
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
19919
+ * we extend when we notice we need more". Enough to draw the card ("two people
19920
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
19921
+ * are on {@link getSummary}: shipping every member of every group so a client
19922
+ * can count them turns a page of two hundred groups into a thousand records to
19923
+ * draw two hundred badges.
19924
+ */
19925
+ var SummaryListItemSchema = object({
19926
+ summary: SummarySchema,
19927
+ /** Class counts, most numerous first; `className: null` is a member whose
19928
+ * class never resolved, counted so the counts add up to `memberCount`. */
19929
+ classes: array(object({
19930
+ className: string().nullable(),
19931
+ count: number().int().positive()
19932
+ })).readonly()
19933
+ });
19934
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
19935
+ /**
19936
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
19937
+ *
19938
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
19939
+ * summaries feed that could only answer "the last N for these cameras"
19940
+ * (`listSummaries`) would make groups available in the timeline and nowhere
19941
+ * else. Two feeds with different ordering contracts would be two ideas of what
19942
+ * "newest" means, on one screen.
19943
+ */
19944
+ var RecentSummariesQueryInput = object({
19945
+ /** Devices to merge. An empty array yields an empty page. */
19946
+ deviceIds: array(number()),
19947
+ /** Window lower bound on `lastActiveAt` (inclusive). */
19948
+ since: number().optional(),
19949
+ /** Window upper bound on `lastActiveAt` (inclusive). */
19950
+ until: number().optional(),
19951
+ limit: number().int().min(1).max(500).default(100),
19952
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
19953
+ cursor: string().optional(),
19954
+ /**
19955
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
19956
+ * deliberately the same name: the events filter tree emits one list of ticked
19957
+ * taxonomy nodes, and a summaries feed that called it something else would
19958
+ * make the operator's one filter component produce two shapes.
19959
+ *
19960
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
19961
+ * me the arrivals with a dog" has to return the group of four people who had
19962
+ * one with them; a filter on the group's own fields could only ever answer
19963
+ * about its primary.
19964
+ *
19965
+ * Matched against all THREE tiers of a member — the class (`animal`), the
19966
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
19967
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
19968
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
19969
+ * that read only the class would answer "animal" and never "dog".
19970
+ *
19971
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
19972
+ */
19973
+ classes: array(string().min(1).max(60)).max(40).optional()
19974
+ });
19975
+ var RecentSummariesPageSchema = object({
19976
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
19977
+ * {@link listSummaries} — one list shape, so a card renders the same
19978
+ * whichever feed drew it. */
19979
+ summaries: array(SummaryListItemSchema).readonly(),
19980
+ nextCursor: string().nullable()
19869
19981
  });
19870
19982
  var RecentTracksPageSchema = object({
19871
19983
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20279,7 +20391,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20279
20391
  classes: array(string()).optional(),
20280
20392
  /** See {@link ExcludeSourcesDoc}. */
20281
20393
  excludeSources: array(TrackSourceSchema).optional()
20282
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20394
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20283
20395
  kind: "mutation",
20284
20396
  auth: "admin"
20285
20397
  }), 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({
@@ -29885,7 +29997,29 @@ var LoggingSettingsPatchSchema = object({
29885
29997
  * disarmed the channels it did not mention would make the Levels page and
29886
29998
  * the Diagnostics page fight over the same value.
29887
29999
  */
29888
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30000
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30001
+ /**
30002
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30003
+ * retention actually deleted.
30004
+ *
30005
+ * It lives HERE, on the logging document, and not on the analytics addon's
30006
+ * settings form, on the operator's instruction: every other log-ish window in
30007
+ * this system is configured through this one document, and a retention audit
30008
+ * configured somewhere else is a second place to look when the question is
30009
+ * "what happened to my data".
30010
+ *
30011
+ * That placement has a cost worth stating: this document ships in the
30012
+ * framework closure, so this knob needs a published `@camstack/server` while
30013
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30014
+ *
30015
+ * `retention-model.ts` argued this one must NOT follow a device window,
30016
+ * because the audit trail is the history of the SWEEP and not of the camera.
30017
+ * That argument stands and is untouched — what changes is that 30 days stops
30018
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30019
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30020
+ * state in which the next 9.5 GiB leak cannot be explained.
30021
+ */
30022
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29889
30023
  });
29890
30024
  /**
29891
30025
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29958,6 +30092,14 @@ var LoggingSettingsStateSchema = object({
29958
30092
  channels: array(LogChannelDescriptorSchema).readonly(),
29959
30093
  /** The channels ARMED right now, each with its deadline. */
29960
30094
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30095
+ /**
30096
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30097
+ *
30098
+ * Reported rather than left to the caller's memory of what it wrote: this is
30099
+ * the value the analytics sweep will actually use, and an operator asking how
30100
+ * long their audit trail lives should not have to infer it from a default.
30101
+ */
30102
+ opsLogRetentionDays: number().int().min(0),
29961
30103
  persisted: boolean()
29962
30104
  });
29963
30105
  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(), {
@@ -34117,6 +34259,12 @@ Object.freeze({
34117
34259
  addonId: null,
34118
34260
  access: "view"
34119
34261
  },
34262
+ "pipelineAnalytics.listRecentSummaries": {
34263
+ capName: "pipeline-analytics",
34264
+ capScope: "device",
34265
+ addonId: null,
34266
+ access: "view"
34267
+ },
34120
34268
  "pipelineAnalytics.listRecentTracks": {
34121
34269
  capName: "pipeline-analytics",
34122
34270
  capScope: "device",
@@ -37944,6 +38092,11 @@ Object.freeze({
37944
38092
  form: "single",
37945
38093
  optional: true
37946
38094
  }],
38095
+ "pipelineAnalytics.listRecentSummaries": [{
38096
+ name: "deviceIds",
38097
+ form: "array",
38098
+ optional: false
38099
+ }],
37947
38100
  "pipelineAnalytics.listRecentTracks": [{
37948
38101
  name: "deviceIds",
37949
38102
  form: "array",
@@ -5386,7 +5386,7 @@ var ZodIssueCode = {
5386
5386
  var ZodFirstPartyTypeKind;
5387
5387
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5388
5388
  //#endregion
5389
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5389
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5390
5390
  /**
5391
5391
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5392
5392
  * window to float samples (D455).
@@ -7399,7 +7399,23 @@ var EncodeProfileSchema = object({
7399
7399
  "zerolatency",
7400
7400
  "film",
7401
7401
  "animation"
7402
- ]).optional()
7402
+ ]).optional(),
7403
+ /**
7404
+ * ONE slice per access unit.
7405
+ *
7406
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7407
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7408
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7409
+ * frame-end per frame: the first pictures render and the video then freezes
7410
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7411
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7412
+ *
7413
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7414
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7415
+ * consumers meaning the same thing spelled differently would stop sharing one
7416
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7417
+ */
7418
+ singleSlicePerFrame: boolean().optional()
7403
7419
  }),
7404
7420
  audio: union([literal("passthrough"), object({
7405
7421
  codec: _enum([
@@ -7449,7 +7465,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7449
7465
  audio: "passthrough"
7450
7466
  };
7451
7467
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7452
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7468
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7453
7469
  /**
7454
7470
  * Deep wiring healthcheck — snapshot of active reachability probes across
7455
7471
  * every declared capability + widget of every installed plugin, on every
@@ -19854,13 +19870,109 @@ var SummariesQueryInput = object({
19854
19870
  deviceIds: array(number()).min(1),
19855
19871
  since: number().optional(),
19856
19872
  until: number().optional(),
19857
- limit: number().int().min(1).max(200).default(50)
19873
+ limit: number().int().min(1).max(200).default(50),
19874
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
19875
+ * meaning of "dog" on every summary surface. */
19876
+ classes: array(string().min(1).max(60)).max(40).optional()
19858
19877
  });
19859
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19860
19878
  var SummaryDetailSchema = object({
19861
19879
  summary: SummarySchema,
19862
- /** Member track ids, in absorption order. */
19863
- trackIds: array(string()).readonly()
19880
+ /** Members in absorption order, oldest join first. */
19881
+ members: array(object({
19882
+ trackId: string(),
19883
+ /**
19884
+ * The track's class at the time it JOINED, or `null` when it was unresolved
19885
+ * and the track no longer exists to fill it.
19886
+ *
19887
+ * The join, not the latest opinion: class voting can re-decide a track's
19888
+ * class afterwards, and a group's composition is the history of who came
19889
+ * together. A consumer counts these to badge a thumbnail — "two people and a
19890
+ * dog" — rather than being handed a second, denormalised tally that would
19891
+ * drift from the members it claims to describe.
19892
+ */
19893
+ className: string().nullable(),
19894
+ /** `primary` is the one member that carries the group's identity. */
19895
+ role: _enum([
19896
+ "primary",
19897
+ "sibling",
19898
+ "child"
19899
+ ]).nullable(),
19900
+ joinedAt: number(),
19901
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
19902
+ * at read time. Absent when nothing resolved, never an empty string. */
19903
+ label: string().optional(),
19904
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
19905
+ * recognised nobody, and absent for a member whose track has been pruned —
19906
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
19907
+ subLabel: string().optional()
19908
+ })).readonly()
19909
+ });
19910
+ /**
19911
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
19912
+ *
19913
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
19914
+ * we extend when we notice we need more". Enough to draw the card ("two people
19915
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
19916
+ * are on {@link getSummary}: shipping every member of every group so a client
19917
+ * can count them turns a page of two hundred groups into a thousand records to
19918
+ * draw two hundred badges.
19919
+ */
19920
+ var SummaryListItemSchema = object({
19921
+ summary: SummarySchema,
19922
+ /** Class counts, most numerous first; `className: null` is a member whose
19923
+ * class never resolved, counted so the counts add up to `memberCount`. */
19924
+ classes: array(object({
19925
+ className: string().nullable(),
19926
+ count: number().int().positive()
19927
+ })).readonly()
19928
+ });
19929
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
19930
+ /**
19931
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
19932
+ *
19933
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
19934
+ * summaries feed that could only answer "the last N for these cameras"
19935
+ * (`listSummaries`) would make groups available in the timeline and nowhere
19936
+ * else. Two feeds with different ordering contracts would be two ideas of what
19937
+ * "newest" means, on one screen.
19938
+ */
19939
+ var RecentSummariesQueryInput = object({
19940
+ /** Devices to merge. An empty array yields an empty page. */
19941
+ deviceIds: array(number()),
19942
+ /** Window lower bound on `lastActiveAt` (inclusive). */
19943
+ since: number().optional(),
19944
+ /** Window upper bound on `lastActiveAt` (inclusive). */
19945
+ until: number().optional(),
19946
+ limit: number().int().min(1).max(500).default(100),
19947
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
19948
+ cursor: string().optional(),
19949
+ /**
19950
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
19951
+ * deliberately the same name: the events filter tree emits one list of ticked
19952
+ * taxonomy nodes, and a summaries feed that called it something else would
19953
+ * make the operator's one filter component produce two shapes.
19954
+ *
19955
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
19956
+ * me the arrivals with a dog" has to return the group of four people who had
19957
+ * one with them; a filter on the group's own fields could only ever answer
19958
+ * about its primary.
19959
+ *
19960
+ * Matched against all THREE tiers of a member — the class (`animal`), the
19961
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
19962
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
19963
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
19964
+ * that read only the class would answer "animal" and never "dog".
19965
+ *
19966
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
19967
+ */
19968
+ classes: array(string().min(1).max(60)).max(40).optional()
19969
+ });
19970
+ var RecentSummariesPageSchema = object({
19971
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
19972
+ * {@link listSummaries} — one list shape, so a card renders the same
19973
+ * whichever feed drew it. */
19974
+ summaries: array(SummaryListItemSchema).readonly(),
19975
+ nextCursor: string().nullable()
19864
19976
  });
19865
19977
  var RecentTracksPageSchema = object({
19866
19978
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20274,7 +20386,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20274
20386
  classes: array(string()).optional(),
20275
20387
  /** See {@link ExcludeSourcesDoc}. */
20276
20388
  excludeSources: array(TrackSourceSchema).optional()
20277
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20389
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20278
20390
  kind: "mutation",
20279
20391
  auth: "admin"
20280
20392
  }), 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({
@@ -29880,7 +29992,29 @@ var LoggingSettingsPatchSchema = object({
29880
29992
  * disarmed the channels it did not mention would make the Levels page and
29881
29993
  * the Diagnostics page fight over the same value.
29882
29994
  */
29883
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
29995
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
29996
+ /**
29997
+ * How many days the analytics OPS LOG is kept — the audit trail of what
29998
+ * retention actually deleted.
29999
+ *
30000
+ * It lives HERE, on the logging document, and not on the analytics addon's
30001
+ * settings form, on the operator's instruction: every other log-ish window in
30002
+ * this system is configured through this one document, and a retention audit
30003
+ * configured somewhere else is a second place to look when the question is
30004
+ * "what happened to my data".
30005
+ *
30006
+ * That placement has a cost worth stating: this document ships in the
30007
+ * framework closure, so this knob needs a published `@camstack/server` while
30008
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30009
+ *
30010
+ * `retention-model.ts` argued this one must NOT follow a device window,
30011
+ * because the audit trail is the history of the SWEEP and not of the camera.
30012
+ * That argument stands and is untouched — what changes is that 30 days stops
30013
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30014
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30015
+ * state in which the next 9.5 GiB leak cannot be explained.
30016
+ */
30017
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29884
30018
  });
29885
30019
  /**
29886
30020
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29953,6 +30087,14 @@ var LoggingSettingsStateSchema = object({
29953
30087
  channels: array(LogChannelDescriptorSchema).readonly(),
29954
30088
  /** The channels ARMED right now, each with its deadline. */
29955
30089
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30090
+ /**
30091
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30092
+ *
30093
+ * Reported rather than left to the caller's memory of what it wrote: this is
30094
+ * the value the analytics sweep will actually use, and an operator asking how
30095
+ * long their audit trail lives should not have to infer it from a default.
30096
+ */
30097
+ opsLogRetentionDays: number().int().min(0),
29956
30098
  persisted: boolean()
29957
30099
  });
29958
30100
  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(), {
@@ -34112,6 +34254,12 @@ Object.freeze({
34112
34254
  addonId: null,
34113
34255
  access: "view"
34114
34256
  },
34257
+ "pipelineAnalytics.listRecentSummaries": {
34258
+ capName: "pipeline-analytics",
34259
+ capScope: "device",
34260
+ addonId: null,
34261
+ access: "view"
34262
+ },
34115
34263
  "pipelineAnalytics.listRecentTracks": {
34116
34264
  capName: "pipeline-analytics",
34117
34265
  capScope: "device",
@@ -37939,6 +38087,11 @@ Object.freeze({
37939
38087
  form: "single",
37940
38088
  optional: true
37941
38089
  }],
38090
+ "pipelineAnalytics.listRecentSummaries": [{
38091
+ name: "deviceIds",
38092
+ form: "array",
38093
+ optional: false
38094
+ }],
37942
38095
  "pipelineAnalytics.listRecentTracks": [{
37943
38096
  name: "deviceIds",
37944
38097
  form: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.100",
3
+ "version": "1.2.101",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",