@wildix/xbees-conversations-client 1.1.13 → 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/ConversationsClient.js +4 -5
- package/dist-cjs/models/models_0.js +48 -43
- package/dist-cjs/protocols/Aws_restJson1.js +101 -150
- 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/ConversationsClient.js +4 -5
- package/dist-es/models/models_0.js +43 -38
- package/dist-es/protocols/Aws_restJson1.js +5 -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/ConversationsClient.d.ts +1 -1
- 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 +12 -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/models/models_0.d.ts +301 -291
- 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 +38 -34
|
@@ -5,10 +5,11 @@ exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = export
|
|
|
5
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': [],
|
|
@@ -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);
|
|
@@ -499,7 +496,7 @@ const se_ListChannelMembersCommand = async (input, context) => {
|
|
|
499
496
|
};
|
|
500
497
|
exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
|
|
501
498
|
const se_ListChannelsCommand = async (input, context) => {
|
|
502
|
-
const b = (0,
|
|
499
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
503
500
|
const headers = {};
|
|
504
501
|
b.bp("/v2/conversations/channels");
|
|
505
502
|
const query = (0, smithy_client_1.map)({
|
|
@@ -517,7 +514,7 @@ const se_ListChannelsCommand = async (input, context) => {
|
|
|
517
514
|
};
|
|
518
515
|
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
519
516
|
const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
520
|
-
const b = (0,
|
|
517
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
521
518
|
const headers = {};
|
|
522
519
|
b.bp("/v2/conversations/inbox/tags/{tagId}");
|
|
523
520
|
b.p('tagId', () => input.tagId, '{tagId}', false);
|
|
@@ -533,7 +530,7 @@ const se_ListInboxTaggedChannelsCommand = async (input, context) => {
|
|
|
533
530
|
};
|
|
534
531
|
exports.se_ListInboxTaggedChannelsCommand = se_ListInboxTaggedChannelsCommand;
|
|
535
532
|
const se_ListInboxTagsCommand = async (input, context) => {
|
|
536
|
-
const b = (0,
|
|
533
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
537
534
|
const headers = {};
|
|
538
535
|
b.bp("/v2/conversations/inbox/tags");
|
|
539
536
|
const query = (0, smithy_client_1.map)({
|
|
@@ -548,7 +545,7 @@ const se_ListInboxTagsCommand = async (input, context) => {
|
|
|
548
545
|
};
|
|
549
546
|
exports.se_ListInboxTagsCommand = se_ListInboxTagsCommand;
|
|
550
547
|
const se_ListMessageReactionsCommand = async (input, context) => {
|
|
551
|
-
const b = (0,
|
|
548
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
552
549
|
const headers = {};
|
|
553
550
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions");
|
|
554
551
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -566,7 +563,7 @@ const se_ListMessageReactionsCommand = async (input, context) => {
|
|
|
566
563
|
};
|
|
567
564
|
exports.se_ListMessageReactionsCommand = se_ListMessageReactionsCommand;
|
|
568
565
|
const se_ListMessagesCommand = async (input, context) => {
|
|
569
|
-
const b = (0,
|
|
566
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
570
567
|
const headers = {};
|
|
571
568
|
b.bp("/v2/conversations/channels/{channelId}/messages");
|
|
572
569
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -583,7 +580,7 @@ const se_ListMessagesCommand = async (input, context) => {
|
|
|
583
580
|
};
|
|
584
581
|
exports.se_ListMessagesCommand = se_ListMessagesCommand;
|
|
585
582
|
const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
586
|
-
const b = (0,
|
|
583
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
587
584
|
const headers = {};
|
|
588
585
|
b.bp("/v2/conversations/channels/{channelId}/pinned_messages");
|
|
589
586
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -600,7 +597,7 @@ const se_ListPinnedMessagesCommand = async (input, context) => {
|
|
|
600
597
|
};
|
|
601
598
|
exports.se_ListPinnedMessagesCommand = se_ListPinnedMessagesCommand;
|
|
602
599
|
const se_MarkReadCommand = async (input, context) => {
|
|
603
|
-
const b = (0,
|
|
600
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
604
601
|
const headers = {};
|
|
605
602
|
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
606
603
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -616,7 +613,7 @@ const se_MarkReadCommand = async (input, context) => {
|
|
|
616
613
|
};
|
|
617
614
|
exports.se_MarkReadCommand = se_MarkReadCommand;
|
|
618
615
|
const se_MarkUnreadCommand = async (input, context) => {
|
|
619
|
-
const b = (0,
|
|
616
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
620
617
|
const headers = {
|
|
621
618
|
'content-type': 'application/json',
|
|
622
619
|
};
|
|
@@ -638,7 +635,7 @@ const se_MarkUnreadCommand = async (input, context) => {
|
|
|
638
635
|
};
|
|
639
636
|
exports.se_MarkUnreadCommand = se_MarkUnreadCommand;
|
|
640
637
|
const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
641
|
-
const b = (0,
|
|
638
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
642
639
|
const headers = {
|
|
643
640
|
'content-type': 'application/json',
|
|
644
641
|
};
|
|
@@ -661,7 +658,7 @@ const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
|
661
658
|
};
|
|
662
659
|
exports.se_PartialUpdateChannelCommand = se_PartialUpdateChannelCommand;
|
|
663
660
|
const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
664
|
-
const b = (0,
|
|
661
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
665
662
|
const headers = {
|
|
666
663
|
'content-type': 'application/json',
|
|
667
664
|
};
|
|
@@ -685,7 +682,7 @@ const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
|
685
682
|
};
|
|
686
683
|
exports.se_PartialUpdateMessageCommand = se_PartialUpdateMessageCommand;
|
|
687
684
|
const se_PinChannelCommand = async (input, context) => {
|
|
688
|
-
const b = (0,
|
|
685
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
689
686
|
const headers = {};
|
|
690
687
|
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
691
688
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -702,7 +699,7 @@ const se_PinChannelCommand = async (input, context) => {
|
|
|
702
699
|
};
|
|
703
700
|
exports.se_PinChannelCommand = se_PinChannelCommand;
|
|
704
701
|
const se_PinMessageCommand = async (input, context) => {
|
|
705
|
-
const b = (0,
|
|
702
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
706
703
|
const headers = {
|
|
707
704
|
'content-type': 'application/json',
|
|
708
705
|
};
|
|
@@ -726,7 +723,7 @@ const se_PinMessageCommand = async (input, context) => {
|
|
|
726
723
|
};
|
|
727
724
|
exports.se_PinMessageCommand = se_PinMessageCommand;
|
|
728
725
|
const se_QueryChannelsCommand = async (input, context) => {
|
|
729
|
-
const b = (0,
|
|
726
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
730
727
|
const headers = {
|
|
731
728
|
'content-type': 'application/json',
|
|
732
729
|
};
|
|
@@ -749,7 +746,7 @@ const se_QueryChannelsCommand = async (input, context) => {
|
|
|
749
746
|
};
|
|
750
747
|
exports.se_QueryChannelsCommand = se_QueryChannelsCommand;
|
|
751
748
|
const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
752
|
-
const b = (0,
|
|
749
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
753
750
|
const headers = {
|
|
754
751
|
'content-type': 'application/json',
|
|
755
752
|
};
|
|
@@ -765,7 +762,7 @@ const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
|
765
762
|
};
|
|
766
763
|
exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
|
|
767
764
|
const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
768
|
-
const b = (0,
|
|
765
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
769
766
|
const headers = {
|
|
770
767
|
'content-type': 'application/json',
|
|
771
768
|
};
|
|
@@ -783,7 +780,7 @@ const se_SendActionTriggerResultCommand = async (input, context) => {
|
|
|
783
780
|
};
|
|
784
781
|
exports.se_SendActionTriggerResultCommand = se_SendActionTriggerResultCommand;
|
|
785
782
|
const se_SendGiphyCommand = async (input, context) => {
|
|
786
|
-
const b = (0,
|
|
783
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
787
784
|
const headers = {
|
|
788
785
|
'content-type': 'application/json',
|
|
789
786
|
};
|
|
@@ -805,7 +802,7 @@ const se_SendGiphyCommand = async (input, context) => {
|
|
|
805
802
|
};
|
|
806
803
|
exports.se_SendGiphyCommand = se_SendGiphyCommand;
|
|
807
804
|
const se_SendMessageCommand = async (input, context) => {
|
|
808
|
-
const b = (0,
|
|
805
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
809
806
|
const headers = {
|
|
810
807
|
'content-type': 'application/json',
|
|
811
808
|
};
|
|
@@ -832,7 +829,7 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
832
829
|
};
|
|
833
830
|
exports.se_SendMessageCommand = se_SendMessageCommand;
|
|
834
831
|
const se_SendMessageReactionCommand = async (input, context) => {
|
|
835
|
-
const b = (0,
|
|
832
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
836
833
|
const headers = {
|
|
837
834
|
'content-type': 'application/json',
|
|
838
835
|
};
|
|
@@ -854,7 +851,7 @@ const se_SendMessageReactionCommand = async (input, context) => {
|
|
|
854
851
|
};
|
|
855
852
|
exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
|
|
856
853
|
const se_SendTypingStartCommand = async (input, context) => {
|
|
857
|
-
const b = (0,
|
|
854
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
858
855
|
const headers = {};
|
|
859
856
|
b.bp("/v2/conversations/channels/{channelId}/send_typing_start");
|
|
860
857
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -870,7 +867,7 @@ const se_SendTypingStartCommand = async (input, context) => {
|
|
|
870
867
|
};
|
|
871
868
|
exports.se_SendTypingStartCommand = se_SendTypingStartCommand;
|
|
872
869
|
const se_SendTypingStopCommand = async (input, context) => {
|
|
873
|
-
const b = (0,
|
|
870
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
874
871
|
const headers = {};
|
|
875
872
|
b.bp("/v2/conversations/channels/{channelId}/send_typing_stop");
|
|
876
873
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -886,7 +883,7 @@ const se_SendTypingStopCommand = async (input, context) => {
|
|
|
886
883
|
};
|
|
887
884
|
exports.se_SendTypingStopCommand = se_SendTypingStopCommand;
|
|
888
885
|
const se_ShowChannelCommand = async (input, context) => {
|
|
889
|
-
const b = (0,
|
|
886
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
890
887
|
const headers = {};
|
|
891
888
|
b.bp("/v2/conversations/channels/{channelId}/show");
|
|
892
889
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -902,7 +899,7 @@ const se_ShowChannelCommand = async (input, context) => {
|
|
|
902
899
|
};
|
|
903
900
|
exports.se_ShowChannelCommand = se_ShowChannelCommand;
|
|
904
901
|
const se_TagChannelCommand = async (input, context) => {
|
|
905
|
-
const b = (0,
|
|
902
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
906
903
|
const headers = {};
|
|
907
904
|
b.bp("/v2/conversations/channels/{channelId}/tags/{tagId}");
|
|
908
905
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -920,7 +917,7 @@ const se_TagChannelCommand = async (input, context) => {
|
|
|
920
917
|
};
|
|
921
918
|
exports.se_TagChannelCommand = se_TagChannelCommand;
|
|
922
919
|
const se_TriggerMessageActionCommand = async (input, context) => {
|
|
923
|
-
const b = (0,
|
|
920
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
924
921
|
const headers = {};
|
|
925
922
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
926
923
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -938,7 +935,7 @@ const se_TriggerMessageActionCommand = async (input, context) => {
|
|
|
938
935
|
};
|
|
939
936
|
exports.se_TriggerMessageActionCommand = se_TriggerMessageActionCommand;
|
|
940
937
|
const se_UnpinChannelCommand = async (input, context) => {
|
|
941
|
-
const b = (0,
|
|
938
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
942
939
|
const headers = {};
|
|
943
940
|
b.bp("/v2/conversations/channels/{channelId}/pin");
|
|
944
941
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -954,7 +951,7 @@ const se_UnpinChannelCommand = async (input, context) => {
|
|
|
954
951
|
};
|
|
955
952
|
exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
|
|
956
953
|
const se_UnpinMessageCommand = async (input, context) => {
|
|
957
|
-
const b = (0,
|
|
954
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
958
955
|
const headers = {};
|
|
959
956
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/pin");
|
|
960
957
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
@@ -972,7 +969,7 @@ const se_UnpinMessageCommand = async (input, context) => {
|
|
|
972
969
|
};
|
|
973
970
|
exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
|
|
974
971
|
const se_UntagChannelCommand = async (input, context) => {
|
|
975
|
-
const b = (0,
|
|
972
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
976
973
|
const headers = {
|
|
977
974
|
'content-type': 'application/json',
|
|
978
975
|
};
|
|
@@ -993,7 +990,7 @@ const se_UntagChannelCommand = async (input, context) => {
|
|
|
993
990
|
};
|
|
994
991
|
exports.se_UntagChannelCommand = se_UntagChannelCommand;
|
|
995
992
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
996
|
-
const b = (0,
|
|
993
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
997
994
|
const headers = {
|
|
998
995
|
'content-type': 'application/json',
|
|
999
996
|
};
|
|
@@ -1021,7 +1018,7 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
1021
1018
|
};
|
|
1022
1019
|
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
1023
1020
|
const se_UpdateInboxTagCommand = async (input, context) => {
|
|
1024
|
-
const b = (0,
|
|
1021
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1025
1022
|
const headers = {
|
|
1026
1023
|
'content-type': 'application/json',
|
|
1027
1024
|
};
|
|
@@ -1042,7 +1039,7 @@ const se_UpdateInboxTagCommand = async (input, context) => {
|
|
|
1042
1039
|
};
|
|
1043
1040
|
exports.se_UpdateInboxTagCommand = se_UpdateInboxTagCommand;
|
|
1044
1041
|
const se_UpdateMessageCommand = async (input, context) => {
|
|
1045
|
-
const b = (0,
|
|
1042
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1046
1043
|
const headers = {
|
|
1047
1044
|
'content-type': 'application/json',
|
|
1048
1045
|
};
|
|
@@ -1070,7 +1067,7 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1070
1067
|
};
|
|
1071
1068
|
exports.se_UpdateMessageCommand = se_UpdateMessageCommand;
|
|
1072
1069
|
const se_UploadFileCommand = async (input, context) => {
|
|
1073
|
-
const b = (0,
|
|
1070
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
1074
1071
|
const headers = {
|
|
1075
1072
|
'content-type': 'application/json',
|
|
1076
1073
|
};
|
|
@@ -1098,7 +1095,7 @@ const de_AddChannelMemberCommand = async (output, context) => {
|
|
|
1098
1095
|
const contents = (0, smithy_client_1.map)({
|
|
1099
1096
|
$metadata: deserializeMetadata(output),
|
|
1100
1097
|
});
|
|
1101
|
-
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");
|
|
1102
1099
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1103
1100
|
'member': smithy_client_1._json,
|
|
1104
1101
|
'user': smithy_client_1._json,
|
|
@@ -1114,7 +1111,7 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
1114
1111
|
const contents = (0, smithy_client_1.map)({
|
|
1115
1112
|
$metadata: deserializeMetadata(output),
|
|
1116
1113
|
});
|
|
1117
|
-
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");
|
|
1118
1115
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1119
1116
|
'members': smithy_client_1._json,
|
|
1120
1117
|
'users': smithy_client_1._json,
|
|
@@ -1130,7 +1127,7 @@ const de_AssignChannelCommand = async (output, context) => {
|
|
|
1130
1127
|
const contents = (0, smithy_client_1.map)({
|
|
1131
1128
|
$metadata: deserializeMetadata(output),
|
|
1132
1129
|
});
|
|
1133
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await
|
|
1130
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1134
1131
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1135
1132
|
'assignee': smithy_client_1._json,
|
|
1136
1133
|
'service': smithy_client_1._json,
|
|
@@ -1146,7 +1143,7 @@ const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
1146
1143
|
const contents = (0, smithy_client_1.map)({
|
|
1147
1144
|
$metadata: deserializeMetadata(output),
|
|
1148
1145
|
});
|
|
1149
|
-
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");
|
|
1150
1147
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1151
1148
|
'channel': smithy_client_1._json,
|
|
1152
1149
|
});
|
|
@@ -1161,7 +1158,7 @@ const de_CreateInboxTagCommand = async (output, context) => {
|
|
|
1161
1158
|
const contents = (0, smithy_client_1.map)({
|
|
1162
1159
|
$metadata: deserializeMetadata(output),
|
|
1163
1160
|
});
|
|
1164
|
-
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");
|
|
1165
1162
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1166
1163
|
'tag': smithy_client_1._json,
|
|
1167
1164
|
});
|
|
@@ -1176,7 +1173,7 @@ const de_CreateKiteChannelCommand = async (output, context) => {
|
|
|
1176
1173
|
const contents = (0, smithy_client_1.map)({
|
|
1177
1174
|
$metadata: deserializeMetadata(output),
|
|
1178
1175
|
});
|
|
1179
|
-
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");
|
|
1180
1177
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1181
1178
|
'channel': smithy_client_1._json,
|
|
1182
1179
|
});
|
|
@@ -1246,7 +1243,7 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
1246
1243
|
const contents = (0, smithy_client_1.map)({
|
|
1247
1244
|
$metadata: deserializeMetadata(output),
|
|
1248
1245
|
});
|
|
1249
|
-
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");
|
|
1250
1247
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1251
1248
|
'WebhookChatActionTriggeredEvent': smithy_client_1._json,
|
|
1252
1249
|
'WebhookChatChannelCreatedEvent': smithy_client_1._json,
|
|
@@ -1270,7 +1267,7 @@ const de_GetActionTriggerResultCommand = async (output, context) => {
|
|
|
1270
1267
|
const contents = (0, smithy_client_1.map)({
|
|
1271
1268
|
$metadata: deserializeMetadata(output),
|
|
1272
1269
|
});
|
|
1273
|
-
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");
|
|
1274
1271
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1275
1272
|
'result': smithy_client_1._json,
|
|
1276
1273
|
'status': smithy_client_1.expectString,
|
|
@@ -1286,7 +1283,7 @@ const de_GetChannelCommand = async (output, context) => {
|
|
|
1286
1283
|
const contents = (0, smithy_client_1.map)({
|
|
1287
1284
|
$metadata: deserializeMetadata(output),
|
|
1288
1285
|
});
|
|
1289
|
-
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");
|
|
1290
1287
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1291
1288
|
'channel': smithy_client_1._json,
|
|
1292
1289
|
});
|
|
@@ -1301,7 +1298,7 @@ const de_GetChannelMemberCommand = async (output, context) => {
|
|
|
1301
1298
|
const contents = (0, smithy_client_1.map)({
|
|
1302
1299
|
$metadata: deserializeMetadata(output),
|
|
1303
1300
|
});
|
|
1304
|
-
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");
|
|
1305
1302
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1306
1303
|
'member': smithy_client_1._json,
|
|
1307
1304
|
'user': smithy_client_1._json,
|
|
@@ -1317,7 +1314,7 @@ const de_GetDirectChannelIdCommand = async (output, context) => {
|
|
|
1317
1314
|
const contents = (0, smithy_client_1.map)({
|
|
1318
1315
|
$metadata: deserializeMetadata(output),
|
|
1319
1316
|
});
|
|
1320
|
-
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");
|
|
1321
1318
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1322
1319
|
'channelId': smithy_client_1.expectString,
|
|
1323
1320
|
});
|
|
@@ -1332,7 +1329,7 @@ const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
|
|
|
1332
1329
|
const contents = (0, smithy_client_1.map)({
|
|
1333
1330
|
$metadata: deserializeMetadata(output),
|
|
1334
1331
|
});
|
|
1335
|
-
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");
|
|
1336
1333
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1337
1334
|
'presignedDownloadUrl': smithy_client_1.expectString,
|
|
1338
1335
|
});
|
|
@@ -1347,7 +1344,7 @@ const de_GetInboxStateCommand = async (output, context) => {
|
|
|
1347
1344
|
const contents = (0, smithy_client_1.map)({
|
|
1348
1345
|
$metadata: deserializeMetadata(output),
|
|
1349
1346
|
});
|
|
1350
|
-
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");
|
|
1351
1348
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1352
1349
|
'channels': smithy_client_1._json,
|
|
1353
1350
|
'tags': smithy_client_1._json,
|
|
@@ -1363,7 +1360,7 @@ const de_GetMessageCommand = async (output, context) => {
|
|
|
1363
1360
|
const contents = (0, smithy_client_1.map)({
|
|
1364
1361
|
$metadata: deserializeMetadata(output),
|
|
1365
1362
|
});
|
|
1366
|
-
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");
|
|
1367
1364
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1368
1365
|
'message': smithy_client_1._json,
|
|
1369
1366
|
});
|
|
@@ -1378,7 +1375,7 @@ const de_GetOrCreateDirectChannelCommand = async (output, context) => {
|
|
|
1378
1375
|
const contents = (0, smithy_client_1.map)({
|
|
1379
1376
|
$metadata: deserializeMetadata(output),
|
|
1380
1377
|
});
|
|
1381
|
-
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");
|
|
1382
1379
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1383
1380
|
'channel': smithy_client_1._json,
|
|
1384
1381
|
});
|
|
@@ -1393,7 +1390,7 @@ const de_GetTokenCommand = async (output, context) => {
|
|
|
1393
1390
|
const contents = (0, smithy_client_1.map)({
|
|
1394
1391
|
$metadata: deserializeMetadata(output),
|
|
1395
1392
|
});
|
|
1396
|
-
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");
|
|
1397
1394
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1398
1395
|
'expires': smithy_client_1.expectInt32,
|
|
1399
1396
|
'token': smithy_client_1.expectString,
|
|
@@ -1409,7 +1406,7 @@ const de_GetUploadedFileInfoCommand = async (output, context) => {
|
|
|
1409
1406
|
const contents = (0, smithy_client_1.map)({
|
|
1410
1407
|
$metadata: deserializeMetadata(output),
|
|
1411
1408
|
});
|
|
1412
|
-
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");
|
|
1413
1410
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1414
1411
|
'file': smithy_client_1._json,
|
|
1415
1412
|
});
|
|
@@ -1435,7 +1432,7 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1435
1432
|
const contents = (0, smithy_client_1.map)({
|
|
1436
1433
|
$metadata: deserializeMetadata(output),
|
|
1437
1434
|
});
|
|
1438
|
-
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");
|
|
1439
1436
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1440
1437
|
'users': smithy_client_1._json,
|
|
1441
1438
|
});
|
|
@@ -1450,7 +1447,7 @@ const de_JoinChannelCommand = async (output, context) => {
|
|
|
1450
1447
|
const contents = (0, smithy_client_1.map)({
|
|
1451
1448
|
$metadata: deserializeMetadata(output),
|
|
1452
1449
|
});
|
|
1453
|
-
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");
|
|
1454
1451
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1455
1452
|
'channel': smithy_client_1._json,
|
|
1456
1453
|
});
|
|
@@ -1476,7 +1473,7 @@ const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1476
1473
|
const contents = (0, smithy_client_1.map)({
|
|
1477
1474
|
$metadata: deserializeMetadata(output),
|
|
1478
1475
|
});
|
|
1479
|
-
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");
|
|
1480
1477
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1481
1478
|
'members': smithy_client_1._json,
|
|
1482
1479
|
'users': smithy_client_1._json,
|
|
@@ -1492,7 +1489,7 @@ const de_ListChannelsCommand = async (output, context) => {
|
|
|
1492
1489
|
const contents = (0, smithy_client_1.map)({
|
|
1493
1490
|
$metadata: deserializeMetadata(output),
|
|
1494
1491
|
});
|
|
1495
|
-
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");
|
|
1496
1493
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1497
1494
|
'channels': smithy_client_1._json,
|
|
1498
1495
|
});
|
|
@@ -1507,7 +1504,7 @@ const de_ListInboxTaggedChannelsCommand = async (output, context) => {
|
|
|
1507
1504
|
const contents = (0, smithy_client_1.map)({
|
|
1508
1505
|
$metadata: deserializeMetadata(output),
|
|
1509
1506
|
});
|
|
1510
|
-
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");
|
|
1511
1508
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1512
1509
|
'channels': smithy_client_1._json,
|
|
1513
1510
|
});
|
|
@@ -1522,7 +1519,7 @@ const de_ListInboxTagsCommand = async (output, context) => {
|
|
|
1522
1519
|
const contents = (0, smithy_client_1.map)({
|
|
1523
1520
|
$metadata: deserializeMetadata(output),
|
|
1524
1521
|
});
|
|
1525
|
-
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");
|
|
1526
1523
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1527
1524
|
'tags': smithy_client_1._json,
|
|
1528
1525
|
});
|
|
@@ -1537,7 +1534,7 @@ const de_ListMessageReactionsCommand = async (output, context) => {
|
|
|
1537
1534
|
const contents = (0, smithy_client_1.map)({
|
|
1538
1535
|
$metadata: deserializeMetadata(output),
|
|
1539
1536
|
});
|
|
1540
|
-
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");
|
|
1541
1538
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1542
1539
|
'reactions': smithy_client_1._json,
|
|
1543
1540
|
});
|
|
@@ -1552,7 +1549,7 @@ const de_ListMessagesCommand = async (output, context) => {
|
|
|
1552
1549
|
const contents = (0, smithy_client_1.map)({
|
|
1553
1550
|
$metadata: deserializeMetadata(output),
|
|
1554
1551
|
});
|
|
1555
|
-
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");
|
|
1556
1553
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1557
1554
|
'messages': smithy_client_1._json,
|
|
1558
1555
|
});
|
|
@@ -1567,7 +1564,7 @@ const de_ListPinnedMessagesCommand = async (output, context) => {
|
|
|
1567
1564
|
const contents = (0, smithy_client_1.map)({
|
|
1568
1565
|
$metadata: deserializeMetadata(output),
|
|
1569
1566
|
});
|
|
1570
|
-
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");
|
|
1571
1568
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1572
1569
|
'messages': smithy_client_1._json,
|
|
1573
1570
|
});
|
|
@@ -1604,7 +1601,7 @@ const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
|
1604
1601
|
const contents = (0, smithy_client_1.map)({
|
|
1605
1602
|
$metadata: deserializeMetadata(output),
|
|
1606
1603
|
});
|
|
1607
|
-
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");
|
|
1608
1605
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1609
1606
|
'channel': smithy_client_1._json,
|
|
1610
1607
|
});
|
|
@@ -1619,7 +1616,7 @@ const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
|
1619
1616
|
const contents = (0, smithy_client_1.map)({
|
|
1620
1617
|
$metadata: deserializeMetadata(output),
|
|
1621
1618
|
});
|
|
1622
|
-
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");
|
|
1623
1620
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1624
1621
|
'message': smithy_client_1._json,
|
|
1625
1622
|
});
|
|
@@ -1656,7 +1653,7 @@ const de_QueryChannelsCommand = async (output, context) => {
|
|
|
1656
1653
|
const contents = (0, smithy_client_1.map)({
|
|
1657
1654
|
$metadata: deserializeMetadata(output),
|
|
1658
1655
|
});
|
|
1659
|
-
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");
|
|
1660
1657
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1661
1658
|
'channels': smithy_client_1._json,
|
|
1662
1659
|
});
|
|
@@ -1693,7 +1690,7 @@ const de_SendGiphyCommand = async (output, context) => {
|
|
|
1693
1690
|
const contents = (0, smithy_client_1.map)({
|
|
1694
1691
|
$metadata: deserializeMetadata(output),
|
|
1695
1692
|
});
|
|
1696
|
-
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");
|
|
1697
1694
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1698
1695
|
'message': smithy_client_1._json,
|
|
1699
1696
|
});
|
|
@@ -1708,7 +1705,7 @@ const de_SendMessageCommand = async (output, context) => {
|
|
|
1708
1705
|
const contents = (0, smithy_client_1.map)({
|
|
1709
1706
|
$metadata: deserializeMetadata(output),
|
|
1710
1707
|
});
|
|
1711
|
-
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");
|
|
1712
1709
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1713
1710
|
'message': smithy_client_1._json,
|
|
1714
1711
|
});
|
|
@@ -1778,7 +1775,7 @@ const de_TriggerMessageActionCommand = async (output, context) => {
|
|
|
1778
1775
|
const contents = (0, smithy_client_1.map)({
|
|
1779
1776
|
$metadata: deserializeMetadata(output),
|
|
1780
1777
|
});
|
|
1781
|
-
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");
|
|
1782
1779
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1783
1780
|
'triggerId': smithy_client_1.expectString,
|
|
1784
1781
|
});
|
|
@@ -1826,7 +1823,7 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1826
1823
|
const contents = (0, smithy_client_1.map)({
|
|
1827
1824
|
$metadata: deserializeMetadata(output),
|
|
1828
1825
|
});
|
|
1829
|
-
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");
|
|
1830
1827
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1831
1828
|
'channel': smithy_client_1._json,
|
|
1832
1829
|
});
|
|
@@ -1841,7 +1838,7 @@ const de_UpdateInboxTagCommand = async (output, context) => {
|
|
|
1841
1838
|
const contents = (0, smithy_client_1.map)({
|
|
1842
1839
|
$metadata: deserializeMetadata(output),
|
|
1843
1840
|
});
|
|
1844
|
-
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");
|
|
1845
1842
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1846
1843
|
'tag': smithy_client_1._json,
|
|
1847
1844
|
});
|
|
@@ -1856,7 +1853,7 @@ const de_UpdateMessageCommand = async (output, context) => {
|
|
|
1856
1853
|
const contents = (0, smithy_client_1.map)({
|
|
1857
1854
|
$metadata: deserializeMetadata(output),
|
|
1858
1855
|
});
|
|
1859
|
-
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");
|
|
1860
1857
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1861
1858
|
'message': smithy_client_1._json,
|
|
1862
1859
|
});
|
|
@@ -1871,7 +1868,7 @@ const de_UploadFileCommand = async (output, context) => {
|
|
|
1871
1868
|
const contents = (0, smithy_client_1.map)({
|
|
1872
1869
|
$metadata: deserializeMetadata(output),
|
|
1873
1870
|
});
|
|
1874
|
-
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");
|
|
1875
1872
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1876
1873
|
'fileId': smithy_client_1.expectString,
|
|
1877
1874
|
'presignedUploadUrl': smithy_client_1.expectString,
|
|
@@ -1883,9 +1880,9 @@ exports.de_UploadFileCommand = de_UploadFileCommand;
|
|
|
1883
1880
|
const de_CommandError = async (output, context) => {
|
|
1884
1881
|
const parsedOutput = {
|
|
1885
1882
|
...output,
|
|
1886
|
-
body: await
|
|
1883
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context)
|
|
1887
1884
|
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1889
1886
|
switch (errorCode) {
|
|
1890
1887
|
case "ChannelNotFoundException":
|
|
1891
1888
|
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
@@ -2214,12 +2211,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2214
2211
|
cfId: output.headers["x-amz-cf-id"],
|
|
2215
2212
|
});
|
|
2216
2213
|
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
2214
|
const _c = "category";
|
|
2224
2215
|
const _cI = "companyId";
|
|
2225
2216
|
const _co = "company";
|
|
@@ -2238,43 +2229,3 @@ const _uI = "userId";
|
|
|
2238
2229
|
const _xrl = "x-ratelimit-limit";
|
|
2239
2230
|
const _xrr = "x-ratelimit-remaining";
|
|
2240
2231
|
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
|
-
};
|