@wildix/wda-history-client 1.2.1 → 1.2.8
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 +125 -1
- package/dist-cjs/protocols/Aws_restJson1.js +128 -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 +122 -0
- package/dist-es/protocols/Aws_restJson1.js +122 -1
- 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 +1 -1
- package/dist-types/commands/GetChatCommand.d.ts +198 -0
- package/dist-types/commands/GetChatTranscriptionCommand.d.ts +255 -0
- package/dist-types/commands/GetChatTranscriptionTextCommand.d.ts +250 -0
- package/dist-types/commands/GetConferenceCommand.d.ts +1 -1
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +1 -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 +682 -0
- 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.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;
|
|
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,6 +111,8 @@ 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
|
};
|
|
@@ -131,6 +133,128 @@ class CallTranscriptionNotFoundException extends WdaHistoryServiceException_1.Wd
|
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
exports.CallTranscriptionNotFoundException = CallTranscriptionNotFoundException;
|
|
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",
|
|
257
|
+
};
|
|
134
258
|
class ConferenceNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
135
259
|
name = "ConferenceNotFoundException";
|
|
136
260
|
$fault = "client";
|
|
@@ -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 = {};
|
|
@@ -221,6 +269,53 @@ const de_GetCallTranscriptionTextCommand = async (output, context) => {
|
|
|
221
269
|
return contents;
|
|
222
270
|
};
|
|
223
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;
|
|
224
319
|
const de_GetConferenceCommand = async (output, context) => {
|
|
225
320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
226
321
|
return de_CommandError(output, context);
|
|
@@ -333,6 +428,12 @@ const de_CommandError = async (output, context) => {
|
|
|
333
428
|
case "CallTranscriptionNotFoundException":
|
|
334
429
|
case "wildix.wda.history#CallTranscriptionNotFoundException":
|
|
335
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);
|
|
336
437
|
case "ConferenceNotFoundException":
|
|
337
438
|
case "wildix.wda.history#ConferenceNotFoundException":
|
|
338
439
|
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -401,6 +502,32 @@ const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
401
502
|
});
|
|
402
503
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
403
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
|
+
};
|
|
404
531
|
const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
405
532
|
const contents = (0, smithy_client_1.map)({});
|
|
406
533
|
const data = parsedOutput.body;
|
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";
|
|
@@ -105,6 +105,8 @@ export const CallFlowTranscriptionStatus = {
|
|
|
105
105
|
export const RecordType = {
|
|
106
106
|
CALL: "call",
|
|
107
107
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
108
|
+
CHAT: "chat",
|
|
109
|
+
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
108
110
|
CONFERENCE: "conference",
|
|
109
111
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
110
112
|
};
|
|
@@ -124,6 +126,126 @@ export class CallTranscriptionNotFoundException extends __BaseException {
|
|
|
124
126
|
Object.setPrototypeOf(this, CallTranscriptionNotFoundException.prototype);
|
|
125
127
|
}
|
|
126
128
|
}
|
|
129
|
+
export class ChatNotFoundException extends __BaseException {
|
|
130
|
+
name = "ChatNotFoundException";
|
|
131
|
+
$fault = "client";
|
|
132
|
+
constructor(opts) {
|
|
133
|
+
super({
|
|
134
|
+
name: "ChatNotFoundException",
|
|
135
|
+
$fault: "client",
|
|
136
|
+
...opts
|
|
137
|
+
});
|
|
138
|
+
Object.setPrototypeOf(this, ChatNotFoundException.prototype);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export const ChannelAccess = {
|
|
142
|
+
PRIVATE: "private",
|
|
143
|
+
PUBLIC: "public",
|
|
144
|
+
};
|
|
145
|
+
export const ChannelType = {
|
|
146
|
+
DIRECT: "direct",
|
|
147
|
+
GROUP: "group",
|
|
148
|
+
};
|
|
149
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
150
|
+
ACCEPTED: "accepted",
|
|
151
|
+
DECLINED: "declined",
|
|
152
|
+
NONE: "none",
|
|
153
|
+
TENTATIVE: "tentative",
|
|
154
|
+
};
|
|
155
|
+
export const ChannelContextSource = {
|
|
156
|
+
KITE: "kite",
|
|
157
|
+
};
|
|
158
|
+
export const ChannelWhatsAppStatus = {
|
|
159
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
160
|
+
};
|
|
161
|
+
export const ChatDirection = {
|
|
162
|
+
INBOUND: "INBOUND",
|
|
163
|
+
INTERNAL: "INTERNAL",
|
|
164
|
+
OUTBOUND: "OUTBOUND",
|
|
165
|
+
};
|
|
166
|
+
export const ChatParticipantRole = {
|
|
167
|
+
AGENT: "AGENT",
|
|
168
|
+
CLIENT: "CLIENT",
|
|
169
|
+
};
|
|
170
|
+
export const ChatParticipantType = {
|
|
171
|
+
LOCAL: "LOCAL",
|
|
172
|
+
REMOTE: "REMOTE",
|
|
173
|
+
};
|
|
174
|
+
export const ChatStatus = {
|
|
175
|
+
COMPLETED: "COMPLETED",
|
|
176
|
+
MISSED: "MISSED",
|
|
177
|
+
WAITFIRSTREPLY: "WAITFIRSTREPLY",
|
|
178
|
+
WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
|
|
179
|
+
WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
|
|
180
|
+
};
|
|
181
|
+
export const ChatTag = {
|
|
182
|
+
SMS: "sms",
|
|
183
|
+
TELEPHONY: "telephony",
|
|
184
|
+
WHATSAPP: "whatsapp",
|
|
185
|
+
};
|
|
186
|
+
export class ChatTranscriptionNotFoundException extends __BaseException {
|
|
187
|
+
name = "ChatTranscriptionNotFoundException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ChatTranscriptionNotFoundException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts
|
|
194
|
+
});
|
|
195
|
+
Object.setPrototypeOf(this, ChatTranscriptionNotFoundException.prototype);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
export var ButtonHandler;
|
|
199
|
+
(function (ButtonHandler) {
|
|
200
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
201
|
+
if (value.link !== undefined)
|
|
202
|
+
return visitor.link(value.link);
|
|
203
|
+
if (value.reply !== undefined)
|
|
204
|
+
return visitor.reply(value.reply);
|
|
205
|
+
if (value.action !== undefined)
|
|
206
|
+
return visitor.action(value.action);
|
|
207
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
208
|
+
};
|
|
209
|
+
})(ButtonHandler || (ButtonHandler = {}));
|
|
210
|
+
export const ButtonVariant = {
|
|
211
|
+
CONTAINED: "contained",
|
|
212
|
+
OUTLINED: "outlined",
|
|
213
|
+
};
|
|
214
|
+
export var ActionElement;
|
|
215
|
+
(function (ActionElement) {
|
|
216
|
+
ActionElement.visit = (value, visitor) => {
|
|
217
|
+
if (value.button !== undefined)
|
|
218
|
+
return visitor.button(value.button);
|
|
219
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
220
|
+
};
|
|
221
|
+
})(ActionElement || (ActionElement = {}));
|
|
222
|
+
export var Element;
|
|
223
|
+
(function (Element) {
|
|
224
|
+
Element.visit = (value, visitor) => {
|
|
225
|
+
if (value.template !== undefined)
|
|
226
|
+
return visitor.template(value.template);
|
|
227
|
+
if (value.actions !== undefined)
|
|
228
|
+
return visitor.actions(value.actions);
|
|
229
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
230
|
+
};
|
|
231
|
+
})(Element || (Element = {}));
|
|
232
|
+
export const MessageSmsStatus = {
|
|
233
|
+
DELIVERED: "delivered",
|
|
234
|
+
ERROR: "error",
|
|
235
|
+
SENT: "sent",
|
|
236
|
+
TRYING: "trying",
|
|
237
|
+
};
|
|
238
|
+
export const MessageType = {
|
|
239
|
+
DELETED: "deleted",
|
|
240
|
+
REGULAR: "regular",
|
|
241
|
+
SYSTEM: "system",
|
|
242
|
+
};
|
|
243
|
+
export const MessageWhatsAppStatus = {
|
|
244
|
+
DELIVERED: "delivered",
|
|
245
|
+
ERROR: "error",
|
|
246
|
+
SENT: "sent",
|
|
247
|
+
TRYING: "trying",
|
|
248
|
+
};
|
|
127
249
|
export class ConferenceNotFoundException extends __BaseException {
|
|
128
250
|
name = "ConferenceNotFoundException";
|
|
129
251
|
$fault = "client";
|