@camstack/addon-provider-tuya 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
@@ -19583,11 +19583,30 @@ var SensorEventSchema = object({
19583
19583
  value: record(string(), unknown()).nullable(),
19584
19584
  timestamp: number()
19585
19585
  });
19586
+ /**
19587
+ * One stored sighting on a track's trajectory.
19588
+ *
19589
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
19590
+ * arrival order, and the two detector passes interleave, so a consumer must not
19591
+ * assume the two are the same on a row written by an older build.
19592
+ */
19586
19593
  var TrackPositionSchema = object({
19587
19594
  x: number(),
19588
19595
  y: number(),
19589
19596
  timestamp: number(),
19590
- bbox: BoundingBoxSchema
19597
+ bbox: BoundingBoxSchema,
19598
+ /**
19599
+ * Which detector pass measured this box (D399): `frame` is the full-frame
19600
+ * pass on the analysis raster, `recovery` is the native-resolution
19601
+ * small-subject second pass (D377/D378). Both write into one array, and until
19602
+ * this field existed the only way to tell them apart was that full-frame boxes
19603
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
19604
+ * Absent on rows written before D399.
19605
+ */
19606
+ source: _enum(["frame", "recovery"]).optional(),
19607
+ /** Detection score of this box, so a position can be weighed and not only
19608
+ * plotted. Absent on rows written before D399. */
19609
+ score: number().optional()
19591
19610
  });
