@camstack/addon-provider-homeassistant 1.2.102 → 1.2.103

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
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-DAeDXQbg.js");
2
+ const require_dist = require("./dist-B1wVsjRx.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_zlib = require("node:zlib");
5
5
  //#region src/ha-device-source.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-CCXWoJdR.mjs";
1
+ import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-jHuKjwKy.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
4
4
  //#region src/ha-device-source.ts
@@ -7830,6 +7830,35 @@ var CameraSwitchGroupSchema = object({
7830
7830
  /** Unix ms when the group was composed server-side. */
7831
7831
  fetchedAt: number()
7832
7832
  });
7833
+ /** One archived note — the operator's words plus enough context to find what
7834
+ * they were looking at, after the track itself is gone. */
7835
+ var ArchivedDebugNoteSchema = object({
7836
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7837
+ * same sentence about the same track lands on the row already there. */
7838
+ id: string(),
7839
+ /** The operator's own words, verbatim. */
7840
+ note: string(),
7841
+ /** The camera. Required — every question here is asked per-camera. */
7842
+ deviceId: number().int(),
7843
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7844
+ * is expected to be gone, and this row is not a reference to it. */
7845
+ sourceTrackId: string(),
7846
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7847
+ archivedAt: number().int(),
7848
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7849
+ trackStartedAt: number().int().nullable(),
7850
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7851
+ trackClass: string().nullable(),
7852
+ /** The track's display label at review time; `null` when it had none. */
7853
+ trackLabel: string().nullable()
7854
+ });
7855
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7856
+ var ArchivedDebugNoteQueryInputSchema = object({
7857
+ /** Restrict to a single camera; omit for every row. */
7858
+ deviceId: number().int().optional(),
7859
+ /** Max rows returned, newest-first. */
7860
+ limit: number().int().min(1).max(1e3).optional()
7861
+ });
7833
7862
  /**
7834
7863
  * Ops-log — the durable, append-only operations audit shared by the
7835
7864
  * recordings and events management surfaces.
@@ -20478,7 +20507,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20478
20507
  deviceId: number(),
20479
20508
  trackId: string(),
20480
20509
  flags: TrackFlagsPatchSchema
20481
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20510
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20482
20511
  kind: "query",
20483
20512
  auth: "admin"
20484
20513
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -37961,6 +37990,12 @@ Object.freeze({
37961
37990
  addonId: null,
37962
37991
  access: "view"
37963
37992
  },
37993
+ "pipelineAnalytics.listArchivedDebugNotes": {
37994
+ capName: "pipeline-analytics",
37995
+ capScope: "device",
37996
+ addonId: null,
37997
+ access: "view"
37998
+ },
37964
37999
  "pipelineAnalytics.listEventKinds": {
37965
38000
  capName: "pipeline-analytics",
37966
38001
  capScope: "device",
@@ -41748,6 +41783,11 @@ Object.freeze({
41748
41783
  form: "array",
41749
41784
  optional: true
41750
41785
  }],
41786
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41787
+ name: "deviceId",
41788
+ form: "single",
41789
+ optional: true
41790
+ }],
41751
41791
  "pipelineAnalytics.listEventKinds": [{
41752
41792
  name: "deviceId",
41753
41793
  form: "single",
@@ -7830,6 +7830,35 @@ var CameraSwitchGroupSchema = object({
7830
7830
  /** Unix ms when the group was composed server-side. */
7831
7831
  fetchedAt: number()
7832
7832
  });
7833
+ /** One archived note — the operator's words plus enough context to find what
7834
+ * they were looking at, after the track itself is gone. */
7835
+ var ArchivedDebugNoteSchema = object({
7836
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7837
+ * same sentence about the same track lands on the row already there. */
7838
+ id: string(),
7839
+ /** The operator's own words, verbatim. */
7840
+ note: string(),
7841
+ /** The camera. Required — every question here is asked per-camera. */
7842
+ deviceId: number().int(),
7843
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7844
+ * is expected to be gone, and this row is not a reference to it. */
7845
+ sourceTrackId: string(),
7846
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7847
+ archivedAt: number().int(),
7848
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7849
+ trackStartedAt: number().int().nullable(),
7850
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7851
+ trackClass: string().nullable(),
7852
+ /** The track's display label at review time; `null` when it had none. */
7853
+ trackLabel: string().nullable()
7854
+ });
7855
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7856
+ var ArchivedDebugNoteQueryInputSchema = object({
7857
+ /** Restrict to a single camera; omit for every row. */
7858
+ deviceId: number().int().optional(),
7859
+ /** Max rows returned, newest-first. */
7860
+ limit: number().int().min(1).max(1e3).optional()
7861
+ });
7833
7862
  /**
7834
7863
  * Ops-log — the durable, append-only operations audit shared by the
7835
7864
  * recordings and events management surfaces.
@@ -20478,7 +20507,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20478
20507
  deviceId: number(),
20479
20508
  trackId: string(),
20480
20509
  flags: TrackFlagsPatchSchema
20481
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20510
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20482
20511
  kind: "query",
20483
20512
  auth: "admin"
20484
20513
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -37961,6 +37990,12 @@ Object.freeze({
37961
37990
  addonId: null,
37962
37991
  access: "view"
37963
37992
  },
37993
+ "pipelineAnalytics.listArchivedDebugNotes": {
37994
+ capName: "pipeline-analytics",
37995
+ capScope: "device",
37996
+ addonId: null,
37997
+ access: "view"
37998
+ },
37964
37999
  "pipelineAnalytics.listEventKinds": {
37965
38000
  capName: "pipeline-analytics",
37966
38001
  capScope: "device",
@@ -41748,6 +41783,11 @@ Object.freeze({
41748
41783
  form: "array",
41749
41784
  optional: true
41750
41785
  }],
41786
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41787
+ name: "deviceId",
41788
+ form: "single",
41789
+ optional: true
41790
+ }],
41751
41791
  "pipelineAnalytics.listEventKinds": [{
41752
41792
  name: "deviceId",
41753
41793
  form: "single",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-DAeDXQbg.js");
6
+ const require_dist = require("../dist-B1wVsjRx.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/ha-export/topics.ts
9
9
  /**
@@ -1,4 +1,4 @@
1
- import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-CCXWoJdR.mjs";
1
+ import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-jHuKjwKy.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  //#region src/ha-export/topics.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.102",
3
+ "version": "1.2.103",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",