@camstack/addon-import-alexa 0.2.85 → 0.2.86

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
@@ -7785,6 +7785,35 @@ var CameraSwitchGroupSchema = object({
7785
7785
  /** Unix ms when the group was composed server-side. */
7786
7786
  fetchedAt: number()
7787
7787
  });
7788
+ /** One archived note — the operator's words plus enough context to find what
7789
+ * they were looking at, after the track itself is gone. */
7790
+ var ArchivedDebugNoteSchema = object({
7791
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7792
+ * same sentence about the same track lands on the row already there. */
7793
+ id: string(),
7794
+ /** The operator's own words, verbatim. */
7795
+ note: string(),
7796
+ /** The camera. Required — every question here is asked per-camera. */
7797
+ deviceId: number().int(),
7798
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7799
+ * is expected to be gone, and this row is not a reference to it. */
7800
+ sourceTrackId: string(),
7801
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7802
+ archivedAt: number().int(),
7803
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7804
+ trackStartedAt: number().int().nullable(),
7805
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7806
+ trackClass: string().nullable(),
7807
+ /** The track's display label at review time; `null` when it had none. */
7808
+ trackLabel: string().nullable()
7809
+ });
7810
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7811
+ var ArchivedDebugNoteQueryInputSchema = object({
7812
+ /** Restrict to a single camera; omit for every row. */
7813
+ deviceId: number().int().optional(),
7814
+ /** Max rows returned, newest-first. */
7815
+ limit: number().int().min(1).max(1e3).optional()
7816
+ });
7788
7817
  /**
7789
7818
  * Ops-log — the durable, append-only operations audit shared by the
7790
7819
  * recordings and events management surfaces.
@@ -20333,7 +20362,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20333
20362
  deviceId: number(),
20334
20363
  trackId: string(),
20335
20364
  flags: TrackFlagsPatchSchema
20336
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20365
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20337
20366
  kind: "query",
20338
20367
  auth: "admin"
20339
20368
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -37744,6 +37773,12 @@ Object.freeze({
37744
37773
  addonId: null,
37745
37774
  access: "view"
37746
37775
  },
37776
+ "pipelineAnalytics.listArchivedDebugNotes": {
37777
+ capName: "pipeline-analytics",
37778
+ capScope: "device",
37779
+ addonId: null,
37780
+ access: "view"
37781
+ },
37747
37782
  "pipelineAnalytics.listEventKinds": {
37748
37783
  capName: "pipeline-analytics",
37749
37784
  capScope: "device",
@@ -41531,6 +41566,11 @@ Object.freeze({
41531
41566
  form: "array",
41532
41567
  optional: true
41533
41568
  }],
41569
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41570
+ name: "deviceId",
41571
+ form: "single",
41572
+ optional: true
41573
+ }],
41534
41574
  "pipelineAnalytics.listEventKinds": [{
41535
41575
  name: "deviceId",
41536
41576
  form: "single",
package/dist/addon.mjs CHANGED
@@ -7785,6 +7785,35 @@ var CameraSwitchGroupSchema = object({
7785
7785
  /** Unix ms when the group was composed server-side. */
7786
7786
  fetchedAt: number()
7787
7787
  });
7788
+ /** One archived note — the operator's words plus enough context to find what
7789
+ * they were looking at, after the track itself is gone. */
7790
+ var ArchivedDebugNoteSchema = object({
7791
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7792
+ * same sentence about the same track lands on the row already there. */
7793
+ id: string(),
7794
+ /** The operator's own words, verbatim. */
7795
+ note: string(),
7796
+ /** The camera. Required — every question here is asked per-camera. */
7797
+ deviceId: number().int(),
7798
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7799
+ * is expected to be gone, and this row is not a reference to it. */
7800
+ sourceTrackId: string(),
7801
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7802
+ archivedAt: number().int(),
7803
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7804
+ trackStartedAt: number().int().nullable(),
7805
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7806
+ trackClass: string().nullable(),
7807
+ /** The track's display label at review time; `null` when it had none. */
7808
+ trackLabel: string().nullable()
7809
+ });
7810
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7811
+ var ArchivedDebugNoteQueryInputSchema = object({
7812
+ /** Restrict to a single camera; omit for every row. */
7813
+ deviceId: number().int().optional(),
7814
+ /** Max rows returned, newest-first. */
7815
+ limit: number().int().min(1).max(1e3).optional()
7816
+ });
7788
7817
  /**
7789
7818
  * Ops-log — the durable, append-only operations audit shared by the
7790
7819
  * recordings and events management surfaces.
@@ -20333,7 +20362,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20333
20362
  deviceId: number(),
20334
20363
  trackId: string(),
20335
20364
  flags: TrackFlagsPatchSchema
20336
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20365
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20337
20366
  kind: "query",
20338
20367
  auth: "admin"
20339
20368
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -37744,6 +37773,12 @@ Object.freeze({
37744
37773
  addonId: null,
37745
37774
  access: "view"
37746
37775
  },
37776
+ "pipelineAnalytics.listArchivedDebugNotes": {
37777
+ capName: "pipeline-analytics",
37778
+ capScope: "device",
37779
+ addonId: null,
37780
+ access: "view"
37781
+ },
37747
37782
  "pipelineAnalytics.listEventKinds": {
37748
37783
  capName: "pipeline-analytics",
37749
37784
  capScope: "device",
@@ -41531,6 +41566,11 @@ Object.freeze({
41531
41566
  form: "array",
41532
41567
  optional: true
41533
41568
  }],
41569
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41570
+ name: "deviceId",
41571
+ form: "single",
41572
+ optional: true
41573
+ }],
41534
41574
  "pipelineAnalytics.listEventKinds": [{
41535
41575
  name: "deviceId",
41536
41576
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.85",
3
+ "version": "0.2.86",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",