@wildix/wda-history-client 1.2.24 → 1.2.26
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 +6 -0
- package/dist-cjs/commands/GetCallAnnotationsCommand.js +21 -0
- package/dist-cjs/commands/GetChatAnnotationsCommand.js +21 -0
- package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +80 -13
- package/dist-cjs/protocols/Aws_restJson1.js +222 -2
- package/dist-es/WdaHistory.js +6 -0
- package/dist-es/commands/GetCallAnnotationsCommand.js +17 -0
- package/dist-es/commands/GetChatAnnotationsCommand.js +17 -0
- package/dist-es/commands/GetConferenceAnnotationsCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +75 -12
- package/dist-es/protocols/Aws_restJson1.js +217 -3
- package/dist-types/WdaHistory.d.ts +21 -0
- package/dist-types/WdaHistoryClient.d.ts +5 -2
- package/dist-types/commands/GetCallAnnotationsCommand.d.ts +115 -0
- package/dist-types/commands/GetCallCommand.d.ts +2 -1
- package/dist-types/commands/GetCallTranscriptionCommand.d.ts +1 -2
- package/dist-types/commands/GetChatAnnotationsCommand.d.ts +108 -0
- package/dist-types/commands/GetChatCommand.d.ts +2 -1
- package/dist-types/commands/GetChatTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +107 -0
- package/dist-types/commands/GetConferenceCommand.d.ts +2 -1
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/QueryConversationsCommand.d.ts +4 -2
- package/dist-types/commands/QueryUserCallsCommand.d.ts +2 -1
- package/dist-types/commands/UpdateCallCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +289 -33
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetConferenceAnnotationsCommand, se_GetConferenceAnnotationsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetConferenceAnnotationsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaHistory", "GetConferenceAnnotations", {})
|
|
12
|
+
.n("WdaHistoryClient", "GetConferenceAnnotationsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetConferenceAnnotationsCommand)
|
|
15
|
+
.de(de_GetConferenceAnnotationsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * from "./GetCallCommand";
|
|
2
|
+
export * from "./GetCallAnnotationsCommand";
|
|
2
3
|
export * from "./GetCallTranscriptionCommand";
|
|
3
4
|
export * from "./GetCallTranscriptionTextCommand";
|
|
4
5
|
export * from "./GetChatCommand";
|
|
6
|
+
export * from "./GetChatAnnotationsCommand";
|
|
5
7
|
export * from "./GetChatTranscriptionCommand";
|
|
6
8
|
export * from "./GetChatTranscriptionTextCommand";
|
|
7
9
|
export * from "./GetConferenceCommand";
|
|
10
|
+
export * from "./GetConferenceAnnotationsCommand";
|
|
8
11
|
export * from "./GetConferenceTranscriptionCommand";
|
|
9
12
|
export * from "./GetConferenceTranscriptionTextCommand";
|
|
10
13
|
export * from "./QueryConversationsCommand";
|
|
@@ -33,6 +33,53 @@ 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
|
+
};
|
|
36
83
|
export class CallNotFoundException extends __BaseException {
|
|
37
84
|
name = "CallNotFoundException";
|
|
38
85
|
$fault = "client";
|
|
@@ -45,6 +92,10 @@ export class CallNotFoundException extends __BaseException {
|
|
|
45
92
|
Object.setPrototypeOf(this, CallNotFoundException.prototype);
|
|
46
93
|
}
|
|
47
94
|
}
|
|
95
|
+
export const AnnotationsStatus = {
|
|
96
|
+
AVAILABLE: "AVAILABLE",
|
|
97
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
98
|
+
};
|
|
48
99
|
export const CallRecordOwner = {
|
|
49
100
|
CALLEE: "callee",
|
|
50
101
|
CALLER: "caller",
|
|
@@ -94,23 +145,11 @@ export const CallDevice = {
|
|
|
94
145
|
XBEES_IOS: "XBEES_IOS",
|
|
95
146
|
XBEES_WEB: "XBEES_WEB",
|
|
96
147
|
};
|
|
97
|
-
export const License = {
|
|
98
|
-
UC: "uc",
|
|
99
|
-
XBEES: "x-bees",
|
|
100
|
-
};
|
|
101
148
|
export const CallFlowTranscriptionStatus = {
|
|
102
149
|
AVAILABLE: "AVAILABLE",
|
|
103
150
|
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
151
|
UNAVAILABLE: "UNAVAILABLE",
|
|
105
152
|
};
|
|
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
|
-
};
|
|
114
153
|
export const CallTranscriptionSpeaker = {
|
|
115
154
|
CALLEE: "callee",
|
|
116
155
|
CALLER: "caller",
|
|
@@ -133,6 +172,18 @@ export const TranscriptionSentiment = {
|
|
|
133
172
|
NEUTRAL: "NEUTRAL",
|
|
134
173
|
POSITIVE: "POSITIVE",
|
|
135
174
|
};
|
|
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
|
+
}
|
|
136
187
|
export class ChatNotFoundException extends __BaseException {
|
|
137
188
|
name = "ChatNotFoundException";
|
|
138
189
|
$fault = "client";
|
|
@@ -253,6 +304,18 @@ export const MessageWhatsAppStatus = {
|
|
|
253
304
|
SENT: "sent",
|
|
254
305
|
TRYING: "trying",
|
|
255
306
|
};
|
|
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
|
+
}
|
|
256
319
|
export class ConferenceNotFoundException extends __BaseException {
|
|
257
320
|
name = "ConferenceNotFoundException";
|
|
258
321
|
$fault = "client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WdaHistoryServiceException as __BaseException } from "../models/WdaHistoryServiceException";
|
|
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";
|
|
2
|
+
import { CallAnnotationsNotFoundException, CallNotFoundException, CallTranscriptionNotFoundException, ChatAnnotationsNotFoundException, ChatNotFoundException, ChatTranscriptionNotFoundException, ConferenceAnnotationsNotFoundException, ConferenceNotFoundException, ConferenceTranscriptionNotFoundException, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { awsExpectUnion as __expectUnion, 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,6 +19,22 @@ 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
|
+
};
|
|
22
38
|
export const se_GetCallTranscriptionCommand = async (input, context) => {
|
|
23
39
|
const b = rb(input, context);
|
|
24
40
|
const headers = {};
|
|
@@ -66,6 +82,21 @@ export const se_GetChatCommand = async (input, context) => {
|
|
|
66
82
|
.b(body);
|
|
67
83
|
return b.build();
|
|
68
84
|
};
|
|
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
|
+
};
|
|
69
100
|
export const se_GetChatTranscriptionCommand = async (input, context) => {
|
|
70
101
|
const b = rb(input, context);
|
|
71
102
|
const headers = {};
|
|
@@ -111,6 +142,21 @@ export const se_GetConferenceCommand = async (input, context) => {
|
|
|
111
142
|
.b(body);
|
|
112
143
|
return b.build();
|
|
113
144
|
};
|
|
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
|
+
};
|
|
114
160
|
export const se_GetConferenceTranscriptionCommand = async (input, context) => {
|
|
115
161
|
const b = rb(input, context);
|
|
116
162
|
const headers = {};
|
|
@@ -220,6 +266,20 @@ export const de_GetCallCommand = async (output, context) => {
|
|
|
220
266
|
Object.assign(contents, doc);
|
|
221
267
|
return contents;
|
|
222
268
|
};
|
|
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
|
+
};
|
|
223
283
|
export const de_GetCallTranscriptionCommand = async (output, context) => {
|
|
224
284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
225
285
|
return de_CommandError(output, context);
|
|
@@ -265,6 +325,20 @@ export const de_GetChatCommand = async (output, context) => {
|
|
|
265
325
|
Object.assign(contents, doc);
|
|
266
326
|
return contents;
|
|
267
327
|
};
|
|
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
|
+
};
|
|
268
342
|
export const de_GetChatTranscriptionCommand = async (output, context) => {
|
|
269
343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
270
344
|
return de_CommandError(output, context);
|
|
@@ -309,6 +383,20 @@ export const de_GetConferenceCommand = async (output, context) => {
|
|
|
309
383
|
Object.assign(contents, doc);
|
|
310
384
|
return contents;
|
|
311
385
|
};
|
|
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
|
+
};
|
|
312
400
|
export const de_GetConferenceTranscriptionCommand = async (output, context) => {
|
|
313
401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
314
402
|
return de_CommandError(output, context);
|
|
@@ -398,18 +486,27 @@ const de_CommandError = async (output, context) => {
|
|
|
398
486
|
case "ValidationException":
|
|
399
487
|
case "smithy.framework#ValidationException":
|
|
400
488
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
|
+
case "CallAnnotationsNotFoundException":
|
|
490
|
+
case "wildix.wda.history#CallAnnotationsNotFoundException":
|
|
491
|
+
throw await de_CallAnnotationsNotFoundExceptionRes(parsedOutput, context);
|
|
401
492
|
case "CallTranscriptionNotFoundException":
|
|
402
493
|
case "wildix.wda.history#CallTranscriptionNotFoundException":
|
|
403
494
|
throw await de_CallTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
404
495
|
case "ChatNotFoundException":
|
|
405
496
|
case "wildix.wda.history#ChatNotFoundException":
|
|
406
497
|
throw await de_ChatNotFoundExceptionRes(parsedOutput, context);
|
|
498
|
+
case "ChatAnnotationsNotFoundException":
|
|
499
|
+
case "wildix.wda.history#ChatAnnotationsNotFoundException":
|
|
500
|
+
throw await de_ChatAnnotationsNotFoundExceptionRes(parsedOutput, context);
|
|
407
501
|
case "ChatTranscriptionNotFoundException":
|
|
408
502
|
case "wildix.wda.history#ChatTranscriptionNotFoundException":
|
|
409
503
|
throw await de_ChatTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
410
504
|
case "ConferenceNotFoundException":
|
|
411
505
|
case "wildix.wda.history#ConferenceNotFoundException":
|
|
412
506
|
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
507
|
+
case "ConferenceAnnotationsNotFoundException":
|
|
508
|
+
case "wildix.wda.history#ConferenceAnnotationsNotFoundException":
|
|
509
|
+
throw await de_ConferenceAnnotationsNotFoundExceptionRes(parsedOutput, context);
|
|
413
510
|
case "ConferenceTranscriptionNotFoundException":
|
|
414
511
|
case "wildix.wda.history#ConferenceTranscriptionNotFoundException":
|
|
415
512
|
throw await de_ConferenceTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -449,6 +546,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
449
546
|
});
|
|
450
547
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
451
548
|
};
|
|
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
|
+
};
|
|
452
562
|
const de_CallNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
453
563
|
const contents = map({});
|
|
454
564
|
const data = parsedOutput.body;
|
|
@@ -475,6 +585,19 @@ const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
475
585
|
});
|
|
476
586
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
477
587
|
};
|
|
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
|
+
};
|
|
478
601
|
const de_ChatNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
479
602
|
const contents = map({});
|
|
480
603
|
const data = parsedOutput.body;
|
|
@@ -501,6 +624,19 @@ const de_ChatTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
501
624
|
});
|
|
502
625
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
503
626
|
};
|
|
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
|
+
};
|
|
504
640
|
const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
505
641
|
const contents = map({});
|
|
506
642
|
const data = parsedOutput.body;
|
|
@@ -552,6 +688,23 @@ const se_QueryUserCallsFilter = (input, context) => {
|
|
|
552
688
|
'userDirection': [],
|
|
553
689
|
});
|
|
554
690
|
};
|
|
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
|
+
};
|
|
555
708
|
const de_CallTranscriptionInteractionRecord = (output, context) => {
|
|
556
709
|
return take(output, {
|
|
557
710
|
'interruptions': __expectInt32,
|
|
@@ -577,6 +730,25 @@ const de_CallTranscriptionRecord = (output, context) => {
|
|
|
577
730
|
'type': __expectString,
|
|
578
731
|
});
|
|
579
732
|
};
|
|
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
|
+
};
|
|
580
752
|
const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
|
|
581
753
|
return take(output, {
|
|
582
754
|
'interruptions': __expectInt32,
|
|
@@ -588,6 +760,49 @@ const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
|
|
|
588
760
|
'wordsPerMinute': __expectInt32,
|
|
589
761
|
});
|
|
590
762
|
};
|
|
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
|
+
};
|
|
591
806
|
const de_CallTranscriptionChunk = (output, context) => {
|
|
592
807
|
return take(output, {
|
|
593
808
|
'confidence': __limitedParseDouble,
|
|
@@ -596,7 +811,6 @@ const de_CallTranscriptionChunk = (output, context) => {
|
|
|
596
811
|
'isFinal': __expectBoolean,
|
|
597
812
|
'language': __expectString,
|
|
598
813
|
'sentiment': __expectString,
|
|
599
|
-
'shouldComputeSentiment': __expectBoolean,
|
|
600
814
|
'speaker': __expectString,
|
|
601
815
|
'start': __expectLong,
|
|
602
816
|
'text': __expectString,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { WdaHistoryClient } from "./WdaHistoryClient";
|
|
2
|
+
import { GetCallAnnotationsCommandInput, GetCallAnnotationsCommandOutput } from "./commands/GetCallAnnotationsCommand";
|
|
2
3
|
import { GetCallCommandInput, GetCallCommandOutput } from "./commands/GetCallCommand";
|
|
3
4
|
import { GetCallTranscriptionCommandInput, GetCallTranscriptionCommandOutput } from "./commands/GetCallTranscriptionCommand";
|
|
4
5
|
import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOutput } from "./commands/GetCallTranscriptionTextCommand";
|
|
6
|
+
import { GetChatAnnotationsCommandInput, GetChatAnnotationsCommandOutput } from "./commands/GetChatAnnotationsCommand";
|
|
5
7
|
import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
|
|
6
8
|
import { GetChatTranscriptionCommandInput, GetChatTranscriptionCommandOutput } from "./commands/GetChatTranscriptionCommand";
|
|
7
9
|
import { GetChatTranscriptionTextCommandInput, GetChatTranscriptionTextCommandOutput } from "./commands/GetChatTranscriptionTextCommand";
|
|
10
|
+
import { GetConferenceAnnotationsCommandInput, GetConferenceAnnotationsCommandOutput } from "./commands/GetConferenceAnnotationsCommand";
|
|
8
11
|
import { GetConferenceCommandInput, GetConferenceCommandOutput } from "./commands/GetConferenceCommand";
|
|
9
12
|
import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "./commands/GetConferenceTranscriptionCommand";
|
|
10
13
|
import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
|
|
@@ -19,6 +22,12 @@ export interface WdaHistory {
|
|
|
19
22
|
getCall(args: GetCallCommandInput, options?: __HttpHandlerOptions): Promise<GetCallCommandOutput>;
|
|
20
23
|
getCall(args: GetCallCommandInput, cb: (err: any, data?: GetCallCommandOutput) => void): void;
|
|
21
24
|
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;
|
|
22
31
|
/**
|
|
23
32
|
* @see {@link GetCallTranscriptionCommand}
|
|
24
33
|
*/
|
|
@@ -37,6 +46,12 @@ export interface WdaHistory {
|
|
|
37
46
|
getChat(args: GetChatCommandInput, options?: __HttpHandlerOptions): Promise<GetChatCommandOutput>;
|
|
38
47
|
getChat(args: GetChatCommandInput, cb: (err: any, data?: GetChatCommandOutput) => void): void;
|
|
39
48
|
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;
|
|
40
55
|
/**
|
|
41
56
|
* @see {@link GetChatTranscriptionCommand}
|
|
42
57
|
*/
|
|
@@ -55,6 +70,12 @@ export interface WdaHistory {
|
|
|
55
70
|
getConference(args: GetConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceCommandOutput>;
|
|
56
71
|
getConference(args: GetConferenceCommandInput, cb: (err: any, data?: GetConferenceCommandOutput) => void): void;
|
|
57
72
|
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;
|
|
58
79
|
/**
|
|
59
80
|
* @see {@link GetConferenceTranscriptionCommand}
|
|
60
81
|
*/
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { GetCallAnnotationsCommandInput, GetCallAnnotationsCommandOutput } from "./commands/GetCallAnnotationsCommand";
|
|
1
2
|
import { GetCallCommandInput, GetCallCommandOutput } from "./commands/GetCallCommand";
|
|
2
3
|
import { GetCallTranscriptionCommandInput, GetCallTranscriptionCommandOutput } from "./commands/GetCallTranscriptionCommand";
|
|
3
4
|
import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOutput } from "./commands/GetCallTranscriptionTextCommand";
|
|
5
|
+
import { GetChatAnnotationsCommandInput, GetChatAnnotationsCommandOutput } from "./commands/GetChatAnnotationsCommand";
|
|
4
6
|
import { GetChatCommandInput, GetChatCommandOutput } from "./commands/GetChatCommand";
|
|
5
7
|
import { GetChatTranscriptionCommandInput, GetChatTranscriptionCommandOutput } from "./commands/GetChatTranscriptionCommand";
|
|
6
8
|
import { GetChatTranscriptionTextCommandInput, GetChatTranscriptionTextCommandOutput } from "./commands/GetChatTranscriptionTextCommand";
|
|
9
|
+
import { GetConferenceAnnotationsCommandInput, GetConferenceAnnotationsCommandOutput } from "./commands/GetConferenceAnnotationsCommand";
|
|
7
10
|
import { GetConferenceCommandInput, GetConferenceCommandOutput } from "./commands/GetConferenceCommand";
|
|
8
11
|
import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "./commands/GetConferenceTranscriptionCommand";
|
|
9
12
|
import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
|
|
@@ -21,11 +24,11 @@ export { __Client };
|
|
|
21
24
|
/**
|
|
22
25
|
* @public
|
|
23
26
|
*/
|
|
24
|
-
export type ServiceInputTypes = GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetChatCommandInput | GetChatTranscriptionCommandInput | GetChatTranscriptionTextCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput | QueryConversationsCommandInput | QueryUserCallsCommandInput | UpdateCallCommandInput;
|
|
27
|
+
export type ServiceInputTypes = GetCallAnnotationsCommandInput | GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetChatAnnotationsCommandInput | GetChatCommandInput | GetChatTranscriptionCommandInput | GetChatTranscriptionTextCommandInput | GetConferenceAnnotationsCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput | QueryConversationsCommandInput | QueryUserCallsCommandInput | UpdateCallCommandInput;
|
|
25
28
|
/**
|
|
26
29
|
* @public
|
|
27
30
|
*/
|
|
28
|
-
export type ServiceOutputTypes = GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetChatCommandOutput | GetChatTranscriptionCommandOutput | GetChatTranscriptionTextCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput | QueryConversationsCommandOutput | QueryUserCallsCommandOutput | UpdateCallCommandOutput;
|
|
31
|
+
export type ServiceOutputTypes = GetCallAnnotationsCommandOutput | GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetChatAnnotationsCommandOutput | GetChatCommandOutput | GetChatTranscriptionCommandOutput | GetChatTranscriptionTextCommandOutput | GetConferenceAnnotationsCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput | QueryConversationsCommandOutput | QueryUserCallsCommandOutput | UpdateCallCommandOutput;
|
|
29
32
|
/**
|
|
30
33
|
* @public
|
|
31
34
|
*/
|