@camstack/addon-provider-dreo 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
|
@@ -5396,7 +5396,7 @@ var ZodIssueCode = {
|
|
|
5396
5396
|
var ZodFirstPartyTypeKind;
|
|
5397
5397
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5398
5398
|
//#endregion
|
|
5399
|
-
//#region ../types/dist/sleep-
|
|
5399
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5400
5400
|
/**
|
|
5401
5401
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5402
5402
|
* window to float samples (D455).
|
|
@@ -31090,6 +31090,26 @@ var PtzHomePresetSchema = object({
|
|
|
31090
31090
|
"none"
|
|
31091
31091
|
])
|
|
31092
31092
|
});
|
|
31093
|
+
/**
|
|
31094
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31095
|
+
* after how long.
|
|
31096
|
+
*
|
|
31097
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31098
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31099
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31100
|
+
* can disagree.
|
|
31101
|
+
*
|
|
31102
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31103
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31104
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31105
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31106
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31107
|
+
* return at all.
|
|
31108
|
+
*/
|
|
31109
|
+
var PtzHomeReturnSchema = object({
|
|
31110
|
+
enabled: boolean(),
|
|
31111
|
+
seconds: number().int()
|
|
31112
|
+
});
|
|
31093
31113
|
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({
|
|
31094
31114
|
deviceId: number(),
|
|
31095
31115
|
presetId: string()
|
|
@@ -31112,6 +31132,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31112
31132
|
}), _void(), {
|
|
31113
31133
|
kind: "mutation",
|
|
31114
31134
|
auth: "admin"
|
|
31135
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31136
|
+
kind: "mutation",
|
|
31137
|
+
auth: "admin"
|
|
31138
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31139
|
+
deviceId: number(),
|
|
31140
|
+
enabled: boolean(),
|
|
31141
|
+
seconds: number().int().min(0).max(3600)
|
|
31142
|
+
}), _void(), {
|
|
31143
|
+
kind: "mutation",
|
|
31144
|
+
auth: "admin"
|
|
31115
31145
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31116
31146
|
deviceId: number(),
|
|
31117
31147
|
enabled: boolean()
|
|
@@ -40354,6 +40384,12 @@ Object.freeze({
|
|
|
40354
40384
|
addonId: null,
|
|
40355
40385
|
access: "create"
|
|
40356
40386
|
},
|
|
40387
|
+
"ptz.captureHomeHere": {
|
|
40388
|
+
capName: "ptz",
|
|
40389
|
+
capScope: "device",
|
|
40390
|
+
addonId: null,
|
|
40391
|
+
access: "create"
|
|
40392
|
+
},
|
|
40357
40393
|
"ptz.continuousMove": {
|
|
40358
40394
|
capName: "ptz",
|
|
40359
40395
|
capScope: "device",
|
|
@@ -40372,6 +40408,12 @@ Object.freeze({
|
|
|
40372
40408
|
addonId: null,
|
|
40373
40409
|
access: "view"
|
|
40374
40410
|
},
|
|
40411
|
+
"ptz.getHomeReturn": {
|
|
40412
|
+
capName: "ptz",
|
|
40413
|
+
capScope: "device",
|
|
40414
|
+
addonId: null,
|
|
40415
|
+
access: "view"
|
|
40416
|
+
},
|
|
40375
40417
|
"ptz.getOptions": {
|
|
40376
40418
|
capName: "ptz",
|
|
40377
40419
|
capScope: "device",
|
|
@@ -40426,6 +40468,12 @@ Object.freeze({
|
|
|
40426
40468
|
addonId: null,
|
|
40427
40469
|
access: "create"
|
|
40428
40470
|
},
|
|
40471
|
+
"ptz.setHomeReturn": {
|
|
40472
|
+
capName: "ptz",
|
|
40473
|
+
capScope: "device",
|
|
40474
|
+
addonId: null,
|
|
40475
|
+
access: "create"
|
|
40476
|
+
},
|
|
40429
40477
|
"ptz.stop": {
|
|
40430
40478
|
capName: "ptz",
|
|
40431
40479
|
capScope: "device",
|
|
@@ -43589,6 +43637,11 @@ Object.freeze({
|
|
|
43589
43637
|
form: "single",
|
|
43590
43638
|
optional: false
|
|
43591
43639
|
}],
|
|
43640
|
+
"ptz.captureHomeHere": [{
|
|
43641
|
+
name: "deviceId",
|
|
43642
|
+
form: "single",
|
|
43643
|
+
optional: false
|
|
43644
|
+
}],
|
|
43592
43645
|
"ptz.continuousMove": [{
|
|
43593
43646
|
name: "deviceId",
|
|
43594
43647
|
form: "single",
|
|
@@ -43604,6 +43657,11 @@ Object.freeze({
|
|
|
43604
43657
|
form: "single",
|
|
43605
43658
|
optional: false
|
|
43606
43659
|
}],
|
|
43660
|
+
"ptz.getHomeReturn": [{
|
|
43661
|
+
name: "deviceId",
|
|
43662
|
+
form: "single",
|
|
43663
|
+
optional: false
|
|
43664
|
+
}],
|
|
43607
43665
|
"ptz.getOptions": [{
|
|
43608
43666
|
name: "deviceId",
|
|
43609
43667
|
form: "single",
|
|
@@ -43649,6 +43707,11 @@ Object.freeze({
|
|
|
43649
43707
|
form: "single",
|
|
43650
43708
|
optional: false
|
|
43651
43709
|
}],
|
|
43710
|
+
"ptz.setHomeReturn": [{
|
|
43711
|
+
name: "deviceId",
|
|
43712
|
+
form: "single",
|
|
43713
|
+
optional: false
|
|
43714
|
+
}],
|
|
43652
43715
|
"ptz.stop": [{
|
|
43653
43716
|
name: "deviceId",
|
|
43654
43717
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
|
|
|
5397
5397
|
var ZodFirstPartyTypeKind;
|
|
5398
5398
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5399
5399
|
//#endregion
|
|
5400
|
-
//#region ../types/dist/sleep-
|
|
5400
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5401
5401
|
/**
|
|
5402
5402
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5403
5403
|
* window to float samples (D455).
|
|
@@ -31091,6 +31091,26 @@ var PtzHomePresetSchema = object({
|
|
|
31091
31091
|
"none"
|
|
31092
31092
|
])
|
|
31093
31093
|
});
|
|
31094
|
+
/**
|
|
31095
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31096
|
+
* after how long.
|
|
31097
|
+
*
|
|
31098
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31099
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31100
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31101
|
+
* can disagree.
|
|
31102
|
+
*
|
|
31103
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31104
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31105
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31106
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31107
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31108
|
+
* return at all.
|
|
31109
|
+
*/
|
|
31110
|
+
var PtzHomeReturnSchema = object({
|
|
31111
|
+
enabled: boolean(),
|
|
31112
|
+
seconds: number().int()
|
|
31113
|
+
});
|
|
31094
31114
|
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({
|
|
31095
31115
|
deviceId: number(),
|
|
31096
31116
|
presetId: string()
|
|
@@ -31113,6 +31133,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31113
31133
|
}), _void(), {
|
|
31114
31134
|
kind: "mutation",
|
|
31115
31135
|
auth: "admin"
|
|
31136
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31137
|
+
kind: "mutation",
|
|
31138
|
+
auth: "admin"
|
|
31139
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31140
|
+
deviceId: number(),
|
|
31141
|
+
enabled: boolean(),
|
|
31142
|
+
seconds: number().int().min(0).max(3600)
|
|
31143
|
+
}), _void(), {
|
|
31144
|
+
kind: "mutation",
|
|
31145
|
+
auth: "admin"
|
|
31116
31146
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31117
31147
|
deviceId: number(),
|
|
31118
31148
|
enabled: boolean()
|
|
@@ -40355,6 +40385,12 @@ Object.freeze({
|
|
|
40355
40385
|
addonId: null,
|
|
40356
40386
|
access: "create"
|
|
40357
40387
|
},
|
|
40388
|
+
"ptz.captureHomeHere": {
|
|
40389
|
+
capName: "ptz",
|
|
40390
|
+
capScope: "device",
|
|
40391
|
+
addonId: null,
|
|
40392
|
+
access: "create"
|
|
40393
|
+
},
|
|
40358
40394
|
"ptz.continuousMove": {
|
|
40359
40395
|
capName: "ptz",
|
|
40360
40396
|
capScope: "device",
|
|
@@ -40373,6 +40409,12 @@ Object.freeze({
|
|
|
40373
40409
|
addonId: null,
|
|
40374
40410
|
access: "view"
|
|
40375
40411
|
},
|
|
40412
|
+
"ptz.getHomeReturn": {
|
|
40413
|
+
capName: "ptz",
|
|
40414
|
+
capScope: "device",
|
|
40415
|
+
addonId: null,
|
|
40416
|
+
access: "view"
|
|
40417
|
+
},
|
|
40376
40418
|
"ptz.getOptions": {
|
|
40377
40419
|
capName: "ptz",
|
|
40378
40420
|
capScope: "device",
|
|
@@ -40427,6 +40469,12 @@ Object.freeze({
|
|
|
40427
40469
|
addonId: null,
|
|
40428
40470
|
access: "create"
|
|
40429
40471
|
},
|
|
40472
|
+
"ptz.setHomeReturn": {
|
|
40473
|
+
capName: "ptz",
|
|
40474
|
+
capScope: "device",
|
|
40475
|
+
addonId: null,
|
|
40476
|
+
access: "create"
|
|
40477
|
+
},
|
|
40430
40478
|
"ptz.stop": {
|
|
40431
40479
|
capName: "ptz",
|
|
40432
40480
|
capScope: "device",
|
|
@@ -43590,6 +43638,11 @@ Object.freeze({
|
|
|
43590
43638
|
form: "single",
|
|
43591
43639
|
optional: false
|
|
43592
43640
|
}],
|
|
43641
|
+
"ptz.captureHomeHere": [{
|
|
43642
|
+
name: "deviceId",
|
|
43643
|
+
form: "single",
|
|
43644
|
+
optional: false
|
|
43645
|
+
}],
|
|
43593
43646
|
"ptz.continuousMove": [{
|
|
43594
43647
|
name: "deviceId",
|
|
43595
43648
|
form: "single",
|
|
@@ -43605,6 +43658,11 @@ Object.freeze({
|
|
|
43605
43658
|
form: "single",
|
|
43606
43659
|
optional: false
|
|
43607
43660
|
}],
|
|
43661
|
+
"ptz.getHomeReturn": [{
|
|
43662
|
+
name: "deviceId",
|
|
43663
|
+
form: "single",
|
|
43664
|
+
optional: false
|
|
43665
|
+
}],
|
|
43608
43666
|
"ptz.getOptions": [{
|
|
43609
43667
|
name: "deviceId",
|
|
43610
43668
|
form: "single",
|
|
@@ -43650,6 +43708,11 @@ Object.freeze({
|
|
|
43650
43708
|
form: "single",
|
|
43651
43709
|
optional: false
|
|
43652
43710
|
}],
|
|
43711
|
+
"ptz.setHomeReturn": [{
|
|
43712
|
+
name: "deviceId",
|
|
43713
|
+
form: "single",
|
|
43714
|
+
optional: false
|
|
43715
|
+
}],
|
|
43653
43716
|
"ptz.stop": [{
|
|
43654
43717
|
name: "deviceId",
|
|
43655
43718
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.113",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|