@camstack/addon-import-alexa 0.2.111 → 0.2.112
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 +27 -6
- package/dist/addon.mjs +27 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5399,7 +5399,7 @@ var ZodIssueCode = {
|
|
|
5399
5399
|
var ZodFirstPartyTypeKind;
|
|
5400
5400
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5401
5401
|
//#endregion
|
|
5402
|
-
//#region ../types/dist/sleep-
|
|
5402
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5403
5403
|
/**
|
|
5404
5404
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5405
5405
|
* window to float samples (D455).
|
|
@@ -31287,6 +31287,26 @@ var PtzHomePresetSchema = object({
|
|
|
31287
31287
|
"none"
|
|
31288
31288
|
])
|
|
31289
31289
|
});
|
|
31290
|
+
/**
|
|
31291
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31292
|
+
* after how long.
|
|
31293
|
+
*
|
|
31294
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31295
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31296
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31297
|
+
* can disagree.
|
|
31298
|
+
*
|
|
31299
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31300
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31301
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31302
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31303
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31304
|
+
* return at all.
|
|
31305
|
+
*/
|
|
31306
|
+
var PtzHomeReturnSchema = object({
|
|
31307
|
+
enabled: boolean(),
|
|
31308
|
+
seconds: number().int()
|
|
31309
|
+
});
|
|
31290
31310
|
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({
|
|
31291
31311
|
deviceId: number(),
|
|
31292
31312
|
presetId: string()
|
|
@@ -31312,8 +31332,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31312
31332
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31313
31333
|
kind: "mutation",
|
|
31314
31334
|
auth: "admin"
|
|
31315
|
-
}), method(object({ deviceId: number() }),
|
|
31335
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31316
31336
|
deviceId: number(),
|
|
31337
|
+
enabled: boolean(),
|
|
31317
31338
|
seconds: number().int().min(0).max(3600)
|
|
31318
31339
|
}), _void(), {
|
|
31319
31340
|
kind: "mutation",
|
|
@@ -40584,7 +40605,7 @@ Object.freeze({
|
|
|
40584
40605
|
addonId: null,
|
|
40585
40606
|
access: "view"
|
|
40586
40607
|
},
|
|
40587
|
-
"ptz.
|
|
40608
|
+
"ptz.getHomeReturn": {
|
|
40588
40609
|
capName: "ptz",
|
|
40589
40610
|
capScope: "device",
|
|
40590
40611
|
addonId: null,
|
|
@@ -40644,7 +40665,7 @@ Object.freeze({
|
|
|
40644
40665
|
addonId: null,
|
|
40645
40666
|
access: "create"
|
|
40646
40667
|
},
|
|
40647
|
-
"ptz.
|
|
40668
|
+
"ptz.setHomeReturn": {
|
|
40648
40669
|
capName: "ptz",
|
|
40649
40670
|
capScope: "device",
|
|
40650
40671
|
addonId: null,
|
|
@@ -43833,7 +43854,7 @@ Object.freeze({
|
|
|
43833
43854
|
form: "single",
|
|
43834
43855
|
optional: false
|
|
43835
43856
|
}],
|
|
43836
|
-
"ptz.
|
|
43857
|
+
"ptz.getHomeReturn": [{
|
|
43837
43858
|
name: "deviceId",
|
|
43838
43859
|
form: "single",
|
|
43839
43860
|
optional: false
|
|
@@ -43883,7 +43904,7 @@ Object.freeze({
|
|
|
43883
43904
|
form: "single",
|
|
43884
43905
|
optional: false
|
|
43885
43906
|
}],
|
|
43886
|
-
"ptz.
|
|
43907
|
+
"ptz.setHomeReturn": [{
|
|
43887
43908
|
name: "deviceId",
|
|
43888
43909
|
form: "single",
|
|
43889
43910
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5399,7 +5399,7 @@ var ZodIssueCode = {
|
|
|
5399
5399
|
var ZodFirstPartyTypeKind;
|
|
5400
5400
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5401
5401
|
//#endregion
|
|
5402
|
-
//#region ../types/dist/sleep-
|
|
5402
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5403
5403
|
/**
|
|
5404
5404
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5405
5405
|
* window to float samples (D455).
|
|
@@ -31287,6 +31287,26 @@ var PtzHomePresetSchema = object({
|
|
|
31287
31287
|
"none"
|
|
31288
31288
|
])
|
|
31289
31289
|
});
|
|
31290
|
+
/**
|
|
31291
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31292
|
+
* after how long.
|
|
31293
|
+
*
|
|
31294
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31295
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31296
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31297
|
+
* can disagree.
|
|
31298
|
+
*
|
|
31299
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31300
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31301
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31302
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31303
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31304
|
+
* return at all.
|
|
31305
|
+
*/
|
|
31306
|
+
var PtzHomeReturnSchema = object({
|
|
31307
|
+
enabled: boolean(),
|
|
31308
|
+
seconds: number().int()
|
|
31309
|
+
});
|
|
31290
31310
|
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({
|
|
31291
31311
|
deviceId: number(),
|
|
31292
31312
|
presetId: string()
|
|
@@ -31312,8 +31332,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31312
31332
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31313
31333
|
kind: "mutation",
|
|
31314
31334
|
auth: "admin"
|
|
31315
|
-
}), method(object({ deviceId: number() }),
|
|
31335
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31316
31336
|
deviceId: number(),
|
|
31337
|
+
enabled: boolean(),
|
|
31317
31338
|
seconds: number().int().min(0).max(3600)
|
|
31318
31339
|
}), _void(), {
|
|
31319
31340
|
kind: "mutation",
|
|
@@ -40584,7 +40605,7 @@ Object.freeze({
|
|
|
40584
40605
|
addonId: null,
|
|
40585
40606
|
access: "view"
|
|
40586
40607
|
},
|
|
40587
|
-
"ptz.
|
|
40608
|
+
"ptz.getHomeReturn": {
|
|
40588
40609
|
capName: "ptz",
|
|
40589
40610
|
capScope: "device",
|
|
40590
40611
|
addonId: null,
|
|
@@ -40644,7 +40665,7 @@ Object.freeze({
|
|
|
40644
40665
|
addonId: null,
|
|
40645
40666
|
access: "create"
|
|
40646
40667
|
},
|
|
40647
|
-
"ptz.
|
|
40668
|
+
"ptz.setHomeReturn": {
|
|
40648
40669
|
capName: "ptz",
|
|
40649
40670
|
capScope: "device",
|
|
40650
40671
|
addonId: null,
|
|
@@ -43833,7 +43854,7 @@ Object.freeze({
|
|
|
43833
43854
|
form: "single",
|
|
43834
43855
|
optional: false
|
|
43835
43856
|
}],
|
|
43836
|
-
"ptz.
|
|
43857
|
+
"ptz.getHomeReturn": [{
|
|
43837
43858
|
name: "deviceId",
|
|
43838
43859
|
form: "single",
|
|
43839
43860
|
optional: false
|
|
@@ -43883,7 +43904,7 @@ Object.freeze({
|
|
|
43883
43904
|
form: "single",
|
|
43884
43905
|
optional: false
|
|
43885
43906
|
}],
|
|
43886
|
-
"ptz.
|
|
43907
|
+
"ptz.setHomeReturn": [{
|
|
43887
43908
|
name: "deviceId",
|
|
43888
43909
|
form: "single",
|
|
43889
43910
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.112",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|