@camstack/addon-matter-broker 0.2.111 → 0.2.112

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
@@ -5374,7 +5374,7 @@ var ZodIssueCode = {
5374
5374
  var ZodFirstPartyTypeKind;
5375
5375
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5376
5376
  //#endregion
5377
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5377
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5378
5378
  /**
5379
5379
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5380
5380
  * window to float samples (D455).
@@ -31126,6 +31126,26 @@ var PtzHomePresetSchema = object({
31126
31126
  "none"
31127
31127
  ])
31128
31128
  });
31129
+ /**
31130
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31131
+ * after how long.
31132
+ *
31133
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31134
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31135
+ * written by the same command. Reading them apart means two round-trips that
31136
+ * can disagree.
31137
+ *
31138
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31139
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31140
+ * you turn the guard point off without clearing it. The first version of this
31141
+ * cap reported only the delay, so that state was invisible — a camera could be
31142
+ * configured to return after 68 seconds with no way to say whether it should
31143
+ * return at all.
31144
+ */
31145
+ var PtzHomeReturnSchema = object({
31146
+ enabled: boolean(),
31147
+ seconds: number().int()
31148
+ });
31129
31149
  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({
31130
31150
  deviceId: number(),
31131
31151
  presetId: string$2()
@@ -31151,8 +31171,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31151
31171
  }), method(object({ deviceId: number() }), _void(), {
31152
31172
  kind: "mutation",
31153
31173
  auth: "admin"
31154
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31174
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31155
31175
  deviceId: number(),
31176
+ enabled: boolean(),
31156
31177
  seconds: number().int().min(0).max(3600)
31157
31178
  }), _void(), {
31158
31179
  kind: "mutation",
@@ -40423,7 +40444,7 @@ Object.freeze({
40423
40444
  addonId: null,
40424
40445
  access: "view"
40425
40446
  },
40426
- "ptz.getHomeReturnSeconds": {
40447
+ "ptz.getHomeReturn": {
40427
40448
  capName: "ptz",
40428
40449
  capScope: "device",
40429
40450
  addonId: null,
@@ -40483,7 +40504,7 @@ Object.freeze({
40483
40504
  addonId: null,
40484
40505
  access: "create"
40485
40506
  },
40486
- "ptz.setHomeReturnSeconds": {
40507
+ "ptz.setHomeReturn": {
40487
40508
  capName: "ptz",
40488
40509
  capScope: "device",
40489
40510
  addonId: null,
@@ -43672,7 +43693,7 @@ Object.freeze({
43672
43693
  form: "single",
43673
43694
  optional: false
43674
43695
  }],
43675
- "ptz.getHomeReturnSeconds": [{
43696
+ "ptz.getHomeReturn": [{
43676
43697
  name: "deviceId",
43677
43698
  form: "single",
43678
43699
  optional: false
@@ -43722,7 +43743,7 @@ Object.freeze({
43722
43743
  form: "single",
43723
43744
  optional: false
43724
43745
  }],
43725
- "ptz.setHomeReturnSeconds": [{
43746
+ "ptz.setHomeReturn": [{
43726
43747
  name: "deviceId",
43727
43748
  form: "single",
43728
43749
  optional: false
package/dist/addon.mjs CHANGED
@@ -5372,7 +5372,7 @@ var ZodIssueCode = {
5372
5372
  var ZodFirstPartyTypeKind;
5373
5373
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5374
5374
  //#endregion
5375
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5375
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5376
5376
  /**
5377
5377
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5378
5378
  * window to float samples (D455).
@@ -31124,6 +31124,26 @@ var PtzHomePresetSchema = object({
31124
31124
  "none"
31125
31125
  ])
31126
31126
  });
31127
+ /**
31128
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31129
+ * after how long.
31130
+ *
31131
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31132
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31133
+ * written by the same command. Reading them apart means two round-trips that
31134
+ * can disagree.
31135
+ *
31136
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31137
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31138
+ * you turn the guard point off without clearing it. The first version of this
31139
+ * cap reported only the delay, so that state was invisible — a camera could be
31140
+ * configured to return after 68 seconds with no way to say whether it should
31141
+ * return at all.
31142
+ */
31143
+ var PtzHomeReturnSchema = object({
31144
+ enabled: boolean(),
31145
+ seconds: number().int()
31146
+ });
31127
31147
  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({
31128
31148
  deviceId: number(),
31129
31149
  presetId: string$2()
@@ -31149,8 +31169,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31149
31169
  }), method(object({ deviceId: number() }), _void(), {
31150
31170
  kind: "mutation",
31151
31171
  auth: "admin"
31152
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31172
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31153
31173
  deviceId: number(),
31174
+ enabled: boolean(),
31154
31175
  seconds: number().int().min(0).max(3600)
31155
31176
  }), _void(), {
31156
31177
  kind: "mutation",
@@ -40421,7 +40442,7 @@ Object.freeze({
40421
40442
  addonId: null,
40422
40443
  access: "view"
40423
40444
  },
40424
- "ptz.getHomeReturnSeconds": {
40445
+ "ptz.getHomeReturn": {
40425
40446
  capName: "ptz",
40426
40447
  capScope: "device",
40427
40448
  addonId: null,
@@ -40481,7 +40502,7 @@ Object.freeze({
40481
40502
  addonId: null,
40482
40503
  access: "create"
40483
40504
  },
40484
- "ptz.setHomeReturnSeconds": {
40505
+ "ptz.setHomeReturn": {
40485
40506
  capName: "ptz",
40486
40507
  capScope: "device",
40487
40508
  addonId: null,
@@ -43670,7 +43691,7 @@ Object.freeze({
43670
43691
  form: "single",
43671
43692
  optional: false
43672
43693
  }],
43673
- "ptz.getHomeReturnSeconds": [{
43694
+ "ptz.getHomeReturn": [{
43674
43695
  name: "deviceId",
43675
43696
  form: "single",
43676
43697
  optional: false
@@ -43720,7 +43741,7 @@ Object.freeze({
43720
43741
  form: "single",
43721
43742
  optional: false
43722
43743
  }],
43723
- "ptz.setHomeReturnSeconds": [{
43744
+ "ptz.setHomeReturn": [{
43724
43745
  name: "deviceId",
43725
43746
  form: "single",
43726
43747
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.111",
3
+ "version": "0.2.112",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",