@camstack/addon-provider-petkit 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
|
@@ -6462,7 +6462,7 @@ var ZodIssueCode = {
|
|
|
6462
6462
|
var ZodFirstPartyTypeKind;
|
|
6463
6463
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6464
6464
|
//#endregion
|
|
6465
|
-
//#region ../types/dist/sleep-
|
|
6465
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
6466
6466
|
/**
|
|
6467
6467
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6468
6468
|
* window to float samples (D455).
|
|
@@ -32156,6 +32156,26 @@ var PtzHomePresetSchema = object({
|
|
|
32156
32156
|
"none"
|
|
32157
32157
|
])
|
|
32158
32158
|
});
|
|
32159
|
+
/**
|
|
32160
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
32161
|
+
* after how long.
|
|
32162
|
+
*
|
|
32163
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
32164
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
32165
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
32166
|
+
* can disagree.
|
|
32167
|
+
*
|
|
32168
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
32169
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
32170
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
32171
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
32172
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
32173
|
+
* return at all.
|
|
32174
|
+
*/
|
|
32175
|
+
var PtzHomeReturnSchema = object({
|
|
32176
|
+
enabled: boolean(),
|
|
32177
|
+
seconds: number().int()
|
|
32178
|
+
});
|
|
32159
32179
|
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({
|
|
32160
32180
|
deviceId: number(),
|
|
32161
32181
|
presetId: string()
|
|
@@ -32178,6 +32198,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
32178
32198
|
}), _void(), {
|
|
32179
32199
|
kind: "mutation",
|
|
32180
32200
|
auth: "admin"
|
|
32201
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
32202
|
+
kind: "mutation",
|
|
32203
|
+
auth: "admin"
|
|
32204
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
32205
|
+
deviceId: number(),
|
|
32206
|
+
enabled: boolean(),
|
|
32207
|
+
seconds: number().int().min(0).max(3600)
|
|
32208
|
+
}), _void(), {
|
|
32209
|
+
kind: "mutation",
|
|
32210
|
+
auth: "admin"
|
|
32181
32211
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
32182
32212
|
deviceId: number(),
|
|
32183
32213
|
enabled: boolean()
|
|
@@ -41420,6 +41450,12 @@ Object.freeze({
|
|
|
41420
41450
|
addonId: null,
|
|
41421
41451
|
access: "create"
|
|
41422
41452
|
},
|
|
41453
|
+
"ptz.captureHomeHere": {
|
|
41454
|
+
capName: "ptz",
|
|
41455
|
+
capScope: "device",
|
|
41456
|
+
addonId: null,
|
|
41457
|
+
access: "create"
|
|
41458
|
+
},
|
|
41423
41459
|
"ptz.continuousMove": {
|
|
41424
41460
|
capName: "ptz",
|
|
41425
41461
|
capScope: "device",
|
|
@@ -41438,6 +41474,12 @@ Object.freeze({
|
|
|
41438
41474
|
addonId: null,
|
|
41439
41475
|
access: "view"
|
|
41440
41476
|
},
|
|
41477
|
+
"ptz.getHomeReturn": {
|
|
41478
|
+
capName: "ptz",
|
|
41479
|
+
capScope: "device",
|
|
41480
|
+
addonId: null,
|
|
41481
|
+
access: "view"
|
|
41482
|
+
},
|
|
41441
41483
|
"ptz.getOptions": {
|
|
41442
41484
|
capName: "ptz",
|
|
41443
41485
|
capScope: "device",
|
|
@@ -41492,6 +41534,12 @@ Object.freeze({
|
|
|
41492
41534
|
addonId: null,
|
|
41493
41535
|
access: "create"
|
|
41494
41536
|
},
|
|
41537
|
+
"ptz.setHomeReturn": {
|
|
41538
|
+
capName: "ptz",
|
|
41539
|
+
capScope: "device",
|
|
41540
|
+
addonId: null,
|
|
41541
|
+
access: "create"
|
|
41542
|
+
},
|
|
41495
41543
|
"ptz.stop": {
|
|
41496
41544
|
capName: "ptz",
|
|
41497
41545
|
capScope: "device",
|
|
@@ -44655,6 +44703,11 @@ Object.freeze({
|
|
|
44655
44703
|
form: "single",
|
|
44656
44704
|
optional: false
|
|
44657
44705
|
}],
|
|
44706
|
+
"ptz.captureHomeHere": [{
|
|
44707
|
+
name: "deviceId",
|
|
44708
|
+
form: "single",
|
|
44709
|
+
optional: false
|
|
44710
|
+
}],
|
|
44658
44711
|
"ptz.continuousMove": [{
|
|
44659
44712
|
name: "deviceId",
|
|
44660
44713
|
form: "single",
|
|
@@ -44670,6 +44723,11 @@ Object.freeze({
|
|
|
44670
44723
|
form: "single",
|
|
44671
44724
|
optional: false
|
|
44672
44725
|
}],
|
|
44726
|
+
"ptz.getHomeReturn": [{
|
|
44727
|
+
name: "deviceId",
|
|
44728
|
+
form: "single",
|
|
44729
|
+
optional: false
|
|
44730
|
+
}],
|
|
44673
44731
|
"ptz.getOptions": [{
|
|
44674
44732
|
name: "deviceId",
|
|
44675
44733
|
form: "single",
|
|
@@ -44715,6 +44773,11 @@ Object.freeze({
|
|
|
44715
44773
|
form: "single",
|
|
44716
44774
|
optional: false
|
|
44717
44775
|
}],
|
|
44776
|
+
"ptz.setHomeReturn": [{
|
|
44777
|
+
name: "deviceId",
|
|
44778
|
+
form: "single",
|
|
44779
|
+
optional: false
|
|
44780
|
+
}],
|
|
44718
44781
|
"ptz.stop": [{
|
|
44719
44782
|
name: "deviceId",
|
|
44720
44783
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -6461,7 +6461,7 @@ var ZodIssueCode = {
|
|
|
6461
6461
|
var ZodFirstPartyTypeKind;
|
|
6462
6462
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6463
6463
|
//#endregion
|
|
6464
|
-
//#region ../types/dist/sleep-
|
|
6464
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
6465
6465
|
/**
|
|
6466
6466
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6467
6467
|
* window to float samples (D455).
|
|
@@ -32155,6 +32155,26 @@ var PtzHomePresetSchema = object({
|
|
|
32155
32155
|
"none"
|
|
32156
32156
|
])
|
|
32157
32157
|
});
|
|
32158
|
+
/**
|
|
32159
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
32160
|
+
* after how long.
|
|
32161
|
+
*
|
|
32162
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
32163
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
32164
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
32165
|
+
* can disagree.
|
|
32166
|
+
*
|
|
32167
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
32168
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
32169
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
32170
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
32171
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
32172
|
+
* return at all.
|
|
32173
|
+
*/
|
|
32174
|
+
var PtzHomeReturnSchema = object({
|
|
32175
|
+
enabled: boolean(),
|
|
32176
|
+
seconds: number().int()
|
|
32177
|
+
});
|
|
32158
32178
|
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({
|
|
32159
32179
|
deviceId: number(),
|
|
32160
32180
|
presetId: string()
|
|
@@ -32177,6 +32197,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
32177
32197
|
}), _void(), {
|
|
32178
32198
|
kind: "mutation",
|
|
32179
32199
|
auth: "admin"
|
|
32200
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
32201
|
+
kind: "mutation",
|
|
32202
|
+
auth: "admin"
|
|
32203
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
32204
|
+
deviceId: number(),
|
|
32205
|
+
enabled: boolean(),
|
|
32206
|
+
seconds: number().int().min(0).max(3600)
|
|
32207
|
+
}), _void(), {
|
|
32208
|
+
kind: "mutation",
|
|
32209
|
+
auth: "admin"
|
|
32180
32210
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
32181
32211
|
deviceId: number(),
|
|
32182
32212
|
enabled: boolean()
|
|
@@ -41419,6 +41449,12 @@ Object.freeze({
|
|
|
41419
41449
|
addonId: null,
|
|
41420
41450
|
access: "create"
|
|
41421
41451
|
},
|
|
41452
|
+
"ptz.captureHomeHere": {
|
|
41453
|
+
capName: "ptz",
|
|
41454
|
+
capScope: "device",
|
|
41455
|
+
addonId: null,
|
|
41456
|
+
access: "create"
|
|
41457
|
+
},
|
|
41422
41458
|
"ptz.continuousMove": {
|
|
41423
41459
|
capName: "ptz",
|
|
41424
41460
|
capScope: "device",
|
|
@@ -41437,6 +41473,12 @@ Object.freeze({
|
|
|
41437
41473
|
addonId: null,
|
|
41438
41474
|
access: "view"
|
|
41439
41475
|
},
|
|
41476
|
+
"ptz.getHomeReturn": {
|
|
41477
|
+
capName: "ptz",
|
|
41478
|
+
capScope: "device",
|
|
41479
|
+
addonId: null,
|
|
41480
|
+
access: "view"
|
|
41481
|
+
},
|
|
41440
41482
|
"ptz.getOptions": {
|
|
41441
41483
|
capName: "ptz",
|
|
41442
41484
|
capScope: "device",
|
|
@@ -41491,6 +41533,12 @@ Object.freeze({
|
|
|
41491
41533
|
addonId: null,
|
|
41492
41534
|
access: "create"
|
|
41493
41535
|
},
|
|
41536
|
+
"ptz.setHomeReturn": {
|
|
41537
|
+
capName: "ptz",
|
|
41538
|
+
capScope: "device",
|
|
41539
|
+
addonId: null,
|
|
41540
|
+
access: "create"
|
|
41541
|
+
},
|
|
41494
41542
|
"ptz.stop": {
|
|
41495
41543
|
capName: "ptz",
|
|
41496
41544
|
capScope: "device",
|
|
@@ -44654,6 +44702,11 @@ Object.freeze({
|
|
|
44654
44702
|
form: "single",
|
|
44655
44703
|
optional: false
|
|
44656
44704
|
}],
|
|
44705
|
+
"ptz.captureHomeHere": [{
|
|
44706
|
+
name: "deviceId",
|
|
44707
|
+
form: "single",
|
|
44708
|
+
optional: false
|
|
44709
|
+
}],
|
|
44657
44710
|
"ptz.continuousMove": [{
|
|
44658
44711
|
name: "deviceId",
|
|
44659
44712
|
form: "single",
|
|
@@ -44669,6 +44722,11 @@ Object.freeze({
|
|
|
44669
44722
|
form: "single",
|
|
44670
44723
|
optional: false
|
|
44671
44724
|
}],
|
|
44725
|
+
"ptz.getHomeReturn": [{
|
|
44726
|
+
name: "deviceId",
|
|
44727
|
+
form: "single",
|
|
44728
|
+
optional: false
|
|
44729
|
+
}],
|
|
44672
44730
|
"ptz.getOptions": [{
|
|
44673
44731
|
name: "deviceId",
|
|
44674
44732
|
form: "single",
|
|
@@ -44714,6 +44772,11 @@ Object.freeze({
|
|
|
44714
44772
|
form: "single",
|
|
44715
44773
|
optional: false
|
|
44716
44774
|
}],
|
|
44775
|
+
"ptz.setHomeReturn": [{
|
|
44776
|
+
name: "deviceId",
|
|
44777
|
+
form: "single",
|
|
44778
|
+
optional: false
|
|
44779
|
+
}],
|
|
44717
44780
|
"ptz.stop": [{
|
|
44718
44781
|
name: "deviceId",
|
|
44719
44782
|
form: "single",
|
package/package.json
CHANGED