@camstack/addon-provider-homematic 1.2.84 → 1.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
@@ -18821,11 +18821,30 @@ var SensorEventSchema = object({
18821
18821
  value: record(string(), unknown()).nullable(),
18822
18822
  timestamp: number()
18823
18823
  });
18824
+ /**
18825
+ * One stored sighting on a track's trajectory.
18826
+ *
18827
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18828
+ * arrival order, and the two detector passes interleave, so a consumer must not
18829
+ * assume the two are the same on a row written by an older build.
18830
+ */
18824
18831
  var TrackPositionSchema = object({
18825
18832
  x: number(),
18826
18833
  y: number(),
18827
18834
  timestamp: number(),
18828
- bbox: BoundingBoxSchema
18835
+ bbox: BoundingBoxSchema,
18836
+ /**
18837
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18838
+ * pass on the analysis raster, `recovery` is the native-resolution
18839
+ * small-subject second pass (D377/D378). Both write into one array, and until
18840
+ * this field existed the only way to tell them apart was that full-frame boxes
18841
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18842
+ * Absent on rows written before D399.
18843
+ */
18844
+ source: _enum(["frame", "recovery"]).optional(),
18845
+ /** Detection score of this box, so a position can be weighed and not only
18846
+ * plotted. Absent on rows written before D399. */
18847
+ score: number().optional()
18829
18848
  });
