@camstack/addon-provider-unifi 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
|
@@ -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()
|
|
@@ -31068,6 +31088,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31068
31088
|
}), _void(), {
|
|
31069
31089
|
kind: "mutation",
|
|
31070
31090
|
auth: "admin"
|
|
31091
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31092
|
+
kind: "mutation",
|
|
31093
|
+
auth: "admin"
|
|
31094
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31095
|
+
deviceId: number(),
|
|
31096
|
+
enabled: boolean(),
|
|
31097
|
+
seconds: number().int().min(0).max(3600)
|
|
31098
|
+
}), _void(), {
|
|
31099
|
+
kind: "mutation",
|
|
31100
|
+
auth: "admin"
|
|
31071
31101
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31072
31102
|
deviceId: number(),
|
|
31073
31103
|
enabled: boolean()
|
|
@@ -40310,6 +40340,12 @@ Object.freeze({
|
|
|
40310
40340
|
addonId: null,
|
|
40311
40341
|
access: "create"
|
|
40312
40342
|
},
|
|
40343
|
+
"ptz.captureHomeHere": {
|
|
40344
|
+
capName: "ptz",
|
|
40345
|
+
capScope: "device",
|
|
40346
|
+
addonId: null,
|
|
40347
|
+
access: "create"
|
|
40348
|
+
},
|
|
40313
40349
|
"ptz.continuousMove": {
|
|
40314
40350
|
capName: "ptz",
|
|
40315
40351
|
capScope: "device",
|
|
@@ -40328,6 +40364,12 @@ Object.freeze({
|
|
|
40328
40364
|
addonId: null,
|
|
40329
40365
|
access: "view"
|
|
40330
40366
|
},
|
|
40367
|
+
"ptz.getHomeReturn": {
|
|
40368
|
+
capName: "ptz",
|
|
40369
|
+
capScope: "device",
|
|
40370
|
+
addonId: null,
|
|
40371
|
+
access: "view"
|
|
40372
|
+
},
|
|
40331
40373
|
"ptz.getOptions": {
|
|
40332
40374
|
capName: "ptz",
|
|
40333
40375
|
capScope: "device",
|
|
@@ -40382,6 +40424,12 @@ Object.freeze({
|
|
|
40382
40424
|
addonId: null,
|
|
40383
40425
|
access: "create"
|
|
40384
40426
|
},
|
|
40427
|
+
"ptz.setHomeReturn": {
|
|
40428
|
+
capName: "ptz",
|
|
40429
|
+
capScope: "device",
|
|
40430
|
+
addonId: null,
|
|
40431
|
+
access: "create"
|
|
40432
|
+
},
|
|
40385
40433
|
"ptz.stop": {
|
|
40386
40434
|
capName: "ptz",
|
|
40387
40435
|
capScope: "device",
|
|
@@ -43545,6 +43593,11 @@ Object.freeze({
|
|
|
43545
43593
|
form: "single",
|
|
43546
43594
|
optional: false
|
|
43547
43595
|
}],
|
|
43596
|
+
"ptz.captureHomeHere": [{
|
|
43597
|
+
name: "deviceId",
|
|
43598
|
+
form: "single",
|
|
43599
|
+
optional: false
|
|
43600
|
+
}],
|
|
43548
43601
|
"ptz.continuousMove": [{
|
|
43549
43602
|
name: "deviceId",
|
|
43550
43603
|
form: "single",
|
|
@@ -43560,6 +43613,11 @@ Object.freeze({
|
|
|
43560
43613
|
form: "single",
|
|
43561
43614
|
optional: false
|
|
43562
43615
|
}],
|
|
43616
|
+
"ptz.getHomeReturn": [{
|
|
43617
|
+
name: "deviceId",
|
|
43618
|
+
form: "single",
|
|
43619
|
+
optional: false
|
|
43620
|
+
}],
|
|
43563
43621
|
"ptz.getOptions": [{
|
|
43564
43622
|
name: "deviceId",
|
|
43565
43623
|
form: "single",
|
|
@@ -43605,6 +43663,11 @@ Object.freeze({
|
|
|
43605
43663
|
form: "single",
|
|
43606
43664
|
optional: false
|
|
43607
43665
|
}],
|
|
43666
|
+
"ptz.setHomeReturn": [{
|
|
43667
|
+
name: "deviceId",
|
|
43668
|
+
form: "single",
|
|
43669
|
+
optional: false
|
|
43670
|
+
}],
|
|
43608
43671
|
"ptz.stop": [{
|
|
43609
43672
|
name: "deviceId",
|
|
43610
43673
|
form: "single",
|
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()
|
|
@@ -31067,6 +31087,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31067
31087
|
}), _void(), {
|
|
31068
31088
|
kind: "mutation",
|
|
31069
31089
|
auth: "admin"
|
|
31090
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31091
|
+
kind: "mutation",
|
|
31092
|
+
auth: "admin"
|
|
31093
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31094
|
+
deviceId: number(),
|
|
31095
|
+
enabled: boolean(),
|
|
31096
|
+
seconds: number().int().min(0).max(3600)
|
|
31097
|
+
}), _void(), {
|
|
31098
|
+
kind: "mutation",
|
|
31099
|
+
auth: "admin"
|
|
31070
31100
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31071
31101
|
deviceId: number(),
|
|
31072
31102
|
enabled: boolean()
|
|
@@ -40309,6 +40339,12 @@ Object.freeze({
|
|
|
40309
40339
|
addonId: null,
|
|
40310
40340
|
access: "create"
|
|
40311
40341
|
},
|
|
40342
|
+
"ptz.captureHomeHere": {
|
|
40343
|
+
capName: "ptz",
|
|
40344
|
+
capScope: "device",
|
|
40345
|
+
addonId: null,
|
|
40346
|
+
access: "create"
|
|
40347
|
+
},
|
|
40312
40348
|
"ptz.continuousMove": {
|
|
40313
40349
|
capName: "ptz",
|
|
40314
40350
|
capScope: "device",
|
|
@@ -40327,6 +40363,12 @@ Object.freeze({
|
|
|
40327
40363
|
addonId: null,
|
|
40328
40364
|
access: "view"
|
|
40329
40365
|
},
|
|
40366
|
+
"ptz.getHomeReturn": {
|
|
40367
|
+
capName: "ptz",
|
|
40368
|
+
capScope: "device",
|
|
40369
|
+
addonId: null,
|
|
40370
|
+
access: "view"
|
|
40371
|
+
},
|
|
40330
40372
|
"ptz.getOptions": {
|
|
40331
40373
|
capName: "ptz",
|
|
40332
40374
|
capScope: "device",
|
|
@@ -40381,6 +40423,12 @@ Object.freeze({
|
|
|
40381
40423
|
addonId: null,
|
|
40382
40424
|
access: "create"
|
|
40383
40425
|
},
|
|
40426
|
+
"ptz.setHomeReturn": {
|
|
40427
|
+
capName: "ptz",
|
|
40428
|
+
capScope: "device",
|
|
40429
|
+
addonId: null,
|
|
40430
|
+
access: "create"
|
|
40431
|
+
},
|
|
40384
40432
|
"ptz.stop": {
|
|
40385
40433
|
capName: "ptz",
|
|
40386
40434
|
capScope: "device",
|
|
@@ -43544,6 +43592,11 @@ Object.freeze({
|
|
|
43544
43592
|
form: "single",
|
|
43545
43593
|
optional: false
|
|
43546
43594
|
}],
|
|
43595
|
+
"ptz.captureHomeHere": [{
|
|
43596
|
+
name: "deviceId",
|
|
43597
|
+
form: "single",
|
|
43598
|
+
optional: false
|
|
43599
|
+
}],
|
|
43547
43600
|
"ptz.continuousMove": [{
|
|
43548
43601
|
name: "deviceId",
|
|
43549
43602
|
form: "single",
|
|
@@ -43559,6 +43612,11 @@ Object.freeze({
|
|
|
43559
43612
|
form: "single",
|
|
43560
43613
|
optional: false
|
|
43561
43614
|
}],
|
|
43615
|
+
"ptz.getHomeReturn": [{
|
|
43616
|
+
name: "deviceId",
|
|
43617
|
+
form: "single",
|
|
43618
|
+
optional: false
|
|
43619
|
+
}],
|
|
43562
43620
|
"ptz.getOptions": [{
|
|
43563
43621
|
name: "deviceId",
|
|
43564
43622
|
form: "single",
|
|
@@ -43604,6 +43662,11 @@ Object.freeze({
|
|
|
43604
43662
|
form: "single",
|
|
43605
43663
|
optional: false
|
|
43606
43664
|
}],
|
|
43665
|
+
"ptz.setHomeReturn": [{
|
|
43666
|
+
name: "deviceId",
|
|
43667
|
+
form: "single",
|
|
43668
|
+
optional: false
|
|
43669
|
+
}],
|
|
43607
43670
|
"ptz.stop": [{
|
|
43608
43671
|
name: "deviceId",
|
|
43609
43672
|
form: "single",
|
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",
|