@wildix/wda-stream-client 1.0.1
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/WdaStream.js +17 -0
- package/dist-cjs/WdaStreamClient.js +35 -0
- package/dist-cjs/commands/ConsumeEventCommand.js +41 -0
- package/dist-cjs/commands/DescribeEventCommand.js +41 -0
- package/dist-cjs/commands/GetOngoingConversationsCommand.js +41 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/WdaStreamServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +170 -0
- package/dist-cjs/protocols/Aws_restJson1.js +262 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/WdaStream.js +13 -0
- package/dist-es/WdaStreamClient.js +31 -0
- package/dist-es/commands/ConsumeEventCommand.js +37 -0
- package/dist-es/commands/DescribeEventCommand.js +37 -0
- package/dist-es/commands/GetOngoingConversationsCommand.js +37 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/WdaStreamServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +165 -0
- package/dist-es/protocols/Aws_restJson1.js +253 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/WdaStream.d.ts +30 -0
- package/dist-types/WdaStreamClient.d.ts +139 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +219 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +327 -0
- package/dist-types/commands/GetOngoingConversationsCommand.d.ts +275 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/WdaStreamServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +857 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +77 -0
|
@@ -0,0 +1,857 @@
|
|
|
1
|
+
import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class ForbiddenException extends __BaseException {
|
|
7
|
+
readonly name: "ForbiddenException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare class ValidationException extends __BaseException {
|
|
18
|
+
readonly name: "ValidationException";
|
|
19
|
+
readonly $fault: "client";
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* @enum
|
|
28
|
+
*/
|
|
29
|
+
export declare const LiveEventType: {
|
|
30
|
+
readonly CALL: "call";
|
|
31
|
+
readonly CALL_COMPLETE: "call_complete";
|
|
32
|
+
readonly CALL_INTERRUPTED: "call_interrupted";
|
|
33
|
+
readonly CALL_TRANSCRIPTION: "call_transcription";
|
|
34
|
+
readonly CALL_TRANSCRIPTION_COMPLETE: "call_transcription_complete";
|
|
35
|
+
readonly CHAT: "chat";
|
|
36
|
+
readonly CHAT_COMPLETE: "chat_complete";
|
|
37
|
+
readonly CHAT_INTERRUPTED: "chat_interrupted";
|
|
38
|
+
readonly CHAT_MISSED: "chat_missed";
|
|
39
|
+
readonly CONFERENCE: "conference";
|
|
40
|
+
readonly CONFERENCE_COMPLETE: "conference_complete";
|
|
41
|
+
readonly CONFERENCE_INTERRUPTED: "conference_interrupted";
|
|
42
|
+
readonly CONFERENCE_TRANSCRIPTION: "conference_transcription";
|
|
43
|
+
readonly CONFERENCE_TRANSCRIPTION_COMPLETE: "conference_transcription_complete";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export type LiveEventType = typeof LiveEventType[keyof typeof LiveEventType];
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
* @enum
|
|
52
|
+
*/
|
|
53
|
+
export declare const License: {
|
|
54
|
+
readonly XBEES: "x-bees";
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export type License = typeof License[keyof typeof License];
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export interface CallAnalyticsLiveCompleteEvent {
|
|
64
|
+
id: string;
|
|
65
|
+
pbx: string;
|
|
66
|
+
time: number;
|
|
67
|
+
company: string;
|
|
68
|
+
licenses: (License | string)[];
|
|
69
|
+
event: LiveEventType | string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export interface CallAnalyticsLiveInterruptedEvent {
|
|
75
|
+
id: string;
|
|
76
|
+
pbx: string;
|
|
77
|
+
time: number;
|
|
78
|
+
company: string;
|
|
79
|
+
licenses: (License | string)[];
|
|
80
|
+
event: LiveEventType | string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export interface CallFlowAttachmentDestination {
|
|
86
|
+
phone?: string;
|
|
87
|
+
name?: string;
|
|
88
|
+
email?: string;
|
|
89
|
+
userId?: string;
|
|
90
|
+
userExtension?: string;
|
|
91
|
+
userDepartment?: string;
|
|
92
|
+
groupId?: string;
|
|
93
|
+
groupName?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @enum
|
|
98
|
+
*/
|
|
99
|
+
export declare const CallFlowAttachmentType: {
|
|
100
|
+
readonly FAX: "FAX";
|
|
101
|
+
readonly VOICEMAIL: "VOICEMAIL";
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export type CallFlowAttachmentType = typeof CallFlowAttachmentType[keyof typeof CallFlowAttachmentType];
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
* @enum
|
|
110
|
+
*/
|
|
111
|
+
export declare const CallParticipantRole: {
|
|
112
|
+
readonly AGENT: "AGENT";
|
|
113
|
+
readonly CLIENT: "CLIENT";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export type CallParticipantRole = typeof CallParticipantRole[keyof typeof CallParticipantRole];
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @enum
|
|
122
|
+
*/
|
|
123
|
+
export declare const CallParticipantType: {
|
|
124
|
+
readonly LOCAL: "LOCAL";
|
|
125
|
+
readonly REMOTE: "REMOTE";
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
export type CallParticipantType = typeof CallParticipantType[keyof typeof CallParticipantType];
|
|
131
|
+
/**
|
|
132
|
+
* @public
|
|
133
|
+
* @enum
|
|
134
|
+
*/
|
|
135
|
+
export declare const CallDevice: {
|
|
136
|
+
readonly COLLABORATION_ANDROID: "COLLABORATION_ANDROID";
|
|
137
|
+
readonly COLLABORATION_IOS: "COLLABORATION_IOS";
|
|
138
|
+
readonly COLLABORATION_WEB: "COLLABORATION_WEB";
|
|
139
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
140
|
+
readonly WILDIX_DEVICE: "WILDIX_DEVICE";
|
|
141
|
+
readonly WILDIX_PHONE: "WILDIX_PHONE";
|
|
142
|
+
readonly XBEES_ANDROID: "XBEES_ANDROID";
|
|
143
|
+
readonly XBEES_IOS: "XBEES_IOS";
|
|
144
|
+
readonly XBEES_WEB: "XBEES_WEB";
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export type CallDevice = typeof CallDevice[keyof typeof CallDevice];
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export interface CallParticipant {
|
|
154
|
+
type: CallParticipantType | string;
|
|
155
|
+
phone?: string;
|
|
156
|
+
name?: string;
|
|
157
|
+
company?: string;
|
|
158
|
+
email?: string;
|
|
159
|
+
userId?: string;
|
|
160
|
+
userExtension?: string;
|
|
161
|
+
userDepartment?: string;
|
|
162
|
+
groupId?: string;
|
|
163
|
+
groupName?: string;
|
|
164
|
+
userAgent?: string;
|
|
165
|
+
userDevice?: CallDevice | string;
|
|
166
|
+
role: CallParticipantRole | string;
|
|
167
|
+
license?: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
* @enum
|
|
172
|
+
*/
|
|
173
|
+
export declare const ConversationStatus: {
|
|
174
|
+
readonly COMPLETED: "COMPLETED";
|
|
175
|
+
readonly MISSED: "MISSED";
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export type ConversationStatus = typeof ConversationStatus[keyof typeof ConversationStatus];
|
|
181
|
+
/**
|
|
182
|
+
* @public
|
|
183
|
+
* @enum
|
|
184
|
+
*/
|
|
185
|
+
export declare const CallDirection: {
|
|
186
|
+
readonly INBOUND: "INBOUND";
|
|
187
|
+
readonly INTERNAL: "INTERNAL";
|
|
188
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
189
|
+
readonly UNDEFINED: "UNDEFINED";
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
export type CallDirection = typeof CallDirection[keyof typeof CallDirection];
|
|
195
|
+
/**
|
|
196
|
+
* @public
|
|
197
|
+
* @enum
|
|
198
|
+
*/
|
|
199
|
+
export declare const CallFlowStatus: {
|
|
200
|
+
readonly CONNECTING: "CONNECTING";
|
|
201
|
+
readonly HOLD: "HOLD";
|
|
202
|
+
readonly TALKING: "TALKING";
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
export type CallFlowStatus = typeof CallFlowStatus[keyof typeof CallFlowStatus];
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
* @enum
|
|
211
|
+
*/
|
|
212
|
+
export declare const CallFlowTranscriptionStatus: {
|
|
213
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
214
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
|
|
220
|
+
/**
|
|
221
|
+
* @public
|
|
222
|
+
*/
|
|
223
|
+
export interface CallAnalyticsLiveProgressEventFlow {
|
|
224
|
+
status: CallFlowStatus | string;
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
* Time of the last status change in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.
|
|
228
|
+
*/
|
|
229
|
+
statusChangeDate: string;
|
|
230
|
+
startTime: number;
|
|
231
|
+
connectTime?: number;
|
|
232
|
+
talkTime?: number;
|
|
233
|
+
waitTime?: number;
|
|
234
|
+
caller?: CallParticipant;
|
|
235
|
+
callee?: CallParticipant;
|
|
236
|
+
service?: string;
|
|
237
|
+
serviceNumber?: string;
|
|
238
|
+
destination?: string;
|
|
239
|
+
direction?: CallDirection | string;
|
|
240
|
+
trunkName?: string;
|
|
241
|
+
trunkDirection?: string;
|
|
242
|
+
queueName?: string;
|
|
243
|
+
queueId?: string;
|
|
244
|
+
tags?: (string)[];
|
|
245
|
+
flags?: (string)[];
|
|
246
|
+
callerMos?: string;
|
|
247
|
+
calleeMos?: string;
|
|
248
|
+
xhoppersConfId?: string;
|
|
249
|
+
recordings?: (string)[];
|
|
250
|
+
mergeWith?: string;
|
|
251
|
+
splitReason?: string;
|
|
252
|
+
splitTransferType?: string;
|
|
253
|
+
remotePhone?: string;
|
|
254
|
+
remotePhoneCountryCode?: number;
|
|
255
|
+
remotePhoneCountryCodeStr?: string;
|
|
256
|
+
remotePhoneLocation?: string;
|
|
257
|
+
callStatus?: ConversationStatus | string;
|
|
258
|
+
transcriptionStatus: CallFlowTranscriptionStatus | string;
|
|
259
|
+
attachment?: string;
|
|
260
|
+
attachmentType?: CallFlowAttachmentType | string;
|
|
261
|
+
attachmentDestinations?: (CallFlowAttachmentDestination)[];
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
*/
|
|
266
|
+
export interface CallAnalyticsLiveProgressEvent {
|
|
267
|
+
id: string;
|
|
268
|
+
pbx: string;
|
|
269
|
+
time: number;
|
|
270
|
+
company: string;
|
|
271
|
+
licenses: (License | string)[];
|
|
272
|
+
event: LiveEventType | string;
|
|
273
|
+
start: string;
|
|
274
|
+
flows: (CallAnalyticsLiveProgressEventFlow)[];
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export interface CallAnalyticsLiveTranscriptionCompleteEvent {
|
|
280
|
+
id: string;
|
|
281
|
+
pbx: string;
|
|
282
|
+
time: number;
|
|
283
|
+
company: string;
|
|
284
|
+
licenses: (License | string)[];
|
|
285
|
+
event: LiveEventType | string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* @public
|
|
289
|
+
* @enum
|
|
290
|
+
*/
|
|
291
|
+
export declare const CallTranscriptionSpeaker: {
|
|
292
|
+
readonly CALLEE: "callee";
|
|
293
|
+
readonly CALLER: "caller";
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
298
|
+
export type CallTranscriptionSpeaker = typeof CallTranscriptionSpeaker[keyof typeof CallTranscriptionSpeaker];
|
|
299
|
+
/**
|
|
300
|
+
* @public
|
|
301
|
+
*/
|
|
302
|
+
export interface CallTranscriptionChunk {
|
|
303
|
+
id: string;
|
|
304
|
+
time: number;
|
|
305
|
+
speaker: CallTranscriptionSpeaker | string;
|
|
306
|
+
text: string;
|
|
307
|
+
language?: string;
|
|
308
|
+
isFinal: boolean;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
export interface CallAnalyticsLiveTranscriptionEvent {
|
|
314
|
+
id: string;
|
|
315
|
+
pbx: string;
|
|
316
|
+
time: number;
|
|
317
|
+
company: string;
|
|
318
|
+
licenses: (License | string)[];
|
|
319
|
+
event: LiveEventType | string;
|
|
320
|
+
flowIndex: number;
|
|
321
|
+
chunk: CallTranscriptionChunk;
|
|
322
|
+
participant: CallParticipant;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
export interface User {
|
|
328
|
+
id: string;
|
|
329
|
+
name?: string;
|
|
330
|
+
email?: string;
|
|
331
|
+
phone?: string;
|
|
332
|
+
picture?: string;
|
|
333
|
+
company?: string;
|
|
334
|
+
pbxDomain?: string;
|
|
335
|
+
pbxPort?: string;
|
|
336
|
+
pbxExtension?: string;
|
|
337
|
+
pbxSerial?: string;
|
|
338
|
+
pbxUserId?: string;
|
|
339
|
+
createdAt?: string;
|
|
340
|
+
updatedAt?: string;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @public
|
|
344
|
+
* @enum
|
|
345
|
+
*/
|
|
346
|
+
export declare const ChannelType: {
|
|
347
|
+
readonly DIRECT: "direct";
|
|
348
|
+
readonly GROUP: "group";
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* @public
|
|
352
|
+
*/
|
|
353
|
+
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
354
|
+
/**
|
|
355
|
+
* @public
|
|
356
|
+
* @enum
|
|
357
|
+
*/
|
|
358
|
+
export declare const ChatDirection: {
|
|
359
|
+
readonly INBOUND: "INBOUND";
|
|
360
|
+
readonly INTERNAL: "INTERNAL";
|
|
361
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
export type ChatDirection = typeof ChatDirection[keyof typeof ChatDirection];
|
|
367
|
+
/**
|
|
368
|
+
* @public
|
|
369
|
+
* @enum
|
|
370
|
+
*/
|
|
371
|
+
export declare const ChatParticipantRole: {
|
|
372
|
+
readonly AGENT: "AGENT";
|
|
373
|
+
readonly CLIENT: "CLIENT";
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* @public
|
|
377
|
+
*/
|
|
378
|
+
export type ChatParticipantRole = typeof ChatParticipantRole[keyof typeof ChatParticipantRole];
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
* @enum
|
|
382
|
+
*/
|
|
383
|
+
export declare const ChatParticipantType: {
|
|
384
|
+
readonly LOCAL: "LOCAL";
|
|
385
|
+
readonly REMOTE: "REMOTE";
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* @public
|
|
389
|
+
*/
|
|
390
|
+
export type ChatParticipantType = typeof ChatParticipantType[keyof typeof ChatParticipantType];
|
|
391
|
+
/**
|
|
392
|
+
* @public
|
|
393
|
+
*/
|
|
394
|
+
export interface ChatParticipant {
|
|
395
|
+
id: string;
|
|
396
|
+
name?: string;
|
|
397
|
+
email?: string;
|
|
398
|
+
phone?: string;
|
|
399
|
+
picture?: string;
|
|
400
|
+
company?: string;
|
|
401
|
+
pbxDomain?: string;
|
|
402
|
+
pbxPort?: string;
|
|
403
|
+
pbxExtension?: string;
|
|
404
|
+
pbxSerial?: string;
|
|
405
|
+
pbxUserId?: string;
|
|
406
|
+
createdAt?: string;
|
|
407
|
+
updatedAt?: string;
|
|
408
|
+
type: ChatParticipantType | string;
|
|
409
|
+
role: ChatParticipantRole | string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @public
|
|
413
|
+
* @enum
|
|
414
|
+
*/
|
|
415
|
+
export declare const ChatStatus: {
|
|
416
|
+
readonly COMPLETED: "COMPLETED";
|
|
417
|
+
readonly MISSED: "MISSED";
|
|
418
|
+
readonly WAITFIRSTREPLY: "WAITFIRSTREPLY";
|
|
419
|
+
readonly WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT";
|
|
420
|
+
readonly WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST";
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
export type ChatStatus = typeof ChatStatus[keyof typeof ChatStatus];
|
|
426
|
+
/**
|
|
427
|
+
* @public
|
|
428
|
+
* @enum
|
|
429
|
+
*/
|
|
430
|
+
export declare const ChatTag: {
|
|
431
|
+
readonly SMS: "sms";
|
|
432
|
+
readonly TELEPHONY: "telephony";
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* @public
|
|
436
|
+
*/
|
|
437
|
+
export type ChatTag = typeof ChatTag[keyof typeof ChatTag];
|
|
438
|
+
/**
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
export interface ChatAnalyticsLiveProgressEvent {
|
|
442
|
+
id: string;
|
|
443
|
+
time: number;
|
|
444
|
+
company: string;
|
|
445
|
+
event: LiveEventType | string;
|
|
446
|
+
start: string;
|
|
447
|
+
channelId: string;
|
|
448
|
+
channelType: ChannelType | string;
|
|
449
|
+
subject: string;
|
|
450
|
+
service?: string;
|
|
451
|
+
serviceTitle?: string;
|
|
452
|
+
participants: (ChatParticipant)[];
|
|
453
|
+
agents: (User)[];
|
|
454
|
+
agentsCount: number;
|
|
455
|
+
customers: (User)[];
|
|
456
|
+
customersCount: number;
|
|
457
|
+
tags?: (ChatTag | string)[];
|
|
458
|
+
direction: ChatDirection | string;
|
|
459
|
+
status: ChatStatus | string;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @public
|
|
463
|
+
*/
|
|
464
|
+
export interface ChatConsumeEventParticipants {
|
|
465
|
+
/**
|
|
466
|
+
* @public
|
|
467
|
+
* A list of Agents available in the Chat, up to 8 items, sorted by name.
|
|
468
|
+
*/
|
|
469
|
+
agents: (User)[];
|
|
470
|
+
agentsCount: number;
|
|
471
|
+
/**
|
|
472
|
+
* @public
|
|
473
|
+
* A list of Customers available in the Chat, up to 8 items, sorted by name.
|
|
474
|
+
*/
|
|
475
|
+
customers: (User)[];
|
|
476
|
+
customersCount: number;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* @public
|
|
480
|
+
* @enum
|
|
481
|
+
*/
|
|
482
|
+
export declare const ChatConsumeEventType: {
|
|
483
|
+
readonly CHAT_NEW: "CHAT.NEW";
|
|
484
|
+
readonly CHAT_UPDATE: "CHAT.UPDATE";
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* @public
|
|
488
|
+
*/
|
|
489
|
+
export type ChatConsumeEventType = typeof ChatConsumeEventType[keyof typeof ChatConsumeEventType];
|
|
490
|
+
/**
|
|
491
|
+
* @public
|
|
492
|
+
*/
|
|
493
|
+
export interface ChatNewConsumeEventData {
|
|
494
|
+
channelId: string;
|
|
495
|
+
channelType: ChannelType | string;
|
|
496
|
+
subject: string;
|
|
497
|
+
service?: string;
|
|
498
|
+
serviceTitle?: string;
|
|
499
|
+
participants: ChatConsumeEventParticipants;
|
|
500
|
+
tags?: (ChatTag | string)[];
|
|
501
|
+
sender: User;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* @public
|
|
505
|
+
*/
|
|
506
|
+
export interface ChatNewConsumeEvent {
|
|
507
|
+
type: ChatConsumeEventType | string;
|
|
508
|
+
company: string;
|
|
509
|
+
time: number;
|
|
510
|
+
data: ChatNewConsumeEventData;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* @public
|
|
514
|
+
*/
|
|
515
|
+
export interface ChatUpdateConsumeEventData {
|
|
516
|
+
channelId: string;
|
|
517
|
+
channelType: ChannelType | string;
|
|
518
|
+
subject: string;
|
|
519
|
+
service?: string;
|
|
520
|
+
serviceTitle?: string;
|
|
521
|
+
participants: ChatConsumeEventParticipants;
|
|
522
|
+
tags?: (ChatTag | string)[];
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @public
|
|
526
|
+
*/
|
|
527
|
+
export interface ChatUpdateConsumeEvent {
|
|
528
|
+
type: ChatConsumeEventType | string;
|
|
529
|
+
company: string;
|
|
530
|
+
time: number;
|
|
531
|
+
data: ChatUpdateConsumeEventData;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @public
|
|
535
|
+
*/
|
|
536
|
+
export interface ConferenceAnalyticsLiveCompleteEvent {
|
|
537
|
+
id: string;
|
|
538
|
+
time: number;
|
|
539
|
+
company: string;
|
|
540
|
+
event: LiveEventType | string;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
export interface ConferenceAnalyticsLiveInterruptedEvent {
|
|
546
|
+
id: string;
|
|
547
|
+
time: number;
|
|
548
|
+
company: string;
|
|
549
|
+
event: LiveEventType | string;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* @public
|
|
553
|
+
* @enum
|
|
554
|
+
*/
|
|
555
|
+
export declare const ConferenceParticipantRole: {
|
|
556
|
+
readonly AGENT: "AGENT";
|
|
557
|
+
readonly CLIENT: "CLIENT";
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* @public
|
|
561
|
+
*/
|
|
562
|
+
export type ConferenceParticipantRole = typeof ConferenceParticipantRole[keyof typeof ConferenceParticipantRole];
|
|
563
|
+
/**
|
|
564
|
+
* @public
|
|
565
|
+
* @enum
|
|
566
|
+
*/
|
|
567
|
+
export declare const ConferenceParticipantType: {
|
|
568
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
569
|
+
readonly EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN";
|
|
570
|
+
readonly PBX: "PBX";
|
|
571
|
+
readonly PBX_SIP: "PBX_SIP";
|
|
572
|
+
readonly XBS: "XBS";
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* @public
|
|
576
|
+
*/
|
|
577
|
+
export type ConferenceParticipantType = typeof ConferenceParticipantType[keyof typeof ConferenceParticipantType];
|
|
578
|
+
/**
|
|
579
|
+
* @public
|
|
580
|
+
*/
|
|
581
|
+
export interface ConferenceParticipant {
|
|
582
|
+
type: ConferenceParticipantType | string;
|
|
583
|
+
role?: ConferenceParticipantRole | string;
|
|
584
|
+
/**
|
|
585
|
+
* @public
|
|
586
|
+
* A unique identifier to avoid duplicates if user re-connect from different devices.
|
|
587
|
+
*/
|
|
588
|
+
jid?: string;
|
|
589
|
+
name?: string;
|
|
590
|
+
email?: string;
|
|
591
|
+
phone?: string;
|
|
592
|
+
department?: string;
|
|
593
|
+
company?: string;
|
|
594
|
+
pbxSerial?: string;
|
|
595
|
+
pbxExtension?: string;
|
|
596
|
+
xbsId?: string;
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* @public
|
|
600
|
+
* @enum
|
|
601
|
+
*/
|
|
602
|
+
export declare const ConferenceTranscriptionStatus: {
|
|
603
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
604
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
* @public
|
|
608
|
+
*/
|
|
609
|
+
export type ConferenceTranscriptionStatus = typeof ConferenceTranscriptionStatus[keyof typeof ConferenceTranscriptionStatus];
|
|
610
|
+
/**
|
|
611
|
+
* @public
|
|
612
|
+
*/
|
|
613
|
+
export interface ConferenceAnalyticsLiveProgressEvent {
|
|
614
|
+
id: string;
|
|
615
|
+
time: number;
|
|
616
|
+
company: string;
|
|
617
|
+
event: LiveEventType | string;
|
|
618
|
+
start: string;
|
|
619
|
+
subject: string;
|
|
620
|
+
participants: (ConferenceParticipant)[];
|
|
621
|
+
transcriptionStatus: ConferenceTranscriptionStatus | string;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* @public
|
|
625
|
+
*/
|
|
626
|
+
export interface ConferenceAnalyticsLiveTranscriptionCompleteEvent {
|
|
627
|
+
id: string;
|
|
628
|
+
time: number;
|
|
629
|
+
company: string;
|
|
630
|
+
event: LiveEventType | string;
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* @public
|
|
634
|
+
*/
|
|
635
|
+
export interface ConferenceTranscriptionChunk {
|
|
636
|
+
id: string;
|
|
637
|
+
time: number;
|
|
638
|
+
jid: string;
|
|
639
|
+
text: string;
|
|
640
|
+
language?: string;
|
|
641
|
+
isFinal: boolean;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @public
|
|
645
|
+
*/
|
|
646
|
+
export interface ConferenceAnalyticsLiveTranscriptionEvent {
|
|
647
|
+
id: string;
|
|
648
|
+
time: number;
|
|
649
|
+
company: string;
|
|
650
|
+
event: LiveEventType | string;
|
|
651
|
+
chunk: ConferenceTranscriptionChunk;
|
|
652
|
+
participant: ConferenceParticipant;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
export interface SmsInboundConsumeEventData {
|
|
658
|
+
/**
|
|
659
|
+
* @public
|
|
660
|
+
* A unique ID of the SMS message (example fb0ee129-f98f-4d7f-af1e-32b657aa3a56)
|
|
661
|
+
*/
|
|
662
|
+
id: string;
|
|
663
|
+
from: string;
|
|
664
|
+
to: string;
|
|
665
|
+
message: string;
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* @public
|
|
669
|
+
* @enum
|
|
670
|
+
*/
|
|
671
|
+
export declare const SmsConsumeEventType: {
|
|
672
|
+
readonly SMS_INBOUND: "SMS.INBOUND";
|
|
673
|
+
readonly SMS_STATUS: "SMS.STATUS";
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* @public
|
|
677
|
+
*/
|
|
678
|
+
export type SmsConsumeEventType = typeof SmsConsumeEventType[keyof typeof SmsConsumeEventType];
|
|
679
|
+
/**
|
|
680
|
+
* @public
|
|
681
|
+
*/
|
|
682
|
+
export interface SmsInboundConsumeEvent {
|
|
683
|
+
pbx: string;
|
|
684
|
+
company: string;
|
|
685
|
+
time: number;
|
|
686
|
+
type: SmsConsumeEventType | string;
|
|
687
|
+
data: SmsInboundConsumeEventData;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* @public
|
|
691
|
+
* @enum
|
|
692
|
+
*/
|
|
693
|
+
export declare const SmsChannelType: {
|
|
694
|
+
readonly ONE_WAY: "1-way-sms";
|
|
695
|
+
readonly TWO_WAY: "2-way-sms";
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* @public
|
|
699
|
+
*/
|
|
700
|
+
export type SmsChannelType = typeof SmsChannelType[keyof typeof SmsChannelType];
|
|
701
|
+
/**
|
|
702
|
+
* @public
|
|
703
|
+
* @enum
|
|
704
|
+
*/
|
|
705
|
+
export declare const SmsStatus: {
|
|
706
|
+
readonly DELIVERED: "delivered";
|
|
707
|
+
readonly ERROR: "error";
|
|
708
|
+
readonly SENT: "sent";
|
|
709
|
+
readonly TRYING: "trying";
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
export type SmsStatus = typeof SmsStatus[keyof typeof SmsStatus];
|
|
715
|
+
/**
|
|
716
|
+
* @public
|
|
717
|
+
*/
|
|
718
|
+
export interface SmsStatusConsumeEventData {
|
|
719
|
+
id: string;
|
|
720
|
+
from: string;
|
|
721
|
+
to: string;
|
|
722
|
+
status: SmsStatus | string;
|
|
723
|
+
channel: SmsChannelType | string;
|
|
724
|
+
parts: number;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* @public
|
|
728
|
+
*/
|
|
729
|
+
export interface SmsStatusConsumeEvent {
|
|
730
|
+
pbx: string;
|
|
731
|
+
company: string;
|
|
732
|
+
time: number;
|
|
733
|
+
type: SmsConsumeEventType | string;
|
|
734
|
+
data: SmsStatusConsumeEventData;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* @public
|
|
738
|
+
*/
|
|
739
|
+
export type ConsumeEventInputEvent = ConsumeEventInputEvent.ChatNewMember | ConsumeEventInputEvent.ChatUpdateMember | ConsumeEventInputEvent.SmsInboundMember | ConsumeEventInputEvent.SmsStatusMember | ConsumeEventInputEvent.$UnknownMember;
|
|
740
|
+
/**
|
|
741
|
+
* @public
|
|
742
|
+
*/
|
|
743
|
+
export declare namespace ConsumeEventInputEvent {
|
|
744
|
+
interface ChatNewMember {
|
|
745
|
+
chatNew: ChatNewConsumeEvent;
|
|
746
|
+
chatUpdate?: never;
|
|
747
|
+
smsInbound?: never;
|
|
748
|
+
smsStatus?: never;
|
|
749
|
+
$unknown?: never;
|
|
750
|
+
}
|
|
751
|
+
interface ChatUpdateMember {
|
|
752
|
+
chatNew?: never;
|
|
753
|
+
chatUpdate: ChatUpdateConsumeEvent;
|
|
754
|
+
smsInbound?: never;
|
|
755
|
+
smsStatus?: never;
|
|
756
|
+
$unknown?: never;
|
|
757
|
+
}
|
|
758
|
+
interface SmsInboundMember {
|
|
759
|
+
chatNew?: never;
|
|
760
|
+
chatUpdate?: never;
|
|
761
|
+
smsInbound: SmsInboundConsumeEvent;
|
|
762
|
+
smsStatus?: never;
|
|
763
|
+
$unknown?: never;
|
|
764
|
+
}
|
|
765
|
+
interface SmsStatusMember {
|
|
766
|
+
chatNew?: never;
|
|
767
|
+
chatUpdate?: never;
|
|
768
|
+
smsInbound?: never;
|
|
769
|
+
smsStatus: SmsStatusConsumeEvent;
|
|
770
|
+
$unknown?: never;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* @public
|
|
774
|
+
*/
|
|
775
|
+
interface $UnknownMember {
|
|
776
|
+
chatNew?: never;
|
|
777
|
+
chatUpdate?: never;
|
|
778
|
+
smsInbound?: never;
|
|
779
|
+
smsStatus?: never;
|
|
780
|
+
$unknown: [string, any];
|
|
781
|
+
}
|
|
782
|
+
interface Visitor<T> {
|
|
783
|
+
chatNew: (value: ChatNewConsumeEvent) => T;
|
|
784
|
+
chatUpdate: (value: ChatUpdateConsumeEvent) => T;
|
|
785
|
+
smsInbound: (value: SmsInboundConsumeEvent) => T;
|
|
786
|
+
smsStatus: (value: SmsStatusConsumeEvent) => T;
|
|
787
|
+
_: (name: string, value: any) => T;
|
|
788
|
+
}
|
|
789
|
+
const visit: <T>(value: ConsumeEventInputEvent, visitor: Visitor<T>) => T;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* @public
|
|
793
|
+
*/
|
|
794
|
+
export interface ConsumeEventInput {
|
|
795
|
+
event: ConsumeEventInputEvent;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* @public
|
|
799
|
+
*/
|
|
800
|
+
export interface ConsumeEventOutput {
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* @public
|
|
804
|
+
*/
|
|
805
|
+
export interface SmsInboundEvent {
|
|
806
|
+
pbx: string;
|
|
807
|
+
company: string;
|
|
808
|
+
time: number;
|
|
809
|
+
type: SmsConsumeEventType | string;
|
|
810
|
+
data: SmsInboundConsumeEventData;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* @public
|
|
814
|
+
*/
|
|
815
|
+
export interface SmsStatusEvent {
|
|
816
|
+
pbx: string;
|
|
817
|
+
company: string;
|
|
818
|
+
time: number;
|
|
819
|
+
type: SmsConsumeEventType | string;
|
|
820
|
+
data: SmsStatusConsumeEventData;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* @public
|
|
824
|
+
*/
|
|
825
|
+
export interface DescribeEventInput {
|
|
826
|
+
SmsInboundEvent?: SmsInboundEvent;
|
|
827
|
+
SmsStatusEvent?: SmsStatusEvent;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @public
|
|
831
|
+
*/
|
|
832
|
+
export interface DescribeEventOutput {
|
|
833
|
+
CallAnalyticsLiveProgressEvent?: CallAnalyticsLiveProgressEvent;
|
|
834
|
+
CallAnalyticsLiveCompleteEvent?: CallAnalyticsLiveCompleteEvent;
|
|
835
|
+
CallAnalyticsLiveInterruptedEvent?: CallAnalyticsLiveInterruptedEvent;
|
|
836
|
+
CallAnalyticsLiveTranscriptionEvent?: CallAnalyticsLiveTranscriptionEvent;
|
|
837
|
+
CallAnalyticsLiveTranscriptionCompleteEvent?: CallAnalyticsLiveTranscriptionCompleteEvent;
|
|
838
|
+
ConferenceAnalyticsLiveProgressEvent?: ConferenceAnalyticsLiveProgressEvent;
|
|
839
|
+
ConferenceAnalyticsLiveCompleteEvent?: ConferenceAnalyticsLiveCompleteEvent;
|
|
840
|
+
ConferenceAnalyticsLiveInterruptedEvent?: ConferenceAnalyticsLiveInterruptedEvent;
|
|
841
|
+
ConferenceAnalyticsLiveTranscriptionEvent?: ConferenceAnalyticsLiveTranscriptionEvent;
|
|
842
|
+
ConferenceAnalyticsLiveTranscriptionCompleteEvent?: ConferenceAnalyticsLiveTranscriptionCompleteEvent;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* @public
|
|
846
|
+
*/
|
|
847
|
+
export interface GetOngoingConversationsInput {
|
|
848
|
+
company?: string;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* @public
|
|
852
|
+
*/
|
|
853
|
+
export interface GetOngoingConversationsOutput {
|
|
854
|
+
calls: (CallAnalyticsLiveProgressEvent)[];
|
|
855
|
+
conferences: (ConferenceAnalyticsLiveProgressEvent)[];
|
|
856
|
+
chats: (ChatAnalyticsLiveProgressEvent)[];
|
|
857
|
+
}
|