@camstack/addon-export-hap 1.2.123 → 1.2.125
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/hap-export.addon.js +64 -1
- package/dist/hap-export.addon.mjs +64 -1
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -5445,7 +5445,7 @@ var ZodIssueCode = {
|
|
|
5445
5445
|
var ZodFirstPartyTypeKind;
|
|
5446
5446
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5447
5447
|
//#endregion
|
|
5448
|
-
//#region ../types/dist/sleep-
|
|
5448
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5449
5449
|
/**
|
|
5450
5450
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5451
5451
|
* window to float samples (D455).
|
|
@@ -29813,6 +29813,26 @@ var PtzHomePresetSchema = object({
|
|
|
29813
29813
|
"none"
|
|
29814
29814
|
])
|
|
29815
29815
|
});
|
|
29816
|
+
/**
|
|
29817
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29818
|
+
* after how long.
|
|
29819
|
+
*
|
|
29820
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29821
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29822
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29823
|
+
* can disagree.
|
|
29824
|
+
*
|
|
29825
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29826
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29827
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29828
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29829
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29830
|
+
* return at all.
|
|
29831
|
+
*/
|
|
29832
|
+
var PtzHomeReturnSchema = object({
|
|
29833
|
+
enabled: boolean(),
|
|
29834
|
+
seconds: number().int()
|
|
29835
|
+
});
|
|
29816
29836
|
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({
|
|
29817
29837
|
deviceId: number(),
|
|
29818
29838
|
presetId: string()
|
|
@@ -29835,6 +29855,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29835
29855
|
}), _void(), {
|
|
29836
29856
|
kind: "mutation",
|
|
29837
29857
|
auth: "admin"
|
|
29858
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
29859
|
+
kind: "mutation",
|
|
29860
|
+
auth: "admin"
|
|
29861
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29862
|
+
deviceId: number(),
|
|
29863
|
+
enabled: boolean(),
|
|
29864
|
+
seconds: number().int().min(0).max(3600)
|
|
29865
|
+
}), _void(), {
|
|
29866
|
+
kind: "mutation",
|
|
29867
|
+
auth: "admin"
|
|
29838
29868
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
29839
29869
|
deviceId: number(),
|
|
29840
29870
|
enabled: boolean()
|
|
@@ -36863,6 +36893,12 @@ Object.freeze({
|
|
|
36863
36893
|
addonId: null,
|
|
36864
36894
|
access: "create"
|
|
36865
36895
|
},
|
|
36896
|
+
"ptz.captureHomeHere": {
|
|
36897
|
+
capName: "ptz",
|
|
36898
|
+
capScope: "device",
|
|
36899
|
+
addonId: null,
|
|
36900
|
+
access: "create"
|
|
36901
|
+
},
|
|
36866
36902
|
"ptz.continuousMove": {
|
|
36867
36903
|
capName: "ptz",
|
|
36868
36904
|
capScope: "device",
|
|
@@ -36881,6 +36917,12 @@ Object.freeze({
|
|
|
36881
36917
|
addonId: null,
|
|
36882
36918
|
access: "view"
|
|
36883
36919
|
},
|
|
36920
|
+
"ptz.getHomeReturn": {
|
|
36921
|
+
capName: "ptz",
|
|
36922
|
+
capScope: "device",
|
|
36923
|
+
addonId: null,
|
|
36924
|
+
access: "view"
|
|
36925
|
+
},
|
|
36884
36926
|
"ptz.getOptions": {
|
|
36885
36927
|
capName: "ptz",
|
|
36886
36928
|
capScope: "device",
|
|
@@ -36935,6 +36977,12 @@ Object.freeze({
|
|
|
36935
36977
|
addonId: null,
|
|
36936
36978
|
access: "create"
|
|
36937
36979
|
},
|
|
36980
|
+
"ptz.setHomeReturn": {
|
|
36981
|
+
capName: "ptz",
|
|
36982
|
+
capScope: "device",
|
|
36983
|
+
addonId: null,
|
|
36984
|
+
access: "create"
|
|
36985
|
+
},
|
|
36938
36986
|
"ptz.stop": {
|
|
36939
36987
|
capName: "ptz",
|
|
36940
36988
|
capScope: "device",
|
|
@@ -40098,6 +40146,11 @@ Object.freeze({
|
|
|
40098
40146
|
form: "single",
|
|
40099
40147
|
optional: false
|
|
40100
40148
|
}],
|
|
40149
|
+
"ptz.captureHomeHere": [{
|
|
40150
|
+
name: "deviceId",
|
|
40151
|
+
form: "single",
|
|
40152
|
+
optional: false
|
|
40153
|
+
}],
|
|
40101
40154
|
"ptz.continuousMove": [{
|
|
40102
40155
|
name: "deviceId",
|
|
40103
40156
|
form: "single",
|
|
@@ -40113,6 +40166,11 @@ Object.freeze({
|
|
|
40113
40166
|
form: "single",
|
|
40114
40167
|
optional: false
|
|
40115
40168
|
}],
|
|
40169
|
+
"ptz.getHomeReturn": [{
|
|
40170
|
+
name: "deviceId",
|
|
40171
|
+
form: "single",
|
|
40172
|
+
optional: false
|
|
40173
|
+
}],
|
|
40116
40174
|
"ptz.getOptions": [{
|
|
40117
40175
|
name: "deviceId",
|
|
40118
40176
|
form: "single",
|
|
@@ -40158,6 +40216,11 @@ Object.freeze({
|
|
|
40158
40216
|
form: "single",
|
|
40159
40217
|
optional: false
|
|
40160
40218
|
}],
|
|
40219
|
+
"ptz.setHomeReturn": [{
|
|
40220
|
+
name: "deviceId",
|
|
40221
|
+
form: "single",
|
|
40222
|
+
optional: false
|
|
40223
|
+
}],
|
|
40161
40224
|
"ptz.stop": [{
|
|
40162
40225
|
name: "deviceId",
|
|
40163
40226
|
form: "single",
|
|
@@ -5433,7 +5433,7 @@ var ZodIssueCode = {
|
|
|
5433
5433
|
var ZodFirstPartyTypeKind;
|
|
5434
5434
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5435
5435
|
//#endregion
|
|
5436
|
-
//#region ../types/dist/sleep-
|
|
5436
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5437
5437
|
/**
|
|
5438
5438
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5439
5439
|
* window to float samples (D455).
|
|
@@ -29801,6 +29801,26 @@ var PtzHomePresetSchema = object({
|
|
|
29801
29801
|
"none"
|
|
29802
29802
|
])
|
|
29803
29803
|
});
|
|
29804
|
+
/**
|
|
29805
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29806
|
+
* after how long.
|
|
29807
|
+
*
|
|
29808
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29809
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29810
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29811
|
+
* can disagree.
|
|
29812
|
+
*
|
|
29813
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29814
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29815
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29816
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29817
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29818
|
+
* return at all.
|
|
29819
|
+
*/
|
|
29820
|
+
var PtzHomeReturnSchema = object({
|
|
29821
|
+
enabled: boolean(),
|
|
29822
|
+
seconds: number().int()
|
|
29823
|
+
});
|
|
29804
29824
|
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({
|
|
29805
29825
|
deviceId: number(),
|
|
29806
29826
|
presetId: string()
|
|
@@ -29823,6 +29843,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29823
29843
|
}), _void(), {
|
|
29824
29844
|
kind: "mutation",
|
|
29825
29845
|
auth: "admin"
|
|
29846
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
29847
|
+
kind: "mutation",
|
|
29848
|
+
auth: "admin"
|
|
29849
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29850
|
+
deviceId: number(),
|
|
29851
|
+
enabled: boolean(),
|
|
29852
|
+
seconds: number().int().min(0).max(3600)
|
|
29853
|
+
}), _void(), {
|
|
29854
|
+
kind: "mutation",
|
|
29855
|
+
auth: "admin"
|
|
29826
29856
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
29827
29857
|
deviceId: number(),
|
|
29828
29858
|
enabled: boolean()
|
|
@@ -36851,6 +36881,12 @@ Object.freeze({
|
|
|
36851
36881
|
addonId: null,
|
|
36852
36882
|
access: "create"
|
|
36853
36883
|
},
|
|
36884
|
+
"ptz.captureHomeHere": {
|
|
36885
|
+
capName: "ptz",
|
|
36886
|
+
capScope: "device",
|
|
36887
|
+
addonId: null,
|
|
36888
|
+
access: "create"
|
|
36889
|
+
},
|
|
36854
36890
|
"ptz.continuousMove": {
|
|
36855
36891
|
capName: "ptz",
|
|
36856
36892
|
capScope: "device",
|
|
@@ -36869,6 +36905,12 @@ Object.freeze({
|
|
|
36869
36905
|
addonId: null,
|
|
36870
36906
|
access: "view"
|
|
36871
36907
|
},
|
|
36908
|
+
"ptz.getHomeReturn": {
|
|
36909
|
+
capName: "ptz",
|
|
36910
|
+
capScope: "device",
|
|
36911
|
+
addonId: null,
|
|
36912
|
+
access: "view"
|
|
36913
|
+
},
|
|
36872
36914
|
"ptz.getOptions": {
|
|
36873
36915
|
capName: "ptz",
|
|
36874
36916
|
capScope: "device",
|
|
@@ -36923,6 +36965,12 @@ Object.freeze({
|
|
|
36923
36965
|
addonId: null,
|
|
36924
36966
|
access: "create"
|
|
36925
36967
|
},
|
|
36968
|
+
"ptz.setHomeReturn": {
|
|
36969
|
+
capName: "ptz",
|
|
36970
|
+
capScope: "device",
|
|
36971
|
+
addonId: null,
|
|
36972
|
+
access: "create"
|
|
36973
|
+
},
|
|
36926
36974
|
"ptz.stop": {
|
|
36927
36975
|
capName: "ptz",
|
|
36928
36976
|
capScope: "device",
|
|
@@ -40086,6 +40134,11 @@ Object.freeze({
|
|
|
40086
40134
|
form: "single",
|
|
40087
40135
|
optional: false
|
|
40088
40136
|
}],
|
|
40137
|
+
"ptz.captureHomeHere": [{
|
|
40138
|
+
name: "deviceId",
|
|
40139
|
+
form: "single",
|
|
40140
|
+
optional: false
|
|
40141
|
+
}],
|
|
40089
40142
|
"ptz.continuousMove": [{
|
|
40090
40143
|
name: "deviceId",
|
|
40091
40144
|
form: "single",
|
|
@@ -40101,6 +40154,11 @@ Object.freeze({
|
|
|
40101
40154
|
form: "single",
|
|
40102
40155
|
optional: false
|
|
40103
40156
|
}],
|
|
40157
|
+
"ptz.getHomeReturn": [{
|
|
40158
|
+
name: "deviceId",
|
|
40159
|
+
form: "single",
|
|
40160
|
+
optional: false
|
|
40161
|
+
}],
|
|
40104
40162
|
"ptz.getOptions": [{
|
|
40105
40163
|
name: "deviceId",
|
|
40106
40164
|
form: "single",
|
|
@@ -40146,6 +40204,11 @@ Object.freeze({
|
|
|
40146
40204
|
form: "single",
|
|
40147
40205
|
optional: false
|
|
40148
40206
|
}],
|
|
40207
|
+
"ptz.setHomeReturn": [{
|
|
40208
|
+
name: "deviceId",
|
|
40209
|
+
form: "single",
|
|
40210
|
+
optional: false
|
|
40211
|
+
}],
|
|
40149
40212
|
"ptz.stop": [{
|
|
40150
40213
|
name: "deviceId",
|
|
40151
40214
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.125",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|