@wildix/wda-stream-client 1.0.6 → 1.0.7
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 +49 -1
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/models/models_0.js +48 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +273 -0
- package/dist-types/models/models_0.d.ts +577 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowStatus = exports.LiveEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.License = exports.CallFlowTranscriptionStatus = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallEndBy = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallFlowStatus = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.License = exports.CallFlowTranscriptionStatus = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallEndBy = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
5
5
|
class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -96,6 +96,19 @@ exports.ConferenceTranscriptionStatus = {
|
|
|
96
96
|
AVAILABLE: "AVAILABLE",
|
|
97
97
|
UNAVAILABLE: "UNAVAILABLE",
|
|
98
98
|
};
|
|
99
|
+
exports.CallConsumeEventType = {
|
|
100
|
+
CALL_AGENTS_CANCEL: "CALL.AGENTS_CANCEL",
|
|
101
|
+
CALL_AGENTS_START: "CALL.AGENTS_START",
|
|
102
|
+
CALL_ATTACHMENT: "CALL.ATTACHMENT",
|
|
103
|
+
CALL_END: "CALL.END",
|
|
104
|
+
CALL_LIVE: "CALL.LIVE",
|
|
105
|
+
CALL_RECORD_START: "CALL.RECORD_START",
|
|
106
|
+
CALL_RECORD_STOP: "CALL.RECORD_STOP",
|
|
107
|
+
CALL_SPLIT: "CALL.SPLIT",
|
|
108
|
+
CALL_START: "CALL.START",
|
|
109
|
+
CALL_TRANSCRIPTION: "CALL.TRANSCRIPTION",
|
|
110
|
+
CALL_UPDATE: "CALL.UPDATE",
|
|
111
|
+
};
|
|
99
112
|
exports.LiveEventType = {
|
|
100
113
|
CALL: "call",
|
|
101
114
|
CALL_COMPLETE: "call_complete",
|
|
@@ -117,6 +130,19 @@ exports.CallFlowStatus = {
|
|
|
117
130
|
HOLD: "HOLD",
|
|
118
131
|
TALKING: "TALKING",
|
|
119
132
|
};
|
|
133
|
+
exports.CallFlowAttachmentConsumeType = {
|
|
134
|
+
FAX: "fax",
|
|
135
|
+
VOICEMAIL: "voicemail",
|
|
136
|
+
};
|
|
137
|
+
exports.CallEndConsume = {
|
|
138
|
+
CALLEE: "callee",
|
|
139
|
+
CALLER: "caller",
|
|
140
|
+
};
|
|
141
|
+
exports.CallFlowConsumeStatus = {
|
|
142
|
+
CONNECTING: "connecting",
|
|
143
|
+
HOLD: "hold",
|
|
144
|
+
TALKING: "talking",
|
|
145
|
+
};
|
|
120
146
|
exports.ChannelType = {
|
|
121
147
|
DIRECT: "direct",
|
|
122
148
|
GROUP: "group",
|
|
@@ -166,6 +192,28 @@ exports.SmsStatus = {
|
|
|
166
192
|
var ConsumeEventInputEvent;
|
|
167
193
|
(function (ConsumeEventInputEvent) {
|
|
168
194
|
ConsumeEventInputEvent.visit = (value, visitor) => {
|
|
195
|
+
if (value.callStart !== undefined)
|
|
196
|
+
return visitor.callStart(value.callStart);
|
|
197
|
+
if (value.callUpdate !== undefined)
|
|
198
|
+
return visitor.callUpdate(value.callUpdate);
|
|
199
|
+
if (value.callSplit !== undefined)
|
|
200
|
+
return visitor.callSplit(value.callSplit);
|
|
201
|
+
if (value.callLive !== undefined)
|
|
202
|
+
return visitor.callLive(value.callLive);
|
|
203
|
+
if (value.callAgentsStart !== undefined)
|
|
204
|
+
return visitor.callAgentsStart(value.callAgentsStart);
|
|
205
|
+
if (value.callAgentsCancel !== undefined)
|
|
206
|
+
return visitor.callAgentsCancel(value.callAgentsCancel);
|
|
207
|
+
if (value.callEnd !== undefined)
|
|
208
|
+
return visitor.callEnd(value.callEnd);
|
|
209
|
+
if (value.callRecordStart !== undefined)
|
|
210
|
+
return visitor.callRecordStart(value.callRecordStart);
|
|
211
|
+
if (value.callRecordStop !== undefined)
|
|
212
|
+
return visitor.callRecordStop(value.callRecordStop);
|
|
213
|
+
if (value.callAttachment !== undefined)
|
|
214
|
+
return visitor.callAttachment(value.callAttachment);
|
|
215
|
+
if (value.callTranscription !== undefined)
|
|
216
|
+
return visitor.callTranscription(value.callTranscription);
|
|
169
217
|
if (value.chatNew !== undefined)
|
|
170
218
|
return visitor.chatNew(value.chatNew);
|
|
171
219
|
if (value.chatUpdate !== undefined)
|
|
@@ -86,6 +86,9 @@ const de_ConsumeEventCommandError = async (output, context) => {
|
|
|
86
86
|
};
|
|
87
87
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
88
88
|
switch (errorCode) {
|
|
89
|
+
case "ForbiddenException":
|
|
90
|
+
case "smithy.framework#ForbiddenException":
|
|
91
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
89
92
|
case "ValidationException":
|
|
90
93
|
case "smithy.framework#ValidationException":
|
|
91
94
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -91,6 +91,19 @@ export const ConferenceTranscriptionStatus = {
|
|
|
91
91
|
AVAILABLE: "AVAILABLE",
|
|
92
92
|
UNAVAILABLE: "UNAVAILABLE",
|
|
93
93
|
};
|
|
94
|
+
export const CallConsumeEventType = {
|
|
95
|
+
CALL_AGENTS_CANCEL: "CALL.AGENTS_CANCEL",
|
|
96
|
+
CALL_AGENTS_START: "CALL.AGENTS_START",
|
|
97
|
+
CALL_ATTACHMENT: "CALL.ATTACHMENT",
|
|
98
|
+
CALL_END: "CALL.END",
|
|
99
|
+
CALL_LIVE: "CALL.LIVE",
|
|
100
|
+
CALL_RECORD_START: "CALL.RECORD_START",
|
|
101
|
+
CALL_RECORD_STOP: "CALL.RECORD_STOP",
|
|
102
|
+
CALL_SPLIT: "CALL.SPLIT",
|
|
103
|
+
CALL_START: "CALL.START",
|
|
104
|
+
CALL_TRANSCRIPTION: "CALL.TRANSCRIPTION",
|
|
105
|
+
CALL_UPDATE: "CALL.UPDATE",
|
|
106
|
+
};
|
|
94
107
|
export const LiveEventType = {
|
|
95
108
|
CALL: "call",
|
|
96
109
|
CALL_COMPLETE: "call_complete",
|
|
@@ -112,6 +125,19 @@ export const CallFlowStatus = {
|
|
|
112
125
|
HOLD: "HOLD",
|
|
113
126
|
TALKING: "TALKING",
|
|
114
127
|
};
|
|
128
|
+
export const CallFlowAttachmentConsumeType = {
|
|
129
|
+
FAX: "fax",
|
|
130
|
+
VOICEMAIL: "voicemail",
|
|
131
|
+
};
|
|
132
|
+
export const CallEndConsume = {
|
|
133
|
+
CALLEE: "callee",
|
|
134
|
+
CALLER: "caller",
|
|
135
|
+
};
|
|
136
|
+
export const CallFlowConsumeStatus = {
|
|
137
|
+
CONNECTING: "connecting",
|
|
138
|
+
HOLD: "hold",
|
|
139
|
+
TALKING: "talking",
|
|
140
|
+
};
|
|
115
141
|
export const ChannelType = {
|
|
116
142
|
DIRECT: "direct",
|
|
117
143
|
GROUP: "group",
|
|
@@ -161,6 +187,28 @@ export const SmsStatus = {
|
|
|
161
187
|
export var ConsumeEventInputEvent;
|
|
162
188
|
(function (ConsumeEventInputEvent) {
|
|
163
189
|
ConsumeEventInputEvent.visit = (value, visitor) => {
|
|
190
|
+
if (value.callStart !== undefined)
|
|
191
|
+
return visitor.callStart(value.callStart);
|
|
192
|
+
if (value.callUpdate !== undefined)
|
|
193
|
+
return visitor.callUpdate(value.callUpdate);
|
|
194
|
+
if (value.callSplit !== undefined)
|
|
195
|
+
return visitor.callSplit(value.callSplit);
|
|
196
|
+
if (value.callLive !== undefined)
|
|
197
|
+
return visitor.callLive(value.callLive);
|
|
198
|
+
if (value.callAgentsStart !== undefined)
|
|
199
|
+
return visitor.callAgentsStart(value.callAgentsStart);
|
|
200
|
+
if (value.callAgentsCancel !== undefined)
|
|
201
|
+
return visitor.callAgentsCancel(value.callAgentsCancel);
|
|
202
|
+
if (value.callEnd !== undefined)
|
|
203
|
+
return visitor.callEnd(value.callEnd);
|
|
204
|
+
if (value.callRecordStart !== undefined)
|
|
205
|
+
return visitor.callRecordStart(value.callRecordStart);
|
|
206
|
+
if (value.callRecordStop !== undefined)
|
|
207
|
+
return visitor.callRecordStop(value.callRecordStop);
|
|
208
|
+
if (value.callAttachment !== undefined)
|
|
209
|
+
return visitor.callAttachment(value.callAttachment);
|
|
210
|
+
if (value.callTranscription !== undefined)
|
|
211
|
+
return visitor.callTranscription(value.callTranscription);
|
|
164
212
|
if (value.chatNew !== undefined)
|
|
165
213
|
return visitor.chatNew(value.chatNew);
|
|
166
214
|
if (value.chatUpdate !== undefined)
|
|
@@ -79,6 +79,9 @@ const de_ConsumeEventCommandError = async (output, context) => {
|
|
|
79
79
|
};
|
|
80
80
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
81
81
|
switch (errorCode) {
|
|
82
|
+
case "ForbiddenException":
|
|
83
|
+
case "smithy.framework#ForbiddenException":
|
|
84
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
82
85
|
case "ValidationException":
|
|
83
86
|
case "smithy.framework#ValidationException":
|
|
84
87
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -31,6 +31,277 @@ export interface ConsumeEventCommandOutput extends ConsumeEventOutput, __Metadat
|
|
|
31
31
|
* const client = new WdaStreamClient(config);
|
|
32
32
|
* const input = { // ConsumeEventInput
|
|
33
33
|
* event: { // ConsumeEventInputEvent Union: only one key present
|
|
34
|
+
* callStart: { // CallStartConsumeEvent
|
|
35
|
+
* id: "STRING_VALUE", // required
|
|
36
|
+
* time: Number("long"), // required
|
|
37
|
+
* pbx: "STRING_VALUE", // required
|
|
38
|
+
* company: "STRING_VALUE", // required
|
|
39
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
40
|
+
* data: { // CallStartConsumeEventData
|
|
41
|
+
* caller: { // CallFlowConsumeParticipant
|
|
42
|
+
* phone: "STRING_VALUE",
|
|
43
|
+
* name: "STRING_VALUE",
|
|
44
|
+
* email: "STRING_VALUE",
|
|
45
|
+
* company: "STRING_VALUE",
|
|
46
|
+
* userId: "STRING_VALUE",
|
|
47
|
+
* userExtension: "STRING_VALUE",
|
|
48
|
+
* userDepartment: "STRING_VALUE",
|
|
49
|
+
* userLicense: "STRING_VALUE",
|
|
50
|
+
* groupId: "STRING_VALUE",
|
|
51
|
+
* groupName: "STRING_VALUE",
|
|
52
|
+
* device: "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* callee: {
|
|
55
|
+
* phone: "STRING_VALUE",
|
|
56
|
+
* name: "STRING_VALUE",
|
|
57
|
+
* email: "STRING_VALUE",
|
|
58
|
+
* company: "STRING_VALUE",
|
|
59
|
+
* userId: "STRING_VALUE",
|
|
60
|
+
* userExtension: "STRING_VALUE",
|
|
61
|
+
* userDepartment: "STRING_VALUE",
|
|
62
|
+
* userLicense: "STRING_VALUE",
|
|
63
|
+
* groupId: "STRING_VALUE",
|
|
64
|
+
* groupName: "STRING_VALUE",
|
|
65
|
+
* device: "STRING_VALUE",
|
|
66
|
+
* },
|
|
67
|
+
* status: "connecting" || "talking" || "hold",
|
|
68
|
+
* destination: "STRING_VALUE",
|
|
69
|
+
* service: "STRING_VALUE",
|
|
70
|
+
* serviceNumber: "STRING_VALUE",
|
|
71
|
+
* trunk: { // CallFlowConsumeTrunk
|
|
72
|
+
* direction: "STRING_VALUE", // required
|
|
73
|
+
* name: "STRING_VALUE", // required
|
|
74
|
+
* },
|
|
75
|
+
* queue: { // CallFlowConsumeQueue
|
|
76
|
+
* id: "STRING_VALUE", // required
|
|
77
|
+
* name: "STRING_VALUE", // required
|
|
78
|
+
* },
|
|
79
|
+
* tags: [ // CallFlowTags
|
|
80
|
+
* "STRING_VALUE",
|
|
81
|
+
* ],
|
|
82
|
+
* flags: [ // CallFlowFlags
|
|
83
|
+
* "STRING_VALUE",
|
|
84
|
+
* ],
|
|
85
|
+
* licenses: [ // LicensesList
|
|
86
|
+
* "x-bees",
|
|
87
|
+
* ],
|
|
88
|
+
* },
|
|
89
|
+
* },
|
|
90
|
+
* callUpdate: { // CallUpdateConsumeEvent
|
|
91
|
+
* id: "STRING_VALUE", // required
|
|
92
|
+
* time: Number("long"), // required
|
|
93
|
+
* pbx: "STRING_VALUE", // required
|
|
94
|
+
* company: "STRING_VALUE", // required
|
|
95
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
96
|
+
* data: { // CallUpdateConsumeEventData
|
|
97
|
+
* caller: {
|
|
98
|
+
* phone: "STRING_VALUE",
|
|
99
|
+
* name: "STRING_VALUE",
|
|
100
|
+
* email: "STRING_VALUE",
|
|
101
|
+
* company: "STRING_VALUE",
|
|
102
|
+
* userId: "STRING_VALUE",
|
|
103
|
+
* userExtension: "STRING_VALUE",
|
|
104
|
+
* userDepartment: "STRING_VALUE",
|
|
105
|
+
* userLicense: "STRING_VALUE",
|
|
106
|
+
* groupId: "STRING_VALUE",
|
|
107
|
+
* groupName: "STRING_VALUE",
|
|
108
|
+
* device: "STRING_VALUE",
|
|
109
|
+
* },
|
|
110
|
+
* callee: {
|
|
111
|
+
* phone: "STRING_VALUE",
|
|
112
|
+
* name: "STRING_VALUE",
|
|
113
|
+
* email: "STRING_VALUE",
|
|
114
|
+
* company: "STRING_VALUE",
|
|
115
|
+
* userId: "STRING_VALUE",
|
|
116
|
+
* userExtension: "STRING_VALUE",
|
|
117
|
+
* userDepartment: "STRING_VALUE",
|
|
118
|
+
* userLicense: "STRING_VALUE",
|
|
119
|
+
* groupId: "STRING_VALUE",
|
|
120
|
+
* groupName: "STRING_VALUE",
|
|
121
|
+
* device: "STRING_VALUE",
|
|
122
|
+
* },
|
|
123
|
+
* status: "connecting" || "talking" || "hold",
|
|
124
|
+
* destination: "STRING_VALUE",
|
|
125
|
+
* service: "STRING_VALUE",
|
|
126
|
+
* serviceNumber: "STRING_VALUE",
|
|
127
|
+
* trunk: {
|
|
128
|
+
* direction: "STRING_VALUE", // required
|
|
129
|
+
* name: "STRING_VALUE", // required
|
|
130
|
+
* },
|
|
131
|
+
* queue: {
|
|
132
|
+
* id: "STRING_VALUE", // required
|
|
133
|
+
* name: "STRING_VALUE", // required
|
|
134
|
+
* },
|
|
135
|
+
* tags: [
|
|
136
|
+
* "STRING_VALUE",
|
|
137
|
+
* ],
|
|
138
|
+
* flags: [
|
|
139
|
+
* "STRING_VALUE",
|
|
140
|
+
* ],
|
|
141
|
+
* mos: { // CallMosData
|
|
142
|
+
* caller: "STRING_VALUE",
|
|
143
|
+
* callee: "STRING_VALUE",
|
|
144
|
+
* },
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* callSplit: { // CallSplitConsumeEvent
|
|
148
|
+
* id: "STRING_VALUE", // required
|
|
149
|
+
* time: Number("long"), // required
|
|
150
|
+
* pbx: "STRING_VALUE", // required
|
|
151
|
+
* company: "STRING_VALUE", // required
|
|
152
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
153
|
+
* data: { // CallSplitConsumeEventData
|
|
154
|
+
* caller: {
|
|
155
|
+
* phone: "STRING_VALUE",
|
|
156
|
+
* name: "STRING_VALUE",
|
|
157
|
+
* email: "STRING_VALUE",
|
|
158
|
+
* company: "STRING_VALUE",
|
|
159
|
+
* userId: "STRING_VALUE",
|
|
160
|
+
* userExtension: "STRING_VALUE",
|
|
161
|
+
* userDepartment: "STRING_VALUE",
|
|
162
|
+
* userLicense: "STRING_VALUE",
|
|
163
|
+
* groupId: "STRING_VALUE",
|
|
164
|
+
* groupName: "STRING_VALUE",
|
|
165
|
+
* device: "STRING_VALUE",
|
|
166
|
+
* },
|
|
167
|
+
* callee: "<CallFlowConsumeParticipant>",
|
|
168
|
+
* status: "connecting" || "talking" || "hold",
|
|
169
|
+
* destination: "STRING_VALUE",
|
|
170
|
+
* service: "STRING_VALUE",
|
|
171
|
+
* serviceNumber: "STRING_VALUE",
|
|
172
|
+
* trunk: {
|
|
173
|
+
* direction: "STRING_VALUE", // required
|
|
174
|
+
* name: "STRING_VALUE", // required
|
|
175
|
+
* },
|
|
176
|
+
* queue: {
|
|
177
|
+
* id: "STRING_VALUE", // required
|
|
178
|
+
* name: "STRING_VALUE", // required
|
|
179
|
+
* },
|
|
180
|
+
* tags: [
|
|
181
|
+
* "STRING_VALUE",
|
|
182
|
+
* ],
|
|
183
|
+
* flags: [
|
|
184
|
+
* "STRING_VALUE",
|
|
185
|
+
* ],
|
|
186
|
+
* mos: {
|
|
187
|
+
* caller: "STRING_VALUE",
|
|
188
|
+
* callee: "STRING_VALUE",
|
|
189
|
+
* },
|
|
190
|
+
* reason: "STRING_VALUE",
|
|
191
|
+
* transferType: "STRING_VALUE",
|
|
192
|
+
* mergeWith: "STRING_VALUE",
|
|
193
|
+
* },
|
|
194
|
+
* },
|
|
195
|
+
* callLive: { // CallLiveConsumeEvent
|
|
196
|
+
* id: "STRING_VALUE", // required
|
|
197
|
+
* time: Number("long"), // required
|
|
198
|
+
* pbx: "STRING_VALUE", // required
|
|
199
|
+
* company: "STRING_VALUE", // required
|
|
200
|
+
* },
|
|
201
|
+
* callAgentsStart: { // CallAgentsStartConsumeEvent
|
|
202
|
+
* id: "STRING_VALUE", // required
|
|
203
|
+
* time: Number("long"), // required
|
|
204
|
+
* pbx: "STRING_VALUE", // required
|
|
205
|
+
* company: "STRING_VALUE", // required
|
|
206
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
207
|
+
* data: { // CallAgentsStartOrEndConsumeEventData
|
|
208
|
+
* agents: [ // CallAgentsItemConsumeItemList // required
|
|
209
|
+
* { // CallAgentsItemConsumeItem
|
|
210
|
+
* agent: "STRING_VALUE",
|
|
211
|
+
* info: "<CallFlowConsumeParticipant>",
|
|
212
|
+
* },
|
|
213
|
+
* ],
|
|
214
|
+
* },
|
|
215
|
+
* },
|
|
216
|
+
* callAgentsCancel: { // CallAgentsCancelConsumeEvent
|
|
217
|
+
* id: "STRING_VALUE", // required
|
|
218
|
+
* time: Number("long"), // required
|
|
219
|
+
* pbx: "STRING_VALUE", // required
|
|
220
|
+
* company: "STRING_VALUE", // required
|
|
221
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
222
|
+
* data: {
|
|
223
|
+
* agents: [ // required
|
|
224
|
+
* {
|
|
225
|
+
* agent: "STRING_VALUE",
|
|
226
|
+
* info: "<CallFlowConsumeParticipant>",
|
|
227
|
+
* },
|
|
228
|
+
* ],
|
|
229
|
+
* },
|
|
230
|
+
* },
|
|
231
|
+
* callEnd: { // CallEndConsumeEvent
|
|
232
|
+
* id: "STRING_VALUE", // required
|
|
233
|
+
* time: Number("long"), // required
|
|
234
|
+
* pbx: "STRING_VALUE", // required
|
|
235
|
+
* company: "STRING_VALUE", // required
|
|
236
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
237
|
+
* data: { // CallEndConsumeEventData
|
|
238
|
+
* mos: {
|
|
239
|
+
* caller: "STRING_VALUE",
|
|
240
|
+
* callee: "STRING_VALUE",
|
|
241
|
+
* },
|
|
242
|
+
* cause: "STRING_VALUE",
|
|
243
|
+
* causeStr: "STRING_VALUE",
|
|
244
|
+
* who: "caller" || "callee",
|
|
245
|
+
* },
|
|
246
|
+
* },
|
|
247
|
+
* callRecordStart: { // CallRecordStartConsumeEvent
|
|
248
|
+
* id: "STRING_VALUE", // required
|
|
249
|
+
* time: Number("long"), // required
|
|
250
|
+
* pbx: "STRING_VALUE", // required
|
|
251
|
+
* company: "STRING_VALUE", // required
|
|
252
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
253
|
+
* data: { // CallRecordStartOrStopConsumeEventData
|
|
254
|
+
* fileName: "STRING_VALUE", // required
|
|
255
|
+
* },
|
|
256
|
+
* },
|
|
257
|
+
* callRecordStop: { // CallRecordStopConsumeEvent
|
|
258
|
+
* id: "STRING_VALUE", // required
|
|
259
|
+
* time: Number("long"), // required
|
|
260
|
+
* pbx: "STRING_VALUE", // required
|
|
261
|
+
* company: "STRING_VALUE", // required
|
|
262
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
263
|
+
* data: {
|
|
264
|
+
* fileName: "STRING_VALUE", // required
|
|
265
|
+
* },
|
|
266
|
+
* },
|
|
267
|
+
* callAttachment: { // CallAttachmentConsumeEvent
|
|
268
|
+
* id: "STRING_VALUE", // required
|
|
269
|
+
* time: Number("long"), // required
|
|
270
|
+
* pbx: "STRING_VALUE", // required
|
|
271
|
+
* company: "STRING_VALUE", // required
|
|
272
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
273
|
+
* data: { // CallAttachmentConsumeEventData
|
|
274
|
+
* type: "voicemail" || "fax", // required
|
|
275
|
+
* url: "STRING_VALUE", // required
|
|
276
|
+
* destinations: [ // CallFlowAttachmentDestinationList
|
|
277
|
+
* { // CallFlowAttachmentDestination
|
|
278
|
+
* phone: "STRING_VALUE",
|
|
279
|
+
* name: "STRING_VALUE",
|
|
280
|
+
* email: "STRING_VALUE",
|
|
281
|
+
* userId: "STRING_VALUE",
|
|
282
|
+
* userExtension: "STRING_VALUE",
|
|
283
|
+
* userDepartment: "STRING_VALUE",
|
|
284
|
+
* groupId: "STRING_VALUE",
|
|
285
|
+
* groupName: "STRING_VALUE",
|
|
286
|
+
* },
|
|
287
|
+
* ],
|
|
288
|
+
* },
|
|
289
|
+
* },
|
|
290
|
+
* callTranscription: { // CallTranscribeConsumeEvent
|
|
291
|
+
* id: "STRING_VALUE", // required
|
|
292
|
+
* time: Number("long"), // required
|
|
293
|
+
* pbx: "STRING_VALUE", // required
|
|
294
|
+
* company: "STRING_VALUE", // required
|
|
295
|
+
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION", // required
|
|
296
|
+
* data: { // CallTranscribeConsumeEventData
|
|
297
|
+
* flowId: Number("int"), // required
|
|
298
|
+
* id: "STRING_VALUE", // required
|
|
299
|
+
* role: "callee" || "caller", // required
|
|
300
|
+
* text: "STRING_VALUE", // required
|
|
301
|
+
* language: "STRING_VALUE", // required
|
|
302
|
+
* final: true || false, // required
|
|
303
|
+
* },
|
|
304
|
+
* },
|
|
34
305
|
* chatNew: { // ChatNewConsumeEvent
|
|
35
306
|
* type: "CHAT.NEW" || "CHAT.UPDATE", // required
|
|
36
307
|
* company: "STRING_VALUE", // required
|
|
@@ -194,6 +465,8 @@ export interface ConsumeEventCommandOutput extends ConsumeEventOutput, __Metadat
|
|
|
194
465
|
*
|
|
195
466
|
* @throws {@link ValidationException} (client fault)
|
|
196
467
|
*
|
|
468
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
469
|
+
*
|
|
197
470
|
* @throws {@link WdaStreamServiceException}
|
|
198
471
|
* <p>Base exception class for all service exceptions from WdaStream service.</p>
|
|
199
472
|
*
|
|
@@ -348,6 +348,78 @@ export interface ConferenceTranscription {
|
|
|
348
348
|
end: number;
|
|
349
349
|
chunks: Record<string, ConferenceTranscriptionChunk>;
|
|
350
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* @public
|
|
353
|
+
*/
|
|
354
|
+
export interface CallFlowConsumeParticipant {
|
|
355
|
+
phone?: string;
|
|
356
|
+
name?: string;
|
|
357
|
+
email?: string;
|
|
358
|
+
company?: string;
|
|
359
|
+
userId?: string;
|
|
360
|
+
userExtension?: string;
|
|
361
|
+
userDepartment?: string;
|
|
362
|
+
userLicense?: string;
|
|
363
|
+
groupId?: string;
|
|
364
|
+
groupName?: string;
|
|
365
|
+
device?: string;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @public
|
|
369
|
+
*/
|
|
370
|
+
export interface CallAgentsItemConsumeItem {
|
|
371
|
+
agent?: string;
|
|
372
|
+
info?: CallFlowConsumeParticipant;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
export interface CallAgentsStartOrEndConsumeEventData {
|
|
378
|
+
agents: (CallAgentsItemConsumeItem)[];
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @public
|
|
382
|
+
* @enum
|
|
383
|
+
*/
|
|
384
|
+
export declare const CallConsumeEventType: {
|
|
385
|
+
readonly CALL_AGENTS_CANCEL: "CALL.AGENTS_CANCEL";
|
|
386
|
+
readonly CALL_AGENTS_START: "CALL.AGENTS_START";
|
|
387
|
+
readonly CALL_ATTACHMENT: "CALL.ATTACHMENT";
|
|
388
|
+
readonly CALL_END: "CALL.END";
|
|
389
|
+
readonly CALL_LIVE: "CALL.LIVE";
|
|
390
|
+
readonly CALL_RECORD_START: "CALL.RECORD_START";
|
|
391
|
+
readonly CALL_RECORD_STOP: "CALL.RECORD_STOP";
|
|
392
|
+
readonly CALL_SPLIT: "CALL.SPLIT";
|
|
393
|
+
readonly CALL_START: "CALL.START";
|
|
394
|
+
readonly CALL_TRANSCRIPTION: "CALL.TRANSCRIPTION";
|
|
395
|
+
readonly CALL_UPDATE: "CALL.UPDATE";
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
export type CallConsumeEventType = typeof CallConsumeEventType[keyof typeof CallConsumeEventType];
|
|
401
|
+
/**
|
|
402
|
+
* @public
|
|
403
|
+
*/
|
|
404
|
+
export interface CallAgentsCancelConsumeEvent {
|
|
405
|
+
id: string;
|
|
406
|
+
time: number;
|
|
407
|
+
pbx: string;
|
|
408
|
+
company: string;
|
|
409
|
+
type: CallConsumeEventType | string;
|
|
410
|
+
data: CallAgentsStartOrEndConsumeEventData;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @public
|
|
414
|
+
*/
|
|
415
|
+
export interface CallAgentsStartConsumeEvent {
|
|
416
|
+
id: string;
|
|
417
|
+
time: number;
|
|
418
|
+
pbx: string;
|
|
419
|
+
company: string;
|
|
420
|
+
type: CallConsumeEventType | string;
|
|
421
|
+
data: CallAgentsStartOrEndConsumeEventData;
|
|
422
|
+
}
|
|
351
423
|
/**
|
|
352
424
|
* @public
|
|
353
425
|
* @enum
|
|
@@ -520,6 +592,246 @@ export interface CallAnalyticsTranscriptionRecordEvent {
|
|
|
520
592
|
transcriptions: (CallTranscription)[];
|
|
521
593
|
type?: string;
|
|
522
594
|
}
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
* @enum
|
|
598
|
+
*/
|
|
599
|
+
export declare const CallFlowAttachmentConsumeType: {
|
|
600
|
+
readonly FAX: "fax";
|
|
601
|
+
readonly VOICEMAIL: "voicemail";
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* @public
|
|
605
|
+
*/
|
|
606
|
+
export type CallFlowAttachmentConsumeType = typeof CallFlowAttachmentConsumeType[keyof typeof CallFlowAttachmentConsumeType];
|
|
607
|
+
/**
|
|
608
|
+
* @public
|
|
609
|
+
*/
|
|
610
|
+
export interface CallAttachmentConsumeEventData {
|
|
611
|
+
type: CallFlowAttachmentConsumeType | string;
|
|
612
|
+
url: string;
|
|
613
|
+
destinations?: (CallFlowAttachmentDestination)[];
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* @public
|
|
617
|
+
*/
|
|
618
|
+
export interface CallAttachmentConsumeEvent {
|
|
619
|
+
id: string;
|
|
620
|
+
time: number;
|
|
621
|
+
pbx: string;
|
|
622
|
+
company: string;
|
|
623
|
+
type: CallConsumeEventType | string;
|
|
624
|
+
data: CallAttachmentConsumeEventData;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* @public
|
|
628
|
+
* @enum
|
|
629
|
+
*/
|
|
630
|
+
export declare const CallEndConsume: {
|
|
631
|
+
readonly CALLEE: "callee";
|
|
632
|
+
readonly CALLER: "caller";
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* @public
|
|
636
|
+
*/
|
|
637
|
+
export type CallEndConsume = typeof CallEndConsume[keyof typeof CallEndConsume];
|
|
638
|
+
/**
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
641
|
+
export interface CallMosData {
|
|
642
|
+
caller?: string;
|
|
643
|
+
callee?: string;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
export interface CallEndConsumeEventData {
|
|
649
|
+
mos?: CallMosData;
|
|
650
|
+
cause?: string;
|
|
651
|
+
causeStr?: string;
|
|
652
|
+
who?: CallEndConsume | string;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
export interface CallEndConsumeEvent {
|
|
658
|
+
id: string;
|
|
659
|
+
time: number;
|
|
660
|
+
pbx: string;
|
|
661
|
+
company: string;
|
|
662
|
+
type: CallConsumeEventType | string;
|
|
663
|
+
data: CallEndConsumeEventData;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* @public
|
|
667
|
+
*/
|
|
668
|
+
export interface CallFlowConsumeQueue {
|
|
669
|
+
id: string;
|
|
670
|
+
name: string;
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* @public
|
|
674
|
+
* @enum
|
|
675
|
+
*/
|
|
676
|
+
export declare const CallFlowConsumeStatus: {
|
|
677
|
+
readonly CONNECTING: "connecting";
|
|
678
|
+
readonly HOLD: "hold";
|
|
679
|
+
readonly TALKING: "talking";
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* @public
|
|
683
|
+
*/
|
|
684
|
+
export type CallFlowConsumeStatus = typeof CallFlowConsumeStatus[keyof typeof CallFlowConsumeStatus];
|
|
685
|
+
/**
|
|
686
|
+
* @public
|
|
687
|
+
*/
|
|
688
|
+
export interface CallFlowConsumeTrunk {
|
|
689
|
+
direction: string;
|
|
690
|
+
name: string;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* @public
|
|
694
|
+
*/
|
|
695
|
+
export interface CallLiveConsumeEvent {
|
|
696
|
+
id: string;
|
|
697
|
+
time: number;
|
|
698
|
+
pbx: string;
|
|
699
|
+
company: string;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* @public
|
|
703
|
+
*/
|
|
704
|
+
export interface CallRecordStartOrStopConsumeEventData {
|
|
705
|
+
fileName: string;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* @public
|
|
709
|
+
*/
|
|
710
|
+
export interface CallRecordStartConsumeEvent {
|
|
711
|
+
id: string;
|
|
712
|
+
time: number;
|
|
713
|
+
pbx: string;
|
|
714
|
+
company: string;
|
|
715
|
+
type: CallConsumeEventType | string;
|
|
716
|
+
data: CallRecordStartOrStopConsumeEventData;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* @public
|
|
720
|
+
*/
|
|
721
|
+
export interface CallRecordStopConsumeEvent {
|
|
722
|
+
id: string;
|
|
723
|
+
time: number;
|
|
724
|
+
pbx: string;
|
|
725
|
+
company: string;
|
|
726
|
+
type: CallConsumeEventType | string;
|
|
727
|
+
data: CallRecordStartOrStopConsumeEventData;
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* @public
|
|
731
|
+
*/
|
|
732
|
+
export interface CallSplitConsumeEventData {
|
|
733
|
+
caller?: CallFlowConsumeParticipant;
|
|
734
|
+
callee?: CallFlowConsumeParticipant;
|
|
735
|
+
status?: CallFlowConsumeStatus | string;
|
|
736
|
+
destination?: string;
|
|
737
|
+
service?: string;
|
|
738
|
+
serviceNumber?: string;
|
|
739
|
+
trunk?: CallFlowConsumeTrunk;
|
|
740
|
+
queue?: CallFlowConsumeQueue;
|
|
741
|
+
tags?: (string)[];
|
|
742
|
+
flags?: (string)[];
|
|
743
|
+
mos?: CallMosData;
|
|
744
|
+
reason?: string;
|
|
745
|
+
transferType?: string;
|
|
746
|
+
mergeWith?: string;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* @public
|
|
750
|
+
*/
|
|
751
|
+
export interface CallSplitConsumeEvent {
|
|
752
|
+
id: string;
|
|
753
|
+
time: number;
|
|
754
|
+
pbx: string;
|
|
755
|
+
company: string;
|
|
756
|
+
type: CallConsumeEventType | string;
|
|
757
|
+
data: CallSplitConsumeEventData;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* @public
|
|
761
|
+
*/
|
|
762
|
+
export interface CallStartConsumeEventData {
|
|
763
|
+
caller?: CallFlowConsumeParticipant;
|
|
764
|
+
callee?: CallFlowConsumeParticipant;
|
|
765
|
+
status?: CallFlowConsumeStatus | string;
|
|
766
|
+
destination?: string;
|
|
767
|
+
service?: string;
|
|
768
|
+
serviceNumber?: string;
|
|
769
|
+
trunk?: CallFlowConsumeTrunk;
|
|
770
|
+
queue?: CallFlowConsumeQueue;
|
|
771
|
+
tags?: (string)[];
|
|
772
|
+
flags?: (string)[];
|
|
773
|
+
licenses?: (License | string)[];
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
export interface CallStartConsumeEvent {
|
|
779
|
+
id: string;
|
|
780
|
+
time: number;
|
|
781
|
+
pbx: string;
|
|
782
|
+
company: string;
|
|
783
|
+
type: CallConsumeEventType | string;
|
|
784
|
+
data: CallStartConsumeEventData;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* @public
|
|
788
|
+
*/
|
|
789
|
+
export interface CallTranscribeConsumeEventData {
|
|
790
|
+
flowId: number;
|
|
791
|
+
id: string;
|
|
792
|
+
role: CallTranscriptionSpeaker | string;
|
|
793
|
+
text: string;
|
|
794
|
+
language: string;
|
|
795
|
+
final: boolean;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* @public
|
|
799
|
+
*/
|
|
800
|
+
export interface CallTranscribeConsumeEvent {
|
|
801
|
+
id: string;
|
|
802
|
+
time: number;
|
|
803
|
+
pbx: string;
|
|
804
|
+
company: string;
|
|
805
|
+
type: CallConsumeEventType | string;
|
|
806
|
+
data: CallTranscribeConsumeEventData;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* @public
|
|
810
|
+
*/
|
|
811
|
+
export interface CallUpdateConsumeEventData {
|
|
812
|
+
caller?: CallFlowConsumeParticipant;
|
|
813
|
+
callee?: CallFlowConsumeParticipant;
|
|
814
|
+
status?: CallFlowConsumeStatus | string;
|
|
815
|
+
destination?: string;
|
|
816
|
+
service?: string;
|
|
817
|
+
serviceNumber?: string;
|
|
818
|
+
trunk?: CallFlowConsumeTrunk;
|
|
819
|
+
queue?: CallFlowConsumeQueue;
|
|
820
|
+
tags?: (string)[];
|
|
821
|
+
flags?: (string)[];
|
|
822
|
+
mos?: CallMosData;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* @public
|
|
826
|
+
*/
|
|
827
|
+
export interface CallUpdateConsumeEvent {
|
|
828
|
+
id: string;
|
|
829
|
+
time: number;
|
|
830
|
+
pbx: string;
|
|
831
|
+
company: string;
|
|
832
|
+
type: CallConsumeEventType | string;
|
|
833
|
+
data: CallUpdateConsumeEventData;
|
|
834
|
+
}
|
|
523
835
|
/**
|
|
524
836
|
* @public
|
|
525
837
|
*/
|
|
@@ -899,12 +1211,221 @@ export interface SmsStatusConsumeEvent {
|
|
|
899
1211
|
/**
|
|
900
1212
|
* @public
|
|
901
1213
|
*/
|
|
902
|
-
export type ConsumeEventInputEvent = ConsumeEventInputEvent.ChatNewMember | ConsumeEventInputEvent.ChatUpdateMember | ConsumeEventInputEvent.SmsInboundMember | ConsumeEventInputEvent.SmsStatusMember | ConsumeEventInputEvent.$UnknownMember;
|
|
1214
|
+
export type ConsumeEventInputEvent = ConsumeEventInputEvent.CallAgentsCancelMember | ConsumeEventInputEvent.CallAgentsStartMember | ConsumeEventInputEvent.CallAttachmentMember | ConsumeEventInputEvent.CallEndMember | ConsumeEventInputEvent.CallLiveMember | ConsumeEventInputEvent.CallRecordStartMember | ConsumeEventInputEvent.CallRecordStopMember | ConsumeEventInputEvent.CallSplitMember | ConsumeEventInputEvent.CallStartMember | ConsumeEventInputEvent.CallTranscriptionMember | ConsumeEventInputEvent.CallUpdateMember | ConsumeEventInputEvent.ChatNewMember | ConsumeEventInputEvent.ChatUpdateMember | ConsumeEventInputEvent.SmsInboundMember | ConsumeEventInputEvent.SmsStatusMember | ConsumeEventInputEvent.$UnknownMember;
|
|
903
1215
|
/**
|
|
904
1216
|
* @public
|
|
905
1217
|
*/
|
|
906
1218
|
export declare namespace ConsumeEventInputEvent {
|
|
1219
|
+
interface CallStartMember {
|
|
1220
|
+
callStart: CallStartConsumeEvent;
|
|
1221
|
+
callUpdate?: never;
|
|
1222
|
+
callSplit?: never;
|
|
1223
|
+
callLive?: never;
|
|
1224
|
+
callAgentsStart?: never;
|
|
1225
|
+
callAgentsCancel?: never;
|
|
1226
|
+
callEnd?: never;
|
|
1227
|
+
callRecordStart?: never;
|
|
1228
|
+
callRecordStop?: never;
|
|
1229
|
+
callAttachment?: never;
|
|
1230
|
+
callTranscription?: never;
|
|
1231
|
+
chatNew?: never;
|
|
1232
|
+
chatUpdate?: never;
|
|
1233
|
+
smsInbound?: never;
|
|
1234
|
+
smsStatus?: never;
|
|
1235
|
+
$unknown?: never;
|
|
1236
|
+
}
|
|
1237
|
+
interface CallUpdateMember {
|
|
1238
|
+
callStart?: never;
|
|
1239
|
+
callUpdate: CallUpdateConsumeEvent;
|
|
1240
|
+
callSplit?: never;
|
|
1241
|
+
callLive?: never;
|
|
1242
|
+
callAgentsStart?: never;
|
|
1243
|
+
callAgentsCancel?: never;
|
|
1244
|
+
callEnd?: never;
|
|
1245
|
+
callRecordStart?: never;
|
|
1246
|
+
callRecordStop?: never;
|
|
1247
|
+
callAttachment?: never;
|
|
1248
|
+
callTranscription?: never;
|
|
1249
|
+
chatNew?: never;
|
|
1250
|
+
chatUpdate?: never;
|
|
1251
|
+
smsInbound?: never;
|
|
1252
|
+
smsStatus?: never;
|
|
1253
|
+
$unknown?: never;
|
|
1254
|
+
}
|
|
1255
|
+
interface CallSplitMember {
|
|
1256
|
+
callStart?: never;
|
|
1257
|
+
callUpdate?: never;
|
|
1258
|
+
callSplit: CallSplitConsumeEvent;
|
|
1259
|
+
callLive?: never;
|
|
1260
|
+
callAgentsStart?: never;
|
|
1261
|
+
callAgentsCancel?: never;
|
|
1262
|
+
callEnd?: never;
|
|
1263
|
+
callRecordStart?: never;
|
|
1264
|
+
callRecordStop?: never;
|
|
1265
|
+
callAttachment?: never;
|
|
1266
|
+
callTranscription?: never;
|
|
1267
|
+
chatNew?: never;
|
|
1268
|
+
chatUpdate?: never;
|
|
1269
|
+
smsInbound?: never;
|
|
1270
|
+
smsStatus?: never;
|
|
1271
|
+
$unknown?: never;
|
|
1272
|
+
}
|
|
1273
|
+
interface CallLiveMember {
|
|
1274
|
+
callStart?: never;
|
|
1275
|
+
callUpdate?: never;
|
|
1276
|
+
callSplit?: never;
|
|
1277
|
+
callLive: CallLiveConsumeEvent;
|
|
1278
|
+
callAgentsStart?: never;
|
|
1279
|
+
callAgentsCancel?: never;
|
|
1280
|
+
callEnd?: never;
|
|
1281
|
+
callRecordStart?: never;
|
|
1282
|
+
callRecordStop?: never;
|
|
1283
|
+
callAttachment?: never;
|
|
1284
|
+
callTranscription?: never;
|
|
1285
|
+
chatNew?: never;
|
|
1286
|
+
chatUpdate?: never;
|
|
1287
|
+
smsInbound?: never;
|
|
1288
|
+
smsStatus?: never;
|
|
1289
|
+
$unknown?: never;
|
|
1290
|
+
}
|
|
1291
|
+
interface CallAgentsStartMember {
|
|
1292
|
+
callStart?: never;
|
|
1293
|
+
callUpdate?: never;
|
|
1294
|
+
callSplit?: never;
|
|
1295
|
+
callLive?: never;
|
|
1296
|
+
callAgentsStart: CallAgentsStartConsumeEvent;
|
|
1297
|
+
callAgentsCancel?: never;
|
|
1298
|
+
callEnd?: never;
|
|
1299
|
+
callRecordStart?: never;
|
|
1300
|
+
callRecordStop?: never;
|
|
1301
|
+
callAttachment?: never;
|
|
1302
|
+
callTranscription?: never;
|
|
1303
|
+
chatNew?: never;
|
|
1304
|
+
chatUpdate?: never;
|
|
1305
|
+
smsInbound?: never;
|
|
1306
|
+
smsStatus?: never;
|
|
1307
|
+
$unknown?: never;
|
|
1308
|
+
}
|
|
1309
|
+
interface CallAgentsCancelMember {
|
|
1310
|
+
callStart?: never;
|
|
1311
|
+
callUpdate?: never;
|
|
1312
|
+
callSplit?: never;
|
|
1313
|
+
callLive?: never;
|
|
1314
|
+
callAgentsStart?: never;
|
|
1315
|
+
callAgentsCancel: CallAgentsCancelConsumeEvent;
|
|
1316
|
+
callEnd?: never;
|
|
1317
|
+
callRecordStart?: never;
|
|
1318
|
+
callRecordStop?: never;
|
|
1319
|
+
callAttachment?: never;
|
|
1320
|
+
callTranscription?: never;
|
|
1321
|
+
chatNew?: never;
|
|
1322
|
+
chatUpdate?: never;
|
|
1323
|
+
smsInbound?: never;
|
|
1324
|
+
smsStatus?: never;
|
|
1325
|
+
$unknown?: never;
|
|
1326
|
+
}
|
|
1327
|
+
interface CallEndMember {
|
|
1328
|
+
callStart?: never;
|
|
1329
|
+
callUpdate?: never;
|
|
1330
|
+
callSplit?: never;
|
|
1331
|
+
callLive?: never;
|
|
1332
|
+
callAgentsStart?: never;
|
|
1333
|
+
callAgentsCancel?: never;
|
|
1334
|
+
callEnd: CallEndConsumeEvent;
|
|
1335
|
+
callRecordStart?: never;
|
|
1336
|
+
callRecordStop?: never;
|
|
1337
|
+
callAttachment?: never;
|
|
1338
|
+
callTranscription?: never;
|
|
1339
|
+
chatNew?: never;
|
|
1340
|
+
chatUpdate?: never;
|
|
1341
|
+
smsInbound?: never;
|
|
1342
|
+
smsStatus?: never;
|
|
1343
|
+
$unknown?: never;
|
|
1344
|
+
}
|
|
1345
|
+
interface CallRecordStartMember {
|
|
1346
|
+
callStart?: never;
|
|
1347
|
+
callUpdate?: never;
|
|
1348
|
+
callSplit?: never;
|
|
1349
|
+
callLive?: never;
|
|
1350
|
+
callAgentsStart?: never;
|
|
1351
|
+
callAgentsCancel?: never;
|
|
1352
|
+
callEnd?: never;
|
|
1353
|
+
callRecordStart: CallRecordStartConsumeEvent;
|
|
1354
|
+
callRecordStop?: never;
|
|
1355
|
+
callAttachment?: never;
|
|
1356
|
+
callTranscription?: never;
|
|
1357
|
+
chatNew?: never;
|
|
1358
|
+
chatUpdate?: never;
|
|
1359
|
+
smsInbound?: never;
|
|
1360
|
+
smsStatus?: never;
|
|
1361
|
+
$unknown?: never;
|
|
1362
|
+
}
|
|
1363
|
+
interface CallRecordStopMember {
|
|
1364
|
+
callStart?: never;
|
|
1365
|
+
callUpdate?: never;
|
|
1366
|
+
callSplit?: never;
|
|
1367
|
+
callLive?: never;
|
|
1368
|
+
callAgentsStart?: never;
|
|
1369
|
+
callAgentsCancel?: never;
|
|
1370
|
+
callEnd?: never;
|
|
1371
|
+
callRecordStart?: never;
|
|
1372
|
+
callRecordStop: CallRecordStopConsumeEvent;
|
|
1373
|
+
callAttachment?: never;
|
|
1374
|
+
callTranscription?: never;
|
|
1375
|
+
chatNew?: never;
|
|
1376
|
+
chatUpdate?: never;
|
|
1377
|
+
smsInbound?: never;
|
|
1378
|
+
smsStatus?: never;
|
|
1379
|
+
$unknown?: never;
|
|
1380
|
+
}
|
|
1381
|
+
interface CallAttachmentMember {
|
|
1382
|
+
callStart?: never;
|
|
1383
|
+
callUpdate?: never;
|
|
1384
|
+
callSplit?: never;
|
|
1385
|
+
callLive?: never;
|
|
1386
|
+
callAgentsStart?: never;
|
|
1387
|
+
callAgentsCancel?: never;
|
|
1388
|
+
callEnd?: never;
|
|
1389
|
+
callRecordStart?: never;
|
|
1390
|
+
callRecordStop?: never;
|
|
1391
|
+
callAttachment: CallAttachmentConsumeEvent;
|
|
1392
|
+
callTranscription?: never;
|
|
1393
|
+
chatNew?: never;
|
|
1394
|
+
chatUpdate?: never;
|
|
1395
|
+
smsInbound?: never;
|
|
1396
|
+
smsStatus?: never;
|
|
1397
|
+
$unknown?: never;
|
|
1398
|
+
}
|
|
1399
|
+
interface CallTranscriptionMember {
|
|
1400
|
+
callStart?: never;
|
|
1401
|
+
callUpdate?: never;
|
|
1402
|
+
callSplit?: never;
|
|
1403
|
+
callLive?: never;
|
|
1404
|
+
callAgentsStart?: never;
|
|
1405
|
+
callAgentsCancel?: never;
|
|
1406
|
+
callEnd?: never;
|
|
1407
|
+
callRecordStart?: never;
|
|
1408
|
+
callRecordStop?: never;
|
|
1409
|
+
callAttachment?: never;
|
|
1410
|
+
callTranscription: CallTranscribeConsumeEvent;
|
|
1411
|
+
chatNew?: never;
|
|
1412
|
+
chatUpdate?: never;
|
|
1413
|
+
smsInbound?: never;
|
|
1414
|
+
smsStatus?: never;
|
|
1415
|
+
$unknown?: never;
|
|
1416
|
+
}
|
|
907
1417
|
interface ChatNewMember {
|
|
1418
|
+
callStart?: never;
|
|
1419
|
+
callUpdate?: never;
|
|
1420
|
+
callSplit?: never;
|
|
1421
|
+
callLive?: never;
|
|
1422
|
+
callAgentsStart?: never;
|
|
1423
|
+
callAgentsCancel?: never;
|
|
1424
|
+
callEnd?: never;
|
|
1425
|
+
callRecordStart?: never;
|
|
1426
|
+
callRecordStop?: never;
|
|
1427
|
+
callAttachment?: never;
|
|
1428
|
+
callTranscription?: never;
|
|
908
1429
|
chatNew: ChatNewConsumeEvent;
|
|
909
1430
|
chatUpdate?: never;
|
|
910
1431
|
smsInbound?: never;
|
|
@@ -912,6 +1433,17 @@ export declare namespace ConsumeEventInputEvent {
|
|
|
912
1433
|
$unknown?: never;
|
|
913
1434
|
}
|
|
914
1435
|
interface ChatUpdateMember {
|
|
1436
|
+
callStart?: never;
|
|
1437
|
+
callUpdate?: never;
|
|
1438
|
+
callSplit?: never;
|
|
1439
|
+
callLive?: never;
|
|
1440
|
+
callAgentsStart?: never;
|
|
1441
|
+
callAgentsCancel?: never;
|
|
1442
|
+
callEnd?: never;
|
|
1443
|
+
callRecordStart?: never;
|
|
1444
|
+
callRecordStop?: never;
|
|
1445
|
+
callAttachment?: never;
|
|
1446
|
+
callTranscription?: never;
|
|
915
1447
|
chatNew?: never;
|
|
916
1448
|
chatUpdate: ChatUpdateConsumeEvent;
|
|
917
1449
|
smsInbound?: never;
|
|
@@ -919,6 +1451,17 @@ export declare namespace ConsumeEventInputEvent {
|
|
|
919
1451
|
$unknown?: never;
|
|
920
1452
|
}
|
|
921
1453
|
interface SmsInboundMember {
|
|
1454
|
+
callStart?: never;
|
|
1455
|
+
callUpdate?: never;
|
|
1456
|
+
callSplit?: never;
|
|
1457
|
+
callLive?: never;
|
|
1458
|
+
callAgentsStart?: never;
|
|
1459
|
+
callAgentsCancel?: never;
|
|
1460
|
+
callEnd?: never;
|
|
1461
|
+
callRecordStart?: never;
|
|
1462
|
+
callRecordStop?: never;
|
|
1463
|
+
callAttachment?: never;
|
|
1464
|
+
callTranscription?: never;
|
|
922
1465
|
chatNew?: never;
|
|
923
1466
|
chatUpdate?: never;
|
|
924
1467
|
smsInbound: SmsInboundConsumeEvent;
|
|
@@ -926,6 +1469,17 @@ export declare namespace ConsumeEventInputEvent {
|
|
|
926
1469
|
$unknown?: never;
|
|
927
1470
|
}
|
|
928
1471
|
interface SmsStatusMember {
|
|
1472
|
+
callStart?: never;
|
|
1473
|
+
callUpdate?: never;
|
|
1474
|
+
callSplit?: never;
|
|
1475
|
+
callLive?: never;
|
|
1476
|
+
callAgentsStart?: never;
|
|
1477
|
+
callAgentsCancel?: never;
|
|
1478
|
+
callEnd?: never;
|
|
1479
|
+
callRecordStart?: never;
|
|
1480
|
+
callRecordStop?: never;
|
|
1481
|
+
callAttachment?: never;
|
|
1482
|
+
callTranscription?: never;
|
|
929
1483
|
chatNew?: never;
|
|
930
1484
|
chatUpdate?: never;
|
|
931
1485
|
smsInbound?: never;
|
|
@@ -936,6 +1490,17 @@ export declare namespace ConsumeEventInputEvent {
|
|
|
936
1490
|
* @public
|
|
937
1491
|
*/
|
|
938
1492
|
interface $UnknownMember {
|
|
1493
|
+
callStart?: never;
|
|
1494
|
+
callUpdate?: never;
|
|
1495
|
+
callSplit?: never;
|
|
1496
|
+
callLive?: never;
|
|
1497
|
+
callAgentsStart?: never;
|
|
1498
|
+
callAgentsCancel?: never;
|
|
1499
|
+
callEnd?: never;
|
|
1500
|
+
callRecordStart?: never;
|
|
1501
|
+
callRecordStop?: never;
|
|
1502
|
+
callAttachment?: never;
|
|
1503
|
+
callTranscription?: never;
|
|
939
1504
|
chatNew?: never;
|
|
940
1505
|
chatUpdate?: never;
|
|
941
1506
|
smsInbound?: never;
|
|
@@ -943,6 +1508,17 @@ export declare namespace ConsumeEventInputEvent {
|
|
|
943
1508
|
$unknown: [string, any];
|
|
944
1509
|
}
|
|
945
1510
|
interface Visitor<T> {
|
|
1511
|
+
callStart: (value: CallStartConsumeEvent) => T;
|
|
1512
|
+
callUpdate: (value: CallUpdateConsumeEvent) => T;
|
|
1513
|
+
callSplit: (value: CallSplitConsumeEvent) => T;
|
|
1514
|
+
callLive: (value: CallLiveConsumeEvent) => T;
|
|
1515
|
+
callAgentsStart: (value: CallAgentsStartConsumeEvent) => T;
|
|
1516
|
+
callAgentsCancel: (value: CallAgentsCancelConsumeEvent) => T;
|
|
1517
|
+
callEnd: (value: CallEndConsumeEvent) => T;
|
|
1518
|
+
callRecordStart: (value: CallRecordStartConsumeEvent) => T;
|
|
1519
|
+
callRecordStop: (value: CallRecordStopConsumeEvent) => T;
|
|
1520
|
+
callAttachment: (value: CallAttachmentConsumeEvent) => T;
|
|
1521
|
+
callTranscription: (value: CallTranscribeConsumeEvent) => T;
|
|
946
1522
|
chatNew: (value: ChatNewConsumeEvent) => T;
|
|
947
1523
|
chatUpdate: (value: ChatUpdateConsumeEvent) => T;
|
|
948
1524
|
smsInbound: (value: SmsInboundConsumeEvent) => T;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-stream-client",
|
|
3
3
|
"description": "@wildix/wda-stream-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
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",
|