@wildix/xbees-conversations-client 1.0.45 → 1.0.46
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 +1 -1
- package/dist-cjs/commands/index.js +1 -1
- package/dist-cjs/models/models_0.js +21 -237
- package/dist-cjs/protocols/Aws_restJson1.js +44 -133
- package/dist-es/Conversations.js +1 -1
- package/dist-es/commands/index.js +1 -1
- package/dist-es/models/models_0.js +20 -235
- package/dist-es/protocols/Aws_restJson1.js +42 -131
- package/dist-types/Conversations.d.ts +7 -7
- package/dist-types/commands/DescribeEventCommand.d.ts +659 -1410
- package/dist-types/commands/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +255 -1682
- package/dist-types/protocols/Aws_restJson1.d.ts +8 -8
- package/package.json +1 -1
|
@@ -40,7 +40,6 @@ const UpdateMessageCommand_1 = require("./commands/UpdateMessageCommand");
|
|
|
40
40
|
const UploadFileCommand_1 = require("./commands/UploadFileCommand");
|
|
41
41
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
42
42
|
const commands = {
|
|
43
|
-
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
44
43
|
AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
|
|
45
44
|
AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
|
|
46
45
|
CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
|
|
@@ -48,6 +47,7 @@ const commands = {
|
|
|
48
47
|
DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
|
|
49
48
|
DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
|
|
50
49
|
DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
|
|
50
|
+
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
51
51
|
GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
|
|
52
52
|
GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
|
|
53
53
|
GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
|
|
@@ -1,7 +1,6 @@
|
|
|
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);
|
|
5
4
|
tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
|
|
6
5
|
tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
|
|
7
6
|
tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
|
|
@@ -9,6 +8,7 @@ tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
|
|
|
9
8
|
tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
|
|
11
10
|
tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./GetChannelCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MessageType = exports.MessageSmsStatus = exports.FileNotFoundException = void 0;
|
|
3
|
+
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
5
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
6
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
7
6
|
constructor(opts) {
|
|
@@ -29,236 +28,10 @@ class ForbiddenException extends ConversationsServiceException_1.ConversationsSe
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
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
|
-
};
|
|
158
31
|
exports.ChannelType = {
|
|
159
32
|
DIRECT: "direct",
|
|
160
33
|
GROUP: "group",
|
|
161
34
|
};
|
|
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
|
-
};
|
|
262
35
|
exports.ChannelMemberRole = {
|
|
263
36
|
MEMBER: "member",
|
|
264
37
|
SUPERVISOR: "supervisor",
|
|
@@ -356,6 +129,26 @@ exports.ReactionType = {
|
|
|
356
129
|
THUMBSUP: "thumbsup",
|
|
357
130
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
358
131
|
};
|
|
132
|
+
exports.WebhookEventType = {
|
|
133
|
+
CHANNEL_CREATED: "chat:channel:created",
|
|
134
|
+
CHANNEL_UPDATED: "chat:channel:updated",
|
|
135
|
+
MEMBER_ADDED: "chat:member:added",
|
|
136
|
+
MEMBER_REMOVED: "chat:member:removed",
|
|
137
|
+
MESSAGE_DELETED: "chat:message:deleted",
|
|
138
|
+
MESSAGE_NEW: "chat:message:new",
|
|
139
|
+
MESSAGE_UPDATED: "chat:message:updated",
|
|
140
|
+
REACTION_DELETED: "chat:reaction:deleted",
|
|
141
|
+
REACTION_NEW: "chat:reaction:new",
|
|
142
|
+
};
|
|
143
|
+
exports.MessageSmsStatus = {
|
|
144
|
+
DELIVERED: "delivered",
|
|
145
|
+
ERROR: "error",
|
|
146
|
+
SENT: "sent",
|
|
147
|
+
TRYING: "trying",
|
|
148
|
+
};
|
|
149
|
+
exports.MessageType = {
|
|
150
|
+
REGULAR: "regular",
|
|
151
|
+
};
|
|
359
152
|
class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
360
153
|
constructor(opts) {
|
|
361
154
|
super({
|
|
@@ -369,15 +162,6 @@ class FileNotFoundException extends ConversationsServiceException_1.Conversation
|
|
|
369
162
|
}
|
|
370
163
|
}
|
|
371
164
|
exports.FileNotFoundException = FileNotFoundException;
|
|
372
|
-
exports.MessageSmsStatus = {
|
|
373
|
-
DELIVERED: "delivered",
|
|
374
|
-
ERROR: "error",
|
|
375
|
-
SENT: "sent",
|
|
376
|
-
TRYING: "trying",
|
|
377
|
-
};
|
|
378
|
-
exports.MessageType = {
|
|
379
|
-
REGULAR: "regular",
|
|
380
|
-
};
|
|
381
165
|
exports.GroupChannelUnsetOptions = {
|
|
382
166
|
ACCESS: "access",
|
|
383
167
|
BROADCAST: "broadcast",
|
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
3
|
+
exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = 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_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
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;
|
|
26
9
|
const se_AddChannelMemberCommand = async (input, context) => {
|
|
27
10
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
28
11
|
const headers = {
|
|
@@ -162,6 +145,20 @@ const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
|
162
145
|
return b.build();
|
|
163
146
|
};
|
|
164
147
|
exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
|
|
148
|
+
const se_DescribeEventCommand = async (input, context) => {
|
|
149
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
150
|
+
const headers = {
|
|
151
|
+
'content-type': 'application/json',
|
|
152
|
+
};
|
|
153
|
+
b.bp("/v2/conversations/describe");
|
|
154
|
+
let body;
|
|
155
|
+
body = "";
|
|
156
|
+
b.m("POST")
|
|
157
|
+
.h(headers)
|
|
158
|
+
.b(body);
|
|
159
|
+
return b.build();
|
|
160
|
+
};
|
|
161
|
+
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
165
162
|
const se_GetChannelCommand = async (input, context) => {
|
|
166
163
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
167
164
|
const headers = {};
|
|
@@ -679,74 +676,6 @@ const se_UploadFileCommand = async (input, context) => {
|
|
|
679
676
|
return b.build();
|
|
680
677
|
};
|
|
681
678
|
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;
|
|
750
679
|
const de_AddChannelMemberCommand = async (output, context) => {
|
|
751
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
681
|
return de_CommandError(output, context);
|
|
@@ -838,6 +767,29 @@ const de_DeleteMessageReactionCommand = async (output, context) => {
|
|
|
838
767
|
return contents;
|
|
839
768
|
};
|
|
840
769
|
exports.de_DeleteMessageReactionCommand = de_DeleteMessageReactionCommand;
|
|
770
|
+
const de_DescribeEventCommand = async (output, context) => {
|
|
771
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
+
return de_CommandError(output, context);
|
|
773
|
+
}
|
|
774
|
+
const contents = (0, smithy_client_1.map)({
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
});
|
|
777
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
778
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
779
|
+
'WebhookChatChannelCreatedEvent': smithy_client_1._json,
|
|
780
|
+
'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
|
|
781
|
+
'WebhookChatMemberAddedEvent': smithy_client_1._json,
|
|
782
|
+
'WebhookChatMemberRemovedEvent': smithy_client_1._json,
|
|
783
|
+
'WebhookChatMessageDeletedEvent': smithy_client_1._json,
|
|
784
|
+
'WebhookChatMessageNewEvent': smithy_client_1._json,
|
|
785
|
+
'WebhookChatMessageUpdatedEvent': smithy_client_1._json,
|
|
786
|
+
'WebhookChatReactionDeletedEvent': smithy_client_1._json,
|
|
787
|
+
'WebhookChatReactionNewEvent': smithy_client_1._json,
|
|
788
|
+
});
|
|
789
|
+
Object.assign(contents, doc);
|
|
790
|
+
return contents;
|
|
791
|
+
};
|
|
792
|
+
exports.de_DescribeEventCommand = de_DescribeEventCommand;
|
|
841
793
|
const de_GetChannelCommand = async (output, context) => {
|
|
842
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
795
|
return de_CommandError(output, context);
|
|
@@ -1236,18 +1188,18 @@ const de_CommandError = async (output, context) => {
|
|
|
1236
1188
|
};
|
|
1237
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1190
|
switch (errorCode) {
|
|
1239
|
-
case "ForbiddenException":
|
|
1240
|
-
case "smithy.framework#ForbiddenException":
|
|
1241
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ValidationException":
|
|
1243
|
-
case "smithy.framework#ValidationException":
|
|
1244
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1245
1191
|
case "ChannelNotFoundException":
|
|
1246
1192
|
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1247
1193
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1194
|
+
case "ForbiddenException":
|
|
1195
|
+
case "smithy.framework#ForbiddenException":
|
|
1196
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1248
1197
|
case "MemberAlreadyExistException":
|
|
1249
1198
|
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1250
1199
|
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1200
|
+
case "ValidationException":
|
|
1201
|
+
case "smithy.framework#ValidationException":
|
|
1202
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
1203
|
case "ChannelAlreadyExistException":
|
|
1252
1204
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1253
1205
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
@@ -1390,47 +1342,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1390
1342
|
});
|
|
1391
1343
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1392
1344
|
};
|
|
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
|
-
};
|
|
1434
1345
|
const deserializeMetadata = (output) => ({
|
|
1435
1346
|
httpStatusCode: output.statusCode,
|
|
1436
1347
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Conversations.js
CHANGED
|
@@ -37,7 +37,6 @@ import { UpdateMessageCommand, } from "./commands/UpdateMessageCommand";
|
|
|
37
37
|
import { UploadFileCommand, } from "./commands/UploadFileCommand";
|
|
38
38
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
39
39
|
const commands = {
|
|
40
|
-
DescribeEventCommand,
|
|
41
40
|
AddChannelMemberCommand,
|
|
42
41
|
AddChannelMembersCommand,
|
|
43
42
|
CreateGroupChannelCommand,
|
|
@@ -45,6 +44,7 @@ const commands = {
|
|
|
45
44
|
DeleteChannelMemberCommand,
|
|
46
45
|
DeleteMessageCommand,
|
|
47
46
|
DeleteMessageReactionCommand,
|
|
47
|
+
DescribeEventCommand,
|
|
48
48
|
GetChannelCommand,
|
|
49
49
|
GetChannelMemberCommand,
|
|
50
50
|
GetDirectChannelIdCommand,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./DescribeEventCommand";
|
|
2
1
|
export * from "./AddChannelMemberCommand";
|
|
3
2
|
export * from "./AddChannelMembersCommand";
|
|
4
3
|
export * from "./CreateGroupChannelCommand";
|
|
@@ -6,6 +5,7 @@ export * from "./DeleteChannelCommand";
|
|
|
6
5
|
export * from "./DeleteChannelMemberCommand";
|
|
7
6
|
export * from "./DeleteMessageCommand";
|
|
8
7
|
export * from "./DeleteMessageReactionCommand";
|
|
8
|
+
export * from "./DescribeEventCommand";
|
|
9
9
|
export * from "./GetChannelCommand";
|
|
10
10
|
export * from "./GetChannelMemberCommand";
|
|
11
11
|
export * from "./GetDirectChannelIdCommand";
|