@camstack/addon-decoder-nodeav 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.
package/dist/index.js CHANGED
@@ -5350,7 +5350,7 @@ var ZodIssueCode = {
5350
5350
  var ZodFirstPartyTypeKind;
5351
5351
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5352
5352
  //#endregion
5353
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5353
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5354
5354
  /**
5355
5355
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5356
5356
  * window to float samples (D455).
@@ -7375,7 +7375,23 @@ var EncodeProfileSchema = object({
7375
7375
  "zerolatency",
7376
7376
  "film",
7377
7377
  "animation"
7378
- ]).optional()
7378
+ ]).optional(),
7379
+ /**
7380
+ * ONE slice per access unit.
7381
+ *
7382
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7383
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7384
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7385
+ * frame-end per frame: the first pictures render and the video then freezes
7386
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7387
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7388
+ *
7389
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7390
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7391
+ * consumers meaning the same thing spelled differently would stop sharing one
7392
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7393
+ */
7394
+ singleSlicePerFrame: boolean().optional()
7379
7395
  }),
7380
7396
  audio: union([literal("passthrough"), object({
7381
7397
  codec: _enum([
@@ -7425,7 +7441,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7425
7441
  audio: "passthrough"
7426
7442
  };
7427
7443
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7428
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7444
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7429
7445
  /**
7430
7446
  * Deep wiring healthcheck — snapshot of active reachability probes across
7431
7447
  * every declared capability + widget of every installed plugin, on every
@@ -19892,13 +19908,109 @@ var SummariesQueryInput = object({
19892
19908
  deviceIds: array(number()).min(1),
19893
19909
  since: number().optional(),
19894
19910
  until: number().optional(),
19895
- limit: number().int().min(1).max(200).default(50)
19911
+ limit: number().int().min(1).max(200).default(50),
19912
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
19913
+ * meaning of "dog" on every summary surface. */
19914
+ classes: array(string().min(1).max(60)).max(40).optional()
19896
19915
  });
19897
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19898
19916
  var SummaryDetailSchema = object({
19899
19917
  summary: SummarySchema,
19900
- /** Member track ids, in absorption order. */
19901
- trackIds: array(string()).readonly()
19918
+ /** Members in absorption order, oldest join first. */
19919
+ members: array(object({
19920
+ trackId: string(),
19921
+ /**
19922
+ * The track's class at the time it JOINED, or `null` when it was unresolved
19923
+ * and the track no longer exists to fill it.
19924
+ *
19925
+ * The join, not the latest opinion: class voting can re-decide a track's
19926
+ * class afterwards, and a group's composition is the history of who came
19927
+ * together. A consumer counts these to badge a thumbnail — "two people and a
19928
+ * dog" — rather than being handed a second, denormalised tally that would
19929
+ * drift from the members it claims to describe.
19930
+ */
19931
+ className: string().nullable(),
19932
+ /** `primary` is the one member that carries the group's identity. */
19933
+ role: _enum([
19934
+ "primary",
19935
+ "sibling",
19936
+ "child"
19937
+ ]).nullable(),
19938
+ joinedAt: number(),
19939
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
19940
+ * at read time. Absent when nothing resolved, never an empty string. */
19941
+ label: string().optional(),
19942
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
19943
+ * recognised nobody, and absent for a member whose track has been pruned —
19944
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
19945
+ subLabel: string().optional()
19946
+ })).readonly()
19947
+ });
19948
+ /**
19949
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
19950
+ *
19951
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
19952
+ * we extend when we notice we need more". Enough to draw the card ("two people
19953
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
19954
+ * are on {@link getSummary}: shipping every member of every group so a client
19955
+ * can count them turns a page of two hundred groups into a thousand records to
19956
+ * draw two hundred badges.
19957
+ */
19958
+ var SummaryListItemSchema = object({
19959
+ summary: SummarySchema,
19960
+ /** Class counts, most numerous first; `className: null` is a member whose
19961
+ * class never resolved, counted so the counts add up to `memberCount`. */
19962
+ classes: array(object({
19963
+ className: string().nullable(),
19964
+ count: number().int().positive()
19965
+ })).readonly()
19966
+ });
19967
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
19968
+ /**
19969
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
19970
+ *
19971
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
19972
+ * summaries feed that could only answer "the last N for these cameras"
19973
+ * (`listSummaries`) would make groups available in the timeline and nowhere
19974
+ * else. Two feeds with different ordering contracts would be two ideas of what
19975
+ * "newest" means, on one screen.
19976
+ */
19977
+ var RecentSummariesQueryInput = object({
19978
+ /** Devices to merge. An empty array yields an empty page. */
19979
+ deviceIds: array(number()),
19980
+ /** Window lower bound on `lastActiveAt` (inclusive). */
19981
+ since: number().optional(),
19982
+ /** Window upper bound on `lastActiveAt` (inclusive). */
19983
+ until: number().optional(),
19984
+ limit: number().int().min(1).max(500).default(100),
19985
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
19986
+ cursor: string().optional(),
19987
+ /**
19988
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
19989
+ * deliberately the same name: the events filter tree emits one list of ticked
19990
+ * taxonomy nodes, and a summaries feed that called it something else would
19991
+ * make the operator's one filter component produce two shapes.
19992
+ *
19993
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
19994
+ * me the arrivals with a dog" has to return the group of four people who had
19995
+ * one with them; a filter on the group's own fields could only ever answer
19996
+ * about its primary.
19997
+ *
19998
+ * Matched against all THREE tiers of a member — the class (`animal`), the
19999
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20000
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20001
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20002
+ * that read only the class would answer "animal" and never "dog".
20003
+ *
20004
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20005
+ */
20006
+ classes: array(string().min(1).max(60)).max(40).optional()
20007
+ });
20008
+ var RecentSummariesPageSchema = object({
20009
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20010
+ * {@link listSummaries} — one list shape, so a card renders the same
20011
+ * whichever feed drew it. */
20012
+ summaries: array(SummaryListItemSchema).readonly(),
20013
+ nextCursor: string().nullable()
19902
20014
  });
19903
20015
  var RecentTracksPageSchema = object({
19904
20016
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20312,7 +20424,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20312
20424
  classes: array(string()).optional(),
20313
20425
  /** See {@link ExcludeSourcesDoc}. */
20314
20426
  excludeSources: array(TrackSourceSchema).optional()
20315
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20427
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20316
20428
  kind: "mutation",
20317
20429
  auth: "admin"
20318
20430
  }), 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({
@@ -29918,7 +30030,29 @@ var LoggingSettingsPatchSchema = object({
29918
30030
  * disarmed the channels it did not mention would make the Levels page and
29919
30031
  * the Diagnostics page fight over the same value.
29920
30032
  */
29921
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30033
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30034
+ /**
30035
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30036
+ * retention actually deleted.
30037
+ *
30038
+ * It lives HERE, on the logging document, and not on the analytics addon's
30039
+ * settings form, on the operator's instruction: every other log-ish window in
30040
+ * this system is configured through this one document, and a retention audit
30041
+ * configured somewhere else is a second place to look when the question is
30042
+ * "what happened to my data".
30043
+ *
30044
+ * That placement has a cost worth stating: this document ships in the
30045
+ * framework closure, so this knob needs a published `@camstack/server` while
30046
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30047
+ *
30048
+ * `retention-model.ts` argued this one must NOT follow a device window,
30049
+ * because the audit trail is the history of the SWEEP and not of the camera.
30050
+ * That argument stands and is untouched — what changes is that 30 days stops
30051
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30052
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30053
+ * state in which the next 9.5 GiB leak cannot be explained.
30054
+ */
30055
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29922
30056
  });
29923
30057
  /**
29924
30058
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29991,6 +30125,14 @@ var LoggingSettingsStateSchema = object({
29991
30125
  channels: array(LogChannelDescriptorSchema).readonly(),
29992
30126
  /** The channels ARMED right now, each with its deadline. */
29993
30127
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30128
+ /**
30129
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30130
+ *
30131
+ * Reported rather than left to the caller's memory of what it wrote: this is
30132
+ * the value the analytics sweep will actually use, and an operator asking how
30133
+ * long their audit trail lives should not have to infer it from a default.
30134
+ */
30135
+ opsLogRetentionDays: number().int().min(0),
29994
30136
  persisted: boolean()
29995
30137
  });
29996
30138
  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(), {
@@ -34150,6 +34292,12 @@ Object.freeze({
34150
34292
  addonId: null,
34151
34293
  access: "view"
34152
34294
  },
34295
+ "pipelineAnalytics.listRecentSummaries": {
34296
+ capName: "pipeline-analytics",
34297
+ capScope: "device",
34298
+ addonId: null,
34299
+ access: "view"
34300
+ },
34153
34301
  "pipelineAnalytics.listRecentTracks": {
34154
34302
  capName: "pipeline-analytics",
34155
34303
  capScope: "device",
@@ -37977,6 +38125,11 @@ Object.freeze({
37977
38125
  form: "single",
37978
38126
  optional: true
37979
38127
  }],
38128
+ "pipelineAnalytics.listRecentSummaries": [{
38129
+ name: "deviceIds",
38130
+ form: "array",
38131
+ optional: false
38132
+ }],
37980
38133
  "pipelineAnalytics.listRecentTracks": [{
37981
38134
  name: "deviceIds",
37982
38135
  form: "array",
package/dist/index.mjs CHANGED
@@ -5346,7 +5346,7 @@ var ZodIssueCode = {
5346
5346
  var ZodFirstPartyTypeKind;
5347
5347
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5348
5348
  //#endregion
5349
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5349
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5350
5350
  /**
5351
5351
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5352
5352
  * window to float samples (D455).
@@ -7371,7 +7371,23 @@ var EncodeProfileSchema = object({
7371
7371
  "zerolatency",
7372
7372
  "film",
7373
7373
  "animation"
7374
- ]).optional()
7374
+ ]).optional(),
7375
+ /**
7376
+ * ONE slice per access unit.
7377
+ *
7378
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7379
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7380
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7381
+ * frame-end per frame: the first pictures render and the video then freezes
7382
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7383
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7384
+ *
7385
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7386
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7387
+ * consumers meaning the same thing spelled differently would stop sharing one
7388
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7389
+ */
7390
+ singleSlicePerFrame: boolean().optional()
7375
7391
  }),
7376
7392
  audio: union([literal("passthrough"), object({
7377
7393
  codec: _enum([
@@ -7421,7 +7437,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7421
7437
  audio: "passthrough"
7422
7438
  };
7423
7439
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7424
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7440
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7425
7441
  /**
7426
7442
  * Deep wiring healthcheck — snapshot of active reachability probes across
7427
7443
  * every declared capability + widget of every installed plugin, on every
@@ -19888,13 +19904,109 @@ var SummariesQueryInput = object({
19888
19904
  deviceIds: array(number()).min(1),
19889
19905
  since: number().optional(),
19890
19906
  until: number().optional(),
19891
- limit: number().int().min(1).max(200).default(50)
19907
+ limit: number().int().min(1).max(200).default(50),
19908
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
19909
+ * meaning of "dog" on every summary surface. */
19910
+ classes: array(string().min(1).max(60)).max(40).optional()
19892
19911
  });
19893
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19894
19912
  var SummaryDetailSchema = object({
19895
19913
  summary: SummarySchema,
19896
- /** Member track ids, in absorption order. */
19897
- trackIds: array(string()).readonly()
19914
+ /** Members in absorption order, oldest join first. */
19915
+ members: array(object({
19916
+ trackId: string(),
19917
+ /**
19918
+ * The track's class at the time it JOINED, or `null` when it was unresolved
19919
+ * and the track no longer exists to fill it.
19920
+ *
19921
+ * The join, not the latest opinion: class voting can re-decide a track's
19922
+ * class afterwards, and a group's composition is the history of who came
19923
+ * together. A consumer counts these to badge a thumbnail — "two people and a
19924
+ * dog" — rather than being handed a second, denormalised tally that would
19925
+ * drift from the members it claims to describe.
19926
+ */
19927
+ className: string().nullable(),
19928
+ /** `primary` is the one member that carries the group's identity. */
19929
+ role: _enum([
19930
+ "primary",
19931
+ "sibling",
19932
+ "child"
19933
+ ]).nullable(),
19934
+ joinedAt: number(),
19935
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
19936
+ * at read time. Absent when nothing resolved, never an empty string. */
19937
+ label: string().optional(),
19938
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
19939
+ * recognised nobody, and absent for a member whose track has been pruned —
19940
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
19941
+ subLabel: string().optional()
19942
+ })).readonly()
19943
+ });
19944
+ /**
19945
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
19946
+ *
19947
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
19948
+ * we extend when we notice we need more". Enough to draw the card ("two people
19949
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
19950
+ * are on {@link getSummary}: shipping every member of every group so a client
19951
+ * can count them turns a page of two hundred groups into a thousand records to
19952
+ * draw two hundred badges.
19953
+ */
19954
+ var SummaryListItemSchema = object({
19955
+ summary: SummarySchema,
19956
+ /** Class counts, most numerous first; `className: null` is a member whose
19957
+ * class never resolved, counted so the counts add up to `memberCount`. */
19958
+ classes: array(object({
19959
+ className: string().nullable(),
19960
+ count: number().int().positive()
19961
+ })).readonly()
19962
+ });
19963
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
19964
+ /**
19965
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
19966
+ *
19967
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
19968
+ * summaries feed that could only answer "the last N for these cameras"
19969
+ * (`listSummaries`) would make groups available in the timeline and nowhere
19970
+ * else. Two feeds with different ordering contracts would be two ideas of what
19971
+ * "newest" means, on one screen.
19972
+ */
19973
+ var RecentSummariesQueryInput = object({
19974
+ /** Devices to merge. An empty array yields an empty page. */
19975
+ deviceIds: array(number()),
19976
+ /** Window lower bound on `lastActiveAt` (inclusive). */
19977
+ since: number().optional(),
19978
+ /** Window upper bound on `lastActiveAt` (inclusive). */
19979
+ until: number().optional(),
19980
+ limit: number().int().min(1).max(500).default(100),
19981
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
19982
+ cursor: string().optional(),
19983
+ /**
19984
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
19985
+ * deliberately the same name: the events filter tree emits one list of ticked
19986
+ * taxonomy nodes, and a summaries feed that called it something else would
19987
+ * make the operator's one filter component produce two shapes.
19988
+ *
19989
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
19990
+ * me the arrivals with a dog" has to return the group of four people who had
19991
+ * one with them; a filter on the group's own fields could only ever answer
19992
+ * about its primary.
19993
+ *
19994
+ * Matched against all THREE tiers of a member — the class (`animal`), the
19995
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
19996
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
19997
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
19998
+ * that read only the class would answer "animal" and never "dog".
19999
+ *
20000
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20001
+ */
20002
+ classes: array(string().min(1).max(60)).max(40).optional()
20003
+ });
20004
+ var RecentSummariesPageSchema = object({
20005
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20006
+ * {@link listSummaries} — one list shape, so a card renders the same
20007
+ * whichever feed drew it. */
20008
+ summaries: array(SummaryListItemSchema).readonly(),
20009
+ nextCursor: string().nullable()
19898
20010
  });
19899
20011
  var RecentTracksPageSchema = object({
19900
20012
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20308,7 +20420,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20308
20420
  classes: array(string()).optional(),
20309
20421
  /** See {@link ExcludeSourcesDoc}. */
20310
20422
  excludeSources: array(TrackSourceSchema).optional()
20311
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20423
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20312
20424
  kind: "mutation",
20313
20425
  auth: "admin"
20314
20426
  }), 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({
@@ -29914,7 +30026,29 @@ var LoggingSettingsPatchSchema = object({
29914
30026
  * disarmed the channels it did not mention would make the Levels page and
29915
30027
  * the Diagnostics page fight over the same value.
29916
30028
  */
29917
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30029
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30030
+ /**
30031
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30032
+ * retention actually deleted.
30033
+ *
30034
+ * It lives HERE, on the logging document, and not on the analytics addon's
30035
+ * settings form, on the operator's instruction: every other log-ish window in
30036
+ * this system is configured through this one document, and a retention audit
30037
+ * configured somewhere else is a second place to look when the question is
30038
+ * "what happened to my data".
30039
+ *
30040
+ * That placement has a cost worth stating: this document ships in the
30041
+ * framework closure, so this knob needs a published `@camstack/server` while
30042
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30043
+ *
30044
+ * `retention-model.ts` argued this one must NOT follow a device window,
30045
+ * because the audit trail is the history of the SWEEP and not of the camera.
30046
+ * That argument stands and is untouched — what changes is that 30 days stops
30047
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30048
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30049
+ * state in which the next 9.5 GiB leak cannot be explained.
30050
+ */
30051
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29918
30052
  });
29919
30053
  /**
29920
30054
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29987,6 +30121,14 @@ var LoggingSettingsStateSchema = object({
29987
30121
  channels: array(LogChannelDescriptorSchema).readonly(),
29988
30122
  /** The channels ARMED right now, each with its deadline. */
29989
30123
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30124
+ /**
30125
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30126
+ *
30127
+ * Reported rather than left to the caller's memory of what it wrote: this is
30128
+ * the value the analytics sweep will actually use, and an operator asking how
30129
+ * long their audit trail lives should not have to infer it from a default.
30130
+ */
30131
+ opsLogRetentionDays: number().int().min(0),
29990
30132
  persisted: boolean()
29991
30133
  });
29992
30134
  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(), {
@@ -34146,6 +34288,12 @@ Object.freeze({
34146
34288
  addonId: null,
34147
34289
  access: "view"
34148
34290
  },
34291
+ "pipelineAnalytics.listRecentSummaries": {
34292
+ capName: "pipeline-analytics",
34293
+ capScope: "device",
34294
+ addonId: null,
34295
+ access: "view"
34296
+ },
34149
34297
  "pipelineAnalytics.listRecentTracks": {
34150
34298
  capName: "pipeline-analytics",
34151
34299
  capScope: "device",
@@ -37973,6 +38121,11 @@ Object.freeze({
37973
38121
  form: "single",
37974
38122
  optional: true
37975
38123
  }],
38124
+ "pipelineAnalytics.listRecentSummaries": [{
38125
+ name: "deviceIds",
38126
+ form: "array",
38127
+ optional: false
38128
+ }],
37976
38129
  "pipelineAnalytics.listRecentTracks": [{
37977
38130
  name: "deviceIds",
37978
38131
  form: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.100",
3
+ "version": "1.2.101",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",