@wildix/wilma-voice-client 0.0.39 → 0.0.41
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 +2 -0
- package/dist-cjs/commands/GetVoiceDefaultsCommand.js +20 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/enums.js +80 -5
- package/dist-cjs/schemas/schemas_0.js +277 -54
- package/dist-es/WilmaVoice.js +2 -0
- package/dist-es/commands/GetVoiceDefaultsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +79 -4
- package/dist-es/schemas/schemas_0.js +274 -52
- package/dist-types/WilmaVoice.d.ts +15 -5
- package/dist-types/WilmaVoiceClient.d.ts +10 -7
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +136 -9
- package/dist-types/commands/GetVoiceDefaultsCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +7 -5
- package/dist-types/models/enums.d.ts +302 -12
- package/dist-types/models/models_0.d.ts +677 -91
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +31 -1
- package/package.json +3 -2
package/dist-es/models/enums.js
CHANGED
|
@@ -20,10 +20,6 @@ export const VoiceControlAction = {
|
|
|
20
20
|
END_OF_TURN: "end_of_turn",
|
|
21
21
|
KEEPALIVE: "keepalive",
|
|
22
22
|
};
|
|
23
|
-
export const VoiceCallBackendTransport = {
|
|
24
|
-
SQS: "sqs",
|
|
25
|
-
WEBHOOK: "webhook",
|
|
26
|
-
};
|
|
27
23
|
export const VoiceCallEndReason = {
|
|
28
24
|
COMPLETE: "complete",
|
|
29
25
|
ERROR: "error",
|
|
@@ -52,3 +48,82 @@ export const VoiceCommandType = {
|
|
|
52
48
|
STOP: "stop",
|
|
53
49
|
TRANSFER: "transfer",
|
|
54
50
|
};
|
|
51
|
+
export const MediaAudioBeginFrameType = {
|
|
52
|
+
AUDIO_BEGIN: "audio.begin",
|
|
53
|
+
};
|
|
54
|
+
export const MediaAudioEndFrameType = {
|
|
55
|
+
AUDIO_END: "audio.end",
|
|
56
|
+
};
|
|
57
|
+
export const MediaDuckFrameType = {
|
|
58
|
+
DUCK: "duck",
|
|
59
|
+
};
|
|
60
|
+
export const MediaErrorFrameType = {
|
|
61
|
+
ERROR: "error",
|
|
62
|
+
};
|
|
63
|
+
export const MediaFinishedFrameType = {
|
|
64
|
+
FINISHED: "finished",
|
|
65
|
+
};
|
|
66
|
+
export const MediaHangupFrameType = {
|
|
67
|
+
HANGUP: "hangup",
|
|
68
|
+
};
|
|
69
|
+
export const MediaLanguageFrameType = {
|
|
70
|
+
LANGUAGE: "language",
|
|
71
|
+
};
|
|
72
|
+
export const MediaRestoreFrameType = {
|
|
73
|
+
RESTORE: "restore",
|
|
74
|
+
};
|
|
75
|
+
export const MediaStartedFrameType = {
|
|
76
|
+
STARTED: "started",
|
|
77
|
+
};
|
|
78
|
+
export const MediaStopFrameType = {
|
|
79
|
+
STOP: "stop",
|
|
80
|
+
};
|
|
81
|
+
export const MediaParty = {
|
|
82
|
+
CALLEE: "callee",
|
|
83
|
+
CALLER: "caller",
|
|
84
|
+
};
|
|
85
|
+
export const MediaTranscriptionFrameType = {
|
|
86
|
+
TRANSCRIPTION: "transcription",
|
|
87
|
+
};
|
|
88
|
+
export const MediaTransferFrameType = {
|
|
89
|
+
TRANSFER: "transfer",
|
|
90
|
+
};
|
|
91
|
+
export const MediaDtmfFrameType = {
|
|
92
|
+
DTMF: "dtmf",
|
|
93
|
+
};
|
|
94
|
+
export const MediaFinishReason = {
|
|
95
|
+
AGENT_HANGUP: "agent-hangup",
|
|
96
|
+
AGENT_TRANSFER: "agent-transfer",
|
|
97
|
+
CALLEE_HANGUP: "callee-hangup",
|
|
98
|
+
CALLER_HANGUP: "caller-hangup",
|
|
99
|
+
TIMEOUT: "timeout",
|
|
100
|
+
};
|
|
101
|
+
export const MediaFinishFrameType = {
|
|
102
|
+
FINISH: "finish",
|
|
103
|
+
};
|
|
104
|
+
export const MediaPlaybackStopCause = {
|
|
105
|
+
CALLER: "caller",
|
|
106
|
+
CLOUD: "cloud",
|
|
107
|
+
DROP: "drop",
|
|
108
|
+
};
|
|
109
|
+
export const MediaPlaybackEvent = {
|
|
110
|
+
FINISHED: "finished",
|
|
111
|
+
STARTED: "started",
|
|
112
|
+
STOPPED: "stopped",
|
|
113
|
+
};
|
|
114
|
+
export const MediaPlaybackFrameType = {
|
|
115
|
+
PLAYBACK: "playback",
|
|
116
|
+
};
|
|
117
|
+
export const MediaAudioEncoding = {
|
|
118
|
+
PCM_S16LE: "pcm_s16le",
|
|
119
|
+
};
|
|
120
|
+
export const MediaRunPurpose = {
|
|
121
|
+
AGENT: "agent",
|
|
122
|
+
TRANSCRIPTION: "transcription",
|
|
123
|
+
};
|
|
124
|
+
export const MediaStartFrameType = {
|
|
125
|
+
START: "start",
|
|
126
|
+
};
|
|
127
|
+
export const MediaVadFrameType = {
|
|
128
|
+
VAD: "vad",
|
|
129
|
+
};
|
|
@@ -12,6 +12,9 @@ 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";
|
|
15
18
|
const _HCD = "HangupCommandData";
|
|
16
19
|
const _HWC = "HangupWebsocketCommand";
|
|
17
20
|
const _IE = "InterruptionEvent";
|
|
@@ -20,6 +23,31 @@ const _LV = "ListVoices";
|
|
|
20
23
|
const _LVI = "ListVoicesInput";
|
|
21
24
|
const _LVO = "ListVoicesOutput";
|
|
22
25
|
const _MA = "Mp3Audio";
|
|
26
|
+
const _MABF = "MediaAudioBeginFrame";
|
|
27
|
+
const _MAEF = "MediaAudioEndFrame";
|
|
28
|
+
const _MAF = "MediaAudioFormat";
|
|
29
|
+
const _MCF = "MediaCloudFrames";
|
|
30
|
+
const _MDF = "MediaDtmfFrame";
|
|
31
|
+
const _MDFe = "MediaDuckFrame";
|
|
32
|
+
const _MEF = "MediaErrorFrame";
|
|
33
|
+
const _MFF = "MediaFinishedFrame";
|
|
34
|
+
const _MFFe = "MediaFinishFrame";
|
|
35
|
+
const _MHF = "MediaHangupFrame";
|
|
36
|
+
const _MLF = "MediaLanguageFrame";
|
|
37
|
+
const _MPF = "MediaPbxFrames";
|
|
38
|
+
const _MPFe = "MediaPlaybackFrame";
|
|
39
|
+
const _MPFed = "MediaProtocolFrames";
|
|
40
|
+
const _MRF = "MediaRestoreFrame";
|
|
41
|
+
const _MSA = "MediaStartAgent";
|
|
42
|
+
const _MSAe = "MediaStartedAgent";
|
|
43
|
+
const _MSC = "MediaStartCaller";
|
|
44
|
+
const _MSF = "MediaStartedFrame";
|
|
45
|
+
const _MSFe = "MediaStartFrame";
|
|
46
|
+
const _MSFed = "MediaStopFrame";
|
|
47
|
+
const _MTF = "MediaTranscriptionFrame";
|
|
48
|
+
const _MTFe = "MediaTransferFrame";
|
|
49
|
+
const _MVD = "MediaVoiceDetection";
|
|
50
|
+
const _MVF = "MediaVadFrame";
|
|
23
51
|
const _NFE = "NotFoundException";
|
|
24
52
|
const _PCD = "PlayCommandData";
|
|
25
53
|
const _PE = "PlaybackEvent";
|
|
@@ -64,7 +92,6 @@ const _TWE = "TranscriptionWebsocketEvent";
|
|
|
64
92
|
const _V = "Voice";
|
|
65
93
|
const _VAF = "VoiceAudioFormat";
|
|
66
94
|
const _VCATE = "VoiceCallAgentTranscriptionEvent";
|
|
67
|
-
const _VCBE = "VoiceCallBackendEvent";
|
|
68
95
|
const _VCE = "VoiceCallEvent";
|
|
69
96
|
const _VCEE = "VoiceCallEndedEvent";
|
|
70
97
|
const _VCESB = "VoiceCallEventStreamBody";
|
|
@@ -77,25 +104,31 @@ const _VCSE = "VoiceCallSayEvent";
|
|
|
77
104
|
const _VCSEo = "VoiceCallStartedEvent";
|
|
78
105
|
const _VCTE = "VoiceCallToolEvent";
|
|
79
106
|
const _VCTEo = "VoiceCallTranscriptionEvent";
|
|
107
|
+
const _VDD = "VoiceDetectionDefaults";
|
|
80
108
|
const _VE = "ValidationException";
|
|
81
109
|
const _VEE = "VoiceErrorEvent";
|
|
110
|
+
const _VID = "VoiceInterruptionDefaults";
|
|
82
111
|
const _VL = "VoiceList";
|
|
83
112
|
const _VP = "VoicePronunciation";
|
|
84
113
|
const _VPL = "VoicePronunciationList";
|
|
85
114
|
const _VSP = "VoiceSpeechPayload";
|
|
115
|
+
const _VTED = "VoiceTurnEndDefaults";
|
|
86
116
|
const _a = "audio/mpeg";
|
|
87
|
-
const
|
|
88
|
-
const
|
|
117
|
+
const _aB = "audioBegin";
|
|
118
|
+
const _aD = "autoDetect";
|
|
119
|
+
const _aDg = "agentDraft";
|
|
120
|
+
const _aE = "audioEnd";
|
|
89
121
|
const _aI = "agentId";
|
|
122
|
+
const _aM = "atMs";
|
|
90
123
|
const _aN = "agentName";
|
|
91
124
|
const _aT = "agentTranscription";
|
|
92
125
|
const _aTWE = "agentTranscriptionWebsocketEvent";
|
|
93
126
|
const _aV = "agentVersion";
|
|
94
127
|
const _aWE = "audioWebsocketEvent";
|
|
95
128
|
const _ac = "action";
|
|
129
|
+
const _ag = "agent";
|
|
96
130
|
const _as = "as";
|
|
97
131
|
const _au = "audio";
|
|
98
|
-
const _b = "backend";
|
|
99
132
|
const _bS = "backgroundSound";
|
|
100
133
|
const _c = "client";
|
|
101
134
|
const _cC = "callerCompany";
|
|
@@ -108,22 +141,32 @@ const _cP = "connectParams";
|
|
|
108
141
|
const _cT = "contentType";
|
|
109
142
|
const _cWE = "completeWebsocketEvent";
|
|
110
143
|
const _cWEo = "controlWebsocketEvent";
|
|
111
|
-
const _ca = "
|
|
144
|
+
const _ca = "cause";
|
|
145
|
+
const _cal = "caller";
|
|
146
|
+
const _cat = "category";
|
|
112
147
|
const _ch = "channels";
|
|
148
|
+
const _cl = "cloud";
|
|
113
149
|
const _co = "confidence";
|
|
114
150
|
const _cod = "code";
|
|
115
151
|
const _com = "command";
|
|
116
|
-
const _comp = "
|
|
117
|
-
const
|
|
152
|
+
const _comp = "company";
|
|
153
|
+
const _compl = "complete";
|
|
118
154
|
const _con = "context";
|
|
119
155
|
const _cr = "credential";
|
|
120
156
|
const _d = "data";
|
|
121
|
-
const
|
|
157
|
+
const _dAM = "duckAfterMs";
|
|
122
158
|
const _dN = "dialedNumber";
|
|
123
|
-
const
|
|
159
|
+
const _dVD = "duckVolumeDb";
|
|
160
|
+
const _di = "digits";
|
|
161
|
+
const _dr = "draft";
|
|
162
|
+
const _dt = "dtmf";
|
|
163
|
+
const _du = "duck";
|
|
124
164
|
const _e = "error";
|
|
165
|
+
const _eD = "energyDb";
|
|
166
|
+
const _eM = "endMs";
|
|
125
167
|
const _eT = "endTime";
|
|
126
168
|
const _eWE = "errorWebsocketEvent";
|
|
169
|
+
const _em = "email";
|
|
127
170
|
const _en = "encoding";
|
|
128
171
|
const _end = "ended";
|
|
129
172
|
const _eng = "engine";
|
|
@@ -132,47 +175,70 @@ const _eve = "events";
|
|
|
132
175
|
const _ex = "extension";
|
|
133
176
|
const _f = "final";
|
|
134
177
|
const _fI = "flowIndex";
|
|
178
|
+
const _fi = "finished";
|
|
179
|
+
const _fin = "finish";
|
|
135
180
|
const _fr = "from";
|
|
136
181
|
const _gI = "groupId";
|
|
137
|
-
const _h = "
|
|
182
|
+
const _h = "hangup";
|
|
138
183
|
const _hE = "httpError";
|
|
139
184
|
const _hH = "httpHeader";
|
|
185
|
+
const _hM = "holdMs";
|
|
140
186
|
const _hQ = "httpQuery";
|
|
141
187
|
const _hWC = "hangupWebsocketCommand";
|
|
188
|
+
const _ht = "http";
|
|
142
189
|
const _i = "id";
|
|
143
190
|
const _iA = "inputAudio";
|
|
144
191
|
const _iM = "initialMessage";
|
|
145
192
|
const _iMn = "inputMode";
|
|
146
193
|
const _iWE = "interruptionWebsocketEvent";
|
|
147
|
-
const _in = "
|
|
148
|
-
const _int = "
|
|
194
|
+
const _in = "interruptions";
|
|
195
|
+
const _int = "interruptible";
|
|
196
|
+
const _inte = "interruption";
|
|
149
197
|
const _l = "language";
|
|
150
198
|
const _la = "languages";
|
|
151
199
|
const _m = "message";
|
|
200
|
+
const _mC = "minConfidence";
|
|
152
201
|
const _mT = "mediaType";
|
|
153
|
-
const
|
|
202
|
+
const _mW = "minWords";
|
|
203
|
+
const _me = "media";
|
|
204
|
+
const _met = "metadata";
|
|
154
205
|
const _n = "name";
|
|
206
|
+
const _nu = "number";
|
|
155
207
|
const _oA = "outputAudio";
|
|
156
208
|
const _oT = "originalText";
|
|
157
209
|
const _p = "phrase";
|
|
158
210
|
const _pL = "preferredLanguage";
|
|
211
|
+
const _pM = "playedMs";
|
|
159
212
|
const _pT = "playedText";
|
|
160
213
|
const _pV = "protocolVersion";
|
|
161
214
|
const _pWC = "playWebsocketCommand";
|
|
162
215
|
const _pWE = "playbackWebsocketEvent";
|
|
216
|
+
const _pa = "party";
|
|
217
|
+
const _pb = "pbx";
|
|
163
218
|
const _ph = "phase";
|
|
164
219
|
const _pl = "playback";
|
|
165
220
|
const _pr = "provider";
|
|
166
221
|
const _pro = "pronunciations";
|
|
222
|
+
const _pu = "purpose";
|
|
167
223
|
const _r = "reason";
|
|
224
|
+
const _rAM = "resumeAtMs";
|
|
225
|
+
const _rAMe = "restoreAfterMs";
|
|
168
226
|
const _rI = "replyId";
|
|
227
|
+
const _rM = "rampMs";
|
|
169
228
|
const _rWE = "replyWebsocketEvent";
|
|
170
|
-
const _re = "
|
|
229
|
+
const _re = "restore";
|
|
230
|
+
const _rep = "reply";
|
|
231
|
+
const _res = "resume";
|
|
232
|
+
const _ret = "retryable";
|
|
171
233
|
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
|
|
172
234
|
const _sEWE = "sessionEndedWebsocketEvent";
|
|
173
235
|
const _sI = "streamId";
|
|
174
236
|
const _sIe = "sessionId";
|
|
175
|
-
const
|
|
237
|
+
const _sLD = "silenceLevelDb";
|
|
238
|
+
const _sLDp = "speechLevelDb";
|
|
239
|
+
const _sM = "startMs";
|
|
240
|
+
const _sMi = "silenceMs";
|
|
241
|
+
const _sMt = "startMessage";
|
|
176
242
|
const _sR = "sampleRate";
|
|
177
243
|
const _sSWE = "sessionStartedWebsocketEvent";
|
|
178
244
|
const _sT = "startTime";
|
|
@@ -180,12 +246,15 @@ const _sWC = "sayWebsocketCommand";
|
|
|
180
246
|
const _sWCt = "stopWebsocketCommand";
|
|
181
247
|
const _sa = "say";
|
|
182
248
|
const _se = "seq";
|
|
183
|
-
const _sp = "
|
|
249
|
+
const _sp = "speaking";
|
|
250
|
+
const _spe = "speech";
|
|
184
251
|
const _st = "streaming";
|
|
185
|
-
const _sta = "
|
|
186
|
-
const _star = "
|
|
252
|
+
const _sta = "started";
|
|
253
|
+
const _star = "start";
|
|
254
|
+
const _sto = "stop";
|
|
187
255
|
const _t = "type";
|
|
188
256
|
const _tCI = "toolCallId";
|
|
257
|
+
const _tE = "turnEnd";
|
|
189
258
|
const _tI = "traceId";
|
|
190
259
|
const _tN = "toolName";
|
|
191
260
|
const _tWC = "transferWebsocketCommand";
|
|
@@ -194,11 +263,15 @@ const _te = "text";
|
|
|
194
263
|
const _ti = "time";
|
|
195
264
|
const _to = "to";
|
|
196
265
|
const _too = "tool";
|
|
197
|
-
const _tr = "
|
|
198
|
-
const _tra = "
|
|
266
|
+
const _tr = "transcription";
|
|
267
|
+
const _tra = "transfer";
|
|
199
268
|
const _u = "uri";
|
|
200
269
|
const _v = "voices";
|
|
201
|
-
const
|
|
270
|
+
const _vD = "voiceDetection";
|
|
271
|
+
const _vDo = "volumeDb";
|
|
272
|
+
const _va = "vad";
|
|
273
|
+
const _var = "variables";
|
|
274
|
+
const _ve = "version";
|
|
202
275
|
const _vo = "voice";
|
|
203
276
|
const n0 = "smithy.framework";
|
|
204
277
|
const n1 = "wildix.wilma.voice";
|
|
@@ -286,14 +359,24 @@ export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
|
|
|
286
359
|
];
|
|
287
360
|
export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
|
|
288
361
|
0,
|
|
289
|
-
[_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE],
|
|
290
|
-
[() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$]
|
|
362
|
+
[_cP, _aWE, _tWE, _aTWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC, _cE, _me],
|
|
363
|
+
[() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => AgentTranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$, () => VoiceCallEvent$, () => MediaProtocolFrames$]
|
|
291
364
|
];
|
|
292
365
|
export var ErrorWebsocketEvent$ = [3, n1, _EWE,
|
|
293
366
|
0,
|
|
294
367
|
[_t, _ev],
|
|
295
368
|
[0, () => VoiceErrorEvent$], 2
|
|
296
369
|
];
|
|
370
|
+
export var GetVoiceDefaultsInput$ = [3, n1, _GVDI,
|
|
371
|
+
0,
|
|
372
|
+
[],
|
|
373
|
+
[]
|
|
374
|
+
];
|
|
375
|
+
export var GetVoiceDefaultsOutput$ = [3, n1, _GVDO,
|
|
376
|
+
0,
|
|
377
|
+
[_vD, _in, _tE],
|
|
378
|
+
[() => VoiceDetectionDefaults$, () => VoiceInterruptionDefaults$, () => VoiceTurnEndDefaults$], 3
|
|
379
|
+
];
|
|
297
380
|
export var HangupCommandData$ = [3, n1, _HCD,
|
|
298
381
|
0,
|
|
299
382
|
[_t, _r],
|
|
@@ -324,9 +407,134 @@ export var ListVoicesOutput$ = [3, n1, _LVO,
|
|
|
324
407
|
[_v],
|
|
325
408
|
[() => VoiceList], 1
|
|
326
409
|
];
|
|
410
|
+
export var MediaAudioBeginFrame$ = [3, n1, _MABF,
|
|
411
|
+
0,
|
|
412
|
+
[_t, _rI, _sI, _sR],
|
|
413
|
+
[0, 0, 0, 1], 4
|
|
414
|
+
];
|
|
415
|
+
export var MediaAudioEndFrame$ = [3, n1, _MAEF,
|
|
416
|
+
0,
|
|
417
|
+
[_t, _sI],
|
|
418
|
+
[0, 0], 2
|
|
419
|
+
];
|
|
420
|
+
export var MediaAudioFormat$ = [3, n1, _MAF,
|
|
421
|
+
0,
|
|
422
|
+
[_en, _sR, _ch],
|
|
423
|
+
[0, 1, 1], 3
|
|
424
|
+
];
|
|
425
|
+
export var MediaCloudFrames$ = [3, n1, _MCF,
|
|
426
|
+
0,
|
|
427
|
+
[_sta, _tr, _aB, _au, _aE, _sto, _du, _re, _l, _tra, _h, _e, _fi],
|
|
428
|
+
[() => MediaStartedFrame$, () => MediaTranscriptionFrame$, () => MediaAudioBeginFrame$, 21, () => MediaAudioEndFrame$, () => MediaStopFrame$, () => MediaDuckFrame$, () => MediaRestoreFrame$, () => MediaLanguageFrame$, () => MediaTransferFrame$, () => MediaHangupFrame$, () => MediaErrorFrame$, () => MediaFinishedFrame$]
|
|
429
|
+
];
|
|
430
|
+
export var MediaDtmfFrame$ = [3, n1, _MDF,
|
|
431
|
+
0,
|
|
432
|
+
[_t, _i, _di],
|
|
433
|
+
[0, 0, 0], 3
|
|
434
|
+
];
|
|
435
|
+
export var MediaDuckFrame$ = [3, n1, _MDFe,
|
|
436
|
+
0,
|
|
437
|
+
[_t, _rI, _vDo, _rM],
|
|
438
|
+
[0, 0, 1, 1], 4
|
|
439
|
+
];
|
|
440
|
+
export var MediaErrorFrame$ = [3, n1, _MEF,
|
|
441
|
+
0,
|
|
442
|
+
[_t, _cod, _ret, _m],
|
|
443
|
+
[0, 0, 2, 0], 4
|
|
444
|
+
];
|
|
445
|
+
export var MediaFinishedFrame$ = [3, n1, _MFF,
|
|
446
|
+
0,
|
|
447
|
+
[_t],
|
|
448
|
+
[0], 1
|
|
449
|
+
];
|
|
450
|
+
export var MediaFinishFrame$ = [3, n1, _MFFe,
|
|
451
|
+
0,
|
|
452
|
+
[_t, _r],
|
|
453
|
+
[0, 0], 2
|
|
454
|
+
];
|
|
455
|
+
export var MediaHangupFrame$ = [3, n1, _MHF,
|
|
456
|
+
0,
|
|
457
|
+
[_t],
|
|
458
|
+
[0], 1
|
|
459
|
+
];
|
|
460
|
+
export var MediaLanguageFrame$ = [3, n1, _MLF,
|
|
461
|
+
0,
|
|
462
|
+
[_t, _l],
|
|
463
|
+
[0, 0], 2
|
|
464
|
+
];
|
|
465
|
+
export var MediaPbxFrames$ = [3, n1, _MPF,
|
|
466
|
+
0,
|
|
467
|
+
[_star, _au, _va, _dt, _pl, _fin],
|
|
468
|
+
[() => MediaStartFrame$, 21, () => MediaVadFrame$, () => MediaDtmfFrame$, () => MediaPlaybackFrame$, () => MediaFinishFrame$]
|
|
469
|
+
];
|
|
470
|
+
export var MediaPlaybackFrame$ = [3, n1, _MPFe,
|
|
471
|
+
0,
|
|
472
|
+
[_t, _rI, _sI, _ev, _aM, _pM, _ca],
|
|
473
|
+
[0, 0, 0, 0, 1, 1, 0], 5
|
|
474
|
+
];
|
|
475
|
+
export var MediaProtocolFrames$ = [3, n1, _MPFed,
|
|
476
|
+
0,
|
|
477
|
+
[_pb, _cl],
|
|
478
|
+
[() => MediaPbxFrames$, () => MediaCloudFrames$]
|
|
479
|
+
];
|
|
480
|
+
export var MediaRestoreFrame$ = [3, n1, _MRF,
|
|
481
|
+
0,
|
|
482
|
+
[_t, _rI, _rM],
|
|
483
|
+
[0, 0, 1], 3
|
|
484
|
+
];
|
|
485
|
+
export var MediaStartAgent$ = [3, n1, _MSA,
|
|
486
|
+
0,
|
|
487
|
+
[_i, _dr, _ve],
|
|
488
|
+
[0, 2, 1], 1
|
|
489
|
+
];
|
|
490
|
+
export var MediaStartCaller$ = [3, n1, _MSC,
|
|
491
|
+
0,
|
|
492
|
+
[_n, _nu, _em, _comp],
|
|
493
|
+
[0, 0, 0, 0]
|
|
494
|
+
];
|
|
495
|
+
export var MediaStartedAgent$ = [3, n1, _MSAe,
|
|
496
|
+
0,
|
|
497
|
+
[_n],
|
|
498
|
+
[0], 1
|
|
499
|
+
];
|
|
500
|
+
export var MediaStartedFrame$ = [3, n1, _MSF,
|
|
501
|
+
0,
|
|
502
|
+
[_t, _sI, _ag, _gI, _bS, _vD],
|
|
503
|
+
[0, 0, () => MediaStartedAgent$, 0, 0, () => MediaVoiceDetection$], 2
|
|
504
|
+
];
|
|
505
|
+
export var MediaStartFrame$ = [3, n1, _MSFe,
|
|
506
|
+
0,
|
|
507
|
+
[_t, _pu, _cI, _fI, _sIe, _res, _rAM, _au, _cal, _ag, _la, _pL, _aD, _dN, _var],
|
|
508
|
+
[0, 0, 0, 1, 0, 2, 1, () => MediaAudioFormat$, () => MediaStartCaller$, () => MediaStartAgent$, 64 | 0, 0, 2, 0, 0], 9
|
|
509
|
+
];
|
|
510
|
+
export var MediaStopFrame$ = [3, n1, _MSFed,
|
|
511
|
+
0,
|
|
512
|
+
[_t],
|
|
513
|
+
[0], 1
|
|
514
|
+
];
|
|
515
|
+
export var MediaTranscriptionFrame$ = [3, n1, _MTF,
|
|
516
|
+
0,
|
|
517
|
+
[_t, _pa, _i, _f, _te, _sM, _eM, _l, _co],
|
|
518
|
+
[0, 0, 0, 2, 0, 1, 1, 0, 1], 8
|
|
519
|
+
];
|
|
520
|
+
export var MediaTransferFrame$ = [3, n1, _MTFe,
|
|
521
|
+
0,
|
|
522
|
+
[_t, _con, _ex],
|
|
523
|
+
[0, 0, 0], 3
|
|
524
|
+
];
|
|
525
|
+
export var MediaVadFrame$ = [3, n1, _MVF,
|
|
526
|
+
0,
|
|
527
|
+
[_t, _pa, _sp, _eD, _aM],
|
|
528
|
+
[0, 0, 2, 1, 1], 5
|
|
529
|
+
];
|
|
530
|
+
export var MediaVoiceDetection$ = [3, n1, _MVD,
|
|
531
|
+
0,
|
|
532
|
+
[_sMi, _sLD, _sLDp],
|
|
533
|
+
[1, 1, 1], 3
|
|
534
|
+
];
|
|
327
535
|
export var PlaybackEvent$ = [3, n1, _PE,
|
|
328
536
|
0,
|
|
329
|
-
[_t, _rI, _te,
|
|
537
|
+
[_t, _rI, _te, _compl, _sT, _eT],
|
|
330
538
|
[0, 0, 0, 2, 1, 1], 5
|
|
331
539
|
];
|
|
332
540
|
export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
|
|
@@ -361,7 +569,7 @@ export var SayCommandAudioOptions$ = [3, n1, _SCAO,
|
|
|
361
569
|
];
|
|
362
570
|
export var SayCommandData$ = [3, n1, _SCD,
|
|
363
571
|
0,
|
|
364
|
-
[_te, _rI, _t,
|
|
572
|
+
[_te, _rI, _t, _int, _vo, _au],
|
|
365
573
|
[0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
|
|
366
574
|
];
|
|
367
575
|
export var SayWebsocketCommand$ = [3, n1, _SWC,
|
|
@@ -391,7 +599,7 @@ export var SendPlayOutput$ = [3, n1, _SPO,
|
|
|
391
599
|
];
|
|
392
600
|
export var SendSayInput$ = [3, n1, _SSI,
|
|
393
601
|
0,
|
|
394
|
-
[_te, _rI, _sIe,
|
|
602
|
+
[_te, _rI, _sIe, _int, _vo, _au],
|
|
395
603
|
[0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
|
|
396
604
|
];
|
|
397
605
|
export var SendSayOutput$ = [3, n1, _SSO,
|
|
@@ -431,7 +639,7 @@ export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
|
|
|
431
639
|
];
|
|
432
640
|
export var SessionStartedEvent$ = [3, n1, _SSE,
|
|
433
641
|
0,
|
|
434
|
-
[_t, _ti, _sIe, _aI, _aV, _tI, _aN,
|
|
642
|
+
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _cat, _gI, _spe, _bS, _iA, _oA],
|
|
435
643
|
[0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
|
|
436
644
|
];
|
|
437
645
|
export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
|
|
@@ -451,8 +659,8 @@ export var StopWebsocketCommand$ = [3, n1, _SWCt,
|
|
|
451
659
|
];
|
|
452
660
|
export var StreamCallEventsInput$ = [3, n1, _SCEI,
|
|
453
661
|
0,
|
|
454
|
-
[_cI,
|
|
455
|
-
[[0, 1], [0, { [_hQ]:
|
|
662
|
+
[_cI, _comp],
|
|
663
|
+
[[0, 1], [0, { [_hQ]: _comp }]], 1
|
|
456
664
|
];
|
|
457
665
|
export var StreamCallEventsOutput$ = [3, n1, _SCEO,
|
|
458
666
|
0,
|
|
@@ -491,7 +699,7 @@ export var TransferWebsocketCommand$ = [3, n1, _TWC,
|
|
|
491
699
|
];
|
|
492
700
|
export var Voice$ = [3, n1, _V,
|
|
493
701
|
0,
|
|
494
|
-
[_u, _n,
|
|
702
|
+
[_u, _n, _met],
|
|
495
703
|
[0, 0, 15], 2
|
|
496
704
|
];
|
|
497
705
|
export var VoiceAudioFormat$ = [3, n1, _VAF,
|
|
@@ -504,11 +712,6 @@ export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
|
|
|
504
712
|
[_i, _te, _f, _l, _ti],
|
|
505
713
|
[0, 0, 2, 0, 1], 3
|
|
506
714
|
];
|
|
507
|
-
export var VoiceCallBackendEvent$ = [3, n1, _VCBE,
|
|
508
|
-
0,
|
|
509
|
-
[_tr, _ev, _de, _sta, _dM, _e],
|
|
510
|
-
[0, 0, 2, 1, 1, 0], 3
|
|
511
|
-
];
|
|
512
715
|
export var VoiceCallEndedEvent$ = [3, n1, _VCEE,
|
|
513
716
|
0,
|
|
514
717
|
[_sIe, _r],
|
|
@@ -526,7 +729,7 @@ export var VoiceCallLanguageEvent$ = [3, n1, _VCLE,
|
|
|
526
729
|
];
|
|
527
730
|
export var VoiceCallPlaybackEvent$ = [3, n1, _VCPE,
|
|
528
731
|
0,
|
|
529
|
-
[_rI,
|
|
732
|
+
[_rI, _compl],
|
|
530
733
|
[0, 2], 2
|
|
531
734
|
];
|
|
532
735
|
export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
|
|
@@ -536,17 +739,17 @@ export var VoiceCallReplyEvent$ = [3, n1, _VCRE,
|
|
|
536
739
|
];
|
|
537
740
|
export var VoiceCallSayEvent$ = [3, n1, _VCSE,
|
|
538
741
|
0,
|
|
539
|
-
[_rI, _te,
|
|
742
|
+
[_rI, _te, _int],
|
|
540
743
|
[0, 0, 2], 3
|
|
541
744
|
];
|
|
542
745
|
export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
|
|
543
746
|
0,
|
|
544
|
-
[_sIe, _aI, _tI, _aN, _aV,
|
|
747
|
+
[_sIe, _aI, _tI, _aN, _aV, _aDg, _l],
|
|
545
748
|
[0, 0, 0, 0, 1, 2, 0], 2
|
|
546
749
|
];
|
|
547
750
|
export var VoiceCallToolEvent$ = [3, n1, _VCTE,
|
|
548
751
|
0,
|
|
549
|
-
[_tCI, _tN, _ph,
|
|
752
|
+
[_tCI, _tN, _ph, _sMt],
|
|
550
753
|
[0, 0, 0, 0], 3
|
|
551
754
|
];
|
|
552
755
|
export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
@@ -556,55 +759,74 @@ export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
|
556
759
|
];
|
|
557
760
|
export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
558
761
|
0,
|
|
559
|
-
[_sIe, _aI, _pV, _aV,
|
|
762
|
+
[_sIe, _aI, _pV, _aV, _aDg, _cI, _fI, _dN, _l, _cN, _cNa, _cEa, _cC, _vo, _iM, _var, _iMn, _iA, _oA],
|
|
560
763
|
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
561
764
|
];
|
|
765
|
+
export var VoiceDetectionDefaults$ = [3, n1, _VDD,
|
|
766
|
+
0,
|
|
767
|
+
[_sMi, _sLD, _sLDp],
|
|
768
|
+
[1, 1, 1], 3
|
|
769
|
+
];
|
|
562
770
|
export var VoiceErrorEvent$ = [3, n1, _VEE,
|
|
563
771
|
0,
|
|
564
772
|
[_t, _cod, _m, _ti],
|
|
565
773
|
[0, 0, 0, 1], 4
|
|
566
774
|
];
|
|
775
|
+
export var VoiceInterruptionDefaults$ = [3, n1, _VID,
|
|
776
|
+
0,
|
|
777
|
+
[_mW, _mC, _dAM, _dVD, _rAMe],
|
|
778
|
+
[1, 1, 1, 1, 1], 5
|
|
779
|
+
];
|
|
567
780
|
export var VoiceSpeechPayload$ = [3, n1, _VSP,
|
|
568
781
|
0,
|
|
569
|
-
[_eng, _la, _pL,
|
|
782
|
+
[_eng, _la, _pL, _aD],
|
|
570
783
|
[0, 64 | 0, 0, 2], 4
|
|
571
784
|
];
|
|
785
|
+
export var VoiceTurnEndDefaults$ = [3, n1, _VTED,
|
|
786
|
+
0,
|
|
787
|
+
[_hM],
|
|
788
|
+
[1], 1
|
|
789
|
+
];
|
|
572
790
|
var LanguageCodeList = 64 | 0;
|
|
573
791
|
var VoicePronunciationList = [1, n2, _VPL,
|
|
574
792
|
0, () => VoicePronunciation$
|
|
575
793
|
];
|
|
794
|
+
var MediaStartLanguageList = 64 | 0;
|
|
576
795
|
var VoiceList = [1, n1, _VL,
|
|
577
796
|
0, () => Voice$
|
|
578
797
|
];
|
|
579
798
|
export var VoiceCallEvent$ = [4, n1, _VCE,
|
|
580
799
|
0,
|
|
581
|
-
[
|
|
582
|
-
[() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () =>
|
|
800
|
+
[_sta, _tr, _aT, _rep, _sa, _pl, _inte, _l, _too, _end],
|
|
801
|
+
[() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
|
|
583
802
|
];
|
|
584
803
|
export var DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
585
|
-
{ [
|
|
804
|
+
{ [_ht]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
|
|
805
|
+
];
|
|
806
|
+
export var GetVoiceDefaults$ = [9, n1, _GVD,
|
|
807
|
+
{ [_ht]: ["GET", "/v2/voice/defaults", 200] }, () => GetVoiceDefaultsInput$, () => GetVoiceDefaultsOutput$
|
|
586
808
|
];
|
|
587
809
|
export var ListVoices$ = [9, n1, _LV,
|
|
588
|
-
{ [
|
|
810
|
+
{ [_ht]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
|
|
589
811
|
];
|
|
590
812
|
export var SendHangup$ = [9, n1, _SH,
|
|
591
|
-
{ [
|
|
813
|
+
{ [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
|
|
592
814
|
];
|
|
593
815
|
export var SendPlay$ = [9, n1, _SP,
|
|
594
|
-
{ [
|
|
816
|
+
{ [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
|
|
595
817
|
];
|
|
596
818
|
export var SendSay$ = [9, n1, _SS,
|
|
597
|
-
{ [
|
|
819
|
+
{ [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
|
|
598
820
|
];
|
|
599
821
|
export var SendStop$ = [9, n1, _SSe,
|
|
600
|
-
{ [
|
|
822
|
+
{ [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
|
|
601
823
|
];
|
|
602
824
|
export var SendTransfer$ = [9, n1, _ST,
|
|
603
|
-
{ [
|
|
825
|
+
{ [_ht]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
|
|
604
826
|
];
|
|
605
827
|
export var StreamCallEvents$ = [9, n1, _SCE,
|
|
606
|
-
{ [
|
|
828
|
+
{ [_ht]: ["GET", "/v2/voice/calls/{callId}/events", 200] }, () => StreamCallEventsInput$, () => StreamCallEventsOutput$
|
|
607
829
|
];
|
|
608
830
|
export var TextToSpeech$ = [9, n1, _TTS,
|
|
609
|
-
{ [
|
|
831
|
+
{ [_ht]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
|
|
610
832
|
];
|