@camstack/addon-decoder-nodeav 1.2.86 → 1.2.87

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
@@ -7627,6 +7627,35 @@ var CameraSwitchGroupSchema = object({
7627
7627
  /** Unix ms when the group was composed server-side. */
7628
7628
  fetchedAt: number()
7629
7629
  });
7630
+ /** One archived note — the operator's words plus enough context to find what
7631
+ * they were looking at, after the track itself is gone. */
7632
+ var ArchivedDebugNoteSchema = object({
7633
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7634
+ * same sentence about the same track lands on the row already there. */
7635
+ id: string(),
7636
+ /** The operator's own words, verbatim. */
7637
+ note: string(),
7638
+ /** The camera. Required — every question here is asked per-camera. */
7639
+ deviceId: number().int(),
7640
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7641
+ * is expected to be gone, and this row is not a reference to it. */
7642
+ sourceTrackId: string(),
7643
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7644
+ archivedAt: number().int(),
7645
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7646
+ trackStartedAt: number().int().nullable(),
7647
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7648
+ trackClass: string().nullable(),
7649
+ /** The track's display label at review time; `null` when it had none. */
7650
+ trackLabel: string().nullable()
7651
+ });
7652
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7653
+ var ArchivedDebugNoteQueryInputSchema = object({
7654
+ /** Restrict to a single camera; omit for every row. */
7655
+ deviceId: number().int().optional(),
7656
+ /** Max rows returned, newest-first. */
7657
+ limit: number().int().min(1).max(1e3).optional()
7658
+ });
7630
7659
  /**
7631
7660
  * Ops-log — the durable, append-only operations audit shared by the
7632
7661
  * recordings and events management surfaces.
@@ -19852,7 +19881,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19852
19881
  deviceId: number(),
19853
19882
  trackId: string(),
19854
19883
  flags: TrackFlagsPatchSchema
19855
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
19884
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19856
19885
  kind: "query",
19857
19886
  auth: "admin"
19858
19887
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -33250,6 +33279,12 @@ Object.freeze({
33250
33279
  addonId: null,
33251
33280
  access: "view"
33252
33281
  },
33282
+ "pipelineAnalytics.listArchivedDebugNotes": {
33283
+ capName: "pipeline-analytics",
33284
+ capScope: "device",
33285
+ addonId: null,
33286
+ access: "view"
33287
+ },
33253
33288
  "pipelineAnalytics.listEventKinds": {
33254
33289
  capName: "pipeline-analytics",
33255
33290
  capScope: "device",
@@ -37037,6 +37072,11 @@ Object.freeze({
37037
37072
  form: "array",
37038
37073
  optional: true
37039
37074
  }],
37075
+ "pipelineAnalytics.listArchivedDebugNotes": [{
37076
+ name: "deviceId",
37077
+ form: "single",
37078
+ optional: true
37079
+ }],
37040
37080
  "pipelineAnalytics.listEventKinds": [{
37041
37081
  name: "deviceId",
37042
37082
  form: "single",
package/dist/index.mjs CHANGED
@@ -7623,6 +7623,35 @@ var CameraSwitchGroupSchema = object({
7623
7623
  /** Unix ms when the group was composed server-side. */
7624
7624
  fetchedAt: number()
7625
7625
  });
7626
+ /** One archived note — the operator's words plus enough context to find what
7627
+ * they were looking at, after the track itself is gone. */
7628
+ var ArchivedDebugNoteSchema = object({
7629
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7630
+ * same sentence about the same track lands on the row already there. */
7631
+ id: string(),
7632
+ /** The operator's own words, verbatim. */
7633
+ note: string(),
7634
+ /** The camera. Required — every question here is asked per-camera. */
7635
+ deviceId: number().int(),
7636
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7637
+ * is expected to be gone, and this row is not a reference to it. */
7638
+ sourceTrackId: string(),
7639
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7640
+ archivedAt: number().int(),
7641
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7642
+ trackStartedAt: number().int().nullable(),
7643
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7644
+ trackClass: string().nullable(),
7645
+ /** The track's display label at review time; `null` when it had none. */
7646
+ trackLabel: string().nullable()
7647
+ });
7648
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7649
+ var ArchivedDebugNoteQueryInputSchema = object({
7650
+ /** Restrict to a single camera; omit for every row. */
7651
+ deviceId: number().int().optional(),
7652
+ /** Max rows returned, newest-first. */
7653
+ limit: number().int().min(1).max(1e3).optional()
7654
+ });
7626
7655
  /**
7627
7656
  * Ops-log — the durable, append-only operations audit shared by the
7628
7657
  * recordings and events management surfaces.
@@ -19848,7 +19877,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19848
19877
  deviceId: number(),
19849
19878
  trackId: string(),
19850
19879
  flags: TrackFlagsPatchSchema
19851
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
19880
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19852
19881
  kind: "query",
19853
19882
  auth: "admin"
19854
19883
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -33246,6 +33275,12 @@ Object.freeze({
33246
33275
  addonId: null,
33247
33276
  access: "view"
33248
33277
  },
33278
+ "pipelineAnalytics.listArchivedDebugNotes": {
33279
+ capName: "pipeline-analytics",
33280
+ capScope: "device",
33281
+ addonId: null,
33282
+ access: "view"
33283
+ },
33249
33284
  "pipelineAnalytics.listEventKinds": {
33250
33285
  capName: "pipeline-analytics",
33251
33286
  capScope: "device",
@@ -37033,6 +37068,11 @@ Object.freeze({
37033
37068
  form: "array",
37034
37069
  optional: true
37035
37070
  }],
37071
+ "pipelineAnalytics.listArchivedDebugNotes": [{
37072
+ name: "deviceId",
37073
+ form: "single",
37074
+ optional: true
37075
+ }],
37036
37076
  "pipelineAnalytics.listEventKinds": [{
37037
37077
  name: "deviceId",
37038
37078
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.86",
3
+ "version": "1.2.87",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",