@camstack/addon-provider-tuya 0.2.82 → 0.2.84

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.
@@ -30039,8 +30069,27 @@ var PrivacyMaskRegionSchema = object({
30039
30069
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
30040
30070
  var PrivacyMaskStatusSchema = object({
30041
30071
  enabled: boolean(),
30042
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
30043
- regions: array(PrivacyMaskRegionSchema),
30072
+ /**
30073
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
30074
+ *
30075
+ * `null` means "no answer" — the provider has never reached this camera
30076
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
30077
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
30078
+ * has no zones": those two look identical to an operator right up to the
30079
+ * moment one of them is acted on, and acting on them differs completely.
30080
+ * The switch group turned an unanswered read into *"nothing is set up for
30081
+ * it to act on"* — an instruction to go and draw a zone that already
30082
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
30083
+ * from deleting the mask it could not read.
30084
+ *
30085
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
30086
+ * has no zones. The distinction is the same one {@link
30087
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
30088
+ * microphone, on the very same payload — both planes come from ONE refresh,
30089
+ * so it was never coherent for one of them to be able to say "unknown"
30090
+ * while the other could not.
30091
+ */
30092
+ regions: array(PrivacyMaskRegionSchema).nullable(),
30044
30093
  /**
30045
30094
  * Is the camera capturing sound right now? Read from the camera, never from
30046
30095
  * a server-side mirror.
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.
@@ -30038,8 +30068,27 @@ var PrivacyMaskRegionSchema = object({
30038
30068
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
30039
30069
  var PrivacyMaskStatusSchema = object({
30040
30070
  enabled: boolean(),
30041
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
30042
- regions: array(PrivacyMaskRegionSchema),
30071
+ /**
30072
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
30073
+ *
30074
+ * `null` means "no answer" — the provider has never reached this camera
30075
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
30076
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
30077
+ * has no zones": those two look identical to an operator right up to the
30078
+ * moment one of them is acted on, and acting on them differs completely.
30079
+ * The switch group turned an unanswered read into *"nothing is set up for
30080
+ * it to act on"* — an instruction to go and draw a zone that already
30081
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
30082
+ * from deleting the mask it could not read.
30083
+ *
30084
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
30085
+ * has no zones. The distinction is the same one {@link
30086
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
30087
+ * microphone, on the very same payload — both planes come from ONE refresh,
30088
+ * so it was never coherent for one of them to be able to say "unknown"
30089
+ * while the other could not.
30090
+ */
30091
+ regions: array(PrivacyMaskRegionSchema).nullable(),
30043
30092
  /**
30044
30093
  * Is the camera capturing sound right now? Read from the camera, never from
30045
30094
  * a server-side mirror.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.82",
3
+ "version": "0.2.84",
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",