@wildix/wda-history-client 1.2.22 → 1.2.24
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/WdaHistory.js +0 -6
- package/dist-cjs/commands/index.js +0 -3
- package/dist-cjs/models/models_0.js +13 -80
- package/dist-cjs/protocols/Aws_restJson1.js +1 -222
- package/dist-es/WdaHistory.js +0 -6
- package/dist-es/commands/index.js +0 -3
- package/dist-es/models/models_0.js +12 -75
- package/dist-es/protocols/Aws_restJson1.js +2 -217
- package/dist-types/WdaHistory.d.ts +0 -21
- package/dist-types/WdaHistoryClient.d.ts +2 -5
- package/dist-types/commands/GetCallCommand.d.ts +2 -2
- package/dist-types/commands/GetCallTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/GetChatCommand.d.ts +1 -2
- package/dist-types/commands/GetChatTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/GetConferenceCommand.d.ts +1 -2
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/QueryConversationsCommand.d.ts +3 -4
- package/dist-types/commands/QueryUserCallsCommand.d.ts +2 -2
- package/dist-types/commands/UpdateCallCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +0 -3
- package/dist-types/models/models_0.d.ts +33 -289
- 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/GetCallAnnotationsCommand.js +0 -21
- package/dist-cjs/commands/GetChatAnnotationsCommand.js +0 -21
- package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +0 -21
- package/dist-es/commands/GetCallAnnotationsCommand.js +0 -17
- package/dist-es/commands/GetChatAnnotationsCommand.js +0 -17
- package/dist-es/commands/GetConferenceAnnotationsCommand.js +0 -17
- package/dist-types/commands/GetCallAnnotationsCommand.d.ts +0 -115
- package/dist-types/commands/GetChatAnnotationsCommand.d.ts +0 -108
- package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +0 -107
|
@@ -33,53 +33,6 @@ export const ConversationStatus = {
|
|
|
33
33
|
COMPLETED: "COMPLETED",
|
|
34
34
|
MISSED: "MISSED",
|
|
35
35
|
};
|
|
36
|
-
export class CallAnnotationsNotFoundException extends __BaseException {
|
|
37
|
-
name = "CallAnnotationsNotFoundException";
|
|
38
|
-
$fault = "client";
|
|
39
|
-
constructor(opts) {
|
|
40
|
-
super({
|
|
41
|
-
name: "CallAnnotationsNotFoundException",
|
|
42
|
-
$fault: "client",
|
|
43
|
-
...opts
|
|
44
|
-
});
|
|
45
|
-
Object.setPrototypeOf(this, CallAnnotationsNotFoundException.prototype);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export var AnnotationPayload;
|
|
49
|
-
(function (AnnotationPayload) {
|
|
50
|
-
AnnotationPayload.visit = (value, visitor) => {
|
|
51
|
-
if (value.tag !== undefined)
|
|
52
|
-
return visitor.tag(value.tag);
|
|
53
|
-
if (value.text !== undefined)
|
|
54
|
-
return visitor.text(value.text);
|
|
55
|
-
if (value.variables !== undefined)
|
|
56
|
-
return visitor.variables(value.variables);
|
|
57
|
-
if (value.result !== undefined)
|
|
58
|
-
return visitor.result(value.result);
|
|
59
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
60
|
-
};
|
|
61
|
-
})(AnnotationPayload || (AnnotationPayload = {}));
|
|
62
|
-
export const AnnotationSourceType = {
|
|
63
|
-
CHATBOT: "chatbot",
|
|
64
|
-
SYSTEM: "system",
|
|
65
|
-
USER: "user",
|
|
66
|
-
VOICEBOT: "voicebot",
|
|
67
|
-
};
|
|
68
|
-
export const License = {
|
|
69
|
-
UC: "uc",
|
|
70
|
-
XBEES: "x-bees",
|
|
71
|
-
};
|
|
72
|
-
export const RecordType = {
|
|
73
|
-
CALL: "call",
|
|
74
|
-
CALL_ANNOTATIONS: "call_annotations",
|
|
75
|
-
CALL_TRANSCRIPTION: "call_transcription",
|
|
76
|
-
CHAT: "chat",
|
|
77
|
-
CHAT_ANNOTATIONS: "chat_annotations",
|
|
78
|
-
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
79
|
-
CONFERENCE: "conference",
|
|
80
|
-
CONFERENCE_ANNOTATIONS: "conference_annotations",
|
|
81
|
-
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
82
|
-
};
|
|
83
36
|
export class CallNotFoundException extends __BaseException {
|
|
84
37
|
name = "CallNotFoundException";
|
|
85
38
|
$fault = "client";
|
|
@@ -92,10 +45,6 @@ export class CallNotFoundException extends __BaseException {
|
|
|
92
45
|
Object.setPrototypeOf(this, CallNotFoundException.prototype);
|
|
93
46
|
}
|
|
94
47
|
}
|
|
95
|
-
export const AnnotationsStatus = {
|
|
96
|
-
AVAILABLE: "AVAILABLE",
|
|
97
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
98
|
-
};
|
|
99
48
|
export const CallRecordOwner = {
|
|
100
49
|
CALLEE: "callee",
|
|
101
50
|
CALLER: "caller",
|
|
@@ -145,11 +94,23 @@ export const CallDevice = {
|
|
|
145
94
|
XBEES_IOS: "XBEES_IOS",
|
|
146
95
|
XBEES_WEB: "XBEES_WEB",
|
|
147
96
|
};
|
|
97
|
+
export const License = {
|
|
98
|
+
UC: "uc",
|
|
99
|
+
XBEES: "x-bees",
|
|
100
|
+
};
|
|
148
101
|
export const CallFlowTranscriptionStatus = {
|
|
149
102
|
AVAILABLE: "AVAILABLE",
|
|
150
103
|
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
151
104
|
UNAVAILABLE: "UNAVAILABLE",
|
|
152
105
|
};
|
|
106
|
+
export const RecordType = {
|
|
107
|
+
CALL: "call",
|
|
108
|
+
CALL_TRANSCRIPTION: "call_transcription",
|
|
109
|
+
CHAT: "chat",
|
|
110
|
+
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
111
|
+
CONFERENCE: "conference",
|
|
112
|
+
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
113
|
+
};
|
|
153
114
|
export const CallTranscriptionSpeaker = {
|
|
154
115
|
CALLEE: "callee",
|
|
155
116
|
CALLER: "caller",
|
|
@@ -172,18 +133,6 @@ export const TranscriptionSentiment = {
|
|
|
172
133
|
NEUTRAL: "NEUTRAL",
|
|
173
134
|
POSITIVE: "POSITIVE",
|
|
174
135
|
};
|
|
175
|
-
export class ChatAnnotationsNotFoundException extends __BaseException {
|
|
176
|
-
name = "ChatAnnotationsNotFoundException";
|
|
177
|
-
$fault = "client";
|
|
178
|
-
constructor(opts) {
|
|
179
|
-
super({
|
|
180
|
-
name: "ChatAnnotationsNotFoundException",
|
|
181
|
-
$fault: "client",
|
|
182
|
-
...opts
|
|
183
|
-
});
|
|
184
|
-
Object.setPrototypeOf(this, ChatAnnotationsNotFoundException.prototype);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
136
|
export class ChatNotFoundException extends __BaseException {
|
|
188
137
|
name = "ChatNotFoundException";
|
|
189
138
|
$fault = "client";
|
|
@@ -304,18 +253,6 @@ export const MessageWhatsAppStatus = {
|
|
|
304
253
|
SENT: "sent",
|
|
305
254
|
TRYING: "trying",
|
|
306
255
|
};
|
|
307
|
-
export class ConferenceAnnotationsNotFoundException extends __BaseException {
|
|
308
|
-
name = "ConferenceAnnotationsNotFoundException";
|
|
309
|
-
$fault = "client";
|
|
310
|
-
constructor(opts) {
|
|
311
|
-
super({
|
|
312
|
-
name: "ConferenceAnnotationsNotFoundException",
|
|
313
|
-
$fault: "client",
|
|
314
|
-
...opts
|
|
315
|
-
});
|
|
316
|
-
Object.setPrototypeOf(this, ConferenceAnnotationsNotFoundException.prototype);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
256
|
export class ConferenceNotFoundException extends __BaseException {
|
|
320
257
|
name = "ConferenceNotFoundException";
|
|
321
258
|
$fault = "client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WdaHistoryServiceException as __BaseException } from "../models/WdaHistoryServiceException";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { CallNotFoundException, CallTranscriptionNotFoundException, ChatNotFoundException, ChatTranscriptionNotFoundException, ConferenceNotFoundException, ConferenceTranscriptionNotFoundException, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, serializeDateTime as __serializeDateTime, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_GetCallCommand = async (input, context) => {
|
|
@@ -19,22 +19,6 @@ export const se_GetCallCommand = async (input, context) => {
|
|
|
19
19
|
.b(body);
|
|
20
20
|
return b.build();
|
|
21
21
|
};
|
|
22
|
-
export const se_GetCallAnnotationsCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {};
|
|
25
|
-
b.bp("/v2/history/calls/{callId}/flows/{flowIndex}/annotations");
|
|
26
|
-
b.p('callId', () => input.callId, '{callId}', false);
|
|
27
|
-
b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
|
|
28
|
-
const query = map({
|
|
29
|
-
[_c]: [, input[_c]],
|
|
30
|
-
});
|
|
31
|
-
let body;
|
|
32
|
-
b.m("GET")
|
|
33
|
-
.h(headers)
|
|
34
|
-
.q(query)
|
|
35
|
-
.b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
22
|
export const se_GetCallTranscriptionCommand = async (input, context) => {
|
|
39
23
|
const b = rb(input, context);
|
|
40
24
|
const headers = {};
|
|
@@ -82,21 +66,6 @@ export const se_GetChatCommand = async (input, context) => {
|
|
|
82
66
|
.b(body);
|
|
83
67
|
return b.build();
|
|
84
68
|
};
|
|
85
|
-
export const se_GetChatAnnotationsCommand = async (input, context) => {
|
|
86
|
-
const b = rb(input, context);
|
|
87
|
-
const headers = {};
|
|
88
|
-
b.bp("/v2/history/chats/{chatId}/annotations");
|
|
89
|
-
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
90
|
-
const query = map({
|
|
91
|
-
[_c]: [, input[_c]],
|
|
92
|
-
});
|
|
93
|
-
let body;
|
|
94
|
-
b.m("GET")
|
|
95
|
-
.h(headers)
|
|
96
|
-
.q(query)
|
|
97
|
-
.b(body);
|
|
98
|
-
return b.build();
|
|
99
|
-
};
|
|
100
69
|
export const se_GetChatTranscriptionCommand = async (input, context) => {
|
|
101
70
|
const b = rb(input, context);
|
|
102
71
|
const headers = {};
|
|
@@ -142,21 +111,6 @@ export const se_GetConferenceCommand = async (input, context) => {
|
|
|
142
111
|
.b(body);
|
|
143
112
|
return b.build();
|
|
144
113
|
};
|
|
145
|
-
export const se_GetConferenceAnnotationsCommand = async (input, context) => {
|
|
146
|
-
const b = rb(input, context);
|
|
147
|
-
const headers = {};
|
|
148
|
-
b.bp("/v2/history/conferences/{conferenceId}/annotations");
|
|
149
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
150
|
-
const query = map({
|
|
151
|
-
[_c]: [, input[_c]],
|
|
152
|
-
});
|
|
153
|
-
let body;
|
|
154
|
-
b.m("GET")
|
|
155
|
-
.h(headers)
|
|
156
|
-
.q(query)
|
|
157
|
-
.b(body);
|
|
158
|
-
return b.build();
|
|
159
|
-
};
|
|
160
114
|
export const se_GetConferenceTranscriptionCommand = async (input, context) => {
|
|
161
115
|
const b = rb(input, context);
|
|
162
116
|
const headers = {};
|
|
@@ -266,20 +220,6 @@ export const de_GetCallCommand = async (output, context) => {
|
|
|
266
220
|
Object.assign(contents, doc);
|
|
267
221
|
return contents;
|
|
268
222
|
};
|
|
269
|
-
export const de_GetCallAnnotationsCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const contents = map({
|
|
274
|
-
$metadata: deserializeMetadata(output),
|
|
275
|
-
});
|
|
276
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
277
|
-
const doc = take(data, {
|
|
278
|
-
'annotations': _ => de_CallAnnotationsRecord(_, context),
|
|
279
|
-
});
|
|
280
|
-
Object.assign(contents, doc);
|
|
281
|
-
return contents;
|
|
282
|
-
};
|
|
283
223
|
export const de_GetCallTranscriptionCommand = async (output, context) => {
|
|
284
224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
285
225
|
return de_CommandError(output, context);
|
|
@@ -325,20 +265,6 @@ export const de_GetChatCommand = async (output, context) => {
|
|
|
325
265
|
Object.assign(contents, doc);
|
|
326
266
|
return contents;
|
|
327
267
|
};
|
|
328
|
-
export const de_GetChatAnnotationsCommand = async (output, context) => {
|
|
329
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
330
|
-
return de_CommandError(output, context);
|
|
331
|
-
}
|
|
332
|
-
const contents = map({
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
});
|
|
335
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
336
|
-
const doc = take(data, {
|
|
337
|
-
'annotations': _ => de_ChatAnnotationsRecord(_, context),
|
|
338
|
-
});
|
|
339
|
-
Object.assign(contents, doc);
|
|
340
|
-
return contents;
|
|
341
|
-
};
|
|
342
268
|
export const de_GetChatTranscriptionCommand = async (output, context) => {
|
|
343
269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
270
|
return de_CommandError(output, context);
|
|
@@ -383,20 +309,6 @@ export const de_GetConferenceCommand = async (output, context) => {
|
|
|
383
309
|
Object.assign(contents, doc);
|
|
384
310
|
return contents;
|
|
385
311
|
};
|
|
386
|
-
export const de_GetConferenceAnnotationsCommand = async (output, context) => {
|
|
387
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
-
return de_CommandError(output, context);
|
|
389
|
-
}
|
|
390
|
-
const contents = map({
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
});
|
|
393
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
394
|
-
const doc = take(data, {
|
|
395
|
-
'annotations': _ => de_ConferenceAnnotationsRecord(_, context),
|
|
396
|
-
});
|
|
397
|
-
Object.assign(contents, doc);
|
|
398
|
-
return contents;
|
|
399
|
-
};
|
|
400
312
|
export const de_GetConferenceTranscriptionCommand = async (output, context) => {
|
|
401
313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
314
|
return de_CommandError(output, context);
|
|
@@ -486,27 +398,18 @@ const de_CommandError = async (output, context) => {
|
|
|
486
398
|
case "ValidationException":
|
|
487
399
|
case "smithy.framework#ValidationException":
|
|
488
400
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
|
-
case "CallAnnotationsNotFoundException":
|
|
490
|
-
case "wildix.wda.history#CallAnnotationsNotFoundException":
|
|
491
|
-
throw await de_CallAnnotationsNotFoundExceptionRes(parsedOutput, context);
|
|
492
401
|
case "CallTranscriptionNotFoundException":
|
|
493
402
|
case "wildix.wda.history#CallTranscriptionNotFoundException":
|
|
494
403
|
throw await de_CallTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
495
404
|
case "ChatNotFoundException":
|
|
496
405
|
case "wildix.wda.history#ChatNotFoundException":
|
|
497
406
|
throw await de_ChatNotFoundExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ChatAnnotationsNotFoundException":
|
|
499
|
-
case "wildix.wda.history#ChatAnnotationsNotFoundException":
|
|
500
|
-
throw await de_ChatAnnotationsNotFoundExceptionRes(parsedOutput, context);
|
|
501
407
|
case "ChatTranscriptionNotFoundException":
|
|
502
408
|
case "wildix.wda.history#ChatTranscriptionNotFoundException":
|
|
503
409
|
throw await de_ChatTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
504
410
|
case "ConferenceNotFoundException":
|
|
505
411
|
case "wildix.wda.history#ConferenceNotFoundException":
|
|
506
412
|
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ConferenceAnnotationsNotFoundException":
|
|
508
|
-
case "wildix.wda.history#ConferenceAnnotationsNotFoundException":
|
|
509
|
-
throw await de_ConferenceAnnotationsNotFoundExceptionRes(parsedOutput, context);
|
|
510
413
|
case "ConferenceTranscriptionNotFoundException":
|
|
511
414
|
case "wildix.wda.history#ConferenceTranscriptionNotFoundException":
|
|
512
415
|
throw await de_ConferenceTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -546,19 +449,6 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
546
449
|
});
|
|
547
450
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
548
451
|
};
|
|
549
|
-
const de_CallAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
550
|
-
const contents = map({});
|
|
551
|
-
const data = parsedOutput.body;
|
|
552
|
-
const doc = take(data, {
|
|
553
|
-
'message': __expectString,
|
|
554
|
-
});
|
|
555
|
-
Object.assign(contents, doc);
|
|
556
|
-
const exception = new CallAnnotationsNotFoundException({
|
|
557
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
558
|
-
...contents
|
|
559
|
-
});
|
|
560
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
561
|
-
};
|
|
562
452
|
const de_CallNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
563
453
|
const contents = map({});
|
|
564
454
|
const data = parsedOutput.body;
|
|
@@ -585,19 +475,6 @@ const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
585
475
|
});
|
|
586
476
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
587
477
|
};
|
|
588
|
-
const de_ChatAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
589
|
-
const contents = map({});
|
|
590
|
-
const data = parsedOutput.body;
|
|
591
|
-
const doc = take(data, {
|
|
592
|
-
'message': __expectString,
|
|
593
|
-
});
|
|
594
|
-
Object.assign(contents, doc);
|
|
595
|
-
const exception = new ChatAnnotationsNotFoundException({
|
|
596
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
597
|
-
...contents
|
|
598
|
-
});
|
|
599
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
600
|
-
};
|
|
601
478
|
const de_ChatNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
602
479
|
const contents = map({});
|
|
603
480
|
const data = parsedOutput.body;
|
|
@@ -624,19 +501,6 @@ const de_ChatTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
624
501
|
});
|
|
625
502
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
626
503
|
};
|
|
627
|
-
const de_ConferenceAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
628
|
-
const contents = map({});
|
|
629
|
-
const data = parsedOutput.body;
|
|
630
|
-
const doc = take(data, {
|
|
631
|
-
'message': __expectString,
|
|
632
|
-
});
|
|
633
|
-
Object.assign(contents, doc);
|
|
634
|
-
const exception = new ConferenceAnnotationsNotFoundException({
|
|
635
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
636
|
-
...contents
|
|
637
|
-
});
|
|
638
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
639
|
-
};
|
|
640
504
|
const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
641
505
|
const contents = map({});
|
|
642
506
|
const data = parsedOutput.body;
|
|
@@ -688,23 +552,6 @@ const se_QueryUserCallsFilter = (input, context) => {
|
|
|
688
552
|
'userDirection': [],
|
|
689
553
|
});
|
|
690
554
|
};
|
|
691
|
-
const de_Document = (output, context) => {
|
|
692
|
-
return output;
|
|
693
|
-
};
|
|
694
|
-
const de_CallAnnotationsRecord = (output, context) => {
|
|
695
|
-
return take(output, {
|
|
696
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
697
|
-
'callStartTime': __expectLong,
|
|
698
|
-
'company': __expectString,
|
|
699
|
-
'flowIndex': __expectInt32,
|
|
700
|
-
'flowStartTime': __expectLong,
|
|
701
|
-
'id': __expectString,
|
|
702
|
-
'licenses': _json,
|
|
703
|
-
'pbx': __expectString,
|
|
704
|
-
'time': __expectLong,
|
|
705
|
-
'type': __expectString,
|
|
706
|
-
});
|
|
707
|
-
};
|
|
708
555
|
const de_CallTranscriptionInteractionRecord = (output, context) => {
|
|
709
556
|
return take(output, {
|
|
710
557
|
'interruptions': __expectInt32,
|
|
@@ -730,25 +577,6 @@ const de_CallTranscriptionRecord = (output, context) => {
|
|
|
730
577
|
'type': __expectString,
|
|
731
578
|
});
|
|
732
579
|
};
|
|
733
|
-
const de_ChatAnnotationsRecord = (output, context) => {
|
|
734
|
-
return take(output, {
|
|
735
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
736
|
-
'chatId': __expectString,
|
|
737
|
-
'company': __expectString,
|
|
738
|
-
'id': __expectString,
|
|
739
|
-
'time': __expectLong,
|
|
740
|
-
'type': __expectString,
|
|
741
|
-
});
|
|
742
|
-
};
|
|
743
|
-
const de_ConferenceAnnotationsRecord = (output, context) => {
|
|
744
|
-
return take(output, {
|
|
745
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
746
|
-
'company': __expectString,
|
|
747
|
-
'id': __expectString,
|
|
748
|
-
'time': __expectLong,
|
|
749
|
-
'type': __expectString,
|
|
750
|
-
});
|
|
751
|
-
};
|
|
752
580
|
const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
|
|
753
581
|
return take(output, {
|
|
754
582
|
'interruptions': __expectInt32,
|
|
@@ -760,49 +588,6 @@ const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
|
|
|
760
588
|
'wordsPerMinute': __expectInt32,
|
|
761
589
|
});
|
|
762
590
|
};
|
|
763
|
-
const de_Annotation = (output, context) => {
|
|
764
|
-
return take(output, {
|
|
765
|
-
'id': __expectString,
|
|
766
|
-
'payload': (_) => de_AnnotationPayload(__expectUnion(_), context),
|
|
767
|
-
'source': _json,
|
|
768
|
-
'time': __expectLong,
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
const de_AnnotationPayload = (output, context) => {
|
|
772
|
-
if (output.result != null) {
|
|
773
|
-
return {
|
|
774
|
-
result: de_AnnotationResultValue(output.result, context)
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
if (__expectString(output.tag) !== undefined) {
|
|
778
|
-
return { tag: __expectString(output.tag) };
|
|
779
|
-
}
|
|
780
|
-
if (__expectString(output.text) !== undefined) {
|
|
781
|
-
return { text: __expectString(output.text) };
|
|
782
|
-
}
|
|
783
|
-
if (output.variables != null) {
|
|
784
|
-
return {
|
|
785
|
-
variables: de_AnnotationVariablesValue(output.variables, context)
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
return { $unknown: Object.entries(output)[0] };
|
|
789
|
-
};
|
|
790
|
-
const de_AnnotationResultValue = (output, context) => {
|
|
791
|
-
return take(output, {
|
|
792
|
-
'value': (_) => de_Document(_, context),
|
|
793
|
-
});
|
|
794
|
-
};
|
|
795
|
-
const de_Annotations = (output, context) => {
|
|
796
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
797
|
-
return de_Annotation(entry, context);
|
|
798
|
-
});
|
|
799
|
-
return retVal;
|
|
800
|
-
};
|
|
801
|
-
const de_AnnotationVariablesValue = (output, context) => {
|
|
802
|
-
return take(output, {
|
|
803
|
-
'value': (_) => de_Document(_, context),
|
|
804
|
-
});
|
|
805
|
-
};
|
|
806
591
|
const de_CallTranscriptionChunk = (output, context) => {
|
|
807
592
|
return take(output, {
|
|
808
593
|
'confidence': __limitedParseDouble,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { WdaHistoryClient } from "./WdaHistoryClient";
|
|
2
|
-
import { GetCallAnnotationsCommandInput, GetCallAnnotationsCommandOutput } from "./commands/GetCallAnnotationsCommand";
|
|
3
2
|
import { GetCallCommandInput, GetCallCommandOutput } from "./commands/GetCallCommand";
|
|
4
3
|
import { GetCallTranscriptionCommandInput, GetCallTranscriptionCommandOutput } from "./commands/GetCallTranscriptionCommand";
|
|
5
4
|
import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOutput } from "./commands/GetCallTranscriptionTextCommand";
|
|
6
|
-
import { GetChatAnnotationsCommandInput, GetChatAnnotationsCommandOutput } from "./commands/GetChatAnnotationsCommand";
|
|
7
5
|
import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
|
|
8
6
|
import { GetChatTranscriptionCommandInput, GetChatTranscriptionCommandOutput } from "./commands/GetChatTranscriptionCommand";
|
|
9
7
|
import { GetChatTranscriptionTextCommandInput, GetChatTranscriptionTextCommandOutput } from "./commands/GetChatTranscriptionTextCommand";
|
|
10
|
-
import { GetConferenceAnnotationsCommandInput, GetConferenceAnnotationsCommandOutput } from "./commands/GetConferenceAnnotationsCommand";
|
|
11
8
|
import { GetConferenceCommandInput, GetConferenceCommandOutput } from "./commands/GetConferenceCommand";
|
|
12
9
|
import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "./commands/GetConferenceTranscriptionCommand";
|
|
13
10
|
import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
|
|
@@ -22,12 +19,6 @@ export interface WdaHistory {
|
|
|
22
19
|
getCall(args: GetCallCommandInput, options?: __HttpHandlerOptions): Promise<GetCallCommandOutput>;
|
|
23
20
|
getCall(args: GetCallCommandInput, cb: (err: any, data?: GetCallCommandOutput) => void): void;
|
|
24
21
|
getCall(args: GetCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallCommandOutput) => void): void;
|
|
25
|
-
/**
|
|
26
|
-
* @see {@link GetCallAnnotationsCommand}
|
|
27
|
-
*/
|
|
28
|
-
getCallAnnotations(args: GetCallAnnotationsCommandInput, options?: __HttpHandlerOptions): Promise<GetCallAnnotationsCommandOutput>;
|
|
29
|
-
getCallAnnotations(args: GetCallAnnotationsCommandInput, cb: (err: any, data?: GetCallAnnotationsCommandOutput) => void): void;
|
|
30
|
-
getCallAnnotations(args: GetCallAnnotationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallAnnotationsCommandOutput) => void): void;
|
|
31
22
|
/**
|
|
32
23
|
* @see {@link GetCallTranscriptionCommand}
|
|
33
24
|
*/
|
|
@@ -46,12 +37,6 @@ export interface WdaHistory {
|
|
|
46
37
|
getChat(args: GetChatCommandInput, options?: __HttpHandlerOptions): Promise<GetChatCommandOutput>;
|
|
47
38
|
getChat(args: GetChatCommandInput, cb: (err: any, data?: GetChatCommandOutput) => void): void;
|
|
48
39
|
getChat(args: GetChatCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChatCommandOutput) => void): void;
|
|
49
|
-
/**
|
|
50
|
-
* @see {@link GetChatAnnotationsCommand}
|
|
51
|
-
*/
|
|
52
|
-
getChatAnnotations(args: GetChatAnnotationsCommandInput, options?: __HttpHandlerOptions): Promise<GetChatAnnotationsCommandOutput>;
|
|
53
|
-
getChatAnnotations(args: GetChatAnnotationsCommandInput, cb: (err: any, data?: GetChatAnnotationsCommandOutput) => void): void;
|
|
54
|
-
getChatAnnotations(args: GetChatAnnotationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChatAnnotationsCommandOutput) => void): void;
|
|
55
40
|
/**
|
|
56
41
|
* @see {@link GetChatTranscriptionCommand}
|
|
57
42
|
*/
|
|
@@ -70,12 +55,6 @@ export interface WdaHistory {
|
|
|
70
55
|
getConference(args: GetConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceCommandOutput>;
|
|
71
56
|
getConference(args: GetConferenceCommandInput, cb: (err: any, data?: GetConferenceCommandOutput) => void): void;
|
|
72
57
|
getConference(args: GetConferenceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceCommandOutput) => void): void;
|
|
73
|
-
/**
|
|
74
|
-
* @see {@link GetConferenceAnnotationsCommand}
|
|
75
|
-
*/
|
|
76
|
-
getConferenceAnnotations(args: GetConferenceAnnotationsCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceAnnotationsCommandOutput>;
|
|
77
|
-
getConferenceAnnotations(args: GetConferenceAnnotationsCommandInput, cb: (err: any, data?: GetConferenceAnnotationsCommandOutput) => void): void;
|
|
78
|
-
getConferenceAnnotations(args: GetConferenceAnnotationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceAnnotationsCommandOutput) => void): void;
|
|
79
58
|
/**
|
|
80
59
|
* @see {@link GetConferenceTranscriptionCommand}
|
|
81
60
|
*/
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { GetCallAnnotationsCommandInput, GetCallAnnotationsCommandOutput } from "./commands/GetCallAnnotationsCommand";
|
|
2
1
|
import { GetCallCommandInput, GetCallCommandOutput } from "./commands/GetCallCommand";
|
|
3
2
|
import { GetCallTranscriptionCommandInput, GetCallTranscriptionCommandOutput } from "./commands/GetCallTranscriptionCommand";
|
|
4
3
|
import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOutput } from "./commands/GetCallTranscriptionTextCommand";
|
|
5
|
-
import { GetChatAnnotationsCommandInput, GetChatAnnotationsCommandOutput } from "./commands/GetChatAnnotationsCommand";
|
|
6
4
|
import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
|
|
7
5
|
import { GetChatTranscriptionCommandInput, GetChatTranscriptionCommandOutput } from "./commands/GetChatTranscriptionCommand";
|
|
8
6
|
import { GetChatTranscriptionTextCommandInput, GetChatTranscriptionTextCommandOutput } from "./commands/GetChatTranscriptionTextCommand";
|
|
9
|
-
import { GetConferenceAnnotationsCommandInput, GetConferenceAnnotationsCommandOutput } from "./commands/GetConferenceAnnotationsCommand";
|
|
10
7
|
import { GetConferenceCommandInput, GetConferenceCommandOutput } from "./commands/GetConferenceCommand";
|
|
11
8
|
import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "./commands/GetConferenceTranscriptionCommand";
|
|
12
9
|
import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
|
|
@@ -24,11 +21,11 @@ export { __Client };
|
|
|
24
21
|
/**
|
|
25
22
|
* @public
|
|
26
23
|
*/
|
|
27
|
-
export type ServiceInputTypes =
|
|
24
|
+
export type ServiceInputTypes = GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetChatCommandInput | GetChatTranscriptionCommandInput | GetChatTranscriptionTextCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput | QueryConversationsCommandInput | QueryUserCallsCommandInput | UpdateCallCommandInput;
|
|
28
25
|
/**
|
|
29
26
|
* @public
|
|
30
27
|
*/
|
|
31
|
-
export type ServiceOutputTypes =
|
|
28
|
+
export type ServiceOutputTypes = GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetChatCommandOutput | GetChatTranscriptionCommandOutput | GetChatTranscriptionTextCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput | QueryConversationsCommandOutput | QueryUserCallsCommandOutput | UpdateCallCommandOutput;
|
|
32
29
|
/**
|
|
33
30
|
* @public
|
|
34
31
|
*/
|
|
@@ -100,10 +100,10 @@ declare const GetCallCommand_base: {
|
|
|
100
100
|
* // trunkDirection: "STRING_VALUE",
|
|
101
101
|
* // queueName: "STRING_VALUE",
|
|
102
102
|
* // queueId: "STRING_VALUE",
|
|
103
|
+
* // queuePosition: Number("int"),
|
|
103
104
|
* // tags: [ // CallFlowTags
|
|
104
105
|
* // "STRING_VALUE",
|
|
105
106
|
* // ],
|
|
106
|
-
* // annotationsStatus: "AVAILABLE" || "UNAVAILABLE",
|
|
107
107
|
* // flags: [ // CallFlowFlags
|
|
108
108
|
* // "STRING_VALUE",
|
|
109
109
|
* // ],
|
|
@@ -219,7 +219,7 @@ declare const GetCallCommand_base: {
|
|
|
219
219
|
* // licenses: [ // LicensesList // required
|
|
220
220
|
* // "x-bees" || "uc",
|
|
221
221
|
* // ],
|
|
222
|
-
* // type: "call" || "call_transcription" || "
|
|
222
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
223
223
|
* // },
|
|
224
224
|
* // };
|
|
225
225
|
*
|
|
@@ -50,7 +50,7 @@ declare const GetCallTranscriptionCommand_base: {
|
|
|
50
50
|
* // licenses: [ // LicensesList // required
|
|
51
51
|
* // "x-bees" || "uc",
|
|
52
52
|
* // ],
|
|
53
|
-
* // type: "call" || "call_transcription" || "
|
|
53
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
54
54
|
* // flowIndex: Number("int"), // required
|
|
55
55
|
* // flowStartTime: Number("long"), // required
|
|
56
56
|
* // callStartTime: Number("long"), // required
|
|
@@ -160,8 +160,7 @@ declare const GetChatCommand_base: {
|
|
|
160
160
|
* // },
|
|
161
161
|
* // },
|
|
162
162
|
* // ],
|
|
163
|
-
* //
|
|
164
|
-
* // type: "call" || "call_transcription" || "call_annotations" || "conference" || "conference_transcription" || "conference_annotations" || "chat" || "chat_transcription" || "chat_annotations", // required
|
|
163
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
165
164
|
* // },
|
|
166
165
|
* // };
|
|
167
166
|
*
|
|
@@ -46,7 +46,7 @@ declare const GetChatTranscriptionCommand_base: {
|
|
|
46
46
|
* // chatId: "STRING_VALUE",
|
|
47
47
|
* // time: Number("long"), // required
|
|
48
48
|
* // company: "STRING_VALUE", // required
|
|
49
|
-
* // type: "call" || "call_transcription" || "
|
|
49
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
50
50
|
* // messages: [ // ChatTranscriptionMessagesList // required
|
|
51
51
|
* // { // Message
|
|
52
52
|
* // text: "STRING_VALUE",
|
|
@@ -85,10 +85,9 @@ declare const GetConferenceCommand_base: {
|
|
|
85
85
|
* // },
|
|
86
86
|
* // ],
|
|
87
87
|
* // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
|
|
88
|
-
* // annotationsStatus: "AVAILABLE" || "UNAVAILABLE",
|
|
89
88
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
90
89
|
* // transcriptionSeconds: Number("int"),
|
|
91
|
-
* // type: "call" || "call_transcription" || "
|
|
90
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
92
91
|
* // },
|
|
93
92
|
* // };
|
|
94
93
|
*
|
|
@@ -45,7 +45,7 @@ declare const GetConferenceTranscriptionCommand_base: {
|
|
|
45
45
|
* // id: "STRING_VALUE", // required
|
|
46
46
|
* // time: Number("long"), // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
|
-
* // type: "call" || "call_transcription" || "
|
|
48
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
49
49
|
* // transcriptions: [ // ConferenceTranscriptionsList // required
|
|
50
50
|
* // { // ConferenceTranscription
|
|
51
51
|
* // start: Number("long"), // required
|
|
@@ -117,10 +117,10 @@ declare const QueryConversationsCommand_base: {
|
|
|
117
117
|
* // trunkDirection: "STRING_VALUE",
|
|
118
118
|
* // queueName: "STRING_VALUE",
|
|
119
119
|
* // queueId: "STRING_VALUE",
|
|
120
|
+
* // queuePosition: Number("int"),
|
|
120
121
|
* // tags: [ // CallFlowTags
|
|
121
122
|
* // "STRING_VALUE",
|
|
122
123
|
* // ],
|
|
123
|
-
* // annotationsStatus: "AVAILABLE" || "UNAVAILABLE",
|
|
124
124
|
* // flags: [ // CallFlowFlags
|
|
125
125
|
* // "STRING_VALUE",
|
|
126
126
|
* // ],
|
|
@@ -236,7 +236,7 @@ declare const QueryConversationsCommand_base: {
|
|
|
236
236
|
* // licenses: [ // LicensesList // required
|
|
237
237
|
* // "x-bees" || "uc",
|
|
238
238
|
* // ],
|
|
239
|
-
* // type: "call" || "call_transcription" || "
|
|
239
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
240
240
|
* // },
|
|
241
241
|
* // conference: { // ConferenceRecord
|
|
242
242
|
* // id: "STRING_VALUE", // required
|
|
@@ -282,10 +282,9 @@ declare const QueryConversationsCommand_base: {
|
|
|
282
282
|
* // },
|
|
283
283
|
* // ],
|
|
284
284
|
* // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
|
|
285
|
-
* // annotationsStatus: "AVAILABLE" || "UNAVAILABLE",
|
|
286
285
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
287
286
|
* // transcriptionSeconds: Number("int"),
|
|
288
|
-
* // type: "call" || "call_transcription" || "
|
|
287
|
+
* // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
|
|
289
288
|
* // },
|
|
290
289
|
* // },
|
|
291
290
|
* // ],
|