@camstack/addon-provider-velux 0.2.83 → 0.2.85

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
@@ -18746,11 +18746,30 @@ var SensorEventSchema = object({
18746
18746
  value: record(string(), unknown()).nullable(),
18747
18747
  timestamp: number()
18748
18748
  });
18749
+ /**
18750
+ * One stored sighting on a track's trajectory.
18751
+ *
18752
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18753
+ * arrival order, and the two detector passes interleave, so a consumer must not
18754
+ * assume the two are the same on a row written by an older build.
18755
+ */
18749
18756
  var TrackPositionSchema = object({
18750
18757
  x: number(),
18751
18758
  y: number(),
18752
18759
  timestamp: number(),
18753
- bbox: BoundingBoxSchema
18760
+ bbox: BoundingBoxSchema,
18761
+ /**
18762
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18763
+ * pass on the analysis raster, `recovery` is the native-resolution
18764
+ * small-subject second pass (D377/D378). Both write into one array, and until
18765
+ * this field existed the only way to tell them apart was that full-frame boxes
18766
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18767
+ * Absent on rows written before D399.
18768
+ */
18769
+ source: _enum(["frame", "recovery"]).optional(),
18770
+ /** Detection score of this box, so a position can be weighed and not only
18771
+ * plotted. Absent on rows written before D399. */
18772
+ score: number().optional()
18754
18773
  });
