@camstack/addon-provider-onvif 1.2.110 → 1.2.111
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 +84 -1
- package/dist/addon.mjs +84 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
|
|
|
5363
5363
|
var ZodFirstPartyTypeKind;
|
|
5364
5364
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5365
5365
|
//#endregion
|
|
5366
|
-
//#region ../types/dist/sleep-
|
|
5366
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5367
5367
|
/**
|
|
5368
5368
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5369
5369
|
* window to float samples (D455).
|
|
@@ -29108,6 +29108,47 @@ var ptzCapability = {
|
|
|
29108
29108
|
auth: "admin"
|
|
29109
29109
|
}),
|
|
29110
29110
|
/**
|
|
29111
|
+
* Make WHERE THE HEAD IS POINTING RIGHT NOW this camera's home.
|
|
29112
|
+
*
|
|
29113
|
+
* `setHomePreset` takes a preset id, and a preset id is the wrong shape for
|
|
29114
|
+
* the most natural thing an operator does: aim the camera, then say "here".
|
|
29115
|
+
* It is also the only shape a camera whose home is NOT a preset can accept
|
|
29116
|
+
* -- Reolink's home is a guard point, a stored position with no id at all,
|
|
29117
|
+
* and hiding the control for that case (as the UI briefly did) left the one
|
|
29118
|
+
* vendor with a native home unable to set it.
|
|
29119
|
+
*
|
|
29120
|
+
* Each provider does it its own way:
|
|
29121
|
+
* reolink `setGrd` with `needSetPos`, pinning the guard point here
|
|
29122
|
+
* hikvision / amcrest save a preset, then pin it as home
|
|
29123
|
+
* onvif REFUSES -- its home is the PTZ origin and cannot be moved
|
|
29124
|
+
*
|
|
29125
|
+
* A provider that cannot honour it throws rather than silently doing
|
|
29126
|
+
* nothing: an operator who pressed "set home here" and saw no error would
|
|
29127
|
+
* believe it took.
|
|
29128
|
+
*/
|
|
29129
|
+
captureHomeHere: method(object({ deviceId: number() }), _void(), {
|
|
29130
|
+
kind: "mutation",
|
|
29131
|
+
auth: "admin"
|
|
29132
|
+
}),
|
|
29133
|
+
/**
|
|
29134
|
+
* How long the camera waits, idle, before returning home on its own --
|
|
29135
|
+
* `null` when it has no such behaviour.
|
|
29136
|
+
*
|
|
29137
|
+
* Reolink's guard point carries one (`timeout`, freely settable in
|
|
29138
|
+
* seconds). It is a real function of the camera that we did not expose at
|
|
29139
|
+
* all, and it belongs next to the home it governs rather than in a vendor
|
|
29140
|
+
* settings page nobody associates with Home.
|
|
29141
|
+
*/
|
|
29142
|
+
getHomeReturnSeconds: method(object({ deviceId: number() }), number().int().nullable()),
|
|
29143
|
+
/** Set the idle-return delay. Refused by a camera that has no such timer. */
|
|
29144
|
+
setHomeReturnSeconds: method(object({
|
|
29145
|
+
deviceId: number(),
|
|
29146
|
+
seconds: number().int().min(0).max(3600)
|
|
29147
|
+
}), _void(), {
|
|
29148
|
+
kind: "mutation",
|
|
29149
|
+
auth: "admin"
|
|
29150
|
+
}),
|
|
29151
|
+
/**
|
|
29111
29152
|
* Pull the current PTZ position. Redundant with the auto-injected
|
|
29112
29153
|
* `getStatus` method (see `status` below); kept for callers that
|
|
29113
29154
|
* haven't migrated. Will be folded into `getStatus` in a future
|
|
@@ -36951,6 +36992,12 @@ Object.freeze({
|
|
|
36951
36992
|
addonId: null,
|
|
36952
36993
|
access: "create"
|
|
36953
36994
|
},
|
|
36995
|
+
"ptz.captureHomeHere": {
|
|
36996
|
+
capName: "ptz",
|
|
36997
|
+
capScope: "device",
|
|
36998
|
+
addonId: null,
|
|
36999
|
+
access: "create"
|
|
37000
|
+
},
|
|
36954
37001
|
"ptz.continuousMove": {
|
|
36955
37002
|
capName: "ptz",
|
|
36956
37003
|
capScope: "device",
|
|
@@ -36969,6 +37016,12 @@ Object.freeze({
|
|
|
36969
37016
|
addonId: null,
|
|
36970
37017
|
access: "view"
|
|
36971
37018
|
},
|
|
37019
|
+
"ptz.getHomeReturnSeconds": {
|
|
37020
|
+
capName: "ptz",
|
|
37021
|
+
capScope: "device",
|
|
37022
|
+
addonId: null,
|
|
37023
|
+
access: "view"
|
|
37024
|
+
},
|
|
36972
37025
|
"ptz.getOptions": {
|
|
36973
37026
|
capName: "ptz",
|
|
36974
37027
|
capScope: "device",
|
|
@@ -37023,6 +37076,12 @@ Object.freeze({
|
|
|
37023
37076
|
addonId: null,
|
|
37024
37077
|
access: "create"
|
|
37025
37078
|
},
|
|
37079
|
+
"ptz.setHomeReturnSeconds": {
|
|
37080
|
+
capName: "ptz",
|
|
37081
|
+
capScope: "device",
|
|
37082
|
+
addonId: null,
|
|
37083
|
+
access: "create"
|
|
37084
|
+
},
|
|
37026
37085
|
"ptz.stop": {
|
|
37027
37086
|
capName: "ptz",
|
|
37028
37087
|
capScope: "device",
|
|
@@ -40186,6 +40245,11 @@ Object.freeze({
|
|
|
40186
40245
|
form: "single",
|
|
40187
40246
|
optional: false
|
|
40188
40247
|
}],
|
|
40248
|
+
"ptz.captureHomeHere": [{
|
|
40249
|
+
name: "deviceId",
|
|
40250
|
+
form: "single",
|
|
40251
|
+
optional: false
|
|
40252
|
+
}],
|
|
40189
40253
|
"ptz.continuousMove": [{
|
|
40190
40254
|
name: "deviceId",
|
|
40191
40255
|
form: "single",
|
|
@@ -40201,6 +40265,11 @@ Object.freeze({
|
|
|
40201
40265
|
form: "single",
|
|
40202
40266
|
optional: false
|
|
40203
40267
|
}],
|
|
40268
|
+
"ptz.getHomeReturnSeconds": [{
|
|
40269
|
+
name: "deviceId",
|
|
40270
|
+
form: "single",
|
|
40271
|
+
optional: false
|
|
40272
|
+
}],
|
|
40204
40273
|
"ptz.getOptions": [{
|
|
40205
40274
|
name: "deviceId",
|
|
40206
40275
|
form: "single",
|
|
@@ -40246,6 +40315,11 @@ Object.freeze({
|
|
|
40246
40315
|
form: "single",
|
|
40247
40316
|
optional: false
|
|
40248
40317
|
}],
|
|
40318
|
+
"ptz.setHomeReturnSeconds": [{
|
|
40319
|
+
name: "deviceId",
|
|
40320
|
+
form: "single",
|
|
40321
|
+
optional: false
|
|
40322
|
+
}],
|
|
40249
40323
|
"ptz.stop": [{
|
|
40250
40324
|
name: "deviceId",
|
|
40251
40325
|
form: "single",
|
|
@@ -50383,6 +50457,15 @@ var OnvifCamera = class {
|
|
|
50383
50457
|
source: "native"
|
|
50384
50458
|
};
|
|
50385
50459
|
},
|
|
50460
|
+
captureHomeHere: async () => {
|
|
50461
|
+
throw new Error("OnvifCamera: home is the PTZ origin on ONVIF and cannot be moved to the current position");
|
|
50462
|
+
},
|
|
50463
|
+
getHomeReturnSeconds: async () => {
|
|
50464
|
+
return null;
|
|
50465
|
+
},
|
|
50466
|
+
setHomeReturnSeconds: async () => {
|
|
50467
|
+
throw new Error("OnvifCamera: no idle-return timer on this driver");
|
|
50468
|
+
},
|
|
50386
50469
|
setHomePreset: async () => {
|
|
50387
50470
|
throw new Error("OnvifCamera: home is the PTZ origin on ONVIF and cannot be pointed at a preset");
|
|
50388
50471
|
},
|
package/dist/addon.mjs
CHANGED
|
@@ -5364,7 +5364,7 @@ var ZodIssueCode = {
|
|
|
5364
5364
|
var ZodFirstPartyTypeKind;
|
|
5365
5365
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5366
5366
|
//#endregion
|
|
5367
|
-
//#region ../types/dist/sleep-
|
|
5367
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5368
5368
|
/**
|
|
5369
5369
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5370
5370
|
* window to float samples (D455).
|
|
@@ -29109,6 +29109,47 @@ var ptzCapability = {
|
|
|
29109
29109
|
auth: "admin"
|
|
29110
29110
|
}),
|
|
29111
29111
|
/**
|
|
29112
|
+
* Make WHERE THE HEAD IS POINTING RIGHT NOW this camera's home.
|
|
29113
|
+
*
|
|
29114
|
+
* `setHomePreset` takes a preset id, and a preset id is the wrong shape for
|
|
29115
|
+
* the most natural thing an operator does: aim the camera, then say "here".
|
|
29116
|
+
* It is also the only shape a camera whose home is NOT a preset can accept
|
|
29117
|
+
* -- Reolink's home is a guard point, a stored position with no id at all,
|
|
29118
|
+
* and hiding the control for that case (as the UI briefly did) left the one
|
|
29119
|
+
* vendor with a native home unable to set it.
|
|
29120
|
+
*
|
|
29121
|
+
* Each provider does it its own way:
|
|
29122
|
+
* reolink `setGrd` with `needSetPos`, pinning the guard point here
|
|
29123
|
+
* hikvision / amcrest save a preset, then pin it as home
|
|
29124
|
+
* onvif REFUSES -- its home is the PTZ origin and cannot be moved
|
|
29125
|
+
*
|
|
29126
|
+
* A provider that cannot honour it throws rather than silently doing
|
|
29127
|
+
* nothing: an operator who pressed "set home here" and saw no error would
|
|
29128
|
+
* believe it took.
|
|
29129
|
+
*/
|
|
29130
|
+
captureHomeHere: method(object({ deviceId: number() }), _void(), {
|
|
29131
|
+
kind: "mutation",
|
|
29132
|
+
auth: "admin"
|
|
29133
|
+
}),
|
|
29134
|
+
/**
|
|
29135
|
+
* How long the camera waits, idle, before returning home on its own --
|
|
29136
|
+
* `null` when it has no such behaviour.
|
|
29137
|
+
*
|
|
29138
|
+
* Reolink's guard point carries one (`timeout`, freely settable in
|
|
29139
|
+
* seconds). It is a real function of the camera that we did not expose at
|
|
29140
|
+
* all, and it belongs next to the home it governs rather than in a vendor
|
|
29141
|
+
* settings page nobody associates with Home.
|
|
29142
|
+
*/
|
|
29143
|
+
getHomeReturnSeconds: method(object({ deviceId: number() }), number().int().nullable()),
|
|
29144
|
+
/** Set the idle-return delay. Refused by a camera that has no such timer. */
|
|
29145
|
+
setHomeReturnSeconds: method(object({
|
|
29146
|
+
deviceId: number(),
|
|
29147
|
+
seconds: number().int().min(0).max(3600)
|
|
29148
|
+
}), _void(), {
|
|
29149
|
+
kind: "mutation",
|
|
29150
|
+
auth: "admin"
|
|
29151
|
+
}),
|
|
29152
|
+
/**
|
|
29112
29153
|
* Pull the current PTZ position. Redundant with the auto-injected
|
|
29113
29154
|
* `getStatus` method (see `status` below); kept for callers that
|
|
29114
29155
|
* haven't migrated. Will be folded into `getStatus` in a future
|
|
@@ -36952,6 +36993,12 @@ Object.freeze({
|
|
|
36952
36993
|
addonId: null,
|
|
36953
36994
|
access: "create"
|
|
36954
36995
|
},
|
|
36996
|
+
"ptz.captureHomeHere": {
|
|
36997
|
+
capName: "ptz",
|
|
36998
|
+
capScope: "device",
|
|
36999
|
+
addonId: null,
|
|
37000
|
+
access: "create"
|
|
37001
|
+
},
|
|
36955
37002
|
"ptz.continuousMove": {
|
|
36956
37003
|
capName: "ptz",
|
|
36957
37004
|
capScope: "device",
|
|
@@ -36970,6 +37017,12 @@ Object.freeze({
|
|
|
36970
37017
|
addonId: null,
|
|
36971
37018
|
access: "view"
|
|
36972
37019
|
},
|
|
37020
|
+
"ptz.getHomeReturnSeconds": {
|
|
37021
|
+
capName: "ptz",
|
|
37022
|
+
capScope: "device",
|
|
37023
|
+
addonId: null,
|
|
37024
|
+
access: "view"
|
|
37025
|
+
},
|
|
36973
37026
|
"ptz.getOptions": {
|
|
36974
37027
|
capName: "ptz",
|
|
36975
37028
|
capScope: "device",
|
|
@@ -37024,6 +37077,12 @@ Object.freeze({
|
|
|
37024
37077
|
addonId: null,
|
|
37025
37078
|
access: "create"
|
|
37026
37079
|
},
|
|
37080
|
+
"ptz.setHomeReturnSeconds": {
|
|
37081
|
+
capName: "ptz",
|
|
37082
|
+
capScope: "device",
|
|
37083
|
+
addonId: null,
|
|
37084
|
+
access: "create"
|
|
37085
|
+
},
|
|
37027
37086
|
"ptz.stop": {
|
|
37028
37087
|
capName: "ptz",
|
|
37029
37088
|
capScope: "device",
|
|
@@ -40187,6 +40246,11 @@ Object.freeze({
|
|
|
40187
40246
|
form: "single",
|
|
40188
40247
|
optional: false
|
|
40189
40248
|
}],
|
|
40249
|
+
"ptz.captureHomeHere": [{
|
|
40250
|
+
name: "deviceId",
|
|
40251
|
+
form: "single",
|
|
40252
|
+
optional: false
|
|
40253
|
+
}],
|
|
40190
40254
|
"ptz.continuousMove": [{
|
|
40191
40255
|
name: "deviceId",
|
|
40192
40256
|
form: "single",
|
|
@@ -40202,6 +40266,11 @@ Object.freeze({
|
|
|
40202
40266
|
form: "single",
|
|
40203
40267
|
optional: false
|
|
40204
40268
|
}],
|
|
40269
|
+
"ptz.getHomeReturnSeconds": [{
|
|
40270
|
+
name: "deviceId",
|
|
40271
|
+
form: "single",
|
|
40272
|
+
optional: false
|
|
40273
|
+
}],
|
|
40205
40274
|
"ptz.getOptions": [{
|
|
40206
40275
|
name: "deviceId",
|
|
40207
40276
|
form: "single",
|
|
@@ -40247,6 +40316,11 @@ Object.freeze({
|
|
|
40247
40316
|
form: "single",
|
|
40248
40317
|
optional: false
|
|
40249
40318
|
}],
|
|
40319
|
+
"ptz.setHomeReturnSeconds": [{
|
|
40320
|
+
name: "deviceId",
|
|
40321
|
+
form: "single",
|
|
40322
|
+
optional: false
|
|
40323
|
+
}],
|
|
40250
40324
|
"ptz.stop": [{
|
|
40251
40325
|
name: "deviceId",
|
|
40252
40326
|
form: "single",
|
|
@@ -50384,6 +50458,15 @@ var OnvifCamera = class {
|
|
|
50384
50458
|
source: "native"
|
|
50385
50459
|
};
|
|
50386
50460
|
},
|
|
50461
|
+
captureHomeHere: async () => {
|
|
50462
|
+
throw new Error("OnvifCamera: home is the PTZ origin on ONVIF and cannot be moved to the current position");
|
|
50463
|
+
},
|
|
50464
|
+
getHomeReturnSeconds: async () => {
|
|
50465
|
+
return null;
|
|
50466
|
+
},
|
|
50467
|
+
setHomeReturnSeconds: async () => {
|
|
50468
|
+
throw new Error("OnvifCamera: no idle-return timer on this driver");
|
|
50469
|
+
},
|
|
50387
50470
|
setHomePreset: async () => {
|
|
50388
50471
|
throw new Error("OnvifCamera: home is the PTZ origin on ONVIF and cannot be pointed at a preset");
|
|
50389
50472
|
},
|