@wildix/wda-history-client 1.2.0 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/WdaHistory.js +6 -0
- package/dist-cjs/commands/GetChatCommand.js +21 -0
- package/dist-cjs/commands/GetChatTranscriptionCommand.js +21 -0
- package/dist-cjs/commands/GetChatTranscriptionTextCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +128 -4
- package/dist-cjs/protocols/Aws_restJson1.js +152 -1
- package/dist-es/WdaHistory.js +6 -0
- package/dist-es/commands/GetChatCommand.js +17 -0
- package/dist-es/commands/GetChatTranscriptionCommand.js +17 -0
- package/dist-es/commands/GetChatTranscriptionTextCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +125 -3
- package/dist-es/protocols/Aws_restJson1.js +147 -2
- package/dist-types/WdaHistory.d.ts +21 -0
- package/dist-types/WdaHistoryClient.d.ts +5 -2
- package/dist-types/commands/GetCallCommand.d.ts +1 -1
- package/dist-types/commands/GetCallTranscriptionCommand.d.ts +24 -1
- package/dist-types/commands/GetChatCommand.d.ts +196 -0
- package/dist-types/commands/GetChatTranscriptionCommand.d.ts +253 -0
- package/dist-types/commands/GetChatTranscriptionTextCommand.d.ts +248 -0
- package/dist-types/commands/GetConferenceCommand.d.ts +1 -1
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +24 -1
- package/dist-types/commands/QueryConversationsCommand.d.ts +2 -2
- package/dist-types/commands/QueryUserCallsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCallCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +990 -144
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/package.json +1 -1
package/dist-cjs/WdaHistory.js
CHANGED
|
@@ -5,6 +5,9 @@ const WdaHistoryClient_1 = require("./WdaHistoryClient");
|
|
|
5
5
|
const GetCallCommand_1 = require("./commands/GetCallCommand");
|
|
6
6
|
const GetCallTranscriptionCommand_1 = require("./commands/GetCallTranscriptionCommand");
|
|
7
7
|
const GetCallTranscriptionTextCommand_1 = require("./commands/GetCallTranscriptionTextCommand");
|
|
8
|
+
const GetChatCommand_1 = require("./commands/GetChatCommand");
|
|
9
|
+
const GetChatTranscriptionCommand_1 = require("./commands/GetChatTranscriptionCommand");
|
|
10
|
+
const GetChatTranscriptionTextCommand_1 = require("./commands/GetChatTranscriptionTextCommand");
|
|
8
11
|
const GetConferenceCommand_1 = require("./commands/GetConferenceCommand");
|
|
9
12
|
const GetConferenceTranscriptionCommand_1 = require("./commands/GetConferenceTranscriptionCommand");
|
|
10
13
|
const GetConferenceTranscriptionTextCommand_1 = require("./commands/GetConferenceTranscriptionTextCommand");
|
|
@@ -16,6 +19,9 @@ const commands = {
|
|
|
16
19
|
GetCallCommand: GetCallCommand_1.GetCallCommand,
|
|
17
20
|
GetCallTranscriptionCommand: GetCallTranscriptionCommand_1.GetCallTranscriptionCommand,
|
|
18
21
|
GetCallTranscriptionTextCommand: GetCallTranscriptionTextCommand_1.GetCallTranscriptionTextCommand,
|
|
22
|
+
GetChatCommand: GetChatCommand_1.GetChatCommand,
|
|
23
|
+
GetChatTranscriptionCommand: GetChatTranscriptionCommand_1.GetChatTranscriptionCommand,
|
|
24
|
+
GetChatTranscriptionTextCommand: GetChatTranscriptionTextCommand_1.GetChatTranscriptionTextCommand,
|
|
19
25
|
GetConferenceCommand: GetConferenceCommand_1.GetConferenceCommand,
|
|
20
26
|
GetConferenceTranscriptionCommand: GetConferenceTranscriptionCommand_1.GetConferenceTranscriptionCommand,
|
|
21
27
|
GetConferenceTranscriptionTextCommand: GetConferenceTranscriptionTextCommand_1.GetConferenceTranscriptionTextCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetChatCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetChatCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WdaHistory", "GetChat", {})
|
|
15
|
+
.n("WdaHistoryClient", "GetChatCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetChatCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetChatCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetChatCommand = GetChatCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetChatTranscriptionCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetChatTranscriptionCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WdaHistory", "GetChatTranscription", {})
|
|
15
|
+
.n("WdaHistoryClient", "GetChatTranscriptionCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetChatTranscriptionCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetChatTranscriptionCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetChatTranscriptionCommand = GetChatTranscriptionCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetChatTranscriptionTextCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetChatTranscriptionTextCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WdaHistory", "GetChatTranscriptionText", {})
|
|
15
|
+
.n("WdaHistoryClient", "GetChatTranscriptionTextCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetChatTranscriptionTextCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetChatTranscriptionTextCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetChatTranscriptionTextCommand = GetChatTranscriptionTextCommand;
|
|
@@ -4,6 +4,9 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./GetCallCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./GetCallTranscriptionCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./GetCallTranscriptionTextCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetChatCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./GetChatTranscriptionCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetChatTranscriptionTextCommand"), exports);
|
|
7
10
|
tslib_1.__exportStar(require("./GetConferenceCommand"), exports);
|
|
8
11
|
tslib_1.__exportStar(require("./GetConferenceTranscriptionCommand"), exports);
|
|
9
12
|
tslib_1.__exportStar(require("./GetConferenceTranscriptionTextCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.
|
|
3
|
+
exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.CallNotFoundException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
|
|
4
4
|
const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
|
|
5
5
|
class ValidationException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -111,9 +111,15 @@ exports.CallFlowTranscriptionStatus = {
|
|
|
111
111
|
exports.RecordType = {
|
|
112
112
|
CALL: "call",
|
|
113
113
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
114
|
+
CHAT: "chat",
|
|
115
|
+
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
114
116
|
CONFERENCE: "conference",
|
|
115
117
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
116
118
|
};
|
|
119
|
+
exports.CallTranscriptionSpeaker = {
|
|
120
|
+
CALLEE: "callee",
|
|
121
|
+
CALLER: "caller",
|
|
122
|
+
};
|
|
117
123
|
class CallTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
118
124
|
name = "CallTranscriptionNotFoundException";
|
|
119
125
|
$fault = "client";
|
|
@@ -127,9 +133,127 @@ class CallTranscriptionNotFoundException extends WdaHistoryServiceException_1.Wd
|
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
135
|
exports.CallTranscriptionNotFoundException = CallTranscriptionNotFoundException;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
class ChatNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
137
|
+
name = "ChatNotFoundException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "ChatNotFoundException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, ChatNotFoundException.prototype);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.ChatNotFoundException = ChatNotFoundException;
|
|
149
|
+
exports.ChannelAccess = {
|
|
150
|
+
PRIVATE: "private",
|
|
151
|
+
PUBLIC: "public",
|
|
152
|
+
};
|
|
153
|
+
exports.ChannelType = {
|
|
154
|
+
DIRECT: "direct",
|
|
155
|
+
GROUP: "group",
|
|
156
|
+
};
|
|
157
|
+
exports.ChannelContextEventAttendeeStatus = {
|
|
158
|
+
ACCEPTED: "accepted",
|
|
159
|
+
DECLINED: "declined",
|
|
160
|
+
NONE: "none",
|
|
161
|
+
TENTATIVE: "tentative",
|
|
162
|
+
};
|
|
163
|
+
exports.ChannelContextSource = {
|
|
164
|
+
KITE: "kite",
|
|
165
|
+
};
|
|
166
|
+
exports.ChannelWhatsAppStatus = {
|
|
167
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
168
|
+
};
|
|
169
|
+
exports.ChatDirection = {
|
|
170
|
+
INBOUND: "INBOUND",
|
|
171
|
+
INTERNAL: "INTERNAL",
|
|
172
|
+
OUTBOUND: "OUTBOUND",
|
|
173
|
+
};
|
|
174
|
+
exports.ChatParticipantRole = {
|
|
175
|
+
AGENT: "AGENT",
|
|
176
|
+
CLIENT: "CLIENT",
|
|
177
|
+
};
|
|
178
|
+
exports.ChatParticipantType = {
|
|
179
|
+
LOCAL: "LOCAL",
|
|
180
|
+
REMOTE: "REMOTE",
|
|
181
|
+
};
|
|
182
|
+
exports.ChatStatus = {
|
|
183
|
+
COMPLETED: "COMPLETED",
|
|
184
|
+
MISSED: "MISSED",
|
|
185
|
+
WAITFIRSTREPLY: "WAITFIRSTREPLY",
|
|
186
|
+
WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
|
|
187
|
+
WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
|
|
188
|
+
};
|
|
189
|
+
exports.ChatTag = {
|
|
190
|
+
SMS: "sms",
|
|
191
|
+
TELEPHONY: "telephony",
|
|
192
|
+
WHATSAPP: "whatsapp",
|
|
193
|
+
};
|
|
194
|
+
class ChatTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
195
|
+
name = "ChatTranscriptionNotFoundException";
|
|
196
|
+
$fault = "client";
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ChatTranscriptionNotFoundException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ChatTranscriptionNotFoundException.prototype);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
exports.ChatTranscriptionNotFoundException = ChatTranscriptionNotFoundException;
|
|
207
|
+
var ButtonHandler;
|
|
208
|
+
(function (ButtonHandler) {
|
|
209
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
210
|
+
if (value.link !== undefined)
|
|
211
|
+
return visitor.link(value.link);
|
|
212
|
+
if (value.reply !== undefined)
|
|
213
|
+
return visitor.reply(value.reply);
|
|
214
|
+
if (value.action !== undefined)
|
|
215
|
+
return visitor.action(value.action);
|
|
216
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
217
|
+
};
|
|
218
|
+
})(ButtonHandler || (exports.ButtonHandler = ButtonHandler = {}));
|
|
219
|
+
exports.ButtonVariant = {
|
|
220
|
+
CONTAINED: "contained",
|
|
221
|
+
OUTLINED: "outlined",
|
|
222
|
+
};
|
|
223
|
+
var ActionElement;
|
|
224
|
+
(function (ActionElement) {
|
|
225
|
+
ActionElement.visit = (value, visitor) => {
|
|
226
|
+
if (value.button !== undefined)
|
|
227
|
+
return visitor.button(value.button);
|
|
228
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
229
|
+
};
|
|
230
|
+
})(ActionElement || (exports.ActionElement = ActionElement = {}));
|
|
231
|
+
var Element;
|
|
232
|
+
(function (Element) {
|
|
233
|
+
Element.visit = (value, visitor) => {
|
|
234
|
+
if (value.template !== undefined)
|
|
235
|
+
return visitor.template(value.template);
|
|
236
|
+
if (value.actions !== undefined)
|
|
237
|
+
return visitor.actions(value.actions);
|
|
238
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
239
|
+
};
|
|
240
|
+
})(Element || (exports.Element = Element = {}));
|
|
241
|
+
exports.MessageSmsStatus = {
|
|
242
|
+
DELIVERED: "delivered",
|
|
243
|
+
ERROR: "error",
|
|
244
|
+
SENT: "sent",
|
|
245
|
+
TRYING: "trying",
|
|
246
|
+
};
|
|
247
|
+
exports.MessageType = {
|
|
248
|
+
DELETED: "deleted",
|
|
249
|
+
REGULAR: "regular",
|
|
250
|
+
SYSTEM: "system",
|
|
251
|
+
};
|
|
252
|
+
exports.MessageWhatsAppStatus = {
|
|
253
|
+
DELIVERED: "delivered",
|
|
254
|
+
ERROR: "error",
|
|
255
|
+
SENT: "sent",
|
|
256
|
+
TRYING: "trying",
|
|
133
257
|
};
|
|
134
258
|
class ConferenceNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
135
259
|
name = "ConferenceNotFoundException";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateCallCommand = exports.de_QueryUserCallsCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallCommand = exports.se_UpdateCallCommand = exports.se_QueryUserCallsCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallCommand = void 0;
|
|
3
|
+
exports.de_UpdateCallCommand = exports.de_QueryUserCallsCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceCommand = exports.de_GetChatTranscriptionTextCommand = exports.de_GetChatTranscriptionCommand = exports.de_GetChatCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallCommand = exports.se_UpdateCallCommand = exports.se_QueryUserCallsCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceCommand = exports.se_GetChatTranscriptionTextCommand = exports.se_GetChatTranscriptionCommand = exports.se_GetChatCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallCommand = void 0;
|
|
4
4
|
const WdaHistoryServiceException_1 = require("../models/WdaHistoryServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -57,6 +57,54 @@ const se_GetCallTranscriptionTextCommand = async (input, context) => {
|
|
|
57
57
|
return b.build();
|
|
58
58
|
};
|
|
59
59
|
exports.se_GetCallTranscriptionTextCommand = se_GetCallTranscriptionTextCommand;
|
|
60
|
+
const se_GetChatCommand = async (input, context) => {
|
|
61
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
|
+
const headers = {};
|
|
63
|
+
b.bp("/v2/history/chats/{chatId}");
|
|
64
|
+
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
65
|
+
const query = (0, smithy_client_1.map)({
|
|
66
|
+
[_c]: [, input[_c]],
|
|
67
|
+
});
|
|
68
|
+
let body;
|
|
69
|
+
b.m("GET")
|
|
70
|
+
.h(headers)
|
|
71
|
+
.q(query)
|
|
72
|
+
.b(body);
|
|
73
|
+
return b.build();
|
|
74
|
+
};
|
|
75
|
+
exports.se_GetChatCommand = se_GetChatCommand;
|
|
76
|
+
const se_GetChatTranscriptionCommand = async (input, context) => {
|
|
77
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
78
|
+
const headers = {};
|
|
79
|
+
b.bp("/v2/history/chats/{chatId}/transcription");
|
|
80
|
+
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
81
|
+
const query = (0, smithy_client_1.map)({
|
|
82
|
+
[_c]: [, input[_c]],
|
|
83
|
+
});
|
|
84
|
+
let body;
|
|
85
|
+
b.m("GET")
|
|
86
|
+
.h(headers)
|
|
87
|
+
.q(query)
|
|
88
|
+
.b(body);
|
|
89
|
+
return b.build();
|
|
90
|
+
};
|
|
91
|
+
exports.se_GetChatTranscriptionCommand = se_GetChatTranscriptionCommand;
|
|
92
|
+
const se_GetChatTranscriptionTextCommand = async (input, context) => {
|
|
93
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
94
|
+
const headers = {};
|
|
95
|
+
b.bp("/v2/history/chats/{chatId}/transcription/text");
|
|
96
|
+
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
97
|
+
const query = (0, smithy_client_1.map)({
|
|
98
|
+
[_c]: [, input[_c]],
|
|
99
|
+
});
|
|
100
|
+
let body;
|
|
101
|
+
b.m("GET")
|
|
102
|
+
.h(headers)
|
|
103
|
+
.q(query)
|
|
104
|
+
.b(body);
|
|
105
|
+
return b.build();
|
|
106
|
+
};
|
|
107
|
+
exports.se_GetChatTranscriptionTextCommand = se_GetChatTranscriptionTextCommand;
|
|
60
108
|
const se_GetConferenceCommand = async (input, context) => {
|
|
61
109
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
110
|
const headers = {};
|
|
@@ -197,6 +245,7 @@ const de_GetCallTranscriptionCommand = async (output, context) => {
|
|
|
197
245
|
});
|
|
198
246
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
199
247
|
const doc = (0, smithy_client_1.take)(data, {
|
|
248
|
+
'interaction': _ => de_CallTranscriptionInteractionRecord(_, context),
|
|
200
249
|
'transcription': smithy_client_1._json,
|
|
201
250
|
});
|
|
202
251
|
Object.assign(contents, doc);
|
|
@@ -220,6 +269,53 @@ const de_GetCallTranscriptionTextCommand = async (output, context) => {
|
|
|
220
269
|
return contents;
|
|
221
270
|
};
|
|
222
271
|
exports.de_GetCallTranscriptionTextCommand = de_GetCallTranscriptionTextCommand;
|
|
272
|
+
const de_GetChatCommand = async (output, context) => {
|
|
273
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
274
|
+
return de_CommandError(output, context);
|
|
275
|
+
}
|
|
276
|
+
const contents = (0, smithy_client_1.map)({
|
|
277
|
+
$metadata: deserializeMetadata(output),
|
|
278
|
+
});
|
|
279
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
280
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
281
|
+
'chat': smithy_client_1._json,
|
|
282
|
+
});
|
|
283
|
+
Object.assign(contents, doc);
|
|
284
|
+
return contents;
|
|
285
|
+
};
|
|
286
|
+
exports.de_GetChatCommand = de_GetChatCommand;
|
|
287
|
+
const de_GetChatTranscriptionCommand = async (output, context) => {
|
|
288
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
289
|
+
return de_CommandError(output, context);
|
|
290
|
+
}
|
|
291
|
+
const contents = (0, smithy_client_1.map)({
|
|
292
|
+
$metadata: deserializeMetadata(output),
|
|
293
|
+
});
|
|
294
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
295
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
296
|
+
'transcription': smithy_client_1._json,
|
|
297
|
+
});
|
|
298
|
+
Object.assign(contents, doc);
|
|
299
|
+
return contents;
|
|
300
|
+
};
|
|
301
|
+
exports.de_GetChatTranscriptionCommand = de_GetChatTranscriptionCommand;
|
|
302
|
+
const de_GetChatTranscriptionTextCommand = async (output, context) => {
|
|
303
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
304
|
+
return de_CommandError(output, context);
|
|
305
|
+
}
|
|
306
|
+
const contents = (0, smithy_client_1.map)({
|
|
307
|
+
$metadata: deserializeMetadata(output),
|
|
308
|
+
});
|
|
309
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
310
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
311
|
+
'filename': smithy_client_1.expectString,
|
|
312
|
+
'messages': smithy_client_1._json,
|
|
313
|
+
'text': smithy_client_1.expectString,
|
|
314
|
+
});
|
|
315
|
+
Object.assign(contents, doc);
|
|
316
|
+
return contents;
|
|
317
|
+
};
|
|
318
|
+
exports.de_GetChatTranscriptionTextCommand = de_GetChatTranscriptionTextCommand;
|
|
223
319
|
const de_GetConferenceCommand = async (output, context) => {
|
|
224
320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
225
321
|
return de_CommandError(output, context);
|
|
@@ -244,6 +340,7 @@ const de_GetConferenceTranscriptionCommand = async (output, context) => {
|
|
|
244
340
|
});
|
|
245
341
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
246
342
|
const doc = (0, smithy_client_1.take)(data, {
|
|
343
|
+
'interaction': _ => de_ConferenceTranscriptionInteractionRecord(_, context),
|
|
247
344
|
'transcription': smithy_client_1._json,
|
|
248
345
|
});
|
|
249
346
|
Object.assign(contents, doc);
|
|
@@ -331,6 +428,12 @@ const de_CommandError = async (output, context) => {
|
|
|
331
428
|
case "CallTranscriptionNotFoundException":
|
|
332
429
|
case "wildix.wda.history#CallTranscriptionNotFoundException":
|
|
333
430
|
throw await de_CallTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
431
|
+
case "ChatNotFoundException":
|
|
432
|
+
case "wildix.wda.history#ChatNotFoundException":
|
|
433
|
+
throw await de_ChatNotFoundExceptionRes(parsedOutput, context);
|
|
434
|
+
case "ChatTranscriptionNotFoundException":
|
|
435
|
+
case "wildix.wda.history#ChatTranscriptionNotFoundException":
|
|
436
|
+
throw await de_ChatTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
334
437
|
case "ConferenceNotFoundException":
|
|
335
438
|
case "wildix.wda.history#ConferenceNotFoundException":
|
|
336
439
|
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -399,6 +502,32 @@ const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
399
502
|
});
|
|
400
503
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
401
504
|
};
|
|
505
|
+
const de_ChatNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
506
|
+
const contents = (0, smithy_client_1.map)({});
|
|
507
|
+
const data = parsedOutput.body;
|
|
508
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
509
|
+
'message': smithy_client_1.expectString,
|
|
510
|
+
});
|
|
511
|
+
Object.assign(contents, doc);
|
|
512
|
+
const exception = new models_0_1.ChatNotFoundException({
|
|
513
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
514
|
+
...contents
|
|
515
|
+
});
|
|
516
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
517
|
+
};
|
|
518
|
+
const de_ChatTranscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
519
|
+
const contents = (0, smithy_client_1.map)({});
|
|
520
|
+
const data = parsedOutput.body;
|
|
521
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
522
|
+
'message': smithy_client_1.expectString,
|
|
523
|
+
});
|
|
524
|
+
Object.assign(contents, doc);
|
|
525
|
+
const exception = new models_0_1.ChatTranscriptionNotFoundException({
|
|
526
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
527
|
+
...contents
|
|
528
|
+
});
|
|
529
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
530
|
+
};
|
|
402
531
|
const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
403
532
|
const contents = (0, smithy_client_1.map)({});
|
|
404
533
|
const data = parsedOutput.body;
|
|
@@ -450,6 +579,28 @@ const se_QueryUserCallsFilter = (input, context) => {
|
|
|
450
579
|
'userDirection': [],
|
|
451
580
|
});
|
|
452
581
|
};
|
|
582
|
+
const de_CallTranscriptionInteractionRecord = (output, context) => {
|
|
583
|
+
return (0, smithy_client_1.take)(output, {
|
|
584
|
+
'interruptions': smithy_client_1.expectInt32,
|
|
585
|
+
'longestCustomerStory': smithy_client_1.expectInt32,
|
|
586
|
+
'longestMonologue': smithy_client_1.expectInt32,
|
|
587
|
+
'participants': smithy_client_1._json,
|
|
588
|
+
'patience': smithy_client_1.limitedParseFloat32,
|
|
589
|
+
'talkRatio': smithy_client_1.expectInt32,
|
|
590
|
+
'wordsPerMinute': smithy_client_1.expectInt32,
|
|
591
|
+
});
|
|
592
|
+
};
|
|
593
|
+
const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
|
|
594
|
+
return (0, smithy_client_1.take)(output, {
|
|
595
|
+
'interruptions': smithy_client_1.expectInt32,
|
|
596
|
+
'longestCustomerStory': smithy_client_1.expectInt32,
|
|
597
|
+
'longestMonologue': smithy_client_1.expectInt32,
|
|
598
|
+
'participants': smithy_client_1._json,
|
|
599
|
+
'patience': smithy_client_1.limitedParseFloat32,
|
|
600
|
+
'talkRatio': smithy_client_1.expectInt32,
|
|
601
|
+
'wordsPerMinute': smithy_client_1.expectInt32,
|
|
602
|
+
});
|
|
603
|
+
};
|
|
453
604
|
const deserializeMetadata = (output) => ({
|
|
454
605
|
httpStatusCode: output.statusCode,
|
|
455
606
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/WdaHistory.js
CHANGED
|
@@ -2,6 +2,9 @@ import { WdaHistoryClient, } from "./WdaHistoryClient";
|
|
|
2
2
|
import { GetCallCommand, } from "./commands/GetCallCommand";
|
|
3
3
|
import { GetCallTranscriptionCommand, } from "./commands/GetCallTranscriptionCommand";
|
|
4
4
|
import { GetCallTranscriptionTextCommand, } from "./commands/GetCallTranscriptionTextCommand";
|
|
5
|
+
import { GetChatCommand, } from "./commands/GetChatCommand";
|
|
6
|
+
import { GetChatTranscriptionCommand, } from "./commands/GetChatTranscriptionCommand";
|
|
7
|
+
import { GetChatTranscriptionTextCommand, } from "./commands/GetChatTranscriptionTextCommand";
|
|
5
8
|
import { GetConferenceCommand, } from "./commands/GetConferenceCommand";
|
|
6
9
|
import { GetConferenceTranscriptionCommand, } from "./commands/GetConferenceTranscriptionCommand";
|
|
7
10
|
import { GetConferenceTranscriptionTextCommand, } from "./commands/GetConferenceTranscriptionTextCommand";
|
|
@@ -13,6 +16,9 @@ const commands = {
|
|
|
13
16
|
GetCallCommand,
|
|
14
17
|
GetCallTranscriptionCommand,
|
|
15
18
|
GetCallTranscriptionTextCommand,
|
|
19
|
+
GetChatCommand,
|
|
20
|
+
GetChatTranscriptionCommand,
|
|
21
|
+
GetChatTranscriptionTextCommand,
|
|
16
22
|
GetConferenceCommand,
|
|
17
23
|
GetConferenceTranscriptionCommand,
|
|
18
24
|
GetConferenceTranscriptionTextCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetChatCommand, se_GetChatCommand, } 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 GetChatCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaHistory", "GetChat", {})
|
|
12
|
+
.n("WdaHistoryClient", "GetChatCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetChatCommand)
|
|
15
|
+
.de(de_GetChatCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetChatTranscriptionCommand, se_GetChatTranscriptionCommand, } 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 GetChatTranscriptionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaHistory", "GetChatTranscription", {})
|
|
12
|
+
.n("WdaHistoryClient", "GetChatTranscriptionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetChatTranscriptionCommand)
|
|
15
|
+
.de(de_GetChatTranscriptionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetChatTranscriptionTextCommand, se_GetChatTranscriptionTextCommand, } 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 GetChatTranscriptionTextCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaHistory", "GetChatTranscriptionText", {})
|
|
12
|
+
.n("WdaHistoryClient", "GetChatTranscriptionTextCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetChatTranscriptionTextCommand)
|
|
15
|
+
.de(de_GetChatTranscriptionTextCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./GetCallCommand";
|
|
2
2
|
export * from "./GetCallTranscriptionCommand";
|
|
3
3
|
export * from "./GetCallTranscriptionTextCommand";
|
|
4
|
+
export * from "./GetChatCommand";
|
|
5
|
+
export * from "./GetChatTranscriptionCommand";
|
|
6
|
+
export * from "./GetChatTranscriptionTextCommand";
|
|
4
7
|
export * from "./GetConferenceCommand";
|
|
5
8
|
export * from "./GetConferenceTranscriptionCommand";
|
|
6
9
|
export * from "./GetConferenceTranscriptionTextCommand";
|