@camstack/addon-provider-tuya 0.2.132 → 0.2.134
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 +21 -51
- package/dist/addon.mjs +21 -51
- package/package.json +1 -1
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-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
17458
|
-
|
|
17459
|
-
|
|
17460
|
-
|
|
17461
|
-
|
|
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" })
|
|
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
|
|
@@ -69933,6 +69921,12 @@ Object.freeze({
|
|
|
69933
69921
|
addonId: null,
|
|
69934
69922
|
access: "view"
|
|
69935
69923
|
},
|
|
69924
|
+
"deviceHistory.queryMany": {
|
|
69925
|
+
capName: "device-history",
|
|
69926
|
+
capScope: "system",
|
|
69927
|
+
addonId: null,
|
|
69928
|
+
access: "view"
|
|
69929
|
+
},
|
|
69936
69930
|
"deviceHistory.queryNode": {
|
|
69937
69931
|
capName: "device-history",
|
|
69938
69932
|
capScope: "system",
|
|
@@ -75153,24 +75147,12 @@ Object.freeze({
|
|
|
75153
75147
|
addonId: null,
|
|
75154
75148
|
access: "create"
|
|
75155
75149
|
},
|
|
75156
|
-
"storageAdmin.adoptRecords": {
|
|
75157
|
-
capName: "storage-admin",
|
|
75158
|
-
capScope: "system",
|
|
75159
|
-
addonId: null,
|
|
75160
|
-
access: "create"
|
|
75161
|
-
},
|
|
75162
75150
|
"storageAdmin.dropCollection": {
|
|
75163
75151
|
capName: "storage-admin",
|
|
75164
75152
|
capScope: "system",
|
|
75165
75153
|
addonId: null,
|
|
75166
75154
|
access: "delete"
|
|
75167
75155
|
},
|
|
75168
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
75169
|
-
capName: "storage-admin",
|
|
75170
|
-
capScope: "system",
|
|
75171
|
-
addonId: null,
|
|
75172
|
-
access: "view"
|
|
75173
|
-
},
|
|
75174
75156
|
"storageAdmin.listKinds": {
|
|
75175
75157
|
capName: "storage-admin",
|
|
75176
75158
|
capScope: "system",
|
|
@@ -75183,12 +75165,6 @@ Object.freeze({
|
|
|
75183
75165
|
addonId: null,
|
|
75184
75166
|
access: "view"
|
|
75185
75167
|
},
|
|
75186
|
-
"storageAdmin.readLegacyCollection": {
|
|
75187
|
-
capName: "storage-admin",
|
|
75188
|
-
capScope: "system",
|
|
75189
|
-
addonId: null,
|
|
75190
|
-
access: "view"
|
|
75191
|
-
},
|
|
75192
75168
|
"storageAdmin.readRecords": {
|
|
75193
75169
|
capName: "storage-admin",
|
|
75194
75170
|
capScope: "system",
|
|
@@ -79003,12 +78979,6 @@ Object.freeze({
|
|
|
79003
78979
|
form: "single",
|
|
79004
78980
|
optional: false
|
|
79005
78981
|
}],
|
|
79006
|
-
"storageAdmin.adoptRecords": [{
|
|
79007
|
-
name: "records",
|
|
79008
|
-
form: "object-array",
|
|
79009
|
-
optional: false,
|
|
79010
|
-
itemField: "deviceId"
|
|
79011
|
-
}],
|
|
79012
78982
|
"storageAdmin.readRecords": [{
|
|
79013
78983
|
name: "deviceId",
|
|
79014
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-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
17457
|
-
|
|
17458
|
-
|
|
17459
|
-
|
|
17460
|
-
|
|
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" })
|
|
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
|
|
@@ -69932,6 +69920,12 @@ Object.freeze({
|
|
|
69932
69920
|
addonId: null,
|
|
69933
69921
|
access: "view"
|
|
69934
69922
|
},
|
|
69923
|
+
"deviceHistory.queryMany": {
|
|
69924
|
+
capName: "device-history",
|
|
69925
|
+
capScope: "system",
|
|
69926
|
+
addonId: null,
|
|
69927
|
+
access: "view"
|
|
69928
|
+
},
|
|
69935
69929
|
"deviceHistory.queryNode": {
|
|
69936
69930
|
capName: "device-history",
|
|
69937
69931
|
capScope: "system",
|
|
@@ -75152,24 +75146,12 @@ Object.freeze({
|
|
|
75152
75146
|
addonId: null,
|
|
75153
75147
|
access: "create"
|
|
75154
75148
|
},
|
|
75155
|
-
"storageAdmin.adoptRecords": {
|
|
75156
|
-
capName: "storage-admin",
|
|
75157
|
-
capScope: "system",
|
|
75158
|
-
addonId: null,
|
|
75159
|
-
access: "create"
|
|
75160
|
-
},
|
|
75161
75149
|
"storageAdmin.dropCollection": {
|
|
75162
75150
|
capName: "storage-admin",
|
|
75163
75151
|
capScope: "system",
|
|
75164
75152
|
addonId: null,
|
|
75165
75153
|
access: "delete"
|
|
75166
75154
|
},
|
|
75167
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
75168
|
-
capName: "storage-admin",
|
|
75169
|
-
capScope: "system",
|
|
75170
|
-
addonId: null,
|
|
75171
|
-
access: "view"
|
|
75172
|
-
},
|
|
75173
75155
|
"storageAdmin.listKinds": {
|
|
75174
75156
|
capName: "storage-admin",
|
|
75175
75157
|
capScope: "system",
|
|
@@ -75182,12 +75164,6 @@ Object.freeze({
|
|
|
75182
75164
|
addonId: null,
|
|
75183
75165
|
access: "view"
|
|
75184
75166
|
},
|
|
75185
|
-
"storageAdmin.readLegacyCollection": {
|
|
75186
|
-
capName: "storage-admin",
|
|
75187
|
-
capScope: "system",
|
|
75188
|
-
addonId: null,
|
|
75189
|
-
access: "view"
|
|
75190
|
-
},
|
|
75191
75167
|
"storageAdmin.readRecords": {
|
|
75192
75168
|
capName: "storage-admin",
|
|
75193
75169
|
capScope: "system",
|
|
@@ -79002,12 +78978,6 @@ Object.freeze({
|
|
|
79002
78978
|
form: "single",
|
|
79003
78979
|
optional: false
|
|
79004
78980
|
}],
|
|
79005
|
-
"storageAdmin.adoptRecords": [{
|
|
79006
|
-
name: "records",
|
|
79007
|
-
form: "object-array",
|
|
79008
|
-
optional: false,
|
|
79009
|
-
itemField: "deviceId"
|
|
79010
|
-
}],
|
|
79011
78981
|
"storageAdmin.readRecords": [{
|
|
79012
78982
|
name: "deviceId",
|
|
79013
78983
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-tuya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.134",
|
|
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",
|