@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
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = void 0;
|
|
3
|
+
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_AssignChannelCommand = 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_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = 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
|
|
9
|
+
const se_AddChannelMemberCommand = async (input, context) => {
|
|
10
10
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
'content-type': 'application/json',
|
|
13
13
|
};
|
|
14
|
-
b.bp("/v2/
|
|
14
|
+
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
15
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
16
|
+
const query = (0, smithy_client_1.map)({
|
|
17
|
+
[_u]: [, input[_uI]],
|
|
18
|
+
});
|
|
15
19
|
let body;
|
|
16
20
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
'
|
|
18
|
-
'
|
|
21
|
+
'memberId': [],
|
|
22
|
+
'memberToInvite': _ => (0, smithy_client_1._json)(_),
|
|
23
|
+
'silent': [],
|
|
19
24
|
}));
|
|
20
25
|
b.m("POST")
|
|
21
26
|
.h(headers)
|
|
27
|
+
.q(query)
|
|
22
28
|
.b(body);
|
|
23
29
|
return b.build();
|
|
24
30
|
};
|
|
25
|
-
exports.
|
|
26
|
-
const
|
|
31
|
+
exports.se_AddChannelMemberCommand = se_AddChannelMemberCommand;
|
|
32
|
+
const se_AddChannelMembersCommand = async (input, context) => {
|
|
27
33
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
28
34
|
const headers = {
|
|
29
35
|
'content-type': 'application/json',
|
|
@@ -35,40 +41,41 @@ const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
35
41
|
});
|
|
36
42
|
let body;
|
|
37
43
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
-
'
|
|
39
|
-
'
|
|
44
|
+
'members': _ => (0, smithy_client_1._json)(_),
|
|
45
|
+
'membersToInvite': _ => (0, smithy_client_1._json)(_),
|
|
40
46
|
'silent': [],
|
|
41
47
|
}));
|
|
42
|
-
b.m("
|
|
48
|
+
b.m("PUT")
|
|
43
49
|
.h(headers)
|
|
44
50
|
.q(query)
|
|
45
51
|
.b(body);
|
|
46
52
|
return b.build();
|
|
47
53
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
54
|
+
exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
|
|
55
|
+
const se_AssignChannelCommand = async (input, context) => {
|
|
50
56
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
51
57
|
const headers = {
|
|
52
58
|
'content-type': 'application/json',
|
|
53
59
|
};
|
|
54
|
-
b.bp("/v2/conversations/channels/{channelId}/
|
|
60
|
+
b.bp("/v2/conversations/channels/{channelId}/assign");
|
|
55
61
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
56
62
|
const query = (0, smithy_client_1.map)({
|
|
57
63
|
[_u]: [, input[_uI]],
|
|
58
64
|
});
|
|
59
65
|
let body;
|
|
60
66
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
|
-
'
|
|
62
|
-
'
|
|
67
|
+
'assignee': _ => (0, smithy_client_1._json)(_),
|
|
68
|
+
'options': _ => (0, smithy_client_1._json)(_),
|
|
69
|
+
'service': _ => (0, smithy_client_1._json)(_),
|
|
63
70
|
'silent': [],
|
|
64
71
|
}));
|
|
65
|
-
b.m("
|
|
72
|
+
b.m("POST")
|
|
66
73
|
.h(headers)
|
|
67
74
|
.q(query)
|
|
68
75
|
.b(body);
|
|
69
76
|
return b.build();
|
|
70
77
|
};
|
|
71
|
-
exports.
|
|
78
|
+
exports.se_AssignChannelCommand = se_AssignChannelCommand;
|
|
72
79
|
const se_CreateGroupChannelCommand = async (input, context) => {
|
|
73
80
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
74
81
|
const headers = {
|
|
@@ -162,6 +169,20 @@ const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
|
162
169
|
return b.build();
|
|
163
170
|
};
|
|
164
171
|
exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
|
|
172
|
+
const se_DescribeEventCommand = async (input, context) => {
|
|
173
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
174
|
+
const headers = {
|
|
175
|
+
'content-type': 'application/json',
|
|
176
|
+
};
|
|
177
|
+
b.bp("/v2/conversations/describe");
|
|
178
|
+
let body;
|
|
179
|
+
body = "";
|
|
180
|
+
b.m("POST")
|
|
181
|
+
.h(headers)
|
|
182
|
+
.b(body);
|
|
183
|
+
return b.build();
|
|
184
|
+
};
|
|
185
|
+
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
165
186
|
const se_GetChannelCommand = async (input, context) => {
|
|
166
187
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
167
188
|
const headers = {};
|
|
@@ -679,7 +700,7 @@ const se_UploadFileCommand = async (input, context) => {
|
|
|
679
700
|
return b.build();
|
|
680
701
|
};
|
|
681
702
|
exports.se_UploadFileCommand = se_UploadFileCommand;
|
|
682
|
-
const
|
|
703
|
+
const de_AddChannelMemberCommand = async (output, context) => {
|
|
683
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
684
705
|
return de_CommandError(output, context);
|
|
685
706
|
}
|
|
@@ -688,66 +709,14 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
688
709
|
});
|
|
689
710
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
690
711
|
const doc = (0, smithy_client_1.take)(data, {
|
|
691
|
-
'
|
|
692
|
-
'
|
|
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),
|
|
712
|
+
'member': smithy_client_1._json,
|
|
713
|
+
'user': smithy_client_1._json,
|
|
745
714
|
});
|
|
746
715
|
Object.assign(contents, doc);
|
|
747
716
|
return contents;
|
|
748
717
|
};
|
|
749
|
-
exports.
|
|
750
|
-
const
|
|
718
|
+
exports.de_AddChannelMemberCommand = de_AddChannelMemberCommand;
|
|
719
|
+
const de_AddChannelMembersCommand = async (output, context) => {
|
|
751
720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
721
|
return de_CommandError(output, context);
|
|
753
722
|
}
|
|
@@ -756,14 +725,14 @@ const de_AddChannelMemberCommand = async (output, context) => {
|
|
|
756
725
|
});
|
|
757
726
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
758
727
|
const doc = (0, smithy_client_1.take)(data, {
|
|
759
|
-
'
|
|
760
|
-
'
|
|
728
|
+
'members': smithy_client_1._json,
|
|
729
|
+
'users': smithy_client_1._json,
|
|
761
730
|
});
|
|
762
731
|
Object.assign(contents, doc);
|
|
763
732
|
return contents;
|
|
764
733
|
};
|
|
765
|
-
exports.
|
|
766
|
-
const
|
|
734
|
+
exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
|
|
735
|
+
const de_AssignChannelCommand = async (output, context) => {
|
|
767
736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
737
|
return de_CommandError(output, context);
|
|
769
738
|
}
|
|
@@ -772,13 +741,13 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
772
741
|
});
|
|
773
742
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
774
743
|
const doc = (0, smithy_client_1.take)(data, {
|
|
775
|
-
'
|
|
776
|
-
'
|
|
744
|
+
'assignee': smithy_client_1._json,
|
|
745
|
+
'service': smithy_client_1._json,
|
|
777
746
|
});
|
|
778
747
|
Object.assign(contents, doc);
|
|
779
748
|
return contents;
|
|
780
749
|
};
|
|
781
|
-
exports.
|
|
750
|
+
exports.de_AssignChannelCommand = de_AssignChannelCommand;
|
|
782
751
|
const de_CreateGroupChannelCommand = async (output, context) => {
|
|
783
752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
784
753
|
return de_CommandError(output, context);
|
|
@@ -838,6 +807,29 @@ const de_DeleteMessageReactionCommand = async (output, context) => {
|
|
|
838
807
|
return contents;
|
|
839
808
|
};
|
|
840
809
|
exports.de_DeleteMessageReactionCommand = de_DeleteMessageReactionCommand;
|
|
810
|
+
const de_DescribeEventCommand = async (output, context) => {
|
|
811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
+
return de_CommandError(output, context);
|
|
813
|
+
}
|
|
814
|
+
const contents = (0, smithy_client_1.map)({
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
});
|
|
817
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
818
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
819
|
+
'WebhookChatChannelCreatedEvent': smithy_client_1._json,
|
|
820
|
+
'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
|
|
821
|
+
'WebhookChatMemberAddedEvent': smithy_client_1._json,
|
|
822
|
+
'WebhookChatMemberRemovedEvent': smithy_client_1._json,
|
|
823
|
+
'WebhookChatMessageDeletedEvent': smithy_client_1._json,
|
|
824
|
+
'WebhookChatMessageNewEvent': smithy_client_1._json,
|
|
825
|
+
'WebhookChatMessageUpdatedEvent': smithy_client_1._json,
|
|
826
|
+
'WebhookChatReactionDeletedEvent': smithy_client_1._json,
|
|
827
|
+
'WebhookChatReactionNewEvent': smithy_client_1._json,
|
|
828
|
+
});
|
|
829
|
+
Object.assign(contents, doc);
|
|
830
|
+
return contents;
|
|
831
|
+
};
|
|
832
|
+
exports.de_DescribeEventCommand = de_DescribeEventCommand;
|
|
841
833
|
const de_GetChannelCommand = async (output, context) => {
|
|
842
834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
835
|
return de_CommandError(output, context);
|
|
@@ -1236,18 +1228,18 @@ const de_CommandError = async (output, context) => {
|
|
|
1236
1228
|
};
|
|
1237
1229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1230
|
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
1231
|
case "ChannelNotFoundException":
|
|
1246
1232
|
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1247
1233
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1234
|
+
case "ForbiddenException":
|
|
1235
|
+
case "smithy.framework#ForbiddenException":
|
|
1236
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1248
1237
|
case "MemberAlreadyExistException":
|
|
1249
1238
|
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1250
1239
|
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
1240
|
+
case "ValidationException":
|
|
1241
|
+
case "smithy.framework#ValidationException":
|
|
1242
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
1243
|
case "ChannelAlreadyExistException":
|
|
1252
1244
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1253
1245
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
@@ -1390,47 +1382,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1390
1382
|
});
|
|
1391
1383
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1392
1384
|
};
|
|
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
1385
|
const deserializeMetadata = (output) => ({
|
|
1435
1386
|
httpStatusCode: output.statusCode,
|
|
1436
1387
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Conversations.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConversationsClient, } from "./ConversationsClient";
|
|
2
2
|
import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
|
|
3
3
|
import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
|
|
4
|
+
import { AssignChannelCommand, } from "./commands/AssignChannelCommand";
|
|
4
5
|
import { CreateGroupChannelCommand, } from "./commands/CreateGroupChannelCommand";
|
|
5
6
|
import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
|
|
6
7
|
import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
|
|
@@ -37,14 +38,15 @@ import { UpdateMessageCommand, } from "./commands/UpdateMessageCommand";
|
|
|
37
38
|
import { UploadFileCommand, } from "./commands/UploadFileCommand";
|
|
38
39
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
39
40
|
const commands = {
|
|
40
|
-
DescribeEventCommand,
|
|
41
41
|
AddChannelMemberCommand,
|
|
42
42
|
AddChannelMembersCommand,
|
|
43
|
+
AssignChannelCommand,
|
|
43
44
|
CreateGroupChannelCommand,
|
|
44
45
|
DeleteChannelCommand,
|
|
45
46
|
DeleteChannelMemberCommand,
|
|
46
47
|
DeleteMessageCommand,
|
|
47
48
|
DeleteMessageReactionCommand,
|
|
49
|
+
DescribeEventCommand,
|
|
48
50
|
GetChannelCommand,
|
|
49
51
|
GetChannelMemberCommand,
|
|
50
52
|
GetDirectChannelIdCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_AssignChannelCommand, se_AssignChannelCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class AssignChannelCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "AssignChannel", {})
|
|
12
|
+
.n("ConversationsClient", "AssignChannelCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_AssignChannelCommand)
|
|
15
|
+
.de(de_AssignChannelCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export * from "./DescribeEventCommand";
|
|
2
1
|
export * from "./AddChannelMemberCommand";
|
|
3
2
|
export * from "./AddChannelMembersCommand";
|
|
3
|
+
export * from "./AssignChannelCommand";
|
|
4
4
|
export * from "./CreateGroupChannelCommand";
|
|
5
5
|
export * from "./DeleteChannelCommand";
|
|
6
6
|
export * from "./DeleteChannelMemberCommand";
|
|
7
7
|
export * from "./DeleteMessageCommand";
|
|
8
8
|
export * from "./DeleteMessageReactionCommand";
|
|
9
|
+
export * from "./DescribeEventCommand";
|
|
9
10
|
export * from "./GetChannelCommand";
|
|
10
11
|
export * from "./GetChannelMemberCommand";
|
|
11
12
|
export * from "./GetDirectChannelIdCommand";
|