@camstack/addon-provider-amcrest 0.2.102 → 0.2.103

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
@@ -5353,7 +5353,7 @@ var ZodIssueCode = {
5353
5353
  var ZodFirstPartyTypeKind;
5354
5354
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5355
5355
  //#endregion
5356
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5356
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5357
5357
  /**
5358
5358
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5359
5359
  * window to float samples (D455).
@@ -7370,7 +7370,23 @@ var EncodeProfileSchema = object({
7370
7370
  "zerolatency",
7371
7371
  "film",
7372
7372
  "animation"
7373
- ]).optional()
7373
+ ]).optional(),
7374
+ /**
7375
+ * ONE slice per access unit.
7376
+ *
7377
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7378
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7379
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7380
+ * frame-end per frame: the first pictures render and the video then freezes
7381
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7382
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7383
+ *
7384
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7385
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7386
+ * consumers meaning the same thing spelled differently would stop sharing one
7387
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7388
+ */
7389
+ singleSlicePerFrame: boolean().optional()
7374
7390
  }),
7375
7391
  audio: union([literal("passthrough"), object({
7376
7392
  codec: _enum([
@@ -7420,7 +7436,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7420
7436
  audio: "passthrough"
7421
7437
  };
7422
7438
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7423
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7439
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7424
7440
  /**
7425
7441
  * Deep wiring healthcheck — snapshot of active reachability probes across
7426
7442
  * every declared capability + widget of every installed plugin, on every
@@ -20125,13 +20141,109 @@ var SummariesQueryInput = object({
20125
20141
  deviceIds: array(number()).min(1),
20126
20142
  since: number().optional(),
20127
20143
  until: number().optional(),
20128
- limit: number().int().min(1).max(200).default(50)
20144
+ limit: number().int().min(1).max(200).default(50),
20145
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20146
+ * meaning of "dog" on every summary surface. */
20147
+ classes: array(string().min(1).max(60)).max(40).optional()
20129
20148
  });
20130
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20131
20149
  var SummaryDetailSchema = object({
20132
20150
  summary: SummarySchema,
20133
- /** Member track ids, in absorption order. */
20134
- trackIds: array(string()).readonly()
20151
+ /** Members in absorption order, oldest join first. */
20152
+ members: array(object({
20153
+ trackId: string(),
20154
+ /**
20155
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20156
+ * and the track no longer exists to fill it.
20157
+ *
20158
+ * The join, not the latest opinion: class voting can re-decide a track's
20159
+ * class afterwards, and a group's composition is the history of who came
20160
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20161
+ * dog" — rather than being handed a second, denormalised tally that would
20162
+ * drift from the members it claims to describe.
20163
+ */
20164
+ className: string().nullable(),
20165
+ /** `primary` is the one member that carries the group's identity. */
20166
+ role: _enum([
20167
+ "primary",
20168
+ "sibling",
20169
+ "child"
20170
+ ]).nullable(),
20171
+ joinedAt: number(),
20172
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20173
+ * at read time. Absent when nothing resolved, never an empty string. */
20174
+ label: string().optional(),
20175
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20176
+ * recognised nobody, and absent for a member whose track has been pruned —
20177
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20178
+ subLabel: string().optional()
20179
+ })).readonly()
20180
+ });
20181
+ /**
20182
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20183
+ *
20184
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20185
+ * we extend when we notice we need more". Enough to draw the card ("two people
20186
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20187
+ * are on {@link getSummary}: shipping every member of every group so a client
20188
+ * can count them turns a page of two hundred groups into a thousand records to
20189
+ * draw two hundred badges.
20190
+ */
20191
+ var SummaryListItemSchema = object({
20192
+ summary: SummarySchema,
20193
+ /** Class counts, most numerous first; `className: null` is a member whose
20194
+ * class never resolved, counted so the counts add up to `memberCount`. */
20195
+ classes: array(object({
20196
+ className: string().nullable(),
20197
+ count: number().int().positive()
20198
+ })).readonly()
20199
+ });
20200
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20201
+ /**
20202
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20203
+ *
20204
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20205
+ * summaries feed that could only answer "the last N for these cameras"
20206
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20207
+ * else. Two feeds with different ordering contracts would be two ideas of what
20208
+ * "newest" means, on one screen.
20209
+ */
20210
+ var RecentSummariesQueryInput = object({
20211
+ /** Devices to merge. An empty array yields an empty page. */
20212
+ deviceIds: array(number()),
20213
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20214
+ since: number().optional(),
20215
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20216
+ until: number().optional(),
20217
+ limit: number().int().min(1).max(500).default(100),
20218
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20219
+ cursor: string().optional(),
20220
+ /**
20221
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20222
+ * deliberately the same name: the events filter tree emits one list of ticked
20223
+ * taxonomy nodes, and a summaries feed that called it something else would
20224
+ * make the operator's one filter component produce two shapes.
20225
+ *
20226
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20227
+ * me the arrivals with a dog" has to return the group of four people who had
20228
+ * one with them; a filter on the group's own fields could only ever answer
20229
+ * about its primary.
20230
+ *
20231
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20232
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20233
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20234
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20235
+ * that read only the class would answer "animal" and never "dog".
20236
+ *
20237
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20238
+ */
20239
+ classes: array(string().min(1).max(60)).max(40).optional()
20240
+ });
20241
+ var RecentSummariesPageSchema = object({
20242
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20243
+ * {@link listSummaries} — one list shape, so a card renders the same
20244
+ * whichever feed drew it. */
20245
+ summaries: array(SummaryListItemSchema).readonly(),
20246
+ nextCursor: string().nullable()
20135
20247
  });
20136
20248
  var RecentTracksPageSchema = object({
20137
20249
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20545,7 +20657,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20545
20657
  classes: array(string()).optional(),
20546
20658
  /** See {@link ExcludeSourcesDoc}. */
20547
20659
  excludeSources: array(TrackSourceSchema).optional()
20548
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20660
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20549
20661
  kind: "mutation",
20550
20662
  auth: "admin"
20551
20663
  }), 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({
@@ -32733,7 +32845,29 @@ var LoggingSettingsPatchSchema = object({
32733
32845
  * disarmed the channels it did not mention would make the Levels page and
32734
32846
  * the Diagnostics page fight over the same value.
32735
32847
  */
32736
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32848
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32849
+ /**
32850
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32851
+ * retention actually deleted.
32852
+ *
32853
+ * It lives HERE, on the logging document, and not on the analytics addon's
32854
+ * settings form, on the operator's instruction: every other log-ish window in
32855
+ * this system is configured through this one document, and a retention audit
32856
+ * configured somewhere else is a second place to look when the question is
32857
+ * "what happened to my data".
32858
+ *
32859
+ * That placement has a cost worth stating: this document ships in the
32860
+ * framework closure, so this knob needs a published `@camstack/server` while
32861
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32862
+ *
32863
+ * `retention-model.ts` argued this one must NOT follow a device window,
32864
+ * because the audit trail is the history of the SWEEP and not of the camera.
32865
+ * That argument stands and is untouched — what changes is that 30 days stops
32866
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32867
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32868
+ * state in which the next 9.5 GiB leak cannot be explained.
32869
+ */
32870
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32737
32871
  });
32738
32872
  /**
32739
32873
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32806,6 +32940,14 @@ var LoggingSettingsStateSchema = object({
32806
32940
  channels: array(LogChannelDescriptorSchema).readonly(),
32807
32941
  /** The channels ARMED right now, each with its deadline. */
32808
32942
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32943
+ /**
32944
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32945
+ *
32946
+ * Reported rather than left to the caller's memory of what it wrote: this is
32947
+ * the value the analytics sweep will actually use, and an operator asking how
32948
+ * long their audit trail lives should not have to infer it from a default.
32949
+ */
32950
+ opsLogRetentionDays: number().int().min(0),
32809
32951
  persisted: boolean()
32810
32952
  });
32811
32953
  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(), {
@@ -39012,6 +39154,12 @@ Object.freeze({
39012
39154
  addonId: null,
39013
39155
  access: "view"
39014
39156
  },
39157
+ "pipelineAnalytics.listRecentSummaries": {
39158
+ capName: "pipeline-analytics",
39159
+ capScope: "device",
39160
+ addonId: null,
39161
+ access: "view"
39162
+ },
39015
39163
  "pipelineAnalytics.listRecentTracks": {
39016
39164
  capName: "pipeline-analytics",
39017
39165
  capScope: "device",
@@ -42839,6 +42987,11 @@ Object.freeze({
42839
42987
  form: "single",
42840
42988
  optional: true
42841
42989
  }],
42990
+ "pipelineAnalytics.listRecentSummaries": [{
42991
+ name: "deviceIds",
42992
+ form: "array",
42993
+ optional: false
42994
+ }],
42842
42995
  "pipelineAnalytics.listRecentTracks": [{
42843
42996
  name: "deviceIds",
42844
42997
  form: "array",
package/dist/addon.mjs CHANGED
@@ -5354,7 +5354,7 @@ var ZodIssueCode = {
5354
5354
  var ZodFirstPartyTypeKind;
5355
5355
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5356
5356
  //#endregion
5357
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5357
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5358
5358
  /**
5359
5359
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5360
5360
  * 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
@@ -20126,13 +20142,109 @@ var SummariesQueryInput = object({
20126
20142
  deviceIds: array(number()).min(1),
20127
20143
  since: number().optional(),
20128
20144
  until: number().optional(),
20129
- limit: number().int().min(1).max(200).default(50)
20145
+ limit: number().int().min(1).max(200).default(50),
20146
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20147
+ * meaning of "dog" on every summary surface. */
20148
+ classes: array(string().min(1).max(60)).max(40).optional()
20130
20149
  });
20131
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20132
20150
  var SummaryDetailSchema = object({
20133
20151
  summary: SummarySchema,
20134
- /** Member track ids, in absorption order. */
20135
- trackIds: array(string()).readonly()
20152
+ /** Members in absorption order, oldest join first. */
20153
+ members: array(object({
20154
+ trackId: string(),
20155
+ /**
20156
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20157
+ * and the track no longer exists to fill it.
20158
+ *
20159
+ * The join, not the latest opinion: class voting can re-decide a track's
20160
+ * class afterwards, and a group's composition is the history of who came
20161
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20162
+ * dog" — rather than being handed a second, denormalised tally that would
20163
+ * drift from the members it claims to describe.
20164
+ */
20165
+ className: string().nullable(),
20166
+ /** `primary` is the one member that carries the group's identity. */
20167
+ role: _enum([
20168
+ "primary",
20169
+ "sibling",
20170
+ "child"
20171
+ ]).nullable(),
20172
+ joinedAt: number(),
20173
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20174
+ * at read time. Absent when nothing resolved, never an empty string. */
20175
+ label: string().optional(),
20176
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20177
+ * recognised nobody, and absent for a member whose track has been pruned —
20178
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20179
+ subLabel: string().optional()
20180
+ })).readonly()
20181
+ });
20182
+ /**
20183
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20184
+ *
20185
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20186
+ * we extend when we notice we need more". Enough to draw the card ("two people
20187
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20188
+ * are on {@link getSummary}: shipping every member of every group so a client
20189
+ * can count them turns a page of two hundred groups into a thousand records to
20190
+ * draw two hundred badges.
20191
+ */
20192
+ var SummaryListItemSchema = object({
20193
+ summary: SummarySchema,
20194
+ /** Class counts, most numerous first; `className: null` is a member whose
20195
+ * class never resolved, counted so the counts add up to `memberCount`. */
20196
+ classes: array(object({
20197
+ className: string().nullable(),
20198
+ count: number().int().positive()
20199
+ })).readonly()
20200
+ });
20201
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20202
+ /**
20203
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20204
+ *
20205
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20206
+ * summaries feed that could only answer "the last N for these cameras"
20207
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20208
+ * else. Two feeds with different ordering contracts would be two ideas of what
20209
+ * "newest" means, on one screen.
20210
+ */
20211
+ var RecentSummariesQueryInput = object({
20212
+ /** Devices to merge. An empty array yields an empty page. */
20213
+ deviceIds: array(number()),
20214
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20215
+ since: number().optional(),
20216
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20217
+ until: number().optional(),
20218
+ limit: number().int().min(1).max(500).default(100),
20219
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20220
+ cursor: string().optional(),
20221
+ /**
20222
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20223
+ * deliberately the same name: the events filter tree emits one list of ticked
20224
+ * taxonomy nodes, and a summaries feed that called it something else would
20225
+ * make the operator's one filter component produce two shapes.
20226
+ *
20227
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20228
+ * me the arrivals with a dog" has to return the group of four people who had
20229
+ * one with them; a filter on the group's own fields could only ever answer
20230
+ * about its primary.
20231
+ *
20232
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20233
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20234
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20235
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20236
+ * that read only the class would answer "animal" and never "dog".
20237
+ *
20238
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20239
+ */
20240
+ classes: array(string().min(1).max(60)).max(40).optional()
20241
+ });
20242
+ var RecentSummariesPageSchema = object({
20243
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20244
+ * {@link listSummaries} — one list shape, so a card renders the same
20245
+ * whichever feed drew it. */
20246
+ summaries: array(SummaryListItemSchema).readonly(),
20247
+ nextCursor: string().nullable()
20136
20248
  });
20137
20249
  var RecentTracksPageSchema = object({
20138
20250
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20546,7 +20658,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20546
20658
  classes: array(string()).optional(),
20547
20659
  /** See {@link ExcludeSourcesDoc}. */
20548
20660
  excludeSources: array(TrackSourceSchema).optional()
20549
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20661
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20550
20662
  kind: "mutation",
20551
20663
  auth: "admin"
20552
20664
  }), 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({
@@ -32734,7 +32846,29 @@ var LoggingSettingsPatchSchema = object({
32734
32846
  * disarmed the channels it did not mention would make the Levels page and
32735
32847
  * the Diagnostics page fight over the same value.
32736
32848
  */
32737
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32849
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32850
+ /**
32851
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32852
+ * retention actually deleted.
32853
+ *
32854
+ * It lives HERE, on the logging document, and not on the analytics addon's
32855
+ * settings form, on the operator's instruction: every other log-ish window in
32856
+ * this system is configured through this one document, and a retention audit
32857
+ * configured somewhere else is a second place to look when the question is
32858
+ * "what happened to my data".
32859
+ *
32860
+ * That placement has a cost worth stating: this document ships in the
32861
+ * framework closure, so this knob needs a published `@camstack/server` while
32862
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32863
+ *
32864
+ * `retention-model.ts` argued this one must NOT follow a device window,
32865
+ * because the audit trail is the history of the SWEEP and not of the camera.
32866
+ * That argument stands and is untouched — what changes is that 30 days stops
32867
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32868
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32869
+ * state in which the next 9.5 GiB leak cannot be explained.
32870
+ */
32871
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32738
32872
  });
32739
32873
  /**
32740
32874
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32807,6 +32941,14 @@ var LoggingSettingsStateSchema = object({
32807
32941
  channels: array(LogChannelDescriptorSchema).readonly(),
32808
32942
  /** The channels ARMED right now, each with its deadline. */
32809
32943
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32944
+ /**
32945
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32946
+ *
32947
+ * Reported rather than left to the caller's memory of what it wrote: this is
32948
+ * the value the analytics sweep will actually use, and an operator asking how
32949
+ * long their audit trail lives should not have to infer it from a default.
32950
+ */
32951
+ opsLogRetentionDays: number().int().min(0),
32810
32952
  persisted: boolean()
32811
32953
  });
32812
32954
  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(), {
@@ -39013,6 +39155,12 @@ Object.freeze({
39013
39155
  addonId: null,
39014
39156
  access: "view"
39015
39157
  },
39158
+ "pipelineAnalytics.listRecentSummaries": {
39159
+ capName: "pipeline-analytics",
39160
+ capScope: "device",
39161
+ addonId: null,
39162
+ access: "view"
39163
+ },
39016
39164
  "pipelineAnalytics.listRecentTracks": {
39017
39165
  capName: "pipeline-analytics",
39018
39166
  capScope: "device",
@@ -42840,6 +42988,11 @@ Object.freeze({
42840
42988
  form: "single",
42841
42989
  optional: true
42842
42990
  }],
42991
+ "pipelineAnalytics.listRecentSummaries": [{
42992
+ name: "deviceIds",
42993
+ form: "array",
42994
+ optional: false
42995
+ }],
42843
42996
  "pipelineAnalytics.listRecentTracks": [{
42844
42997
  name: "deviceIds",
42845
42998
  form: "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.102",
3
+ "version": "0.2.103",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",