@camstack/addon-provider-tuya 0.2.111 → 0.2.113
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 +64 -1
- package/dist/addon.mjs +64 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -6180,7 +6180,7 @@ var ZodIssueCode = {
|
|
|
6180
6180
|
var ZodFirstPartyTypeKind;
|
|
6181
6181
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6182
6182
|
//#endregion
|
|
6183
|
-
//#region ../types/dist/sleep-
|
|
6183
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
6184
6184
|
/**
|
|
6185
6185
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6186
6186
|
* window to float samples (D455).
|
|
@@ -31874,6 +31874,26 @@ var PtzHomePresetSchema = object({
|
|
|
31874
31874
|
"none"
|
|
31875
31875
|
])
|
|
31876
31876
|
});
|
|
31877
|
+
/**
|
|
31878
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31879
|
+
* after how long.
|
|
31880
|
+
*
|
|
31881
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31882
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31883
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31884
|
+
* can disagree.
|
|
31885
|
+
*
|
|
31886
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31887
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31888
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31889
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31890
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31891
|
+
* return at all.
|
|
31892
|
+
*/
|
|
31893
|
+
var PtzHomeReturnSchema = object({
|
|
31894
|
+
enabled: boolean(),
|
|
31895
|
+
seconds: number().int()
|
|
31896
|
+
});
|
|
31877
31897
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31878
31898
|
deviceId: number(),
|
|
31879
31899
|
presetId: string()
|
|
@@ -31896,6 +31916,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31896
31916
|
}), _void(), {
|
|
31897
31917
|
kind: "mutation",
|
|
31898
31918
|
auth: "admin"
|
|
31919
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31920
|
+
kind: "mutation",
|
|
31921
|
+
auth: "admin"
|
|
31922
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31923
|
+
deviceId: number(),
|
|
31924
|
+
enabled: boolean(),
|
|
31925
|
+
seconds: number().int().min(0).max(3600)
|
|
31926
|
+
}), _void(), {
|
|
31927
|
+
kind: "mutation",
|
|
31928
|
+
auth: "admin"
|
|
31899
31929
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31900
31930
|
deviceId: number(),
|
|
31901
31931
|
enabled: boolean()
|
|
@@ -41138,6 +41168,12 @@ Object.freeze({
|
|
|
41138
41168
|
addonId: null,
|
|
41139
41169
|
access: "create"
|
|
41140
41170
|
},
|
|
41171
|
+
"ptz.captureHomeHere": {
|
|
41172
|
+
capName: "ptz",
|
|
41173
|
+
capScope: "device",
|
|
41174
|
+
addonId: null,
|
|
41175
|
+
access: "create"
|
|
41176
|
+
},
|
|
41141
41177
|
"ptz.continuousMove": {
|
|
41142
41178
|
capName: "ptz",
|
|
41143
41179
|
capScope: "device",
|
|
@@ -41156,6 +41192,12 @@ Object.freeze({
|
|
|
41156
41192
|
addonId: null,
|
|
41157
41193
|
access: "view"
|
|
41158
41194
|
},
|
|
41195
|
+
"ptz.getHomeReturn": {
|
|
41196
|
+
capName: "ptz",
|
|
41197
|
+
capScope: "device",
|
|
41198
|
+
addonId: null,
|
|
41199
|
+
access: "view"
|
|
41200
|
+
},
|
|
41159
41201
|
"ptz.getOptions": {
|
|
41160
41202
|
capName: "ptz",
|
|
41161
41203
|
capScope: "device",
|
|
@@ -41210,6 +41252,12 @@ Object.freeze({
|
|
|
41210
41252
|
addonId: null,
|
|
41211
41253
|
access: "create"
|
|
41212
41254
|
},
|
|
41255
|
+
"ptz.setHomeReturn": {
|
|
41256
|
+
capName: "ptz",
|
|
41257
|
+
capScope: "device",
|
|
41258
|
+
addonId: null,
|
|
41259
|
+
access: "create"
|
|
41260
|
+
},
|
|
41213
41261
|
"ptz.stop": {
|
|
41214
41262
|
capName: "ptz",
|
|
41215
41263
|
capScope: "device",
|
|
@@ -44373,6 +44421,11 @@ Object.freeze({
|
|
|
44373
44421
|
form: "single",
|
|
44374
44422
|
optional: false
|
|
44375
44423
|
}],
|
|
44424
|
+
"ptz.captureHomeHere": [{
|
|
44425
|
+
name: "deviceId",
|
|
44426
|
+
form: "single",
|
|
44427
|
+
optional: false
|
|
44428
|
+
}],
|
|
44376
44429
|
"ptz.continuousMove": [{
|
|
44377
44430
|
name: "deviceId",
|
|
44378
44431
|
form: "single",
|
|
@@ -44388,6 +44441,11 @@ Object.freeze({
|
|
|
44388
44441
|
form: "single",
|
|
44389
44442
|
optional: false
|
|
44390
44443
|
}],
|
|
44444
|
+
"ptz.getHomeReturn": [{
|
|
44445
|
+
name: "deviceId",
|
|
44446
|
+
form: "single",
|
|
44447
|
+
optional: false
|
|
44448
|
+
}],
|
|
44391
44449
|
"ptz.getOptions": [{
|
|
44392
44450
|
name: "deviceId",
|
|
44393
44451
|
form: "single",
|
|
@@ -44433,6 +44491,11 @@ Object.freeze({
|
|
|
44433
44491
|
form: "single",
|
|
44434
44492
|
optional: false
|
|
44435
44493
|
}],
|
|
44494
|
+
"ptz.setHomeReturn": [{
|
|
44495
|
+
name: "deviceId",
|
|
44496
|
+
form: "single",
|
|
44497
|
+
optional: false
|
|
44498
|
+
}],
|
|
44436
44499
|
"ptz.stop": [{
|
|
44437
44500
|
name: "deviceId",
|
|
44438
44501
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -6179,7 +6179,7 @@ var ZodIssueCode = {
|
|
|
6179
6179
|
var ZodFirstPartyTypeKind;
|
|
6180
6180
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6181
6181
|
//#endregion
|
|
6182
|
-
//#region ../types/dist/sleep-
|
|
6182
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
6183
6183
|
/**
|
|
6184
6184
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6185
6185
|
* window to float samples (D455).
|
|
@@ -31873,6 +31873,26 @@ var PtzHomePresetSchema = object({
|
|
|
31873
31873
|
"none"
|
|
31874
31874
|
])
|
|
31875
31875
|
});
|
|
31876
|
+
/**
|
|
31877
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31878
|
+
* after how long.
|
|
31879
|
+
*
|
|
31880
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31881
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31882
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31883
|
+
* can disagree.
|
|
31884
|
+
*
|
|
31885
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31886
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31887
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31888
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31889
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31890
|
+
* return at all.
|
|
31891
|
+
*/
|
|
31892
|
+
var PtzHomeReturnSchema = object({
|
|
31893
|
+
enabled: boolean(),
|
|
31894
|
+
seconds: number().int()
|
|
31895
|
+
});
|
|
31876
31896
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31877
31897
|
deviceId: number(),
|
|
31878
31898
|
presetId: string()
|
|
@@ -31895,6 +31915,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31895
31915
|
}), _void(), {
|
|
31896
31916
|
kind: "mutation",
|
|
31897
31917
|
auth: "admin"
|
|
31918
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31919
|
+
kind: "mutation",
|
|
31920
|
+
auth: "admin"
|
|
31921
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31922
|
+
deviceId: number(),
|
|
31923
|
+
enabled: boolean(),
|
|
31924
|
+
seconds: number().int().min(0).max(3600)
|
|
31925
|
+
}), _void(), {
|
|
31926
|
+
kind: "mutation",
|
|
31927
|
+
auth: "admin"
|
|
31898
31928
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31899
31929
|
deviceId: number(),
|
|
31900
31930
|
enabled: boolean()
|
|
@@ -41137,6 +41167,12 @@ Object.freeze({
|
|
|
41137
41167
|
addonId: null,
|
|
41138
41168
|
access: "create"
|
|
41139
41169
|
},
|
|
41170
|
+
"ptz.captureHomeHere": {
|
|
41171
|
+
capName: "ptz",
|
|
41172
|
+
capScope: "device",
|
|
41173
|
+
addonId: null,
|
|
41174
|
+
access: "create"
|
|
41175
|
+
},
|
|
41140
41176
|
"ptz.continuousMove": {
|
|
41141
41177
|
capName: "ptz",
|
|
41142
41178
|
capScope: "device",
|
|
@@ -41155,6 +41191,12 @@ Object.freeze({
|
|
|
41155
41191
|
addonId: null,
|
|
41156
41192
|
access: "view"
|
|
41157
41193
|
},
|
|
41194
|
+
"ptz.getHomeReturn": {
|
|
41195
|
+
capName: "ptz",
|
|
41196
|
+
capScope: "device",
|
|
41197
|
+
addonId: null,
|
|
41198
|
+
access: "view"
|
|
41199
|
+
},
|
|
41158
41200
|
"ptz.getOptions": {
|
|
41159
41201
|
capName: "ptz",
|
|
41160
41202
|
capScope: "device",
|
|
@@ -41209,6 +41251,12 @@ Object.freeze({
|
|
|
41209
41251
|
addonId: null,
|
|
41210
41252
|
access: "create"
|
|
41211
41253
|
},
|
|
41254
|
+
"ptz.setHomeReturn": {
|
|
41255
|
+
capName: "ptz",
|
|
41256
|
+
capScope: "device",
|
|
41257
|
+
addonId: null,
|
|
41258
|
+
access: "create"
|
|
41259
|
+
},
|
|
41212
41260
|
"ptz.stop": {
|
|
41213
41261
|
capName: "ptz",
|
|
41214
41262
|
capScope: "device",
|
|
@@ -44372,6 +44420,11 @@ Object.freeze({
|
|
|
44372
44420
|
form: "single",
|
|
44373
44421
|
optional: false
|
|
44374
44422
|
}],
|
|
44423
|
+
"ptz.captureHomeHere": [{
|
|
44424
|
+
name: "deviceId",
|
|
44425
|
+
form: "single",
|
|
44426
|
+
optional: false
|
|
44427
|
+
}],
|
|
44375
44428
|
"ptz.continuousMove": [{
|
|
44376
44429
|
name: "deviceId",
|
|
44377
44430
|
form: "single",
|
|
@@ -44387,6 +44440,11 @@ Object.freeze({
|
|
|
44387
44440
|
form: "single",
|
|
44388
44441
|
optional: false
|
|
44389
44442
|
}],
|
|
44443
|
+
"ptz.getHomeReturn": [{
|
|
44444
|
+
name: "deviceId",
|
|
44445
|
+
form: "single",
|
|
44446
|
+
optional: false
|
|
44447
|
+
}],
|
|
44390
44448
|
"ptz.getOptions": [{
|
|
44391
44449
|
name: "deviceId",
|
|
44392
44450
|
form: "single",
|
|
@@ -44432,6 +44490,11 @@ Object.freeze({
|
|
|
44432
44490
|
form: "single",
|
|
44433
44491
|
optional: false
|
|
44434
44492
|
}],
|
|
44493
|
+
"ptz.setHomeReturn": [{
|
|
44494
|
+
name: "deviceId",
|
|
44495
|
+
form: "single",
|
|
44496
|
+
optional: false
|
|
44497
|
+
}],
|
|
44435
44498
|
"ptz.stop": [{
|
|
44436
44499
|
name: "deviceId",
|
|
44437
44500
|
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.113",
|
|
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",
|