@camstack/addon-provider-tuya 0.2.131 → 0.2.133

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
@@ -6234,7 +6234,7 @@ var ZodIssueCode = {
6234
6234
  var ZodFirstPartyTypeKind;
6235
6235
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6236
6236
  //#endregion
6237
- //#region ../types/dist/sleep-BSuCCFjf.mjs
6237
+ //#region ../types/dist/sleep-CSuN0thG.mjs
6238
6238
  /**
6239
6239
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6240
6240
  * window to float samples (D455).
@@ -8782,7 +8782,13 @@ var RecordKindDeclarationSchema = object({
8782
8782
  secretPaths: array(string().min(1)).default([]),
8783
8783
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8784
8784
  secretArrayKeys: record(string(), string()).default({}),
8785
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8785
+ /**
8786
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8787
+ * migration. Nothing declares it any more and nothing reads it; the schema
8788
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8789
+ * (an orphaned kind is never redeclared) and an addon built before the
8790
+ * removal still sends it. Never set it.
8791
+ */
8786
8792
  adoptsFrom: string().min(1).optional(),
8787
8793
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8788
8794
  transactFamily: string().min(1).optional(),
@@ -17454,11 +17460,12 @@ var DeclareKindResultSchema = object({
17454
17460
  kindId: number().int(),
17455
17461
  state: RecordKindStateSchema,
17456
17462
  createdIndexes: array(string()),
17457
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17458
- adoptionPending: object({
17459
- legacyTable: string(),
17460
- legacyRows: number().int()
17461
- }).nullable()
17463
+ /**
17464
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17465
+ * it stays on the wire, null, because an addon built before the removal reads
17466
+ * an ABSENT field as "adoption pending" and refuses to start.
17467
+ */
17468
+ adoptionPending: _null()
17462
17469
  });
17463
17470
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17464
17471
  var SecretRefsList = array(string());
@@ -17631,26 +17638,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17631
17638
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17632
17639
  owner: string().min(1),
17633
17640
  kind: RecordKindNameSchema
17634
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17635
- owner: string().min(1),
17636
- kind: RecordKindNameSchema,
17637
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17638
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17639
- complete: boolean().optional()
17640
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17641
- kind: "mutation",
17642
- auth: "admin"
17643
- }), method(object({
17644
- collection: string().min(1),
17645
- cursor: string().optional(),
17646
- limit: number().int().min(1).max(1e3).optional()
17647
- }), object({
17648
- rows: array(object({
17649
- id: string(),
17650
- data: record(string(), unknown())
17651
- })),
17652
- nextCursor: string().nullable()
17653
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17641
+ }), RecordQueryResultSchema, { auth: "admin" });
17654
17642
  /**
17655
17643
  * record-entries - the ONE admin surface for every list of user-created entries
17656
17644
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -61169,9 +61157,24 @@ var NpuInfoSchema = object({
61169
61157
  name: string().optional(),
61170
61158
  generation: _enum(["xdna1", "xdna2"]).optional()
61171
61159
  });
61160
+ var CoralBusSchema = _enum(["usb", "pci"]);
61172
61161
  var CoralInfoSchema = object({
61173
61162
  type: literal("coral-edgetpu"),
61174
- bus: string().optional()
61163
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61164
+ bus: string().optional(),
61165
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61166
+ count: number().int().nonnegative().optional(),
61167
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61168
+ units: array(object({
61169
+ bus: CoralBusSchema,
61170
+ count: number().int().nonnegative()
61171
+ })).readonly().optional(),
61172
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61173
+ unavailable: array(object({
61174
+ bus: CoralBusSchema,
61175
+ count: number().int().nonnegative(),
61176
+ reason: _enum(["driver-missing", "device-not-accessible"])
61177
+ })).readonly().optional()
61175
61178
  });
61176
61179
  var HardwareInfoSchema = object({
61177
61180
  platform: HardwarePlatformSchema,
@@ -69918,6 +69921,12 @@ Object.freeze({
69918
69921
  addonId: null,
69919
69922
  access: "view"
69920
69923
  },
69924
+ "deviceHistory.queryMany": {
69925
+ capName: "device-history",
69926
+ capScope: "system",
69927
+ addonId: null,
69928
+ access: "view"
69929
+ },
69921
69930
  "deviceHistory.queryNode": {
69922
69931
  capName: "device-history",
69923
69932
  capScope: "system",
@@ -75138,24 +75147,12 @@ Object.freeze({
75138
75147
  addonId: null,
75139
75148
  access: "create"
75140
75149
  },
75141
- "storageAdmin.adoptRecords": {
75142
- capName: "storage-admin",
75143
- capScope: "system",
75144
- addonId: null,
75145
- access: "create"
75146
- },
75147
75150
  "storageAdmin.dropCollection": {
75148
75151
  capName: "storage-admin",
75149
75152
  capScope: "system",
75150
75153
  addonId: null,
75151
75154
  access: "delete"
75152
75155
  },
75153
- "storageAdmin.isAdoptedLegacyTable": {
75154
- capName: "storage-admin",
75155
- capScope: "system",
75156
- addonId: null,
75157
- access: "view"
75158
- },
75159
75156
  "storageAdmin.listKinds": {
75160
75157
  capName: "storage-admin",
75161
75158
  capScope: "system",
@@ -75168,12 +75165,6 @@ Object.freeze({
75168
75165
  addonId: null,
75169
75166
  access: "view"
75170
75167
  },
75171
- "storageAdmin.readLegacyCollection": {
75172
- capName: "storage-admin",
75173
- capScope: "system",
75174
- addonId: null,
75175
- access: "view"
75176
- },
75177
75168
  "storageAdmin.readRecords": {
75178
75169
  capName: "storage-admin",
75179
75170
  capScope: "system",
@@ -78988,12 +78979,6 @@ Object.freeze({
78988
78979
  form: "single",
78989
78980
  optional: false
78990
78981
  }],
78991
- "storageAdmin.adoptRecords": [{
78992
- name: "records",
78993
- form: "object-array",
78994
- optional: false,
78995
- itemField: "deviceId"
78996
- }],
78997
78982
  "storageAdmin.readRecords": [{
78998
78983
  name: "deviceId",
78999
78984
  form: "single",
package/dist/addon.mjs CHANGED
@@ -6233,7 +6233,7 @@ var ZodIssueCode = {
6233
6233
  var ZodFirstPartyTypeKind;
6234
6234
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6235
6235
  //#endregion
6236
- //#region ../types/dist/sleep-BSuCCFjf.mjs
6236
+ //#region ../types/dist/sleep-CSuN0thG.mjs
6237
6237
  /**
6238
6238
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6239
6239
  * window to float samples (D455).
@@ -8781,7 +8781,13 @@ var RecordKindDeclarationSchema = object({
8781
8781
  secretPaths: array(string().min(1)).default([]),
8782
8782
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8783
8783
  secretArrayKeys: record(string(), string()).default({}),
8784
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8784
+ /**
8785
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8786
+ * migration. Nothing declares it any more and nothing reads it; the schema
8787
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8788
+ * (an orphaned kind is never redeclared) and an addon built before the
8789
+ * removal still sends it. Never set it.
8790
+ */
8785
8791
  adoptsFrom: string().min(1).optional(),
