@camstack/addon-provider-petkit 0.2.86 → 0.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/addon.js CHANGED
@@ -8729,6 +8729,35 @@ var CameraSwitchGroupSchema = object({
8729
8729
  /** Unix ms when the group was composed server-side. */
8730
8730
  fetchedAt: number()
8731
8731
  });
8732
+ /** One archived note — the operator's words plus enough context to find what
8733
+ * they were looking at, after the track itself is gone. */
8734
+ var ArchivedDebugNoteSchema = object({
8735
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
8736
+ * same sentence about the same track lands on the row already there. */
8737
+ id: string(),
8738
+ /** The operator's own words, verbatim. */
8739
+ note: string(),
8740
+ /** The camera. Required — every question here is asked per-camera. */
8741
+ deviceId: number().int(),
8742
+ /** The track the note was written on. PROVENANCE, not ownership: the track
8743
+ * is expected to be gone, and this row is not a reference to it. */
8744
+ sourceTrackId: string(),
8745
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
8746
+ archivedAt: number().int(),
8747
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
8748
+ trackStartedAt: number().int().nullable(),
8749
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
8750
+ trackClass: string().nullable(),
8751
+ /** The track's display label at review time; `null` when it had none. */
8752
+ trackLabel: string().nullable()
8753
+ });
8754
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
8755
+ var ArchivedDebugNoteQueryInputSchema = object({
8756
+ /** Restrict to a single camera; omit for every row. */
8757
+ deviceId: number().int().optional(),
8758
+ /** Max rows returned, newest-first. */
8759
+ limit: number().int().min(1).max(1e3).optional()
8760
+ });
8732
8761
  /**
8733
8762
  * Ops-log — the durable, append-only operations audit shared by the
8734
8763
  * recordings and events management surfaces.
@@ -21209,7 +21238,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21209
21238
  deviceId: number(),
21210
21239
  trackId: string(),
21211
21240
  flags: TrackFlagsPatchSchema
21212
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
21241
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
21213
21242
  kind: "query",
21214
21243
  auth: "admin"
21215
21244
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -38611,6 +38640,12 @@ Object.freeze({
38611
38640
  addonId: null,
38612
38641
  access: "view"
38613
38642
  },
38643
+ "pipelineAnalytics.listArchivedDebugNotes": {
38644
+ capName: "pipeline-analytics",
38645
+ capScope: "device",
38646
+ addonId: null,
38647
+ access: "view"
38648
+ },
38614
38649
  "pipelineAnalytics.listEventKinds": {
38615
38650
  capName: "pipeline-analytics",
38616
38651
  capScope: "device",
@@ -42398,6 +42433,11 @@ Object.freeze({
42398
42433
  form: "array",
42399
42434
  optional: true
42400
42435
  }],
42436
+ "pipelineAnalytics.listArchivedDebugNotes": [{
42437
+ name: "deviceId",
42438
+ form: "single",
42439
+ optional: true
42440
+ }],
42401
42441
  "pipelineAnalytics.listEventKinds": [{
42402
42442
  name: "deviceId",
42403
42443
  form: "single",
package/dist/addon.mjs CHANGED
@@ -8728,6 +8728,35 @@ var CameraSwitchGroupSchema = object({
8728
8728
  /** Unix ms when the group was composed server-side. */
8729
8729
  fetchedAt: number()
8730
8730
  });
8731
+ /** One archived note — the operator's words plus enough context to find what
8732
+ * they were looking at, after the track itself is gone. */
8733
+ var ArchivedDebugNoteSchema = object({
8734
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
8735
+ * same sentence about the same track lands on the row already there. */
8736
+ id: string(),
8737
+ /** The operator's own words, verbatim. */
8738
+ note: string(),
8739
+ /** The camera. Required — every question here is asked per-camera. */
8740
+ deviceId: number().int(),
8741
+ /** The track the note was written on. PROVENANCE, not ownership: the track
8742
+ * is expected to be gone, and this row is not a reference to it. */
8743
+ sourceTrackId: string(),
8744
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
8745
+ archivedAt: number().int(),
8746
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
8747
+ trackStartedAt: number().int().nullable(),
8748
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
8749
+ trackClass: string().nullable(),
8750
+ /** The track's display label at review time; `null` when it had none. */
8751
+ trackLabel: string().nullable()
8752
+ });
8753
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
8754
+ var ArchivedDebugNoteQueryInputSchema = object({
8755
+ /** Restrict to a single camera; omit for every row. */
8756
+ deviceId: number().int().optional(),
8757
+ /** Max rows returned, newest-first. */
8758
+ limit: number().int().min(1).max(1e3).optional()
8759
+ });
8731
8760
  /**
8732
8761
  * Ops-log — the durable, append-only operations audit shared by the
8733
8762
  * recordings and events management surfaces.
@@ -21208,7 +21237,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21208
21237
  deviceId: number(),
21209
21238
  trackId: string(),
21210
21239
  flags: TrackFlagsPatchSchema
21211
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
21240
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
21212
21241
  kind: "query",
21213
21242
  auth: "admin"
21214
21243
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -38610,6 +38639,12 @@ Object.freeze({
38610
38639
  addonId: null,
38611
38640
  access: "view"
38612
38641
  },
38642
+ "pipelineAnalytics.listArchivedDebugNotes": {
38643
+ capName: "pipeline-analytics",
38644
+ capScope: "device",
38645
+ addonId: null,
38646
+ access: "view"
38647
+ },
38613
38648
  "pipelineAnalytics.listEventKinds": {
38614
38649
  capName: "pipeline-analytics",
38615
38650
  capScope: "device",
@@ -42397,6 +42432,11 @@ Object.freeze({
42397
42432
  form: "array",
42398
42433
  optional: true
42399
42434
  }],
42435
+ "pipelineAnalytics.listArchivedDebugNotes": [{
42436
+ name: "deviceId",
42437
+ form: "single",
42438
+ optional: true
42439
+ }],
42400
42440
  "pipelineAnalytics.listEventKinds": [{
42401
42441
  name: "deviceId",
42402
42442
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",