18755
18774
  var TrackSnapshotSchema = object({
18756
18775
  timestamp: number(),
@@ -19150,14 +19169,25 @@ var TrackSchema = object({
19150
19169
  */
19151
19170
  hasRider: boolean().optional(),
19152
19171
  /**
19153
- * WHY this track ended without a NATIVE best-shot tile
19154
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19172
+ * WHY this track ended without a NATIVE best-shot FRAME
19173
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19174
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19155
19175
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19156
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19157
- * the late-keyFrame upgrade when a native tile lands after all. The
19158
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19176
+ * `derive-returned-null tile=standin`,
19177
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19178
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19179
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19159
19180
  * tile is a face/plate stand-in, a raster crop, or an icon.
19160
19181
  *
19182
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19183
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19184
+ * while its key frame missed carried no reason at all — three of the four
19185
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19186
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19187
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19188
+ * lastFrame copy source`), so its absence is now on this line whatever the
19189
+ * tile ended up being.
19190
+ *
19161
19191
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19162
19192
  * that predates the field, and every track whose tile landed native all
19163
19193
  * omit it. Render nothing when absent.
@@ -25221,6 +25251,59 @@ var IdentitySampleInfoSchema = object({
25221
25251
  deviceId: number().int().optional(),
25222
25252
  base64: string().optional()
25223
25253
  });
25254
+ /**
25255
+ * One enrolled sample, judged against the gallery it lives in.
25256
+ *
25257
+ * The gallery is the one input to recognition nobody re-reads: a sample
25258
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25259
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25260
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25261
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25262
+ * where every other cross-identity pair sits under 0.50.
25263
+ */
25264
+ var IdentitySampleAuditRowSchema = object({
25265
+ sampleId: string(),
25266
+ enrolledAt: number().int(),
25267
+ deviceId: number().int().optional(),
25268
+ source: _enum(["detected", "photo"]),
25269
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25270
+ mediaKey: string().optional(),
25271
+ /**
25272
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25273
+ * across feature spaces is a well-formed float with no meaning. Every number
25274
+ * below then says nothing — it must read as "cannot say", never as an
25275
+ * accusation and never as a clean bill: this list ends in a Remove button.
25276
+ */
25277
+ comparable: boolean(),
25278
+ /** Mean cosine against this person's other samples. Null when there are none
25279
+ * to compare with — never 0, which would read as "opposite". */
25280
+ selfMean: number().nullable(),
25281
+ /** The other person this sample looks most like, when it looks like one.
25282
+ * This is the half that convicts: not looking like yourself can be a hard
25283
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25284
+ bestForeign: object({
25285
+ identityId: string(),
25286
+ name: string(),
25287
+ score: number()
25288
+ }).optional(),
25289
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25290
+ suspicion: number()
25291
+ });
25292
+ var IdentitySampleAuditSchema = object({
25293
+ identityId: string(),
25294
+ name: string(),
25295
+ /** The cluster face model every comparison was made in. */
25296
+ modelId: string(),
25297
+ totalSamples: number().int(),
25298
+ comparableSamples: number().int(),
25299
+ flagged: number().int(),
25300
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25301
+ * only its current result. */
25302
+ flagThreshold: number(),
25303
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25304
+ * operator asked to see the gallery, not only its accusations. */
25305
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25306
+ });
25224
25307
  var FaceInfoSchema = object({
25225
25308
  faceId: string(),
25226
25309
  deviceId: number().int(),
@@ -25372,7 +25455,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25372
25455
  }), method(object({ id: string() }), _void(), {
25373
25456
  kind: "mutation",
25374
25457
  auth: "admin"
25375
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25458
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25376
25459
  identityId: string(),
25377
25460
  sampleId: string()
25378
25461
  }), _void(), {
@@ -35865,6 +35948,12 @@ Object.freeze({
35865
35948
  addonId: null,
35866
35949
  access: "create"
35867
35950
  },
35951
+ "faceGallery.auditIdentitySamples": {
35952
+ capName: "face-gallery",
35953
+ capScope: "system",
35954
+ addonId: null,
35955
+ access: "view"
35956
+ },
35868
35957
  "faceGallery.createIdentity": {
35869
35958
  capName: "face-gallery",
35870
35959
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18745,11 +18745,30 @@ var SensorEventSchema = object({
18745
18745
  value: record(string(), unknown()).nullable(),
18746
18746
  timestamp: number()
18747
18747
  });
18748
+ /**
18749
+ * One stored sighting on a track's trajectory.
18750
+ *
18751
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18752
+ * arrival order, and the two detector passes interleave, so a consumer must not
18753
+ * assume the two are the same on a row written by an older build.
18754
+ */
18748
18755
  var TrackPositionSchema = object({
18749
18756
  x: number(),
18750
18757
  y: number(),
18751
18758
  timestamp: number(),
18752
- bbox: BoundingBoxSchema
18759
+ bbox: BoundingBoxSchema,
18760
+ /**
18761
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18762
+ * pass on the analysis raster, `recovery` is the native-resolution
18763
+ * small-subject second pass (D377/D378). Both write into one array, and until
18764
+ * this field existed the only way to tell them apart was that full-frame boxes
18765
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18766
+ * Absent on rows written before D399.
18767
+ */
18768
+ source: _enum(["frame", "recovery"]).optional(),
18769
+ /** Detection score of this box, so a position can be weighed and not only
18770
+ * plotted. Absent on rows written before D399. */
18771
+ score: number().optional()
18753
18772
  });
18754
18773
  var TrackSnapshotSchema = object({
18755
18774
  timestamp: number(),
@@ -19149,14 +19168,25 @@ var TrackSchema = object({
19149
19168
  */
19150
19169
  hasRider: boolean().optional(),
19151
19170
  /**
19152
- * WHY this track ended without a NATIVE best-shot tile
19153
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19171
+ * WHY this track ended without a NATIVE best-shot FRAME
19172
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19173
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19154
19174
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19155
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19156
- * the late-keyFrame upgrade when a native tile lands after all. The
19157
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19175
+ * `derive-returned-null tile=standin`,
19176
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19177
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19178
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19158
19179
  * tile is a face/plate stand-in, a raster crop, or an icon.
19159
19180
  *
19181
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19182
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19183
+ * while its key frame missed carried no reason at all — three of the four
19184
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19185
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19186
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19187
+ * lastFrame copy source`), so its absence is now on this line whatever the
19188
+ * tile ended up being.
19189
+ *
19160
19190
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19161
19191
  * that predates the field, and every track whose tile landed native all
19162
19192
  * omit it. Render nothing when absent.
@@ -25220,6 +25250,59 @@ var IdentitySampleInfoSchema = object({
25220
25250
  deviceId: number().int().optional(),
25221
25251
  base64: string().optional()
25222
25252
  });
25253
+ /**
25254
+ * One enrolled sample, judged against the gallery it lives in.
25255
+ *
25256
+ * The gallery is the one input to recognition nobody re-reads: a sample
25257
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25258
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25259
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25260
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25261
+ * where every other cross-identity pair sits under 0.50.
25262
+ */
25263
+ var IdentitySampleAuditRowSchema = object({
25264
+ sampleId: string(),
25265
+ enrolledAt: number().int(),
25266
+ deviceId: number().int().optional(),
25267
+ source: _enum(["detected", "photo"]),
25268
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25269
+ mediaKey: string().optional(),
25270
+ /**
25271
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25272
+ * across feature spaces is a well-formed float with no meaning. Every number
25273
+ * below then says nothing — it must read as "cannot say", never as an
25274
+ * accusation and never as a clean bill: this list ends in a Remove button.
25275
+ */
25276
+ comparable: boolean(),
25277
+ /** Mean cosine against this person's other samples. Null when there are none
25278
+ * to compare with — never 0, which would read as "opposite". */
25279
+ selfMean: number().nullable(),
25280
+ /** The other person this sample looks most like, when it looks like one.
25281
+ * This is the half that convicts: not looking like yourself can be a hard
25282
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25283
+ bestForeign: object({
25284
+ identityId: string(),
25285
+ name: string(),
25286
+ score: number()
25287
+ }).optional(),
25288
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25289
+ suspicion: number()
25290
+ });
25291
+ var IdentitySampleAuditSchema = object({
25292
+ identityId: string(),
25293
+ name: string(),
25294
+ /** The cluster face model every comparison was made in. */
25295
+ modelId: string(),
25296
+ totalSamples: number().int(),
25297
+ comparableSamples: number().int(),
25298
+ flagged: number().int(),
25299
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25300
+ * only its current result. */
25301
+ flagThreshold: number(),
25302
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25303
+ * operator asked to see the gallery, not only its accusations. */
25304
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25305
+ });
25223
25306
  var FaceInfoSchema = object({
25224
25307
  faceId: string(),
25225
25308
  deviceId: number().int(),
@@ -25371,7 +25454,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25371
25454
  }), method(object({ id: string() }), _void(), {
25372
25455
  kind: "mutation",
25373
25456
  auth: "admin"
25374
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25457
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25375
25458
  identityId: string(),
25376
25459
  sampleId: string()
25377
25460
  }), _void(), {
@@ -35864,6 +35947,12 @@ Object.freeze({
35864
35947
  addonId: null,
35865
35948
  access: "create"
35866
35949
  },
35950
+ "faceGallery.auditIdentitySamples": {
35951
+ capName: "face-gallery",
35952
+ capScope: "system",
35953
+ addonId: null,
35954
+ access: "view"
35955
+ },
35867
35956
  "faceGallery.createIdentity": {
35868
35957
  capName: "face-gallery",
35869
35958
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-velux",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "description": "Velux KLF-200 device-provider addon for CamStack — local-gateway window + shutter covers (positional, no tilt)",
5
5
  "keywords": [
6
6
  "camstack",