@camstack/addon-terminal 0.1.117 → 0.1.118

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
@@ -5392,7 +5392,7 @@ var ZodIssueCode = {
5392
5392
  var ZodFirstPartyTypeKind;
5393
5393
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5394
5394
  //#endregion
5395
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5395
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5396
5396
  /**
5397
5397
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5398
5398
  * window to float samples (D455).
@@ -31195,6 +31195,26 @@ var PtzHomePresetSchema = object({
31195
31195
  "none"
31196
31196
  ])
31197
31197
  });
31198
+ /**
31199
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31200
+ * after how long.
31201
+ *
31202
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31203
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31204
+ * written by the same command. Reading them apart means two round-trips that
31205
+ * can disagree.
31206
+ *
31207
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31208
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31209
+ * you turn the guard point off without clearing it. The first version of this
31210
+ * cap reported only the delay, so that state was invisible — a camera could be
31211
+ * configured to return after 68 seconds with no way to say whether it should
31212
+ * return at all.
31213
+ */
31214
+ var PtzHomeReturnSchema = object({
31215
+ enabled: boolean(),
31216
+ seconds: number().int()
31217
+ });
31198
31218
  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({
31199
31219
  deviceId: number(),
31200
31220
  presetId: string()
@@ -31220,8 +31240,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31220
31240
  }), method(object({ deviceId: number() }), _void(), {
31221
31241
  kind: "mutation",
31222
31242
  auth: "admin"
31223
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31243
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31224
31244
  deviceId: number(),
31245
+ enabled: boolean(),
31225
31246
  seconds: number().int().min(0).max(3600)
31226
31247
  }), _void(), {
31227
31248
  kind: "mutation",
@@ -40074,7 +40095,7 @@ Object.freeze({
40074
40095
  addonId: null,
40075
40096
  access: "view"
40076
40097
  },
40077
- "ptz.getHomeReturnSeconds": {
40098
+ "ptz.getHomeReturn": {
40078
40099
  capName: "ptz",
40079
40100
  capScope: "device",
40080
40101
  addonId: null,
@@ -40134,7 +40155,7 @@ Object.freeze({
40134
40155
  addonId: null,
40135
40156
  access: "create"
40136
40157
  },
40137
- "ptz.setHomeReturnSeconds": {
40158
+ "ptz.setHomeReturn": {
40138
40159
  capName: "ptz",
40139
40160
  capScope: "device",
40140
40161
  addonId: null,
@@ -43323,7 +43344,7 @@ Object.freeze({
43323
43344
  form: "single",
43324
43345
  optional: false
43325
43346
  }],
43326
- "ptz.getHomeReturnSeconds": [{
43347
+ "ptz.getHomeReturn": [{
43327
43348
  name: "deviceId",
43328
43349
  form: "single",
43329
43350
  optional: false
@@ -43373,7 +43394,7 @@ Object.freeze({
43373
43394
  form: "single",
43374
43395
  optional: false
43375
43396
  }],
43376
- "ptz.setHomeReturnSeconds": [{
43397
+ "ptz.setHomeReturn": [{
43377
43398
  name: "deviceId",
43378
43399
  form: "single",
43379
43400
  optional: false
package/dist/addon.mjs CHANGED
@@ -5369,7 +5369,7 @@ var ZodIssueCode = {
5369
5369
  var ZodFirstPartyTypeKind;
5370
5370
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5371
5371
  //#endregion
5372
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5372
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5373
5373
  /**
5374
5374
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5375
5375
  * window to float samples (D455).
@@ -31172,6 +31172,26 @@ var PtzHomePresetSchema = object({
31172
31172
  "none"
31173
31173
  ])
31174
31174
  });
31175
+ /**
31176
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31177
+ * after how long.
31178
+ *
31179
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31180
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31181
+ * written by the same command. Reading them apart means two round-trips that
31182
+ * can disagree.
31183
+ *
31184
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31185
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31186
+ * you turn the guard point off without clearing it. The first version of this
31187
+ * cap reported only the delay, so that state was invisible — a camera could be
31188
+ * configured to return after 68 seconds with no way to say whether it should
31189
+ * return at all.
31190
+ */
31191
+ var PtzHomeReturnSchema = object({
31192
+ enabled: boolean(),
31193
+ seconds: number().int()
31194
+ });
31175
31195
  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({
31176
31196
  deviceId: number(),
31177
31197
  presetId: string()
@@ -31197,8 +31217,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31197
31217
  }), method(object({ deviceId: number() }), _void(), {
31198
31218
  kind: "mutation",
31199
31219
  auth: "admin"
31200
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31220
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31201
31221
  deviceId: number(),
31222
+ enabled: boolean(),
31202
31223
  seconds: number().int().min(0).max(3600)
31203
31224
  }), _void(), {
31204
31225
  kind: "mutation",
@@ -40051,7 +40072,7 @@ Object.freeze({
40051
40072
  addonId: null,
40052
40073
  access: "view"
40053
40074
  },
40054
- "ptz.getHomeReturnSeconds": {
40075
+ "ptz.getHomeReturn": {
40055
40076
  capName: "ptz",
40056
40077
  capScope: "device",
40057
40078
  addonId: null,
@@ -40111,7 +40132,7 @@ Object.freeze({
40111
40132
  addonId: null,
40112
40133
  access: "create"
40113
40134
  },
40114
- "ptz.setHomeReturnSeconds": {
40135
+ "ptz.setHomeReturn": {
40115
40136
  capName: "ptz",
40116
40137
  capScope: "device",
40117
40138
  addonId: null,
@@ -43300,7 +43321,7 @@ Object.freeze({
43300
43321
  form: "single",
43301
43322
  optional: false
43302
43323
  }],
43303
- "ptz.getHomeReturnSeconds": [{
43324
+ "ptz.getHomeReturn": [{
43304
43325
  name: "deviceId",
43305
43326
  form: "single",
43306
43327
  optional: false
@@ -43350,7 +43371,7 @@ Object.freeze({
43350
43371
  form: "single",
43351
43372
  optional: false
43352
43373
  }],
43353
- "ptz.setHomeReturnSeconds": [{
43374
+ "ptz.setHomeReturn": [{
43354
43375
  name: "deviceId",
43355
43376
  form: "single",
43356
43377
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.117",
3
+ "version": "0.1.118",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",