@wildix/xbees-conversations-client 1.1.13 → 1.1.15
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/ListChannelMembersReadStatusCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +48 -43
- package/dist-cjs/protocols/Aws_restJson1.js +131 -153
- 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/ListChannelMembersReadStatusCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +43 -38
- package/dist-es/protocols/Aws_restJson1.js +30 -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 +16 -1
- 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/ListChannelMembersReadStatusCommand.d.ts +103 -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 +331 -291
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +3 -2
- package/package.json +37 -33
|
@@ -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 = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = void 0;
|
|
3
|
+
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_ListChannelMembersReadStatusCommand = 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_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_ListChannelMembersReadStatusCommand = 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 = exports.se_TriggerMessageActionCommand = 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 = exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = 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': [],
|
|
@@ -54,7 +57,7 @@ const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
54
57
|
};
|
|
55
58
|
exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
|
|
56
59
|
const se_AssignChannelCommand = async (input, context) => {
|
|
57
|
-
const b = (0,
|
|
60
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
58
61
|
const headers = {
|
|
59
62
|
'content-type': 'application/json',
|
|
60
63
|
};
|
|
@@ -78,7 +81,7 @@ const se_AssignChannelCommand = async (input, context) => {
|
|
|
78
81
|
};
|
|
79
82
|
exports.se_AssignChannelCommand = se_AssignChannelCommand;
|
|
80
83
|
const se_CreateGroupChannelCommand = async (input, context) => {
|
|
81
|
-
const b = (0,
|
|
84
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
82
85
|
const headers = {
|
|
83
86
|
'content-type': 'application/json',
|
|
84
87
|
};
|
|
@@ -107,7 +110,7 @@ const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
107
110
|
};
|
|
108
111
|
exports.se_CreateGroupChannelCommand = se_CreateGroupChannelCommand;
|
|
109
112
|
const se_CreateInboxTagCommand = async (input, context) => {
|
|
110
|
-
const b = (0,
|
|
113
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
111
114
|
const headers = {
|
|
112
115
|
'content-type': 'application/json',
|
|
113
116
|
};
|
|
@@ -128,7 +131,7 @@ const se_CreateInboxTagCommand = async (input, context) => {
|
|
|
128
131
|
};
|
|
129
132
|
exports.se_CreateInboxTagCommand = se_CreateInboxTagCommand;
|
|
130
133
|
const se_CreateKiteChannelCommand = async (input, context) => {
|
|
131
|
-
const b = (0,
|
|
134
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
132
135
|
const headers = {
|
|
133
136
|
'content-type': 'application/json',
|
|
134
137
|
};
|
|
@@ -152,7 +155,7 @@ const se_CreateKiteChannelCommand = async (input, context) => {
|
|
|
152
155
|
};
|
|
153
156
|
exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
|
|
154
157
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
155
|
-
const b = (0,
|
|
158
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
156
159
|
const headers = {};
|
|
157
160
|
b.bp("/v2/conversations/channels/{channelId}");
|
|
158
161
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -164,7 +167,7 @@ const se_DeleteChannelCommand = async (input, context) => {
|
|
|
164
167
|
};
|
|
165
168
|
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
166
169
|
const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
167
|
-
const b = (0,
|
|
170
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
168
171
|
const headers = {};
|
|
169
172
|
b.bp("/v2/conversations/channels/{channelId}/members/{memberId}");
|
|
170
173
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -182,7 +185,7 @@ const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
|
182
185
|
};
|
|
183
186
|
exports.se_DeleteChannelMemberCommand = se_DeleteChannelMemberCommand;
|
|
184
187
|
const se_DeleteInboxTagCommand = async (input, context) => {
|
|
185
|
-
const b = (0,
|
|
188
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
186
189
|
const headers = {};
|
|
187
190
|
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
188
191
|
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
@@ -198,7 +201,7 @@ const se_DeleteInboxTagCommand = async (input, context) => {
|
|
|
198
201
|
};
|
|
199
202
|
exports.se_DeleteInboxTagCommand = se_DeleteInboxTagCommand;
|
|
200
203
|
const se_DeleteMessageCommand = async (input, context) => {
|
|
201
|
-
const b = (0,
|
|
204
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
202
205
|
const headers = {};
|
|
203
206
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
204
207
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -215,7 +218,7 @@ const se_DeleteMessageCommand = async (input, context) => {
|
|
|
215
218
|
};
|
|
216
219
|
exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
|
|
217
220
|
const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
218
|
-
const b = (0,
|
|
221
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
219
222
|
const headers = {};
|
|
220
223
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions/{reactionType}");
|
|
221
224
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -233,13 +236,10 @@ const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
|
233
236
|
};
|
|
234
237
|
exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
|
|
235
238
|
const se_DescribeEventCommand = async (input, context) => {
|
|
236
|
-
const b = (0,
|
|
237
|
-
const headers = {
|
|
238
|
-
'content-type': 'application/json',
|
|
239
|
-
};
|
|
239
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
240
|
+
const headers = {};
|
|
240
241
|
b.bp("/v2/conversations/describe");
|
|
241
242
|
let body;
|
|
242
|
-
body = "";
|
|
243
243
|
b.m("POST")
|
|
244
244
|
.h(headers)
|
|
245
245
|
.b(body);
|
|
@@ -247,7 +247,7 @@ const se_DescribeEventCommand = async (input, context) => {
|
|
|
247
247
|
};
|
|
248
248
|
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
249
249
|
const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
250
|
-
const b = (0,
|
|
250
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
251
251
|
const headers = {};
|
|
252
252
|
b.bp("/v2/conversations/triggers/{triggerId}/result");
|
|
253
253
|
b.p('triggerId', () => input.triggerId, '{triggerId}', false);
|
|
@@ -263,7 +263,7 @@ const se_GetActionTriggerResultCommand = async (input, context) => {
|
|
|
263
263
|
};
|
|
264
264
|
exports.se_GetActionTriggerResultCommand = se_GetActionTriggerResultCommand;
|
|
265
265
|
const se_GetChannelCommand = async (input, context) => {
|
|
266
|
-
const b = (0,
|
|
266
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
267
267
|
const headers = {};
|
|
268
268
|
b.bp("/v2/conversations/channels/{channelId}");
|
|
269
269
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -275,7 +275,7 @@ const se_GetChannelCommand = async (input, context) => {
|
|
|
275
275
|
};
|
|
276
276
|
exports.se_GetChannelCommand = se_GetChannelCommand;
|
|
277
277
|
const se_GetChannelMemberCommand = async (input, context) => {
|
|
278
|
-
const b = (0,
|
|
278
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
279
279
|
const headers = {};
|
|
280
280
|
b.bp("/v2/conversations/channels/{channelId}/members/{memberId}");
|
|
281
281
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -288,7 +288,7 @@ const se_GetChannelMemberCommand = async (input, context) => {
|
|
|
288
288
|
};
|
|
289
289
|
exports.se_GetChannelMemberCommand = se_GetChannelMemberCommand;
|
|
290
290
|
const se_GetDirectChannelIdCommand = async (input, context) => {
|
|
291
|
-
const b = (0,
|
|
291
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
292
292
|
const headers = {
|
|
293
293
|
'content-type': 'application/json',
|
|
294
294
|
};
|
|
@@ -309,7 +309,7 @@ const se_GetDirectChannelIdCommand = async (input, context) => {
|
|
|
309
309
|
};
|
|
310
310
|
exports.se_GetDirectChannelIdCommand = se_GetDirectChannelIdCommand;
|
|
311
311
|
const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
312
|
-
const b = (0,
|
|
312
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
313
313
|
const headers = {};
|
|
314
314
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/files/{fileId}/download_url");
|
|
315
315
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -328,7 +328,7 @@ const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
328
328
|
};
|
|
329
329
|
exports.se_GetFilePresignedDownloadUrlCommand = se_GetFilePresignedDownloadUrlCommand;
|
|
330
330
|
const se_GetInboxStateCommand = async (input, context) => {
|
|
331
|
-
const b = (0,
|
|
331
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
332
332
|
const headers = {};
|
|
333
333
|
b.bp("/v2/conversations/inbox/state");
|
|
334
334
|
const query = (0, smithy_client_1.map)({
|
|
@@ -343,7 +343,7 @@ const se_GetInboxStateCommand = async (input, context) => {
|
|
|
343
343
|
};
|
|
344
344
|
exports.se_GetInboxStateCommand = se_GetInboxStateCommand;
|
|
345
345
|
const se_GetMessageCommand = async (input, context) => {
|
|
346
|
-
const b = (0,
|
|
346
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
347
347
|
const headers = {};
|
|
348
348
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
349
349
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -356,7 +356,7 @@ const se_GetMessageCommand = async (input, context) => {
|
|
|
356
356
|
};
|
|
357
357
|
exports.se_GetMessageCommand = se_GetMessageCommand;
|
|
358
358
|
const se_GetOrCreateDirectChannelCommand = async (input, context) => {
|
|
359
|
-
const b = (0,
|
|
359
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
360
360
|
const headers = {
|
|
361
361
|
'content-type': 'application/json',
|
|
362
362
|
};
|
|
@@ -377,13 +377,10 @@ const se_GetOrCreateDirectChannelCommand = async (input, context) => {
|
|
|
377
377
|
};
|
|
378
378
|
exports.se_GetOrCreateDirectChannelCommand = se_GetOrCreateDirectChannelCommand;
|
|
379
379
|
const se_GetTokenCommand = async (input, context) => {
|
|
380
|
-
const b = (0,
|
|
381
|
-
const headers = {
|
|
382
|
-
'content-type': 'application/json',
|
|
383
|
-
};
|
|
380
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
381
|
+
const headers = {};
|
|
384
382
|
b.bp("/v2/conversations/token");
|
|
385
383
|
let body;
|
|
386
|
-
body = "";
|
|
387
384
|
b.m("GET")
|
|
388
385
|
.h(headers)
|
|
389
386
|
.b(body);
|
|
@@ -391,7 +388,7 @@ const se_GetTokenCommand = async (input, context) => {
|
|
|
391
388
|
};
|
|
392
389
|
exports.se_GetTokenCommand = se_GetTokenCommand;
|
|
393
390
|
const se_GetUploadedFileInfoCommand = async (input, context) => {
|
|
394
|
-
const b = (0,
|
|
391
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
395
392
|
const headers = {};
|
|
396
393
|
b.bp("/v2/conversations/channels/{channelId}/files/{fileId}");
|
|
397
394
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -408,7 +405,7 @@ const se_GetUploadedFileInfoCommand = async (input, context) => {
|
|
|
408
405
|
};
|
|
409
406
|
exports.se_GetUploadedFileInfoCommand = se_GetUploadedFileInfoCommand;
|
|
410
407
|
const se_HideChannelCommand = async (input, context) => {
|
|
411
|
-
const b = (0,
|
|
408
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
412
409
|
const headers = {};
|
|
413
410
|
b.bp("/v2/conversations/channels/{channelId}/hide");
|
|
414
411
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -424,7 +421,7 @@ const se_HideChannelCommand = async (input, context) => {
|
|
|
424
421
|
};
|
|
425
422
|
exports.se_HideChannelCommand = se_HideChannelCommand;
|
|
426
423
|
const se_InviteCommand = async (input, context) => {
|
|
427
|
-
const b = (0,
|
|
424
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
428
425
|
const headers = {
|
|
429
426
|
'content-type': 'application/json',
|
|
430
427
|
};
|
|
@@ -440,7 +437,7 @@ const se_InviteCommand = async (input, context) => {
|
|
|
440
437
|
};
|
|
441
438
|
exports.se_InviteCommand = se_InviteCommand;
|
|
442
439
|
const se_JoinChannelCommand = async (input, context) => {
|
|
443
|
-
const b = (0,
|
|
440
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
444
441
|
const headers = {
|
|
445
442
|
'content-type': 'application/json',
|
|
446
443
|
};
|
|
@@ -461,7 +458,7 @@ const se_JoinChannelCommand = async (input, context) => {
|
|
|
461
458
|
};
|
|
462
459
|
exports.se_JoinChannelCommand = se_JoinChannelCommand;
|
|
463
460
|
const se_LeaveChannelCommand = async (input, context) => {
|
|
464
|
-
const b = (0,
|
|
461
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
465
462
|
const headers = {
|
|
466
463
|
'content-type': 'application/json',
|
|
467
464
|
};
|
|
@@ -482,7 +479,7 @@ const se_LeaveChannelCommand = async (input, context) => {
|
|
|
482
479
|
};
|
|
483
480
|
exports.se_LeaveChannelCommand = se_LeaveChannelCommand;
|
|
484
481
|
const se_ListChannelMembersCommand = async (input, context) => {
|
|
485
|
-
const b = (0,
|
|
482
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
486
483
|
const headers = {};
|
|
487
484
|
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
488
485
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -498,8 +495,20 @@ const se_ListChannelMembersCommand = async (input, context) => {
|
|
|
498
495
|
return b.build();
|
|
499
496
|
};
|
|
500
497
|
exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
|
|
498
|
+
const se_ListChannelMembersReadStatusCommand = async (input, context) => {
|
|
499
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
500
|
+
const headers = {};
|
|
501
|
+
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
502
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
503
|
+
let body;
|
|
504
|
+
b.m("GET")
|
|
505
|
+
.h(headers)
|
|
506
|
+
.b(body);
|
|
507
|
+
return b.build();
|
|
508
|
+
};
|
|
509
|
+
exports.se_ListChannelMembersReadStatusCommand = se_ListChannelMembersReadStatusCommand;
|
|
501
510
|
const se_ListChannelsCommand = async (input, context) => {
|
|
502
|
-
const b = (0,
|
|
511
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
503
512
|
const headers = {};
|
|
504
513
|
b.bp("/v2/conversations/channels");
|
|
505
514
|
const query = (0, smithy_client_1.map)({
|
|
@@ -517,7 +526,7 @@ const se_ListChannelsCommand = async (input, context) => {
|
|
|
517
526
|
};
|
|
518
527
|
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
519
528
|
const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
520
|
-
const b = (0,
|
|
529
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
521
530
|
const headers = {};
|
|
522
531
|
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
523
532
|
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
@@ -533,7 +542,7 @@ const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
|
533
542
|
};
|
|
534
543
|
exports.se_ListInboxTaggedChannelsCommand = se_ListInboxTaggedChannelsCommand;
|
|
535
544
|
const se_ListInboxTagsCommand = async (input, context) => {
|
|
536
|
-
const b = (0,
|
|
545
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
537
546
|
const headers = {};
|
|
538
547
|
b.bp("/v2/conversations/inbox/tags");
|
|
539
548
|
const query = (0, smithy_client_1.map)({
|
|
@@ -548,7 +557,7 @@ const se_ListInboxTagsCommand = async (input, context) => {
|
|
|
548
557
|
};
|
|
549
558
|
exports.se_ListInboxTagsCommand = se_ListInboxTagsCommand;
|
|
550
559
|
const se_ListMessageReactionsCommand = async (input, context) => {
|
|
551
|
-
const b = (0,
|
|
560
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
552
561
|
const headers = {};
|
|
553
562
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions");
|
|
554
563
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -566,7 +575,7 @@ const se_ListMessageReactionsCommand = async (input, context) => {
|
|
|
566
575
|
};
|
|
567
576
|
exports.se_ListMessageReactionsCommand = se_ListMessageReactionsCommand;
|
|
568
577
|
const se_ListMessagesCommand = async (input, context) => {
|
|
569
|
-
const b = (0,
|
|
578
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
570
579
|
const headers = {};
|
|
571
580
|
b.bp("/v2/conversations/channels/{channelId}/messages");
|
|
572
581
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -583,7 +592,7 @@ const se_ListMessagesCommand = async (input, context) => {
|
|
|
583
592
|
};
|
|
584
593
|
exports.se_ListMessagesCommand = se_ListMessagesCommand;
|
|
585
594
|
const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
586
|
-
const b = (0,
|
|
595
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
587
596
|
const headers = {};
|
|
588
597
|
b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
|
|
589
598
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -600,7 +609,7 @@ const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
|
600
609
|
};
|
|
601
610
|
exports.se_ListPinnedMessagesCommand = se_ListPinnedMessagesCommand;
|
|
602
611
|
const se_MarkReadCommand = async (input, context) => {
|
|
603
|
-
const b = (0,
|
|
612
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
604
613
|
const headers = {};
|
|
605
614
|
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
606
615
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -616,7 +625,7 @@ const se_MarkReadCommand = async (input, context) => {
|
|
|
616
625
|
};
|
|
617
626
|
exports.se_MarkReadCommand = se_MarkReadCommand;
|
|
618
627
|
const se_MarkUnreadCommand = async (input, context) => {
|
|
619
|
-
const b = (0,
|
|
628
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
620
629
|
const headers = {
|
|
621
630
|
'content-type': 'application/json',
|
|
622
631
|
};
|
|
@@ -638,7 +647,7 @@ const se_MarkUnreadCommand = async (input, context) => {
|
|
|
638
647
|
};
|
|
639
648
|
exports.se_MarkUnreadCommand = se_MarkUnreadCommand;
|
|
640
649
|
const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
641
|
-
const b = (0,
|
|
650
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
642
651
|
const headers = {
|
|
643
652
|
'content-type': 'application/json',
|
|
644
653
|
};
|
|
@@ -661,7 +670,7 @@ const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
|
661
670
|
};
|
|
662
671
|
exports.se_PartialUpdateChannelCommand = se_PartialUpdateChannelCommand;
|
|
663
672
|
const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
664
|
-
const b = (0,
|
|
673
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
665
674
|
const headers = {
|
|
666
675
|
'content-type': 'application/json',
|
|
667
676
|
};
|
|
@@ -685,7 +694,7 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
685
694
|
};
|
|
686
695
|
exports.se_PartialUpdateMessageCommand = se_PartialUpdateMessageCommand;
|
|
687
696
|
const se_PinChannelCommand = async (input, context) => {
|
|
688
|
-
const b = (0,
|
|
697
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
689
698
|
const headers = {};
|
|
690
699
|
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
691
700
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -702,7 +711,7 @@ const se_PinChannelCommand = async (input, context) => {
|
|
|
702
711
|
};
|
|
703
712
|
exports.se_PinChannelCommand = se_PinChannelCommand;
|
|
704
713
|
const se_PinMessageCommand = async (input, context) => {
|
|
705
|
-
const b = (0,
|
|
714
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
706
715
|
const headers = {
|
|
707
716
|
'content-type': 'application/json',
|
|
708
717
|
};
|
|
@@ -726,7 +735,7 @@ const se_PinMessageCommand = async (input, context) => {
|
|
|
726
735
|
};
|
|
727
736
|
exports.se_PinMessageCommand = se_PinMessageCommand;
|
|
728
737
|
const se_QueryChannelsCommand = async (input, context) => {
|
|
729
|
-
const b = (0,
|
|
738
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
730
739
|
const headers = {
|
|
731
740
|
'content-type': 'application/json',
|
|
732
741
|
};
|
|
@@ -749,7 +758,7 @@ const se_QueryChannelsCommand = async (input, context) => {
|
|
|
749
758
|
};
|
|
750
759
|
exports.se_QueryChannelsCommand = se_QueryChannelsCommand;
|
|
751
760
|
const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
752
|
-
const b = (0,
|
|
761
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
753
762
|
const headers = {
|
|
754
763
|
'content-type': 'application/json',
|
|
755
764
|
};
|
|
@@ -765,7 +774,7 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
|
765
774
|
};
|
|
766
775
|
exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
|
|
767
776
|
const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
768
|
-
const b = (0,
|
|
777
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
769
778
|
const headers = {
|
|
770
779
|
'content-type': 'application/json',
|
|
771
780
|
};
|
|
@@ -783,7 +792,7 @@ const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
|
783
792
|
};
|
|
784
793
|
exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
|
|
785
794
|
const se_SendGiphyCommand = async (input, context) => {
|
|
786
|
-
const b = (0,
|
|
795
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
787
796
|
const headers = {
|
|
788
797
|
'content-type': 'application/json',
|
|
789
798
|
};
|
|
@@ -805,7 +814,7 @@ const se_SendGiphyCommand = async (input, context) => {
|
|
|
805
814
|
};
|
|
806
815
|
exports.se_SendGiphyCommand = se_SendGiphyCommand;
|
|
807
816
|
const se_SendMessageCommand = async (input, context) => {
|
|
808
|
-
const b = (0,
|
|
817
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
809
818
|
const headers = {
|
|
810
819
|
'content-type': 'application/json',
|
|
811
820
|
};
|
|
@@ -832,7 +841,7 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
832
841
|
};
|
|
833
842
|
exports.se_SendMessageCommand = se_SendMessageCommand;
|
|
834
843
|
const se_SendMessageReactionCommand = async (input, context) => {
|
|
835
|
-
const b = (0,
|
|
844
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
836
845
|
const headers = {
|
|
837
846
|
'content-type': 'application/json',
|
|
838
847
|
};
|
|
@@ -854,7 +863,7 @@ const se_SendMessageReactionCommand = async (input, context) => {
|
|
|
854
863
|
};
|
|
855
864
|
exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
|
|
856
865
|
const se_SendTypingStartCommand = async (input, context) => {
|
|
857
|
-
const b = (0,
|
|
866
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
858
867
|
const headers = {};
|
|
859
868
|
b.bp("/v2/conversations/channels/{channelId}/send_typing_start");
|
|
860
869
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -870,7 +879,7 @@ const se_SendTypingStartCommand = async (input, context) => {
|
|
|
870
879
|
};
|
|
871
880
|
exports.se_SendTypingStartCommand = se_SendTypingStartCommand;
|
|
872
881
|
const se_SendTypingStopCommand = async (input, context) => {
|
|
873
|
-
const b = (0,
|
|
882
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
874
883
|
const headers = {};
|
|
875
884
|
b.bp("/v2/conversations/channels/{channelId}/send_typing_stop");
|
|
876
885
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -886,7 +895,7 @@ const se_SendTypingStopCommand = async (input, context) => {
|
|
|
886
895
|
};
|
|
887
896
|
exports.se_SendTypingStopCommand = se_SendTypingStopCommand;
|
|
888
897
|
const se_ShowChannelCommand = async (input, context) => {
|
|
889
|
-
const b = (0,
|
|
898
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
890
899
|
const headers = {};
|
|
891
900
|
b.bp("/v2/conversations/channels/{channelId}/show");
|
|
892
901
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -902,7 +911,7 @@ const se_ShowChannelCommand = async (input, context) => {
|
|
|
902
911
|
};
|
|
903
912
|
exports.se_ShowChannelCommand = se_ShowChannelCommand;
|
|
904
913
|
const se_TagChannelCommand = async (input, context) => {
|
|
905
|
-
const b = (0,
|
|
914
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
906
915
|
const headers = {};
|
|
907
916
|
b.bp("/v2/conversations/channels/{channelId}/tags/{tagId}");
|
|
908
917
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -920,7 +929,7 @@ const se_TagChannelCommand = async (input, context) => {
|
|
|
920
929
|
};
|
|
921
930
|
exports.se_TagChannelCommand = se_TagChannelCommand;
|
|
922
931
|
const se_TriggerMessageActionCommand = async (input, context) => {
|
|
923
|
-
const b = (0,
|
|
932
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
924
933
|
const headers = {};
|
|
925
934
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
926
935
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -938,7 +947,7 @@ const se_TriggerMessageActionCommand = async (input, context) => {
|
|
|
938
947
|
};
|
|
939
948
|
exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
|
|
940
949
|
const se_UnpinChannelCommand = async (input, context) => {
|
|
941
|
-
const b = (0,
|
|
950
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
942
951
|
const headers = {};
|
|
943
952
|
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
944
953
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -954,7 +963,7 @@ const se_UnpinChannelCommand = async (input, context) => {
|
|
|
954
963
|
};
|
|
955
964
|
exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
|
|
956
965
|
const se_UnpinMessageCommand = async (input, context) => {
|
|
957
|
-
const b = (0,
|
|
966
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
958
967
|
const headers = {};
|
|
959
968
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
960
969
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -972,7 +981,7 @@ const se_UnpinMessageCommand = async (input, context) => {
|
|
|
972
981
|
};
|
|
973
982
|
exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
|
|
974
983
|
const se_UntagChannelCommand = async (input, context) => {
|
|
975
|
-
const b = (0,
|
|
984
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
976
985
|
const headers = {
|
|
977
986
|
'content-type': 'application/json',
|
|
978
987
|
};
|
|
@@ -993,7 +1002,7 @@ const se_UntagChannelCommand = async (input, context) => {
|
|
|
993
1002
|
};
|
|
994
1003
|
exports.se_UntagChannelCommand = se_UntagChannelCommand;
|
|
995
1004
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
996
|
-
const b = (0,
|
|
1005
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
997
1006
|
const headers = {
|
|
998
1007
|
'content-type': 'application/json',
|
|
999
1008
|
};
|
|
@@ -1021,7 +1030,7 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
1021
1030
|
};
|
|
1022
1031
|
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
1023
1032
|
const se_UpdateInboxTagCommand = async (input, context) => {
|
|
1024
|
-
const b = (0,
|
|
1033
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1025
1034
|
const headers = {
|
|
1026
1035
|
'content-type': 'application/json',
|
|
1027
1036
|
};
|
|
@@ -1042,7 +1051,7 @@ const se_UpdateInboxTagCommand = async (input, context) => {
|
|
|
1042
1051
|
};
|
|
1043
1052
|
exports.se_UpdateInboxTagCommand = se_UpdateInboxTagCommand;
|
|
1044
1053
|
const se_UpdateMessageCommand = async (input, context) => {
|
|
1045
|
-
const b = (0,
|
|
1054
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1046
1055
|
const headers = {
|
|
1047
1056
|
'content-type': 'application/json',
|
|
1048
1057
|
};
|
|
@@ -1070,7 +1079,7 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1070
1079
|
};
|
|
1071
1080
|
exports.se_UpdateMessageCommand = se_UpdateMessageCommand;
|
|
1072
1081
|
const se_UploadFileCommand = async (input, context) => {
|
|
1073
|
-
const b = (0,
|
|
1082
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1074
1083
|
const headers = {
|
|
1075
1084
|
'content-type': 'application/json',
|
|
1076
1085
|
};
|
|
@@ -1098,7 +1107,7 @@ const de_AddChannelMemberCommand = async (output, context) => {
|
|
|
1098
1107
|
const contents = (0, smithy_client_1.map)({
|
|
1099
1108
|
$metadata: deserializeMetadata(output),
|
|
1100
1109
|
});
|
|
1101
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1110
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1102
1111
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1103
1112
|
'member': smithy_client_1._json,
|
|
1104
1113
|
'user': smithy_client_1._json,
|
|
@@ -1114,7 +1123,7 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
1114
1123
|
const contents = (0, smithy_client_1.map)({
|
|
1115
1124
|
$metadata: deserializeMetadata(output),
|
|
1116
1125
|
});
|
|
1117
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1126
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1118
1127
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1119
1128
|
'members': smithy_client_1._json,
|
|
1120
1129
|
'users': smithy_client_1._json,
|
|
@@ -1130,7 +1139,7 @@ const de_AssignChannelCommand = async (output, context) => {
|
|
|
1130
1139
|
const contents = (0, smithy_client_1.map)({
|
|
1131
1140
|
$metadata: deserializeMetadata(output),
|
|
1132
1141
|
});
|
|
1133
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1142
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1134
1143
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1135
1144
|
'assignee': smithy_client_1._json,
|
|
1136
1145
|
'service': smithy_client_1._json,
|
|
@@ -1146,7 +1155,7 @@ const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
1146
1155
|
const contents = (0, smithy_client_1.map)({
|
|
1147
1156
|
$metadata: deserializeMetadata(output),
|
|
1148
1157
|
});
|
|
1149
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1158
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1150
1159
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1151
1160
|
'channel': smithy_client_1._json,
|
|
1152
1161
|
});
|
|
@@ -1161,7 +1170,7 @@ const de_CreateInboxTagCommand = async (output, context) => {
|
|
|
1161
1170
|
const contents = (0, smithy_client_1.map)({
|
|
1162
1171
|
$metadata: deserializeMetadata(output),
|
|
1163
1172
|
});
|
|
1164
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1173
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1165
1174
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1166
1175
|
'tag': smithy_client_1._json,
|
|
1167
1176
|
});
|
|
@@ -1176,7 +1185,7 @@ const de_CreateKiteChannelCommand = async (output, context) => {
|
|
|
1176
1185
|
const contents = (0, smithy_client_1.map)({
|
|
1177
1186
|
$metadata: deserializeMetadata(output),
|
|
1178
1187
|
});
|
|
1179
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1188
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1180
1189
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1181
1190
|
'channel': smithy_client_1._json,
|
|
1182
1191
|
});
|
|
@@ -1246,7 +1255,7 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
1246
1255
|
const contents = (0, smithy_client_1.map)({
|
|
1247
1256
|
$metadata: deserializeMetadata(output),
|
|
1248
1257
|
});
|
|
1249
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1258
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1250
1259
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1251
1260
|
'WebhookChatActionTriggeredEvent': smithy_client_1._json,
|
|
1252
1261
|
'WebhookChatChannelCreatedEvent': smithy_client_1._json,
|
|
@@ -1270,7 +1279,7 @@ const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
|
1270
1279
|
const contents = (0, smithy_client_1.map)({
|
|
1271
1280
|
$metadata: deserializeMetadata(output),
|
|
1272
1281
|
});
|
|
1273
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1282
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1274
1283
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1275
1284
|
'result': smithy_client_1._json,
|
|
1276
1285
|
'status': smithy_client_1.expectString,
|
|
@@ -1286,7 +1295,7 @@ const de_GetChannelCommand = async (output, context) => {
|
|
|
1286
1295
|
const contents = (0, smithy_client_1.map)({
|
|
1287
1296
|
$metadata: deserializeMetadata(output),
|
|
1288
1297
|
});
|
|
1289
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1298
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1290
1299
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1291
1300
|
'channel': smithy_client_1._json,
|
|
1292
1301
|
});
|
|
@@ -1301,7 +1310,7 @@ const de_GetChannelMemberCommand = async (output, context) => {
|
|
|
1301
1310
|
const contents = (0, smithy_client_1.map)({
|
|
1302
1311
|
$metadata: deserializeMetadata(output),
|
|
1303
1312
|
});
|
|
1304
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1313
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1305
1314
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1306
1315
|
'member': smithy_client_1._json,
|
|
1307
1316
|
'user': smithy_client_1._json,
|
|
@@ -1317,7 +1326,7 @@ const de_GetDirectChannelIdCommand = async (output, context) => {
|
|
|
1317
1326
|
const contents = (0, smithy_client_1.map)({
|
|
1318
1327
|
$metadata: deserializeMetadata(output),
|
|
1319
1328
|
});
|
|
1320
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1329
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1321
1330
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1322
1331
|
'channelId': smithy_client_1.expectString,
|
|
1323
1332
|
});
|
|
@@ -1332,7 +1341,7 @@ const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
|
|
|
1332
1341
|
const contents = (0, smithy_client_1.map)({
|
|
1333
1342
|
$metadata: deserializeMetadata(output),
|
|
1334
1343
|
});
|
|
1335
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1344
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1336
1345
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1337
1346
|
'presignedDownloadUrl': smithy_client_1.expectString,
|
|
1338
1347
|
});
|
|
@@ -1347,7 +1356,7 @@ const de_GetInboxStateCommand = async (output, context) => {
|
|
|
1347
1356
|
const contents = (0, smithy_client_1.map)({
|
|
1348
1357
|
$metadata: deserializeMetadata(output),
|
|
1349
1358
|
});
|
|
1350
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1359
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1351
1360
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1352
1361
|
'channels': smithy_client_1._json,
|
|
1353
1362
|
'tags': smithy_client_1._json,
|
|
@@ -1363,7 +1372,7 @@ const de_GetMessageCommand = async (output, context) => {
|
|
|
1363
1372
|
const contents = (0, smithy_client_1.map)({
|
|
1364
1373
|
$metadata: deserializeMetadata(output),
|
|
1365
1374
|
});
|
|
1366
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1375
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1367
1376
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1368
1377
|
'message': smithy_client_1._json,
|
|
1369
1378
|
});
|
|
@@ -1378,7 +1387,7 @@ const de_GetOrCreateDirectChannelCommand = async (output, context) => {
|
|
|
1378
1387
|
const contents = (0, smithy_client_1.map)({
|
|
1379
1388
|
$metadata: deserializeMetadata(output),
|
|
1380
1389
|
});
|
|
1381
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1390
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1382
1391
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1383
1392
|
'channel': smithy_client_1._json,
|
|
1384
1393
|
});
|
|
@@ -1393,7 +1402,7 @@ const de_GetTokenCommand = async (output, context) => {
|
|
|
1393
1402
|
const contents = (0, smithy_client_1.map)({
|
|
1394
1403
|
$metadata: deserializeMetadata(output),
|
|
1395
1404
|
});
|
|
1396
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1405
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1397
1406
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1398
1407
|
'expires': smithy_client_1.expectInt32,
|
|
1399
1408
|
'token': smithy_client_1.expectString,
|
|
@@ -1409,7 +1418,7 @@ const de_GetUploadedFileInfoCommand = async (output, context) => {
|
|
|
1409
1418
|
const contents = (0, smithy_client_1.map)({
|
|
1410
1419
|
$metadata: deserializeMetadata(output),
|
|
1411
1420
|
});
|
|
1412
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1421
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1413
1422
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1414
1423
|
'file': smithy_client_1._json,
|
|
1415
1424
|
});
|
|
@@ -1435,7 +1444,7 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1435
1444
|
const contents = (0, smithy_client_1.map)({
|
|
1436
1445
|
$metadata: deserializeMetadata(output),
|
|
1437
1446
|
});
|
|
1438
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1447
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1439
1448
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1440
1449
|
'users': smithy_client_1._json,
|
|
1441
1450
|
});
|
|
@@ -1450,7 +1459,7 @@ const de_JoinChannelCommand = async (output, context) => {
|
|
|
1450
1459
|
const contents = (0, smithy_client_1.map)({
|
|
1451
1460
|
$metadata: deserializeMetadata(output),
|
|
1452
1461
|
});
|
|
1453
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1462
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1454
1463
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1455
1464
|
'channel': smithy_client_1._json,
|
|
1456
1465
|
});
|
|
@@ -1476,7 +1485,7 @@ const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1476
1485
|
const contents = (0, smithy_client_1.map)({
|
|
1477
1486
|
$metadata: deserializeMetadata(output),
|
|
1478
1487
|
});
|
|
1479
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1488
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1480
1489
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1481
1490
|
'members': smithy_client_1._json,
|
|
1482
1491
|
'users': smithy_client_1._json,
|
|
@@ -1485,6 +1494,21 @@ const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1485
1494
|
return contents;
|
|
1486
1495
|
};
|
|
1487
1496
|
exports.de_ListChannelMembersCommand = de_ListChannelMembersCommand;
|
|
1497
|
+
const de_ListChannelMembersReadStatusCommand = async (output, context) => {
|
|
1498
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
+
return de_CommandError(output, context);
|
|
1500
|
+
}
|
|
1501
|
+
const contents = (0, smithy_client_1.map)({
|
|
1502
|
+
$metadata: deserializeMetadata(output),
|
|
1503
|
+
});
|
|
1504
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1505
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1506
|
+
'members': smithy_client_1._json,
|
|
1507
|
+
});
|
|
1508
|
+
Object.assign(contents, doc);
|
|
1509
|
+
return contents;
|
|
1510
|
+
};
|
|
1511
|
+
exports.de_ListChannelMembersReadStatusCommand = de_ListChannelMembersReadStatusCommand;
|
|
1488
1512
|
const de_ListChannelsCommand = async (output, context) => {
|
|
1489
1513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
1514
|
return de_CommandError(output, context);
|
|
@@ -1492,7 +1516,7 @@ const de_ListChannelsCommand = async (output, context) => {
|
|
|
1492
1516
|
const contents = (0, smithy_client_1.map)({
|
|
1493
1517
|
$metadata: deserializeMetadata(output),
|
|
1494
1518
|
});
|
|
1495
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1519
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1496
1520
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1497
1521
|
'channels': smithy_client_1._json,
|
|
1498
1522
|
});
|
|
@@ -1507,7 +1531,7 @@ const de_ListInboxTaggedChannelsCommand = async (output, context) => {
|
|
|
1507
1531
|
const contents = (0, smithy_client_1.map)({
|
|
1508
1532
|
$metadata: deserializeMetadata(output),
|
|
1509
1533
|
});
|
|
1510
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1534
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1511
1535
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1512
1536
|
'channels': smithy_client_1._json,
|
|
1513
1537
|
});
|
|
@@ -1522,7 +1546,7 @@ const de_ListInboxTagsCommand = async (output, context) => {
|
|
|
1522
1546
|
const contents = (0, smithy_client_1.map)({
|
|
1523
1547
|
$metadata: deserializeMetadata(output),
|
|
1524
1548
|
});
|
|
1525
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1549
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1526
1550
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1527
1551
|
'tags': smithy_client_1._json,
|
|
1528
1552
|
});
|
|
@@ -1537,7 +1561,7 @@ const de_ListMessageReactionsCommand = async (output, context) => {
|
|
|
1537
1561
|
const contents = (0, smithy_client_1.map)({
|
|
1538
1562
|
$metadata: deserializeMetadata(output),
|
|
1539
1563
|
});
|
|
1540
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1564
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1541
1565
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1542
1566
|
'reactions': smithy_client_1._json,
|
|
1543
1567
|
});
|
|
@@ -1552,7 +1576,7 @@ const de_ListMessagesCommand = async (output, context) => {
|
|
|
1552
1576
|
const contents = (0, smithy_client_1.map)({
|
|
1553
1577
|
$metadata: deserializeMetadata(output),
|
|
1554
1578
|
});
|
|
1555
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1579
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1556
1580
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1557
1581
|
'messages': smithy_client_1._json,
|
|
1558
1582
|
});
|
|
@@ -1567,7 +1591,7 @@ const de_ListPinnedMessagesCommand = async (output, context) => {
|
|
|
1567
1591
|
const contents = (0, smithy_client_1.map)({
|
|
1568
1592
|
$metadata: deserializeMetadata(output),
|
|
1569
1593
|
});
|
|
1570
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1594
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1571
1595
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1572
1596
|
'messages': smithy_client_1._json,
|
|
1573
1597
|
});
|
|
@@ -1604,7 +1628,7 @@ const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
|
1604
1628
|
const contents = (0, smithy_client_1.map)({
|
|
1605
1629
|
$metadata: deserializeMetadata(output),
|
|
1606
1630
|
});
|
|
1607
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1631
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1608
1632
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1609
1633
|
'channel': smithy_client_1._json,
|
|
1610
1634
|
});
|
|
@@ -1619,7 +1643,7 @@ const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
|
1619
1643
|
const contents = (0, smithy_client_1.map)({
|
|
1620
1644
|
$metadata: deserializeMetadata(output),
|
|
1621
1645
|
});
|
|
1622
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1646
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1623
1647
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1624
1648
|
'message': smithy_client_1._json,
|
|
1625
1649
|
});
|
|
@@ -1656,7 +1680,7 @@ const de_QueryChannelsCommand = async (output, context) => {
|
|
|
1656
1680
|
const contents = (0, smithy_client_1.map)({
|
|
1657
1681
|
$metadata: deserializeMetadata(output),
|
|
1658
1682
|
});
|
|
1659
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1683
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1660
1684
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1661
1685
|
'channels': smithy_client_1._json,
|
|
1662
1686
|
});
|
|
@@ -1693,7 +1717,7 @@ const de_SendGiphyCommand = async (output, context) => {
|
|
|
1693
1717
|
const contents = (0, smithy_client_1.map)({
|
|
1694
1718
|
$metadata: deserializeMetadata(output),
|
|
1695
1719
|
});
|
|
1696
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1720
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1697
1721
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1698
1722
|
'message': smithy_client_1._json,
|
|
1699
1723
|
});
|
|
@@ -1708,7 +1732,7 @@ const de_SendMessageCommand = async (output, context) => {
|
|
|
1708
1732
|
const contents = (0, smithy_client_1.map)({
|
|
1709
1733
|
$metadata: deserializeMetadata(output),
|
|
1710
1734
|
});
|
|
1711
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1735
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1712
1736
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1713
1737
|
'message': smithy_client_1._json,
|
|
1714
1738
|
});
|
|
@@ -1778,7 +1802,7 @@ const de_TriggerMessageActionCommand = async (output, context) => {
|
|
|
1778
1802
|
const contents = (0, smithy_client_1.map)({
|
|
1779
1803
|
$metadata: deserializeMetadata(output),
|
|
1780
1804
|
});
|
|
1781
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1805
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1782
1806
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1783
1807
|
'triggerId': smithy_client_1.expectString,
|
|
1784
1808
|
});
|
|
@@ -1826,7 +1850,7 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1826
1850
|
const contents = (0, smithy_client_1.map)({
|
|
1827
1851
|
$metadata: deserializeMetadata(output),
|
|
1828
1852
|
});
|
|
1829
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1853
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1830
1854
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1831
1855
|
'channel': smithy_client_1._json,
|
|
1832
1856
|
});
|
|
@@ -1841,7 +1865,7 @@ const de_UpdateInboxTagCommand = async (output, context) => {
|
|
|
1841
1865
|
const contents = (0, smithy_client_1.map)({
|
|
1842
1866
|
$metadata: deserializeMetadata(output),
|
|
1843
1867
|
});
|
|
1844
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1868
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1845
1869
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1846
1870
|
'tag': smithy_client_1._json,
|
|
1847
1871
|
});
|
|
@@ -1856,7 +1880,7 @@ const de_UpdateMessageCommand = async (output, context) => {
|
|
|
1856
1880
|
const contents = (0, smithy_client_1.map)({
|
|
1857
1881
|
$metadata: deserializeMetadata(output),
|
|
1858
1882
|
});
|
|
1859
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1883
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1860
1884
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1861
1885
|
'message': smithy_client_1._json,
|
|
1862
1886
|
});
|
|
@@ -1871,7 +1895,7 @@ const de_UploadFileCommand = async (output, context) => {
|
|
|
1871
1895
|
const contents = (0, smithy_client_1.map)({
|
|
1872
1896
|
$metadata: deserializeMetadata(output),
|
|
1873
1897
|
});
|
|
1874
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1898
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1875
1899
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1876
1900
|
'fileId': smithy_client_1.expectString,
|
|
1877
1901
|
'presignedUploadUrl': smithy_client_1.expectString,
|
|
@@ -1883,9 +1907,9 @@ exports.de_UploadFileCommand = de_UploadFileCommand;
|
|
|
1883
1907
|
const de_CommandError = async (output, context) => {
|
|
1884
1908
|
const parsedOutput = {
|
|
1885
1909
|
...output,
|
|
1886
|
-
body: await
|
|
1910
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context)
|
|
1887
1911
|
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1889
1913
|
switch (errorCode) {
|
|
1890
1914
|
case "ChannelNotFoundException":
|
|
1891
1915
|
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
@@ -2214,12 +2238,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2214
2238
|
cfId: output.headers["x-amz-cf-id"],
|
|
2215
2239
|
});
|
|
2216
2240
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2217
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2218
|
-
value !== null &&
|
|
2219
|
-
value !== "" &&
|
|
2220
|
-
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
2221
|
-
value.length != 0) &&
|
|
2222
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2223
2241
|
const _c = "category";
|
|
2224
2242
|
const _cI = "companyId";
|
|
2225
2243
|
const _co = "company";
|
|
@@ -2238,43 +2256,3 @@ const _uI = "userId";
|
|
|
2238
2256
|
const _xrl = "x-ratelimit-limit";
|
|
2239
2257
|
const _xrr = "x-ratelimit-remaining";
|
|
2240
2258
|
const _xrr_ = "x-ratelimit-reset";
|
|
2241
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
2242
|
-
if (encoded.length) {
|
|
2243
|
-
return JSON.parse(encoded);
|
|
2244
|
-
}
|
|
2245
|
-
return {};
|
|
2246
|
-
});
|
|
2247
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2248
|
-
const value = await parseBody(errorBody, context);
|
|
2249
|
-
value.message = value.message ?? value.Message;
|
|
2250
|
-
return value;
|
|
2251
|
-
};
|
|
2252
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2253
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2254
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2255
|
-
let cleanValue = rawValue;
|
|
2256
|
-
if (typeof cleanValue === "number") {
|
|
2257
|
-
cleanValue = cleanValue.toString();
|
|
2258
|
-
}
|
|
2259
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2260
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2261
|
-
}
|
|
2262
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2263
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2264
|
-
}
|
|
2265
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2266
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2267
|
-
}
|
|
2268
|
-
return cleanValue;
|
|
2269
|
-
};
|
|
2270
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2271
|
-
if (headerKey !== undefined) {
|
|
2272
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2273
|
-
}
|
|
2274
|
-
if (data.code !== undefined) {
|
|
2275
|
-
return sanitizeErrorCode(data.code);
|
|
2276
|
-
}
|
|
2277
|
-
if (data["__type"] !== undefined) {
|
|
2278
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2279
|
-
}
|
|
2280
|
-
};
|