@camstack/addon-provider-homeassistant 1.2.100 → 1.2.101

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-BpWL-De4.js");
2
+ const require_dist = require("./dist-B8yYEg2y.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-AOtMYWFQ.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-CCAzG3ec.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
@@ -25728,6 +25728,59 @@ var IdentitySampleInfoSchema = object({
25728
25728
  deviceId: number().int().optional(),
25729
25729
  base64: string().optional()
25730
25730
  });
25731
+ /**
25732
+ * One enrolled sample, judged against the gallery it lives in.
25733
+ *
25734
+ * The gallery is the one input to recognition nobody re-reads: a sample
25735
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25736
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25737
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25738
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25739
+ * where every other cross-identity pair sits under 0.50.
25740
+ */
25741
+ var IdentitySampleAuditRowSchema = object({
25742
+ sampleId: string(),
25743
+ enrolledAt: number().int(),
25744
+ deviceId: number().int().optional(),
25745
+ source: _enum(["detected", "photo"]),
25746
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25747
+ mediaKey: string().optional(),
25748
+ /**
25749
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25750
+ * across feature spaces is a well-formed float with no meaning. Every number
25751
+ * below then says nothing — it must read as "cannot say", never as an
25752
+ * accusation and never as a clean bill: this list ends in a Remove button.
25753
+ */
25754
+ comparable: boolean(),
25755
+ /** Mean cosine against this person's other samples. Null when there are none
25756
+ * to compare with — never 0, which would read as "opposite". */
25757
+ selfMean: number().nullable(),
25758
+ /** The other person this sample looks most like, when it looks like one.
25759
+ * This is the half that convicts: not looking like yourself can be a hard
25760
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25761
+ bestForeign: object({
25762
+ identityId: string(),
25763
+ name: string(),
25764
+ score: number()
25765
+ }).optional(),
25766
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25767
+ suspicion: number()
25768
+ });
25769
+ var IdentitySampleAuditSchema = object({
25770
+ identityId: string(),
25771
+ name: string(),
25772
+ /** The cluster face model every comparison was made in. */
25773
+ modelId: string(),
25774
+ totalSamples: number().int(),
25775
+ comparableSamples: number().int(),
25776
+ flagged: number().int(),
25777
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25778
+ * only its current result. */
25779
+ flagThreshold: number(),
25780
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25781
+ * operator asked to see the gallery, not only its accusations. */
25782
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25783
+ });
25731
25784
  var FaceInfoSchema = object({
25732
25785
  faceId: string(),
25733
25786
  deviceId: number().int(),
@@ -25879,7 +25932,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25879
25932
  }), method(object({ id: string() }), _void(), {
25880
25933
  kind: "mutation",
25881
25934
  auth: "admin"
25882
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25935
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25883
25936
  identityId: string(),
25884
25937
  sampleId: string()
25885
25938
  }), _void(), {
@@ -36372,6 +36425,12 @@ Object.freeze({
36372
36425
  addonId: null,
36373
36426
  access: "create"
36374
36427
  },
36428
+ "faceGallery.auditIdentitySamples": {
36429
+ capName: "face-gallery",
36430
+ capScope: "system",
36431
+ addonId: null,
36432
+ access: "view"
36433
+ },
36375
36434
  "faceGallery.createIdentity": {
36376
36435
  capName: "face-gallery",
36377
36436
  capScope: "system",
@@ -25728,6 +25728,59 @@ var IdentitySampleInfoSchema = object({
25728
25728
  deviceId: number().int().optional(),
25729
25729
  base64: string().optional()
25730
25730
  });
25731
+ /**
25732
+ * One enrolled sample, judged against the gallery it lives in.
25733
+ *
25734
+ * The gallery is the one input to recognition nobody re-reads: a sample
25735
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25736
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25737
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25738
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25739
+ * where every other cross-identity pair sits under 0.50.
25740
+ */
25741
+ var IdentitySampleAuditRowSchema = object({
25742
+ sampleId: string(),
25743
+ enrolledAt: number().int(),
25744
+ deviceId: number().int().optional(),
25745
+ source: _enum(["detected", "photo"]),
25746
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25747
+ mediaKey: string().optional(),
25748
+ /**
25749
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25750
+ * across feature spaces is a well-formed float with no meaning. Every number
25751
+ * below then says nothing — it must read as "cannot say", never as an
25752
+ * accusation and never as a clean bill: this list ends in a Remove button.
25753
+ */
25754
+ comparable: boolean(),
25755
+ /** Mean cosine against this person's other samples. Null when there are none
25756
+ * to compare with — never 0, which would read as "opposite". */
25757
+ selfMean: number().nullable(),
25758
+ /** The other person this sample looks most like, when it looks like one.
25759
+ * This is the half that convicts: not looking like yourself can be a hard
25760
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25761
+ bestForeign: object({
25762
+ identityId: string(),
25763
+ name: string(),
25764
+ score: number()
25765
+ }).optional(),
25766
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25767
+ suspicion: number()
25768
+ });
25769
+ var IdentitySampleAuditSchema = object({
25770
+ identityId: string(),
25771
+ name: string(),
25772
+ /** The cluster face model every comparison was made in. */
25773
+ modelId: string(),
25774
+ totalSamples: number().int(),
25775
+ comparableSamples: number().int(),
25776
+ flagged: number().int(),
25777
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25778
+ * only its current result. */
25779
+ flagThreshold: number(),
25780
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25781
+ * operator asked to see the gallery, not only its accusations. */
25782
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25783
+ });
25731
25784
  var FaceInfoSchema = object({
25732
25785
  faceId: string(),
25733
25786
  deviceId: number().int(),
@@ -25879,7 +25932,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25879
25932
  }), method(object({ id: string() }), _void(), {
25880
25933
  kind: "mutation",
25881
25934
  auth: "admin"
25882
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25935
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25883
25936
  identityId: string(),
25884
25937
  sampleId: string()
25885
25938
  }), _void(), {
@@ -36372,6 +36425,12 @@ Object.freeze({
36372
36425
  addonId: null,
36373
36426
  access: "create"
36374
36427
  },
36428
+ "faceGallery.auditIdentitySamples": {
36429
+ capName: "face-gallery",
36430
+ capScope: "system",
36431
+ addonId: null,
36432
+ access: "view"
36433
+ },
36375
36434
  "faceGallery.createIdentity": {
36376
36435
  capName: "face-gallery",
36377
36436
  capScope: "system",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-BpWL-De4.js");
6
+ const require_dist = require("../dist-B8yYEg2y.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-AOtMYWFQ.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-CCAzG3ec.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.100",
3
+ "version": "1.2.101",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",