@wildix/xbees-conversations-client 1.0.44 → 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 -10
- 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 -9
- 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/CreateGroupChannelCommand.d.ts +0 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +1596 -0
- package/dist-types/commands/GetChannelCommand.d.ts +0 -2
- package/dist-types/commands/GetMessageCommand.d.ts +0 -2
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +0 -2
- package/dist-types/commands/JoinChannelCommand.d.ts +0 -2
- package/dist-types/commands/ListChannelsCommand.d.ts +0 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +0 -2
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +0 -2
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +0 -2
- package/dist-types/commands/SendGiphyCommand.d.ts +0 -2
- package/dist-types/commands/SendMessageCommand.d.ts +0 -2
- package/dist-types/commands/UpdateChannelCommand.d.ts +0 -2
- package/dist-types/commands/UpdateMessageCommand.d.ts +0 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1629 -45
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
|
@@ -23,10 +23,236 @@ 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
|
+
};
|
|
26
152
|
export const ChannelType = {
|
|
27
153
|
DIRECT: "direct",
|
|
28
154
|
GROUP: "group",
|
|
29
155
|
};
|
|
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
|
+
};
|
|
30
256
|
export const ChannelMemberRole = {
|
|
31
257
|
MEMBER: "member",
|
|
32
258
|
SUPERVISOR: "supervisor",
|
|
@@ -68,9 +294,6 @@ export const ChannelContextEventAttendeeStatus = {
|
|
|
68
294
|
export const ChannelContextSource = {
|
|
69
295
|
KITE: "kite",
|
|
70
296
|
};
|
|
71
|
-
export const ChannelWhatsAppStatus = {
|
|
72
|
-
CHANNEL_CLOSED: "24h_channel_closed",
|
|
73
|
-
};
|
|
74
297
|
export class ChannelAlreadyExistException extends __BaseException {
|
|
75
298
|
constructor(opts) {
|
|
76
299
|
super({
|
|
@@ -143,12 +366,6 @@ export const MessageSmsStatus = {
|
|
|
143
366
|
export const MessageType = {
|
|
144
367
|
REGULAR: "regular",
|
|
145
368
|
};
|
|
146
|
-
export const MessageWhatsAppStatus = {
|
|
147
|
-
DELIVERED: "delivered",
|
|
148
|
-
ERROR: "error",
|
|
149
|
-
SENT: "sent",
|
|
150
|
-
TRYING: "trying",
|
|
151
|
-
};
|
|
152
369
|
export const GroupChannelUnsetOptions = {
|
|
153
370
|
ACCESS: "access",
|
|
154
371
|
BROADCAST: "broadcast",
|
|
@@ -1,7 +1,23 @@
|
|
|
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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
export const se_DescribeEventCommand = async (input, context) => {
|
|
6
|
+
const b = rb(input, context);
|
|
7
|
+
const headers = {
|
|
8
|
+
'content-type': 'application/json',
|
|
9
|
+
};
|
|
10
|
+
b.bp("/v2/stream/events/describe");
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
'SmsInboundEvent': _ => _json(_),
|
|
14
|
+
'SmsStatusEvent': _ => _json(_),
|
|
15
|
+
}));
|
|
16
|
+
b.m("POST")
|
|
17
|
+
.h(headers)
|
|
18
|
+
.b(body);
|
|
19
|
+
return b.build();
|
|
20
|
+
};
|
|
5
21
|
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
6
22
|
const b = rb(input, context);
|
|
7
23
|
const headers = {
|
|
@@ -623,6 +639,73 @@ export const se_UploadFileCommand = async (input, context) => {
|
|
|
623
639
|
.b(body);
|
|
624
640
|
return b.build();
|
|
625
641
|
};
|
|
642
|
+
export const de_DescribeEventCommand = async (output, context) => {
|
|
643
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
+
return de_CommandError(output, context);
|
|
645
|
+
}
|
|
646
|
+
const contents = map({
|
|
647
|
+
$metadata: deserializeMetadata(output),
|
|
648
|
+
});
|
|
649
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
650
|
+
const doc = take(data, {
|
|
651
|
+
'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
|
|
652
|
+
'CallAnalyticsLiveCompleteEvent': _json,
|
|
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),
|
|
705
|
+
});
|
|
706
|
+
Object.assign(contents, doc);
|
|
707
|
+
return contents;
|
|
708
|
+
};
|
|
626
709
|
export const de_AddChannelMemberCommand = async (output, context) => {
|
|
627
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
628
711
|
return de_CommandError(output, context);
|
|
@@ -1077,18 +1160,18 @@ const de_CommandError = async (output, context) => {
|
|
|
1077
1160
|
};
|
|
1078
1161
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1162
|
switch (errorCode) {
|
|
1080
|
-
case "ChannelNotFoundException":
|
|
1081
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1082
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1083
1163
|
case "ForbiddenException":
|
|
1084
1164
|
case "smithy.framework#ForbiddenException":
|
|
1085
1165
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "MemberAlreadyExistException":
|
|
1087
|
-
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1088
|
-
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1089
1166
|
case "ValidationException":
|
|
1090
1167
|
case "smithy.framework#ValidationException":
|
|
1091
1168
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
|
+
case "ChannelNotFoundException":
|
|
1170
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1171
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
+
case "MemberAlreadyExistException":
|
|
1173
|
+
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1174
|
+
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1092
1175
|
case "ChannelAlreadyExistException":
|
|
1093
1176
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1094
1177
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
@@ -1231,6 +1314,47 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1231
1314
|
});
|
|
1232
1315
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1233
1316
|
};
|
|
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
|
+
};
|
|
1234
1358
|
const deserializeMetadata = (output) => ({
|
|
1235
1359
|
httpStatusCode: output.statusCode,
|
|
1236
1360
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -6,6 +6,7 @@ import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./command
|
|
|
6
6
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
7
7
|
import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
|
|
8
8
|
import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput } from "./commands/DeleteMessageReactionCommand";
|
|
9
|
+
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
9
10
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
10
11
|
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
|
|
11
12
|
import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -36,6 +37,13 @@ import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./command
|
|
|
36
37
|
import { UploadFileCommandInput, UploadFileCommandOutput } from "./commands/UploadFileCommand";
|
|
37
38
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
38
39
|
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;
|
|
39
47
|
/**
|
|
40
48
|
* @see {@link AddChannelMemberCommand}
|
|
41
49
|
*/
|
|
@@ -5,6 +5,7 @@ import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./command
|
|
|
5
5
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
6
6
|
import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
|
|
7
7
|
import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput } from "./commands/DeleteMessageReactionCommand";
|
|
8
|
+
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
8
9
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
9
10
|
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
|
|
10
11
|
import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
|
|
@@ -43,11 +44,11 @@ export { __Client };
|
|
|
43
44
|
/**
|
|
44
45
|
* @public
|
|
45
46
|
*/
|
|
46
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
47
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
47
48
|
/**
|
|
48
49
|
* @public
|
|
49
50
|
*/
|
|
50
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
51
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
51
52
|
/**
|
|
52
53
|
* @public
|
|
53
54
|
*/
|
|
@@ -115,8 +115,6 @@ declare const CreateGroupChannelCommand_base: {
|
|
|
115
115
|
* // telephony: true || false,
|
|
116
116
|
* // sms: true || false,
|
|
117
117
|
* // mms: true || false,
|
|
118
|
-
* // whatsapp: true || false,
|
|
119
|
-
* // whatsappStatus: "24h_channel_closed",
|
|
120
118
|
* // broadcast: true || false,
|
|
121
119
|
* // external: true || false,
|
|
122
120
|
* // channelId: "STRING_VALUE", // required
|