@camstack/addon-ai 0.4.119 → 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 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-vl6nBE8d.mjs
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()
@@ -29184,8 +29204,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number$1() }),
29184
29204
  }), method(object({ deviceId: number$1() }), _void(), {
29185
29205
  kind: "mutation",
29186
29206
  auth: "admin"
29187
- }), method(object({ deviceId: number$1() }), number$1().int().nullable()), method(object({
29207
+ }), method(object({ deviceId: number$1() }), PtzHomeReturnSchema.nullable()), method(object({
29188
29208
  deviceId: number$1(),
29209
+ enabled: boolean(),
29189
29210
  seconds: number$1().int().min(0).max(3600)
29190
29211
  }), _void(), {
29191
29212
  kind: "mutation",
@@ -36217,7 +36238,7 @@ Object.freeze({
36217
36238
  addonId: null,
36218
36239
  access: "view"
36219
36240
  },
36220
- "ptz.getHomeReturnSeconds": {
36241
+ "ptz.getHomeReturn": {
36221
36242
  capName: "ptz",
36222
36243
  capScope: "device",
36223
36244
  addonId: null,
@@ -36277,7 +36298,7 @@ Object.freeze({
36277
36298
  addonId: null,
36278
36299
  access: "create"
36279
36300
  },
36280
- "ptz.setHomeReturnSeconds": {
36301
+ "ptz.setHomeReturn": {
36281
36302
  capName: "ptz",
36282
36303
  capScope: "device",
36283
36304
  addonId: null,
@@ -39466,7 +39487,7 @@ Object.freeze({
39466
39487
  form: "single",
39467
39488
  optional: false
39468
39489
  }],
39469
- "ptz.getHomeReturnSeconds": [{
39490
+ "ptz.getHomeReturn": [{
39470
39491
  name: "deviceId",
39471
39492
  form: "single",
39472
39493
  optional: false
@@ -39516,7 +39537,7 @@ Object.freeze({
39516
39537
  form: "single",
39517
39538
  optional: false
39518
39539
  }],
39519
- "ptz.setHomeReturnSeconds": [{
39540
+ "ptz.setHomeReturn": [{
39520
39541
  name: "deviceId",
39521
39542
  form: "single",
39522
39543
  optional: false
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-vl6nBE8d.mjs
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()
@@ -29211,8 +29231,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number$1() }),
29211
29231
  }), method(object({ deviceId: number$1() }), _void(), {
29212
29232
  kind: "mutation",
29213
29233
  auth: "admin"
29214
- }), method(object({ deviceId: number$1() }), number$1().int().nullable()), method(object({
29234
+ }), method(object({ deviceId: number$1() }), PtzHomeReturnSchema.nullable()), method(object({
29215
29235
  deviceId: number$1(),
29236
+ enabled: boolean(),
29216
29237
  seconds: number$1().int().min(0).max(3600)
29217
29238
  }), _void(), {
29218
29239
  kind: "mutation",
@@ -36244,7 +36265,7 @@ Object.freeze({
36244
36265
  addonId: null,
36245
36266
  access: "view"
36246
36267
  },
36247
- "ptz.getHomeReturnSeconds": {
36268
+ "ptz.getHomeReturn": {
36248
36269
  capName: "ptz",
36249
36270
  capScope: "device",
36250
36271
  addonId: null,
@@ -36304,7 +36325,7 @@ Object.freeze({
36304
36325
  addonId: null,
36305
36326
  access: "create"
36306
36327
  },
36307
- "ptz.setHomeReturnSeconds": {
36328
+ "ptz.setHomeReturn": {
36308
36329
  capName: "ptz",
36309
36330
  capScope: "device",
36310
36331
  addonId: null,
@@ -39493,7 +39514,7 @@ Object.freeze({
39493
39514
  form: "single",
39494
39515
  optional: false
39495
39516
  }],
39496
- "ptz.getHomeReturnSeconds": [{
39517
+ "ptz.getHomeReturn": [{
39497
39518
  name: "deviceId",
39498
39519
  form: "single",
39499
39520
  optional: false
@@ -39543,7 +39564,7 @@ Object.freeze({
39543
39564
  form: "single",
39544
39565
  optional: false
39545
39566
  }],
39546
- "ptz.setHomeReturnSeconds": [{
39567
+ "ptz.setHomeReturn": [{
39547
39568
  name: "deviceId",
39548
39569
  form: "single",
39549
39570
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.119",
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",