@wildix/wilma-voice-client 0.0.47 → 0.0.48
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-cjs/WilmaVoice.js +0 -2
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/models/enums.js +1 -6
- package/dist-cjs/schemas/schemas_0.js +13 -57
- package/dist-es/WilmaVoice.js +0 -2
- package/dist-es/commands/index.js +0 -1
- package/dist-es/models/enums.js +0 -5
- package/dist-es/schemas/schemas_0.js +10 -54
- package/dist-types/WilmaVoice.d.ts +0 -8
- package/dist-types/WilmaVoiceClient.d.ts +2 -3
- package/dist-types/commands/index.d.ts +0 -1
- package/dist-types/models/enums.d.ts +0 -22
- package/dist-types/models/models_0.d.ts +1 -99
- package/dist-types/schemas/schemas_0.d.ts +0 -6
- package/package.json +1 -1
- package/dist-cjs/commands/GetVoiceDefaultsCommand.js +0 -20
- package/dist-es/commands/GetVoiceDefaultsCommand.js +0 -16
- package/dist-types/commands/GetVoiceDefaultsCommand.d.ts +0 -92
package/dist-cjs/WilmaVoice.js
CHANGED
|
@@ -3,7 +3,6 @@ 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");
|
|
7
6
|
const ListVoicesCommand_1 = require("./commands/ListVoicesCommand");
|
|
8
7
|
const SendHangupCommand_1 = require("./commands/SendHangupCommand");
|
|
9
8
|
const SendPlayCommand_1 = require("./commands/SendPlayCommand");
|
|
@@ -15,7 +14,6 @@ const TextToSpeechCommand_1 = require("./commands/TextToSpeechCommand");
|
|
|
15
14
|
const WilmaVoiceClient_1 = require("./WilmaVoiceClient");
|
|
16
15
|
const commands = {
|
|
17
16
|
DescribeVoiceProtocolCommand: DescribeVoiceProtocolCommand_1.DescribeVoiceProtocolCommand,
|
|
18
|
-
GetVoiceDefaultsCommand: GetVoiceDefaultsCommand_1.GetVoiceDefaultsCommand,
|
|
19
17
|
ListVoicesCommand: ListVoicesCommand_1.ListVoicesCommand,
|
|
20
18
|
SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
|
|
21
19
|
SendPlayCommand: SendPlayCommand_1.SendPlayCommand,
|
|
@@ -2,7 +2,6 @@
|
|
|
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);
|
|
6
5
|
tslib_1.__exportStar(require("./ListVoicesCommand"), exports);
|
|
7
6
|
tslib_1.__exportStar(require("./SendHangupCommand"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./SendPlayCommand"), exports);
|
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
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",
|
|
7
7
|
};
|
|
8
|
-
exports.VoiceLowConfidenceAction = {
|
|
9
|
-
ANSWER: "answer",
|
|
10
|
-
ASK_TO_REPEAT: "ask_to_repeat",
|
|
11
|
-
SKIP: "skip",
|
|
12
|
-
};
|
|
13
8
|
exports.VoiceEventType = {
|
|
14
9
|
AGENT_TRANSCRIPTION: "agentTranscription",
|
|
15
10
|
AUDIO: "audio",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaVoiceDetection$ = exports.MediaVadFrame$ = exports.MediaTransferFrame$ = exports.MediaTranscriptionFrame$ = exports.MediaStopFrame$ = exports.MediaStartFrame$ = exports.MediaStartedFrame$ = exports.MediaStartedAgent$ = exports.MediaStartCaller$ = exports.MediaStartAgent$ = exports.MediaRestoreFrame$ = exports.MediaProtocolFrames$ = exports.MediaPlaybackFrame$ = exports.MediaPbxFrames$ = exports.MediaLanguageFrame$ = exports.MediaHangupFrame$ = exports.MediaFinishFrame$ = exports.MediaFinishedFrame$ = exports.MediaErrorFrame$ = exports.MediaDuckFrame$ = exports.MediaDtmfFrame$ = exports.MediaCloudFrames$ = exports.MediaAudioFormat$ = exports.MediaAudioEndFrame$ = exports.MediaAudioBeginFrame$ = exports.ListVoicesOutput$ = exports.ListVoicesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommand$ = exports.HangupCommandData$ = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.TextToSpeech$ = exports.StreamCallEvents$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ =
|
|
3
|
+
exports.PlaybackWebsocketEvent$ = exports.PlaybackEvent$ = exports.MediaVoiceDetection$ = exports.MediaVadFrame$ = exports.MediaTransferFrame$ = exports.MediaTranscriptionFrame$ = exports.MediaStopFrame$ = exports.MediaStartFrame$ = exports.MediaStartedFrame$ = exports.MediaStartedAgent$ = exports.MediaStartCaller$ = exports.MediaStartAgent$ = exports.MediaRestoreFrame$ = exports.MediaProtocolFrames$ = exports.MediaPlaybackFrame$ = exports.MediaPbxFrames$ = exports.MediaLanguageFrame$ = exports.MediaHangupFrame$ = exports.MediaFinishFrame$ = exports.MediaFinishedFrame$ = exports.MediaErrorFrame$ = exports.MediaDuckFrame$ = exports.MediaDtmfFrame$ = exports.MediaCloudFrames$ = exports.MediaAudioFormat$ = exports.MediaAudioEndFrame$ = exports.MediaAudioBeginFrame$ = exports.ListVoicesOutput$ = exports.ListVoicesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommand$ = exports.HangupCommandData$ = exports.ErrorWebsocketEvent$ = exports.DescribeVoiceProtocolOutput$ = exports.DescribeVoiceProtocolInput$ = exports.ControlWebsocketEvent$ = exports.ControlEvent$ = exports.CompleteWebsocketEvent$ = exports.CompleteEvent$ = exports.AudioWebsocketEvent$ = exports.AudioEvent$ = exports.AgentTranscriptionWebsocketEvent$ = exports.AgentTranscriptionEvent$ = exports.VoicePronunciation$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaVoiceServiceException$ = void 0;
|
|
4
|
+
exports.SendHangup$ = exports.ListVoices$ = exports.DescribeVoiceProtocol$ = exports.VoiceCallEvent$ = exports.VoiceSpeechPayload$ = exports.VoiceErrorEvent$ = exports.VoiceConnectParams$ = exports.VoiceCallTranscriptionEvent$ = exports.VoiceCallToolEvent$ = exports.VoiceCallStartedEvent$ = exports.VoiceCallSayEvent$ = exports.VoiceCallReplyEvent$ = exports.VoiceCallPlaybackEvent$ = exports.VoiceCallLanguageEvent$ = exports.VoiceCallInterruptionEvent$ = exports.VoiceCallEndedEvent$ = exports.VoiceCallAgentTranscriptionEvent$ = exports.VoiceAudioFormat$ = exports.Voice$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = exports.TextToSpeechOutput$ = exports.TextToSpeechInput$ = exports.StreamCallEventsOutput$ = exports.StreamCallEventsInput$ = exports.StopWebsocketCommand$ = exports.StopCommandData$ = exports.SessionStartedWebsocketEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebsocketEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommand$ = exports.SayCommandData$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = exports.ReplyEvent$ = exports.PlayWebsocketCommand$ = exports.PlayCommandData$ = void 0;
|
|
5
|
+
exports.TextToSpeech$ = exports.StreamCallEvents$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = void 0;
|
|
6
6
|
const _AE = "AudioEvent";
|
|
7
7
|
const _ATE = "AgentTranscriptionEvent";
|
|
8
8
|
const _ATWE = "AgentTranscriptionWebsocketEvent";
|
|
@@ -17,9 +17,6 @@ const _DVPI = "DescribeVoiceProtocolInput";
|
|
|
17
17
|
const _DVPO = "DescribeVoiceProtocolOutput";
|
|
18
18
|
const _EWE = "ErrorWebsocketEvent";
|
|
19
19
|
const _FE = "ForbiddenException";
|
|
20
|
-
const _GVD = "GetVoiceDefaults";
|
|
21
|
-
const _GVDI = "GetVoiceDefaultsInput";
|
|
22
|
-
const _GVDO = "GetVoiceDefaultsOutput";
|
|
23
20
|
const _HCD = "HangupCommandData";
|
|
24
21
|
const _HWC = "HangupWebsocketCommand";
|
|
25
22
|
const _IE = "InterruptionEvent";
|
|
@@ -109,15 +106,12 @@ const _VCSE = "VoiceCallSayEvent";
|
|
|
109
106
|
const _VCSEo = "VoiceCallStartedEvent";
|
|
110
107
|
const _VCTE = "VoiceCallToolEvent";
|
|
111
108
|
const _VCTEo = "VoiceCallTranscriptionEvent";
|
|
112
|
-
const _VDD = "VoiceDetectionDefaults";
|
|
113
109
|
const _VE = "ValidationException";
|
|
114
110
|
const _VEE = "VoiceErrorEvent";
|
|
115
|
-
const _VID = "VoiceInterruptionDefaults";
|
|
116
111
|
const _VL = "VoiceList";
|
|
117
112
|
const _VP = "VoicePronunciation";
|
|
118
113
|
const _VPL = "VoicePronunciationList";
|
|
119
114
|
const _VSP = "VoiceSpeechPayload";
|
|
120
|
-
const _VTED = "VoiceTurnEndDefaults";
|
|
121
115
|
const _a = "audio/mpeg";
|
|
122
116
|
const _aB = "audioBegin";
|
|
123
117
|
const _aD = "autoDetect";
|
|
@@ -159,9 +153,7 @@ const _compl = "complete";
|
|
|
159
153
|
const _con = "context";
|
|
160
154
|
const _cr = "credential";
|
|
161
155
|
const _d = "data";
|
|
162
|
-
const _dAM = "duckAfterMs";
|
|
163
156
|
const _dN = "dialedNumber";
|
|
164
|
-
const _dVD = "duckVolumeDb";
|
|
165
157
|
const _di = "digits";
|
|
166
158
|
const _dr = "draft";
|
|
167
159
|
const _dro = "dropped";
|
|
@@ -188,7 +180,6 @@ const _gI = "groupId";
|
|
|
188
180
|
const _h = "hangup";
|
|
189
181
|
const _hE = "httpError";
|
|
190
182
|
const _hH = "httpHeader";
|
|
191
|
-
const _hM = "holdMs";
|
|
192
183
|
const _hQ = "httpQuery";
|
|
193
184
|
const _hWC = "hangupWebsocketCommand";
|
|
194
185
|
const _ht = "http";
|
|
@@ -197,17 +188,12 @@ const _iA = "inputAudio";
|
|
|
197
188
|
const _iM = "initialMessage";
|
|
198
189
|
const _iMn = "inputMode";
|
|
199
190
|
const _iWE = "interruptionWebsocketEvent";
|
|
200
|
-
const _in = "
|
|
201
|
-
const _int = "
|
|
202
|
-
const _inte = "interruption";
|
|
191
|
+
const _in = "interruptible";
|
|
192
|
+
const _int = "interruption";
|
|
203
193
|
const _l = "language";
|
|
204
|
-
const _lC = "lowConfidence";
|
|
205
194
|
const _la = "languages";
|
|
206
195
|
const _m = "message";
|
|
207
|
-
const _mC = "minConfidence";
|
|
208
196
|
const _mT = "mediaType";
|
|
209
|
-
const _mW = "minWords";
|
|
210
|
-
const _mWM = "maxWaitMs";
|
|
211
197
|
const _me = "media";
|
|
212
198
|
const _met = "metadata";
|
|
213
199
|
const _n = "name";
|
|
@@ -230,7 +216,6 @@ const _pro = "pronunciations";
|
|
|
230
216
|
const _pu = "purpose";
|
|
231
217
|
const _r = "reason";
|
|
232
218
|
const _rAM = "resumeAtMs";
|
|
233
|
-
const _rAMe = "restoreAfterMs";
|
|
234
219
|
const _rI = "replyId";
|
|
235
220
|
const _rM = "rampMs";
|
|
236
221
|
const _rWE = "replyWebsocketEvent";
|
|
@@ -262,7 +247,6 @@ const _star = "start";
|
|
|
262
247
|
const _sto = "stop";
|
|
263
248
|
const _t = "type";
|
|
264
249
|
const _tCI = "toolCallId";
|
|
265
|
-
const _tE = "turnEnd";
|
|
266
250
|
const _tI = "traceId";
|
|
267
251
|
const _tN = "toolName";
|
|
268
252
|
const _tWC = "transferWebsocketCommand";
|
|
@@ -275,8 +259,8 @@ const _tr = "transcription";
|
|
|
275
259
|
const _tra = "transfer";
|
|
276
260
|
const _u = "uri";
|
|
277
261
|
const _v = "voices";
|
|
278
|
-
const _vD = "
|
|
279
|
-
const _vDo = "
|
|
262
|
+
const _vD = "volumeDb";
|
|
263
|
+
const _vDo = "voiceDetection";
|
|
280
264
|
const _va = "vad";
|
|
281
265
|
const _var = "variables";
|
|
282
266
|
const _ve = "version";
|
|
@@ -375,16 +359,6 @@ exports.ErrorWebsocketEvent$ = [3, n1, _EWE,
|
|
|
375
359
|
[_t, _ev],
|
|
376
360
|
[0, () => exports.VoiceErrorEvent$], 2
|
|
377
361
|
];
|
|
378
|
-
exports.GetVoiceDefaultsInput$ = [3, n1, _GVDI,
|
|
379
|
-
0,
|
|
380
|
-
[],
|
|
381
|
-
[]
|
|
382
|
-
];
|
|
383
|
-
exports.GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
|
|
384
|
-
0,
|
|
385
|
-
[_vD, _in, _tE],
|
|
386
|
-
[() => exports.VoiceDetectionDefaults$, () => exports.VoiceInterruptionDefaults$, () => exports.VoiceTurnEndDefaults$], 3
|
|
387
|
-
];
|
|
388
362
|
exports.HangupCommandData$ = [3, n1, _HCD,
|
|
389
363
|
0,
|
|
390
364
|
[_t, _r],
|
|
@@ -442,7 +416,7 @@ exports.MediaDtmfFrame$ = [3, n1, _MDF,
|
|
|
442
416
|
];
|
|
443
417
|
exports.MediaDuckFrame$ = [3, n1, _MDFe,
|
|
444
418
|
0,
|
|
445
|
-
[_t, _rI,
|
|
419
|
+
[_t, _rI, _vD, _rM],
|
|
446
420
|
[0, 0, 1, 1], 4
|
|
447
421
|
];
|
|
448
422
|
exports.MediaErrorFrame$ = [3, n1, _MEF,
|
|
@@ -507,7 +481,7 @@ exports.MediaStartedAgent$ = [3, n1, _MSAe,
|
|
|
507
481
|
];
|
|
508
482
|
exports.MediaStartedFrame$ = [3, n1, _MSF,
|
|
509
483
|
0,
|
|
510
|
-
[_t, _sI, _ag, _gI, _bS,
|
|
484
|
+
[_t, _sI, _ag, _gI, _bS, _vDo],
|
|
511
485
|
[0, 0, () => exports.MediaStartedAgent$, 0, 0, () => exports.MediaVoiceDetection$], 2
|
|
512
486
|
];
|
|
513
487
|
exports.MediaStartFrame$ = [3, n1, _MSFe,
|
|
@@ -577,7 +551,7 @@ exports.SayCommandAudioOptions$ = [3, n1, _SCAO,
|
|
|
577
551
|
];
|
|
578
552
|
exports.SayCommandData$ = [3, n1, _SCD,
|
|
579
553
|
0,
|
|
580
|
-
[_te, _rI, _t,
|
|
554
|
+
[_te, _rI, _t, _in, _vo, _au],
|
|
581
555
|
[0, 0, 0, 2, 0, () => exports.SayCommandAudioOptions$], 3
|
|
582
556
|
];
|
|
583
557
|
exports.SayWebsocketCommand$ = [3, n1, _SWC,
|
|
@@ -607,7 +581,7 @@ exports.SendPlayOutput$ = [3, n1, _SPO,
|
|
|
607
581
|
];
|
|
608
582
|
exports.SendSayInput$ = [3, n1, _SSI,
|
|
609
583
|
0,
|
|
610
|
-
[_te, _rI, _sIe,
|
|
584
|
+
[_te, _rI, _sIe, _in, _vo, _au],
|
|
611
585
|
[0, 0, [0, 1], 2, 0, () => exports.SayCommandAudioOptions$], 3
|
|
612
586
|
];
|
|
613
587
|
exports.SendSayOutput$ = [3, n1, _SSO,
|
|
@@ -747,7 +721,7 @@ exports.VoiceCallReplyEvent$ = [3, n1, _VCRE,
|
|
|
747
721
|
];
|
|
748
722
|
exports.VoiceCallSayEvent$ = [3, n1, _VCSE,
|
|
749
723
|
0,
|
|
750
|
-
[_rI, _te,
|
|
724
|
+
[_rI, _te, _in],
|
|
751
725
|
[0, 0, 2], 3
|
|
752
726
|
];
|
|
753
727
|
exports.VoiceCallStartedEvent$ = [3, n1, _VCSEo,
|
|
@@ -770,31 +744,16 @@ exports.VoiceConnectParams$ = [3, n1, _VCP,
|
|
|
770
744
|
[_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
|
|
771
745
|
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
|
|
772
746
|
];
|
|
773
|
-
exports.VoiceDetectionDefaults$ = [3, n1, _VDD,
|
|
774
|
-
0,
|
|
775
|
-
[_sMi, _sLD, _sLDp],
|
|
776
|
-
[1, 1, 1], 3
|
|
777
|
-
];
|
|
778
747
|
exports.VoiceErrorEvent$ = [3, n1, _VEE,
|
|
779
748
|
0,
|
|
780
749
|
[_t, _cod, _m, _ti],
|
|
781
750
|
[0, 0, 0, 1], 4
|
|
782
751
|
];
|
|
783
|
-
exports.VoiceInterruptionDefaults$ = [3, n1, _VID,
|
|
784
|
-
0,
|
|
785
|
-
[_mW, _dAM, _dVD, _rAMe],
|
|
786
|
-
[1, 1, 1, 1], 4
|
|
787
|
-
];
|
|
788
752
|
exports.VoiceSpeechPayload$ = [3, n1, _VSP,
|
|
789
753
|
0,
|
|
790
754
|
[_eng, _la, _pL, _aD],
|
|
791
755
|
[0, 64 | 0, 0, 2], 4
|
|
792
756
|
];
|
|
793
|
-
exports.VoiceTurnEndDefaults$ = [3, n1, _VTED,
|
|
794
|
-
0,
|
|
795
|
-
[_hM, _mWM, _mC, _lC],
|
|
796
|
-
[1, 1, 1, 0], 4
|
|
797
|
-
];
|
|
798
757
|
var LanguageCodeList = 64 | 0;
|
|
799
758
|
var VoicePronunciationList = [1, n2, _VPL,
|
|
800
759
|
0, () => exports.VoicePronunciation$
|
|
@@ -805,15 +764,12 @@ var VoiceList = [1, n1, _VL,
|
|
|
805
764
|
];
|
|
806
765
|
exports.VoiceCallEvent$ = [4, n1, _VCE,
|
|
807
766
|
0,
|
|
808
|
-
[_sta, _tr, _aT, _rep, _sa, _pl,
|
|
767
|
+
[_sta, _tr, _aT, _rep, _sa, _pl, _int, _l, _too, _end],
|
|
809
768
|
[() => exports.VoiceCallStartedEvent$, () => exports.VoiceCallTranscriptionEvent$, () => exports.VoiceCallAgentTranscriptionEvent$, () => exports.VoiceCallReplyEvent$, () => exports.VoiceCallSayEvent$, () => exports.VoiceCallPlaybackEvent$, () => exports.VoiceCallInterruptionEvent$, () => exports.VoiceCallLanguageEvent$, () => exports.VoiceCallToolEvent$, () => exports.VoiceCallEndedEvent$]
|
|
810
769
|
];
|
|
811
770
|
exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
812
771
|
{ [_ht]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
|
|
813
772
|
];
|
|
814
|
-
exports.GetVoiceDefaults$ = [9, n1, _GVD,
|
|
815
|
-
{ [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => exports.GetVoiceDefaultsInput$, () => exports.GetVoiceDefaultsOutput$
|
|
816
|
-
];
|
|
817
773
|
exports.ListVoices$ = [9, n1, _LV,
|
|
818
774
|
{ [_ht]: ["GET", "/v2/voice/voices", 200] }, () => exports.ListVoicesInput$, () => exports.ListVoicesOutput$
|
|
819
775
|
];
|
package/dist-es/WilmaVoice.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { DescribeVoiceProtocolCommand, } from "./commands/DescribeVoiceProtocolCommand";
|
|
3
|
-
import { GetVoiceDefaultsCommand, } from "./commands/GetVoiceDefaultsCommand";
|
|
4
3
|
import { ListVoicesCommand, } from "./commands/ListVoicesCommand";
|
|
5
4
|
import { SendHangupCommand, } from "./commands/SendHangupCommand";
|
|
6
5
|
import { SendPlayCommand } from "./commands/SendPlayCommand";
|
|
@@ -12,7 +11,6 @@ import { TextToSpeechCommand, } from "./commands/TextToSpeechCommand";
|
|
|
12
11
|
import { WilmaVoiceClient } from "./WilmaVoiceClient";
|
|
13
12
|
const commands = {
|
|
14
13
|
DescribeVoiceProtocolCommand,
|
|
15
|
-
GetVoiceDefaultsCommand,
|
|
16
14
|
ListVoicesCommand,
|
|
17
15
|
SendHangupCommand,
|
|
18
16
|
SendPlayCommand,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -2,11 +2,6 @@ export const VoicePronunciationEncoding = {
|
|
|
2
2
|
ALIAS: "alias",
|
|
3
3
|
IPA: "ipa",
|
|
4
4
|
};
|
|
5
|
-
export const VoiceLowConfidenceAction = {
|
|
6
|
-
ANSWER: "answer",
|
|
7
|
-
ASK_TO_REPEAT: "ask_to_repeat",
|
|
8
|
-
SKIP: "skip",
|
|
9
|
-
};
|
|
10
5
|
export const VoiceEventType = {
|
|
11
6
|
AGENT_TRANSCRIPTION: "agentTranscription",
|
|
12
7
|
AUDIO: "audio",
|
|
@@ -12,9 +12,6 @@ const _DVPI = "DescribeVoiceProtocolInput";
|
|
|
12
12
|
const _DVPO = "DescribeVoiceProtocolOutput";
|
|
13
13
|
const _EWE = "ErrorWebsocketEvent";
|
|
14
14
|
const _FE = "ForbiddenException";
|
|
15
|
-
const _GVD = "GetVoiceDefaults";
|
|
16
|
-
const _GVDI = "GetVoiceDefaultsInput";
|
|
17
|
-
const _GVDO = "GetVoiceDefaultsOutput";
|
|
18
15
|
const _HCD = "HangupCommandData";
|
|
19
16
|
const _HWC = "HangupWebsocketCommand";
|
|
20
17
|
const _IE = "InterruptionEvent";
|
|
@@ -104,15 +101,12 @@ const _VCSE = "VoiceCallSayEvent";
|
|
|
104
101
|
const _VCSEo = "VoiceCallStartedEvent";
|
|
105
102
|
const _VCTE = "VoiceCallToolEvent";
|
|
106
103
|
const _VCTEo = "VoiceCallTranscriptionEvent";
|
|
107
|
-
const _VDD = "VoiceDetectionDefaults";
|
|
108
104
|
const _VE = "ValidationException";
|
|
109
105
|
const _VEE = "VoiceErrorEvent";
|
|
110
|
-
const _VID = "VoiceInterruptionDefaults";
|
|
111
106
|
const _VL = "VoiceList";
|
|
112
107
|
const _VP = "VoicePronunciation";
|
|
113
108
|
const _VPL = "VoicePronunciationList";
|
|
114
109
|
const _VSP = "VoiceSpeechPayload";
|
|
115
|
-
const _VTED = "VoiceTurnEndDefaults";
|
|
116
110
|
const _a = "audio/mpeg";
|
|
117
111
|
const _aB = "audioBegin";
|
|
118
112
|
const _aD = "autoDetect";
|
|
@@ -154,9 +148,7 @@ const _compl = "complete";
|
|
|
154
148
|
const _con = "context";
|
|
155
149
|
const _cr = "credential";
|
|
156
150
|
const _d = "data";
|
|
157
|
-
const _dAM = "duckAfterMs";
|
|
158
151
|
const _dN = "dialedNumber";
|
|
159
|
-
const _dVD = "duckVolumeDb";
|
|
160
152
|
const _di = "digits";
|
|
161
153
|
const _dr = "draft";
|
|
162
154
|
const _dro = "dropped";
|
|
@@ -183,7 +175,6 @@ const _gI = "groupId";
|
|
|
183
175
|
const _h = "hangup";
|
|
184
176
|
const _hE = "httpError";
|
|
185
177
|
const _hH = "httpHeader";
|
|
186
|
-
const _hM = "holdMs";
|
|
187
178
|
const _hQ = "httpQuery";
|
|
188
179
|
const _hWC = "hangupWebsocketCommand";
|
|
189
180
|
const _ht = "http";
|
|
@@ -192,17 +183,12 @@ const _iA = "inputAudio";
|
|
|
192
183
|
const _iM = "initialMessage";
|
|
193
184
|
const _iMn = "inputMode";
|
|
194
185
|
const _iWE = "interruptionWebsocketEvent";
|
|
195
|
-
const _in = "
|
|
196
|
-
const _int = "
|
|
197
|
-
const _inte = "interruption";
|
|
186
|
+
const _in = "interruptible";
|
|
187
|
+
const _int = "interruption";
|
|
198
188
|
const _l = "language";
|
|
199
|
-
const _lC = "lowConfidence";
|
|
200
189
|
const _la = "languages";
|
|
201
190
|
const _m = "message";
|
|
202
|
-
const _mC = "minConfidence";
|
|
203
191
|
const _mT = "mediaType";
|
|
204
|
-
const _mW = "minWords";
|
|
205
|
-
const _mWM = "maxWaitMs";
|
|
206
192
|
const _me = "media";
|
|
207
193
|
const _met = "metadata";
|
|
208
194
|
const _n = "name";
|
|
@@ -225,7 +211,6 @@ const _pro = "pronunciations";
|
|
|
225
211
|
const _pu = "purpose";
|
|
226
212
|
const _r = "reason";
|
|
227
213
|
const _rAM = "resumeAtMs";
|
|
228
|
-
const _rAMe = "restoreAfterMs";
|
|
229
214
|
const _rI = "replyId";
|
|
230
215
|
const _rM = "rampMs";
|
|
231
216
|
const _rWE = "replyWebsocketEvent";
|
|
@@ -257,7 +242,6 @@ const _star = "start";
|
|
|
257
242
|
const _sto = "stop";
|
|
258
243
|
const _t = "type";
|
|
259
244
|
const _tCI = "toolCallId";
|
|
260
|
-
const _tE = "turnEnd";
|
|
261
245
|
const _tI = "traceId";
|
|
262
246
|
const _tN = "toolName";
|
|
263
247
|
const _tWC = "transferWebsocketCommand";
|
|
@@ -270,8 +254,8 @@ const _tr = "transcription";
|
|
|
270
254
|
const _tra = "transfer";
|
|
271
255
|
const _u = "uri";
|
|
272
256
|
const _v = "voices";
|
|
273
|
-
const _vD = "
|
|
274
|
-
const _vDo = "
|
|
257
|
+
const _vD = "volumeDb";
|
|
258
|
+
const _vDo = "voiceDetection";
|
|
275
259
|
const _va = "vad";
|
|
276
260
|
const _var = "variables";
|
|
277
261
|
const _ve = "version";
|
|
@@ -370,16 +354,6 @@ export var ErrorWebsocketEvent$ = [3, n1, _EWE,
|
|
|
370
354
|
[_t, _ev],
|
|
371
355
|
[0, () => VoiceErrorEvent$], 2
|
|
372
356
|
];
|
|
373
|
-
export var GetVoiceDefaultsInput$ = [3, n1, _GVDI,
|
|
374
|
-
0,
|
|
375
|
-
[],
|
|
376
|
-
[]
|
|
377
|
-
];
|
|
378
|
-
export var GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
|
|
379
|
-
0,
|
|
380
|
-
[_vD, _in, _tE],
|
|
381
|
-
[() => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 3
|
|
382
|
-
];
|
|
383
357
|
export var HangupCommandData$ = [3, n1, _HCD,
|
|
384
358
|
0,
|
|
385
359
|
[_t, _r],
|
|
@@ -437,7 +411,7 @@ export var MediaDtmfFrame$ = [3, n1, _MDF,
|
|
|
437
411
|
];
|
|
438
412
|
export var MediaDuckFrame$ = [3, n1, _MDFe,
|
|
439
413
|
0,
|
|
440
|
-
[_t, _rI,
|
|
414
|
+
[_t, _rI, _vD, _rM],
|
|
441
415
|
[0, 0, 1, 1], 4
|
|
442
416
|
];
|
|
443
417
|
export var MediaErrorFrame$ = [3, n1, _MEF,
|
|
@@ -502,7 +476,7 @@ export var MediaStartedAgent$ = [3, n1, _MSAe,
|
|
|
502
476
|
];
|
|
503
477
|
export var MediaStartedFrame$ = [3, n1, _MSF,
|
|
504
478
|
0,
|
|
505
|
-
[_t, _sI, _ag, _gI, _bS,
|
|
479
|
+
[_t, _sI, _ag, _gI, _bS, _vDo],
|
|
506
480
|
[0, 0, () => MediaStartedAgent$, 0, 0, () => MediaVoiceDetection$], 2
|
|
507
481
|
];
|
|
508
482
|
export var MediaStartFrame$ = [3, n1, _MSFe,
|
|
@@ -572,7 +546,7 @@ export var SayCommandAudioOptions$ = [3, n1, _SCAO,
|
|
|
572
546
|
];
|
|
573
547
|
export var SayCommandData$ = [3, n1, _SCD,
|
|
574
548
|
0,
|
|
575
|
-
[_te, _rI, _t,
|
|
549
|
+
[_te, _rI, _t, _in, _vo, _au],
|
|
576
550
|
[0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
|
|
577
551
|
];
|
|
578
552
|
export var SayWebsocketCommand$ = [3, n1, _SWC,
|
|
@@ -602,7 +576,7 @@ export var SendPlayOutput$ = [3, n1, _SPO,
|
|
|
602
576
|
];
|
|
603
577
|
export var SendSayInput$ = [3, n1, _SSI,
|
|
604
578
|
0,
|
|
605
|
-
[_te, _rI, _sIe,
|
|
579
|
+
[_te, _rI, _sIe, _in, _vo, _au],
|
|
606
580
|
[0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
|
|
607
581
|
];
|
|
608
582
|
export var SendSayOutput$ = [3, n1, _SSO,
|
|
@@ -742,7 +716,7 @@ export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
|
|
|
742
716
|
];
|
|
743
717
|
export var VoiceCallSayEvent$ = [3, n1, _VCSE,
|
|
744
718
|
0,
|
|
745
|
-
[_rI, _te,
|
|
719
|
+
[_rI, _te, _in],
|
|
746
720
|
[0, 0, 2], 3
|
|
747
721
|
];
|
|
748
722
|
export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
|
|
@@ -765,31 +739,16 @@ export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
|
765
739
|
[_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
|
|
766
740
|
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
767
741
|
];
|
|
768
|
-
export var VoiceDetectionDefaults$ = [3, n1, _VDD,
|
|
769
|
-
0,
|
|
770
|
-
[_sMi, _sLD, _sLDp],
|
|
771
|
-
[1, 1, 1], 3
|
|
772
|
-
];
|
|
773
742
|
export var VoiceErrorEvent$ = [3, n1, _VEE,
|
|
774
743
|
0,
|
|
775
744
|
[_t, _cod, _m, _ti],
|
|
776
745
|
[0, 0, 0, 1], 4
|
|
777
746
|
];
|
|
778
|
-
export var VoiceInterruptionDefaults$ = [3, n1, _VID,
|
|
779
|
-
0,
|
|
780
|
-
[_mW, _dAM, _dVD, _rAMe],
|
|
781
|
-
[1, 1, 1, 1], 4
|
|
782
|
-
];
|
|
783
747
|
export var VoiceSpeechPayload$ = [3, n1, _VSP,
|
|
784
748
|
0,
|
|
785
749
|
[_eng, _la, _pL, _aD],
|
|
786
750
|
[0, 64 | 0, 0, 2], 4
|
|
787
751
|
];
|
|
788
|
-
export var VoiceTurnEndDefaults$ = [3, n1, _VTED,
|
|
789
|
-
0,
|
|
790
|
-
[_hM, _mWM, _mC, _lC],
|
|
791
|
-
[1, 1, 1, 0], 4
|
|
792
|
-
];
|
|
793
752
|
var LanguageCodeList = 64 | 0;
|
|
794
753
|
var VoicePronunciationList = [1, n2, _VPL,
|
|
795
754
|
0, () => VoicePronunciation$
|
|
@@ -800,15 +759,12 @@ var VoiceList = [1, n1, _VL,
|
|
|
800
759
|
];
|
|
801
760
|
export var VoiceCallEvent$ = [4, n1, _VCE,
|
|
802
761
|
0,
|
|
803
|
-
[_sta, _tr, _aT, _rep, _sa, _pl,
|
|
762
|
+
[_sta, _tr, _aT, _rep, _sa, _pl, _int, _l, _too, _end],
|
|
804
763
|
[() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
|
|
805
764
|
];
|
|
806
765
|
export var DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
807
766
|
{ [_ht]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
|
|
808
767
|
];
|
|
809
|
-
export var GetVoiceDefaults$ = [9, n1, _GVD,
|
|
810
|
-
{ [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => GetVoiceDefaultsInput$, () => GetVoiceDefaultsOutput$
|
|
811
|
-
];
|
|
812
768
|
export var ListVoices$ = [9, n1, _LV,
|
|
813
769
|
{ [_ht]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
|
|
814
770
|
];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { type DescribeVoiceProtocolCommandInput, type DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
|
|
3
|
-
import { type GetVoiceDefaultsCommandInput, type GetVoiceDefaultsCommandOutput } from "./commands/GetVoiceDefaultsCommand";
|
|
4
3
|
import { type ListVoicesCommandInput, type ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
|
|
5
4
|
import { type SendHangupCommandInput, type SendHangupCommandOutput } from "./commands/SendHangupCommand";
|
|
6
5
|
import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./commands/SendPlayCommand";
|
|
@@ -18,13 +17,6 @@ export interface WilmaVoice {
|
|
|
18
17
|
describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoiceProtocolCommandOutput>;
|
|
19
18
|
describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
|
|
20
19
|
describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
|
|
21
|
-
/**
|
|
22
|
-
* @see {@link GetVoiceDefaultsCommand}
|
|
23
|
-
*/
|
|
24
|
-
getVoiceDefaults(): Promise<GetVoiceDefaultsCommandOutput>;
|
|
25
|
-
getVoiceDefaults(args: GetVoiceDefaultsCommandInput, options?: __HttpHandlerOptions): Promise<GetVoiceDefaultsCommandOutput>;
|
|
26
|
-
getVoiceDefaults(args: GetVoiceDefaultsCommandInput, cb: (err: any, data?: GetVoiceDefaultsCommandOutput) => void): void;
|
|
27
|
-
getVoiceDefaults(args: GetVoiceDefaultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVoiceDefaultsCommandOutput) => void): void;
|
|
28
20
|
/**
|
|
29
21
|
* @see {@link ListVoicesCommand}
|
|
30
22
|
*/
|
|
@@ -6,7 +6,6 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
|
|
|
6
6
|
import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
7
7
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import type { DescribeVoiceProtocolCommandInput, DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
|
|
9
|
-
import type { GetVoiceDefaultsCommandInput, GetVoiceDefaultsCommandOutput } from "./commands/GetVoiceDefaultsCommand";
|
|
10
9
|
import type { ListVoicesCommandInput, ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
|
|
11
10
|
import type { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
|
|
12
11
|
import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
|
|
@@ -21,11 +20,11 @@ export { __Client };
|
|
|
21
20
|
/**
|
|
22
21
|
* @public
|
|
23
22
|
*/
|
|
24
|
-
export type ServiceInputTypes = DescribeVoiceProtocolCommandInput |
|
|
23
|
+
export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | StreamCallEventsCommandInput | TextToSpeechCommandInput;
|
|
25
24
|
/**
|
|
26
25
|
* @public
|
|
27
26
|
*/
|
|
28
|
-
export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput |
|
|
27
|
+
export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | StreamCallEventsCommandOutput | TextToSpeechCommandOutput;
|
|
29
28
|
/**
|
|
30
29
|
* @public
|
|
31
30
|
*/
|
|
@@ -16,28 +16,6 @@ export declare const VoicePronunciationEncoding: {
|
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
18
|
export type VoicePronunciationEncoding = (typeof VoicePronunciationEncoding)[keyof typeof VoicePronunciationEncoding];
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
* @enum
|
|
22
|
-
*/
|
|
23
|
-
export declare const VoiceLowConfidenceAction: {
|
|
24
|
-
/**
|
|
25
|
-
* The agent answers the words as they were recognised.
|
|
26
|
-
*/
|
|
27
|
-
readonly ANSWER: "answer";
|
|
28
|
-
/**
|
|
29
|
-
* The agent asks the caller to repeat.
|
|
30
|
-
*/
|
|
31
|
-
readonly ASK_TO_REPEAT: "ask_to_repeat";
|
|
32
|
-
/**
|
|
33
|
-
* The agent does not answer the turn.
|
|
34
|
-
*/
|
|
35
|
-
readonly SKIP: "skip";
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
export type VoiceLowConfidenceAction = (typeof VoiceLowConfidenceAction)[keyof typeof VoiceLowConfidenceAction];
|
|
41
19
|
/**
|
|
42
20
|
* @public
|
|
43
21
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { MediaAudioBeginFrameType, MediaAudioEncoding, MediaAudioEndFrameType, MediaDtmfFrameType, MediaDuckFrameType, MediaErrorFrameType, MediaFinishedFrameType, MediaFinishFrameType, MediaFinishReason, MediaHangupFrameType, MediaLanguageFrameType, MediaParty, MediaPlaybackEvent, MediaPlaybackFrameType, MediaPlaybackStopCause, MediaRestoreFrameType, MediaRunPurpose, MediaStartedFrameType, MediaStartFrameType, MediaStopFrameType, MediaTranscriptionFrameType, MediaTransferFrameType, MediaVadFrameType, VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode,
|
|
2
|
+
import type { MediaAudioBeginFrameType, MediaAudioEncoding, MediaAudioEndFrameType, MediaDtmfFrameType, MediaDuckFrameType, MediaErrorFrameType, MediaFinishedFrameType, MediaFinishFrameType, MediaFinishReason, MediaHangupFrameType, MediaLanguageFrameType, MediaParty, MediaPlaybackEvent, MediaPlaybackFrameType, MediaPlaybackStopCause, MediaRestoreFrameType, MediaRunPurpose, MediaStartedFrameType, MediaStartFrameType, MediaStopFrameType, MediaTranscriptionFrameType, MediaTransferFrameType, MediaVadFrameType, VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding, VoiceTranscriptionDropReason } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
5
5
|
* respelled differently for an Italian and a German voice, so one list shared ACROSS languages
|
|
@@ -1864,104 +1864,6 @@ export interface DescribeVoiceProtocolOutput {
|
|
|
1864
1864
|
*/
|
|
1865
1865
|
media?: MediaProtocolFrames | undefined;
|
|
1866
1866
|
}
|
|
1867
|
-
/**
|
|
1868
|
-
* @public
|
|
1869
|
-
*/
|
|
1870
|
-
export interface GetVoiceDefaultsInput {
|
|
1871
|
-
}
|
|
1872
|
-
/**
|
|
1873
|
-
* Defaults of the tuning members of `VoiceChannelSettings.interruptions`.
|
|
1874
|
-
* @public
|
|
1875
|
-
*/
|
|
1876
|
-
export interface VoiceInterruptionDefaults {
|
|
1877
|
-
/**
|
|
1878
|
-
* Minimum number of caller words that count as an interruption.
|
|
1879
|
-
* @public
|
|
1880
|
-
*/
|
|
1881
|
-
minWords: number;
|
|
1882
|
-
/**
|
|
1883
|
-
* Caller speech in ms before the agent's reply is lowered.
|
|
1884
|
-
* @public
|
|
1885
|
-
*/
|
|
1886
|
-
duckAfterMs: number;
|
|
1887
|
-
/**
|
|
1888
|
-
* Volume in dB of a lowered reply.
|
|
1889
|
-
* @public
|
|
1890
|
-
*/
|
|
1891
|
-
duckVolumeDb: number;
|
|
1892
|
-
/**
|
|
1893
|
-
* Caller silence in ms before a lowered reply gets its volume back.
|
|
1894
|
-
* @public
|
|
1895
|
-
*/
|
|
1896
|
-
restoreAfterMs: number;
|
|
1897
|
-
}
|
|
1898
|
-
/**
|
|
1899
|
-
* Defaults of `VoiceChannelSettings.turnEnd`.
|
|
1900
|
-
* @public
|
|
1901
|
-
*/
|
|
1902
|
-
export interface VoiceTurnEndDefaults {
|
|
1903
|
-
/**
|
|
1904
|
-
* Default of `holdMs`.
|
|
1905
|
-
* @public
|
|
1906
|
-
*/
|
|
1907
|
-
holdMs: number;
|
|
1908
|
-
/**
|
|
1909
|
-
* Default of `maxWaitMs`.
|
|
1910
|
-
* @public
|
|
1911
|
-
*/
|
|
1912
|
-
maxWaitMs: number;
|
|
1913
|
-
/**
|
|
1914
|
-
* Default of `minConfidence`. 0: off.
|
|
1915
|
-
* @public
|
|
1916
|
-
*/
|
|
1917
|
-
minConfidence: number;
|
|
1918
|
-
/**
|
|
1919
|
-
* Default of `lowConfidence`.
|
|
1920
|
-
* @public
|
|
1921
|
-
*/
|
|
1922
|
-
lowConfidence: VoiceLowConfidenceAction;
|
|
1923
|
-
}
|
|
1924
|
-
/**
|
|
1925
|
-
* Defaults of `VoiceChannelSettings.voiceDetection`.
|
|
1926
|
-
* @public
|
|
1927
|
-
*/
|
|
1928
|
-
export interface VoiceDetectionDefaults {
|
|
1929
|
-
/**
|
|
1930
|
-
* Silence in ms that ends the caller speech.
|
|
1931
|
-
* @public
|
|
1932
|
-
*/
|
|
1933
|
-
silenceMs: number;
|
|
1934
|
-
/**
|
|
1935
|
-
* Mean frame level in dBFS below which caller audio is silence.
|
|
1936
|
-
* @public
|
|
1937
|
-
*/
|
|
1938
|
-
silenceLevelDb: number;
|
|
1939
|
-
/**
|
|
1940
|
-
* Mean frame level in dBFS from which caller audio is speech.
|
|
1941
|
-
* @public
|
|
1942
|
-
*/
|
|
1943
|
-
speechLevelDb: number;
|
|
1944
|
-
}
|
|
1945
|
-
/**
|
|
1946
|
-
* @public
|
|
1947
|
-
*/
|
|
1948
|
-
export interface GetVoiceDefaultsOutput {
|
|
1949
|
-
/**
|
|
1950
|
-
* Defaults of `VoiceChannelSettings.voiceDetection`.
|
|
1951
|
-
* @public
|
|
1952
|
-
*/
|
|
1953
|
-
voiceDetection: VoiceDetectionDefaults;
|
|
1954
|
-
/**
|
|
1955
|
-
* Defaults of the tuning members of `VoiceChannelSettings.interruptions`.
|
|
1956
|
-
* @public
|
|
1957
|
-
*/
|
|
1958
|
-
interruptions: VoiceInterruptionDefaults;
|
|
1959
|
-
/**
|
|
1960
|
-
* Defaults of `VoiceChannelSettings.turnEnd`.
|
|
1961
|
-
* @public
|
|
1962
|
-
*/
|
|
1963
|
-
turnEnd: VoiceTurnEndDefaults;
|
|
1964
|
-
}
|
|
1965
1867
|
/**
|
|
1966
1868
|
* @public
|
|
1967
1869
|
*/
|
|
@@ -22,8 +22,6 @@ export declare var ControlWebsocketEvent$: StaticStructureSchema;
|
|
|
22
22
|
export declare var DescribeVoiceProtocolInput$: StaticStructureSchema;
|
|
23
23
|
export declare var DescribeVoiceProtocolOutput$: StaticStructureSchema;
|
|
24
24
|
export declare var ErrorWebsocketEvent$: StaticStructureSchema;
|
|
25
|
-
export declare var GetVoiceDefaultsInput$: StaticStructureSchema;
|
|
26
|
-
export declare var GetVoiceDefaultsOutput$: StaticStructureSchema;
|
|
27
25
|
export declare var HangupCommandData$: StaticStructureSchema;
|
|
28
26
|
export declare var HangupWebsocketCommand$: StaticStructureSchema;
|
|
29
27
|
export declare var InterruptionEvent$: StaticStructureSchema;
|
|
@@ -101,14 +99,10 @@ export declare var VoiceCallStartedEvent$: StaticStructureSchema;
|
|
|
101
99
|
export declare var VoiceCallToolEvent$: StaticStructureSchema;
|
|
102
100
|
export declare var VoiceCallTranscriptionEvent$: StaticStructureSchema;
|
|
103
101
|
export declare var VoiceConnectParams$: StaticStructureSchema;
|
|
104
|
-
export declare var VoiceDetectionDefaults$: StaticStructureSchema;
|
|
105
102
|
export declare var VoiceErrorEvent$: StaticStructureSchema;
|
|
106
|
-
export declare var VoiceInterruptionDefaults$: StaticStructureSchema;
|
|
107
103
|
export declare var VoiceSpeechPayload$: StaticStructureSchema;
|
|
108
|
-
export declare var VoiceTurnEndDefaults$: StaticStructureSchema;
|
|
109
104
|
export declare var VoiceCallEvent$: StaticUnionSchema;
|
|
110
105
|
export declare var DescribeVoiceProtocol$: StaticOperationSchema;
|
|
111
|
-
export declare var GetVoiceDefaults$: StaticOperationSchema;
|
|
112
106
|
export declare var ListVoices$: StaticOperationSchema;
|
|
113
107
|
export declare var SendHangup$: StaticOperationSchema;
|
|
114
108
|
export declare var SendPlay$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-voice-client",
|
|
3
3
|
"description": "@wildix/wilma-voice-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetVoiceDefaults$ } from "../schemas/schemas_0";
|
|
5
|
-
export { $Command };
|
|
6
|
-
export class GetVoiceDefaultsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("WilmaVoice", "GetVoiceDefaults", {})
|
|
13
|
-
.n("WilmaVoiceClient", "GetVoiceDefaultsCommand")
|
|
14
|
-
.sc(GetVoiceDefaults$)
|
|
15
|
-
.build() {
|
|
16
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { GetVoiceDefaultsInput, GetVoiceDefaultsOutput } from "../models/models_0";
|
|
4
|
-
import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link GetVoiceDefaultsCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface GetVoiceDefaultsCommandInput extends GetVoiceDefaultsInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link GetVoiceDefaultsCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface GetVoiceDefaultsCommandOutput extends GetVoiceDefaultsOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const GetVoiceDefaultsCommand_base: {
|
|
25
|
-
new (input: GetVoiceDefaultsCommandInput): import("@smithy/core/client").CommandImpl<GetVoiceDefaultsCommandInput, GetVoiceDefaultsCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [GetVoiceDefaultsCommandInput]): import("@smithy/core/client").CommandImpl<GetVoiceDefaultsCommandInput, GetVoiceDefaultsCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Returns the voice channel tuning that applies to a call when the agent sets no value. The values can change without an agent change.
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { WilmaVoiceClient, GetVoiceDefaultsCommand } from "@wildix/wilma-voice-client"; // ES Modules import
|
|
35
|
-
* // const { WilmaVoiceClient, GetVoiceDefaultsCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
|
|
36
|
-
* // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
|
|
37
|
-
* const config = {}; // type is WilmaVoiceClientConfig
|
|
38
|
-
* const client = new WilmaVoiceClient(config);
|
|
39
|
-
* const input = {};
|
|
40
|
-
* const command = new GetVoiceDefaultsCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* // { // GetVoiceDefaultsOutput
|
|
43
|
-
* // voiceDetection: { // VoiceDetectionDefaults
|
|
44
|
-
* // silenceMs: Number("int"), // required
|
|
45
|
-
* // silenceLevelDb: Number("int"), // required
|
|
46
|
-
* // speechLevelDb: Number("int"), // required
|
|
47
|
-
* // },
|
|
48
|
-
* // interruptions: { // VoiceInterruptionDefaults
|
|
49
|
-
* // minWords: Number("int"), // required
|
|
50
|
-
* // duckAfterMs: Number("int"), // required
|
|
51
|
-
* // duckVolumeDb: Number("int"), // required
|
|
52
|
-
* // restoreAfterMs: Number("int"), // required
|
|
53
|
-
* // },
|
|
54
|
-
* // turnEnd: { // VoiceTurnEndDefaults
|
|
55
|
-
* // holdMs: Number("int"), // required
|
|
56
|
-
* // maxWaitMs: Number("int"), // required
|
|
57
|
-
* // minConfidence: Number("double"), // required
|
|
58
|
-
* // lowConfidence: "answer" || "ask_to_repeat" || "skip", // required
|
|
59
|
-
* // },
|
|
60
|
-
* // };
|
|
61
|
-
*
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @param GetVoiceDefaultsCommandInput - {@link GetVoiceDefaultsCommandInput}
|
|
65
|
-
* @returns {@link GetVoiceDefaultsCommandOutput}
|
|
66
|
-
* @see {@link GetVoiceDefaultsCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link GetVoiceDefaultsCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
|
|
69
|
-
*
|
|
70
|
-
* @throws {@link ValidationException} (client fault)
|
|
71
|
-
*
|
|
72
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
73
|
-
*
|
|
74
|
-
* @throws {@link WilmaVoiceServiceException}
|
|
75
|
-
* <p>Base exception class for all service exceptions from WilmaVoice service.</p>
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @public
|
|
79
|
-
*/
|
|
80
|
-
export declare class GetVoiceDefaultsCommand extends GetVoiceDefaultsCommand_base {
|
|
81
|
-
/** @internal type navigation helper, not in runtime. */
|
|
82
|
-
protected static __types: {
|
|
83
|
-
api: {
|
|
84
|
-
input: {};
|
|
85
|
-
output: GetVoiceDefaultsOutput;
|
|
86
|
-
};
|
|
87
|
-
sdk: {
|
|
88
|
-
input: GetVoiceDefaultsCommandInput;
|
|
89
|
-
output: GetVoiceDefaultsCommandOutput;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
}
|