@camstack/addon-ai 0.4.118 → 0.4.120
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
|
@@ -5520,7 +5520,7 @@ function number(params) {
|
|
|
5520
5520
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
5521
5521
|
}
|
|
5522
5522
|
//#endregion
|
|
5523
|
-
//#region ../types/dist/sleep-
|
|
5523
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5524
5524
|
/**
|
|
5525
5525
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5526
5526
|
* window to float samples (D455).
|
|
@@ -29159,6 +29159,26 @@ var PtzHomePresetSchema = object({
|
|
|
29159
29159
|
"none"
|
|
29160
29160
|
])
|
|
29161
29161
|
});
|
|
29162
|
+
/**
|
|
29163
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29164
|
+
* after how long.
|
|
29165
|
+
*
|
|
29166
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29167
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29168
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29169
|
+
* can disagree.
|
|
29170
|
+
*
|
|
29171
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29172
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29173
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29174
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29175
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29176
|
+
* return at all.
|
|
29177
|
+
*/
|
|
29178
|
+
var PtzHomeReturnSchema = object({
|
|
29179
|
+
enabled: boolean(),
|
|
29180
|
+
seconds: number$1().int()
|
|
29181
|
+
});
|
|
29162
29182
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), array(PtzPresetSchema)), method(object({
|
|
29163
29183
|
deviceId: number$1(),
|
|
29164
29184
|
presetId: string()
|
|
@@ -29181,6 +29201,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number$1() }),
|
|
|
29181
29201
|
}), _void(), {
|
|
29182
29202
|
kind: "mutation",
|
|
29183
29203
|
auth: "admin"
|
|
29204
|
+
}), method(object({ deviceId: number$1() }), _void(), {
|
|
29205
|
+
kind: "mutation",
|
|
29206
|
+
auth: "admin"
|
|
29207
|
+
}), method(object({ deviceId: number$1() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29208
|
+
deviceId: number$1(),
|
|
29209
|
+
enabled: boolean(),
|
|
29210
|
+
seconds: number$1().int().min(0).max(3600)
|
|
29211
|
+
}), _void(), {
|
|
29212
|
+
kind: "mutation",
|
|
29213
|
+
auth: "admin"
|
|
29184
29214
|
}), method(object({ deviceId: number$1() }), PtzPositionSchema), method(object({
|
|
29185
29215
|
deviceId: number$1(),
|
|
29186
29216
|
enabled: boolean()
|
|
@@ -36184,6 +36214,12 @@ Object.freeze({
|
|
|
36184
36214
|
addonId: null,
|
|
36185
36215
|
access: "create"
|
|
36186
36216
|
},
|
|
36217
|
+
"ptz.captureHomeHere": {
|
|
36218
|
+
capName: "ptz",
|
|
36219
|
+
capScope: "device",
|
|
36220
|
+
addonId: null,
|
|
36221
|
+
access: "create"
|
|
36222
|
+
},
|
|
36187
36223
|
"ptz.continuousMove": {
|
|
36188
36224
|
capName: "ptz",
|
|
36189
36225
|
capScope: "device",
|
|
@@ -36202,6 +36238,12 @@ Object.freeze({
|
|
|
36202
36238
|
addonId: null,
|
|
36203
36239
|
access: "view"
|
|
36204
36240
|
},
|
|
36241
|
+
"ptz.getHomeReturn": {
|
|
36242
|
+
capName: "ptz",
|
|
36243
|
+
capScope: "device",
|
|
36244
|
+
addonId: null,
|
|
36245
|
+
access: "view"
|
|
36246
|
+
},
|
|
36205
36247
|
"ptz.getOptions": {
|
|
36206
36248
|
capName: "ptz",
|
|
36207
36249
|
capScope: "device",
|
|
@@ -36256,6 +36298,12 @@ Object.freeze({
|
|
|
36256
36298
|
addonId: null,
|
|
36257
36299
|
access: "create"
|
|
36258
36300
|
},
|
|
36301
|
+
"ptz.setHomeReturn": {
|
|
36302
|
+
capName: "ptz",
|
|
36303
|
+
capScope: "device",
|
|
36304
|
+
addonId: null,
|
|
36305
|
+
access: "create"
|
|
36306
|
+
},
|
|
36259
36307
|
"ptz.stop": {
|
|
36260
36308
|
capName: "ptz",
|
|
36261
36309
|
capScope: "device",
|
|
@@ -39419,6 +39467,11 @@ Object.freeze({
|
|
|
39419
39467
|
form: "single",
|
|
39420
39468
|
optional: false
|
|
39421
39469
|
}],
|
|
39470
|
+
"ptz.captureHomeHere": [{
|
|
39471
|
+
name: "deviceId",
|
|
39472
|
+
form: "single",
|
|
39473
|
+
optional: false
|
|
39474
|
+
}],
|
|
39422
39475
|
"ptz.continuousMove": [{
|
|
39423
39476
|
name: "deviceId",
|
|
39424
39477
|
form: "single",
|
|
@@ -39434,6 +39487,11 @@ Object.freeze({
|
|
|
39434
39487
|
form: "single",
|
|
39435
39488
|
optional: false
|
|
39436
39489
|
}],
|
|
39490
|
+
"ptz.getHomeReturn": [{
|
|
39491
|
+
name: "deviceId",
|
|
39492
|
+
form: "single",
|
|
39493
|
+
optional: false
|
|
39494
|
+
}],
|
|
39437
39495
|
"ptz.getOptions": [{
|
|
39438
39496
|
name: "deviceId",
|
|
39439
39497
|
form: "single",
|
|
@@ -39479,6 +39537,11 @@ Object.freeze({
|
|
|
39479
39537
|
form: "single",
|
|
39480
39538
|
optional: false
|
|
39481
39539
|
}],
|
|
39540
|
+
"ptz.setHomeReturn": [{
|
|
39541
|
+
name: "deviceId",
|
|
39542
|
+
form: "single",
|
|
39543
|
+
optional: false
|
|
39544
|
+
}],
|
|
39482
39545
|
"ptz.stop": [{
|
|
39483
39546
|
name: "deviceId",
|
|
39484
39547
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5547,7 +5547,7 @@ function number(params) {
|
|
|
5547
5547
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
5548
5548
|
}
|
|
5549
5549
|
//#endregion
|
|
5550
|
-
//#region ../types/dist/sleep-
|
|
5550
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5551
5551
|
/**
|
|
5552
5552
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5553
5553
|
* window to float samples (D455).
|
|
@@ -29186,6 +29186,26 @@ var PtzHomePresetSchema = object({
|
|
|
29186
29186
|
"none"
|
|
29187
29187
|
])
|
|
29188
29188
|
});
|
|
29189
|
+
/**
|
|
29190
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29191
|
+
* after how long.
|
|
29192
|
+
*
|
|
29193
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29194
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29195
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29196
|
+
* can disagree.
|
|
29197
|
+
*
|
|
29198
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29199
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29200
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29201
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29202
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29203
|
+
* return at all.
|
|
29204
|
+
*/
|
|
29205
|
+
var PtzHomeReturnSchema = object({
|
|
29206
|
+
enabled: boolean(),
|
|
29207
|
+
seconds: number$1().int()
|
|
29208
|
+
});
|
|
29189
29209
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), array(PtzPresetSchema)), method(object({
|
|
29190
29210
|
deviceId: number$1(),
|
|
29191
29211
|
presetId: string()
|
|
@@ -29208,6 +29228,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number$1() }),
|
|
|
29208
29228
|
}), _void(), {
|
|
29209
29229
|
kind: "mutation",
|
|
29210
29230
|
auth: "admin"
|
|
29231
|
+
}), method(object({ deviceId: number$1() }), _void(), {
|
|
29232
|
+
kind: "mutation",
|
|
29233
|
+
auth: "admin"
|
|
29234
|
+
}), method(object({ deviceId: number$1() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29235
|
+
deviceId: number$1(),
|
|
29236
|
+
enabled: boolean(),
|
|
29237
|
+
seconds: number$1().int().min(0).max(3600)
|
|
29238
|
+
}), _void(), {
|
|
29239
|
+
kind: "mutation",
|
|
29240
|
+
auth: "admin"
|
|
29211
29241
|
}), method(object({ deviceId: number$1() }), PtzPositionSchema), method(object({
|
|
29212
29242
|
deviceId: number$1(),
|
|
29213
29243
|
enabled: boolean()
|
|
@@ -36211,6 +36241,12 @@ Object.freeze({
|
|
|
36211
36241
|
addonId: null,
|
|
36212
36242
|
access: "create"
|
|
36213
36243
|
},
|
|
36244
|
+
"ptz.captureHomeHere": {
|
|
36245
|
+
capName: "ptz",
|
|
36246
|
+
capScope: "device",
|
|
36247
|
+
addonId: null,
|
|
36248
|
+
access: "create"
|
|
36249
|
+
},
|
|
36214
36250
|
"ptz.continuousMove": {
|
|
36215
36251
|
capName: "ptz",
|
|
36216
36252
|
capScope: "device",
|
|
@@ -36229,6 +36265,12 @@ Object.freeze({
|
|
|
36229
36265
|
addonId: null,
|
|
36230
36266
|
access: "view"
|
|
36231
36267
|
},
|
|
36268
|
+
"ptz.getHomeReturn": {
|
|
36269
|
+
capName: "ptz",
|
|
36270
|
+
capScope: "device",
|
|
36271
|
+
addonId: null,
|
|
36272
|
+
access: "view"
|
|
36273
|
+
},
|
|
36232
36274
|
"ptz.getOptions": {
|
|
36233
36275
|
capName: "ptz",
|
|
36234
36276
|
capScope: "device",
|
|
@@ -36283,6 +36325,12 @@ Object.freeze({
|
|
|
36283
36325
|
addonId: null,
|
|
36284
36326
|
access: "create"
|
|
36285
36327
|
},
|
|
36328
|
+
"ptz.setHomeReturn": {
|
|
36329
|
+
capName: "ptz",
|
|
36330
|
+
capScope: "device",
|
|
36331
|
+
addonId: null,
|
|
36332
|
+
access: "create"
|
|
36333
|
+
},
|
|
36286
36334
|
"ptz.stop": {
|
|
36287
36335
|
capName: "ptz",
|
|
36288
36336
|
capScope: "device",
|
|
@@ -39446,6 +39494,11 @@ Object.freeze({
|
|
|
39446
39494
|
form: "single",
|
|
39447
39495
|
optional: false
|
|
39448
39496
|
}],
|
|
39497
|
+
"ptz.captureHomeHere": [{
|
|
39498
|
+
name: "deviceId",
|
|
39499
|
+
form: "single",
|
|
39500
|
+
optional: false
|
|
39501
|
+
}],
|
|
39449
39502
|
"ptz.continuousMove": [{
|
|
39450
39503
|
name: "deviceId",
|
|
39451
39504
|
form: "single",
|
|
@@ -39461,6 +39514,11 @@ Object.freeze({
|
|
|
39461
39514
|
form: "single",
|
|
39462
39515
|
optional: false
|
|
39463
39516
|
}],
|
|
39517
|
+
"ptz.getHomeReturn": [{
|
|
39518
|
+
name: "deviceId",
|
|
39519
|
+
form: "single",
|
|
39520
|
+
optional: false
|
|
39521
|
+
}],
|
|
39464
39522
|
"ptz.getOptions": [{
|
|
39465
39523
|
name: "deviceId",
|
|
39466
39524
|
form: "single",
|
|
@@ -39506,6 +39564,11 @@ Object.freeze({
|
|
|
39506
39564
|
form: "single",
|
|
39507
39565
|
optional: false
|
|
39508
39566
|
}],
|
|
39567
|
+
"ptz.setHomeReturn": [{
|
|
39568
|
+
name: "deviceId",
|
|
39569
|
+
form: "single",
|
|
39570
|
+
optional: false
|
|
39571
|
+
}],
|
|
39509
39572
|
"ptz.stop": [{
|
|
39510
39573
|
name: "deviceId",
|
|
39511
39574
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.120",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|