@camstack/addon-export-alexa 1.2.119 → 1.2.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.
@@ -5387,7 +5387,7 @@ var ZodIssueCode = {
5387
5387
  var ZodFirstPartyTypeKind;
5388
5388
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5389
5389
  //#endregion
5390
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5390
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5391
5391
  /**
5392
5392
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5393
5393
  * window to float samples (D455).
@@ -29231,6 +29231,26 @@ var PtzHomePresetSchema = object({
29231
29231
  "none"
29232
29232
  ])
29233
29233
  });
29234
+ /**
29235
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29236
+ * after how long.
29237
+ *
29238
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29239
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29240
+ * written by the same command. Reading them apart means two round-trips that
29241
+ * can disagree.
29242
+ *
29243
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29244
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29245
+ * you turn the guard point off without clearing it. The first version of this
29246
+ * cap reported only the delay, so that state was invisible — a camera could be
29247
+ * configured to return after 68 seconds with no way to say whether it should
29248
+ * return at all.
29249
+ */
29250
+ var PtzHomeReturnSchema = object({
29251
+ enabled: boolean(),
29252
+ seconds: number().int()
29253
+ });
29234
29254
  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({
29235
29255
  deviceId: number(),
29236
29256
  presetId: string()
@@ -29256,8 +29276,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
29256
29276
  }), method(object({ deviceId: number() }), _void(), {
29257
29277
  kind: "mutation",
29258
29278
  auth: "admin"
29259
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
29279
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
29260
29280
  deviceId: number(),
29281
+ enabled: boolean(),
29261
29282
  seconds: number().int().min(0).max(3600)
29262
29283
  }), _void(), {
29263
29284
  kind: "mutation",
@@ -36289,7 +36310,7 @@ Object.freeze({
36289
36310
  addonId: null,
36290
36311
  access: "view"
36291
36312
  },
36292
- "ptz.getHomeReturnSeconds": {
36313
+ "ptz.getHomeReturn": {
36293
36314
  capName: "ptz",
36294
36315
  capScope: "device",
36295
36316
  addonId: null,
@@ -36349,7 +36370,7 @@ Object.freeze({
36349
36370
  addonId: null,
36350
36371
  access: "create"
36351
36372
  },
36352
- "ptz.setHomeReturnSeconds": {
36373
+ "ptz.setHomeReturn": {
36353
36374
  capName: "ptz",
36354
36375
  capScope: "device",
36355
36376
  addonId: null,
@@ -39538,7 +39559,7 @@ Object.freeze({
39538
39559
  form: "single",
39539
39560
  optional: false
39540
39561
  }],
39541
- "ptz.getHomeReturnSeconds": [{
39562
+ "ptz.getHomeReturn": [{
39542
39563
  name: "deviceId",
39543
39564
  form: "single",
39544
39565
  optional: false
@@ -39588,7 +39609,7 @@ Object.freeze({
39588
39609
  form: "single",
39589
39610
  optional: false
39590
39611
  }],
39591
- "ptz.setHomeReturnSeconds": [{
39612
+ "ptz.setHomeReturn": [{
39592
39613
  name: "deviceId",
39593
39614
  form: "single",
39594
39615
  optional: false
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
5360
5360
  var ZodFirstPartyTypeKind;
5361
5361
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5362
5362
  //#endregion
5363
- //#region ../types/dist/sleep-vl6nBE8d.mjs
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).
@@ -29204,6 +29204,26 @@ var PtzHomePresetSchema = object({
29204
29204
  "none"
29205
29205
  ])
29206
29206
  });
29207
+ /**
29208
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29209
+ * after how long.
29210
+ *
29211
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29212
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29213
+ * written by the same command. Reading them apart means two round-trips that
29214
+ * can disagree.
29215
+ *
29216
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29217
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29218
+ * you turn the guard point off without clearing it. The first version of this
29219
+ * cap reported only the delay, so that state was invisible — a camera could be
29220
+ * configured to return after 68 seconds with no way to say whether it should
29221
+ * return at all.
29222
+ */
29223
+ var PtzHomeReturnSchema = object({
29224
+ enabled: boolean(),
29225
+ seconds: number().int()
29226
+ });
29207
29227
  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({
29208
29228
  deviceId: number(),
29209
29229
  presetId: string()
@@ -29229,8 +29249,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
29229
29249
  }), method(object({ deviceId: number() }), _void(), {
29230
29250
  kind: "mutation",
29231
29251
  auth: "admin"
29232
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
29252
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
29233
29253
  deviceId: number(),
29254
+ enabled: boolean(),
29234
29255
  seconds: number().int().min(0).max(3600)
29235
29256
  }), _void(), {
29236
29257
  kind: "mutation",
@@ -36262,7 +36283,7 @@ Object.freeze({
36262
36283
  addonId: null,
36263
36284
  access: "view"
36264
36285
  },
36265
- "ptz.getHomeReturnSeconds": {
36286
+ "ptz.getHomeReturn": {
36266
36287
  capName: "ptz",
36267
36288
  capScope: "device",
36268
36289
  addonId: null,
@@ -36322,7 +36343,7 @@ Object.freeze({
36322
36343
  addonId: null,
36323
36344
  access: "create"
36324
36345
  },
36325
- "ptz.setHomeReturnSeconds": {
36346
+ "ptz.setHomeReturn": {
36326
36347
  capName: "ptz",
36327
36348
  capScope: "device",
36328
36349
  addonId: null,
@@ -39511,7 +39532,7 @@ Object.freeze({
39511
39532
  form: "single",
39512
39533
  optional: false
39513
39534
  }],
39514
- "ptz.getHomeReturnSeconds": [{
39535
+ "ptz.getHomeReturn": [{
39515
39536
  name: "deviceId",
39516
39537
  form: "single",
39517
39538
  optional: false
@@ -39561,7 +39582,7 @@ Object.freeze({
39561
39582
  form: "single",
39562
39583
  optional: false
39563
39584
  }],
39564
- "ptz.setHomeReturnSeconds": [{
39585
+ "ptz.setHomeReturn": [{
39565
39586
  name: "deviceId",
39566
39587
  form: "single",
39567
39588
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.119",
3
+ "version": "1.2.120",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",