8786
8792
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8787
8793
  transactFamily: string().min(1).optional(),
@@ -17453,11 +17459,12 @@ var DeclareKindResultSchema = object({
17453
17459
  kindId: number().int(),
17454
17460
  state: RecordKindStateSchema,
17455
17461
  createdIndexes: array(string()),
17456
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17457
- adoptionPending: object({
17458
- legacyTable: string(),
17459
- legacyRows: number().int()
17460
- }).nullable()
17462
+ /**
17463
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17464
+ * it stays on the wire, null, because an addon built before the removal reads
17465
+ * an ABSENT field as "adoption pending" and refuses to start.
17466
+ */
17467
+ adoptionPending: _null()
17461
17468
  });
17462
17469
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17463
17470
  var SecretRefsList = array(string());
@@ -17630,26 +17637,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17630
17637
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17631
17638
  owner: string().min(1),
17632
17639
  kind: RecordKindNameSchema
17633
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17634
- owner: string().min(1),
17635
- kind: RecordKindNameSchema,
17636
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17637
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17638
- complete: boolean().optional()
17639
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17640
- kind: "mutation",
17641
- auth: "admin"
17642
- }), method(object({
17643
- collection: string().min(1),
17644
- cursor: string().optional(),
17645
- limit: number().int().min(1).max(1e3).optional()
17646
- }), object({
17647
- rows: array(object({
17648
- id: string(),
17649
- data: record(string(), unknown())
17650
- })),
17651
- nextCursor: string().nullable()
17652
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17640
+ }), RecordQueryResultSchema, { auth: "admin" });
17653
17641
  /**
17654
17642
  * record-entries - the ONE admin surface for every list of user-created entries
17655
17643
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -61168,9 +61156,24 @@ var NpuInfoSchema = object({
61168
61156
  name: string().optional(),
61169
61157
  generation: _enum(["xdna1", "xdna2"]).optional()
61170
61158
  });
61159
+ var CoralBusSchema = _enum(["usb", "pci"]);
61171
61160
  var CoralInfoSchema = object({
61172
61161
  type: literal("coral-edgetpu"),
61173
- bus: string().optional()
61162
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61163
+ bus: string().optional(),
61164
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61165
+ count: number().int().nonnegative().optional(),
61166
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61167
+ units: array(object({
61168
+ bus: CoralBusSchema,
61169
+ count: number().int().nonnegative()
61170
+ })).readonly().optional(),
61171
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61172
+ unavailable: array(object({
61173
+ bus: CoralBusSchema,
61174
+ count: number().int().nonnegative(),
61175
+ reason: _enum(["driver-missing", "device-not-accessible"])
61176
+ })).readonly().optional()
61174
61177
  });
61175
61178
  var HardwareInfoSchema = object({
61176
61179
  platform: HardwarePlatformSchema,
@@ -69917,6 +69920,12 @@ Object.freeze({
69917
69920
  addonId: null,
69918
69921
  access: "view"
69919
69922
  },
69923
+ "deviceHistory.queryMany": {
69924
+ capName: "device-history",
69925
+ capScope: "system",
69926
+ addonId: null,
69927
+ access: "view"
69928
+ },
69920
69929
  "deviceHistory.queryNode": {
69921
69930
  capName: "device-history",
69922
69931
  capScope: "system",
@@ -75137,24 +75146,12 @@ Object.freeze({
75137
75146
  addonId: null,
75138
75147
  access: "create"
75139
75148
  },
75140
- "storageAdmin.adoptRecords": {
75141
- capName: "storage-admin",
75142
- capScope: "system",
75143
- addonId: null,
75144
- access: "create"
75145
- },
75146
75149
  "storageAdmin.dropCollection": {
75147
75150
  capName: "storage-admin",
75148
75151
  capScope: "system",
75149
75152
  addonId: null,
75150
75153
  access: "delete"
75151
75154
  },
75152
- "storageAdmin.isAdoptedLegacyTable": {
75153
- capName: "storage-admin",
75154
- capScope: "system",
75155
- addonId: null,
75156
- access: "view"
75157
- },
75158
75155
  "storageAdmin.listKinds": {
75159
75156
  capName: "storage-admin",
75160
75157
  capScope: "system",
@@ -75167,12 +75164,6 @@ Object.freeze({
75167
75164
  addonId: null,
75168
75165
  access: "view"
75169
75166
  },
75170
- "storageAdmin.readLegacyCollection": {
75171
- capName: "storage-admin",
75172
- capScope: "system",
75173
- addonId: null,
75174
- access: "view"
75175
- },
75176
75167
  "storageAdmin.readRecords": {
75177
75168
  capName: "storage-admin",
75178
75169
  capScope: "system",
@@ -78987,12 +78978,6 @@ Object.freeze({
78987
78978
  form: "single",
78988
78979
  optional: false
78989
78980
  }],
78990
- "storageAdmin.adoptRecords": [{
78991
- name: "records",
78992
- form: "object-array",
78993
- optional: false,
78994
- itemField: "deviceId"
78995
- }],
78996
78981
  "storageAdmin.readRecords": [{
78997
78982
  name: "deviceId",
78998
78983
  form: "single",
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.133",
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",