18830
18849
  var TrackSnapshotSchema = object({
18831
18850
  timestamp: number(),
@@ -19225,14 +19244,25 @@ var TrackSchema = object({
19225
19244
  */
19226
19245
  hasRider: boolean().optional(),
19227
19246
  /**
19228
- * WHY this track ended without a NATIVE best-shot tile
19229
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19247
+ * WHY this track ended without a NATIVE best-shot FRAME
19248
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19249
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19230
19250
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19231
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19232
- * the late-keyFrame upgrade when a native tile lands after all. The
19233
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19251
+ * `derive-returned-null tile=standin`,
19252
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19253
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19254
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19234
19255
  * tile is a face/plate stand-in, a raster crop, or an icon.
19235
19256
  *
19257
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19258
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19259
+ * while its key frame missed carried no reason at all — three of the four
19260
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19261
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19262
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19263
+ * lastFrame copy source`), so its absence is now on this line whatever the
19264
+ * tile ended up being.
19265
+ *
19236
19266
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19237
19267
  * that predates the field, and every track whose tile landed native all
19238
19268
  * omit it. Render nothing when absent.
@@ -25296,6 +25326,59 @@ var IdentitySampleInfoSchema = object({
25296
25326
  deviceId: number().int().optional(),
25297
25327
  base64: string().optional()
25298
25328
  });
25329
+ /**
25330
+ * One enrolled sample, judged against the gallery it lives in.
25331
+ *
25332
+ * The gallery is the one input to recognition nobody re-reads: a sample
25333
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25334
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25335
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25336
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25337
+ * where every other cross-identity pair sits under 0.50.
25338
+ */
25339
+ var IdentitySampleAuditRowSchema = object({
25340
+ sampleId: string(),
25341
+ enrolledAt: number().int(),
25342
+ deviceId: number().int().optional(),
25343
+ source: _enum(["detected", "photo"]),
25344
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25345
+ mediaKey: string().optional(),
25346
+ /**
25347
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25348
+ * across feature spaces is a well-formed float with no meaning. Every number
25349
+ * below then says nothing — it must read as "cannot say", never as an
25350
+ * accusation and never as a clean bill: this list ends in a Remove button.
25351
+ */
25352
+ comparable: boolean(),
25353
+ /** Mean cosine against this person's other samples. Null when there are none
25354
+ * to compare with — never 0, which would read as "opposite". */
25355
+ selfMean: number().nullable(),
25356
+ /** The other person this sample looks most like, when it looks like one.
25357
+ * This is the half that convicts: not looking like yourself can be a hard
25358
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25359
+ bestForeign: object({
25360
+ identityId: string(),
25361
+ name: string(),
25362
+ score: number()
25363
+ }).optional(),
25364
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25365
+ suspicion: number()
25366
+ });
25367
+ var IdentitySampleAuditSchema = object({
25368
+ identityId: string(),
25369
+ name: string(),
25370
+ /** The cluster face model every comparison was made in. */
25371
+ modelId: string(),
25372
+ totalSamples: number().int(),
25373
+ comparableSamples: number().int(),
25374
+ flagged: number().int(),
25375
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25376
+ * only its current result. */
25377
+ flagThreshold: number(),
25378
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25379
+ * operator asked to see the gallery, not only its accusations. */
25380
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25381
+ });
25299
25382
  var FaceInfoSchema = object({
25300
25383
  faceId: string(),
25301
25384
  deviceId: number().int(),
@@ -25447,7 +25530,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25447
25530
  }), method(object({ id: string() }), _void(), {
25448
25531
  kind: "mutation",
25449
25532
  auth: "admin"
25450
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25533
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25451
25534
  identityId: string(),
25452
25535
  sampleId: string()
25453
25536
  }), _void(), {
@@ -35940,6 +36023,12 @@ Object.freeze({
35940
36023
  addonId: null,
35941
36024
  access: "create"
35942
36025
  },
36026
+ "faceGallery.auditIdentitySamples": {
36027
+ capName: "face-gallery",
36028
+ capScope: "system",
36029
+ addonId: null,
36030
+ access: "view"
36031
+ },
35943
36032
  "faceGallery.createIdentity": {
35944
36033
  capName: "face-gallery",
35945
36034
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18822,11 +18822,30 @@ var SensorEventSchema = object({
18822
18822
  value: record(string(), unknown()).nullable(),
18823
18823
  timestamp: number()
18824
18824
  });
18825
+ /**
18826
+ * One stored sighting on a track's trajectory.
18827
+ *
18828
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18829
+ * arrival order, and the two detector passes interleave, so a consumer must not
18830
+ * assume the two are the same on a row written by an older build.
18831
+ */
18825
18832
  var TrackPositionSchema = object({
18826
18833
  x: number(),
18827
18834
  y: number(),
18828
18835
  timestamp: number(),
18829
- bbox: BoundingBoxSchema
18836
+ bbox: BoundingBoxSchema,
18837
+ /**
18838
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18839
+ * pass on the analysis raster, `recovery` is the native-resolution
18840
+ * small-subject second pass (D377/D378). Both write into one array, and until
18841
+ * this field existed the only way to tell them apart was that full-frame boxes
18842
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18843
+ * Absent on rows written before D399.
18844
+ */
18845
+ source: _enum(["frame", "recovery"]).optional(),
18846
+ /** Detection score of this box, so a position can be weighed and not only
18847
+ * plotted. Absent on rows written before D399. */
18848
+ score: number().optional()
18830
18849
  });
18831
18850
  var TrackSnapshotSchema = object({
18832
18851
  timestamp: number(),
@@ -19226,14 +19245,25 @@ var TrackSchema = object({
19226
19245
  */
19227
19246
  hasRider: boolean().optional(),
19228
19247
  /**
19229
- * WHY this track ended without a NATIVE best-shot tile
19230
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19248
+ * WHY this track ended without a NATIVE best-shot FRAME
19249
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19250
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19231
19251
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19232
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19233
- * the late-keyFrame upgrade when a native tile lands after all. The
19234
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19252
+ * `derive-returned-null tile=standin`,
19253
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19254
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19255
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19235
19256
  * tile is a face/plate stand-in, a raster crop, or an icon.
19236
19257
  *
19258
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19259
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19260
+ * while its key frame missed carried no reason at all — three of the four
19261
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19262
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19263
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19264
+ * lastFrame copy source`), so its absence is now on this line whatever the
19265
+ * tile ended up being.
19266
+ *
19237
19267
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19238
19268
  * that predates the field, and every track whose tile landed native all
19239
19269
  * omit it. Render nothing when absent.
@@ -25297,6 +25327,59 @@ var IdentitySampleInfoSchema = object({
25297
25327
  deviceId: number().int().optional(),
25298
25328
  base64: string().optional()
25299
25329
  });
25330
+ /**
25331
+ * One enrolled sample, judged against the gallery it lives in.
25332
+ *
25333
+ * The gallery is the one input to recognition nobody re-reads: a sample
25334
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25335
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25336
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25337
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25338
+ * where every other cross-identity pair sits under 0.50.
25339
+ */
25340
+ var IdentitySampleAuditRowSchema = object({
25341
+ sampleId: string(),
25342
+ enrolledAt: number().int(),
25343
+ deviceId: number().int().optional(),
25344
+ source: _enum(["detected", "photo"]),
25345
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25346
+ mediaKey: string().optional(),
25347
+ /**
25348
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25349
+ * across feature spaces is a well-formed float with no meaning. Every number
25350
+ * below then says nothing — it must read as "cannot say", never as an
25351
+ * accusation and never as a clean bill: this list ends in a Remove button.
25352
+ */
25353
+ comparable: boolean(),
25354
+ /** Mean cosine against this person's other samples. Null when there are none
25355
+ * to compare with — never 0, which would read as "opposite". */
25356
+ selfMean: number().nullable(),
25357
+ /** The other person this sample looks most like, when it looks like one.
25358
+ * This is the half that convicts: not looking like yourself can be a hard
25359
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25360
+ bestForeign: object({
25361
+ identityId: string(),
25362
+ name: string(),
25363
+ score: number()
25364
+ }).optional(),
25365
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25366
+ suspicion: number()
25367
+ });
25368
+ var IdentitySampleAuditSchema = object({
25369
+ identityId: string(),
25370
+ name: string(),
25371
+ /** The cluster face model every comparison was made in. */
25372
+ modelId: string(),
25373
+ totalSamples: number().int(),
25374
+ comparableSamples: number().int(),
25375
+ flagged: number().int(),
25376
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25377
+ * only its current result. */
25378
+ flagThreshold: number(),
25379
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25380
+ * operator asked to see the gallery, not only its accusations. */
25381
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25382
+ });
25300
25383
  var FaceInfoSchema = object({
25301
25384
  faceId: string(),
25302
25385
  deviceId: number().int(),
@@ -25448,7 +25531,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25448
25531
  }), method(object({ id: string() }), _void(), {
25449
25532
  kind: "mutation",
25450
25533
  auth: "admin"
25451
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25534
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25452
25535
  identityId: string(),
25453
25536
  sampleId: string()
25454
25537
  }), _void(), {
@@ -35941,6 +36024,12 @@ Object.freeze({
35941
36024
  addonId: null,
35942
36025
  access: "create"
35943
36026
  },
36027
+ "faceGallery.auditIdentitySamples": {
36028
+ capName: "face-gallery",
36029
+ capScope: "system",
36030
+ addonId: null,
36031
+ access: "view"
36032
+ },
35944
36033
  "faceGallery.createIdentity": {
35945
36034
  capName: "face-gallery",
35946
36035
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.84",
3
+ "version": "1.2.86",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",