@wildix/wilma-voice-client 0.0.40 → 0.0.42

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WilmaVoice = void 0;
4
4
  const client_1 = require("@smithy/core/client");
5
5
  const DescribeVoiceProtocolCommand_1 = require("./commands/DescribeVoiceProtocolCommand");
6
+ const GetVoiceDefaultsCommand_1 = require("./commands/GetVoiceDefaultsCommand");
6
7
  const ListVoicesCommand_1 = require("./commands/ListVoicesCommand");
7
8
  const SendHangupCommand_1 = require("./commands/SendHangupCommand");
8
9
  const SendPlayCommand_1 = require("./commands/SendPlayCommand");
@@ -14,6 +15,7 @@ const TextToSpeechCommand_1 = require("./commands/TextToSpeechCommand");
14
15
  const WilmaVoiceClient_1 = require("./WilmaVoiceClient");
15
16
  const commands = {
16
17
  DescribeVoiceProtocolCommand: DescribeVoiceProtocolCommand_1.DescribeVoiceProtocolCommand,
18
+ GetVoiceDefaultsCommand: GetVoiceDefaultsCommand_1.GetVoiceDefaultsCommand,
17
19
  ListVoicesCommand: ListVoicesCommand_1.ListVoicesCommand,
18
20
  SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
19
21
  SendPlayCommand: SendPlayCommand_1.SendPlayCommand,
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVoiceDefaultsCommand = exports.$Command = void 0;
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class GetVoiceDefaultsCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
12
+ .m(function (Command, cs, config, o) {
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("WilmaVoice", "GetVoiceDefaults", {})
16
+ .n("WilmaVoiceClient", "GetVoiceDefaultsCommand")
17
+ .sc(schemas_0_1.GetVoiceDefaults$)
18
+ .build() {
19
+ }
20
+ exports.GetVoiceDefaultsCommand = GetVoiceDefaultsCommand;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DescribeVoiceProtocolCommand"), exports);
5
+ tslib_1.__exportStar(require("./GetVoiceDefaultsCommand"), exports);
5
6
  tslib_1.__exportStar(require("./ListVoicesCommand"), exports);
6
7
  tslib_1.__exportStar(require("./SendHangupCommand"), exports);
7
8
  tslib_1.__exportStar(require("./SendPlayCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
3
+ exports.MediaVadFrameType = exports.MediaStartFrameType = exports.MediaRunPurpose = exports.MediaAudioEncoding = exports.MediaPlaybackFrameType = exports.MediaPlaybackEvent = exports.MediaPlaybackStopCause = exports.MediaFinishFrameType = exports.MediaFinishReason = exports.MediaDtmfFrameType = exports.MediaTransferFrameType = exports.MediaTranscriptionFrameType = exports.MediaParty = exports.MediaStopFrameType = exports.MediaStartedFrameType = exports.MediaRestoreFrameType = exports.MediaLanguageFrameType = exports.MediaHangupFrameType = exports.MediaFinishedFrameType = exports.MediaErrorFrameType = exports.MediaDuckFrameType = exports.MediaAudioEndFrameType = exports.MediaAudioBeginFrameType = exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceTranscriptionDropReason = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
4
4
  exports.VoicePronunciationEncoding = {
5
5
  ALIAS: "alias",
6
6
  IPA: "ipa",
@@ -34,6 +34,10 @@ exports.VoiceCallToolPhase = {
34
34
  FINISHED: "finished",
35
35
  STARTED: "started",
36
36
  };
37
+ exports.VoiceTranscriptionDropReason = {
38
+ LOW_CONFIDENCE: "low_confidence",
39
+ OTHER_SPEAKER: "other_speaker",
40
+ };
37
41
  exports.VoiceAudioEncoding = {
38
42
  ALAW: "alaw",
39
43
  MULAW: "mulaw",
@@ -51,3 +55,82 @@ exports.VoiceCommandType = {
51
55
  STOP: "stop",
52
56
  TRANSFER: "transfer",
53
57
  };
58
+ exports.MediaAudioBeginFrameType = {
59
+ AUDIO_BEGIN: "audio.begin",
60
+ };
61
+ exports.MediaAudioEndFrameType = {
62
+ AUDIO_END: "audio.end",
63
+ };
64
+ exports.MediaDuckFrameType = {
65
+ DUCK: "duck",
66
+ };
67
+ exports.MediaErrorFrameType = {
68
+ ERROR: "error",
69
+ };
70
+ exports.MediaFinishedFrameType = {
71
+ FINISHED: "finished",
72
+ };
73
+ exports.MediaHangupFrameType = {
74
+ HANGUP: "hangup",
75
+ };
76
+ exports.MediaLanguageFrameType = {
77
+ LANGUAGE: "language",
78
+ };
79
+ exports.MediaRestoreFrameType = {
80
+ RESTORE: "restore",
81
+ };
82
+ exports.MediaStartedFrameType = {
83
+ STARTED: "started",
84
+ };
85
+ exports.MediaStopFrameType = {
86
+ STOP: "stop",
87
+ };
88
+ exports.MediaParty = {
89
+ CALLEE: "callee",
90
+ CALLER: "caller",
91
+ };
92
+ exports.MediaTranscriptionFrameType = {
93
+ TRANSCRIPTION: "transcription",
94
+ };
95
+ exports.MediaTransferFrameType = {
96
+ TRANSFER: "transfer",
97
+ };
98
+ exports.MediaDtmfFrameType = {
99
+ DTMF: "dtmf",
100
+ };
101
+ exports.MediaFinishReason = {
102
+ AGENT_HANGUP: "agent-hangup",
103
+ AGENT_TRANSFER: "agent-transfer",
104
+ CALLEE_HANGUP: "callee-hangup",
105
+ CALLER_HANGUP: "caller-hangup",
106
+ TIMEOUT: "timeout",
107
+ };
108
+ exports.MediaFinishFrameType = {
109
+ FINISH: "finish",
110
+ };
111
+ exports.MediaPlaybackStopCause = {
112
+ CALLER: "caller",
113
+ CLOUD: "cloud",
114
+ DROP: "drop",
115
+ };
116
+ exports.MediaPlaybackEvent = {
117
+ FINISHED: "finished",
118
+ STARTED: "started",
119
+ STOPPED: "stopped",
120
+ };
121
+ exports.MediaPlaybackFrameType = {
122
+ PLAYBACK: "playback",
123
+ };
124
+ exports.MediaAudioEncoding = {
125
+ PCM_S16LE: "pcm_s16le",
126
+ };
127
+ exports.MediaRunPurpose = {
128
+ AGENT: "agent",
129
+ TRANSCRIPTION: "transcription",
130
+ };
131
+ exports.MediaStartFrameType = {
132
+ START: "start",
133
+ };
134
+ exports.MediaVadFrameType = {
135
+ VAD: "vad",
136
+ };