@camstack/addon-provider-tuya 0.2.131 → 0.2.132

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
@@ -61169,9 +61169,24 @@ var NpuInfoSchema = object({
61169
61169
  name: string().optional(),
61170
61170
  generation: _enum(["xdna1", "xdna2"]).optional()
61171
61171
  });
61172
+ var CoralBusSchema = _enum(["usb", "pci"]);
61172
61173
  var CoralInfoSchema = object({
61173
61174
  type: literal("coral-edgetpu"),
61174
- bus: string().optional()
61175
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61176
+ bus: string().optional(),
61177
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61178
+ count: number().int().nonnegative().optional(),
61179
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61180
+ units: array(object({
61181
+ bus: CoralBusSchema,
61182
+ count: number().int().nonnegative()
61183
+ })).readonly().optional(),
61184
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61185
+ unavailable: array(object({
61186
+ bus: CoralBusSchema,
61187
+ count: number().int().nonnegative(),
61188
+ reason: _enum(["driver-missing", "device-not-accessible"])
61189
+ })).readonly().optional()
61175
61190
  });
61176
61191
  var HardwareInfoSchema = object({
61177
61192
  platform: HardwarePlatformSchema,
package/dist/addon.mjs CHANGED
@@ -61168,9 +61168,24 @@ var NpuInfoSchema = object({
61168
61168
  name: string().optional(),
61169
61169
  generation: _enum(["xdna1", "xdna2"]).optional()
61170
61170
  });
61171
+ var CoralBusSchema = _enum(["usb", "pci"]);
61171
61172
  var CoralInfoSchema = object({
61172
61173
  type: literal("coral-edgetpu"),
61173
- bus: string().optional()
61174
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61175
+ bus: string().optional(),
61176
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61177
+ count: number().int().nonnegative().optional(),
61178
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61179
+ units: array(object({
61180
+ bus: CoralBusSchema,
61181
+ count: number().int().nonnegative()
61182
+ })).readonly().optional(),
61183
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61184
+ unavailable: array(object({
61185
+ bus: CoralBusSchema,
61186
+ count: number().int().nonnegative(),
61187
+ reason: _enum(["driver-missing", "device-not-accessible"])
61188
+ })).readonly().optional()
61174
61189
  });
61175
61190
  var HardwareInfoSchema = object({
61176
61191
  platform: HardwarePlatformSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.131",
3
+ "version": "0.2.132",
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",