@camstack/addon-export-google 0.1.74 → 0.1.76
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/export-google.addon.js +209 -7
- package/dist/export-google.addon.mjs +209 -7
- package/package.json +1 -1
|
@@ -5438,7 +5438,7 @@ var ZodIssueCode = {
|
|
|
5438
5438
|
var ZodFirstPartyTypeKind;
|
|
5439
5439
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5440
5440
|
//#endregion
|
|
5441
|
-
//#region ../types/dist/sleep-
|
|
5441
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5442
5442
|
/**
|
|
5443
5443
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5444
5444
|
* window to float samples (D455).
|
|
@@ -28994,14 +28994,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
|
|
|
28994
28994
|
kind: "mutation",
|
|
28995
28995
|
auth: "admin"
|
|
28996
28996
|
});
|
|
28997
|
+
/**
|
|
28998
|
+
* What a preset id DOES on this camera.
|
|
28999
|
+
*
|
|
29000
|
+
* On several PTZ firmwares the preset namespace is shared: low ids are stored
|
|
29001
|
+
* positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
|
|
29002
|
+
* (Hikvision) returns its own reserved band in the preset list, named by the
|
|
29003
|
+
* firmware:
|
|
29004
|
+
*
|
|
29005
|
+
* 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
|
|
29006
|
+
* 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
|
|
29007
|
+
* 95 Call OSD menu
|
|
29008
|
+
*
|
|
29009
|
+
* We used to hand all of these to the UI as ordinary presets. Saving over one
|
|
29010
|
+
* is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
|
|
29011
|
+
* camera refusing to let "Back to origin" be overwritten, surfaced to the
|
|
29012
|
+
* operator as a transport failure.
|
|
29013
|
+
*
|
|
29014
|
+
* A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
|
|
29015
|
+
* is the single most useful thing that camera can do. Only `savePreset` and
|
|
29016
|
+
* `deletePreset` are gated.
|
|
29017
|
+
*/
|
|
29018
|
+
var PtzPresetFunctionSchema = _enum([
|
|
29019
|
+
"home",
|
|
29020
|
+
"day-mode",
|
|
29021
|
+
"night-mode",
|
|
29022
|
+
"day-night-auto",
|
|
29023
|
+
"set-limits",
|
|
29024
|
+
"save-limits",
|
|
29025
|
+
"reboot",
|
|
29026
|
+
"osd-menu"
|
|
29027
|
+
]);
|
|
28997
29028
|
var PtzPresetSchema = object({
|
|
28998
29029
|
id: string(),
|
|
28999
|
-
name: string()
|
|
29030
|
+
name: string(),
|
|
29031
|
+
/**
|
|
29032
|
+
* The firmware function this id performs, when the provider KNOWS the id is
|
|
29033
|
+
* reserved. `null` = an ordinary stored position, OR a reserved id this
|
|
29034
|
+
* provider does not recognise -- the two are told apart by `writable`.
|
|
29035
|
+
*/
|
|
29036
|
+
fn: PtzPresetFunctionSchema.nullable(),
|
|
29037
|
+
/**
|
|
29038
|
+
* Whether `savePreset` / `deletePreset` may target this id. A provider sets
|
|
29039
|
+
* it false only for a band it KNOWS is reserved; where the firmware is not
|
|
29040
|
+
* documented it stays true and a refusal comes from the camera, named.
|
|
29041
|
+
*/
|
|
29042
|
+
writable: boolean()
|
|
29000
29043
|
});
|
|
29044
|
+
/**
|
|
29045
|
+
* Where the head is pointing -- per axis, and `null` when the driver cannot
|
|
29046
|
+
* read it.
|
|
29047
|
+
*
|
|
29048
|
+
* It used to be three REQUIRED numbers, which left a provider that cannot read
|
|
29049
|
+
* position no way to say so. All four said `0`:
|
|
29050
|
+
*
|
|
29051
|
+
* reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
|
|
29052
|
+
* path lands upstream"
|
|
29053
|
+
* hikvision stub, "firmware-dependent and frequently absent"
|
|
29054
|
+
* amcrest stub, "no generic absolute-position read for this model family"
|
|
29055
|
+
* onvif throws
|
|
29056
|
+
*
|
|
29057
|
+
* So every consumer asking where a camera points was told "perfectly centred"
|
|
29058
|
+
* by four cameras that had never looked. That is D393 -- a measurement that
|
|
29059
|
+
* FAILED is `null`, never `0`, and the type says so all the way to the
|
|
29060
|
+
* decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
|
|
29061
|
+
* headroom", which evacuated a healthy disk.
|
|
29062
|
+
*
|
|
29063
|
+
* D393 also says to check for a narrower structural TWIN of the result type.
|
|
29064
|
+
* There is one: `PtzStatusSchema` extends this, so the lie had already
|
|
29065
|
+
* propagated into `getStatus`, which is the surface `getPosition`'s own comment
|
|
29066
|
+
* tells callers to migrate to.
|
|
29067
|
+
*/
|
|
29001
29068
|
var PtzPositionSchema = object({
|
|
29002
|
-
pan: number(),
|
|
29003
|
-
tilt: number(),
|
|
29004
|
-
zoom: number()
|
|
29069
|
+
pan: number().nullable(),
|
|
29070
|
+
tilt: number().nullable(),
|
|
29071
|
+
zoom: number().nullable()
|
|
29005
29072
|
});
|
|
29006
29073
|
var PtzMoveCommandSchema = object({
|
|
29007
29074
|
pan: number().optional(),
|
|
@@ -29020,7 +29087,72 @@ var PtzOptionsSchema = object({
|
|
|
29020
29087
|
maxPresets: number().optional(),
|
|
29021
29088
|
/** Whether the camera exposes a controllable autofocus toggle
|
|
29022
29089
|
* (boolean `hasX` per the getOptions availability convention). */
|
|
29023
|
-
hasAutofocus: boolean()
|
|
29090
|
+
hasAutofocus: boolean(),
|
|
29091
|
+
/**
|
|
29092
|
+
* How many distinct speeds this camera's NATIVE scale offers.
|
|
29093
|
+
*
|
|
29094
|
+
* The cap's `speed` is normalized 0..1 and each provider maps it down --
|
|
29095
|
+
* Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
|
|
29096
|
+
* value hides how coarse that really is: asking an amcrest for `0.37` is
|
|
29097
|
+
* meaningless, because it has eight steps and three of them round to the
|
|
29098
|
+
* same one. A loop that tunes its own gain has to know the granularity of
|
|
29099
|
+
* the knob it is turning.
|
|
29100
|
+
*
|
|
29101
|
+
* `null` = the driver does not know, or the scale is continuous (ONVIF takes
|
|
29102
|
+
* a float). Never a made-up number.
|
|
29103
|
+
*/
|
|
29104
|
+
speedSteps: number().int().positive().nullable(),
|
|
29105
|
+
/**
|
|
29106
|
+
* How long ONE `move` pulse runs on this driver, ms.
|
|
29107
|
+
*
|
|
29108
|
+
* `move` is a self-terminating burst everywhere, but every provider hardcoded
|
|
29109
|
+
* its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
|
|
29110
|
+
* 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
|
|
29111
|
+
* did the head travel per pulse": without it a measured displacement has no
|
|
29112
|
+
* gain to be divided into.
|
|
29113
|
+
*
|
|
29114
|
+
* `null` = the driver cannot say.
|
|
29115
|
+
*/
|
|
29116
|
+
moveImpulseMs: number().int().positive().nullable()
|
|
29117
|
+
});
|
|
29118
|
+
/**
|
|
29119
|
+
* Which preset `goHome` goes to, and WHO decided.
|
|
29120
|
+
*
|
|
29121
|
+
* `goHome` used to be three vendor "conventions" written in three comments --
|
|
29122
|
+
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
29123
|
+
* not one of the three cameras honours its own:
|
|
29124
|
+
*
|
|
29125
|
+
* 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
|
|
29126
|
+
* 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
|
|
29127
|
+
* 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
|
|
29128
|
+
*
|
|
29129
|
+
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
29130
|
+
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
29131
|
+
* this is the HOTTEST path -- it runs every time a subject is released -- so it
|
|
29132
|
+
* needs an answer that is true per camera and audible when it is missing.
|
|
29133
|
+
*
|
|
29134
|
+
* `source` is what makes it honest:
|
|
29135
|
+
* - `operator` -- picked in the UI, stored by the provider.
|
|
29136
|
+
* - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
|
|
29137
|
+
* "Back to origin"), adopted as the default with nothing to configure.
|
|
29138
|
+
* - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
|
|
29139
|
+
* `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
|
|
29140
|
+
* that is not a failure -- there is nothing to pick, and the UI must offer
|
|
29141
|
+
* no picker.
|
|
29142
|
+
* - `none` -- nothing is configured and the camera names nothing.
|
|
29143
|
+
* `goHome` REFUSES rather than moving the head somewhere arbitrary.
|
|
29144
|
+
*
|
|
29145
|
+
* `source === 'none'` is the refusal condition, NOT `presetId === null`: the
|
|
29146
|
+
* native case has no preset and homes perfectly well.
|
|
29147
|
+
*/
|
|
29148
|
+
var PtzHomePresetSchema = object({
|
|
29149
|
+
presetId: string().nullable(),
|
|
29150
|
+
source: _enum([
|
|
29151
|
+
"operator",
|
|
29152
|
+
"firmware",
|
|
29153
|
+
"native",
|
|
29154
|
+
"none"
|
|
29155
|
+
])
|
|
29024
29156
|
});
|
|
29025
29157
|
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({
|
|
29026
29158
|
deviceId: number(),
|
|
@@ -29038,7 +29170,22 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29038
29170
|
}), _void(), {
|
|
29039
29171
|
kind: "mutation",
|
|
29040
29172
|
auth: "admin"
|
|
29041
|
-
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }),
|
|
29173
|
+
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
|
|
29174
|
+
deviceId: number(),
|
|
29175
|
+
presetId: string().nullable()
|
|
29176
|
+
}), _void(), {
|
|
29177
|
+
kind: "mutation",
|
|
29178
|
+
auth: "admin"
|
|
29179
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
29180
|
+
kind: "mutation",
|
|
29181
|
+
auth: "admin"
|
|
29182
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
29183
|
+
deviceId: number(),
|
|
29184
|
+
seconds: number().int().min(0).max(3600)
|
|
29185
|
+
}), _void(), {
|
|
29186
|
+
kind: "mutation",
|
|
29187
|
+
auth: "admin"
|
|
29188
|
+
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
29042
29189
|
deviceId: number(),
|
|
29043
29190
|
enabled: boolean()
|
|
29044
29191
|
}), _void(), { kind: "mutation" });
|
|
@@ -36048,6 +36195,12 @@ Object.freeze({
|
|
|
36048
36195
|
addonId: null,
|
|
36049
36196
|
access: "create"
|
|
36050
36197
|
},
|
|
36198
|
+
"ptz.captureHomeHere": {
|
|
36199
|
+
capName: "ptz",
|
|
36200
|
+
capScope: "device",
|
|
36201
|
+
addonId: null,
|
|
36202
|
+
access: "create"
|
|
36203
|
+
},
|
|
36051
36204
|
"ptz.continuousMove": {
|
|
36052
36205
|
capName: "ptz",
|
|
36053
36206
|
capScope: "device",
|
|
@@ -36060,6 +36213,18 @@ Object.freeze({
|
|
|
36060
36213
|
addonId: null,
|
|
36061
36214
|
access: "delete"
|
|
36062
36215
|
},
|
|
36216
|
+
"ptz.getHomePreset": {
|
|
36217
|
+
capName: "ptz",
|
|
36218
|
+
capScope: "device",
|
|
36219
|
+
addonId: null,
|
|
36220
|
+
access: "view"
|
|
36221
|
+
},
|
|
36222
|
+
"ptz.getHomeReturnSeconds": {
|
|
36223
|
+
capName: "ptz",
|
|
36224
|
+
capScope: "device",
|
|
36225
|
+
addonId: null,
|
|
36226
|
+
access: "view"
|
|
36227
|
+
},
|
|
36063
36228
|
"ptz.getOptions": {
|
|
36064
36229
|
capName: "ptz",
|
|
36065
36230
|
capScope: "device",
|
|
@@ -36108,6 +36273,18 @@ Object.freeze({
|
|
|
36108
36273
|
addonId: null,
|
|
36109
36274
|
access: "create"
|
|
36110
36275
|
},
|
|
36276
|
+
"ptz.setHomePreset": {
|
|
36277
|
+
capName: "ptz",
|
|
36278
|
+
capScope: "device",
|
|
36279
|
+
addonId: null,
|
|
36280
|
+
access: "create"
|
|
36281
|
+
},
|
|
36282
|
+
"ptz.setHomeReturnSeconds": {
|
|
36283
|
+
capName: "ptz",
|
|
36284
|
+
capScope: "device",
|
|
36285
|
+
addonId: null,
|
|
36286
|
+
access: "create"
|
|
36287
|
+
},
|
|
36111
36288
|
"ptz.stop": {
|
|
36112
36289
|
capName: "ptz",
|
|
36113
36290
|
capScope: "device",
|
|
@@ -39271,6 +39448,11 @@ Object.freeze({
|
|
|
39271
39448
|
form: "single",
|
|
39272
39449
|
optional: false
|
|
39273
39450
|
}],
|
|
39451
|
+
"ptz.captureHomeHere": [{
|
|
39452
|
+
name: "deviceId",
|
|
39453
|
+
form: "single",
|
|
39454
|
+
optional: false
|
|
39455
|
+
}],
|
|
39274
39456
|
"ptz.continuousMove": [{
|
|
39275
39457
|
name: "deviceId",
|
|
39276
39458
|
form: "single",
|
|
@@ -39281,6 +39463,16 @@ Object.freeze({
|
|
|
39281
39463
|
form: "single",
|
|
39282
39464
|
optional: false
|
|
39283
39465
|
}],
|
|
39466
|
+
"ptz.getHomePreset": [{
|
|
39467
|
+
name: "deviceId",
|
|
39468
|
+
form: "single",
|
|
39469
|
+
optional: false
|
|
39470
|
+
}],
|
|
39471
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39472
|
+
name: "deviceId",
|
|
39473
|
+
form: "single",
|
|
39474
|
+
optional: false
|
|
39475
|
+
}],
|
|
39284
39476
|
"ptz.getOptions": [{
|
|
39285
39477
|
name: "deviceId",
|
|
39286
39478
|
form: "single",
|
|
@@ -39321,6 +39513,16 @@ Object.freeze({
|
|
|
39321
39513
|
form: "single",
|
|
39322
39514
|
optional: false
|
|
39323
39515
|
}],
|
|
39516
|
+
"ptz.setHomePreset": [{
|
|
39517
|
+
name: "deviceId",
|
|
39518
|
+
form: "single",
|
|
39519
|
+
optional: false
|
|
39520
|
+
}],
|
|
39521
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39522
|
+
name: "deviceId",
|
|
39523
|
+
form: "single",
|
|
39524
|
+
optional: false
|
|
39525
|
+
}],
|
|
39324
39526
|
"ptz.stop": [{
|
|
39325
39527
|
name: "deviceId",
|
|
39326
39528
|
form: "single",
|
|
@@ -5434,7 +5434,7 @@ var ZodIssueCode = {
|
|
|
5434
5434
|
var ZodFirstPartyTypeKind;
|
|
5435
5435
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5436
5436
|
//#endregion
|
|
5437
|
-
//#region ../types/dist/sleep-
|
|
5437
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5438
5438
|
/**
|
|
5439
5439
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5440
5440
|
* window to float samples (D455).
|
|
@@ -28990,14 +28990,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
|
|
|
28990
28990
|
kind: "mutation",
|
|
28991
28991
|
auth: "admin"
|
|
28992
28992
|
});
|
|
28993
|
+
/**
|
|
28994
|
+
* What a preset id DOES on this camera.
|
|
28995
|
+
*
|
|
28996
|
+
* On several PTZ firmwares the preset namespace is shared: low ids are stored
|
|
28997
|
+
* positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
|
|
28998
|
+
* (Hikvision) returns its own reserved band in the preset list, named by the
|
|
28999
|
+
* firmware:
|
|
29000
|
+
*
|
|
29001
|
+
* 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
|
|
29002
|
+
* 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
|
|
29003
|
+
* 95 Call OSD menu
|
|
29004
|
+
*
|
|
29005
|
+
* We used to hand all of these to the UI as ordinary presets. Saving over one
|
|
29006
|
+
* is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
|
|
29007
|
+
* camera refusing to let "Back to origin" be overwritten, surfaced to the
|
|
29008
|
+
* operator as a transport failure.
|
|
29009
|
+
*
|
|
29010
|
+
* A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
|
|
29011
|
+
* is the single most useful thing that camera can do. Only `savePreset` and
|
|
29012
|
+
* `deletePreset` are gated.
|
|
29013
|
+
*/
|
|
29014
|
+
var PtzPresetFunctionSchema = _enum([
|
|
29015
|
+
"home",
|
|
29016
|
+
"day-mode",
|
|
29017
|
+
"night-mode",
|
|
29018
|
+
"day-night-auto",
|
|
29019
|
+
"set-limits",
|
|
29020
|
+
"save-limits",
|
|
29021
|
+
"reboot",
|
|
29022
|
+
"osd-menu"
|
|
29023
|
+
]);
|
|
28993
29024
|
var PtzPresetSchema = object({
|
|
28994
29025
|
id: string(),
|
|
28995
|
-
name: string()
|
|
29026
|
+
name: string(),
|
|
29027
|
+
/**
|
|
29028
|
+
* The firmware function this id performs, when the provider KNOWS the id is
|
|
29029
|
+
* reserved. `null` = an ordinary stored position, OR a reserved id this
|
|
29030
|
+
* provider does not recognise -- the two are told apart by `writable`.
|
|
29031
|
+
*/
|
|
29032
|
+
fn: PtzPresetFunctionSchema.nullable(),
|
|
29033
|
+
/**
|
|
29034
|
+
* Whether `savePreset` / `deletePreset` may target this id. A provider sets
|
|
29035
|
+
* it false only for a band it KNOWS is reserved; where the firmware is not
|
|
29036
|
+
* documented it stays true and a refusal comes from the camera, named.
|
|
29037
|
+
*/
|
|
29038
|
+
writable: boolean()
|
|
28996
29039
|
});
|
|
29040
|
+
/**
|
|
29041
|
+
* Where the head is pointing -- per axis, and `null` when the driver cannot
|
|
29042
|
+
* read it.
|
|
29043
|
+
*
|
|
29044
|
+
* It used to be three REQUIRED numbers, which left a provider that cannot read
|
|
29045
|
+
* position no way to say so. All four said `0`:
|
|
29046
|
+
*
|
|
29047
|
+
* reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
|
|
29048
|
+
* path lands upstream"
|
|
29049
|
+
* hikvision stub, "firmware-dependent and frequently absent"
|
|
29050
|
+
* amcrest stub, "no generic absolute-position read for this model family"
|
|
29051
|
+
* onvif throws
|
|
29052
|
+
*
|
|
29053
|
+
* So every consumer asking where a camera points was told "perfectly centred"
|
|
29054
|
+
* by four cameras that had never looked. That is D393 -- a measurement that
|
|
29055
|
+
* FAILED is `null`, never `0`, and the type says so all the way to the
|
|
29056
|
+
* decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
|
|
29057
|
+
* headroom", which evacuated a healthy disk.
|
|
29058
|
+
*
|
|
29059
|
+
* D393 also says to check for a narrower structural TWIN of the result type.
|
|
29060
|
+
* There is one: `PtzStatusSchema` extends this, so the lie had already
|
|
29061
|
+
* propagated into `getStatus`, which is the surface `getPosition`'s own comment
|
|
29062
|
+
* tells callers to migrate to.
|
|
29063
|
+
*/
|
|
28997
29064
|
var PtzPositionSchema = object({
|
|
28998
|
-
pan: number(),
|
|
28999
|
-
tilt: number(),
|
|
29000
|
-
zoom: number()
|
|
29065
|
+
pan: number().nullable(),
|
|
29066
|
+
tilt: number().nullable(),
|
|
29067
|
+
zoom: number().nullable()
|
|
29001
29068
|
});
|
|
29002
29069
|
var PtzMoveCommandSchema = object({
|
|
29003
29070
|
pan: number().optional(),
|
|
@@ -29016,7 +29083,72 @@ var PtzOptionsSchema = object({
|
|
|
29016
29083
|
maxPresets: number().optional(),
|
|
29017
29084
|
/** Whether the camera exposes a controllable autofocus toggle
|
|
29018
29085
|
* (boolean `hasX` per the getOptions availability convention). */
|
|
29019
|
-
hasAutofocus: boolean()
|
|
29086
|
+
hasAutofocus: boolean(),
|
|
29087
|
+
/**
|
|
29088
|
+
* How many distinct speeds this camera's NATIVE scale offers.
|
|
29089
|
+
*
|
|
29090
|
+
* The cap's `speed` is normalized 0..1 and each provider maps it down --
|
|
29091
|
+
* Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
|
|
29092
|
+
* value hides how coarse that really is: asking an amcrest for `0.37` is
|
|
29093
|
+
* meaningless, because it has eight steps and three of them round to the
|
|
29094
|
+
* same one. A loop that tunes its own gain has to know the granularity of
|
|
29095
|
+
* the knob it is turning.
|
|
29096
|
+
*
|
|
29097
|
+
* `null` = the driver does not know, or the scale is continuous (ONVIF takes
|
|
29098
|
+
* a float). Never a made-up number.
|
|
29099
|
+
*/
|
|
29100
|
+
speedSteps: number().int().positive().nullable(),
|
|
29101
|
+
/**
|
|
29102
|
+
* How long ONE `move` pulse runs on this driver, ms.
|
|
29103
|
+
*
|
|
29104
|
+
* `move` is a self-terminating burst everywhere, but every provider hardcoded
|
|
29105
|
+
* its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
|
|
29106
|
+
* 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
|
|
29107
|
+
* did the head travel per pulse": without it a measured displacement has no
|
|
29108
|
+
* gain to be divided into.
|
|
29109
|
+
*
|
|
29110
|
+
* `null` = the driver cannot say.
|
|
29111
|
+
*/
|
|
29112
|
+
moveImpulseMs: number().int().positive().nullable()
|
|
29113
|
+
});
|
|
29114
|
+
/**
|
|
29115
|
+
* Which preset `goHome` goes to, and WHO decided.
|
|
29116
|
+
*
|
|
29117
|
+
* `goHome` used to be three vendor "conventions" written in three comments --
|
|
29118
|
+
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
29119
|
+
* not one of the three cameras honours its own:
|
|
29120
|
+
*
|
|
29121
|
+
* 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
|
|
29122
|
+
* 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
|
|
29123
|
+
* 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
|
|
29124
|
+
*
|
|
29125
|
+
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
29126
|
+
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
29127
|
+
* this is the HOTTEST path -- it runs every time a subject is released -- so it
|
|
29128
|
+
* needs an answer that is true per camera and audible when it is missing.
|
|
29129
|
+
*
|
|
29130
|
+
* `source` is what makes it honest:
|
|
29131
|
+
* - `operator` -- picked in the UI, stored by the provider.
|
|
29132
|
+
* - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
|
|
29133
|
+
* "Back to origin"), adopted as the default with nothing to configure.
|
|
29134
|
+
* - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
|
|
29135
|
+
* `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
|
|
29136
|
+
* that is not a failure -- there is nothing to pick, and the UI must offer
|
|
29137
|
+
* no picker.
|
|
29138
|
+
* - `none` -- nothing is configured and the camera names nothing.
|
|
29139
|
+
* `goHome` REFUSES rather than moving the head somewhere arbitrary.
|
|
29140
|
+
*
|
|
29141
|
+
* `source === 'none'` is the refusal condition, NOT `presetId === null`: the
|
|
29142
|
+
* native case has no preset and homes perfectly well.
|
|
29143
|
+
*/
|
|
29144
|
+
var PtzHomePresetSchema = object({
|
|
29145
|
+
presetId: string().nullable(),
|
|
29146
|
+
source: _enum([
|
|
29147
|
+
"operator",
|
|
29148
|
+
"firmware",
|
|
29149
|
+
"native",
|
|
29150
|
+
"none"
|
|
29151
|
+
])
|
|
29020
29152
|
});
|
|
29021
29153
|
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({
|
|
29022
29154
|
deviceId: number(),
|
|
@@ -29034,7 +29166,22 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29034
29166
|
}), _void(), {
|
|
29035
29167
|
kind: "mutation",
|
|
29036
29168
|
auth: "admin"
|
|
29037
|
-
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }),
|
|
29169
|
+
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
|
|
29170
|
+
deviceId: number(),
|
|
29171
|
+
presetId: string().nullable()
|
|
29172
|
+
}), _void(), {
|
|
29173
|
+
kind: "mutation",
|
|
29174
|
+
auth: "admin"
|
|
29175
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
29176
|
+
kind: "mutation",
|
|
29177
|
+
auth: "admin"
|
|
29178
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
29179
|
+
deviceId: number(),
|
|
29180
|
+
seconds: number().int().min(0).max(3600)
|
|
29181
|
+
}), _void(), {
|
|
29182
|
+
kind: "mutation",
|
|
29183
|
+
auth: "admin"
|
|
29184
|
+
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
29038
29185
|
deviceId: number(),
|
|
29039
29186
|
enabled: boolean()
|
|
29040
29187
|
}), _void(), { kind: "mutation" });
|
|
@@ -36044,6 +36191,12 @@ Object.freeze({
|
|
|
36044
36191
|
addonId: null,
|
|
36045
36192
|
access: "create"
|
|
36046
36193
|
},
|
|
36194
|
+
"ptz.captureHomeHere": {
|
|
36195
|
+
capName: "ptz",
|
|
36196
|
+
capScope: "device",
|
|
36197
|
+
addonId: null,
|
|
36198
|
+
access: "create"
|
|
36199
|
+
},
|
|
36047
36200
|
"ptz.continuousMove": {
|
|
36048
36201
|
capName: "ptz",
|
|
36049
36202
|
capScope: "device",
|
|
@@ -36056,6 +36209,18 @@ Object.freeze({
|
|
|
36056
36209
|
addonId: null,
|
|
36057
36210
|
access: "delete"
|
|
36058
36211
|
},
|
|
36212
|
+
"ptz.getHomePreset": {
|
|
36213
|
+
capName: "ptz",
|
|
36214
|
+
capScope: "device",
|
|
36215
|
+
addonId: null,
|
|
36216
|
+
access: "view"
|
|
36217
|
+
},
|
|
36218
|
+
"ptz.getHomeReturnSeconds": {
|
|
36219
|
+
capName: "ptz",
|
|
36220
|
+
capScope: "device",
|
|
36221
|
+
addonId: null,
|
|
36222
|
+
access: "view"
|
|
36223
|
+
},
|
|
36059
36224
|
"ptz.getOptions": {
|
|
36060
36225
|
capName: "ptz",
|
|
36061
36226
|
capScope: "device",
|
|
@@ -36104,6 +36269,18 @@ Object.freeze({
|
|
|
36104
36269
|
addonId: null,
|
|
36105
36270
|
access: "create"
|
|
36106
36271
|
},
|
|
36272
|
+
"ptz.setHomePreset": {
|
|
36273
|
+
capName: "ptz",
|
|
36274
|
+
capScope: "device",
|
|
36275
|
+
addonId: null,
|
|
36276
|
+
access: "create"
|
|
36277
|
+
},
|
|
36278
|
+
"ptz.setHomeReturnSeconds": {
|
|
36279
|
+
capName: "ptz",
|
|
36280
|
+
capScope: "device",
|
|
36281
|
+
addonId: null,
|
|
36282
|
+
access: "create"
|
|
36283
|
+
},
|
|
36107
36284
|
"ptz.stop": {
|
|
36108
36285
|
capName: "ptz",
|
|
36109
36286
|
capScope: "device",
|
|
@@ -39267,6 +39444,11 @@ Object.freeze({
|
|
|
39267
39444
|
form: "single",
|
|
39268
39445
|
optional: false
|
|
39269
39446
|
}],
|
|
39447
|
+
"ptz.captureHomeHere": [{
|
|
39448
|
+
name: "deviceId",
|
|
39449
|
+
form: "single",
|
|
39450
|
+
optional: false
|
|
39451
|
+
}],
|
|
39270
39452
|
"ptz.continuousMove": [{
|
|
39271
39453
|
name: "deviceId",
|
|
39272
39454
|
form: "single",
|
|
@@ -39277,6 +39459,16 @@ Object.freeze({
|
|
|
39277
39459
|
form: "single",
|
|
39278
39460
|
optional: false
|
|
39279
39461
|
}],
|
|
39462
|
+
"ptz.getHomePreset": [{
|
|
39463
|
+
name: "deviceId",
|
|
39464
|
+
form: "single",
|
|
39465
|
+
optional: false
|
|
39466
|
+
}],
|
|
39467
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39468
|
+
name: "deviceId",
|
|
39469
|
+
form: "single",
|
|
39470
|
+
optional: false
|
|
39471
|
+
}],
|
|
39280
39472
|
"ptz.getOptions": [{
|
|
39281
39473
|
name: "deviceId",
|
|
39282
39474
|
form: "single",
|
|
@@ -39317,6 +39509,16 @@ Object.freeze({
|
|
|
39317
39509
|
form: "single",
|
|
39318
39510
|
optional: false
|
|
39319
39511
|
}],
|
|
39512
|
+
"ptz.setHomePreset": [{
|
|
39513
|
+
name: "deviceId",
|
|
39514
|
+
form: "single",
|
|
39515
|
+
optional: false
|
|
39516
|
+
}],
|
|
39517
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39518
|
+
name: "deviceId",
|
|
39519
|
+
form: "single",
|
|
39520
|
+
optional: false
|
|
39521
|
+
}],
|
|
39320
39522
|
"ptz.stop": [{
|
|
39321
39523
|
name: "deviceId",
|
|
39322
39524
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.76",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|