@wildix/wim-voicebots-client 1.0.21 → 1.0.23
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/VoiceBots.js +4 -0
- package/dist-cjs/VoiceBotsClient.js +4 -5
- package/dist-cjs/commands/SendPlayCommand.js +21 -0
- package/dist-cjs/commands/SendStopCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +28 -22
- package/dist-cjs/protocols/Aws_restJson1.js +104 -85
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/VoiceBots.js +4 -0
- package/dist-es/VoiceBotsClient.js +4 -5
- package/dist-es/commands/SendPlayCommand.js +17 -0
- package/dist-es/commands/SendStopCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +16 -10
- package/dist-es/protocols/Aws_restJson1.js +68 -53
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/VoiceBots.d.ts +14 -0
- package/dist-types/VoiceBotsClient.d.ts +5 -3
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/DeleteVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +78 -22
- package/dist-types/commands/GetTraceCommand.d.ts +33 -8
- package/dist-types/commands/GetVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/ListTracesCommand.d.ts +12 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +12 -0
- package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +12 -0
- package/dist-types/commands/SendHangupCommand.d.ts +12 -0
- package/dist-types/commands/SendPlayCommand.d.ts +79 -0
- package/dist-types/commands/SendSayCommand.d.ts +16 -0
- package/dist-types/commands/SendStopCommand.d.ts +76 -0
- package/dist-types/commands/SendTransferCommand.d.ts +12 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +212 -109
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +3 -2
- package/package.json +37 -33
|
@@ -41,7 +41,7 @@ declare const DescribeEventCommand_base: {
|
|
|
41
41
|
* // TranscriptionWebsocketEvent: { // TranscriptionWebsocketEvent
|
|
42
42
|
* // type: "STRING_VALUE", // required
|
|
43
43
|
* // event: { // TranscriptionEvent
|
|
44
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
44
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
45
45
|
* // id: "STRING_VALUE", // required
|
|
46
46
|
* // text: "STRING_VALUE", // required
|
|
47
47
|
* // final: true || false,
|
|
@@ -51,7 +51,7 @@ declare const DescribeEventCommand_base: {
|
|
|
51
51
|
* // ReplyWebsocketEvent: { // ReplyWebsocketEvent
|
|
52
52
|
* // type: "STRING_VALUE", // required
|
|
53
53
|
* // event: { // ReplyEvent
|
|
54
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
54
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
55
55
|
* // id: "STRING_VALUE", // required
|
|
56
56
|
* // text: "STRING_VALUE", // required
|
|
57
57
|
* // startTime: Number("long"), // required
|
|
@@ -61,7 +61,7 @@ declare const DescribeEventCommand_base: {
|
|
|
61
61
|
* // PlaybackWebsocketEvent: { // PlaybackWebsocketEvent
|
|
62
62
|
* // type: "STRING_VALUE", // required
|
|
63
63
|
* // event: { // PlaybackEvent
|
|
64
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
64
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
65
65
|
* // replyId: "STRING_VALUE", // required
|
|
66
66
|
* // text: "STRING_VALUE", // required
|
|
67
67
|
* // complete: true || false, // required
|
|
@@ -72,7 +72,7 @@ declare const DescribeEventCommand_base: {
|
|
|
72
72
|
* // InterruptionWebsocketEvent: { // InterruptionWebsocketEvent
|
|
73
73
|
* // type: "STRING_VALUE", // required
|
|
74
74
|
* // event: { // InterruptionEvent
|
|
75
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
75
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
76
76
|
* // replyId: "STRING_VALUE", // required
|
|
77
77
|
* // playedText: "STRING_VALUE", // required
|
|
78
78
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -82,7 +82,7 @@ declare const DescribeEventCommand_base: {
|
|
|
82
82
|
* // CompleteWebsocketEvent: { // CompleteWebsocketEvent
|
|
83
83
|
* // type: "STRING_VALUE", // required
|
|
84
84
|
* // event: { // CompleteEvent
|
|
85
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
85
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
86
86
|
* // reason: "STRING_VALUE", // required
|
|
87
87
|
* // time: Number("long"), // required
|
|
88
88
|
* // },
|
|
@@ -93,14 +93,33 @@ declare const DescribeEventCommand_base: {
|
|
|
93
93
|
* // text: "STRING_VALUE", // required
|
|
94
94
|
* // replyId: "STRING_VALUE", // required
|
|
95
95
|
* // interruptible: true || false,
|
|
96
|
-
* //
|
|
96
|
+
* // audio: { // SayCommandAudioOptions
|
|
97
|
+
* // streamId: "STRING_VALUE", // required
|
|
98
|
+
* // sampleRate: Number("int"), // required
|
|
99
|
+
* // },
|
|
100
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
101
|
+
* // },
|
|
102
|
+
* // },
|
|
103
|
+
* // PlayWebsocketCommand: { // PlayWebsocketCommand
|
|
104
|
+
* // type: "STRING_VALUE", // required
|
|
105
|
+
* // command: { // PlayWebsocketCommandData
|
|
106
|
+
* // replyId: "STRING_VALUE", // required
|
|
107
|
+
* // streamId: "STRING_VALUE", // required
|
|
108
|
+
* // data: "STRING_VALUE", // required
|
|
109
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
110
|
+
* // },
|
|
111
|
+
* // },
|
|
112
|
+
* // StopWebsocketCommand: { // StopWebsocketCommand
|
|
113
|
+
* // type: "STRING_VALUE", // required
|
|
114
|
+
* // command: { // StopWebsocketCommandData
|
|
115
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
97
116
|
* // },
|
|
98
117
|
* // },
|
|
99
118
|
* // HangupWebsocketCommand: { // HangupWebsocketCommand
|
|
100
119
|
* // type: "STRING_VALUE", // required
|
|
101
120
|
* // command: { // HangupWebsocketCommandData
|
|
102
121
|
* // reason: "STRING_VALUE",
|
|
103
|
-
* // type: "say" || "hangup" || "transfer", // required
|
|
122
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
104
123
|
* // },
|
|
105
124
|
* // },
|
|
106
125
|
* // TransferWebsocketCommand: { // TransferWebsocketCommand
|
|
@@ -108,7 +127,7 @@ declare const DescribeEventCommand_base: {
|
|
|
108
127
|
* // command: { // TransferWebsocketCommandData
|
|
109
128
|
* // context: "STRING_VALUE", // required
|
|
110
129
|
* // extension: "STRING_VALUE", // required
|
|
111
|
-
* // type: "say" || "hangup" || "transfer", // required
|
|
130
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
112
131
|
* // },
|
|
113
132
|
* // },
|
|
114
133
|
* // SessionStartedWebhookEvent: { // SessionStartedWebhookEvent
|
|
@@ -117,7 +136,7 @@ declare const DescribeEventCommand_base: {
|
|
|
117
136
|
* // callId: "STRING_VALUE", // required
|
|
118
137
|
* // flowIndex: Number("int"), // required
|
|
119
138
|
* // event: { // SessionStartedEvent
|
|
120
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
139
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
121
140
|
* // language: "STRING_VALUE", // required
|
|
122
141
|
* // time: Number("long"), // required
|
|
123
142
|
* // },
|
|
@@ -128,7 +147,7 @@ declare const DescribeEventCommand_base: {
|
|
|
128
147
|
* // callId: "STRING_VALUE", // required
|
|
129
148
|
* // flowIndex: Number("int"), // required
|
|
130
149
|
* // event: { // SessionEndedEvent
|
|
131
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
150
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
132
151
|
* // error: "STRING_VALUE",
|
|
133
152
|
* // time: Number("long"), // required
|
|
134
153
|
* // },
|
|
@@ -139,20 +158,30 @@ declare const DescribeEventCommand_base: {
|
|
|
139
158
|
* // callId: "STRING_VALUE", // required
|
|
140
159
|
* // flowIndex: Number("int"), // required
|
|
141
160
|
* // event: {
|
|
142
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
161
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
143
162
|
* // id: "STRING_VALUE", // required
|
|
144
163
|
* // text: "STRING_VALUE", // required
|
|
145
164
|
* // final: true || false,
|
|
146
165
|
* // time: Number("long"), // required
|
|
147
166
|
* // },
|
|
148
167
|
* // },
|
|
168
|
+
* // AudioWebhookEvent: { // AudioWebhookEvent
|
|
169
|
+
* // sessionId: "STRING_VALUE", // required
|
|
170
|
+
* // botId: "STRING_VALUE", // required
|
|
171
|
+
* // callId: "STRING_VALUE", // required
|
|
172
|
+
* // flowIndex: Number("int"), // required
|
|
173
|
+
* // event: { // AudioEvent
|
|
174
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
175
|
+
* // data: "STRING_VALUE", // required
|
|
176
|
+
* // },
|
|
177
|
+
* // },
|
|
149
178
|
* // ReplyWebhookEvent: { // ReplyWebhookEvent
|
|
150
179
|
* // sessionId: "STRING_VALUE", // required
|
|
151
180
|
* // botId: "STRING_VALUE", // required
|
|
152
181
|
* // callId: "STRING_VALUE", // required
|
|
153
182
|
* // flowIndex: Number("int"), // required
|
|
154
183
|
* // event: {
|
|
155
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
184
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
156
185
|
* // id: "STRING_VALUE", // required
|
|
157
186
|
* // text: "STRING_VALUE", // required
|
|
158
187
|
* // startTime: Number("long"), // required
|
|
@@ -165,7 +194,7 @@ declare const DescribeEventCommand_base: {
|
|
|
165
194
|
* // callId: "STRING_VALUE", // required
|
|
166
195
|
* // flowIndex: Number("int"), // required
|
|
167
196
|
* // event: {
|
|
168
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
197
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
169
198
|
* // replyId: "STRING_VALUE", // required
|
|
170
199
|
* // text: "STRING_VALUE", // required
|
|
171
200
|
* // complete: true || false, // required
|
|
@@ -179,7 +208,7 @@ declare const DescribeEventCommand_base: {
|
|
|
179
208
|
* // callId: "STRING_VALUE", // required
|
|
180
209
|
* // flowIndex: Number("int"), // required
|
|
181
210
|
* // event: {
|
|
182
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
211
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
183
212
|
* // replyId: "STRING_VALUE", // required
|
|
184
213
|
* // playedText: "STRING_VALUE", // required
|
|
185
214
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -191,6 +220,11 @@ declare const DescribeEventCommand_base: {
|
|
|
191
220
|
* // botId: "STRING_VALUE", // required
|
|
192
221
|
* // callId: "STRING_VALUE", // required
|
|
193
222
|
* // flowIndex: Number("int"), // required
|
|
223
|
+
* // event: {
|
|
224
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
225
|
+
* // reason: "STRING_VALUE", // required
|
|
226
|
+
* // time: Number("long"), // required
|
|
227
|
+
* // },
|
|
194
228
|
* // },
|
|
195
229
|
* // PubSubBroadcastWebsocketEvent: { // PubSubBroadcastWebsocketEvent
|
|
196
230
|
* // event: "STRING_VALUE", // required
|
|
@@ -227,7 +261,7 @@ declare const DescribeEventCommand_base: {
|
|
|
227
261
|
* // replyEvent: {
|
|
228
262
|
* // type: "STRING_VALUE", // required
|
|
229
263
|
* // event: {
|
|
230
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
264
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
231
265
|
* // id: "STRING_VALUE", // required
|
|
232
266
|
* // text: "STRING_VALUE", // required
|
|
233
267
|
* // startTime: Number("long"), // required
|
|
@@ -237,7 +271,7 @@ declare const DescribeEventCommand_base: {
|
|
|
237
271
|
* // completeEvent: {
|
|
238
272
|
* // type: "STRING_VALUE", // required
|
|
239
273
|
* // event: {
|
|
240
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
274
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
241
275
|
* // reason: "STRING_VALUE", // required
|
|
242
276
|
* // time: Number("long"), // required
|
|
243
277
|
* // },
|
|
@@ -245,7 +279,7 @@ declare const DescribeEventCommand_base: {
|
|
|
245
279
|
* // interruptionEvent: {
|
|
246
280
|
* // type: "STRING_VALUE", // required
|
|
247
281
|
* // event: {
|
|
248
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
282
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
249
283
|
* // replyId: "STRING_VALUE", // required
|
|
250
284
|
* // playedText: "STRING_VALUE", // required
|
|
251
285
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -255,7 +289,7 @@ declare const DescribeEventCommand_base: {
|
|
|
255
289
|
* // playbackEvent: {
|
|
256
290
|
* // type: "STRING_VALUE", // required
|
|
257
291
|
* // event: {
|
|
258
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
292
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
259
293
|
* // replyId: "STRING_VALUE", // required
|
|
260
294
|
* // text: "STRING_VALUE", // required
|
|
261
295
|
* // complete: true || false, // required
|
|
@@ -266,7 +300,7 @@ declare const DescribeEventCommand_base: {
|
|
|
266
300
|
* // transcriptionEvent: {
|
|
267
301
|
* // type: "STRING_VALUE", // required
|
|
268
302
|
* // event: {
|
|
269
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
303
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
270
304
|
* // id: "STRING_VALUE", // required
|
|
271
305
|
* // text: "STRING_VALUE", // required
|
|
272
306
|
* // final: true || false,
|
|
@@ -279,14 +313,18 @@ declare const DescribeEventCommand_base: {
|
|
|
279
313
|
* // text: "STRING_VALUE", // required
|
|
280
314
|
* // replyId: "STRING_VALUE", // required
|
|
281
315
|
* // interruptible: true || false,
|
|
282
|
-
* //
|
|
316
|
+
* // audio: {
|
|
317
|
+
* // streamId: "STRING_VALUE", // required
|
|
318
|
+
* // sampleRate: Number("int"), // required
|
|
319
|
+
* // },
|
|
320
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
283
321
|
* // },
|
|
284
322
|
* // },
|
|
285
323
|
* // hangupCommand: {
|
|
286
324
|
* // type: "STRING_VALUE", // required
|
|
287
325
|
* // command: {
|
|
288
326
|
* // reason: "STRING_VALUE",
|
|
289
|
-
* // type: "say" || "hangup" || "transfer", // required
|
|
327
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
290
328
|
* // },
|
|
291
329
|
* // },
|
|
292
330
|
* // transferCommand: {
|
|
@@ -294,7 +332,7 @@ declare const DescribeEventCommand_base: {
|
|
|
294
332
|
* // command: {
|
|
295
333
|
* // context: "STRING_VALUE", // required
|
|
296
334
|
* // extension: "STRING_VALUE", // required
|
|
297
|
-
* // type: "say" || "hangup" || "transfer", // required
|
|
335
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
298
336
|
* // },
|
|
299
337
|
* // },
|
|
300
338
|
* // silenceTimeoutTask: { // TraceSilenceTimeoutTaskTrigger
|
|
@@ -313,17 +351,23 @@ declare const DescribeEventCommand_base: {
|
|
|
313
351
|
* // },
|
|
314
352
|
* // start: Number("double"), // required
|
|
315
353
|
* // duration: Number("int"),
|
|
354
|
+
* // timings: { // TraceTimings
|
|
355
|
+
* // "<keys>": Number("double"),
|
|
356
|
+
* // },
|
|
316
357
|
* // usage: { // TraceUsage
|
|
317
358
|
* // generation: { // TraceGenerationUsage
|
|
318
359
|
* // tokens: Number("int"),
|
|
319
360
|
* // outputTokens: Number("int"),
|
|
320
361
|
* // inputTokens: Number("int"),
|
|
362
|
+
* // category: "STRING_VALUE",
|
|
321
363
|
* // },
|
|
322
364
|
* // transcribe: { // TraceTranscribeUsage
|
|
323
365
|
* // seconds: Number("int"),
|
|
366
|
+
* // category: "STRING_VALUE",
|
|
324
367
|
* // },
|
|
325
368
|
* // playback: { // TracePlaybackUsage
|
|
326
369
|
* // chars: Number("int"),
|
|
370
|
+
* // category: "STRING_VALUE",
|
|
327
371
|
* // },
|
|
328
372
|
* // },
|
|
329
373
|
* // },
|
|
@@ -494,7 +538,19 @@ declare const DescribeEventCommand_base: {
|
|
|
494
538
|
* @throws {@link VoiceBotsServiceException}
|
|
495
539
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
496
540
|
*
|
|
541
|
+
*
|
|
497
542
|
* @public
|
|
498
543
|
*/
|
|
499
544
|
export declare class DescribeEventCommand extends DescribeEventCommand_base {
|
|
545
|
+
/** @internal type navigation helper, not in runtime. */
|
|
546
|
+
protected static __types: {
|
|
547
|
+
api: {
|
|
548
|
+
input: {};
|
|
549
|
+
output: DescribeEventOutput;
|
|
550
|
+
};
|
|
551
|
+
sdk: {
|
|
552
|
+
input: DescribeEventCommandInput;
|
|
553
|
+
output: DescribeEventCommandOutput;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
500
556
|
}
|
|
@@ -73,7 +73,7 @@ declare const GetTraceCommand_base: {
|
|
|
73
73
|
* // replyEvent: { // ReplyWebsocketEvent
|
|
74
74
|
* // type: "STRING_VALUE", // required
|
|
75
75
|
* // event: { // ReplyEvent
|
|
76
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
76
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
77
77
|
* // id: "STRING_VALUE", // required
|
|
78
78
|
* // text: "STRING_VALUE", // required
|
|
79
79
|
* // startTime: Number("long"), // required
|
|
@@ -83,7 +83,7 @@ declare const GetTraceCommand_base: {
|
|
|
83
83
|
* // completeEvent: { // CompleteWebsocketEvent
|
|
84
84
|
* // type: "STRING_VALUE", // required
|
|
85
85
|
* // event: { // CompleteEvent
|
|
86
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
86
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
87
87
|
* // reason: "STRING_VALUE", // required
|
|
88
88
|
* // time: Number("long"), // required
|
|
89
89
|
* // },
|
|
@@ -91,7 +91,7 @@ declare const GetTraceCommand_base: {
|
|
|
91
91
|
* // interruptionEvent: { // InterruptionWebsocketEvent
|
|
92
92
|
* // type: "STRING_VALUE", // required
|
|
93
93
|
* // event: { // InterruptionEvent
|
|
94
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
94
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
95
95
|
* // replyId: "STRING_VALUE", // required
|
|
96
96
|
* // playedText: "STRING_VALUE", // required
|
|
97
97
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -101,7 +101,7 @@ declare const GetTraceCommand_base: {
|
|
|
101
101
|
* // playbackEvent: { // PlaybackWebsocketEvent
|
|
102
102
|
* // type: "STRING_VALUE", // required
|
|
103
103
|
* // event: { // PlaybackEvent
|
|
104
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
104
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
105
105
|
* // replyId: "STRING_VALUE", // required
|
|
106
106
|
* // text: "STRING_VALUE", // required
|
|
107
107
|
* // complete: true || false, // required
|
|
@@ -112,7 +112,7 @@ declare const GetTraceCommand_base: {
|
|
|
112
112
|
* // transcriptionEvent: { // TranscriptionWebsocketEvent
|
|
113
113
|
* // type: "STRING_VALUE", // required
|
|
114
114
|
* // event: { // TranscriptionEvent
|
|
115
|
-
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
115
|
+
* // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
116
116
|
* // id: "STRING_VALUE", // required
|
|
117
117
|
* // text: "STRING_VALUE", // required
|
|
118
118
|
* // final: true || false,
|
|
@@ -125,14 +125,18 @@ declare const GetTraceCommand_base: {
|
|
|
125
125
|
* // text: "STRING_VALUE", // required
|
|
126
126
|
* // replyId: "STRING_VALUE", // required
|
|
127
127
|
* // interruptible: true || false,
|
|
128
|
-
* //
|
|
128
|
+
* // audio: { // SayCommandAudioOptions
|
|
129
|
+
* // streamId: "STRING_VALUE", // required
|
|
130
|
+
* // sampleRate: Number("int"), // required
|
|
131
|
+
* // },
|
|
132
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
129
133
|
* // },
|
|
130
134
|
* // },
|
|
131
135
|
* // hangupCommand: { // HangupWebsocketCommand
|
|
132
136
|
* // type: "STRING_VALUE", // required
|
|
133
137
|
* // command: { // HangupWebsocketCommandData
|
|
134
138
|
* // reason: "STRING_VALUE",
|
|
135
|
-
* // type: "say" || "hangup" || "transfer", // required
|
|
139
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
136
140
|
* // },
|
|
137
141
|
* // },
|
|
138
142
|
* // transferCommand: { // TransferWebsocketCommand
|
|
@@ -140,7 +144,7 @@ declare const GetTraceCommand_base: {
|
|
|
140
144
|
* // command: { // TransferWebsocketCommandData
|
|
141
145
|
* // context: "STRING_VALUE", // required
|
|
142
146
|
* // extension: "STRING_VALUE", // required
|
|
143
|
-
* // type: "say" || "hangup" || "transfer", // required
|
|
147
|
+
* // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
|
|
144
148
|
* // },
|
|
145
149
|
* // },
|
|
146
150
|
* // silenceTimeoutTask: { // TraceSilenceTimeoutTaskTrigger
|
|
@@ -159,17 +163,23 @@ declare const GetTraceCommand_base: {
|
|
|
159
163
|
* // },
|
|
160
164
|
* // start: Number("double"), // required
|
|
161
165
|
* // duration: Number("int"),
|
|
166
|
+
* // timings: { // TraceTimings
|
|
167
|
+
* // "<keys>": Number("double"),
|
|
168
|
+
* // },
|
|
162
169
|
* // usage: { // TraceUsage
|
|
163
170
|
* // generation: { // TraceGenerationUsage
|
|
164
171
|
* // tokens: Number("int"),
|
|
165
172
|
* // outputTokens: Number("int"),
|
|
166
173
|
* // inputTokens: Number("int"),
|
|
174
|
+
* // category: "STRING_VALUE",
|
|
167
175
|
* // },
|
|
168
176
|
* // transcribe: { // TraceTranscribeUsage
|
|
169
177
|
* // seconds: Number("int"),
|
|
178
|
+
* // category: "STRING_VALUE",
|
|
170
179
|
* // },
|
|
171
180
|
* // playback: { // TracePlaybackUsage
|
|
172
181
|
* // chars: Number("int"),
|
|
182
|
+
* // category: "STRING_VALUE",
|
|
173
183
|
* // },
|
|
174
184
|
* // },
|
|
175
185
|
* // },
|
|
@@ -312,12 +322,15 @@ declare const GetTraceCommand_base: {
|
|
|
312
322
|
* // tokens: Number("int"),
|
|
313
323
|
* // outputTokens: Number("int"),
|
|
314
324
|
* // inputTokens: Number("int"),
|
|
325
|
+
* // category: "STRING_VALUE",
|
|
315
326
|
* // },
|
|
316
327
|
* // transcribe: {
|
|
317
328
|
* // seconds: Number("int"),
|
|
329
|
+
* // category: "STRING_VALUE",
|
|
318
330
|
* // },
|
|
319
331
|
* // playback: {
|
|
320
332
|
* // chars: Number("int"),
|
|
333
|
+
* // category: "STRING_VALUE",
|
|
321
334
|
* // },
|
|
322
335
|
* // },
|
|
323
336
|
* // cost: Number("float"),
|
|
@@ -341,6 +354,18 @@ declare const GetTraceCommand_base: {
|
|
|
341
354
|
* @throws {@link VoiceBotsServiceException}
|
|
342
355
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
343
356
|
*
|
|
357
|
+
*
|
|
344
358
|
*/
|
|
345
359
|
export declare class GetTraceCommand extends GetTraceCommand_base {
|
|
360
|
+
/** @internal type navigation helper, not in runtime. */
|
|
361
|
+
protected static __types: {
|
|
362
|
+
api: {
|
|
363
|
+
input: GetTraceInput;
|
|
364
|
+
output: GetTraceOutput;
|
|
365
|
+
};
|
|
366
|
+
sdk: {
|
|
367
|
+
input: GetTraceCommandInput;
|
|
368
|
+
output: GetTraceCommandOutput;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
346
371
|
}
|
|
@@ -159,6 +159,18 @@ declare const GetVoiceBotCommand_base: {
|
|
|
159
159
|
* @throws {@link VoiceBotsServiceException}
|
|
160
160
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
161
161
|
*
|
|
162
|
+
*
|
|
162
163
|
*/
|
|
163
164
|
export declare class GetVoiceBotCommand extends GetVoiceBotCommand_base {
|
|
165
|
+
/** @internal type navigation helper, not in runtime. */
|
|
166
|
+
protected static __types: {
|
|
167
|
+
api: {
|
|
168
|
+
input: GetVoiceBotInput;
|
|
169
|
+
output: GetVoiceBotOutput;
|
|
170
|
+
};
|
|
171
|
+
sdk: {
|
|
172
|
+
input: GetVoiceBotCommandInput;
|
|
173
|
+
output: GetVoiceBotCommandOutput;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
164
176
|
}
|
|
@@ -75,6 +75,18 @@ declare const ListTracesCommand_base: {
|
|
|
75
75
|
* @throws {@link VoiceBotsServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
77
77
|
*
|
|
78
|
+
*
|
|
78
79
|
*/
|
|
79
80
|
export declare class ListTracesCommand extends ListTracesCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: ListTracesInput;
|
|
85
|
+
output: ListTracesOutput;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: ListTracesCommandInput;
|
|
89
|
+
output: ListTracesCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
80
92
|
}
|
|
@@ -158,6 +158,18 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
158
158
|
* @throws {@link VoiceBotsServiceException}
|
|
159
159
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
160
160
|
*
|
|
161
|
+
*
|
|
161
162
|
*/
|
|
162
163
|
export declare class ListVoiceBotsCommand extends ListVoiceBotsCommand_base {
|
|
164
|
+
/** @internal type navigation helper, not in runtime. */
|
|
165
|
+
protected static __types: {
|
|
166
|
+
api: {
|
|
167
|
+
input: ListVoiceBotsInput;
|
|
168
|
+
output: ListVoiceBotsOutput;
|
|
169
|
+
};
|
|
170
|
+
sdk: {
|
|
171
|
+
input: ListVoiceBotsCommandInput;
|
|
172
|
+
output: ListVoiceBotsCommandOutput;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
163
175
|
}
|
|
@@ -64,6 +64,18 @@ declare const ListVoiceBotsNamesCommand_base: {
|
|
|
64
64
|
* @throws {@link VoiceBotsServiceException}
|
|
65
65
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
66
66
|
*
|
|
67
|
+
*
|
|
67
68
|
*/
|
|
68
69
|
export declare class ListVoiceBotsNamesCommand extends ListVoiceBotsNamesCommand_base {
|
|
70
|
+
/** @internal type navigation helper, not in runtime. */
|
|
71
|
+
protected static __types: {
|
|
72
|
+
api: {
|
|
73
|
+
input: ListVoiceBotsNamesInput;
|
|
74
|
+
output: ListVoiceBotsNamesOutput;
|
|
75
|
+
};
|
|
76
|
+
sdk: {
|
|
77
|
+
input: ListVoiceBotsNamesCommandInput;
|
|
78
|
+
output: ListVoiceBotsNamesCommandOutput;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
69
81
|
}
|
|
@@ -59,7 +59,19 @@ declare const SendHangupCommand_base: {
|
|
|
59
59
|
* @throws {@link VoiceBotsServiceException}
|
|
60
60
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
61
61
|
*
|
|
62
|
+
*
|
|
62
63
|
* @public
|
|
63
64
|
*/
|
|
64
65
|
export declare class SendHangupCommand extends SendHangupCommand_base {
|
|
66
|
+
/** @internal type navigation helper, not in runtime. */
|
|
67
|
+
protected static __types: {
|
|
68
|
+
api: {
|
|
69
|
+
input: SendHangupInput;
|
|
70
|
+
output: {};
|
|
71
|
+
};
|
|
72
|
+
sdk: {
|
|
73
|
+
input: SendHangupCommandInput;
|
|
74
|
+
output: SendHangupCommandOutput;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
65
77
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { SendPlayInput, SendPlayOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendPlayCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendPlayCommandInput extends SendPlayInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendPlayCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendPlayCommandOutput extends SendPlayOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendPlayCommand_base: {
|
|
25
|
+
new (input: SendPlayCommandInput): import("@smithy/smithy-client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendPlayCommandInput): import("@smithy/smithy-client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Plays the specified audio chunk through the audio stream of the voice session.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { VoiceBotsClient, SendPlayCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
35
|
+
* // const { VoiceBotsClient, SendPlayCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
36
|
+
* const client = new VoiceBotsClient(config);
|
|
37
|
+
* const input = { // SendPlayInput
|
|
38
|
+
* replyId: "STRING_VALUE", // required
|
|
39
|
+
* streamId: "STRING_VALUE", // required
|
|
40
|
+
* data: "STRING_VALUE", // required
|
|
41
|
+
* sessionId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new SendPlayCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param SendPlayCommandInput - {@link SendPlayCommandInput}
|
|
50
|
+
* @returns {@link SendPlayCommandOutput}
|
|
51
|
+
* @see {@link SendPlayCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link SendPlayCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link VoiceSessionNotFoundException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ValidationException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link VoiceBotsServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare class SendPlayCommand extends SendPlayCommand_base {
|
|
68
|
+
/** @internal type navigation helper, not in runtime. */
|
|
69
|
+
protected static __types: {
|
|
70
|
+
api: {
|
|
71
|
+
input: SendPlayInput;
|
|
72
|
+
output: {};
|
|
73
|
+
};
|
|
74
|
+
sdk: {
|
|
75
|
+
input: SendPlayCommandInput;
|
|
76
|
+
output: SendPlayCommandOutput;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -38,6 +38,10 @@ declare const SendSayCommand_base: {
|
|
|
38
38
|
* text: "STRING_VALUE", // required
|
|
39
39
|
* replyId: "STRING_VALUE", // required
|
|
40
40
|
* interruptible: true || false,
|
|
41
|
+
* audio: { // SayCommandAudioOptions
|
|
42
|
+
* streamId: "STRING_VALUE", // required
|
|
43
|
+
* sampleRate: Number("int"), // required
|
|
44
|
+
* },
|
|
41
45
|
* sessionId: "STRING_VALUE", // required
|
|
42
46
|
* };
|
|
43
47
|
* const command = new SendSayCommand(input);
|
|
@@ -61,7 +65,19 @@ declare const SendSayCommand_base: {
|
|
|
61
65
|
* @throws {@link VoiceBotsServiceException}
|
|
62
66
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
63
67
|
*
|
|
68
|
+
*
|
|
64
69
|
* @public
|
|
65
70
|
*/
|
|
66
71
|
export declare class SendSayCommand extends SendSayCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: SendSayInput;
|
|
76
|
+
output: {};
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: SendSayCommandInput;
|
|
80
|
+
output: SendSayCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
67
83
|
}
|