@wildix/wda-stream-client 1.1.58 → 1.1.60
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 +0 -6
- package/dist-cjs/commands/index.js +0 -3
- package/dist-cjs/models/models_0.js +31 -67
- package/dist-cjs/models/models_1.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +3 -342
- package/dist-es/WdaStream.js +0 -6
- package/dist-es/commands/index.js +0 -3
- package/dist-es/models/models_0.js +29 -65
- package/dist-es/models/models_1.js +0 -6
- package/dist-es/protocols/Aws_restJson1.js +4 -337
- package/dist-types/WdaStream.d.ts +0 -21
- package/dist-types/WdaStreamClient.d.ts +2 -5
- package/dist-types/commands/ConsumeEventCommand.d.ts +88 -146
- package/dist-types/commands/DescribeEventCommand.d.ts +195 -336
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +1 -2
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +2 -3
- package/dist-types/commands/ListServicesCommand.d.ts +1 -0
- package/dist-types/commands/QueryConversationsCommand.d.ts +4 -6
- package/dist-types/commands/index.d.ts +0 -3
- package/dist-types/models/models_0.d.ts +739 -725
- package/dist-types/models/models_1.d.ts +18 -288
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -27
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/package.json +1 -1
- package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +0 -21
- package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +0 -21
- package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +0 -21
- package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +0 -17
- package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +0 -17
- package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +0 -17
- package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +0 -286
- package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +0 -190
- package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +0 -134
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingConferenceTranscriptionCommand = exports.
|
|
3
|
+
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingConferenceTranscriptionCommand = exports.de_GetOngoingConferenceCommand = exports.de_GetOngoingCallTranscriptionCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingConferenceTranscriptionCommand = exports.se_GetOngoingConferenceCommand = exports.se_GetOngoingCallTranscriptionCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("../models/WdaStreamServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
@@ -77,22 +77,6 @@ const se_GetOngoingCallCommand = async (input, context) => {
|
|
|
77
77
|
return b.build();
|
|
78
78
|
};
|
|
79
79
|
exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
|
|
80
|
-
const se_GetOngoingCallAnnotationsCommand = async (input, context) => {
|
|
81
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
82
|
-
const headers = {};
|
|
83
|
-
b.bp("/v2/stream/calls/{callId}/annotations");
|
|
84
|
-
b.p('callId', () => input.callId, '{callId}', false);
|
|
85
|
-
const query = (0, smithy_client_1.map)({
|
|
86
|
-
[_c]: [, input[_c]],
|
|
87
|
-
});
|
|
88
|
-
let body;
|
|
89
|
-
b.m("GET")
|
|
90
|
-
.h(headers)
|
|
91
|
-
.q(query)
|
|
92
|
-
.b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
exports.se_GetOngoingCallAnnotationsCommand = se_GetOngoingCallAnnotationsCommand;
|
|
96
80
|
const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
|
|
97
81
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
98
82
|
const headers = {};
|
|
@@ -109,22 +93,6 @@ const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
|
|
|
109
93
|
return b.build();
|
|
110
94
|
};
|
|
111
95
|
exports.se_GetOngoingCallTranscriptionCommand = se_GetOngoingCallTranscriptionCommand;
|
|
112
|
-
const se_GetOngoingChatAnnotationsCommand = async (input, context) => {
|
|
113
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/v2/stream/chats/{chatId}/annotations");
|
|
116
|
-
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
117
|
-
const query = (0, smithy_client_1.map)({
|
|
118
|
-
[_c]: [, input[_c]],
|
|
119
|
-
});
|
|
120
|
-
let body;
|
|
121
|
-
b.m("GET")
|
|
122
|
-
.h(headers)
|
|
123
|
-
.q(query)
|
|
124
|
-
.b(body);
|
|
125
|
-
return b.build();
|
|
126
|
-
};
|
|
127
|
-
exports.se_GetOngoingChatAnnotationsCommand = se_GetOngoingChatAnnotationsCommand;
|
|
128
96
|
const se_GetOngoingConferenceCommand = async (input, context) => {
|
|
129
97
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
130
98
|
const headers = {};
|
|
@@ -141,22 +109,6 @@ const se_GetOngoingConferenceCommand = async (input, context) => {
|
|
|
141
109
|
return b.build();
|
|
142
110
|
};
|
|
143
111
|
exports.se_GetOngoingConferenceCommand = se_GetOngoingConferenceCommand;
|
|
144
|
-
const se_GetOngoingConferenceAnnotationsCommand = async (input, context) => {
|
|
145
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/v2/stream/conferences/{conferenceId}/annotations");
|
|
148
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
149
|
-
const query = (0, smithy_client_1.map)({
|
|
150
|
-
[_c]: [, input[_c]],
|
|
151
|
-
});
|
|
152
|
-
let body;
|
|
153
|
-
b.m("GET")
|
|
154
|
-
.h(headers)
|
|
155
|
-
.q(query)
|
|
156
|
-
.b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
exports.se_GetOngoingConferenceAnnotationsCommand = se_GetOngoingConferenceAnnotationsCommand;
|
|
160
112
|
const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
|
|
161
113
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
162
114
|
const headers = {};
|
|
@@ -280,9 +232,7 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
280
232
|
});
|
|
281
233
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
282
234
|
const doc = (0, smithy_client_1.take)(data, {
|
|
283
|
-
'CallAnalyticsAnnotationsRecordEvent': _ => de_CallAnalyticsAnnotationsRecordEvent(_, context),
|
|
284
235
|
'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
|
|
285
|
-
'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
286
236
|
'CallAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
287
237
|
'CallAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
288
238
|
'CallAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
@@ -290,8 +240,6 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
290
240
|
'CallAnalyticsRecordEvent': smithy_client_1._json,
|
|
291
241
|
'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
|
|
292
242
|
'CallEventType': smithy_client_1.expectString,
|
|
293
|
-
'ChatAnalyticsAnnotationsRecordEvent': _ => de_ChatAnalyticsAnnotationsRecordEvent(_, context),
|
|
294
|
-
'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
295
243
|
'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
296
244
|
'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
297
245
|
'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
@@ -300,8 +248,6 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
300
248
|
'ChatAnalyticsRecordEvent': smithy_client_1._json,
|
|
301
249
|
'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
|
|
302
250
|
'ChatEventType': smithy_client_1.expectString,
|
|
303
|
-
'ConferenceAnalyticsAnnotationsRecordEvent': _ => de_ConferenceAnalyticsAnnotationsRecordEvent(_, context),
|
|
304
|
-
'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
305
251
|
'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
306
252
|
'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
307
253
|
'ConferenceAnalyticsLiveJoinEvent': smithy_client_1._json,
|
|
@@ -315,14 +261,15 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
315
261
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
316
262
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
317
263
|
'PresenceEventType': smithy_client_1.expectString,
|
|
264
|
+
'ServiceAgentsStatusAnalyticsRecordEvent': smithy_client_1._json,
|
|
318
265
|
'ServiceAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
319
266
|
'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
320
267
|
'ServiceCallAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
321
268
|
'ServiceCallAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
269
|
+
'ServiceCallAnalyticsRecordEvent': smithy_client_1._json,
|
|
322
270
|
'ServiceCallEventType': smithy_client_1.expectString,
|
|
323
271
|
'ServiceEventType': smithy_client_1.expectString,
|
|
324
272
|
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
325
|
-
'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
|
|
326
273
|
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
327
274
|
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
328
275
|
'WebhookCallLiveProgressEvent': smithy_client_1._json,
|
|
@@ -335,14 +282,12 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
335
282
|
'WebhookCallTranscriptionCompletedEvent': smithy_client_1._json,
|
|
336
283
|
'WebhookCallTranscriptionTextCompletedEvent': smithy_client_1._json,
|
|
337
284
|
'WebhookChatCompletedEvent': smithy_client_1._json,
|
|
338
|
-
'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
|
|
339
285
|
'WebhookChatLiveCompletedEvent': smithy_client_1._json,
|
|
340
286
|
'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
|
|
341
287
|
'WebhookChatLiveProgressEvent': smithy_client_1._json,
|
|
342
288
|
'WebhookChatManagerMissedEvent': smithy_client_1._json,
|
|
343
289
|
'WebhookChatSummaryCompletedEvent': smithy_client_1._json,
|
|
344
290
|
'WebhookConferenceCompletedEvent': smithy_client_1._json,
|
|
345
|
-
'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
|
|
346
291
|
'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
|
|
347
292
|
'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
|
|
348
293
|
'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
|
|
@@ -404,23 +349,6 @@ const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
404
349
|
return contents;
|
|
405
350
|
};
|
|
406
351
|
exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
|
|
407
|
-
const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
|
|
408
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
409
|
-
return de_CommandError(output, context);
|
|
410
|
-
}
|
|
411
|
-
const contents = (0, smithy_client_1.map)({
|
|
412
|
-
$metadata: deserializeMetadata(output),
|
|
413
|
-
});
|
|
414
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
415
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
416
|
-
'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
|
|
417
|
-
'company': smithy_client_1.expectString,
|
|
418
|
-
'flows': smithy_client_1._json,
|
|
419
|
-
});
|
|
420
|
-
Object.assign(contents, doc);
|
|
421
|
-
return contents;
|
|
422
|
-
};
|
|
423
|
-
exports.de_GetOngoingCallAnnotationsCommand = de_GetOngoingCallAnnotationsCommand;
|
|
424
352
|
const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
425
353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
354
|
return de_CommandError(output, context);
|
|
@@ -438,22 +366,6 @@ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
|
438
366
|
return contents;
|
|
439
367
|
};
|
|
440
368
|
exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
|
|
441
|
-
const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = (0, smithy_client_1.map)({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
449
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
450
|
-
'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
|
|
451
|
-
'chat': smithy_client_1._json,
|
|
452
|
-
});
|
|
453
|
-
Object.assign(contents, doc);
|
|
454
|
-
return contents;
|
|
455
|
-
};
|
|
456
|
-
exports.de_GetOngoingChatAnnotationsCommand = de_GetOngoingChatAnnotationsCommand;
|
|
457
369
|
const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
458
370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
371
|
return de_CommandError(output, context);
|
|
@@ -469,22 +381,6 @@ const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
|
469
381
|
return contents;
|
|
470
382
|
};
|
|
471
383
|
exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
|
|
472
|
-
const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const contents = (0, smithy_client_1.map)({
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
});
|
|
479
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
480
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
481
|
-
'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
|
|
482
|
-
'conference': smithy_client_1._json,
|
|
483
|
-
});
|
|
484
|
-
Object.assign(contents, doc);
|
|
485
|
-
return contents;
|
|
486
|
-
};
|
|
487
|
-
exports.de_GetOngoingConferenceAnnotationsCommand = de_GetOngoingConferenceAnnotationsCommand;
|
|
488
384
|
const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
489
385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
386
|
return de_CommandError(output, context);
|
|
@@ -658,83 +554,10 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
658
554
|
const se_Document = (input, context) => {
|
|
659
555
|
return input;
|
|
660
556
|
};
|
|
661
|
-
const se_Annotation = (input, context) => {
|
|
662
|
-
return (0, smithy_client_1.take)(input, {
|
|
663
|
-
'id': [],
|
|
664
|
-
'payload': _ => se_AnnotationPayload(_, context),
|
|
665
|
-
'source': smithy_client_1._json,
|
|
666
|
-
'time': [],
|
|
667
|
-
});
|
|
668
|
-
};
|
|
669
|
-
const se_AnnotationPayload = (input, context) => {
|
|
670
|
-
return models_0_1.AnnotationPayload.visit(input, {
|
|
671
|
-
result: value => ({ "result": se_AnnotationResultValue(value, context) }),
|
|
672
|
-
tag: value => ({ "tag": value }),
|
|
673
|
-
text: value => ({ "text": value }),
|
|
674
|
-
variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
|
|
675
|
-
_: (name, value) => ({ [name]: value })
|
|
676
|
-
});
|
|
677
|
-
};
|
|
678
|
-
const se_AnnotationResultValue = (input, context) => {
|
|
679
|
-
return (0, smithy_client_1.take)(input, {
|
|
680
|
-
'value': _ => se_Document(_, context),
|
|
681
|
-
});
|
|
682
|
-
};
|
|
683
|
-
const se_AnnotationVariablesValue = (input, context) => {
|
|
684
|
-
return (0, smithy_client_1.take)(input, {
|
|
685
|
-
'value': _ => se_Document(_, context),
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
|
-
const se_CallAnnotateConsumeEvent = (input, context) => {
|
|
689
|
-
return (0, smithy_client_1.take)(input, {
|
|
690
|
-
'company': [],
|
|
691
|
-
'data': _ => se_CallAnnotateConsumeEventData(_, context),
|
|
692
|
-
'id': [],
|
|
693
|
-
'pbx': [],
|
|
694
|
-
'time': [],
|
|
695
|
-
'type': [],
|
|
696
|
-
});
|
|
697
|
-
};
|
|
698
|
-
const se_CallAnnotateConsumeEventData = (input, context) => {
|
|
699
|
-
return (0, smithy_client_1.take)(input, {
|
|
700
|
-
'annotation': _ => se_Annotation(_, context),
|
|
701
|
-
'flowIndex': [],
|
|
702
|
-
});
|
|
703
|
-
};
|
|
704
|
-
const se_ChatAnnotateConsumeEvent = (input, context) => {
|
|
705
|
-
return (0, smithy_client_1.take)(input, {
|
|
706
|
-
'company': [],
|
|
707
|
-
'data': _ => se_ChatAnnotateConsumeEventData(_, context),
|
|
708
|
-
'time': [],
|
|
709
|
-
'type': [],
|
|
710
|
-
});
|
|
711
|
-
};
|
|
712
|
-
const se_ChatAnnotateConsumeEventData = (input, context) => {
|
|
713
|
-
return (0, smithy_client_1.take)(input, {
|
|
714
|
-
'annotation': _ => se_Annotation(_, context),
|
|
715
|
-
'chatId': [],
|
|
716
|
-
});
|
|
717
|
-
};
|
|
718
|
-
const se_ConferenceAnnotateConsumeEvent = (input, context) => {
|
|
719
|
-
return (0, smithy_client_1.take)(input, {
|
|
720
|
-
'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
|
|
721
|
-
'room': [],
|
|
722
|
-
'session': [],
|
|
723
|
-
'time': [],
|
|
724
|
-
'type': [],
|
|
725
|
-
});
|
|
726
|
-
};
|
|
727
|
-
const se_ConferenceAnnotateConsumeEventData = (input, context) => {
|
|
728
|
-
return (0, smithy_client_1.take)(input, {
|
|
729
|
-
'annotation': _ => se_Annotation(_, context),
|
|
730
|
-
'company': [],
|
|
731
|
-
});
|
|
732
|
-
};
|
|
733
557
|
const se_ConsumeEventInputEvent = (input, context) => {
|
|
734
558
|
return models_0_1.ConsumeEventInputEvent.visit(input, {
|
|
735
559
|
callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
|
|
736
560
|
callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
|
|
737
|
-
callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
|
|
738
561
|
callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
|
|
739
562
|
callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
|
|
740
563
|
callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
|
|
@@ -747,11 +570,9 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
747
570
|
callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
|
|
748
571
|
callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
|
|
749
572
|
callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
|
|
750
|
-
chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
|
|
751
573
|
chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
|
|
752
574
|
chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
|
|
753
575
|
chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
|
|
754
|
-
conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
|
|
755
576
|
conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
|
|
756
577
|
conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
|
|
757
578
|
conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
|
|
@@ -841,63 +662,6 @@ const se_WhatsAppStatusEvent = (input, context) => {
|
|
|
841
662
|
const de_Document = (output, context) => {
|
|
842
663
|
return output;
|
|
843
664
|
};
|
|
844
|
-
const de_Annotation = (output, context) => {
|
|
845
|
-
return (0, smithy_client_1.take)(output, {
|
|
846
|
-
'id': smithy_client_1.expectString,
|
|
847
|
-
'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
|
|
848
|
-
'source': smithy_client_1._json,
|
|
849
|
-
'time': smithy_client_1.expectLong,
|
|
850
|
-
});
|
|
851
|
-
};
|
|
852
|
-
const de_AnnotationPayload = (output, context) => {
|
|
853
|
-
if (output.result != null) {
|
|
854
|
-
return {
|
|
855
|
-
result: de_AnnotationResultValue(output.result, context)
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
|
|
859
|
-
return { tag: (0, smithy_client_1.expectString)(output.tag) };
|
|
860
|
-
}
|
|
861
|
-
if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
|
|
862
|
-
return { text: (0, smithy_client_1.expectString)(output.text) };
|
|
863
|
-
}
|
|
864
|
-
if (output.variables != null) {
|
|
865
|
-
return {
|
|
866
|
-
variables: de_AnnotationVariablesValue(output.variables, context)
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
return { $unknown: Object.entries(output)[0] };
|
|
870
|
-
};
|
|
871
|
-
const de_AnnotationResultValue = (output, context) => {
|
|
872
|
-
return (0, smithy_client_1.take)(output, {
|
|
873
|
-
'value': (_) => de_Document(_, context),
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
const de_Annotations = (output, context) => {
|
|
877
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
878
|
-
return de_Annotation(entry, context);
|
|
879
|
-
});
|
|
880
|
-
return retVal;
|
|
881
|
-
};
|
|
882
|
-
const de_AnnotationVariablesValue = (output, context) => {
|
|
883
|
-
return (0, smithy_client_1.take)(output, {
|
|
884
|
-
'value': (_) => de_Document(_, context),
|
|
885
|
-
});
|
|
886
|
-
};
|
|
887
|
-
const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
888
|
-
return (0, smithy_client_1.take)(output, {
|
|
889
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
890
|
-
'callStartTime': smithy_client_1.expectLong,
|
|
891
|
-
'company': smithy_client_1.expectString,
|
|
892
|
-
'flowIndex': smithy_client_1.expectInt32,
|
|
893
|
-
'flowStartTime': smithy_client_1.expectLong,
|
|
894
|
-
'id': smithy_client_1.expectString,
|
|
895
|
-
'licenses': smithy_client_1._json,
|
|
896
|
-
'pbx': smithy_client_1.expectString,
|
|
897
|
-
'time': smithy_client_1.expectLong,
|
|
898
|
-
'type': smithy_client_1.expectString,
|
|
899
|
-
});
|
|
900
|
-
};
|
|
901
665
|
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
902
666
|
return (0, smithy_client_1.take)(output, {
|
|
903
667
|
'company': smithy_client_1.expectString,
|
|
@@ -911,26 +675,6 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
911
675
|
'type': smithy_client_1.expectString,
|
|
912
676
|
});
|
|
913
677
|
};
|
|
914
|
-
const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
915
|
-
return (0, smithy_client_1.take)(output, {
|
|
916
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
917
|
-
'callStartTime': smithy_client_1.expectLong,
|
|
918
|
-
'company': smithy_client_1.expectString,
|
|
919
|
-
'event': smithy_client_1.expectString,
|
|
920
|
-
'flowIndex': smithy_client_1.expectInt32,
|
|
921
|
-
'flowStartTime': smithy_client_1.expectLong,
|
|
922
|
-
'id': smithy_client_1.expectString,
|
|
923
|
-
'licenses': smithy_client_1._json,
|
|
924
|
-
'pbx': smithy_client_1.expectString,
|
|
925
|
-
'time': smithy_client_1.expectLong,
|
|
926
|
-
});
|
|
927
|
-
};
|
|
928
|
-
const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
929
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
930
|
-
return de_CallAnalyticsLiveAnnotationEvent(entry, context);
|
|
931
|
-
});
|
|
932
|
-
return retVal;
|
|
933
|
-
};
|
|
934
678
|
const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
|
|
935
679
|
return (0, smithy_client_1.take)(output, {
|
|
936
680
|
'callStartTime': smithy_client_1.expectLong,
|
|
@@ -1002,32 +746,6 @@ const de_CallTranscriptionList = (output, context) => {
|
|
|
1002
746
|
});
|
|
1003
747
|
return retVal;
|
|
1004
748
|
};
|
|
1005
|
-
const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
1006
|
-
return (0, smithy_client_1.take)(output, {
|
|
1007
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1008
|
-
'chatId': smithy_client_1.expectString,
|
|
1009
|
-
'company': smithy_client_1.expectString,
|
|
1010
|
-
'id': smithy_client_1.expectString,
|
|
1011
|
-
'time': smithy_client_1.expectLong,
|
|
1012
|
-
'type': smithy_client_1.expectString,
|
|
1013
|
-
});
|
|
1014
|
-
};
|
|
1015
|
-
const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
1016
|
-
return (0, smithy_client_1.take)(output, {
|
|
1017
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
1018
|
-
'chatId': smithy_client_1.expectString,
|
|
1019
|
-
'company': smithy_client_1.expectString,
|
|
1020
|
-
'event': smithy_client_1.expectString,
|
|
1021
|
-
'id': smithy_client_1.expectString,
|
|
1022
|
-
'time': smithy_client_1.expectLong,
|
|
1023
|
-
});
|
|
1024
|
-
};
|
|
1025
|
-
const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
1026
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1027
|
-
return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
|
|
1028
|
-
});
|
|
1029
|
-
return retVal;
|
|
1030
|
-
};
|
|
1031
749
|
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
1032
750
|
return (0, smithy_client_1.take)(output, {
|
|
1033
751
|
'chatId': smithy_client_1.expectString,
|
|
@@ -1038,41 +756,6 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
|
1038
756
|
'type': smithy_client_1.expectString,
|
|
1039
757
|
});
|
|
1040
758
|
};
|
|
1041
|
-
const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
1042
|
-
return (0, smithy_client_1.take)(output, {
|
|
1043
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1044
|
-
'company': smithy_client_1.expectString,
|
|
1045
|
-
'id': smithy_client_1.expectString,
|
|
1046
|
-
'time': smithy_client_1.expectLong,
|
|
1047
|
-
'type': smithy_client_1.expectString,
|
|
1048
|
-
});
|
|
1049
|
-
};
|
|
1050
|
-
const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
1051
|
-
return (0, smithy_client_1.take)(output, {
|
|
1052
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
1053
|
-
'company': smithy_client_1.expectString,
|
|
1054
|
-
'event': smithy_client_1.expectString,
|
|
1055
|
-
'id': smithy_client_1.expectString,
|
|
1056
|
-
'time': smithy_client_1.expectLong,
|
|
1057
|
-
});
|
|
1058
|
-
};
|
|
1059
|
-
const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
1060
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1061
|
-
return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
|
|
1062
|
-
});
|
|
1063
|
-
return retVal;
|
|
1064
|
-
};
|
|
1065
|
-
const de_WebhookCallLiveAnnotationEvent = (output, context) => {
|
|
1066
|
-
return (0, smithy_client_1.take)(output, {
|
|
1067
|
-
'company': smithy_client_1.expectString,
|
|
1068
|
-
'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
1069
|
-
'id': smithy_client_1.expectString,
|
|
1070
|
-
'integrationId': smithy_client_1.expectString,
|
|
1071
|
-
'pbx': smithy_client_1.expectString,
|
|
1072
|
-
'time': smithy_client_1.expectLong,
|
|
1073
|
-
'type': smithy_client_1.expectString,
|
|
1074
|
-
});
|
|
1075
|
-
};
|
|
1076
759
|
const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
1077
760
|
return (0, smithy_client_1.take)(output, {
|
|
1078
761
|
'company': smithy_client_1.expectString,
|
|
@@ -1084,28 +767,6 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
|
1084
767
|
'type': smithy_client_1.expectString,
|
|
1085
768
|
});
|
|
1086
769
|
};
|
|
1087
|
-
const de_WebhookChatLiveAnnotationEvent = (output, context) => {
|
|
1088
|
-
return (0, smithy_client_1.take)(output, {
|
|
1089
|
-
'company': smithy_client_1.expectString,
|
|
1090
|
-
'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
1091
|
-
'id': smithy_client_1.expectString,
|
|
1092
|
-
'integrationId': smithy_client_1.expectString,
|
|
1093
|
-
'pbx': smithy_client_1.expectString,
|
|
1094
|
-
'time': smithy_client_1.expectLong,
|
|
1095
|
-
'type': smithy_client_1.expectString,
|
|
1096
|
-
});
|
|
1097
|
-
};
|
|
1098
|
-
const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
|
|
1099
|
-
return (0, smithy_client_1.take)(output, {
|
|
1100
|
-
'company': smithy_client_1.expectString,
|
|
1101
|
-
'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
1102
|
-
'id': smithy_client_1.expectString,
|
|
1103
|
-
'integrationId': smithy_client_1.expectString,
|
|
1104
|
-
'pbx': smithy_client_1.expectString,
|
|
1105
|
-
'time': smithy_client_1.expectLong,
|
|
1106
|
-
'type': smithy_client_1.expectString,
|
|
1107
|
-
});
|
|
1108
|
-
};
|
|
1109
770
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
1110
771
|
return (0, smithy_client_1.take)(output, {
|
|
1111
772
|
'connectionId': smithy_client_1.expectString,
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -2,11 +2,8 @@ import { WdaStreamClient, } from "./WdaStreamClient";
|
|
|
2
2
|
import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
|
|
5
|
-
import { GetOngoingCallAnnotationsCommand, } from "./commands/GetOngoingCallAnnotationsCommand";
|
|
6
5
|
import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
|
|
7
6
|
import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
8
|
-
import { GetOngoingChatAnnotationsCommand, } from "./commands/GetOngoingChatAnnotationsCommand";
|
|
9
|
-
import { GetOngoingConferenceAnnotationsCommand, } from "./commands/GetOngoingConferenceAnnotationsCommand";
|
|
10
7
|
import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
|
|
11
8
|
import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
12
9
|
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
@@ -20,11 +17,8 @@ const commands = {
|
|
|
20
17
|
DescribeEventCommand,
|
|
21
18
|
GetConferenceIdCommand,
|
|
22
19
|
GetOngoingCallCommand,
|
|
23
|
-
GetOngoingCallAnnotationsCommand,
|
|
24
20
|
GetOngoingCallTranscriptionCommand,
|
|
25
|
-
GetOngoingChatAnnotationsCommand,
|
|
26
21
|
GetOngoingConferenceCommand,
|
|
27
|
-
GetOngoingConferenceAnnotationsCommand,
|
|
28
22
|
GetOngoingConferenceTranscriptionCommand,
|
|
29
23
|
ListServicesCommand,
|
|
30
24
|
QueryConversationsCommand,
|
|
@@ -2,11 +2,8 @@ export * from "./ConsumeEventCommand";
|
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
4
|
export * from "./GetOngoingCallCommand";
|
|
5
|
-
export * from "./GetOngoingCallAnnotationsCommand";
|
|
6
5
|
export * from "./GetOngoingCallTranscriptionCommand";
|
|
7
|
-
export * from "./GetOngoingChatAnnotationsCommand";
|
|
8
6
|
export * from "./GetOngoingConferenceCommand";
|
|
9
|
-
export * from "./GetOngoingConferenceAnnotationsCommand";
|
|
10
7
|
export * from "./GetOngoingConferenceTranscriptionCommand";
|
|
11
8
|
export * from "./ListServicesCommand";
|
|
12
9
|
export * from "./QueryConversationsCommand";
|