@camstack/addon-notifiers 1.2.90 → 1.2.91

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
@@ -7760,6 +7760,35 @@ var CameraSwitchGroupSchema = object({
7760
7760
  /** Unix ms when the group was composed server-side. */
7761
7761
  fetchedAt: number()
7762
7762
  });
7763
+ /** One archived note — the operator's words plus enough context to find what
7764
+ * they were looking at, after the track itself is gone. */
7765
+ var ArchivedDebugNoteSchema = object({
7766
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7767
+ * same sentence about the same track lands on the row already there. */
7768
+ id: string(),
7769
+ /** The operator's own words, verbatim. */
7770
+ note: string(),
7771
+ /** The camera. Required — every question here is asked per-camera. */
7772
+ deviceId: number().int(),
7773
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7774
+ * is expected to be gone, and this row is not a reference to it. */
7775
+ sourceTrackId: string(),
7776
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7777
+ archivedAt: number().int(),
7778
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7779
+ trackStartedAt: number().int().nullable(),
7780
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7781
+ trackClass: string().nullable(),
7782
+ /** The track's display label at review time; `null` when it had none. */
7783
+ trackLabel: string().nullable()
7784
+ });
7785
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7786
+ var ArchivedDebugNoteQueryInputSchema = object({
7787
+ /** Restrict to a single camera; omit for every row. */
7788
+ deviceId: number().int().optional(),
7789
+ /** Max rows returned, newest-first. */
7790
+ limit: number().int().min(1).max(1e3).optional()
7791
+ });
7763
7792
  /**
7764
7793
  * Ops-log — the durable, append-only operations audit shared by the
7765
7794
  * recordings and events management surfaces.
@@ -19910,7 +19939,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19910
19939
  deviceId: number(),
19911
19940
  trackId: string(),
19912
19941
  flags: TrackFlagsPatchSchema
19913
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
19942
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19914
19943
  kind: "query",
19915
19944
  auth: "admin"
19916
19945
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -33308,6 +33337,12 @@ Object.freeze({
33308
33337
  addonId: null,
33309
33338
  access: "view"
33310
33339
  },
33340
+ "pipelineAnalytics.listArchivedDebugNotes": {
33341
+ capName: "pipeline-analytics",
33342
+ capScope: "device",
33343
+ addonId: null,
33344
+ access: "view"
33345
+ },
33311
33346
  "pipelineAnalytics.listEventKinds": {
33312
33347
  capName: "pipeline-analytics",
33313
33348
  capScope: "device",
@@ -37095,6 +37130,11 @@ Object.freeze({
37095
37130
  form: "array",
37096
37131
  optional: true
37097
37132
  }],
37133
+ "pipelineAnalytics.listArchivedDebugNotes": [{
37134
+ name: "deviceId",
37135
+ form: "single",
37136
+ optional: true
37137
+ }],
37098
37138
  "pipelineAnalytics.listEventKinds": [{
37099
37139
  name: "deviceId",
37100
37140
  form: "single",
package/dist/addon.mjs CHANGED
@@ -7733,6 +7733,35 @@ var CameraSwitchGroupSchema = object({
7733
7733
  /** Unix ms when the group was composed server-side. */
7734
7734
  fetchedAt: number()
7735
7735
  });
7736
+ /** One archived note — the operator's words plus enough context to find what
7737
+ * they were looking at, after the track itself is gone. */
7738
+ var ArchivedDebugNoteSchema = object({
7739
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7740
+ * same sentence about the same track lands on the row already there. */
7741
+ id: string(),
7742
+ /** The operator's own words, verbatim. */
7743
+ note: string(),
7744
+ /** The camera. Required — every question here is asked per-camera. */
7745
+ deviceId: number().int(),
7746
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7747
+ * is expected to be gone, and this row is not a reference to it. */
7748
+ sourceTrackId: string(),
7749
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7750
+ archivedAt: number().int(),
7751
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7752
+ trackStartedAt: number().int().nullable(),
7753
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7754
+ trackClass: string().nullable(),
7755
+ /** The track's display label at review time; `null` when it had none. */
7756
+ trackLabel: string().nullable()
7757
+ });
7758
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7759
+ var ArchivedDebugNoteQueryInputSchema = object({
7760
+ /** Restrict to a single camera; omit for every row. */
7761
+ deviceId: number().int().optional(),
7762
+ /** Max rows returned, newest-first. */
7763
+ limit: number().int().min(1).max(1e3).optional()
7764
+ });
7736
7765
  /**
7737
7766
  * Ops-log — the durable, append-only operations audit shared by the
7738
7767
  * recordings and events management surfaces.
@@ -19883,7 +19912,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19883
19912
  deviceId: number(),
19884
19913
  trackId: string(),
19885
19914
  flags: TrackFlagsPatchSchema
19886
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
19915
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19887
19916
  kind: "query",
19888
19917
  auth: "admin"
19889
19918
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -33281,6 +33310,12 @@ Object.freeze({
33281
33310
  addonId: null,
33282
33311
  access: "view"
33283
33312
  },
33313
+ "pipelineAnalytics.listArchivedDebugNotes": {
33314
+ capName: "pipeline-analytics",
33315
+ capScope: "device",
33316
+ addonId: null,
33317
+ access: "view"
33318
+ },
33284
33319
  "pipelineAnalytics.listEventKinds": {
33285
33320
  capName: "pipeline-analytics",
33286
33321
  capScope: "device",
@@ -37068,6 +37103,11 @@ Object.freeze({
37068
37103
  form: "array",
37069
37104
  optional: true
37070
37105
  }],
37106
+ "pipelineAnalytics.listArchivedDebugNotes": [{
37107
+ name: "deviceId",
37108
+ form: "single",
37109
+ optional: true
37110
+ }],
37071
37111
  "pipelineAnalytics.listEventKinds": [{
37072
37112
  name: "deviceId",
37073
37113
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.90",
3
+ "version": "1.2.91",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",