@wildix/xbees-conversations-client 1.0.43 → 1.0.45
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/Conversations.js +2 -0
- package/dist-cjs/commands/DescribeEventCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +228 -1
- package/dist-cjs/protocols/Aws_restJson1.js +134 -8
- package/dist-es/Conversations.js +2 -0
- package/dist-es/commands/DescribeEventCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +226 -0
- package/dist-es/protocols/Aws_restJson1.js +131 -7
- package/dist-types/Conversations.d.ts +8 -0
- package/dist-types/ConversationsClient.d.ts +3 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +1596 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1628 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
|
|
|
9
9
|
const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
|
|
10
10
|
const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
|
|
11
11
|
const DeleteMessageReactionCommand_1 = require("./commands/DeleteMessageReactionCommand");
|
|
12
|
+
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
12
13
|
const GetChannelCommand_1 = require("./commands/GetChannelCommand");
|
|
13
14
|
const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
|
|
14
15
|
const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
|
|
@@ -39,6 +40,7 @@ const UpdateMessageCommand_1 = require("./commands/UpdateMessageCommand");
|
|
|
39
40
|
const UploadFileCommand_1 = require("./commands/UploadFileCommand");
|
|
40
41
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
41
42
|
const commands = {
|
|
43
|
+
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
42
44
|
AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
|
|
43
45
|
AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
|
|
44
46
|
CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeEventCommand = 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 DescribeEventCommand 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("Conversations", "DescribeEvent", {})
|
|
15
|
+
.n("ConversationsClient", "DescribeEventCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DescribeEventCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DescribeEventCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.DescribeEventCommand = DescribeEventCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ConferenceEventType = exports.ChatEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallEventType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
|
+
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MessageType = exports.MessageSmsStatus = exports.FileNotFoundException = void 0;
|
|
4
5
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
6
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
7
|
constructor(opts) {
|
|
@@ -28,10 +29,236 @@ class ForbiddenException extends ConversationsServiceException_1.ConversationsSe
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
exports.ForbiddenException = ForbiddenException;
|
|
32
|
+
exports.CallFlowAttachmentType = {
|
|
33
|
+
FAX: "FAX",
|
|
34
|
+
VOICEMAIL: "VOICEMAIL",
|
|
35
|
+
};
|
|
36
|
+
exports.CallParticipantRole = {
|
|
37
|
+
AGENT: "AGENT",
|
|
38
|
+
CLIENT: "CLIENT",
|
|
39
|
+
};
|
|
40
|
+
exports.CallParticipantType = {
|
|
41
|
+
LOCAL: "LOCAL",
|
|
42
|
+
REMOTE: "REMOTE",
|
|
43
|
+
};
|
|
44
|
+
exports.CallDevice = {
|
|
45
|
+
COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
|
|
46
|
+
COLLABORATION_IOS: "COLLABORATION_IOS",
|
|
47
|
+
COLLABORATION_WEB: "COLLABORATION_WEB",
|
|
48
|
+
UNKNOWN: "UNKNOWN",
|
|
49
|
+
WILDIX_DEVICE: "WILDIX_DEVICE",
|
|
50
|
+
WILDIX_PHONE: "WILDIX_PHONE",
|
|
51
|
+
XBEES_ANDROID: "XBEES_ANDROID",
|
|
52
|
+
XBEES_IOS: "XBEES_IOS",
|
|
53
|
+
XBEES_WEB: "XBEES_WEB",
|
|
54
|
+
};
|
|
55
|
+
exports.ConversationStatus = {
|
|
56
|
+
COMPLETED: "COMPLETED",
|
|
57
|
+
MISSED: "MISSED",
|
|
58
|
+
};
|
|
59
|
+
exports.CallDirection = {
|
|
60
|
+
INBOUND: "INBOUND",
|
|
61
|
+
INTERNAL: "INTERNAL",
|
|
62
|
+
OUTBOUND: "OUTBOUND",
|
|
63
|
+
UNDEFINED: "UNDEFINED",
|
|
64
|
+
};
|
|
65
|
+
exports.License = {
|
|
66
|
+
XBEES: "x-bees",
|
|
67
|
+
};
|
|
68
|
+
exports.CallRecordOwner = {
|
|
69
|
+
CALLEE: "callee",
|
|
70
|
+
CALLER: "caller",
|
|
71
|
+
SYSTEM: "system",
|
|
72
|
+
};
|
|
73
|
+
exports.CallRecordPauseReason = {
|
|
74
|
+
HOLD: "hold",
|
|
75
|
+
PAUSE: "pause",
|
|
76
|
+
};
|
|
77
|
+
exports.CallFlowTranscriptionStatus = {
|
|
78
|
+
AVAILABLE: "AVAILABLE",
|
|
79
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
80
|
+
};
|
|
81
|
+
exports.CallTranscriptionSpeaker = {
|
|
82
|
+
CALLEE: "callee",
|
|
83
|
+
CALLER: "caller",
|
|
84
|
+
};
|
|
85
|
+
exports.ConferenceDirection = {
|
|
86
|
+
INBOUND: "INBOUND",
|
|
87
|
+
INTERNAL: "INTERNAL",
|
|
88
|
+
OUTBOUND: "OUTBOUND",
|
|
89
|
+
};
|
|
90
|
+
exports.PbxLicenseType = {
|
|
91
|
+
BASIC: "basic",
|
|
92
|
+
BUSINESS: "business",
|
|
93
|
+
ESSENTIAL: "essential",
|
|
94
|
+
PREMIUM: "premium",
|
|
95
|
+
WIZYCONF: "wizyconf",
|
|
96
|
+
};
|
|
97
|
+
exports.ConferenceParticipantRole = {
|
|
98
|
+
AGENT: "AGENT",
|
|
99
|
+
CLIENT: "CLIENT",
|
|
100
|
+
};
|
|
101
|
+
exports.ConferenceParticipantType = {
|
|
102
|
+
EXTERNAL: "EXTERNAL",
|
|
103
|
+
EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
|
|
104
|
+
PBX: "PBX",
|
|
105
|
+
PBX_SIP: "PBX_SIP",
|
|
106
|
+
XBS: "XBS",
|
|
107
|
+
};
|
|
108
|
+
exports.ConferenceTranscriptionStatus = {
|
|
109
|
+
AVAILABLE: "AVAILABLE",
|
|
110
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
111
|
+
};
|
|
112
|
+
exports.LiveEventType = {
|
|
113
|
+
CALL: "call",
|
|
114
|
+
CALL_COMPLETE: "call_complete",
|
|
115
|
+
CALL_INTERRUPTED: "call_interrupted",
|
|
116
|
+
CALL_TRANSCRIPTION: "call_transcription",
|
|
117
|
+
CHAT: "chat",
|
|
118
|
+
CHAT_COMPLETE: "chat_complete",
|
|
119
|
+
CHAT_COST: "call_cost",
|
|
120
|
+
CHAT_INTERRUPTED: "chat_interrupted",
|
|
121
|
+
CHAT_MISSED: "chat_missed",
|
|
122
|
+
CONFERENCE: "conference",
|
|
123
|
+
CONFERENCE_COMPLETE: "conference_complete",
|
|
124
|
+
CONFERENCE_INTERRUPTED: "conference_interrupted",
|
|
125
|
+
CONFERENCE_JOIN: "conference_join",
|
|
126
|
+
CONFERENCE_LEAVE: "conference_leave",
|
|
127
|
+
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
128
|
+
};
|
|
129
|
+
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
130
|
+
AGENTS_CANCEL: "call.agents_cancel",
|
|
131
|
+
AGENTS_START: "call.agents_start",
|
|
132
|
+
ATTACHMENT: "call.attachment",
|
|
133
|
+
RECORD_START: "call.record_start",
|
|
134
|
+
RECORD_STOP: "call.record_stop",
|
|
135
|
+
SPLIT: "call.split",
|
|
136
|
+
START: "call.start",
|
|
137
|
+
TRANSCRIPTION: "call.transcription",
|
|
138
|
+
UPDATE: "call.update",
|
|
139
|
+
};
|
|
140
|
+
exports.CallFlowStatus = {
|
|
141
|
+
CONNECTING: "CONNECTING",
|
|
142
|
+
HOLD: "HOLD",
|
|
143
|
+
TALKING: "TALKING",
|
|
144
|
+
};
|
|
145
|
+
exports.CallEndBy = {
|
|
146
|
+
CALLEE: "CALLEE",
|
|
147
|
+
CALLER: "CALLER",
|
|
148
|
+
};
|
|
149
|
+
exports.CallEventType = {
|
|
150
|
+
COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
|
|
151
|
+
LIVE_COMPLETE_EVENT: "CallAnalyticsLiveCompleteEvent",
|
|
152
|
+
LIVE_INTERRUPTED_EVENT: "CallAnalyticsLiveInterruptedEvent",
|
|
153
|
+
LIVE_PROGRESS_EVENT: "CallAnalyticsLiveProgressEvent",
|
|
154
|
+
LIVE_TRANSCRIPTION_EVENT: "CallAnalyticsLiveTranscriptionEvent",
|
|
155
|
+
RECORD_EVENT: "CallAnalyticsRecordEvent",
|
|
156
|
+
TRANSCRIPTION_RECORD_EVENT: "CallAnalyticsTranscriptionRecordEvent",
|
|
157
|
+
};
|
|
31
158
|
exports.ChannelType = {
|
|
32
159
|
DIRECT: "direct",
|
|
33
160
|
GROUP: "group",
|
|
34
161
|
};
|
|
162
|
+
exports.ChatDirection = {
|
|
163
|
+
INBOUND: "INBOUND",
|
|
164
|
+
INTERNAL: "INTERNAL",
|
|
165
|
+
OUTBOUND: "OUTBOUND",
|
|
166
|
+
};
|
|
167
|
+
exports.ChatParticipantRole = {
|
|
168
|
+
AGENT: "AGENT",
|
|
169
|
+
CLIENT: "CLIENT",
|
|
170
|
+
};
|
|
171
|
+
exports.ChatParticipantType = {
|
|
172
|
+
LOCAL: "LOCAL",
|
|
173
|
+
REMOTE: "REMOTE",
|
|
174
|
+
};
|
|
175
|
+
exports.ChatStatus = {
|
|
176
|
+
COMPLETED: "COMPLETED",
|
|
177
|
+
MISSED: "MISSED",
|
|
178
|
+
WAITFIRSTREPLY: "WAITFIRSTREPLY",
|
|
179
|
+
WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
|
|
180
|
+
WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
|
|
181
|
+
};
|
|
182
|
+
exports.ChatTag = {
|
|
183
|
+
SMS: "sms",
|
|
184
|
+
TELEPHONY: "telephony",
|
|
185
|
+
};
|
|
186
|
+
exports.ChatEventType = {
|
|
187
|
+
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
188
|
+
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
189
|
+
LIVE_MISSED_EVENT: "ChatAnalyticsLiveMissedEvent",
|
|
190
|
+
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
191
|
+
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
192
|
+
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
193
|
+
};
|
|
194
|
+
exports.ConferenceEventType = {
|
|
195
|
+
LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
|
|
196
|
+
LIVE_INTERRUPTED_EVENT: "ConferenceAnalyticsLiveInterruptedEvent",
|
|
197
|
+
LIVE_JOIN_EVENT: "ConferenceAnalyticsLiveJoinEvent",
|
|
198
|
+
LIVE_LEAVE_EVENT: "ConferenceAnalyticsLiveLeaveEvent",
|
|
199
|
+
LIVE_PROGRESS_EVENT: "ConferenceAnalyticsLiveProgressEvent",
|
|
200
|
+
LIVE_TRANSCRIPTION_EVENT: "ConferenceAnalyticsLiveTranscriptionEvent",
|
|
201
|
+
RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
|
|
202
|
+
TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
|
|
203
|
+
};
|
|
204
|
+
exports.SmsConsumeEventType = {
|
|
205
|
+
SMS_INBOUND: "SMS.INBOUND",
|
|
206
|
+
SMS_STATUS: "SMS.STATUS",
|
|
207
|
+
};
|
|
208
|
+
exports.SmsChannelType = {
|
|
209
|
+
ONE_WAY: "1-way-sms",
|
|
210
|
+
TWO_WAY: "2-way-sms",
|
|
211
|
+
};
|
|
212
|
+
exports.SmsStatus = {
|
|
213
|
+
DELIVERED: "delivered",
|
|
214
|
+
ERROR: "error",
|
|
215
|
+
SENT: "sent",
|
|
216
|
+
TRYING: "trying",
|
|
217
|
+
};
|
|
218
|
+
exports.PresenceAnalyticsEventType = {
|
|
219
|
+
PRESENCE: "PRESENCE",
|
|
220
|
+
PRESENCE_TELEPHONY: "PRESENCE_TELEPHONY",
|
|
221
|
+
};
|
|
222
|
+
exports.PresenceEventType = {
|
|
223
|
+
CONFERENCE_EVENT: "PresenceAnalyticsConferenceEvent",
|
|
224
|
+
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
225
|
+
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
226
|
+
};
|
|
227
|
+
exports.WebhookEventType = {
|
|
228
|
+
CALL_COMPLETED: "call:completed",
|
|
229
|
+
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
230
|
+
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
231
|
+
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
232
|
+
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
233
|
+
CHAT_COMPLETED: "chat:completed",
|
|
234
|
+
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
235
|
+
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
236
|
+
CHAT_LIVE_PROGRESS: "chat:live:progress",
|
|
237
|
+
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
238
|
+
CONFERENCE_COMPLETED: "conference:completed",
|
|
239
|
+
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
240
|
+
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
241
|
+
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
242
|
+
CONFERENCE_LIVE_LEAVE: "conference:live:leave",
|
|
243
|
+
CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
|
|
244
|
+
CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
|
|
245
|
+
OLD_CALL_END: "call:end",
|
|
246
|
+
OLD_CALL_START: "call:start",
|
|
247
|
+
OLD_CALL_UPDATE: "call:update",
|
|
248
|
+
PRESENCE_CONFERENCE: "presence:conference",
|
|
249
|
+
PRESENCE_TELEPHONY: "presence:telephony",
|
|
250
|
+
PRESENCE_USER: "presence:user",
|
|
251
|
+
};
|
|
252
|
+
exports.WebsocketEvent = {
|
|
253
|
+
AUTHORIZED: "authorized",
|
|
254
|
+
BROADCAST: "broadcast",
|
|
255
|
+
SUBSCRIBED: "subscribed",
|
|
256
|
+
};
|
|
257
|
+
exports.WebsocketTopic = {
|
|
258
|
+
CONVERSATIONS: "conversations",
|
|
259
|
+
PRESENCE: "presence",
|
|
260
|
+
TRANSCRIPTIONS: "transcriptions",
|
|
261
|
+
};
|
|
35
262
|
exports.ChannelMemberRole = {
|
|
36
263
|
MEMBER: "member",
|
|
37
264
|
SUPERVISOR: "supervisor",
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = void 0;
|
|
3
|
+
exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.de_DescribeEventCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = exports.se_DescribeEventCommand = void 0;
|
|
4
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = void 0;
|
|
5
5
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@smithy/core");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
+
const se_DescribeEventCommand = async (input, context) => {
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
+
const headers = {
|
|
12
|
+
'content-type': 'application/json',
|
|
13
|
+
};
|
|
14
|
+
b.bp("/v2/stream/events/describe");
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
'SmsInboundEvent': _ => (0, smithy_client_1._json)(_),
|
|
18
|
+
'SmsStatusEvent': _ => (0, smithy_client_1._json)(_),
|
|
19
|
+
}));
|
|
20
|
+
b.m("POST")
|
|
21
|
+
.h(headers)
|
|
22
|
+
.b(body);
|
|
23
|
+
return b.build();
|
|
24
|
+
};
|
|
25
|
+
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
9
26
|
const se_AddChannelMemberCommand = async (input, context) => {
|
|
10
27
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
28
|
const headers = {
|
|
@@ -662,6 +679,74 @@ const se_UploadFileCommand = async (input, context) => {
|
|
|
662
679
|
return b.build();
|
|
663
680
|
};
|
|
664
681
|
exports.se_UploadFileCommand = se_UploadFileCommand;
|
|
682
|
+
const de_DescribeEventCommand = async (output, context) => {
|
|
683
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
684
|
+
return de_CommandError(output, context);
|
|
685
|
+
}
|
|
686
|
+
const contents = (0, smithy_client_1.map)({
|
|
687
|
+
$metadata: deserializeMetadata(output),
|
|
688
|
+
});
|
|
689
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
690
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
691
|
+
'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
|
|
692
|
+
'CallAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
693
|
+
'CallAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
694
|
+
'CallAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
695
|
+
'CallAnalyticsLiveTranscriptionEvent': smithy_client_1._json,
|
|
696
|
+
'CallAnalyticsRecordEvent': smithy_client_1._json,
|
|
697
|
+
'CallAnalyticsTranscriptionRecordEvent': smithy_client_1._json,
|
|
698
|
+
'CallEventType': smithy_client_1.expectString,
|
|
699
|
+
'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
700
|
+
'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
701
|
+
'ChatAnalyticsLiveMissedEvent': smithy_client_1._json,
|
|
702
|
+
'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
703
|
+
'ChatAnalyticsManagerMissedEvent': smithy_client_1._json,
|
|
704
|
+
'ChatAnalyticsRecordEvent': smithy_client_1._json,
|
|
705
|
+
'ChatEventType': smithy_client_1.expectString,
|
|
706
|
+
'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
707
|
+
'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
708
|
+
'ConferenceAnalyticsLiveJoinEvent': smithy_client_1._json,
|
|
709
|
+
'ConferenceAnalyticsLiveLeaveEvent': smithy_client_1._json,
|
|
710
|
+
'ConferenceAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
711
|
+
'ConferenceAnalyticsLiveTranscriptionEvent': smithy_client_1._json,
|
|
712
|
+
'ConferenceAnalyticsRecordEvent': smithy_client_1._json,
|
|
713
|
+
'ConferenceAnalyticsTranscriptionRecordEvent': smithy_client_1._json,
|
|
714
|
+
'ConferenceEventType': smithy_client_1.expectString,
|
|
715
|
+
'PresenceAnalyticsConferenceEvent': smithy_client_1._json,
|
|
716
|
+
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
717
|
+
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
718
|
+
'PresenceEventType': smithy_client_1.expectString,
|
|
719
|
+
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
720
|
+
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
721
|
+
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
722
|
+
'WebhookCallLiveProgressEvent': smithy_client_1._json,
|
|
723
|
+
'WebhookCallLiveTranscriptionEvent': smithy_client_1._json,
|
|
724
|
+
'WebhookChatCompletedEvent': smithy_client_1._json,
|
|
725
|
+
'WebhookChatLiveCompletedEvent': smithy_client_1._json,
|
|
726
|
+
'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
|
|
727
|
+
'WebhookChatLiveProgressEvent': smithy_client_1._json,
|
|
728
|
+
'WebhookChatManagerMissedEvent': smithy_client_1._json,
|
|
729
|
+
'WebhookConferenceCompletedEvent': smithy_client_1._json,
|
|
730
|
+
'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
|
|
731
|
+
'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
|
|
732
|
+
'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
|
|
733
|
+
'WebhookConferenceLiveLeaveEvent': smithy_client_1._json,
|
|
734
|
+
'WebhookConferenceLiveProgressEvent': smithy_client_1._json,
|
|
735
|
+
'WebhookConferenceLiveTranscriptionEvent': smithy_client_1._json,
|
|
736
|
+
'WebhookOutdatedCallEndEvent': smithy_client_1._json,
|
|
737
|
+
'WebhookOutdatedCallStartEvent': smithy_client_1._json,
|
|
738
|
+
'WebhookOutdatedCallUpdateEvent': smithy_client_1._json,
|
|
739
|
+
'WebhookPresenceConferenceEvent': smithy_client_1._json,
|
|
740
|
+
'WebhookPresenceTelephonyEvent': smithy_client_1._json,
|
|
741
|
+
'WebhookPresenceUserEvent': smithy_client_1._json,
|
|
742
|
+
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
743
|
+
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
744
|
+
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
747
|
+
return contents;
|
|
748
|
+
};
|
|
749
|
+
exports.de_DescribeEventCommand = de_DescribeEventCommand;
|
|
665
750
|
const de_AddChannelMemberCommand = async (output, context) => {
|
|
666
751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
752
|
return de_CommandError(output, context);
|
|
@@ -1151,18 +1236,18 @@ const de_CommandError = async (output, context) => {
|
|
|
1151
1236
|
};
|
|
1152
1237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1238
|
switch (errorCode) {
|
|
1154
|
-
case "ChannelNotFoundException":
|
|
1155
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1156
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1157
1239
|
case "ForbiddenException":
|
|
1158
1240
|
case "smithy.framework#ForbiddenException":
|
|
1159
1241
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "MemberAlreadyExistException":
|
|
1161
|
-
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1162
|
-
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1163
1242
|
case "ValidationException":
|
|
1164
1243
|
case "smithy.framework#ValidationException":
|
|
1165
1244
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "ChannelNotFoundException":
|
|
1246
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1247
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "MemberAlreadyExistException":
|
|
1249
|
+
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1250
|
+
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1166
1251
|
case "ChannelAlreadyExistException":
|
|
1167
1252
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1168
1253
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
@@ -1305,6 +1390,47 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1305
1390
|
});
|
|
1306
1391
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1307
1392
|
};
|
|
1393
|
+
const de_Document = (output, context) => {
|
|
1394
|
+
return output;
|
|
1395
|
+
};
|
|
1396
|
+
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
1397
|
+
return (0, smithy_client_1.take)(output, {
|
|
1398
|
+
'company': smithy_client_1.expectString,
|
|
1399
|
+
'cost': smithy_client_1.limitedParseDouble,
|
|
1400
|
+
'flowIndex': smithy_client_1.expectInt32,
|
|
1401
|
+
'id': smithy_client_1.expectString,
|
|
1402
|
+
'licenses': smithy_client_1._json,
|
|
1403
|
+
'pbx': smithy_client_1.expectString,
|
|
1404
|
+
'time': smithy_client_1.expectLong,
|
|
1405
|
+
'transcriptions': smithy_client_1._json,
|
|
1406
|
+
'type': smithy_client_1.expectString,
|
|
1407
|
+
});
|
|
1408
|
+
};
|
|
1409
|
+
const de_WebsocketConversationsBroadcastEvent = (output, context) => {
|
|
1410
|
+
return (0, smithy_client_1.take)(output, {
|
|
1411
|
+
'data': (_) => de_Document(_, context),
|
|
1412
|
+
'event': smithy_client_1.expectString,
|
|
1413
|
+
'meta': (_) => de_Document(_, context),
|
|
1414
|
+
'topic': smithy_client_1.expectString,
|
|
1415
|
+
});
|
|
1416
|
+
};
|
|
1417
|
+
const de_WebsocketPresenceBroadcastEvent = (output, context) => {
|
|
1418
|
+
return (0, smithy_client_1.take)(output, {
|
|
1419
|
+
'data': smithy_client_1._json,
|
|
1420
|
+
'delta': smithy_client_1._json,
|
|
1421
|
+
'event': smithy_client_1.expectString,
|
|
1422
|
+
'meta': (_) => de_Document(_, context),
|
|
1423
|
+
'topic': smithy_client_1.expectString,
|
|
1424
|
+
});
|
|
1425
|
+
};
|
|
1426
|
+
const de_WebsocketTranscriptionsBroadcastEvent = (output, context) => {
|
|
1427
|
+
return (0, smithy_client_1.take)(output, {
|
|
1428
|
+
'data': (_) => de_Document(_, context),
|
|
1429
|
+
'event': smithy_client_1.expectString,
|
|
1430
|
+
'meta': (_) => de_Document(_, context),
|
|
1431
|
+
'topic': smithy_client_1.expectString,
|
|
1432
|
+
});
|
|
1433
|
+
};
|
|
1308
1434
|
const deserializeMetadata = (output) => ({
|
|
1309
1435
|
httpStatusCode: output.statusCode,
|
|
1310
1436
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Conversations.js
CHANGED
|
@@ -6,6 +6,7 @@ import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
|
|
|
6
6
|
import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
|
|
7
7
|
import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
|
|
8
8
|
import { DeleteMessageReactionCommand, } from "./commands/DeleteMessageReactionCommand";
|
|
9
|
+
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
9
10
|
import { GetChannelCommand, } from "./commands/GetChannelCommand";
|
|
10
11
|
import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
|
|
11
12
|
import { GetDirectChannelIdCommand, } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -36,6 +37,7 @@ import { UpdateMessageCommand, } from "./commands/UpdateMessageCommand";
|
|
|
36
37
|
import { UploadFileCommand, } from "./commands/UploadFileCommand";
|
|
37
38
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
38
39
|
const commands = {
|
|
40
|
+
DescribeEventCommand,
|
|
39
41
|
AddChannelMemberCommand,
|
|
40
42
|
AddChannelMembersCommand,
|
|
41
43
|
CreateGroupChannelCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DescribeEventCommand, se_DescribeEventCommand, } 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 DescribeEventCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "DescribeEvent", {})
|
|
12
|
+
.n("ConversationsClient", "DescribeEventCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DescribeEventCommand)
|
|
15
|
+
.de(de_DescribeEventCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|