@camstack/addon-provider-unifi 0.2.112 → 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 +27 -6
- package/dist/addon.mjs +27 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
|
|
|
5360
5360
|
var ZodFirstPartyTypeKind;
|
|
5361
5361
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5362
5362
|
//#endregion
|
|
5363
|
-
//#region ../types/dist/sleep-
|
|
5363
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5364
5364
|
/**
|
|
5365
5365
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5366
5366
|
* window to float samples (D455).
|
|
@@ -31046,6 +31046,26 @@ var PtzHomePresetSchema = object({
|
|
|
31046
31046
|
"none"
|
|
31047
31047
|
])
|
|
31048
31048
|
});
|
|
31049
|
+
/**
|
|
31050
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31051
|
+
* after how long.
|
|
31052
|
+
*
|
|
31053
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31054
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31055
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31056
|
+
* can disagree.
|
|
31057
|
+
*
|
|
31058
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31059
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31060
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31061
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31062
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31063
|
+
* return at all.
|
|
31064
|
+
*/
|
|
31065
|
+
var PtzHomeReturnSchema = object({
|
|
31066
|
+
enabled: boolean(),
|
|
31067
|
+
seconds: number().int()
|
|
31068
|
+
});
|
|
31049
31069
|
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({
|
|
31050
31070
|
deviceId: number(),
|
|
31051
31071
|
presetId: string()
|
|
@@ -31071,8 +31091,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31071
31091
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31072
31092
|
kind: "mutation",
|
|
31073
31093
|
auth: "admin"
|
|
31074
|
-
}), method(object({ deviceId: number() }),
|
|
31094
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31075
31095
|
deviceId: number(),
|
|
31096
|
+
enabled: boolean(),
|
|
31076
31097
|
seconds: number().int().min(0).max(3600)
|
|
31077
31098
|
}), _void(), {
|
|
31078
31099
|
kind: "mutation",
|
|
@@ -40343,7 +40364,7 @@ Object.freeze({
|
|
|
40343
40364
|
addonId: null,
|
|
40344
40365
|
access: "view"
|
|
40345
40366
|
},
|
|
40346
|
-
"ptz.
|
|
40367
|
+
"ptz.getHomeReturn": {
|
|
40347
40368
|
capName: "ptz",
|
|
40348
40369
|
capScope: "device",
|
|
40349
40370
|
addonId: null,
|
|
@@ -40403,7 +40424,7 @@ Object.freeze({
|
|
|
40403
40424
|
addonId: null,
|
|
40404
40425
|
access: "create"
|
|
40405
40426
|
},
|
|
40406
|
-
"ptz.
|
|
40427
|
+
"ptz.setHomeReturn": {
|
|
40407
40428
|
capName: "ptz",
|
|
40408
40429
|
capScope: "device",
|
|
40409
40430
|
addonId: null,
|
|
@@ -43592,7 +43613,7 @@ Object.freeze({
|
|
|
43592
43613
|
form: "single",
|
|
43593
43614
|
optional: false
|
|
43594
43615
|
}],
|
|
43595
|
-
"ptz.
|
|
43616
|
+
"ptz.getHomeReturn": [{
|
|
43596
43617
|
name: "deviceId",
|
|
43597
43618
|
form: "single",
|
|
43598
43619
|
optional: false
|
|
@@ -43642,7 +43663,7 @@ Object.freeze({
|
|
|
43642
43663
|
form: "single",
|
|
43643
43664
|
optional: false
|
|
43644
43665
|
}],
|
|
43645
|
-
"ptz.
|
|
43666
|
+
"ptz.setHomeReturn": [{
|
|
43646
43667
|
name: "deviceId",
|
|
43647
43668
|
form: "single",
|
|
43648
43669
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -31045,6 +31045,26 @@ var PtzHomePresetSchema = object({
|
|
|
31045
31045
|
"none"
|
|
31046
31046
|
])
|
|
31047
31047
|
});
|
|
31048
|
+
/**
|
|
31049
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31050
|
+
* after how long.
|
|
31051
|
+
*
|
|
31052
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31053
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31054
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31055
|
+
* can disagree.
|
|
31056
|
+
*
|
|
31057
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31058
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31059
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31060
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31061
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31062
|
+
* return at all.
|
|
31063
|
+
*/
|
|
31064
|
+
var PtzHomeReturnSchema = object({
|
|
31065
|
+
enabled: boolean(),
|
|
31066
|
+
seconds: number().int()
|
|
31067
|
+
});
|
|
31048
31068
|
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({
|
|
31049
31069
|
deviceId: number(),
|
|
31050
31070
|
presetId: string()
|
|
@@ -31070,8 +31090,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31070
31090
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31071
31091
|
kind: "mutation",
|
|
31072
31092
|
auth: "admin"
|
|
31073
|
-
}), method(object({ deviceId: number() }),
|
|
31093
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31074
31094
|
deviceId: number(),
|
|
31095
|
+
enabled: boolean(),
|
|
31075
31096
|
seconds: number().int().min(0).max(3600)
|
|
31076
31097
|
}), _void(), {
|
|
31077
31098
|
kind: "mutation",
|
|
@@ -40342,7 +40363,7 @@ Object.freeze({
|
|
|
40342
40363
|
addonId: null,
|
|
40343
40364
|
access: "view"
|
|
40344
40365
|
},
|
|
40345
|
-
"ptz.
|
|
40366
|
+
"ptz.getHomeReturn": {
|
|
40346
40367
|
capName: "ptz",
|
|
40347
40368
|
capScope: "device",
|
|
40348
40369
|
addonId: null,
|
|
@@ -40402,7 +40423,7 @@ Object.freeze({
|
|
|
40402
40423
|
addonId: null,
|
|
40403
40424
|
access: "create"
|
|
40404
40425
|
},
|
|
40405
|
-
"ptz.
|
|
40426
|
+
"ptz.setHomeReturn": {
|
|
40406
40427
|
capName: "ptz",
|
|
40407
40428
|
capScope: "device",
|
|
40408
40429
|
addonId: null,
|
|
@@ -43591,7 +43612,7 @@ Object.freeze({
|
|
|
43591
43612
|
form: "single",
|
|
43592
43613
|
optional: false
|
|
43593
43614
|
}],
|
|
43594
|
-
"ptz.
|
|
43615
|
+
"ptz.getHomeReturn": [{
|
|
43595
43616
|
name: "deviceId",
|
|
43596
43617
|
form: "single",
|
|
43597
43618
|
optional: false
|
|
@@ -43641,7 +43662,7 @@ Object.freeze({
|
|
|
43641
43662
|
form: "single",
|
|
43642
43663
|
optional: false
|
|
43643
43664
|
}],
|
|
43644
|
-
"ptz.
|
|
43665
|
+
"ptz.setHomeReturn": [{
|
|
43645
43666
|
name: "deviceId",
|
|
43646
43667
|
form: "single",
|
|
43647
43668
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.113",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|