@camstack/addon-provider-amcrest 0.2.88 → 0.2.89

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
@@ -7622,6 +7622,35 @@ var CameraSwitchGroupSchema = object({
7622
7622
  /** Unix ms when the group was composed server-side. */
7623
7623
  fetchedAt: number()
7624
7624
  });
7625
+ /** One archived note — the operator's words plus enough context to find what
7626
+ * they were looking at, after the track itself is gone. */
7627
+ var ArchivedDebugNoteSchema = object({
7628
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7629
+ * same sentence about the same track lands on the row already there. */
7630
+ id: string(),
7631
+ /** The operator's own words, verbatim. */
7632
+ note: string(),
7633
+ /** The camera. Required — every question here is asked per-camera. */
7634
+ deviceId: number().int(),
7635
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7636
+ * is expected to be gone, and this row is not a reference to it. */
7637
+ sourceTrackId: string(),
7638
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7639
+ archivedAt: number().int(),
7640
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7641
+ trackStartedAt: number().int().nullable(),
7642
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7643
+ trackClass: string().nullable(),
7644
+ /** The track's display label at review time; `null` when it had none. */
7645
+ trackLabel: string().nullable()
7646
+ });
7647
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7648
+ var ArchivedDebugNoteQueryInputSchema = object({
7649
+ /** Restrict to a single camera; omit for every row. */
7650
+ deviceId: number().int().optional(),
7651
+ /** Max rows returned, newest-first. */
7652
+ limit: number().int().min(1).max(1e3).optional()
7653
+ });
7625
7654
  /**
7626
7655
  * Ops-log — the durable, append-only operations audit shared by the
7627
7656
  * recordings and events management surfaces.
@@ -20085,7 +20114,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20085
20114
  deviceId: number(),
20086
20115
  trackId: string(),
20087
20116
  flags: TrackFlagsPatchSchema
20088
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20117
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20089
20118
  kind: "query",
20090
20119
  auth: "admin"
20091
20120
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -38095,6 +38124,12 @@ Object.freeze({
38095
38124
  addonId: null,
38096
38125
  access: "view"
38097
38126
  },
38127
+ "pipelineAnalytics.listArchivedDebugNotes": {
38128
+ capName: "pipeline-analytics",
38129
+ capScope: "device",
38130
+ addonId: null,
38131
+ access: "view"
38132
+ },
38098
38133
  "pipelineAnalytics.listEventKinds": {
38099
38134
  capName: "pipeline-analytics",
38100
38135
  capScope: "device",
@@ -41882,6 +41917,11 @@ Object.freeze({
41882
41917
  form: "array",
41883
41918
  optional: true
41884
41919
  }],
41920
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41921
+ name: "deviceId",
41922
+ form: "single",
41923
+ optional: true
41924
+ }],
41885
41925
  "pipelineAnalytics.listEventKinds": [{
41886
41926
  name: "deviceId",
41887
41927
  form: "single",
package/dist/addon.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.
@@ -20086,7 +20115,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20086
20115
  deviceId: number(),
20087
20116
  trackId: string(),
20088
20117
  flags: TrackFlagsPatchSchema
20089
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20118
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20090
20119
  kind: "query",
20091
20120
  auth: "admin"
20092
20121
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -38096,6 +38125,12 @@ Object.freeze({
38096
38125
  addonId: null,
38097
38126
  access: "view"
38098
38127
  },
38128
+ "pipelineAnalytics.listArchivedDebugNotes": {
38129
+ capName: "pipeline-analytics",
38130
+ capScope: "device",
38131
+ addonId: null,
38132
+ access: "view"
38133
+ },
38099
38134
  "pipelineAnalytics.listEventKinds": {
38100
38135
  capName: "pipeline-analytics",
38101
38136
  capScope: "device",
@@ -41883,6 +41918,11 @@ Object.freeze({
41883
41918
  form: "array",
41884
41919
  optional: true
41885
41920
  }],
41921
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41922
+ name: "deviceId",
41923
+ form: "single",
41924
+ optional: true
41925
+ }],
41886
41926
  "pipelineAnalytics.listEventKinds": [{
41887
41927
  name: "deviceId",
41888
41928
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.88",
3
+ "version": "0.2.89",
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",