@onereach/step-voice 7.0.38 → 7.0.40

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.
@@ -9,6 +9,8 @@ interface INPUT {
9
9
  isTerminateOnSilence: boolean;
10
10
  silenceHits: string;
11
11
  disableDefaultBeepSound: boolean;
12
+ limitLinkTtl: boolean;
13
+ recordLinkTtl: number;
12
14
  }
13
15
  interface EVENT extends VoiceEvent {
14
16
  mediaPath: string;
@@ -19,14 +19,17 @@ class Recording extends voice_1.default {
19
19
  const command = {
20
20
  name: 'start-record',
21
21
  params: {
22
- ...(this.data.isTerminateOnSilence ? {
23
- silenceHits: this.data.silenceHits
24
- } : {
25
- terminator: this.data.terminationKey
26
- }),
22
+ ...(this.data.isTerminateOnSilence
23
+ ? {
24
+ silenceHits: this.data.silenceHits
25
+ }
26
+ : {
27
+ terminator: this.data.terminationKey
28
+ }),
27
29
  duration: parseInt(this.data.recordDurationSeconds),
28
30
  sections,
29
- reporterTranscriptEventId: ''
31
+ reporterTranscriptEventId: '',
32
+ ...(this.data.limitLinkTtl ? { linkTtl: this.data.recordLinkTtl } : {})
30
33
  }
31
34
  };
32
35
  this.triggers.local(`in/voice/${call.id}`, async (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.38",
3
+ "version": "7.0.40",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",