19592
19611
  var TrackSnapshotSchema = object({
19593
19612
  timestamp: number(),
@@ -19987,14 +20006,25 @@ var TrackSchema = object({
19987
20006
  */
19988
20007
  hasRider: boolean().optional(),
19989
20008
  /**
19990
- * WHY this track ended without a NATIVE best-shot tile
19991
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
20009
+ * WHY this track ended without a NATIVE best-shot FRAME
20010
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
20011
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19992
20012
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19993
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19994
- * the late-keyFrame upgrade when a native tile lands after all. The
19995
- * operator-facing answer to "perché manca l'immagine?" on a track whose
20013
+ * `derive-returned-null tile=standin`,
20014
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
20015
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
20016
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19996
20017
  * tile is a face/plate stand-in, a raster crop, or an icon.
19997
20018
  *
20019
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
20020
+ * the TILE ranked below native, so a track whose thumbnail landed natively
20021
+ * while its key frame missed carried no reason at all — three of the four
20022
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
20023
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
20024
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
20025
+ * lastFrame copy source`), so its absence is now on this line whatever the
20026
+ * tile ended up being.
20027
+ *
19998
20028
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19999
20029
  * that predates the field, and every track whose tile landed native all
20000
20030
  * omit it. Render nothing when absent.
@@ -26066,6 +26096,59 @@ var IdentitySampleInfoSchema = object({
26066
26096
  deviceId: number().int().optional(),
26067
26097
  base64: string().optional()
26068
26098
  });
26099
+ /**
26100
+ * One enrolled sample, judged against the gallery it lives in.
26101
+ *
26102
+ * The gallery is the one input to recognition nobody re-reads: a sample
26103
+ * enrolled from the wrong face keeps voting forever, and because the matches it
26104
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
26105
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
26106
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
26107
+ * where every other cross-identity pair sits under 0.50.
26108
+ */
26109
+ var IdentitySampleAuditRowSchema = object({
26110
+ sampleId: string(),
26111
+ enrolledAt: number().int(),
26112
+ deviceId: number().int().optional(),
26113
+ source: _enum(["detected", "photo"]),
26114
+ /** The enrolled crop's media key, so the panel can show the evidence. */
26115
+ mediaKey: string().optional(),
26116
+ /**
26117
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
26118
+ * across feature spaces is a well-formed float with no meaning. Every number
26119
+ * below then says nothing — it must read as "cannot say", never as an
26120
+ * accusation and never as a clean bill: this list ends in a Remove button.
26121
+ */
26122
+ comparable: boolean(),
26123
+ /** Mean cosine against this person's other samples. Null when there are none
26124
+ * to compare with — never 0, which would read as "opposite". */
26125
+ selfMean: number().nullable(),
26126
+ /** The other person this sample looks most like, when it looks like one.
26127
+ * This is the half that convicts: not looking like yourself can be a hard
26128
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
26129
+ bestForeign: object({
26130
+ identityId: string(),
26131
+ name: string(),
26132
+ score: number()
26133
+ }).optional(),
26134
+ /** 0 = nothing to say. Higher = look at this one sooner. */
26135
+ suspicion: number()
26136
+ });
26137
+ var IdentitySampleAuditSchema = object({
26138
+ identityId: string(),
26139
+ name: string(),
26140
+ /** The cluster face model every comparison was made in. */
26141
+ modelId: string(),
26142
+ totalSamples: number().int(),
26143
+ comparableSamples: number().int(),
26144
+ flagged: number().int(),
26145
+ /** The bar `flagged` counts against, so the panel states the RULE and not
26146
+ * only its current result. */
26147
+ flagThreshold: number(),
26148
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
26149
+ * operator asked to see the gallery, not only its accusations. */
26150
+ rows: array(IdentitySampleAuditRowSchema).readonly()
26151
+ });
26069
26152
  var FaceInfoSchema = object({
26070
26153
  faceId: string(),
26071
26154
  deviceId: number().int(),
@@ -26217,7 +26300,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
26217
26300
  }), method(object({ id: string() }), _void(), {
26218
26301
  kind: "mutation",
26219
26302
  auth: "admin"
26220
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
26303
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
26221
26304
  identityId: string(),
26222
26305
  sampleId: string()
26223
26306
  }), _void(), {
@@ -36710,6 +36793,12 @@ Object.freeze({
36710
36793
  addonId: null,
36711
36794
  access: "create"
36712
36795
  },
36796
+ "faceGallery.auditIdentitySamples": {
36797
+ capName: "face-gallery",
36798
+ capScope: "system",
36799
+ addonId: null,
36800
+ access: "view"
36801
+ },
36713
36802
  "faceGallery.createIdentity": {
36714
36803
  capName: "face-gallery",
36715
36804
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -19582,11 +19582,30 @@ var SensorEventSchema = object({
19582
19582
  value: record(string(), unknown()).nullable(),
19583
19583
  timestamp: number()
19584
19584
  });
19585
+ /**
19586
+ * One stored sighting on a track's trajectory.
19587
+ *
19588
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
19589
+ * arrival order, and the two detector passes interleave, so a consumer must not
19590
+ * assume the two are the same on a row written by an older build.
19591
+ */
19585
19592
  var TrackPositionSchema = object({
19586
19593
  x: number(),
19587
19594
  y: number(),
19588
19595
  timestamp: number(),
19589
- bbox: BoundingBoxSchema
19596
+ bbox: BoundingBoxSchema,
19597
+ /**
19598
+ * Which detector pass measured this box (D399): `frame` is the full-frame
19599
+ * pass on the analysis raster, `recovery` is the native-resolution
19600
+ * small-subject second pass (D377/D378). Both write into one array, and until
19601
+ * this field existed the only way to tell them apart was that full-frame boxes
19602
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
19603
+ * Absent on rows written before D399.
19604
+ */
19605
+ source: _enum(["frame", "recovery"]).optional(),
19606
+ /** Detection score of this box, so a position can be weighed and not only
19607
+ * plotted. Absent on rows written before D399. */
19608
+ score: number().optional()
19590
19609
  });
19591
19610
  var TrackSnapshotSchema = object({
19592
19611
  timestamp: number(),
@@ -19986,14 +20005,25 @@ var TrackSchema = object({
19986
20005
  */
19987
20006
  hasRider: boolean().optional(),
19988
20007
  /**
19989
- * WHY this track ended without a NATIVE best-shot tile
19990
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
20008
+ * WHY this track ended without a NATIVE best-shot FRAME
20009
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
20010
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19991
20011
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19992
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19993
- * the late-keyFrame upgrade when a native tile lands after all. The
19994
- * operator-facing answer to "perché manca l'immagine?" on a track whose
20012
+ * `derive-returned-null tile=standin`,
20013
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
20014
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
20015
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19995
20016
  * tile is a face/plate stand-in, a raster crop, or an icon.
19996
20017
  *
20018
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
20019
+ * the TILE ranked below native, so a track whose thumbnail landed natively
20020
+ * while its key frame missed carried no reason at all — three of the four
20021
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
20022
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
20023
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
20024
+ * lastFrame copy source`), so its absence is now on this line whatever the
20025
+ * tile ended up being.
20026
+ *
19997
20027
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19998
20028
  * that predates the field, and every track whose tile landed native all
19999
20029
  * omit it. Render nothing when absent.
@@ -26065,6 +26095,59 @@ var IdentitySampleInfoSchema = object({
26065
26095
  deviceId: number().int().optional(),
26066
26096
  base64: string().optional()
26067
26097
  });
26098
+ /**
26099
+ * One enrolled sample, judged against the gallery it lives in.
26100
+ *
26101
+ * The gallery is the one input to recognition nobody re-reads: a sample
26102
+ * enrolled from the wrong face keeps voting forever, and because the matches it
26103
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
26104
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
26105
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
26106
+ * where every other cross-identity pair sits under 0.50.
26107
+ */
26108
+ var IdentitySampleAuditRowSchema = object({
26109
+ sampleId: string(),
26110
+ enrolledAt: number().int(),
26111
+ deviceId: number().int().optional(),
26112
+ source: _enum(["detected", "photo"]),
26113
+ /** The enrolled crop's media key, so the panel can show the evidence. */
26114
+ mediaKey: string().optional(),
26115
+ /**
26116
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
26117
+ * across feature spaces is a well-formed float with no meaning. Every number
26118
+ * below then says nothing — it must read as "cannot say", never as an
26119
+ * accusation and never as a clean bill: this list ends in a Remove button.
26120
+ */
26121
+ comparable: boolean(),
26122
+ /** Mean cosine against this person's other samples. Null when there are none
26123
+ * to compare with — never 0, which would read as "opposite". */
26124
+ selfMean: number().nullable(),
26125
+ /** The other person this sample looks most like, when it looks like one.
26126
+ * This is the half that convicts: not looking like yourself can be a hard
26127
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
26128
+ bestForeign: object({
26129
+ identityId: string(),
26130
+ name: string(),
26131
+ score: number()
26132
+ }).optional(),
26133
+ /** 0 = nothing to say. Higher = look at this one sooner. */
26134
+ suspicion: number()
26135
+ });
26136
+ var IdentitySampleAuditSchema = object({
26137
+ identityId: string(),
26138
+ name: string(),
26139
+ /** The cluster face model every comparison was made in. */
26140
+ modelId: string(),
26141
+ totalSamples: number().int(),
26142
+ comparableSamples: number().int(),
26143
+ flagged: number().int(),
26144
+ /** The bar `flagged` counts against, so the panel states the RULE and not
26145
+ * only its current result. */
26146
+ flagThreshold: number(),
26147
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
26148
+ * operator asked to see the gallery, not only its accusations. */
26149
+ rows: array(IdentitySampleAuditRowSchema).readonly()
26150
+ });
26068
26151
  var FaceInfoSchema = object({
26069
26152
  faceId: string(),
26070
26153
  deviceId: number().int(),
@@ -26216,7 +26299,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
26216
26299
  }), method(object({ id: string() }), _void(), {
26217
26300
  kind: "mutation",
26218
26301
  auth: "admin"
26219
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
26302
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
26220
26303
  identityId: string(),
26221
26304
  sampleId: string()
26222
26305
  }), _void(), {
@@ -36709,6 +36792,12 @@ Object.freeze({
36709
36792
  addonId: null,
36710
36793
  access: "create"
36711
36794
  },
36795
+ "faceGallery.auditIdentitySamples": {
36796
+ capName: "face-gallery",
36797
+ capScope: "system",
36798
+ addonId: null,
36799
+ access: "view"
36800
+ },
36712
36801
  "faceGallery.createIdentity": {
36713
36802
  capName: "face-gallery",
36714
36803
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",