@wildix/wim-voicebots-client 1.0.4 → 1.0.5
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/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +34 -9
- package/dist-types/models/models_0.d.ts +31 -0
- package/package.json +1 -1
|
@@ -222,6 +222,8 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
222
222
|
'HangupWebsocketCommand': smithy_client_1._json,
|
|
223
223
|
'InterruptionWebhookEvent': smithy_client_1._json,
|
|
224
224
|
'InterruptionWebsocketEvent': smithy_client_1._json,
|
|
225
|
+
'PlaybackWebhookEvent': smithy_client_1._json,
|
|
226
|
+
'PlaybackWebsocketEvent': smithy_client_1._json,
|
|
225
227
|
'ReplyWebhookEvent': smithy_client_1._json,
|
|
226
228
|
'ReplyWebsocketEvent': smithy_client_1._json,
|
|
227
229
|
'SayWebsocketCommand': smithy_client_1._json,
|
|
@@ -207,6 +207,8 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
207
207
|
'HangupWebsocketCommand': _json,
|
|
208
208
|
'InterruptionWebhookEvent': _json,
|
|
209
209
|
'InterruptionWebsocketEvent': _json,
|
|
210
|
+
'PlaybackWebhookEvent': _json,
|
|
211
|
+
'PlaybackWebsocketEvent': _json,
|
|
210
212
|
'ReplyWebhookEvent': _json,
|
|
211
213
|
'ReplyWebsocketEvent': _json,
|
|
212
214
|
'SayWebsocketCommand': _json,
|
|
@@ -42,7 +42,7 @@ declare const DescribeEventCommand_base: {
|
|
|
42
42
|
* // TranscriptionWebsocketEvent: { // TranscriptionWebsocketEvent
|
|
43
43
|
* // type: "STRING_VALUE", // required
|
|
44
44
|
* // event: { // TranscriptionEvent
|
|
45
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
45
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // text: "STRING_VALUE", // required
|
|
48
48
|
* // time: Number("long"), // required
|
|
@@ -51,17 +51,28 @@ declare const DescribeEventCommand_base: {
|
|
|
51
51
|
* // ReplyWebsocketEvent: { // ReplyWebsocketEvent
|
|
52
52
|
* // type: "STRING_VALUE", // required
|
|
53
53
|
* // event: { // ReplyEvent
|
|
54
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
54
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
55
55
|
* // id: "STRING_VALUE", // required
|
|
56
56
|
* // text: "STRING_VALUE", // required
|
|
57
57
|
* // startTime: Number("long"), // required
|
|
58
58
|
* // endTime: Number("long"), // required
|
|
59
59
|
* // },
|
|
60
60
|
* // },
|
|
61
|
+
* // PlaybackWebsocketEvent: { // PlaybackWebsocketEvent
|
|
62
|
+
* // type: "STRING_VALUE", // required
|
|
63
|
+
* // event: { // PlaybackEvent
|
|
64
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
65
|
+
* // replyId: "STRING_VALUE", // required
|
|
66
|
+
* // text: "STRING_VALUE", // required
|
|
67
|
+
* // complete: true || false, // required
|
|
68
|
+
* // startTime: Number("long"), // required
|
|
69
|
+
* // endTime: Number("long"),
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
61
72
|
* // InterruptionWebsocketEvent: { // InterruptionWebsocketEvent
|
|
62
73
|
* // type: "STRING_VALUE", // required
|
|
63
74
|
* // event: { // InterruptionEvent
|
|
64
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
75
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
65
76
|
* // replyId: "STRING_VALUE", // required
|
|
66
77
|
* // playedText: "STRING_VALUE", // required
|
|
67
78
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -71,7 +82,7 @@ declare const DescribeEventCommand_base: {
|
|
|
71
82
|
* // CompleteWebsocketEvent: { // CompleteWebsocketEvent
|
|
72
83
|
* // type: "STRING_VALUE", // required
|
|
73
84
|
* // event: { // CompleteEvent
|
|
74
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
85
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
75
86
|
* // reason: "STRING_VALUE", // required
|
|
76
87
|
* // time: Number("long"), // required
|
|
77
88
|
* // },
|
|
@@ -106,7 +117,7 @@ declare const DescribeEventCommand_base: {
|
|
|
106
117
|
* // callId: "STRING_VALUE", // required
|
|
107
118
|
* // flowIndex: Number("int"), // required
|
|
108
119
|
* // event: { // SessionStartedEvent
|
|
109
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
120
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
110
121
|
* // language: "STRING_VALUE", // required
|
|
111
122
|
* // time: Number("long"), // required
|
|
112
123
|
* // },
|
|
@@ -117,7 +128,7 @@ declare const DescribeEventCommand_base: {
|
|
|
117
128
|
* // callId: "STRING_VALUE", // required
|
|
118
129
|
* // flowIndex: Number("int"), // required
|
|
119
130
|
* // event: { // SessionEndedEvent
|
|
120
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
131
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
121
132
|
* // error: "STRING_VALUE",
|
|
122
133
|
* // time: Number("long"), // required
|
|
123
134
|
* // },
|
|
@@ -128,7 +139,7 @@ declare const DescribeEventCommand_base: {
|
|
|
128
139
|
* // callId: "STRING_VALUE", // required
|
|
129
140
|
* // flowIndex: Number("int"), // required
|
|
130
141
|
* // event: {
|
|
131
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
142
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
132
143
|
* // id: "STRING_VALUE", // required
|
|
133
144
|
* // text: "STRING_VALUE", // required
|
|
134
145
|
* // time: Number("long"), // required
|
|
@@ -140,20 +151,34 @@ declare const DescribeEventCommand_base: {
|
|
|
140
151
|
* // callId: "STRING_VALUE", // required
|
|
141
152
|
* // flowIndex: Number("int"), // required
|
|
142
153
|
* // event: {
|
|
143
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
154
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
144
155
|
* // id: "STRING_VALUE", // required
|
|
145
156
|
* // text: "STRING_VALUE", // required
|
|
146
157
|
* // startTime: Number("long"), // required
|
|
147
158
|
* // endTime: Number("long"), // required
|
|
148
159
|
* // },
|
|
149
160
|
* // },
|
|
161
|
+
* // PlaybackWebhookEvent: { // PlaybackWebhookEvent
|
|
162
|
+
* // sessionId: "STRING_VALUE", // required
|
|
163
|
+
* // botId: "STRING_VALUE", // required
|
|
164
|
+
* // callId: "STRING_VALUE", // required
|
|
165
|
+
* // flowIndex: Number("int"), // required
|
|
166
|
+
* // event: {
|
|
167
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
168
|
+
* // replyId: "STRING_VALUE", // required
|
|
169
|
+
* // text: "STRING_VALUE", // required
|
|
170
|
+
* // complete: true || false, // required
|
|
171
|
+
* // startTime: Number("long"), // required
|
|
172
|
+
* // endTime: Number("long"),
|
|
173
|
+
* // },
|
|
174
|
+
* // },
|
|
150
175
|
* // InterruptionWebhookEvent: { // InterruptionWebhookEvent
|
|
151
176
|
* // sessionId: "STRING_VALUE", // required
|
|
152
177
|
* // botId: "STRING_VALUE", // required
|
|
153
178
|
* // callId: "STRING_VALUE", // required
|
|
154
179
|
* // flowIndex: Number("int"), // required
|
|
155
180
|
* // event: {
|
|
156
|
-
* // type: "started" || "ended" || "reply" || "transcription" || "interruption" || "complete", // required
|
|
181
|
+
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
157
182
|
* // replyId: "STRING_VALUE", // required
|
|
158
183
|
* // playedText: "STRING_VALUE", // required
|
|
159
184
|
* // originalText: "STRING_VALUE", // required
|
|
@@ -31,6 +31,7 @@ export declare const VoiceBotEventType: {
|
|
|
31
31
|
readonly COMPLETE: "complete";
|
|
32
32
|
readonly ENDED: "ended";
|
|
33
33
|
readonly INTERRUPTION: "interruption";
|
|
34
|
+
readonly PLAYBACK: "playback";
|
|
34
35
|
readonly REPLY: "reply";
|
|
35
36
|
readonly STARTED: "started";
|
|
36
37
|
readonly TRANSCRIPTION: "transcription";
|
|
@@ -310,6 +311,34 @@ export interface InterruptionWebsocketEvent {
|
|
|
310
311
|
type: string;
|
|
311
312
|
event: InterruptionEvent;
|
|
312
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
317
|
+
export interface PlaybackEvent {
|
|
318
|
+
type: VoiceBotEventType;
|
|
319
|
+
replyId: string;
|
|
320
|
+
text: string;
|
|
321
|
+
complete: boolean;
|
|
322
|
+
startTime: number;
|
|
323
|
+
endTime?: number;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @public
|
|
327
|
+
*/
|
|
328
|
+
export interface PlaybackWebhookEvent {
|
|
329
|
+
sessionId: string;
|
|
330
|
+
botId: string;
|
|
331
|
+
callId: string;
|
|
332
|
+
flowIndex: number;
|
|
333
|
+
event: PlaybackEvent;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
*/
|
|
338
|
+
export interface PlaybackWebsocketEvent {
|
|
339
|
+
type: string;
|
|
340
|
+
event: PlaybackEvent;
|
|
341
|
+
}
|
|
313
342
|
/**
|
|
314
343
|
* @public
|
|
315
344
|
*/
|
|
@@ -440,6 +469,7 @@ export interface TransferWebsocketCommand {
|
|
|
440
469
|
export interface DescribeEventOutput {
|
|
441
470
|
TranscriptionWebsocketEvent?: TranscriptionWebsocketEvent;
|
|
442
471
|
ReplyWebsocketEvent?: ReplyWebsocketEvent;
|
|
472
|
+
PlaybackWebsocketEvent?: PlaybackWebsocketEvent;
|
|
443
473
|
InterruptionWebsocketEvent?: InterruptionWebsocketEvent;
|
|
444
474
|
CompleteWebsocketEvent?: CompleteWebsocketEvent;
|
|
445
475
|
SayWebsocketCommand?: SayWebsocketCommand;
|
|
@@ -449,6 +479,7 @@ export interface DescribeEventOutput {
|
|
|
449
479
|
SessionEndedWebhookEvent?: SessionEndedWebhookEvent;
|
|
450
480
|
TranscriptionWebhookEvent?: TranscriptionWebhookEvent;
|
|
451
481
|
ReplyWebhookEvent?: ReplyWebhookEvent;
|
|
482
|
+
PlaybackWebhookEvent?: PlaybackWebhookEvent;
|
|
452
483
|
InterruptionWebhookEvent?: InterruptionWebhookEvent;
|
|
453
484
|
CompleteWebhookEvent?: CompleteWebhookEvent;
|
|
454
485
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-voicebots-client",
|
|
3
3
|
"description": "@wildix/wim-voicebots-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
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",
|