@wildix/xbees-conversations-client 1.1.12 → 1.1.14
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/ConversationsClient.js +4 -5
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +71 -42
- package/dist-cjs/protocols/Aws_restJson1.js +142 -151
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/Conversations.js +2 -0
- package/dist-es/ConversationsClient.js +4 -5
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +67 -38
- package/dist-es/protocols/Aws_restJson1.js +43 -54
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/Conversations.d.ts +7 -0
- package/dist-types/ConversationsClient.d.ts +4 -3
- package/dist-types/commands/AddChannelMemberCommand.d.ts +13 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +13 -0
- package/dist-types/commands/AssignChannelCommand.d.ts +120 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +12 -0
- package/dist-types/commands/CreateInboxTagCommand.d.ts +12 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +12 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +12 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +12 -0
- package/dist-types/commands/DeleteInboxTagCommand.d.ts +12 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +12 -0
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +12 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +12 -0
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +12 -0
- package/dist-types/commands/GetChannelCommand.d.ts +12 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +12 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +12 -0
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +12 -0
- package/dist-types/commands/GetInboxStateCommand.d.ts +12 -0
- package/dist-types/commands/GetMessageCommand.d.ts +12 -0
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +12 -0
- package/dist-types/commands/GetTokenCommand.d.ts +12 -0
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +12 -0
- package/dist-types/commands/HideChannelCommand.d.ts +12 -0
- package/dist-types/commands/InviteCommand.d.ts +12 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +12 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +12 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +12 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +12 -0
- package/dist-types/commands/ListInboxTaggedChannelsCommand.d.ts +12 -0
- package/dist-types/commands/ListInboxTagsCommand.d.ts +12 -0
- package/dist-types/commands/ListMessageReactionsCommand.d.ts +12 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +12 -0
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +12 -0
- package/dist-types/commands/MarkReadCommand.d.ts +12 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +12 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +12 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +12 -0
- package/dist-types/commands/PinChannelCommand.d.ts +12 -0
- package/dist-types/commands/PinMessageCommand.d.ts +12 -0
- package/dist-types/commands/QueryChannelsCommand.d.ts +12 -0
- package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +12 -0
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +12 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +12 -0
- package/dist-types/commands/SendMessageCommand.d.ts +12 -0
- package/dist-types/commands/SendMessageReactionCommand.d.ts +12 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +12 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +12 -0
- package/dist-types/commands/ShowChannelCommand.d.ts +12 -0
- package/dist-types/commands/TagChannelCommand.d.ts +12 -0
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +12 -0
- package/dist-types/commands/UnpinChannelCommand.d.ts +12 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +12 -0
- package/dist-types/commands/UntagChannelCommand.d.ts +12 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +12 -0
- package/dist-types/commands/UpdateInboxTagCommand.d.ts +12 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +12 -0
- package/dist-types/commands/UploadFileCommand.d.ts +12 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +459 -284
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/package.json +38 -34
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = void 0;
|
|
3
|
+
exports.se_TriggerMessageActionCommand = exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_QueryChannelsCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListPinnedMessagesCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListInboxTagsCommand = exports.se_ListInboxTaggedChannelsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetTokenCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxStateCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_GetActionTriggerResultCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_QueryChannelsCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListPinnedMessagesCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListInboxTagsCommand = exports.de_ListInboxTaggedChannelsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetTokenCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxStateCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_GetActionTriggerResultCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = void 0;
|
|
5
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = void 0;
|
|
6
6
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const core_1 = require("@
|
|
8
|
+
const core_1 = require("@aws-sdk/core");
|
|
9
|
+
const core_2 = require("@smithy/core");
|
|
9
10
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
11
|
const se_AddChannelMemberCommand = async (input, context) => {
|
|
11
|
-
const b = (0,
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
13
|
const headers = {
|
|
13
14
|
'content-type': 'application/json',
|
|
14
15
|
};
|
|
@@ -19,6 +20,7 @@ const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
19
20
|
});
|
|
20
21
|
let body;
|
|
21
22
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
23
|
+
'hideHistory': [],
|
|
22
24
|
'memberId': [],
|
|
23
25
|
'memberToInvite': _ => (0, smithy_client_1._json)(_),
|
|
24
26
|
'silent': [],
|
|
@@ -31,7 +33,7 @@ const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
31
33
|
};
|
|
32
34
|
exports.se_AddChannelMemberCommand = se_AddChannelMemberCommand;
|
|
33
35
|
const se_AddChannelMembersCommand = async (input, context) => {
|
|
34
|
-
const b = (0,
|
|
36
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
35
37
|
const headers = {
|
|
36
38
|
'content-type': 'application/json',
|
|
37
39
|
};
|
|
@@ -42,6 +44,7 @@ const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
42
44
|
});
|
|
43
45
|
let body;
|
|
44
46
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
47
|
+
'hideHistory': [],
|
|
45
48
|
'members': _ => (0, smithy_client_1._json)(_),
|
|
46
49
|
'membersToInvite': _ => (0, smithy_client_1._json)(_),
|
|
47
50
|
'silent': [],
|
|
@@ -53,8 +56,32 @@ const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
53
56
|
return b.build();
|
|
54
57
|
};
|
|
55
58
|
exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
|
|
59
|
+
const se_AssignChannelCommand = async (input, context) => {
|
|
60
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
61
|
+
const headers = {
|
|
62
|
+
'content-type': 'application/json',
|
|
63
|
+
};
|
|
64
|
+
b.bp("/v2/conversations/channels/{channelId}/assign");
|
|
65
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
66
|
+
const query = (0, smithy_client_1.map)({
|
|
67
|
+
[_u]: [, input[_uI]],
|
|
68
|
+
});
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
71
|
+
'assignee': _ => (0, smithy_client_1._json)(_),
|
|
72
|
+
'service': _ => (0, smithy_client_1._json)(_),
|
|
73
|
+
'silent': [],
|
|
74
|
+
'variant': [],
|
|
75
|
+
}));
|
|
76
|
+
b.m("POST")
|
|
77
|
+
.h(headers)
|
|
78
|
+
.q(query)
|
|
79
|
+
.b(body);
|
|
80
|
+
return b.build();
|
|
81
|
+
};
|
|
82
|
+
exports.se_AssignChannelCommand = se_AssignChannelCommand;
|
|
56
83
|
const se_CreateGroupChannelCommand = async (input, context) => {
|
|
57
|
-
const b = (0,
|
|
84
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
58
85
|
const headers = {
|
|
59
86
|
'content-type': 'application/json',
|
|
60
87
|
};
|
|
@@ -83,7 +110,7 @@ const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
83
110
|
};
|
|
84
111
|
exports.se_CreateGroupChannelCommand = se_CreateGroupChannelCommand;
|
|
85
112
|
const se_CreateInboxTagCommand = async (input, context) => {
|
|
86
|
-
const b = (0,
|
|
113
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
87
114
|
const headers = {
|
|
88
115
|
'content-type': 'application/json',
|
|
89
116
|
};
|
|
@@ -104,7 +131,7 @@ const se_CreateInboxTagCommand = async (input, context) => {
|
|
|
104
131
|
};
|
|
105
132
|
exports.se_CreateInboxTagCommand = se_CreateInboxTagCommand;
|
|
106
133
|
const se_CreateKiteChannelCommand = async (input, context) => {
|
|
107
|
-
const b = (0,
|
|
134
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
108
135
|
const headers = {
|
|
109
136
|
'content-type': 'application/json',
|
|
110
137
|
};
|
|
@@ -128,7 +155,7 @@ const se_CreateKiteChannelCommand = async (input, context) => {
|
|
|
128
155
|
};
|
|
129
156
|
exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
|
|
130
157
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
131
|
-
const b = (0,
|
|
158
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
132
159
|
const headers = {};
|
|
133
160
|
b.bp("/v2/conversations/channels/{channelId}");
|
|
134
161
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -140,7 +167,7 @@ const se_DeleteChannelCommand = async (input, context) => {
|
|
|
140
167
|
};
|
|
141
168
|
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
142
169
|
const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
143
|
-
const b = (0,
|
|
170
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
144
171
|
const headers = {};
|
|
145
172
|
b.bp("/v2/conversations/channels/{channelId}/members/{memberId}");
|
|
146
173
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -158,7 +185,7 @@ const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
|
158
185
|
};
|
|
159
186
|
exports.se_DeleteChannelMemberCommand = se_DeleteChannelMemberCommand;
|
|
160
187
|
const se_DeleteInboxTagCommand = async (input, context) => {
|
|
161
|
-
const b = (0,
|
|
188
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
162
189
|
const headers = {};
|
|
163
190
|
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
164
191
|
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
@@ -174,7 +201,7 @@ const se_DeleteInboxTagCommand = async (input, context) => {
|
|
|
174
201
|
};
|
|
175
202
|
exports.se_DeleteInboxTagCommand = se_DeleteInboxTagCommand;
|
|
176
203
|
const se_DeleteMessageCommand = async (input, context) => {
|
|
177
|
-
const b = (0,
|
|
204
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
178
205
|
const headers = {};
|
|
179
206
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
180
207
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -191,7 +218,7 @@ const se_DeleteMessageCommand = async (input, context) => {
|
|
|
191
218
|
};
|
|
192
219
|
exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
|
|
193
220
|
const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
194
|
-
const b = (0,
|
|
221
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
195
222
|
const headers = {};
|
|
196
223
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions/{reactionType}");
|
|
197
224
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -209,13 +236,10 @@ const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
|
209
236
|
};
|
|
210
237
|
exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
|
|
211
238
|
const se_DescribeEventCommand = async (input, context) => {
|
|
212
|
-
const b = (0,
|
|
213
|
-
const headers = {
|
|
214
|
-
'content-type': 'application/json',
|
|
215
|
-
};
|
|
239
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
240
|
+
const headers = {};
|
|
216
241
|
b.bp("/v2/conversations/describe");
|
|
217
242
|
let body;
|
|
218
|
-
body = "";
|
|
219
243
|
b.m("POST")
|
|
220
244
|
.h(headers)
|
|
221
245
|
.b(body);
|
|
@@ -223,7 +247,7 @@ const se_DescribeEventCommand = async (input, context) => {
|
|
|
223
247
|
};
|
|
224
248
|
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
225
249
|
const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
226
|
-
const b = (0,
|
|
250
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
227
251
|
const headers = {};
|
|
228
252
|
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
229
253
|
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
@@ -239,7 +263,7 @@ const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
|
239
263
|
};
|
|
240
264
|
exports.se_GetActionTriggerResultCommand = se_GetActionTriggerResultCommand;
|
|
241
265
|
const se_GetChannelCommand = async (input, context) => {
|
|
242
|
-
const b = (0,
|
|
266
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
243
267
|
const headers = {};
|
|
244
268
|
b.bp("/v2/conversations/channels/{channelId}");
|
|
245
269
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -251,7 +275,7 @@ const se_GetChannelCommand = async (input, context) => {
|
|
|
251
275
|
};
|
|
252
276
|
exports.se_GetChannelCommand = se_GetChannelCommand;
|
|
253
277
|
const se_GetChannelMemberCommand = async (input, context) => {
|
|
254
|
-
const b = (0,
|
|
278
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
255
279
|
const headers = {};
|
|
256
280
|
b.bp("/v2/conversations/channels/{channelId}/members/{memberId}");
|
|
257
281
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -264,7 +288,7 @@ const se_GetChannelMemberCommand = async (input, context) => {
|
|
|
264
288
|
};
|
|
265
289
|
exports.se_GetChannelMemberCommand = se_GetChannelMemberCommand;
|
|
266
290
|
const se_GetDirectChannelIdCommand = async (input, context) => {
|
|
267
|
-
const b = (0,
|
|
291
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
268
292
|
const headers = {
|
|
269
293
|
'content-type': 'application/json',
|
|
270
294
|
};
|
|
@@ -285,7 +309,7 @@ const se_GetDirectChannelIdCommand = async (input, context) => {
|
|
|
285
309
|
};
|
|
286
310
|
exports.se_GetDirectChannelIdCommand = se_GetDirectChannelIdCommand;
|
|
287
311
|
const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
288
|
-
const b = (0,
|
|
312
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
289
313
|
const headers = {};
|
|
290
314
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/files/{fileId}/download_url");
|
|
291
315
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -304,7 +328,7 @@ const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
304
328
|
};
|
|
305
329
|
exports.se_GetFilePresignedDownloadUrlCommand = se_GetFilePresignedDownloadUrlCommand;
|
|
306
330
|
const se_GetInboxStateCommand = async (input, context) => {
|
|
307
|
-
const b = (0,
|
|
331
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
308
332
|
const headers = {};
|
|
309
333
|
b.bp("/v2/conversations/inbox/state");
|
|
310
334
|
const query = (0, smithy_client_1.map)({
|
|
@@ -319,7 +343,7 @@ const se_GetInboxStateCommand = async (input, context) => {
|
|
|
319
343
|
};
|
|
320
344
|
exports.se_GetInboxStateCommand = se_GetInboxStateCommand;
|
|
321
345
|
const se_GetMessageCommand = async (input, context) => {
|
|
322
|
-
const b = (0,
|
|
346
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
323
347
|
const headers = {};
|
|
324
348
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
325
349
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -332,7 +356,7 @@ const se_GetMessageCommand = async (input, context) => {
|
|
|
332
356
|
};
|
|
333
357
|
exports.se_GetMessageCommand = se_GetMessageCommand;
|
|
334
358
|
const se_GetOrCreateDirectChannelCommand = async (input, context) => {
|
|
335
|
-
const b = (0,
|
|
359
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
336
360
|
const headers = {
|
|
337
361
|
'content-type': 'application/json',
|
|
338
362
|
};
|
|
@@ -353,13 +377,10 @@ const se_GetOrCreateDirectChannelCommand = async (input, context) => {
|
|
|
353
377
|
};
|
|
354
378
|
exports.se_GetOrCreateDirectChannelCommand = se_GetOrCreateDirectChannelCommand;
|
|
355
379
|
const se_GetTokenCommand = async (input, context) => {
|
|
356
|
-
const b = (0,
|
|
357
|
-
const headers = {
|
|
358
|
-
'content-type': 'application/json',
|
|
359
|
-
};
|
|
380
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
381
|
+
const headers = {};
|
|
360
382
|
b.bp("/v2/conversations/token");
|
|
361
383
|
let body;
|
|
362
|
-
body = "";
|
|
363
384
|
b.m("GET")
|
|
364
385
|
.h(headers)
|
|
365
386
|
.b(body);
|
|
@@ -367,7 +388,7 @@ const se_GetTokenCommand = async (input, context) => {
|
|
|
367
388
|
};
|
|
368
389
|
exports.se_GetTokenCommand = se_GetTokenCommand;
|
|
369
390
|
const se_GetUploadedFileInfoCommand = async (input, context) => {
|
|
370
|
-
const b = (0,
|
|
391
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
371
392
|
const headers = {};
|
|
372
393
|
b.bp("/v2/conversations/channels/{channelId}/files/{fileId}");
|
|
373
394
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -384,7 +405,7 @@ const se_GetUploadedFileInfoCommand = async (input, context) => {
|
|
|
384
405
|
};
|
|
385
406
|
exports.se_GetUploadedFileInfoCommand = se_GetUploadedFileInfoCommand;
|
|
386
407
|
const se_HideChannelCommand = async (input, context) => {
|
|
387
|
-
const b = (0,
|
|
408
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
388
409
|
const headers = {};
|
|
389
410
|
b.bp("/v2/conversations/channels/{channelId}/hide");
|
|
390
411
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -400,7 +421,7 @@ const se_HideChannelCommand = async (input, context) => {
|
|
|
400
421
|
};
|
|
401
422
|
exports.se_HideChannelCommand = se_HideChannelCommand;
|
|
402
423
|
const se_InviteCommand = async (input, context) => {
|
|
403
|
-
const b = (0,
|
|
424
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
404
425
|
const headers = {
|
|
405
426
|
'content-type': 'application/json',
|
|
406
427
|
};
|
|
@@ -416,7 +437,7 @@ const se_InviteCommand = async (input, context) => {
|
|
|
416
437
|
};
|
|
417
438
|
exports.se_InviteCommand = se_InviteCommand;
|
|
418
439
|
const se_JoinChannelCommand = async (input, context) => {
|
|
419
|
-
const b = (0,
|
|
440
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
420
441
|
const headers = {
|
|
421
442
|
'content-type': 'application/json',
|
|
422
443
|
};
|
|
@@ -437,7 +458,7 @@ const se_JoinChannelCommand = async (input, context) => {
|
|
|
437
458
|
};
|
|
438
459
|
exports.se_JoinChannelCommand = se_JoinChannelCommand;
|
|
439
460
|
const se_LeaveChannelCommand = async (input, context) => {
|
|
440
|
-
const b = (0,
|
|
461
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
441
462
|
const headers = {
|
|
442
463
|
'content-type': 'application/json',
|
|
443
464
|
};
|
|
@@ -458,7 +479,7 @@ const se_LeaveChannelCommand = async (input, context) => {
|
|
|
458
479
|
};
|
|
459
480
|
exports.se_LeaveChannelCommand = se_LeaveChannelCommand;
|
|
460
481
|
const se_ListChannelMembersCommand = async (input, context) => {
|
|
461
|
-
const b = (0,
|
|
482
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
462
483
|
const headers = {};
|
|
463
484
|
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
464
485
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -475,7 +496,7 @@ const se_ListChannelMembersCommand = async (input, context) => {
|
|
|
475
496
|
};
|
|
476
497
|
exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
|
|
477
498
|
const se_ListChannelsCommand = async (input, context) => {
|
|
478
|
-
const b = (0,
|
|
499
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
479
500
|
const headers = {};
|
|
480
501
|
b.bp("/v2/conversations/channels");
|
|
481
502
|
const query = (0, smithy_client_1.map)({
|
|
@@ -493,7 +514,7 @@ const se_ListChannelsCommand = async (input, context) => {
|
|
|
493
514
|
};
|
|
494
515
|
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
495
516
|
const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
496
|
-
const b = (0,
|
|
517
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
497
518
|
const headers = {};
|
|
498
519
|
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
499
520
|
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
@@ -509,7 +530,7 @@ const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
|
509
530
|
};
|
|
510
531
|
exports.se_ListInboxTaggedChannelsCommand = se_ListInboxTaggedChannelsCommand;
|
|
511
532
|
const se_ListInboxTagsCommand = async (input, context) => {
|
|
512
|
-
const b = (0,
|
|
533
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
513
534
|
const headers = {};
|
|
514
535
|
b.bp("/v2/conversations/inbox/tags");
|
|
515
536
|
const query = (0, smithy_client_1.map)({
|
|
@@ -524,7 +545,7 @@ const se_ListInboxTagsCommand = async (input, context) => {
|
|
|
524
545
|
};
|
|
525
546
|
exports.se_ListInboxTagsCommand = se_ListInboxTagsCommand;
|
|
526
547
|
const se_ListMessageReactionsCommand = async (input, context) => {
|
|
527
|
-
const b = (0,
|
|
548
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
528
549
|
const headers = {};
|
|
529
550
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions");
|
|
530
551
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -542,7 +563,7 @@ const se_ListMessageReactionsCommand = async (input, context) => {
|
|
|
542
563
|
};
|
|
543
564
|
exports.se_ListMessageReactionsCommand = se_ListMessageReactionsCommand;
|
|
544
565
|
const se_ListMessagesCommand = async (input, context) => {
|
|
545
|
-
const b = (0,
|
|
566
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
546
567
|
const headers = {};
|
|
547
568
|
b.bp("/v2/conversations/channels/{channelId}/messages");
|
|
548
569
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -559,7 +580,7 @@ const se_ListMessagesCommand = async (input, context) => {
|
|
|
559
580
|
};
|
|
560
581
|
exports.se_ListMessagesCommand = se_ListMessagesCommand;
|
|
561
582
|
const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
562
|
-
const b = (0,
|
|
583
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
563
584
|
const headers = {};
|
|
564
585
|
b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
|
|
565
586
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -576,7 +597,7 @@ const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
|
576
597
|
};
|
|
577
598
|
exports.se_ListPinnedMessagesCommand = se_ListPinnedMessagesCommand;
|
|
578
599
|
const se_MarkReadCommand = async (input, context) => {
|
|
579
|
-
const b = (0,
|
|
600
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
580
601
|
const headers = {};
|
|
581
602
|
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
582
603
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -592,7 +613,7 @@ const se_MarkReadCommand = async (input, context) => {
|
|
|
592
613
|
};
|
|
593
614
|
exports.se_MarkReadCommand = se_MarkReadCommand;
|
|
594
615
|
const se_MarkUnreadCommand = async (input, context) => {
|
|
595
|
-
const b = (0,
|
|
616
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
596
617
|
const headers = {
|
|
597
618
|
'content-type': 'application/json',
|
|
598
619
|
};
|
|
@@ -614,7 +635,7 @@ const se_MarkUnreadCommand = async (input, context) => {
|
|
|
614
635
|
};
|
|
615
636
|
exports.se_MarkUnreadCommand = se_MarkUnreadCommand;
|
|
616
637
|
const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
617
|
-
const b = (0,
|
|
638
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
618
639
|
const headers = {
|
|
619
640
|
'content-type': 'application/json',
|
|
620
641
|
};
|
|
@@ -637,7 +658,7 @@ const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
|
637
658
|
};
|
|
638
659
|
exports.se_PartialUpdateChannelCommand = se_PartialUpdateChannelCommand;
|
|
639
660
|
const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
640
|
-
const b = (0,
|
|
661
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
641
662
|
const headers = {
|
|
642
663
|
'content-type': 'application/json',
|
|
643
664
|
};
|
|
@@ -661,7 +682,7 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
661
682
|
};
|
|
662
683
|
exports.se_PartialUpdateMessageCommand = se_PartialUpdateMessageCommand;
|
|
663
684
|
const se_PinChannelCommand = async (input, context) => {
|
|
664
|
-
const b = (0,
|
|
685
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
665
686
|
const headers = {};
|
|
666
687
|
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
667
688
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -678,7 +699,7 @@ const se_PinChannelCommand = async (input, context) => {
|
|
|
678
699
|
};
|
|
679
700
|
exports.se_PinChannelCommand = se_PinChannelCommand;
|
|
680
701
|
const se_PinMessageCommand = async (input, context) => {
|
|
681
|
-
const b = (0,
|
|
702
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
682
703
|
const headers = {
|
|
683
704
|
'content-type': 'application/json',
|
|
684
705
|
};
|
|
@@ -702,7 +723,7 @@ const se_PinMessageCommand = async (input, context) => {
|
|
|
702
723
|
};
|
|
703
724
|
exports.se_PinMessageCommand = se_PinMessageCommand;
|
|
704
725
|
const se_QueryChannelsCommand = async (input, context) => {
|
|
705
|
-
const b = (0,
|
|
726
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
706
727
|
const headers = {
|
|
707
728
|
'content-type': 'application/json',
|
|
708
729
|
};
|
|
@@ -725,7 +746,7 @@ const se_QueryChannelsCommand = async (input, context) => {
|
|
|
725
746
|
};
|
|
726
747
|
exports.se_QueryChannelsCommand = se_QueryChannelsCommand;
|
|
727
748
|
const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
728
|
-
const b = (0,
|
|
749
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
729
750
|
const headers = {
|
|
730
751
|
'content-type': 'application/json',
|
|
731
752
|
};
|
|
@@ -741,7 +762,7 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
|
741
762
|
};
|
|
742
763
|
exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
|
|
743
764
|
const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
744
|
-
const b = (0,
|
|
765
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
745
766
|
const headers = {
|
|
746
767
|
'content-type': 'application/json',
|
|
747
768
|
};
|
|
@@ -759,7 +780,7 @@ const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
|
759
780
|
};
|
|
760
781
|
exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
|
|
761
782
|
const se_SendGiphyCommand = async (input, context) => {
|
|
762
|
-
const b = (0,
|
|
783
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
763
784
|
const headers = {
|
|
764
785
|
'content-type': 'application/json',
|
|
765
786
|
};
|
|
@@ -781,7 +802,7 @@ const se_SendGiphyCommand = async (input, context) => {
|
|
|
781
802
|
};
|
|
782
803
|
exports.se_SendGiphyCommand = se_SendGiphyCommand;
|
|
783
804
|
const se_SendMessageCommand = async (input, context) => {
|
|
784
|
-
const b = (0,
|
|
805
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
785
806
|
const headers = {
|
|
786
807
|
'content-type': 'application/json',
|
|
787
808
|
};
|
|
@@ -808,7 +829,7 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
808
829
|
};
|
|
809
830
|
exports.se_SendMessageCommand = se_SendMessageCommand;
|
|
810
831
|
const se_SendMessageReactionCommand = async (input, context) => {
|
|
811
|
-
const b = (0,
|
|
832
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
812
833
|
const headers = {
|
|
813
834
|
'content-type': 'application/json',
|
|
814
835
|
};
|
|
@@ -830,7 +851,7 @@ const se_SendMessageReactionCommand = async (input, context) => {
|
|
|
830
851
|
};
|
|
831
852
|
exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
|
|
832
853
|
const se_SendTypingStartCommand = async (input, context) => {
|
|
833
|
-
const b = (0,
|
|
854
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
834
855
|
const headers = {};
|
|
835
856
|
b.bp("/v2/conversations/channels/{channelId}/send_typing_start");
|
|
836
857
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -846,7 +867,7 @@ const se_SendTypingStartCommand = async (input, context) => {
|
|
|
846
867
|
};
|
|
847
868
|
exports.se_SendTypingStartCommand = se_SendTypingStartCommand;
|
|
848
869
|
const se_SendTypingStopCommand = async (input, context) => {
|
|
849
|
-
const b = (0,
|
|
870
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
850
871
|
const headers = {};
|
|
851
872
|
b.bp("/v2/conversations/channels/{channelId}/send_typing_stop");
|
|
852
873
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -862,7 +883,7 @@ const se_SendTypingStopCommand = async (input, context) => {
|
|
|
862
883
|
};
|
|
863
884
|
exports.se_SendTypingStopCommand = se_SendTypingStopCommand;
|
|
864
885
|
const se_ShowChannelCommand = async (input, context) => {
|
|
865
|
-
const b = (0,
|
|
886
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
866
887
|
const headers = {};
|
|
867
888
|
b.bp("/v2/conversations/channels/{channelId}/show");
|
|
868
889
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -878,7 +899,7 @@ const se_ShowChannelCommand = async (input, context) => {
|
|
|
878
899
|
};
|
|
879
900
|
exports.se_ShowChannelCommand = se_ShowChannelCommand;
|
|
880
901
|
const se_TagChannelCommand = async (input, context) => {
|
|
881
|
-
const b = (0,
|
|
902
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
882
903
|
const headers = {};
|
|
883
904
|
b.bp("/v2/conversations/channels/{channelId}/tags/{tagId}");
|
|
884
905
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -896,7 +917,7 @@ const se_TagChannelCommand = async (input, context) => {
|
|
|
896
917
|
};
|
|
897
918
|
exports.se_TagChannelCommand = se_TagChannelCommand;
|
|
898
919
|
const se_TriggerMessageActionCommand = async (input, context) => {
|
|
899
|
-
const b = (0,
|
|
920
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
900
921
|
const headers = {};
|
|
901
922
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
902
923
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -914,7 +935,7 @@ const se_TriggerMessageActionCommand = async (input, context) => {
|
|
|
914
935
|
};
|
|
915
936
|
exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
|
|
916
937
|
const se_UnpinChannelCommand = async (input, context) => {
|
|
917
|
-
const b = (0,
|
|
938
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
918
939
|
const headers = {};
|
|
919
940
|
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
920
941
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -930,7 +951,7 @@ const se_UnpinChannelCommand = async (input, context) => {
|
|
|
930
951
|
};
|
|
931
952
|
exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
|
|
932
953
|
const se_UnpinMessageCommand = async (input, context) => {
|
|
933
|
-
const b = (0,
|
|
954
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
934
955
|
const headers = {};
|
|
935
956
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
936
957
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -948,7 +969,7 @@ const se_UnpinMessageCommand = async (input, context) => {
|
|
|
948
969
|
};
|
|
949
970
|
exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
|
|
950
971
|
const se_UntagChannelCommand = async (input, context) => {
|
|
951
|
-
const b = (0,
|
|
972
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
952
973
|
const headers = {
|
|
953
974
|
'content-type': 'application/json',
|
|
954
975
|
};
|
|
@@ -969,7 +990,7 @@ const se_UntagChannelCommand = async (input, context) => {
|
|
|
969
990
|
};
|
|
970
991
|
exports.se_UntagChannelCommand = se_UntagChannelCommand;
|
|
971
992
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
972
|
-
const b = (0,
|
|
993
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
973
994
|
const headers = {
|
|
974
995
|
'content-type': 'application/json',
|
|
975
996
|
};
|
|
@@ -997,7 +1018,7 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
997
1018
|
};
|
|
998
1019
|
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
999
1020
|
const se_UpdateInboxTagCommand = async (input, context) => {
|
|
1000
|
-
const b = (0,
|
|
1021
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1001
1022
|
const headers = {
|
|
1002
1023
|
'content-type': 'application/json',
|
|
1003
1024
|
};
|
|
@@ -1018,7 +1039,7 @@ const se_UpdateInboxTagCommand = async (input, context) => {
|
|
|
1018
1039
|
};
|
|
1019
1040
|
exports.se_UpdateInboxTagCommand = se_UpdateInboxTagCommand;
|
|
1020
1041
|
const se_UpdateMessageCommand = async (input, context) => {
|
|
1021
|
-
const b = (0,
|
|
1042
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1022
1043
|
const headers = {
|
|
1023
1044
|
'content-type': 'application/json',
|
|
1024
1045
|
};
|
|
@@ -1046,7 +1067,7 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1046
1067
|
};
|
|
1047
1068
|
exports.se_UpdateMessageCommand = se_UpdateMessageCommand;
|
|
1048
1069
|
const se_UploadFileCommand = async (input, context) => {
|
|
1049
|
-
const b = (0,
|
|
1070
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1050
1071
|
const headers = {
|
|
1051
1072
|
'content-type': 'application/json',
|
|
1052
1073
|
};
|
|
@@ -1074,7 +1095,7 @@ const de_AddChannelMemberCommand = async (output, context) => {
|
|
|
1074
1095
|
const contents = (0, smithy_client_1.map)({
|
|
1075
1096
|
$metadata: deserializeMetadata(output),
|
|
1076
1097
|
});
|
|
1077
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1098
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1078
1099
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1079
1100
|
'member': smithy_client_1._json,
|
|
1080
1101
|
'user': smithy_client_1._json,
|
|
@@ -1090,7 +1111,7 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
1090
1111
|
const contents = (0, smithy_client_1.map)({
|
|
1091
1112
|
$metadata: deserializeMetadata(output),
|
|
1092
1113
|
});
|
|
1093
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1114
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1094
1115
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1095
1116
|
'members': smithy_client_1._json,
|
|
1096
1117
|
'users': smithy_client_1._json,
|
|
@@ -1099,6 +1120,22 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
1099
1120
|
return contents;
|
|
1100
1121
|
};
|
|
1101
1122
|
exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
|
|
1123
|
+
const de_AssignChannelCommand = async (output, context) => {
|
|
1124
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1125
|
+
return de_CommandError(output, context);
|
|
1126
|
+
}
|
|
1127
|
+
const contents = (0, smithy_client_1.map)({
|
|
1128
|
+
$metadata: deserializeMetadata(output),
|
|
1129
|
+
});
|
|
1130
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1131
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1132
|
+
'assignee': smithy_client_1._json,
|
|
1133
|
+
'service': smithy_client_1._json,
|
|
1134
|
+
});
|
|
1135
|
+
Object.assign(contents, doc);
|
|
1136
|
+
return contents;
|
|
1137
|
+
};
|
|
1138
|
+
exports.de_AssignChannelCommand = de_AssignChannelCommand;
|
|
1102
1139
|
const de_CreateGroupChannelCommand = async (output, context) => {
|
|
1103
1140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
1141
|
return de_CommandError(output, context);
|
|
@@ -1106,7 +1143,7 @@ const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
1106
1143
|
const contents = (0, smithy_client_1.map)({
|
|
1107
1144
|
$metadata: deserializeMetadata(output),
|
|
1108
1145
|
});
|
|
1109
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1146
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1110
1147
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1111
1148
|
'channel': smithy_client_1._json,
|
|
1112
1149
|
});
|
|
@@ -1121,7 +1158,7 @@ const de_CreateInboxTagCommand = async (output, context) => {
|
|
|
1121
1158
|
const contents = (0, smithy_client_1.map)({
|
|
1122
1159
|
$metadata: deserializeMetadata(output),
|
|
1123
1160
|
});
|
|
1124
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1161
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1125
1162
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1126
1163
|
'tag': smithy_client_1._json,
|
|
1127
1164
|
});
|
|
@@ -1136,7 +1173,7 @@ const de_CreateKiteChannelCommand = async (output, context) => {
|
|
|
1136
1173
|
const contents = (0, smithy_client_1.map)({
|
|
1137
1174
|
$metadata: deserializeMetadata(output),
|
|
1138
1175
|
});
|
|
1139
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1176
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1140
1177
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1141
1178
|
'channel': smithy_client_1._json,
|
|
1142
1179
|
});
|
|
@@ -1206,7 +1243,7 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
1206
1243
|
const contents = (0, smithy_client_1.map)({
|
|
1207
1244
|
$metadata: deserializeMetadata(output),
|
|
1208
1245
|
});
|
|
1209
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1246
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1210
1247
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1211
1248
|
'WebhookChatActionTriggeredEvent': smithy_client_1._json,
|
|
1212
1249
|
'WebhookChatChannelCreatedEvent': smithy_client_1._json,
|
|
@@ -1230,7 +1267,7 @@ const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
|
1230
1267
|
const contents = (0, smithy_client_1.map)({
|
|
1231
1268
|
$metadata: deserializeMetadata(output),
|
|
1232
1269
|
});
|
|
1233
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1270
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1234
1271
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1235
1272
|
'result': smithy_client_1._json,
|
|
1236
1273
|
'status': smithy_client_1.expectString,
|
|
@@ -1246,7 +1283,7 @@ const de_GetChannelCommand = async (output, context) => {
|
|
|
1246
1283
|
const contents = (0, smithy_client_1.map)({
|
|
1247
1284
|
$metadata: deserializeMetadata(output),
|
|
1248
1285
|
});
|
|
1249
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1286
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1250
1287
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1251
1288
|
'channel': smithy_client_1._json,
|
|
1252
1289
|
});
|
|
@@ -1261,7 +1298,7 @@ const de_GetChannelMemberCommand = async (output, context) => {
|
|
|
1261
1298
|
const contents = (0, smithy_client_1.map)({
|
|
1262
1299
|
$metadata: deserializeMetadata(output),
|
|
1263
1300
|
});
|
|
1264
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1301
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1265
1302
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1266
1303
|
'member': smithy_client_1._json,
|
|
1267
1304
|
'user': smithy_client_1._json,
|
|
@@ -1277,7 +1314,7 @@ const de_GetDirectChannelIdCommand = async (output, context) => {
|
|
|
1277
1314
|
const contents = (0, smithy_client_1.map)({
|
|
1278
1315
|
$metadata: deserializeMetadata(output),
|
|
1279
1316
|
});
|
|
1280
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1317
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1281
1318
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1282
1319
|
'channelId': smithy_client_1.expectString,
|
|
1283
1320
|
});
|
|
@@ -1292,7 +1329,7 @@ const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
|
|
|
1292
1329
|
const contents = (0, smithy_client_1.map)({
|
|
1293
1330
|
$metadata: deserializeMetadata(output),
|
|
1294
1331
|
});
|
|
1295
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1332
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1296
1333
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1297
1334
|
'presignedDownloadUrl': smithy_client_1.expectString,
|
|
1298
1335
|
});
|
|
@@ -1307,7 +1344,7 @@ const de_GetInboxStateCommand = async (output, context) => {
|
|
|
1307
1344
|
const contents = (0, smithy_client_1.map)({
|
|
1308
1345
|
$metadata: deserializeMetadata(output),
|
|
1309
1346
|
});
|
|
1310
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1347
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1311
1348
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1312
1349
|
'channels': smithy_client_1._json,
|
|
1313
1350
|
'tags': smithy_client_1._json,
|
|
@@ -1323,7 +1360,7 @@ const de_GetMessageCommand = async (output, context) => {
|
|
|
1323
1360
|
const contents = (0, smithy_client_1.map)({
|
|
1324
1361
|
$metadata: deserializeMetadata(output),
|
|
1325
1362
|
});
|
|
1326
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1363
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1327
1364
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1328
1365
|
'message': smithy_client_1._json,
|
|
1329
1366
|
});
|
|
@@ -1338,7 +1375,7 @@ const de_GetOrCreateDirectChannelCommand = async (output, context) => {
|
|
|
1338
1375
|
const contents = (0, smithy_client_1.map)({
|
|
1339
1376
|
$metadata: deserializeMetadata(output),
|
|
1340
1377
|
});
|
|
1341
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1378
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1342
1379
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1343
1380
|
'channel': smithy_client_1._json,
|
|
1344
1381
|
});
|
|
@@ -1353,7 +1390,7 @@ const de_GetTokenCommand = async (output, context) => {
|
|
|
1353
1390
|
const contents = (0, smithy_client_1.map)({
|
|
1354
1391
|
$metadata: deserializeMetadata(output),
|
|
1355
1392
|
});
|
|
1356
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1393
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1357
1394
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1358
1395
|
'expires': smithy_client_1.expectInt32,
|
|
1359
1396
|
'token': smithy_client_1.expectString,
|
|
@@ -1369,7 +1406,7 @@ const de_GetUploadedFileInfoCommand = async (output, context) => {
|
|
|
1369
1406
|
const contents = (0, smithy_client_1.map)({
|
|
1370
1407
|
$metadata: deserializeMetadata(output),
|
|
1371
1408
|
});
|
|
1372
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1409
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1373
1410
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1374
1411
|
'file': smithy_client_1._json,
|
|
1375
1412
|
});
|
|
@@ -1395,7 +1432,7 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1395
1432
|
const contents = (0, smithy_client_1.map)({
|
|
1396
1433
|
$metadata: deserializeMetadata(output),
|
|
1397
1434
|
});
|
|
1398
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1435
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1399
1436
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1400
1437
|
'users': smithy_client_1._json,
|
|
1401
1438
|
});
|
|
@@ -1410,7 +1447,7 @@ const de_JoinChannelCommand = async (output, context) => {
|
|
|
1410
1447
|
const contents = (0, smithy_client_1.map)({
|
|
1411
1448
|
$metadata: deserializeMetadata(output),
|
|
1412
1449
|
});
|
|
1413
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1450
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1414
1451
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1415
1452
|
'channel': smithy_client_1._json,
|
|
1416
1453
|
});
|
|
@@ -1436,7 +1473,7 @@ const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1436
1473
|
const contents = (0, smithy_client_1.map)({
|
|
1437
1474
|
$metadata: deserializeMetadata(output),
|
|
1438
1475
|
});
|
|
1439
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1476
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1440
1477
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1441
1478
|
'members': smithy_client_1._json,
|
|
1442
1479
|
'users': smithy_client_1._json,
|
|
@@ -1452,7 +1489,7 @@ const de_ListChannelsCommand = async (output, context) => {
|
|
|
1452
1489
|
const contents = (0, smithy_client_1.map)({
|
|
1453
1490
|
$metadata: deserializeMetadata(output),
|
|
1454
1491
|
});
|
|
1455
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1492
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1456
1493
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1457
1494
|
'channels': smithy_client_1._json,
|
|
1458
1495
|
});
|
|
@@ -1467,7 +1504,7 @@ const de_ListInboxTaggedChannelsCommand = async (output, context) => {
|
|
|
1467
1504
|
const contents = (0, smithy_client_1.map)({
|
|
1468
1505
|
$metadata: deserializeMetadata(output),
|
|
1469
1506
|
});
|
|
1470
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1507
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1471
1508
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1472
1509
|
'channels': smithy_client_1._json,
|
|
1473
1510
|
});
|
|
@@ -1482,7 +1519,7 @@ const de_ListInboxTagsCommand = async (output, context) => {
|
|
|
1482
1519
|
const contents = (0, smithy_client_1.map)({
|
|
1483
1520
|
$metadata: deserializeMetadata(output),
|
|
1484
1521
|
});
|
|
1485
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1522
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1486
1523
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1487
1524
|
'tags': smithy_client_1._json,
|
|
1488
1525
|
});
|
|
@@ -1497,7 +1534,7 @@ const de_ListMessageReactionsCommand = async (output, context) => {
|
|
|
1497
1534
|
const contents = (0, smithy_client_1.map)({
|
|
1498
1535
|
$metadata: deserializeMetadata(output),
|
|
1499
1536
|
});
|
|
1500
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1537
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1501
1538
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1502
1539
|
'reactions': smithy_client_1._json,
|
|
1503
1540
|
});
|
|
@@ -1512,7 +1549,7 @@ const de_ListMessagesCommand = async (output, context) => {
|
|
|
1512
1549
|
const contents = (0, smithy_client_1.map)({
|
|
1513
1550
|
$metadata: deserializeMetadata(output),
|
|
1514
1551
|
});
|
|
1515
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1552
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1516
1553
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1517
1554
|
'messages': smithy_client_1._json,
|
|
1518
1555
|
});
|
|
@@ -1527,7 +1564,7 @@ const de_ListPinnedMessagesCommand = async (output, context) => {
|
|
|
1527
1564
|
const contents = (0, smithy_client_1.map)({
|
|
1528
1565
|
$metadata: deserializeMetadata(output),
|
|
1529
1566
|
});
|
|
1530
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1567
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1531
1568
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1532
1569
|
'messages': smithy_client_1._json,
|
|
1533
1570
|
});
|
|
@@ -1564,7 +1601,7 @@ const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
|
1564
1601
|
const contents = (0, smithy_client_1.map)({
|
|
1565
1602
|
$metadata: deserializeMetadata(output),
|
|
1566
1603
|
});
|
|
1567
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1604
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1568
1605
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1569
1606
|
'channel': smithy_client_1._json,
|
|
1570
1607
|
});
|
|
@@ -1579,7 +1616,7 @@ const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
|
1579
1616
|
const contents = (0, smithy_client_1.map)({
|
|
1580
1617
|
$metadata: deserializeMetadata(output),
|
|
1581
1618
|
});
|
|
1582
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1619
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1583
1620
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1584
1621
|
'message': smithy_client_1._json,
|
|
1585
1622
|
});
|
|
@@ -1616,7 +1653,7 @@ const de_QueryChannelsCommand = async (output, context) => {
|
|
|
1616
1653
|
const contents = (0, smithy_client_1.map)({
|
|
1617
1654
|
$metadata: deserializeMetadata(output),
|
|
1618
1655
|
});
|
|
1619
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1656
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1620
1657
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1621
1658
|
'channels': smithy_client_1._json,
|
|
1622
1659
|
});
|
|
@@ -1653,7 +1690,7 @@ const de_SendGiphyCommand = async (output, context) => {
|
|
|
1653
1690
|
const contents = (0, smithy_client_1.map)({
|
|
1654
1691
|
$metadata: deserializeMetadata(output),
|
|
1655
1692
|
});
|
|
1656
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1693
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1657
1694
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1658
1695
|
'message': smithy_client_1._json,
|
|
1659
1696
|
});
|
|
@@ -1668,7 +1705,7 @@ const de_SendMessageCommand = async (output, context) => {
|
|
|
1668
1705
|
const contents = (0, smithy_client_1.map)({
|
|
1669
1706
|
$metadata: deserializeMetadata(output),
|
|
1670
1707
|
});
|
|
1671
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1708
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1672
1709
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1673
1710
|
'message': smithy_client_1._json,
|
|
1674
1711
|
});
|
|
@@ -1738,7 +1775,7 @@ const de_TriggerMessageActionCommand = async (output, context) => {
|
|
|
1738
1775
|
const contents = (0, smithy_client_1.map)({
|
|
1739
1776
|
$metadata: deserializeMetadata(output),
|
|
1740
1777
|
});
|
|
1741
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1778
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1742
1779
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1743
1780
|
'triggerId': smithy_client_1.expectString,
|
|
1744
1781
|
});
|
|
@@ -1786,7 +1823,7 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1786
1823
|
const contents = (0, smithy_client_1.map)({
|
|
1787
1824
|
$metadata: deserializeMetadata(output),
|
|
1788
1825
|
});
|
|
1789
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1826
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1790
1827
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1791
1828
|
'channel': smithy_client_1._json,
|
|
1792
1829
|
});
|
|
@@ -1801,7 +1838,7 @@ const de_UpdateInboxTagCommand = async (output, context) => {
|
|
|
1801
1838
|
const contents = (0, smithy_client_1.map)({
|
|
1802
1839
|
$metadata: deserializeMetadata(output),
|
|
1803
1840
|
});
|
|
1804
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1841
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1805
1842
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1806
1843
|
'tag': smithy_client_1._json,
|
|
1807
1844
|
});
|
|
@@ -1816,7 +1853,7 @@ const de_UpdateMessageCommand = async (output, context) => {
|
|
|
1816
1853
|
const contents = (0, smithy_client_1.map)({
|
|
1817
1854
|
$metadata: deserializeMetadata(output),
|
|
1818
1855
|
});
|
|
1819
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1856
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1820
1857
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1821
1858
|
'message': smithy_client_1._json,
|
|
1822
1859
|
});
|
|
@@ -1831,7 +1868,7 @@ const de_UploadFileCommand = async (output, context) => {
|
|
|
1831
1868
|
const contents = (0, smithy_client_1.map)({
|
|
1832
1869
|
$metadata: deserializeMetadata(output),
|
|
1833
1870
|
});
|
|
1834
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1871
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1835
1872
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1836
1873
|
'fileId': smithy_client_1.expectString,
|
|
1837
1874
|
'presignedUploadUrl': smithy_client_1.expectString,
|
|
@@ -1843,9 +1880,9 @@ exports.de_UploadFileCommand = de_UploadFileCommand;
|
|
|
1843
1880
|
const de_CommandError = async (output, context) => {
|
|
1844
1881
|
const parsedOutput = {
|
|
1845
1882
|
...output,
|
|
1846
|
-
body: await
|
|
1883
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context)
|
|
1847
1884
|
};
|
|
1848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1849
1886
|
switch (errorCode) {
|
|
1850
1887
|
case "ChannelNotFoundException":
|
|
1851
1888
|
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
@@ -2174,12 +2211,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2174
2211
|
cfId: output.headers["x-amz-cf-id"],
|
|
2175
2212
|
});
|
|
2176
2213
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2177
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2178
|
-
value !== null &&
|
|
2179
|
-
value !== "" &&
|
|
2180
|
-
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
2181
|
-
value.length != 0) &&
|
|
2182
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2183
2214
|
const _c = "category";
|
|
2184
2215
|
const _cI = "companyId";
|
|
2185
2216
|
const _co = "company";
|
|
@@ -2198,43 +2229,3 @@ const _uI = "userId";
|
|
|
2198
2229
|
const _xrl = "x-ratelimit-limit";
|
|
2199
2230
|
const _xrr = "x-ratelimit-remaining";
|
|
2200
2231
|
const _xrr_ = "x-ratelimit-reset";
|
|
2201
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
2202
|
-
if (encoded.length) {
|
|
2203
|
-
return JSON.parse(encoded);
|
|
2204
|
-
}
|
|
2205
|
-
return {};
|
|
2206
|
-
});
|
|
2207
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2208
|
-
const value = await parseBody(errorBody, context);
|
|
2209
|
-
value.message = value.message ?? value.Message;
|
|
2210
|
-
return value;
|
|
2211
|
-
};
|
|
2212
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2213
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2214
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2215
|
-
let cleanValue = rawValue;
|
|
2216
|
-
if (typeof cleanValue === "number") {
|
|
2217
|
-
cleanValue = cleanValue.toString();
|
|
2218
|
-
}
|
|
2219
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2220
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2221
|
-
}
|
|
2222
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2223
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2224
|
-
}
|
|
2225
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2226
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2227
|
-
}
|
|
2228
|
-
return cleanValue;
|
|
2229
|
-
};
|
|
2230
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2231
|
-
if (headerKey !== undefined) {
|
|
2232
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2233
|
-
}
|
|
2234
|
-
if (data.code !== undefined) {
|
|
2235
|
-
return sanitizeErrorCode(data.code);
|
|
2236
|
-
}
|
|
2237
|
-
if (data["__type"] !== undefined) {
|
|
2238
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2239
|
-
}
|
|
2240
|
-
};
|