@wildix/xbees-conversations-client 1.0.45 → 1.0.47
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 +3 -1
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/models/models_0.js +44 -237
- package/dist-cjs/protocols/Aws_restJson1.js +80 -129
- package/dist-es/Conversations.js +3 -1
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/models/models_0.js +43 -235
- package/dist-es/protocols/Aws_restJson1.js +71 -122
- package/dist-types/Conversations.d.ts +14 -7
- package/dist-types/ConversationsClient.d.ts +3 -2
- package/dist-types/commands/AssignChannelCommand.d.ts +101 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +659 -1410
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +2 -2
- package/dist-types/commands/GetMessageCommand.d.ts +1 -1
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +2 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -1
- package/dist-types/commands/SendGiphyCommand.d.ts +1 -1
- package/dist-types/commands/SendMessageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +402 -1696
- package/dist-types/protocols/Aws_restJson1.d.ts +17 -8
- package/package.json +1 -1
|
@@ -23,236 +23,10 @@ export class ForbiddenException extends __BaseException {
|
|
|
23
23
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export const CallFlowAttachmentType = {
|
|
27
|
-
FAX: "FAX",
|
|
28
|
-
VOICEMAIL: "VOICEMAIL",
|
|
29
|
-
};
|
|
30
|
-
export const CallParticipantRole = {
|
|
31
|
-
AGENT: "AGENT",
|
|
32
|
-
CLIENT: "CLIENT",
|
|
33
|
-
};
|
|
34
|
-
export const CallParticipantType = {
|
|
35
|
-
LOCAL: "LOCAL",
|
|
36
|
-
REMOTE: "REMOTE",
|
|
37
|
-
};
|
|
38
|
-
export const CallDevice = {
|
|
39
|
-
COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
|
|
40
|
-
COLLABORATION_IOS: "COLLABORATION_IOS",
|
|
41
|
-
COLLABORATION_WEB: "COLLABORATION_WEB",
|
|
42
|
-
UNKNOWN: "UNKNOWN",
|
|
43
|
-
WILDIX_DEVICE: "WILDIX_DEVICE",
|
|
44
|
-
WILDIX_PHONE: "WILDIX_PHONE",
|
|
45
|
-
XBEES_ANDROID: "XBEES_ANDROID",
|
|
46
|
-
XBEES_IOS: "XBEES_IOS",
|
|
47
|
-
XBEES_WEB: "XBEES_WEB",
|
|
48
|
-
};
|
|
49
|
-
export const ConversationStatus = {
|
|
50
|
-
COMPLETED: "COMPLETED",
|
|
51
|
-
MISSED: "MISSED",
|
|
52
|
-
};
|
|
53
|
-
export const CallDirection = {
|
|
54
|
-
INBOUND: "INBOUND",
|
|
55
|
-
INTERNAL: "INTERNAL",
|
|
56
|
-
OUTBOUND: "OUTBOUND",
|
|
57
|
-
UNDEFINED: "UNDEFINED",
|
|
58
|
-
};
|
|
59
|
-
export const License = {
|
|
60
|
-
XBEES: "x-bees",
|
|
61
|
-
};
|
|
62
|
-
export const CallRecordOwner = {
|
|
63
|
-
CALLEE: "callee",
|
|
64
|
-
CALLER: "caller",
|
|
65
|
-
SYSTEM: "system",
|
|
66
|
-
};
|
|
67
|
-
export const CallRecordPauseReason = {
|
|
68
|
-
HOLD: "hold",
|
|
69
|
-
PAUSE: "pause",
|
|
70
|
-
};
|
|
71
|
-
export const CallFlowTranscriptionStatus = {
|
|
72
|
-
AVAILABLE: "AVAILABLE",
|
|
73
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
74
|
-
};
|
|
75
|
-
export const CallTranscriptionSpeaker = {
|
|
76
|
-
CALLEE: "callee",
|
|
77
|
-
CALLER: "caller",
|
|
78
|
-
};
|
|
79
|
-
export const ConferenceDirection = {
|
|
80
|
-
INBOUND: "INBOUND",
|
|
81
|
-
INTERNAL: "INTERNAL",
|
|
82
|
-
OUTBOUND: "OUTBOUND",
|
|
83
|
-
};
|
|
84
|
-
export const PbxLicenseType = {
|
|
85
|
-
BASIC: "basic",
|
|
86
|
-
BUSINESS: "business",
|
|
87
|
-
ESSENTIAL: "essential",
|
|
88
|
-
PREMIUM: "premium",
|
|
89
|
-
WIZYCONF: "wizyconf",
|
|
90
|
-
};
|
|
91
|
-
export const ConferenceParticipantRole = {
|
|
92
|
-
AGENT: "AGENT",
|
|
93
|
-
CLIENT: "CLIENT",
|
|
94
|
-
};
|
|
95
|
-
export const ConferenceParticipantType = {
|
|
96
|
-
EXTERNAL: "EXTERNAL",
|
|
97
|
-
EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
|
|
98
|
-
PBX: "PBX",
|
|
99
|
-
PBX_SIP: "PBX_SIP",
|
|
100
|
-
XBS: "XBS",
|
|
101
|
-
};
|
|
102
|
-
export const ConferenceTranscriptionStatus = {
|
|
103
|
-
AVAILABLE: "AVAILABLE",
|
|
104
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
105
|
-
};
|
|
106
|
-
export const LiveEventType = {
|
|
107
|
-
CALL: "call",
|
|
108
|
-
CALL_COMPLETE: "call_complete",
|
|
109
|
-
CALL_INTERRUPTED: "call_interrupted",
|
|
110
|
-
CALL_TRANSCRIPTION: "call_transcription",
|
|
111
|
-
CHAT: "chat",
|
|
112
|
-
CHAT_COMPLETE: "chat_complete",
|
|
113
|
-
CHAT_COST: "call_cost",
|
|
114
|
-
CHAT_INTERRUPTED: "chat_interrupted",
|
|
115
|
-
CHAT_MISSED: "chat_missed",
|
|
116
|
-
CONFERENCE: "conference",
|
|
117
|
-
CONFERENCE_COMPLETE: "conference_complete",
|
|
118
|
-
CONFERENCE_INTERRUPTED: "conference_interrupted",
|
|
119
|
-
CONFERENCE_JOIN: "conference_join",
|
|
120
|
-
CONFERENCE_LEAVE: "conference_leave",
|
|
121
|
-
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
122
|
-
};
|
|
123
|
-
export const CallAnalyticsLiveProgressEventTrigger = {
|
|
124
|
-
AGENTS_CANCEL: "call.agents_cancel",
|
|
125
|
-
AGENTS_START: "call.agents_start",
|
|
126
|
-
ATTACHMENT: "call.attachment",
|
|
127
|
-
RECORD_START: "call.record_start",
|
|
128
|
-
RECORD_STOP: "call.record_stop",
|
|
129
|
-
SPLIT: "call.split",
|
|
130
|
-
START: "call.start",
|
|
131
|
-
TRANSCRIPTION: "call.transcription",
|
|
132
|
-
UPDATE: "call.update",
|
|
133
|
-
};
|
|
134
|
-
export const CallFlowStatus = {
|
|
135
|
-
CONNECTING: "CONNECTING",
|
|
136
|
-
HOLD: "HOLD",
|
|
137
|
-
TALKING: "TALKING",
|
|
138
|
-
};
|
|
139
|
-
export const CallEndBy = {
|
|
140
|
-
CALLEE: "CALLEE",
|
|
141
|
-
CALLER: "CALLER",
|
|
142
|
-
};
|
|
143
|
-
export const CallEventType = {
|
|
144
|
-
COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
|
|
145
|
-
LIVE_COMPLETE_EVENT: "CallAnalyticsLiveCompleteEvent",
|
|
146
|
-
LIVE_INTERRUPTED_EVENT: "CallAnalyticsLiveInterruptedEvent",
|
|
147
|
-
LIVE_PROGRESS_EVENT: "CallAnalyticsLiveProgressEvent",
|
|
148
|
-
LIVE_TRANSCRIPTION_EVENT: "CallAnalyticsLiveTranscriptionEvent",
|
|
149
|
-
RECORD_EVENT: "CallAnalyticsRecordEvent",
|
|
150
|
-
TRANSCRIPTION_RECORD_EVENT: "CallAnalyticsTranscriptionRecordEvent",
|
|
151
|
-
};
|
|
152
26
|
export const ChannelType = {
|
|
153
27
|
DIRECT: "direct",
|
|
154
28
|
GROUP: "group",
|
|
155
29
|
};
|
|
156
|
-
export const ChatDirection = {
|
|
157
|
-
INBOUND: "INBOUND",
|
|
158
|
-
INTERNAL: "INTERNAL",
|
|
159
|
-
OUTBOUND: "OUTBOUND",
|
|
160
|
-
};
|
|
161
|
-
export const ChatParticipantRole = {
|
|
162
|
-
AGENT: "AGENT",
|
|
163
|
-
CLIENT: "CLIENT",
|
|
164
|
-
};
|
|
165
|
-
export const ChatParticipantType = {
|
|
166
|
-
LOCAL: "LOCAL",
|
|
167
|
-
REMOTE: "REMOTE",
|
|
168
|
-
};
|
|
169
|
-
export const ChatStatus = {
|
|
170
|
-
COMPLETED: "COMPLETED",
|
|
171
|
-
MISSED: "MISSED",
|
|
172
|
-
WAITFIRSTREPLY: "WAITFIRSTREPLY",
|
|
173
|
-
WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
|
|
174
|
-
WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
|
|
175
|
-
};
|
|
176
|
-
export const ChatTag = {
|
|
177
|
-
SMS: "sms",
|
|
178
|
-
TELEPHONY: "telephony",
|
|
179
|
-
};
|
|
180
|
-
export const ChatEventType = {
|
|
181
|
-
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
182
|
-
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
183
|
-
LIVE_MISSED_EVENT: "ChatAnalyticsLiveMissedEvent",
|
|
184
|
-
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
185
|
-
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
186
|
-
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
187
|
-
};
|
|
188
|
-
export const ConferenceEventType = {
|
|
189
|
-
LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
|
|
190
|
-
LIVE_INTERRUPTED_EVENT: "ConferenceAnalyticsLiveInterruptedEvent",
|
|
191
|
-
LIVE_JOIN_EVENT: "ConferenceAnalyticsLiveJoinEvent",
|
|
192
|
-
LIVE_LEAVE_EVENT: "ConferenceAnalyticsLiveLeaveEvent",
|
|
193
|
-
LIVE_PROGRESS_EVENT: "ConferenceAnalyticsLiveProgressEvent",
|
|
194
|
-
LIVE_TRANSCRIPTION_EVENT: "ConferenceAnalyticsLiveTranscriptionEvent",
|
|
195
|
-
RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
|
|
196
|
-
TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
|
|
197
|
-
};
|
|
198
|
-
export const SmsConsumeEventType = {
|
|
199
|
-
SMS_INBOUND: "SMS.INBOUND",
|
|
200
|
-
SMS_STATUS: "SMS.STATUS",
|
|
201
|
-
};
|
|
202
|
-
export const SmsChannelType = {
|
|
203
|
-
ONE_WAY: "1-way-sms",
|
|
204
|
-
TWO_WAY: "2-way-sms",
|
|
205
|
-
};
|
|
206
|
-
export const SmsStatus = {
|
|
207
|
-
DELIVERED: "delivered",
|
|
208
|
-
ERROR: "error",
|
|
209
|
-
SENT: "sent",
|
|
210
|
-
TRYING: "trying",
|
|
211
|
-
};
|
|
212
|
-
export const PresenceAnalyticsEventType = {
|
|
213
|
-
PRESENCE: "PRESENCE",
|
|
214
|
-
PRESENCE_TELEPHONY: "PRESENCE_TELEPHONY",
|
|
215
|
-
};
|
|
216
|
-
export const PresenceEventType = {
|
|
217
|
-
CONFERENCE_EVENT: "PresenceAnalyticsConferenceEvent",
|
|
218
|
-
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
219
|
-
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
220
|
-
};
|
|
221
|
-
export const WebhookEventType = {
|
|
222
|
-
CALL_COMPLETED: "call:completed",
|
|
223
|
-
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
224
|
-
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
225
|
-
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
226
|
-
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
227
|
-
CHAT_COMPLETED: "chat:completed",
|
|
228
|
-
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
229
|
-
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
230
|
-
CHAT_LIVE_PROGRESS: "chat:live:progress",
|
|
231
|
-
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
232
|
-
CONFERENCE_COMPLETED: "conference:completed",
|
|
233
|
-
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
234
|
-
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
235
|
-
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
236
|
-
CONFERENCE_LIVE_LEAVE: "conference:live:leave",
|
|
237
|
-
CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
|
|
238
|
-
CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
|
|
239
|
-
OLD_CALL_END: "call:end",
|
|
240
|
-
OLD_CALL_START: "call:start",
|
|
241
|
-
OLD_CALL_UPDATE: "call:update",
|
|
242
|
-
PRESENCE_CONFERENCE: "presence:conference",
|
|
243
|
-
PRESENCE_TELEPHONY: "presence:telephony",
|
|
244
|
-
PRESENCE_USER: "presence:user",
|
|
245
|
-
};
|
|
246
|
-
export const WebsocketEvent = {
|
|
247
|
-
AUTHORIZED: "authorized",
|
|
248
|
-
BROADCAST: "broadcast",
|
|
249
|
-
SUBSCRIBED: "subscribed",
|
|
250
|
-
};
|
|
251
|
-
export const WebsocketTopic = {
|
|
252
|
-
CONVERSATIONS: "conversations",
|
|
253
|
-
PRESENCE: "presence",
|
|
254
|
-
TRANSCRIPTIONS: "transcriptions",
|
|
255
|
-
};
|
|
256
30
|
export const ChannelMemberRole = {
|
|
257
31
|
MEMBER: "member",
|
|
258
32
|
SUPERVISOR: "supervisor",
|
|
@@ -281,6 +55,28 @@ export class MemberAlreadyExistException extends __BaseException {
|
|
|
281
55
|
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
282
56
|
}
|
|
283
57
|
}
|
|
58
|
+
export var AssignChannelAssigneeRequest;
|
|
59
|
+
(function (AssignChannelAssigneeRequest) {
|
|
60
|
+
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
61
|
+
if (value.id !== undefined)
|
|
62
|
+
return visitor.id(value.id);
|
|
63
|
+
if (value.email !== undefined)
|
|
64
|
+
return visitor.email(value.email);
|
|
65
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
66
|
+
};
|
|
67
|
+
})(AssignChannelAssigneeRequest || (AssignChannelAssigneeRequest = {}));
|
|
68
|
+
export var AssignChannelServiceRequest;
|
|
69
|
+
(function (AssignChannelServiceRequest) {
|
|
70
|
+
AssignChannelServiceRequest.visit = (value, visitor) => {
|
|
71
|
+
if (value.uri !== undefined)
|
|
72
|
+
return visitor.uri(value.uri);
|
|
73
|
+
if (value.id !== undefined)
|
|
74
|
+
return visitor.id(value.id);
|
|
75
|
+
if (value.name !== undefined)
|
|
76
|
+
return visitor.name(value.name);
|
|
77
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
|
+
};
|
|
79
|
+
})(AssignChannelServiceRequest || (AssignChannelServiceRequest = {}));
|
|
284
80
|
export const ChannelAccess = {
|
|
285
81
|
PRIVATE: "private",
|
|
286
82
|
PUBLIC: "public",
|
|
@@ -345,6 +141,27 @@ export const ReactionType = {
|
|
|
345
141
|
THUMBSUP: "thumbsup",
|
|
346
142
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
347
143
|
};
|
|
144
|
+
export const WebhookEventType = {
|
|
145
|
+
CHANNEL_CREATED: "chat:channel:created",
|
|
146
|
+
CHANNEL_UPDATED: "chat:channel:updated",
|
|
147
|
+
MEMBER_ADDED: "chat:member:added",
|
|
148
|
+
MEMBER_REMOVED: "chat:member:removed",
|
|
149
|
+
MESSAGE_DELETED: "chat:message:deleted",
|
|
150
|
+
MESSAGE_NEW: "chat:message:new",
|
|
151
|
+
MESSAGE_UPDATED: "chat:message:updated",
|
|
152
|
+
REACTION_DELETED: "chat:reaction:deleted",
|
|
153
|
+
REACTION_NEW: "chat:reaction:new",
|
|
154
|
+
};
|
|
155
|
+
export const MessageSmsStatus = {
|
|
156
|
+
DELIVERED: "delivered",
|
|
157
|
+
ERROR: "error",
|
|
158
|
+
SENT: "sent",
|
|
159
|
+
TRYING: "trying",
|
|
160
|
+
};
|
|
161
|
+
export const MessageType = {
|
|
162
|
+
REGULAR: "regular",
|
|
163
|
+
SYSTEM: "system",
|
|
164
|
+
};
|
|
348
165
|
export class FileNotFoundException extends __BaseException {
|
|
349
166
|
constructor(opts) {
|
|
350
167
|
super({
|
|
@@ -357,15 +174,6 @@ export class FileNotFoundException extends __BaseException {
|
|
|
357
174
|
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
358
175
|
}
|
|
359
176
|
}
|
|
360
|
-
export const MessageSmsStatus = {
|
|
361
|
-
DELIVERED: "delivered",
|
|
362
|
-
ERROR: "error",
|
|
363
|
-
SENT: "sent",
|
|
364
|
-
TRYING: "trying",
|
|
365
|
-
};
|
|
366
|
-
export const MessageType = {
|
|
367
|
-
REGULAR: "regular",
|
|
368
|
-
};
|
|
369
177
|
export const GroupChannelUnsetOptions = {
|
|
370
178
|
ACCESS: "access",
|
|
371
179
|
BROADCAST: "broadcast",
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
2
|
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
|
-
import { decorateServiceException as __decorateServiceException,
|
|
5
|
-
export const
|
|
4
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
6
6
|
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
'content-type': 'application/json',
|
|
9
9
|
};
|
|
10
|
-
b.bp("/v2/
|
|
10
|
+
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
11
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
12
|
+
const query = map({
|
|
13
|
+
[_u]: [, input[_uI]],
|
|
14
|
+
});
|
|
11
15
|
let body;
|
|
12
16
|
body = JSON.stringify(take(input, {
|
|
13
|
-
'
|
|
14
|
-
'
|
|
17
|
+
'memberId': [],
|
|
18
|
+
'memberToInvite': _ => _json(_),
|
|
19
|
+
'silent': [],
|
|
15
20
|
}));
|
|
16
21
|
b.m("POST")
|
|
17
22
|
.h(headers)
|
|
23
|
+
.q(query)
|
|
18
24
|
.b(body);
|
|
19
25
|
return b.build();
|
|
20
26
|
};
|
|
21
|
-
export const
|
|
27
|
+
export const se_AddChannelMembersCommand = async (input, context) => {
|
|
22
28
|
const b = rb(input, context);
|
|
23
29
|
const headers = {
|
|
24
30
|
'content-type': 'application/json',
|
|
@@ -30,33 +36,34 @@ export const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
30
36
|
});
|
|
31
37
|
let body;
|
|
32
38
|
body = JSON.stringify(take(input, {
|
|
33
|
-
'
|
|
34
|
-
'
|
|
39
|
+
'members': _ => _json(_),
|
|
40
|
+
'membersToInvite': _ => _json(_),
|
|
35
41
|
'silent': [],
|
|
36
42
|
}));
|
|
37
|
-
b.m("
|
|
43
|
+
b.m("PUT")
|
|
38
44
|
.h(headers)
|
|
39
45
|
.q(query)
|
|
40
46
|
.b(body);
|
|
41
47
|
return b.build();
|
|
42
48
|
};
|
|
43
|
-
export const
|
|
49
|
+
export const se_AssignChannelCommand = async (input, context) => {
|
|
44
50
|
const b = rb(input, context);
|
|
45
51
|
const headers = {
|
|
46
52
|
'content-type': 'application/json',
|
|
47
53
|
};
|
|
48
|
-
b.bp("/v2/conversations/channels/{channelId}/
|
|
54
|
+
b.bp("/v2/conversations/channels/{channelId}/assign");
|
|
49
55
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
50
56
|
const query = map({
|
|
51
57
|
[_u]: [, input[_uI]],
|
|
52
58
|
});
|
|
53
59
|
let body;
|
|
54
60
|
body = JSON.stringify(take(input, {
|
|
55
|
-
'
|
|
56
|
-
'
|
|
61
|
+
'assignee': _ => _json(_),
|
|
62
|
+
'options': _ => _json(_),
|
|
63
|
+
'service': _ => _json(_),
|
|
57
64
|
'silent': [],
|
|
58
65
|
}));
|
|
59
|
-
b.m("
|
|
66
|
+
b.m("POST")
|
|
60
67
|
.h(headers)
|
|
61
68
|
.q(query)
|
|
62
69
|
.b(body);
|
|
@@ -150,6 +157,19 @@ export const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
|
150
157
|
.b(body);
|
|
151
158
|
return b.build();
|
|
152
159
|
};
|
|
160
|
+
export const se_DescribeEventCommand = async (input, context) => {
|
|
161
|
+
const b = rb(input, context);
|
|
162
|
+
const headers = {
|
|
163
|
+
'content-type': 'application/json',
|
|
164
|
+
};
|
|
165
|
+
b.bp("/v2/conversations/describe");
|
|
166
|
+
let body;
|
|
167
|
+
body = "";
|
|
168
|
+
b.m("POST")
|
|
169
|
+
.h(headers)
|
|
170
|
+
.b(body);
|
|
171
|
+
return b.build();
|
|
172
|
+
};
|
|
153
173
|
export const se_GetChannelCommand = async (input, context) => {
|
|
154
174
|
const b = rb(input, context);
|
|
155
175
|
const headers = {};
|
|
@@ -639,7 +659,7 @@ export const se_UploadFileCommand = async (input, context) => {
|
|
|
639
659
|
.b(body);
|
|
640
660
|
return b.build();
|
|
641
661
|
};
|
|
642
|
-
export const
|
|
662
|
+
export const de_AddChannelMemberCommand = async (output, context) => {
|
|
643
663
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
664
|
return de_CommandError(output, context);
|
|
645
665
|
}
|
|
@@ -648,65 +668,13 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
648
668
|
});
|
|
649
669
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
650
670
|
const doc = take(data, {
|
|
651
|
-
'
|
|
652
|
-
'
|
|
653
|
-
'CallAnalyticsLiveInterruptedEvent': _json,
|
|
654
|
-
'CallAnalyticsLiveProgressEvent': _json,
|
|
655
|
-
'CallAnalyticsLiveTranscriptionEvent': _json,
|
|
656
|
-
'CallAnalyticsRecordEvent': _json,
|
|
657
|
-
'CallAnalyticsTranscriptionRecordEvent': _json,
|
|
658
|
-
'CallEventType': __expectString,
|
|
659
|
-
'ChatAnalyticsLiveCompleteEvent': _json,
|
|
660
|
-
'ChatAnalyticsLiveInterruptedEvent': _json,
|
|
661
|
-
'ChatAnalyticsLiveMissedEvent': _json,
|
|
662
|
-
'ChatAnalyticsLiveProgressEvent': _json,
|
|
663
|
-
'ChatAnalyticsManagerMissedEvent': _json,
|
|
664
|
-
'ChatAnalyticsRecordEvent': _json,
|
|
665
|
-
'ChatEventType': __expectString,
|
|
666
|
-
'ConferenceAnalyticsLiveCompleteEvent': _json,
|
|
667
|
-
'ConferenceAnalyticsLiveInterruptedEvent': _json,
|
|
668
|
-
'ConferenceAnalyticsLiveJoinEvent': _json,
|
|
669
|
-
'ConferenceAnalyticsLiveLeaveEvent': _json,
|
|
670
|
-
'ConferenceAnalyticsLiveProgressEvent': _json,
|
|
671
|
-
'ConferenceAnalyticsLiveTranscriptionEvent': _json,
|
|
672
|
-
'ConferenceAnalyticsRecordEvent': _json,
|
|
673
|
-
'ConferenceAnalyticsTranscriptionRecordEvent': _json,
|
|
674
|
-
'ConferenceEventType': __expectString,
|
|
675
|
-
'PresenceAnalyticsConferenceEvent': _json,
|
|
676
|
-
'PresenceAnalyticsStatusEvent': _json,
|
|
677
|
-
'PresenceAnalyticsTelephonyEvent': _json,
|
|
678
|
-
'PresenceEventType': __expectString,
|
|
679
|
-
'WebhookCallCompletedEvent': _json,
|
|
680
|
-
'WebhookCallLiveCompletedEvent': _json,
|
|
681
|
-
'WebhookCallLiveInterruptedEvent': _json,
|
|
682
|
-
'WebhookCallLiveProgressEvent': _json,
|
|
683
|
-
'WebhookCallLiveTranscriptionEvent': _json,
|
|
684
|
-
'WebhookChatCompletedEvent': _json,
|
|
685
|
-
'WebhookChatLiveCompletedEvent': _json,
|
|
686
|
-
'WebhookChatLiveInterruptedEvent': _json,
|
|
687
|
-
'WebhookChatLiveProgressEvent': _json,
|
|
688
|
-
'WebhookChatManagerMissedEvent': _json,
|
|
689
|
-
'WebhookConferenceCompletedEvent': _json,
|
|
690
|
-
'WebhookConferenceLiveCompletedEvent': _json,
|
|
691
|
-
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
692
|
-
'WebhookConferenceLiveJoinEvent': _json,
|
|
693
|
-
'WebhookConferenceLiveLeaveEvent': _json,
|
|
694
|
-
'WebhookConferenceLiveProgressEvent': _json,
|
|
695
|
-
'WebhookConferenceLiveTranscriptionEvent': _json,
|
|
696
|
-
'WebhookOutdatedCallEndEvent': _json,
|
|
697
|
-
'WebhookOutdatedCallStartEvent': _json,
|
|
698
|
-
'WebhookOutdatedCallUpdateEvent': _json,
|
|
699
|
-
'WebhookPresenceConferenceEvent': _json,
|
|
700
|
-
'WebhookPresenceTelephonyEvent': _json,
|
|
701
|
-
'WebhookPresenceUserEvent': _json,
|
|
702
|
-
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
703
|
-
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
704
|
-
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
671
|
+
'member': _json,
|
|
672
|
+
'user': _json,
|
|
705
673
|
});
|
|
706
674
|
Object.assign(contents, doc);
|
|
707
675
|
return contents;
|
|
708
676
|
};
|
|
709
|
-
export const
|
|
677
|
+
export const de_AddChannelMembersCommand = async (output, context) => {
|
|
710
678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
679
|
return de_CommandError(output, context);
|
|
712
680
|
}
|
|
@@ -715,13 +683,13 @@ export const de_AddChannelMemberCommand = async (output, context) => {
|
|
|
715
683
|
});
|
|
716
684
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
717
685
|
const doc = take(data, {
|
|
718
|
-
'
|
|
719
|
-
'
|
|
686
|
+
'members': _json,
|
|
687
|
+
'users': _json,
|
|
720
688
|
});
|
|
721
689
|
Object.assign(contents, doc);
|
|
722
690
|
return contents;
|
|
723
691
|
};
|
|
724
|
-
export const
|
|
692
|
+
export const de_AssignChannelCommand = async (output, context) => {
|
|
725
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
694
|
return de_CommandError(output, context);
|
|
727
695
|
}
|
|
@@ -730,8 +698,8 @@ export const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
730
698
|
});
|
|
731
699
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
732
700
|
const doc = take(data, {
|
|
733
|
-
'
|
|
734
|
-
'
|
|
701
|
+
'assignee': _json,
|
|
702
|
+
'service': _json,
|
|
735
703
|
});
|
|
736
704
|
Object.assign(contents, doc);
|
|
737
705
|
return contents;
|
|
@@ -790,6 +758,28 @@ export const de_DeleteMessageReactionCommand = async (output, context) => {
|
|
|
790
758
|
await collectBody(output.body, context);
|
|
791
759
|
return contents;
|
|
792
760
|
};
|
|
761
|
+
export const de_DescribeEventCommand = async (output, context) => {
|
|
762
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
763
|
+
return de_CommandError(output, context);
|
|
764
|
+
}
|
|
765
|
+
const contents = map({
|
|
766
|
+
$metadata: deserializeMetadata(output),
|
|
767
|
+
});
|
|
768
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
769
|
+
const doc = take(data, {
|
|
770
|
+
'WebhookChatChannelCreatedEvent': _json,
|
|
771
|
+
'WebhookChatChannelUpdatedEvent': _json,
|
|
772
|
+
'WebhookChatMemberAddedEvent': _json,
|
|
773
|
+
'WebhookChatMemberRemovedEvent': _json,
|
|
774
|
+
'WebhookChatMessageDeletedEvent': _json,
|
|
775
|
+
'WebhookChatMessageNewEvent': _json,
|
|
776
|
+
'WebhookChatMessageUpdatedEvent': _json,
|
|
777
|
+
'WebhookChatReactionDeletedEvent': _json,
|
|
778
|
+
'WebhookChatReactionNewEvent': _json,
|
|
779
|
+
});
|
|
780
|
+
Object.assign(contents, doc);
|
|
781
|
+
return contents;
|
|
782
|
+
};
|
|
793
783
|
export const de_GetChannelCommand = async (output, context) => {
|
|
794
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
785
|
return de_CommandError(output, context);
|
|
@@ -1160,18 +1150,18 @@ const de_CommandError = async (output, context) => {
|
|
|
1160
1150
|
};
|
|
1161
1151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
1152
|
switch (errorCode) {
|
|
1163
|
-
case "ForbiddenException":
|
|
1164
|
-
case "smithy.framework#ForbiddenException":
|
|
1165
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ValidationException":
|
|
1167
|
-
case "smithy.framework#ValidationException":
|
|
1168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
1153
|
case "ChannelNotFoundException":
|
|
1170
1154
|
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1171
1155
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ForbiddenException":
|
|
1157
|
+
case "smithy.framework#ForbiddenException":
|
|
1158
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1172
1159
|
case "MemberAlreadyExistException":
|
|
1173
1160
|
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1174
1161
|
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1162
|
+
case "ValidationException":
|
|
1163
|
+
case "smithy.framework#ValidationException":
|
|
1164
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
1165
|
case "ChannelAlreadyExistException":
|
|
1176
1166
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1177
1167
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
@@ -1314,47 +1304,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1314
1304
|
});
|
|
1315
1305
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1316
1306
|
};
|
|
1317
|
-
const de_Document = (output, context) => {
|
|
1318
|
-
return output;
|
|
1319
|
-
};
|
|
1320
|
-
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
1321
|
-
return take(output, {
|
|
1322
|
-
'company': __expectString,
|
|
1323
|
-
'cost': __limitedParseDouble,
|
|
1324
|
-
'flowIndex': __expectInt32,
|
|
1325
|
-
'id': __expectString,
|
|
1326
|
-
'licenses': _json,
|
|
1327
|
-
'pbx': __expectString,
|
|
1328
|
-
'time': __expectLong,
|
|
1329
|
-
'transcriptions': _json,
|
|
1330
|
-
'type': __expectString,
|
|
1331
|
-
});
|
|
1332
|
-
};
|
|
1333
|
-
const de_WebsocketConversationsBroadcastEvent = (output, context) => {
|
|
1334
|
-
return take(output, {
|
|
1335
|
-
'data': (_) => de_Document(_, context),
|
|
1336
|
-
'event': __expectString,
|
|
1337
|
-
'meta': (_) => de_Document(_, context),
|
|
1338
|
-
'topic': __expectString,
|
|
1339
|
-
});
|
|
1340
|
-
};
|
|
1341
|
-
const de_WebsocketPresenceBroadcastEvent = (output, context) => {
|
|
1342
|
-
return take(output, {
|
|
1343
|
-
'data': _json,
|
|
1344
|
-
'delta': _json,
|
|
1345
|
-
'event': __expectString,
|
|
1346
|
-
'meta': (_) => de_Document(_, context),
|
|
1347
|
-
'topic': __expectString,
|
|
1348
|
-
});
|
|
1349
|
-
};
|
|
1350
|
-
const de_WebsocketTranscriptionsBroadcastEvent = (output, context) => {
|
|
1351
|
-
return take(output, {
|
|
1352
|
-
'data': (_) => de_Document(_, context),
|
|
1353
|
-
'event': __expectString,
|
|
1354
|
-
'meta': (_) => de_Document(_, context),
|
|
1355
|
-
'topic': __expectString,
|
|
1356
|
-
});
|
|
1357
|
-
};
|
|
1358
1307
|
const deserializeMetadata = (output) => ({
|
|
1359
1308
|
httpStatusCode: output.statusCode,
|
|
1360
1309
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConversationsClient } from "./ConversationsClient";
|
|
2
2
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
|
|
3
3
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
4
|
+
import { AssignChannelCommandInput, AssignChannelCommandOutput } from "./commands/AssignChannelCommand";
|
|
4
5
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
5
6
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
6
7
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
@@ -37,13 +38,6 @@ import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./command
|
|
|
37
38
|
import { UploadFileCommandInput, UploadFileCommandOutput } from "./commands/UploadFileCommand";
|
|
38
39
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
39
40
|
export interface Conversations {
|
|
40
|
-
/**
|
|
41
|
-
* @see {@link DescribeEventCommand}
|
|
42
|
-
*/
|
|
43
|
-
describeEvent(): Promise<DescribeEventCommandOutput>;
|
|
44
|
-
describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
|
|
45
|
-
describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
46
|
-
describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
47
41
|
/**
|
|
48
42
|
* @see {@link AddChannelMemberCommand}
|
|
49
43
|
*/
|
|
@@ -56,6 +50,12 @@ export interface Conversations {
|
|
|
56
50
|
addChannelMembers(args: AddChannelMembersCommandInput, options?: __HttpHandlerOptions): Promise<AddChannelMembersCommandOutput>;
|
|
57
51
|
addChannelMembers(args: AddChannelMembersCommandInput, cb: (err: any, data?: AddChannelMembersCommandOutput) => void): void;
|
|
58
52
|
addChannelMembers(args: AddChannelMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddChannelMembersCommandOutput) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link AssignChannelCommand}
|
|
55
|
+
*/
|
|
56
|
+
assignChannel(args: AssignChannelCommandInput, options?: __HttpHandlerOptions): Promise<AssignChannelCommandOutput>;
|
|
57
|
+
assignChannel(args: AssignChannelCommandInput, cb: (err: any, data?: AssignChannelCommandOutput) => void): void;
|
|
58
|
+
assignChannel(args: AssignChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssignChannelCommandOutput) => void): void;
|
|
59
59
|
/**
|
|
60
60
|
* @see {@link CreateGroupChannelCommand}
|
|
61
61
|
*/
|
|
@@ -87,6 +87,13 @@ export interface Conversations {
|
|
|
87
87
|
deleteMessageReaction(args: DeleteMessageReactionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMessageReactionCommandOutput>;
|
|
88
88
|
deleteMessageReaction(args: DeleteMessageReactionCommandInput, cb: (err: any, data?: DeleteMessageReactionCommandOutput) => void): void;
|
|
89
89
|
deleteMessageReaction(args: DeleteMessageReactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMessageReactionCommandOutput) => void): void;
|
|
90
|
+
/**
|
|
91
|
+
* @see {@link DescribeEventCommand}
|
|
92
|
+
*/
|
|
93
|
+
describeEvent(): Promise<DescribeEventCommandOutput>;
|
|
94
|
+
describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
|
|
95
|
+
describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
96
|
+
describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
90
97
|
/**
|
|
91
98
|
* @see {@link GetChannelCommand}
|
|
92
99
|
*/
|