@wildix/xbees-conversations-client 1.0.35 → 1.0.37
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 +7 -3
- package/dist-cjs/commands/AddChannelMemberCommand.js +12 -32
- package/dist-cjs/commands/AddChannelMembersCommand.js +12 -32
- package/dist-cjs/commands/CreateGroupChannelCommand.js +12 -32
- package/dist-cjs/commands/DeleteChannelCommand.js +12 -32
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +12 -32
- package/dist-cjs/commands/DeleteMessageCommand.js +12 -32
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +12 -32
- package/dist-cjs/commands/GetChannelCommand.js +12 -32
- package/dist-cjs/commands/GetChannelMemberCommand.js +12 -32
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +12 -32
- package/dist-cjs/commands/GetMessageCommand.js +12 -32
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +12 -32
- package/dist-cjs/commands/HideChannelCommand.js +12 -32
- package/dist-cjs/commands/InviteCommand.js +12 -32
- package/dist-cjs/commands/JoinChannelCommand.js +12 -32
- package/dist-cjs/commands/LeaveChannelCommand.js +12 -32
- package/dist-cjs/commands/ListChannelMembersCommand.js +12 -32
- package/dist-cjs/commands/ListChannelsCommand.js +12 -32
- package/dist-cjs/commands/ListMessageReactionsCommand.js +12 -32
- package/dist-cjs/commands/ListMessagesCommand.js +12 -32
- package/dist-cjs/commands/MarkReadCommand.js +12 -32
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +12 -32
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +12 -32
- package/dist-cjs/commands/ScheduleExternalFlagAdjustmentJobCommand.js +12 -32
- package/dist-cjs/commands/SendGiphyCommand.js +12 -32
- package/dist-cjs/commands/SendMessageCommand.js +12 -32
- package/dist-cjs/commands/SendMessageReactionCommand.js +12 -32
- package/dist-cjs/commands/SendTypingStartCommand.js +12 -32
- package/dist-cjs/commands/SendTypingStopCommand.js +12 -32
- package/dist-cjs/commands/ShowChannelCommand.js +12 -32
- package/dist-cjs/commands/UpdateChannelCommand.js +12 -32
- package/dist-cjs/commands/UpdateMessageCommand.js +12 -32
- package/dist-cjs/protocols/Aws_restJson1.js +346 -1270
- package/dist-cjs/runtimeConfig.browser.js +5 -1
- package/dist-cjs/runtimeConfig.js +5 -1
- package/dist-cjs/runtimeConfig.shared.js +13 -11
- package/dist-es/ConversationsClient.js +7 -3
- package/dist-es/commands/AddChannelMemberCommand.js +12 -32
- package/dist-es/commands/AddChannelMembersCommand.js +12 -32
- package/dist-es/commands/CreateGroupChannelCommand.js +12 -32
- package/dist-es/commands/DeleteChannelCommand.js +12 -32
- package/dist-es/commands/DeleteChannelMemberCommand.js +12 -32
- package/dist-es/commands/DeleteMessageCommand.js +12 -32
- package/dist-es/commands/DeleteMessageReactionCommand.js +12 -32
- package/dist-es/commands/GetChannelCommand.js +12 -32
- package/dist-es/commands/GetChannelMemberCommand.js +12 -32
- package/dist-es/commands/GetDirectChannelIdCommand.js +12 -32
- package/dist-es/commands/GetMessageCommand.js +12 -32
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +12 -32
- package/dist-es/commands/HideChannelCommand.js +12 -32
- package/dist-es/commands/InviteCommand.js +12 -32
- package/dist-es/commands/JoinChannelCommand.js +12 -32
- package/dist-es/commands/LeaveChannelCommand.js +12 -32
- package/dist-es/commands/ListChannelMembersCommand.js +12 -32
- package/dist-es/commands/ListChannelsCommand.js +12 -32
- package/dist-es/commands/ListMessageReactionsCommand.js +12 -32
- package/dist-es/commands/ListMessagesCommand.js +12 -32
- package/dist-es/commands/MarkReadCommand.js +12 -32
- package/dist-es/commands/PartialUpdateChannelCommand.js +12 -32
- package/dist-es/commands/PartialUpdateMessageCommand.js +12 -32
- package/dist-es/commands/ScheduleExternalFlagAdjustmentJobCommand.js +12 -32
- package/dist-es/commands/SendGiphyCommand.js +12 -32
- package/dist-es/commands/SendMessageCommand.js +12 -32
- package/dist-es/commands/SendMessageReactionCommand.js +12 -32
- package/dist-es/commands/SendTypingStartCommand.js +12 -32
- package/dist-es/commands/SendTypingStopCommand.js +12 -32
- package/dist-es/commands/ShowChannelCommand.js +12 -32
- package/dist-es/commands/UpdateChannelCommand.js +12 -32
- package/dist-es/commands/UpdateMessageCommand.js +12 -32
- package/dist-es/protocols/Aws_restJson1.js +347 -1271
- package/dist-es/runtimeConfig.browser.js +4 -1
- package/dist-es/runtimeConfig.js +4 -1
- package/dist-es/runtimeConfig.shared.js +13 -11
- package/dist-types/Conversations.d.ts +4 -0
- package/dist-types/ConversationsClient.d.ts +13 -7
- package/dist-types/commands/AddChannelMemberCommand.d.ts +8 -19
- package/dist-types/commands/AddChannelMembersCommand.d.ts +8 -19
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +7 -19
- package/dist-types/commands/DeleteChannelCommand.d.ts +7 -19
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +8 -19
- package/dist-types/commands/DeleteMessageCommand.d.ts +7 -19
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +7 -19
- package/dist-types/commands/GetChannelCommand.d.ts +7 -19
- package/dist-types/commands/GetChannelMemberCommand.d.ts +7 -19
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +9 -21
- package/dist-types/commands/GetMessageCommand.d.ts +7 -19
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +7 -19
- package/dist-types/commands/HideChannelCommand.d.ts +8 -84
- package/dist-types/commands/InviteCommand.d.ts +7 -19
- package/dist-types/commands/JoinChannelCommand.d.ts +7 -19
- package/dist-types/commands/LeaveChannelCommand.d.ts +7 -19
- package/dist-types/commands/ListChannelMembersCommand.d.ts +7 -19
- package/dist-types/commands/ListChannelsCommand.d.ts +7 -19
- package/dist-types/commands/ListMessageReactionsCommand.d.ts +7 -19
- package/dist-types/commands/ListMessagesCommand.d.ts +8 -20
- package/dist-types/commands/MarkReadCommand.d.ts +7 -19
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +8 -19
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +7 -19
- package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +8 -20
- package/dist-types/commands/SendGiphyCommand.d.ts +7 -19
- package/dist-types/commands/SendMessageCommand.d.ts +7 -19
- package/dist-types/commands/SendMessageReactionCommand.d.ts +7 -19
- package/dist-types/commands/SendTypingStartCommand.d.ts +7 -19
- package/dist-types/commands/SendTypingStopCommand.d.ts +7 -19
- package/dist-types/commands/ShowChannelCommand.d.ts +8 -84
- package/dist-types/commands/UpdateChannelCommand.d.ts +8 -19
- package/dist-types/commands/UpdateMessageCommand.d.ts +7 -19
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +69 -46
- package/dist-types/runtimeConfig.browser.d.ts +3 -4
- package/dist-types/runtimeConfig.d.ts +3 -4
- package/dist-types/runtimeConfig.native.d.ts +3 -4
- package/package.json +30 -28
|
@@ -4,64 +4,62 @@ exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.
|
|
|
4
4
|
exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = void 0;
|
|
5
5
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
|
-
const
|
|
7
|
+
const core_1 = require("@smithy/core");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
9
|
const se_AddChannelMemberCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
'content-type': 'application/json',
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
15
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
16
|
+
const query = (0, smithy_client_1.map)({
|
|
17
|
+
[_u]: [, input[_uI]],
|
|
18
|
+
});
|
|
16
19
|
let body;
|
|
17
20
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
21
|
'memberId': [],
|
|
19
22
|
'memberToInvite': _ => (0, smithy_client_1._json)(_),
|
|
20
23
|
'silent': [],
|
|
21
24
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body,
|
|
30
|
-
});
|
|
25
|
+
b.m("POST")
|
|
26
|
+
.h(headers)
|
|
27
|
+
.q(query)
|
|
28
|
+
.b(body);
|
|
29
|
+
return b.build();
|
|
31
30
|
};
|
|
32
31
|
exports.se_AddChannelMemberCommand = se_AddChannelMemberCommand;
|
|
33
32
|
const se_AddChannelMembersCommand = async (input, context) => {
|
|
34
|
-
const
|
|
33
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
35
34
|
const headers = {
|
|
36
35
|
'content-type': 'application/json',
|
|
37
36
|
};
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
38
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
39
|
+
const query = (0, smithy_client_1.map)({
|
|
40
|
+
[_u]: [, input[_uI]],
|
|
41
|
+
});
|
|
40
42
|
let body;
|
|
41
43
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
42
44
|
'members': _ => (0, smithy_client_1._json)(_),
|
|
43
45
|
'membersToInvite': _ => (0, smithy_client_1._json)(_),
|
|
44
46
|
'silent': [],
|
|
45
47
|
}));
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
headers,
|
|
52
|
-
path: resolvedPath,
|
|
53
|
-
body,
|
|
54
|
-
});
|
|
48
|
+
b.m("PUT")
|
|
49
|
+
.h(headers)
|
|
50
|
+
.q(query)
|
|
51
|
+
.b(body);
|
|
52
|
+
return b.build();
|
|
55
53
|
};
|
|
56
54
|
exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
|
|
57
55
|
const se_CreateGroupChannelCommand = async (input, context) => {
|
|
58
|
-
const
|
|
56
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
59
57
|
const headers = {
|
|
60
58
|
'content-type': 'application/json',
|
|
61
59
|
};
|
|
62
|
-
|
|
60
|
+
b.bp("/v2/conversations/group");
|
|
63
61
|
const query = (0, smithy_client_1.map)({
|
|
64
|
-
|
|
62
|
+
[_u]: [, input[_uI]],
|
|
65
63
|
});
|
|
66
64
|
let body;
|
|
67
65
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -75,519 +73,406 @@ const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
75
73
|
'pictureColor': [],
|
|
76
74
|
'subject': [],
|
|
77
75
|
}));
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
headers,
|
|
84
|
-
path: resolvedPath,
|
|
85
|
-
query,
|
|
86
|
-
body,
|
|
87
|
-
});
|
|
76
|
+
b.m("POST")
|
|
77
|
+
.h(headers)
|
|
78
|
+
.q(query)
|
|
79
|
+
.b(body);
|
|
80
|
+
return b.build();
|
|
88
81
|
};
|
|
89
82
|
exports.se_CreateGroupChannelCommand = se_CreateGroupChannelCommand;
|
|
90
83
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
91
|
-
const
|
|
84
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
92
85
|
const headers = {};
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
b.bp("/v2/conversations/channels/{channelId}");
|
|
87
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
95
88
|
let body;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
method: "DELETE",
|
|
101
|
-
headers,
|
|
102
|
-
path: resolvedPath,
|
|
103
|
-
body,
|
|
104
|
-
});
|
|
89
|
+
b.m("DELETE")
|
|
90
|
+
.h(headers)
|
|
91
|
+
.b(body);
|
|
92
|
+
return b.build();
|
|
105
93
|
};
|
|
106
94
|
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
107
95
|
const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
108
|
-
const
|
|
96
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
109
97
|
const headers = {};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
98
|
+
b.bp("/v2/conversations/channels/{channelId}/members/{memberId}");
|
|
99
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
100
|
+
b.p('memberId', () => input.memberId, '{memberId}', false);
|
|
113
101
|
const query = (0, smithy_client_1.map)({
|
|
114
|
-
|
|
102
|
+
[_u]: [, input[_uI]],
|
|
103
|
+
[_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
|
|
115
104
|
});
|
|
116
105
|
let body;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
headers,
|
|
123
|
-
path: resolvedPath,
|
|
124
|
-
query,
|
|
125
|
-
body,
|
|
126
|
-
});
|
|
106
|
+
b.m("DELETE")
|
|
107
|
+
.h(headers)
|
|
108
|
+
.q(query)
|
|
109
|
+
.b(body);
|
|
110
|
+
return b.build();
|
|
127
111
|
};
|
|
128
112
|
exports.se_DeleteChannelMemberCommand = se_DeleteChannelMemberCommand;
|
|
129
113
|
const se_DeleteMessageCommand = async (input, context) => {
|
|
130
|
-
const
|
|
114
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
131
115
|
const headers = {};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
116
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
117
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
118
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
135
119
|
const query = (0, smithy_client_1.map)({
|
|
136
|
-
|
|
120
|
+
[_u]: [, input[_uI]],
|
|
137
121
|
});
|
|
138
122
|
let body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
query,
|
|
147
|
-
body,
|
|
148
|
-
});
|
|
123
|
+
b.m("DELETE")
|
|
124
|
+
.h(headers)
|
|
125
|
+
.q(query)
|
|
126
|
+
.b(body);
|
|
127
|
+
return b.build();
|
|
149
128
|
};
|
|
150
129
|
exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
|
|
151
130
|
const se_DeleteMessageReactionCommand = async (input, context) => {
|
|
152
|
-
const
|
|
131
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
153
132
|
const headers = {};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
133
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions/{reactionType}");
|
|
134
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
135
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
136
|
+
b.p('reactionType', () => input.reactionType, '{reactionType}', false);
|
|
158
137
|
const query = (0, smithy_client_1.map)({
|
|
159
|
-
|
|
138
|
+
[_u]: [, input[_uI]],
|
|
160
139
|
});
|
|
161
140
|
let body;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
headers,
|
|
168
|
-
path: resolvedPath,
|
|
169
|
-
query,
|
|
170
|
-
body,
|
|
171
|
-
});
|
|
141
|
+
b.m("DELETE")
|
|
142
|
+
.h(headers)
|
|
143
|
+
.q(query)
|
|
144
|
+
.b(body);
|
|
145
|
+
return b.build();
|
|
172
146
|
};
|
|
173
147
|
exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
|
|
174
148
|
const se_GetChannelCommand = async (input, context) => {
|
|
175
|
-
const
|
|
149
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
176
150
|
const headers = {};
|
|
177
|
-
|
|
178
|
-
|
|
151
|
+
b.bp("/v2/conversations/channels/{channelId}");
|
|
152
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
179
153
|
let body;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
method: "GET",
|
|
185
|
-
headers,
|
|
186
|
-
path: resolvedPath,
|
|
187
|
-
body,
|
|
188
|
-
});
|
|
154
|
+
b.m("GET")
|
|
155
|
+
.h(headers)
|
|
156
|
+
.b(body);
|
|
157
|
+
return b.build();
|
|
189
158
|
};
|
|
190
159
|
exports.se_GetChannelCommand = se_GetChannelCommand;
|
|
191
160
|
const se_GetChannelMemberCommand = async (input, context) => {
|
|
192
|
-
const
|
|
161
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
162
|
const headers = {};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
163
|
+
b.bp("/v2/conversations/channels/{channelId}/members/{memberId}");
|
|
164
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
165
|
+
b.p('memberId', () => input.memberId, '{memberId}', false);
|
|
197
166
|
let body;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
method: "GET",
|
|
203
|
-
headers,
|
|
204
|
-
path: resolvedPath,
|
|
205
|
-
body,
|
|
206
|
-
});
|
|
167
|
+
b.m("GET")
|
|
168
|
+
.h(headers)
|
|
169
|
+
.b(body);
|
|
170
|
+
return b.build();
|
|
207
171
|
};
|
|
208
172
|
exports.se_GetChannelMemberCommand = se_GetChannelMemberCommand;
|
|
209
173
|
const se_GetDirectChannelIdCommand = async (input, context) => {
|
|
210
|
-
const
|
|
174
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
175
|
const headers = {
|
|
212
176
|
'content-type': 'application/json',
|
|
213
177
|
};
|
|
214
|
-
|
|
178
|
+
b.bp("/v2/conversations/direct/get_channel_id");
|
|
215
179
|
const query = (0, smithy_client_1.map)({
|
|
216
|
-
|
|
180
|
+
[_u]: [, input[_uI]],
|
|
217
181
|
});
|
|
218
182
|
let body;
|
|
219
183
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
220
|
-
'
|
|
221
|
-
'
|
|
184
|
+
'memberId': [],
|
|
185
|
+
'memberToInvite': _ => (0, smithy_client_1._json)(_),
|
|
222
186
|
}));
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
headers,
|
|
229
|
-
path: resolvedPath,
|
|
230
|
-
query,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
187
|
+
b.m("POST")
|
|
188
|
+
.h(headers)
|
|
189
|
+
.q(query)
|
|
190
|
+
.b(body);
|
|
191
|
+
return b.build();
|
|
233
192
|
};
|
|
234
193
|
exports.se_GetDirectChannelIdCommand = se_GetDirectChannelIdCommand;
|
|
235
194
|
const se_GetMessageCommand = async (input, context) => {
|
|
236
|
-
const
|
|
195
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
237
196
|
const headers = {};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
197
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
198
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
199
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
241
200
|
let body;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
method: "GET",
|
|
247
|
-
headers,
|
|
248
|
-
path: resolvedPath,
|
|
249
|
-
body,
|
|
250
|
-
});
|
|
201
|
+
b.m("GET")
|
|
202
|
+
.h(headers)
|
|
203
|
+
.b(body);
|
|
204
|
+
return b.build();
|
|
251
205
|
};
|
|
252
206
|
exports.se_GetMessageCommand = se_GetMessageCommand;
|
|
253
207
|
const se_GetOrCreateDirectChannelCommand = async (input, context) => {
|
|
254
|
-
const
|
|
208
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
255
209
|
const headers = {
|
|
256
210
|
'content-type': 'application/json',
|
|
257
211
|
};
|
|
258
|
-
|
|
212
|
+
b.bp("/v2/conversations/direct/get_or_create_channel");
|
|
259
213
|
const query = (0, smithy_client_1.map)({
|
|
260
|
-
|
|
214
|
+
[_u]: [, input[_uI]],
|
|
261
215
|
});
|
|
262
216
|
let body;
|
|
263
217
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
264
218
|
'memberId': [],
|
|
265
219
|
'memberToInvite': _ => (0, smithy_client_1._json)(_),
|
|
266
220
|
}));
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
headers,
|
|
273
|
-
path: resolvedPath,
|
|
274
|
-
query,
|
|
275
|
-
body,
|
|
276
|
-
});
|
|
221
|
+
b.m("POST")
|
|
222
|
+
.h(headers)
|
|
223
|
+
.q(query)
|
|
224
|
+
.b(body);
|
|
225
|
+
return b.build();
|
|
277
226
|
};
|
|
278
227
|
exports.se_GetOrCreateDirectChannelCommand = se_GetOrCreateDirectChannelCommand;
|
|
279
228
|
const se_HideChannelCommand = async (input, context) => {
|
|
280
|
-
const
|
|
229
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
281
230
|
const headers = {};
|
|
282
|
-
|
|
283
|
-
|
|
231
|
+
b.bp("/v2/conversations/channels/{channelId}/hide");
|
|
232
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
284
233
|
const query = (0, smithy_client_1.map)({
|
|
285
|
-
|
|
234
|
+
[_u]: [, input[_uI]],
|
|
286
235
|
});
|
|
287
236
|
let body;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
headers,
|
|
294
|
-
path: resolvedPath,
|
|
295
|
-
query,
|
|
296
|
-
body,
|
|
297
|
-
});
|
|
237
|
+
b.m("POST")
|
|
238
|
+
.h(headers)
|
|
239
|
+
.q(query)
|
|
240
|
+
.b(body);
|
|
241
|
+
return b.build();
|
|
298
242
|
};
|
|
299
243
|
exports.se_HideChannelCommand = se_HideChannelCommand;
|
|
300
244
|
const se_InviteCommand = async (input, context) => {
|
|
301
|
-
const
|
|
245
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
302
246
|
const headers = {
|
|
303
247
|
'content-type': 'application/json',
|
|
304
248
|
};
|
|
305
|
-
|
|
249
|
+
b.bp("/v2/conversations/invite");
|
|
306
250
|
let body;
|
|
307
251
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
308
252
|
'invitees': _ => (0, smithy_client_1._json)(_),
|
|
309
253
|
}));
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
method: "POST",
|
|
315
|
-
headers,
|
|
316
|
-
path: resolvedPath,
|
|
317
|
-
body,
|
|
318
|
-
});
|
|
254
|
+
b.m("POST")
|
|
255
|
+
.h(headers)
|
|
256
|
+
.b(body);
|
|
257
|
+
return b.build();
|
|
319
258
|
};
|
|
320
259
|
exports.se_InviteCommand = se_InviteCommand;
|
|
321
260
|
const se_JoinChannelCommand = async (input, context) => {
|
|
322
|
-
const
|
|
261
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
323
262
|
const headers = {
|
|
324
263
|
'content-type': 'application/json',
|
|
325
264
|
};
|
|
326
|
-
|
|
327
|
-
|
|
265
|
+
b.bp("/v2/conversations/channels/{channelId}/join");
|
|
266
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
328
267
|
const query = (0, smithy_client_1.map)({
|
|
329
|
-
|
|
268
|
+
[_u]: [, input[_uI]],
|
|
330
269
|
});
|
|
331
270
|
let body;
|
|
332
271
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
333
272
|
'silent': [],
|
|
334
273
|
}));
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
headers,
|
|
341
|
-
path: resolvedPath,
|
|
342
|
-
query,
|
|
343
|
-
body,
|
|
344
|
-
});
|
|
274
|
+
b.m("POST")
|
|
275
|
+
.h(headers)
|
|
276
|
+
.q(query)
|
|
277
|
+
.b(body);
|
|
278
|
+
return b.build();
|
|
345
279
|
};
|
|
346
280
|
exports.se_JoinChannelCommand = se_JoinChannelCommand;
|
|
347
281
|
const se_LeaveChannelCommand = async (input, context) => {
|
|
348
|
-
const
|
|
282
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
349
283
|
const headers = {
|
|
350
284
|
'content-type': 'application/json',
|
|
351
285
|
};
|
|
352
|
-
|
|
353
|
-
|
|
286
|
+
b.bp("/v2/conversations/channels/{channelId}/leave");
|
|
287
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
354
288
|
const query = (0, smithy_client_1.map)({
|
|
355
|
-
|
|
289
|
+
[_u]: [, input[_uI]],
|
|
356
290
|
});
|
|
357
291
|
let body;
|
|
358
292
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
359
293
|
'silent': [],
|
|
360
294
|
}));
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
headers,
|
|
367
|
-
path: resolvedPath,
|
|
368
|
-
query,
|
|
369
|
-
body,
|
|
370
|
-
});
|
|
295
|
+
b.m("POST")
|
|
296
|
+
.h(headers)
|
|
297
|
+
.q(query)
|
|
298
|
+
.b(body);
|
|
299
|
+
return b.build();
|
|
371
300
|
};
|
|
372
301
|
exports.se_LeaveChannelCommand = se_LeaveChannelCommand;
|
|
373
302
|
const se_ListChannelMembersCommand = async (input, context) => {
|
|
374
|
-
const
|
|
303
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
375
304
|
const headers = {};
|
|
376
|
-
|
|
377
|
-
|
|
305
|
+
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
306
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
378
307
|
const query = (0, smithy_client_1.map)({
|
|
379
|
-
|
|
380
|
-
|
|
308
|
+
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
309
|
+
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
381
310
|
});
|
|
382
311
|
let body;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
headers,
|
|
389
|
-
path: resolvedPath,
|
|
390
|
-
query,
|
|
391
|
-
body,
|
|
392
|
-
});
|
|
312
|
+
b.m("GET")
|
|
313
|
+
.h(headers)
|
|
314
|
+
.q(query)
|
|
315
|
+
.b(body);
|
|
316
|
+
return b.build();
|
|
393
317
|
};
|
|
394
318
|
exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
|
|
395
319
|
const se_ListChannelsCommand = async (input, context) => {
|
|
396
|
-
const
|
|
320
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
321
|
const headers = {};
|
|
398
|
-
|
|
322
|
+
b.bp("/v2/conversations/channels");
|
|
399
323
|
const query = (0, smithy_client_1.map)({
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
324
|
+
[_u]: [, input[_uI]],
|
|
325
|
+
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
326
|
+
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
403
327
|
});
|
|
404
328
|
let body;
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
headers,
|
|
411
|
-
path: resolvedPath,
|
|
412
|
-
query,
|
|
413
|
-
body,
|
|
414
|
-
});
|
|
329
|
+
b.m("GET")
|
|
330
|
+
.h(headers)
|
|
331
|
+
.q(query)
|
|
332
|
+
.b(body);
|
|
333
|
+
return b.build();
|
|
415
334
|
};
|
|
416
335
|
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
417
336
|
const se_ListMessageReactionsCommand = async (input, context) => {
|
|
418
|
-
const
|
|
337
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
419
338
|
const headers = {};
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
339
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions");
|
|
340
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
341
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
423
342
|
const query = (0, smithy_client_1.map)({
|
|
424
|
-
|
|
425
|
-
|
|
343
|
+
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
344
|
+
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
426
345
|
});
|
|
427
346
|
let body;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
headers,
|
|
434
|
-
path: resolvedPath,
|
|
435
|
-
query,
|
|
436
|
-
body,
|
|
437
|
-
});
|
|
347
|
+
b.m("GET")
|
|
348
|
+
.h(headers)
|
|
349
|
+
.q(query)
|
|
350
|
+
.b(body);
|
|
351
|
+
return b.build();
|
|
438
352
|
};
|
|
439
353
|
exports.se_ListMessageReactionsCommand = se_ListMessageReactionsCommand;
|
|
440
354
|
const se_ListMessagesCommand = async (input, context) => {
|
|
441
|
-
const
|
|
355
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
442
356
|
const headers = {};
|
|
443
|
-
|
|
444
|
-
|
|
357
|
+
b.bp("/v2/conversations/channels/{channelId}/messages");
|
|
358
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
445
359
|
const query = (0, smithy_client_1.map)({
|
|
446
|
-
|
|
447
|
-
|
|
360
|
+
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
361
|
+
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
448
362
|
});
|
|
449
363
|
let body;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
headers,
|
|
456
|
-
path: resolvedPath,
|
|
457
|
-
query,
|
|
458
|
-
body,
|
|
459
|
-
});
|
|
364
|
+
b.m("GET")
|
|
365
|
+
.h(headers)
|
|
366
|
+
.q(query)
|
|
367
|
+
.b(body);
|
|
368
|
+
return b.build();
|
|
460
369
|
};
|
|
461
370
|
exports.se_ListMessagesCommand = se_ListMessagesCommand;
|
|
462
371
|
const se_MarkReadCommand = async (input, context) => {
|
|
463
|
-
const
|
|
372
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
464
373
|
const headers = {};
|
|
465
|
-
|
|
466
|
-
|
|
374
|
+
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
375
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
467
376
|
const query = (0, smithy_client_1.map)({
|
|
468
|
-
|
|
377
|
+
[_u]: [, input[_uI]],
|
|
469
378
|
});
|
|
470
379
|
let body;
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
headers,
|
|
477
|
-
path: resolvedPath,
|
|
478
|
-
query,
|
|
479
|
-
body,
|
|
480
|
-
});
|
|
380
|
+
b.m("POST")
|
|
381
|
+
.h(headers)
|
|
382
|
+
.q(query)
|
|
383
|
+
.b(body);
|
|
384
|
+
return b.build();
|
|
481
385
|
};
|
|
482
386
|
exports.se_MarkReadCommand = se_MarkReadCommand;
|
|
483
387
|
const se_PartialUpdateChannelCommand = async (input, context) => {
|
|
484
|
-
const
|
|
388
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
389
|
const headers = {
|
|
486
390
|
'content-type': 'application/json',
|
|
487
391
|
};
|
|
488
|
-
|
|
489
|
-
|
|
392
|
+
b.bp("/v2/conversations/channels/{channelId}");
|
|
393
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
490
394
|
const query = (0, smithy_client_1.map)({
|
|
491
|
-
|
|
395
|
+
[_u]: [, input[_uI]],
|
|
492
396
|
});
|
|
493
397
|
let body;
|
|
494
398
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
495
399
|
'set': _ => (0, smithy_client_1._json)(_),
|
|
400
|
+
'silent': [],
|
|
496
401
|
'unset': _ => (0, smithy_client_1._json)(_),
|
|
497
402
|
}));
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
headers,
|
|
504
|
-
path: resolvedPath,
|
|
505
|
-
query,
|
|
506
|
-
body,
|
|
507
|
-
});
|
|
403
|
+
b.m("PATCH")
|
|
404
|
+
.h(headers)
|
|
405
|
+
.q(query)
|
|
406
|
+
.b(body);
|
|
407
|
+
return b.build();
|
|
508
408
|
};
|
|
509
409
|
exports.se_PartialUpdateChannelCommand = se_PartialUpdateChannelCommand;
|
|
510
410
|
const se_PartialUpdateMessageCommand = async (input, context) => {
|
|
511
|
-
const
|
|
411
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
512
412
|
const headers = {
|
|
513
413
|
'content-type': 'application/json',
|
|
514
414
|
};
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
415
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
416
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
417
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
518
418
|
let body;
|
|
519
419
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
520
420
|
'set': _ => (0, smithy_client_1._json)(_),
|
|
521
421
|
'unset': _ => (0, smithy_client_1._json)(_),
|
|
522
422
|
}));
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
method: "PATCH",
|
|
528
|
-
headers,
|
|
529
|
-
path: resolvedPath,
|
|
530
|
-
body,
|
|
531
|
-
});
|
|
423
|
+
b.m("PATCH")
|
|
424
|
+
.h(headers)
|
|
425
|
+
.b(body);
|
|
426
|
+
return b.build();
|
|
532
427
|
};
|
|
533
428
|
exports.se_PartialUpdateMessageCommand = se_PartialUpdateMessageCommand;
|
|
534
429
|
const se_ScheduleExternalFlagAdjustmentJobCommand = async (input, context) => {
|
|
535
|
-
const
|
|
430
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
536
431
|
const headers = {
|
|
537
432
|
'content-type': 'application/json',
|
|
538
433
|
};
|
|
539
|
-
|
|
434
|
+
b.bp("/v2/conversations/schedule_external_flag_adjustment_job");
|
|
540
435
|
let body;
|
|
541
436
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
542
437
|
'userId': [],
|
|
543
438
|
}));
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
method: "POST",
|
|
549
|
-
headers,
|
|
550
|
-
path: resolvedPath,
|
|
551
|
-
body,
|
|
552
|
-
});
|
|
439
|
+
b.m("POST")
|
|
440
|
+
.h(headers)
|
|
441
|
+
.b(body);
|
|
442
|
+
return b.build();
|
|
553
443
|
};
|
|
554
444
|
exports.se_ScheduleExternalFlagAdjustmentJobCommand = se_ScheduleExternalFlagAdjustmentJobCommand;
|
|
555
445
|
const se_SendGiphyCommand = async (input, context) => {
|
|
556
|
-
const
|
|
446
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
557
447
|
const headers = {
|
|
558
448
|
'content-type': 'application/json',
|
|
559
449
|
};
|
|
560
|
-
|
|
561
|
-
|
|
450
|
+
b.bp("/v2/conversations/channels/{channelId}/send_giphy");
|
|
451
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
562
452
|
const query = (0, smithy_client_1.map)({
|
|
563
|
-
|
|
453
|
+
[_u]: [, input[_uI]],
|
|
564
454
|
});
|
|
565
455
|
let body;
|
|
566
456
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
567
457
|
'giphy': _ => (0, smithy_client_1._json)(_),
|
|
568
458
|
'messageId': [],
|
|
569
459
|
}));
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
headers,
|
|
576
|
-
path: resolvedPath,
|
|
577
|
-
query,
|
|
578
|
-
body,
|
|
579
|
-
});
|
|
460
|
+
b.m("POST")
|
|
461
|
+
.h(headers)
|
|
462
|
+
.q(query)
|
|
463
|
+
.b(body);
|
|
464
|
+
return b.build();
|
|
580
465
|
};
|
|
581
466
|
exports.se_SendGiphyCommand = se_SendGiphyCommand;
|
|
582
467
|
const se_SendMessageCommand = async (input, context) => {
|
|
583
|
-
const
|
|
468
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
584
469
|
const headers = {
|
|
585
470
|
'content-type': 'application/json',
|
|
586
471
|
};
|
|
587
|
-
|
|
588
|
-
|
|
472
|
+
b.bp("/v2/conversations/channels/{channelId}/messages");
|
|
473
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
589
474
|
const query = (0, smithy_client_1.map)({
|
|
590
|
-
|
|
475
|
+
[_u]: [, input[_uI]],
|
|
591
476
|
});
|
|
592
477
|
let body;
|
|
593
478
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -598,117 +483,92 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
598
483
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
599
484
|
'text': [],
|
|
600
485
|
}));
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
headers,
|
|
607
|
-
path: resolvedPath,
|
|
608
|
-
query,
|
|
609
|
-
body,
|
|
610
|
-
});
|
|
486
|
+
b.m("POST")
|
|
487
|
+
.h(headers)
|
|
488
|
+
.q(query)
|
|
489
|
+
.b(body);
|
|
490
|
+
return b.build();
|
|
611
491
|
};
|
|
612
492
|
exports.se_SendMessageCommand = se_SendMessageCommand;
|
|
613
493
|
const se_SendMessageReactionCommand = async (input, context) => {
|
|
614
|
-
const
|
|
494
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
615
495
|
const headers = {
|
|
616
496
|
'content-type': 'application/json',
|
|
617
497
|
};
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
498
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/reactions");
|
|
499
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
500
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
621
501
|
const query = (0, smithy_client_1.map)({
|
|
622
|
-
|
|
502
|
+
[_u]: [, input[_uI]],
|
|
623
503
|
});
|
|
624
504
|
let body;
|
|
625
505
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
626
506
|
'reactionType': [],
|
|
627
507
|
}));
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
headers,
|
|
634
|
-
path: resolvedPath,
|
|
635
|
-
query,
|
|
636
|
-
body,
|
|
637
|
-
});
|
|
508
|
+
b.m("POST")
|
|
509
|
+
.h(headers)
|
|
510
|
+
.q(query)
|
|
511
|
+
.b(body);
|
|
512
|
+
return b.build();
|
|
638
513
|
};
|
|
639
514
|
exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
|
|
640
515
|
const se_SendTypingStartCommand = async (input, context) => {
|
|
641
|
-
const
|
|
516
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
642
517
|
const headers = {};
|
|
643
|
-
|
|
644
|
-
|
|
518
|
+
b.bp("/v2/conversations/channels/{channelId}/send_typing_start");
|
|
519
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
645
520
|
const query = (0, smithy_client_1.map)({
|
|
646
|
-
|
|
521
|
+
[_u]: [, input[_uI]],
|
|
647
522
|
});
|
|
648
523
|
let body;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
headers,
|
|
655
|
-
path: resolvedPath,
|
|
656
|
-
query,
|
|
657
|
-
body,
|
|
658
|
-
});
|
|
524
|
+
b.m("POST")
|
|
525
|
+
.h(headers)
|
|
526
|
+
.q(query)
|
|
527
|
+
.b(body);
|
|
528
|
+
return b.build();
|
|
659
529
|
};
|
|
660
530
|
exports.se_SendTypingStartCommand = se_SendTypingStartCommand;
|
|
661
531
|
const se_SendTypingStopCommand = async (input, context) => {
|
|
662
|
-
const
|
|
532
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
663
533
|
const headers = {};
|
|
664
|
-
|
|
665
|
-
|
|
534
|
+
b.bp("/v2/conversations/channels/{channelId}/send_typing_stop");
|
|
535
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
666
536
|
const query = (0, smithy_client_1.map)({
|
|
667
|
-
|
|
537
|
+
[_u]: [, input[_uI]],
|
|
668
538
|
});
|
|
669
539
|
let body;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
headers,
|
|
676
|
-
path: resolvedPath,
|
|
677
|
-
query,
|
|
678
|
-
body,
|
|
679
|
-
});
|
|
540
|
+
b.m("POST")
|
|
541
|
+
.h(headers)
|
|
542
|
+
.q(query)
|
|
543
|
+
.b(body);
|
|
544
|
+
return b.build();
|
|
680
545
|
};
|
|
681
546
|
exports.se_SendTypingStopCommand = se_SendTypingStopCommand;
|
|
682
547
|
const se_ShowChannelCommand = async (input, context) => {
|
|
683
|
-
const
|
|
548
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
684
549
|
const headers = {};
|
|
685
|
-
|
|
686
|
-
|
|
550
|
+
b.bp("/v2/conversations/channels/{channelId}/show");
|
|
551
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
687
552
|
const query = (0, smithy_client_1.map)({
|
|
688
|
-
|
|
553
|
+
[_u]: [, input[_uI]],
|
|
689
554
|
});
|
|
690
555
|
let body;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
headers,
|
|
697
|
-
path: resolvedPath,
|
|
698
|
-
query,
|
|
699
|
-
body,
|
|
700
|
-
});
|
|
556
|
+
b.m("POST")
|
|
557
|
+
.h(headers)
|
|
558
|
+
.q(query)
|
|
559
|
+
.b(body);
|
|
560
|
+
return b.build();
|
|
701
561
|
};
|
|
702
562
|
exports.se_ShowChannelCommand = se_ShowChannelCommand;
|
|
703
563
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
704
|
-
const
|
|
564
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
705
565
|
const headers = {
|
|
706
566
|
'content-type': 'application/json',
|
|
707
567
|
};
|
|
708
|
-
|
|
709
|
-
|
|
568
|
+
b.bp("/v2/conversations/channels/{channelId}");
|
|
569
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
710
570
|
const query = (0, smithy_client_1.map)({
|
|
711
|
-
|
|
571
|
+
[_u]: [, input[_uI]],
|
|
712
572
|
});
|
|
713
573
|
let body;
|
|
714
574
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -717,28 +577,24 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
717
577
|
'description': [],
|
|
718
578
|
'picture': [],
|
|
719
579
|
'pictureColor': [],
|
|
580
|
+
'silent': [],
|
|
720
581
|
'subject': [],
|
|
721
582
|
}));
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
headers,
|
|
728
|
-
path: resolvedPath,
|
|
729
|
-
query,
|
|
730
|
-
body,
|
|
731
|
-
});
|
|
583
|
+
b.m("PUT")
|
|
584
|
+
.h(headers)
|
|
585
|
+
.q(query)
|
|
586
|
+
.b(body);
|
|
587
|
+
return b.build();
|
|
732
588
|
};
|
|
733
589
|
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
734
590
|
const se_UpdateMessageCommand = async (input, context) => {
|
|
735
|
-
const
|
|
591
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
736
592
|
const headers = {
|
|
737
593
|
'content-type': 'application/json',
|
|
738
594
|
};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
595
|
+
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
|
|
596
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
597
|
+
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
742
598
|
let body;
|
|
743
599
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
744
600
|
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
@@ -747,20 +603,15 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
747
603
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
748
604
|
'text': [],
|
|
749
605
|
}));
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
method: "PUT",
|
|
755
|
-
headers,
|
|
756
|
-
path: resolvedPath,
|
|
757
|
-
body,
|
|
758
|
-
});
|
|
606
|
+
b.m("PUT")
|
|
607
|
+
.h(headers)
|
|
608
|
+
.b(body);
|
|
609
|
+
return b.build();
|
|
759
610
|
};
|
|
760
611
|
exports.se_UpdateMessageCommand = se_UpdateMessageCommand;
|
|
761
612
|
const de_AddChannelMemberCommand = async (output, context) => {
|
|
762
613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
763
|
-
return
|
|
614
|
+
return de_CommandError(output, context);
|
|
764
615
|
}
|
|
765
616
|
const contents = (0, smithy_client_1.map)({
|
|
766
617
|
$metadata: deserializeMetadata(output),
|
|
@@ -774,37 +625,9 @@ const de_AddChannelMemberCommand = async (output, context) => {
|
|
|
774
625
|
return contents;
|
|
775
626
|
};
|
|
776
627
|
exports.de_AddChannelMemberCommand = de_AddChannelMemberCommand;
|
|
777
|
-
const de_AddChannelMemberCommandError = async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context)
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "ChannelNotFoundException":
|
|
785
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
786
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ForbiddenException":
|
|
788
|
-
case "smithy.framework#ForbiddenException":
|
|
789
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
790
|
-
case "MemberAlreadyExistException":
|
|
791
|
-
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
792
|
-
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ValidationException":
|
|
794
|
-
case "smithy.framework#ValidationException":
|
|
795
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
796
|
-
default:
|
|
797
|
-
const parsedBody = parsedOutput.body;
|
|
798
|
-
return throwDefaultError({
|
|
799
|
-
output,
|
|
800
|
-
parsedBody,
|
|
801
|
-
errorCode
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
};
|
|
805
628
|
const de_AddChannelMembersCommand = async (output, context) => {
|
|
806
629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
807
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
808
631
|
}
|
|
809
632
|
const contents = (0, smithy_client_1.map)({
|
|
810
633
|
$metadata: deserializeMetadata(output),
|
|
@@ -818,37 +641,9 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
818
641
|
return contents;
|
|
819
642
|
};
|
|
820
643
|
exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
|
|
821
|
-
const de_AddChannelMembersCommandError = async (output, context) => {
|
|
822
|
-
const parsedOutput = {
|
|
823
|
-
...output,
|
|
824
|
-
body: await parseErrorBody(output.body, context)
|
|
825
|
-
};
|
|
826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
-
switch (errorCode) {
|
|
828
|
-
case "ChannelNotFoundException":
|
|
829
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
830
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ForbiddenException":
|
|
832
|
-
case "smithy.framework#ForbiddenException":
|
|
833
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
834
|
-
case "MemberAlreadyExistException":
|
|
835
|
-
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
836
|
-
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ValidationException":
|
|
838
|
-
case "smithy.framework#ValidationException":
|
|
839
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
644
|
const de_CreateGroupChannelCommand = async (output, context) => {
|
|
850
645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
|
-
return
|
|
646
|
+
return de_CommandError(output, context);
|
|
852
647
|
}
|
|
853
648
|
const contents = (0, smithy_client_1.map)({
|
|
854
649
|
$metadata: deserializeMetadata(output),
|
|
@@ -861,34 +656,9 @@ const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
861
656
|
return contents;
|
|
862
657
|
};
|
|
863
658
|
exports.de_CreateGroupChannelCommand = de_CreateGroupChannelCommand;
|
|
864
|
-
const de_CreateGroupChannelCommandError = async (output, context) => {
|
|
865
|
-
const parsedOutput = {
|
|
866
|
-
...output,
|
|
867
|
-
body: await parseErrorBody(output.body, context)
|
|
868
|
-
};
|
|
869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
-
switch (errorCode) {
|
|
871
|
-
case "ChannelAlreadyExistException":
|
|
872
|
-
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
873
|
-
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ForbiddenException":
|
|
875
|
-
case "smithy.framework#ForbiddenException":
|
|
876
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ValidationException":
|
|
878
|
-
case "smithy.framework#ValidationException":
|
|
879
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
return throwDefaultError({
|
|
883
|
-
output,
|
|
884
|
-
parsedBody,
|
|
885
|
-
errorCode
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
659
|
const de_DeleteChannelCommand = async (output, context) => {
|
|
890
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return
|
|
661
|
+
return de_CommandError(output, context);
|
|
892
662
|
}
|
|
893
663
|
const contents = (0, smithy_client_1.map)({
|
|
894
664
|
$metadata: deserializeMetadata(output),
|
|
@@ -897,34 +667,9 @@ const de_DeleteChannelCommand = async (output, context) => {
|
|
|
897
667
|
return contents;
|
|
898
668
|
};
|
|
899
669
|
exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
|
|
900
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context)
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "ChannelNotFoundException":
|
|
908
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
909
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ForbiddenException":
|
|
911
|
-
case "smithy.framework#ForbiddenException":
|
|
912
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ValidationException":
|
|
914
|
-
case "smithy.framework#ValidationException":
|
|
915
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
-
default:
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
670
|
const de_DeleteChannelMemberCommand = async (output, context) => {
|
|
926
671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
-
return
|
|
672
|
+
return de_CommandError(output, context);
|
|
928
673
|
}
|
|
929
674
|
const contents = (0, smithy_client_1.map)({
|
|
930
675
|
$metadata: deserializeMetadata(output),
|
|
@@ -933,37 +678,9 @@ const de_DeleteChannelMemberCommand = async (output, context) => {
|
|
|
933
678
|
return contents;
|
|
934
679
|
};
|
|
935
680
|
exports.de_DeleteChannelMemberCommand = de_DeleteChannelMemberCommand;
|
|
936
|
-
const de_DeleteChannelMemberCommandError = async (output, context) => {
|
|
937
|
-
const parsedOutput = {
|
|
938
|
-
...output,
|
|
939
|
-
body: await parseErrorBody(output.body, context)
|
|
940
|
-
};
|
|
941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
-
switch (errorCode) {
|
|
943
|
-
case "ChannelNotFoundException":
|
|
944
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
945
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ForbiddenException":
|
|
947
|
-
case "smithy.framework#ForbiddenException":
|
|
948
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
949
|
-
case "MemberNotFoundException":
|
|
950
|
-
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
951
|
-
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ValidationException":
|
|
953
|
-
case "smithy.framework#ValidationException":
|
|
954
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
955
|
-
default:
|
|
956
|
-
const parsedBody = parsedOutput.body;
|
|
957
|
-
return throwDefaultError({
|
|
958
|
-
output,
|
|
959
|
-
parsedBody,
|
|
960
|
-
errorCode
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
681
|
const de_DeleteMessageCommand = async (output, context) => {
|
|
965
682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
966
|
-
return
|
|
683
|
+
return de_CommandError(output, context);
|
|
967
684
|
}
|
|
968
685
|
const contents = (0, smithy_client_1.map)({
|
|
969
686
|
$metadata: deserializeMetadata(output),
|
|
@@ -972,37 +689,9 @@ const de_DeleteMessageCommand = async (output, context) => {
|
|
|
972
689
|
return contents;
|
|
973
690
|
};
|
|
974
691
|
exports.de_DeleteMessageCommand = de_DeleteMessageCommand;
|
|
975
|
-
const de_DeleteMessageCommandError = async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context)
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "ChannelNotFoundException":
|
|
983
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
984
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
985
|
-
case "ForbiddenException":
|
|
986
|
-
case "smithy.framework#ForbiddenException":
|
|
987
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
988
|
-
case "MessageNotFoundException":
|
|
989
|
-
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
990
|
-
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ValidationException":
|
|
992
|
-
case "smithy.framework#ValidationException":
|
|
993
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
994
|
-
default:
|
|
995
|
-
const parsedBody = parsedOutput.body;
|
|
996
|
-
return throwDefaultError({
|
|
997
|
-
output,
|
|
998
|
-
parsedBody,
|
|
999
|
-
errorCode
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
};
|
|
1003
692
|
const de_DeleteMessageReactionCommand = async (output, context) => {
|
|
1004
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
1006
695
|
}
|
|
1007
696
|
const contents = (0, smithy_client_1.map)({
|
|
1008
697
|
$metadata: deserializeMetadata(output),
|
|
@@ -1011,37 +700,9 @@ const de_DeleteMessageReactionCommand = async (output, context) => {
|
|
|
1011
700
|
return contents;
|
|
1012
701
|
};
|
|
1013
702
|
exports.de_DeleteMessageReactionCommand = de_DeleteMessageReactionCommand;
|
|
1014
|
-
const de_DeleteMessageReactionCommandError = async (output, context) => {
|
|
1015
|
-
const parsedOutput = {
|
|
1016
|
-
...output,
|
|
1017
|
-
body: await parseErrorBody(output.body, context)
|
|
1018
|
-
};
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "ChannelNotFoundException":
|
|
1022
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1023
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ForbiddenException":
|
|
1025
|
-
case "smithy.framework#ForbiddenException":
|
|
1026
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "MessageNotFoundException":
|
|
1028
|
-
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1029
|
-
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "smithy.framework#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
703
|
const de_GetChannelCommand = async (output, context) => {
|
|
1043
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
705
|
+
return de_CommandError(output, context);
|
|
1045
706
|
}
|
|
1046
707
|
const contents = (0, smithy_client_1.map)({
|
|
1047
708
|
$metadata: deserializeMetadata(output),
|
|
@@ -1054,34 +715,9 @@ const de_GetChannelCommand = async (output, context) => {
|
|
|
1054
715
|
return contents;
|
|
1055
716
|
};
|
|
1056
717
|
exports.de_GetChannelCommand = de_GetChannelCommand;
|
|
1057
|
-
const de_GetChannelCommandError = async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context)
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "ChannelNotFoundException":
|
|
1065
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1066
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ForbiddenException":
|
|
1068
|
-
case "smithy.framework#ForbiddenException":
|
|
1069
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ValidationException":
|
|
1071
|
-
case "smithy.framework#ValidationException":
|
|
1072
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
};
|
|
1082
718
|
const de_GetChannelMemberCommand = async (output, context) => {
|
|
1083
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
1085
721
|
}
|
|
1086
722
|
const contents = (0, smithy_client_1.map)({
|
|
1087
723
|
$metadata: deserializeMetadata(output),
|
|
@@ -1095,37 +731,9 @@ const de_GetChannelMemberCommand = async (output, context) => {
|
|
|
1095
731
|
return contents;
|
|
1096
732
|
};
|
|
1097
733
|
exports.de_GetChannelMemberCommand = de_GetChannelMemberCommand;
|
|
1098
|
-
const de_GetChannelMemberCommandError = async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context)
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "ChannelNotFoundException":
|
|
1106
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1107
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ForbiddenException":
|
|
1109
|
-
case "smithy.framework#ForbiddenException":
|
|
1110
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "MemberNotFoundException":
|
|
1112
|
-
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1113
|
-
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "smithy.framework#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
734
|
const de_GetDirectChannelIdCommand = async (output, context) => {
|
|
1127
735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
1129
737
|
}
|
|
1130
738
|
const contents = (0, smithy_client_1.map)({
|
|
1131
739
|
$metadata: deserializeMetadata(output),
|
|
@@ -1138,31 +746,9 @@ const de_GetDirectChannelIdCommand = async (output, context) => {
|
|
|
1138
746
|
return contents;
|
|
1139
747
|
};
|
|
1140
748
|
exports.de_GetDirectChannelIdCommand = de_GetDirectChannelIdCommand;
|
|
1141
|
-
const de_GetDirectChannelIdCommandError = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context)
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "ForbiddenException":
|
|
1149
|
-
case "smithy.framework#ForbiddenException":
|
|
1150
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ValidationException":
|
|
1152
|
-
case "smithy.framework#ValidationException":
|
|
1153
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1154
|
-
default:
|
|
1155
|
-
const parsedBody = parsedOutput.body;
|
|
1156
|
-
return throwDefaultError({
|
|
1157
|
-
output,
|
|
1158
|
-
parsedBody,
|
|
1159
|
-
errorCode
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
};
|
|
1163
749
|
const de_GetMessageCommand = async (output, context) => {
|
|
1164
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1165
|
-
return
|
|
751
|
+
return de_CommandError(output, context);
|
|
1166
752
|
}
|
|
1167
753
|
const contents = (0, smithy_client_1.map)({
|
|
1168
754
|
$metadata: deserializeMetadata(output),
|
|
@@ -1175,34 +761,9 @@ const de_GetMessageCommand = async (output, context) => {
|
|
|
1175
761
|
return contents;
|
|
1176
762
|
};
|
|
1177
763
|
exports.de_GetMessageCommand = de_GetMessageCommand;
|
|
1178
|
-
const de_GetMessageCommandError = async (output, context) => {
|
|
1179
|
-
const parsedOutput = {
|
|
1180
|
-
...output,
|
|
1181
|
-
body: await parseErrorBody(output.body, context)
|
|
1182
|
-
};
|
|
1183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
-
switch (errorCode) {
|
|
1185
|
-
case "ChannelNotFoundException":
|
|
1186
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1187
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ForbiddenException":
|
|
1189
|
-
case "smithy.framework#ForbiddenException":
|
|
1190
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ValidationException":
|
|
1192
|
-
case "smithy.framework#ValidationException":
|
|
1193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
};
|
|
1203
764
|
const de_GetOrCreateDirectChannelCommand = async (output, context) => {
|
|
1204
765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
766
|
+
return de_CommandError(output, context);
|
|
1206
767
|
}
|
|
1207
768
|
const contents = (0, smithy_client_1.map)({
|
|
1208
769
|
$metadata: deserializeMetadata(output),
|
|
@@ -1215,71 +776,20 @@ const de_GetOrCreateDirectChannelCommand = async (output, context) => {
|
|
|
1215
776
|
return contents;
|
|
1216
777
|
};
|
|
1217
778
|
exports.de_GetOrCreateDirectChannelCommand = de_GetOrCreateDirectChannelCommand;
|
|
1218
|
-
const de_GetOrCreateDirectChannelCommandError = async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context)
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "ForbiddenException":
|
|
1226
|
-
case "smithy.framework#ForbiddenException":
|
|
1227
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "ValidationException":
|
|
1229
|
-
case "smithy.framework#ValidationException":
|
|
1230
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1231
|
-
default:
|
|
1232
|
-
const parsedBody = parsedOutput.body;
|
|
1233
|
-
return throwDefaultError({
|
|
1234
|
-
output,
|
|
1235
|
-
parsedBody,
|
|
1236
|
-
errorCode
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
779
|
const de_HideChannelCommand = async (output, context) => {
|
|
1241
780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1242
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1243
782
|
}
|
|
1244
783
|
const contents = (0, smithy_client_1.map)({
|
|
1245
784
|
$metadata: deserializeMetadata(output),
|
|
1246
785
|
});
|
|
1247
|
-
|
|
1248
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1249
|
-
'channel': smithy_client_1._json,
|
|
1250
|
-
});
|
|
1251
|
-
Object.assign(contents, doc);
|
|
786
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1252
787
|
return contents;
|
|
1253
788
|
};
|
|
1254
789
|
exports.de_HideChannelCommand = de_HideChannelCommand;
|
|
1255
|
-
const de_HideChannelCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context)
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "ChannelNotFoundException":
|
|
1263
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1264
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ForbiddenException":
|
|
1266
|
-
case "smithy.framework#ForbiddenException":
|
|
1267
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ValidationException":
|
|
1269
|
-
case "smithy.framework#ValidationException":
|
|
1270
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
790
|
const de_InviteCommand = async (output, context) => {
|
|
1281
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
792
|
+
return de_CommandError(output, context);
|
|
1283
793
|
}
|
|
1284
794
|
const contents = (0, smithy_client_1.map)({
|
|
1285
795
|
$metadata: deserializeMetadata(output),
|
|
@@ -1292,31 +802,9 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1292
802
|
return contents;
|
|
1293
803
|
};
|
|
1294
804
|
exports.de_InviteCommand = de_InviteCommand;
|
|
1295
|
-
const de_InviteCommandError = async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context)
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "ForbiddenException":
|
|
1303
|
-
case "smithy.framework#ForbiddenException":
|
|
1304
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ValidationException":
|
|
1306
|
-
case "smithy.framework#ValidationException":
|
|
1307
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1308
|
-
default:
|
|
1309
|
-
const parsedBody = parsedOutput.body;
|
|
1310
|
-
return throwDefaultError({
|
|
1311
|
-
output,
|
|
1312
|
-
parsedBody,
|
|
1313
|
-
errorCode
|
|
1314
|
-
});
|
|
1315
|
-
}
|
|
1316
|
-
};
|
|
1317
805
|
const de_JoinChannelCommand = async (output, context) => {
|
|
1318
806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1320
808
|
}
|
|
1321
809
|
const contents = (0, smithy_client_1.map)({
|
|
1322
810
|
$metadata: deserializeMetadata(output),
|
|
@@ -1329,34 +817,9 @@ const de_JoinChannelCommand = async (output, context) => {
|
|
|
1329
817
|
return contents;
|
|
1330
818
|
};
|
|
1331
819
|
exports.de_JoinChannelCommand = de_JoinChannelCommand;
|
|
1332
|
-
const de_JoinChannelCommandError = async (output, context) => {
|
|
1333
|
-
const parsedOutput = {
|
|
1334
|
-
...output,
|
|
1335
|
-
body: await parseErrorBody(output.body, context)
|
|
1336
|
-
};
|
|
1337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
-
switch (errorCode) {
|
|
1339
|
-
case "ChannelNotFoundException":
|
|
1340
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1341
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ForbiddenException":
|
|
1343
|
-
case "smithy.framework#ForbiddenException":
|
|
1344
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "ValidationException":
|
|
1346
|
-
case "smithy.framework#ValidationException":
|
|
1347
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody,
|
|
1353
|
-
errorCode
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
820
|
const de_LeaveChannelCommand = async (output, context) => {
|
|
1358
821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
1360
823
|
}
|
|
1361
824
|
const contents = (0, smithy_client_1.map)({
|
|
1362
825
|
$metadata: deserializeMetadata(output),
|
|
@@ -1365,34 +828,9 @@ const de_LeaveChannelCommand = async (output, context) => {
|
|
|
1365
828
|
return contents;
|
|
1366
829
|
};
|
|
1367
830
|
exports.de_LeaveChannelCommand = de_LeaveChannelCommand;
|
|
1368
|
-
const de_LeaveChannelCommandError = async (output, context) => {
|
|
1369
|
-
const parsedOutput = {
|
|
1370
|
-
...output,
|
|
1371
|
-
body: await parseErrorBody(output.body, context)
|
|
1372
|
-
};
|
|
1373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
-
switch (errorCode) {
|
|
1375
|
-
case "ChannelNotFoundException":
|
|
1376
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1377
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ForbiddenException":
|
|
1379
|
-
case "smithy.framework#ForbiddenException":
|
|
1380
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ValidationException":
|
|
1382
|
-
case "smithy.framework#ValidationException":
|
|
1383
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1384
|
-
default:
|
|
1385
|
-
const parsedBody = parsedOutput.body;
|
|
1386
|
-
return throwDefaultError({
|
|
1387
|
-
output,
|
|
1388
|
-
parsedBody,
|
|
1389
|
-
errorCode
|
|
1390
|
-
});
|
|
1391
|
-
}
|
|
1392
|
-
};
|
|
1393
831
|
const de_ListChannelMembersCommand = async (output, context) => {
|
|
1394
832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1395
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1396
834
|
}
|
|
1397
835
|
const contents = (0, smithy_client_1.map)({
|
|
1398
836
|
$metadata: deserializeMetadata(output),
|
|
@@ -1406,34 +844,9 @@ const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1406
844
|
return contents;
|
|
1407
845
|
};
|
|
1408
846
|
exports.de_ListChannelMembersCommand = de_ListChannelMembersCommand;
|
|
1409
|
-
const de_ListChannelMembersCommandError = async (output, context) => {
|
|
1410
|
-
const parsedOutput = {
|
|
1411
|
-
...output,
|
|
1412
|
-
body: await parseErrorBody(output.body, context)
|
|
1413
|
-
};
|
|
1414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
|
-
switch (errorCode) {
|
|
1416
|
-
case "ChannelNotFoundException":
|
|
1417
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1418
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ForbiddenException":
|
|
1420
|
-
case "smithy.framework#ForbiddenException":
|
|
1421
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ValidationException":
|
|
1423
|
-
case "smithy.framework#ValidationException":
|
|
1424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
};
|
|
1434
847
|
const de_ListChannelsCommand = async (output, context) => {
|
|
1435
848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
849
|
+
return de_CommandError(output, context);
|
|
1437
850
|
}
|
|
1438
851
|
const contents = (0, smithy_client_1.map)({
|
|
1439
852
|
$metadata: deserializeMetadata(output),
|
|
@@ -1446,31 +859,9 @@ const de_ListChannelsCommand = async (output, context) => {
|
|
|
1446
859
|
return contents;
|
|
1447
860
|
};
|
|
1448
861
|
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
1449
|
-
const de_ListChannelsCommandError = async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context)
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "ForbiddenException":
|
|
1457
|
-
case "smithy.framework#ForbiddenException":
|
|
1458
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ValidationException":
|
|
1460
|
-
case "smithy.framework#ValidationException":
|
|
1461
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody,
|
|
1467
|
-
errorCode
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
};
|
|
1471
862
|
const de_ListMessageReactionsCommand = async (output, context) => {
|
|
1472
863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
1474
865
|
}
|
|
1475
866
|
const contents = (0, smithy_client_1.map)({
|
|
1476
867
|
$metadata: deserializeMetadata(output),
|
|
@@ -1483,34 +874,9 @@ const de_ListMessageReactionsCommand = async (output, context) => {
|
|
|
1483
874
|
return contents;
|
|
1484
875
|
};
|
|
1485
876
|
exports.de_ListMessageReactionsCommand = de_ListMessageReactionsCommand;
|
|
1486
|
-
const de_ListMessageReactionsCommandError = async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context)
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "ChannelNotFoundException":
|
|
1494
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1495
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ForbiddenException":
|
|
1497
|
-
case "smithy.framework#ForbiddenException":
|
|
1498
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ValidationException":
|
|
1500
|
-
case "smithy.framework#ValidationException":
|
|
1501
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1502
|
-
default:
|
|
1503
|
-
const parsedBody = parsedOutput.body;
|
|
1504
|
-
return throwDefaultError({
|
|
1505
|
-
output,
|
|
1506
|
-
parsedBody,
|
|
1507
|
-
errorCode
|
|
1508
|
-
});
|
|
1509
|
-
}
|
|
1510
|
-
};
|
|
1511
877
|
const de_ListMessagesCommand = async (output, context) => {
|
|
1512
878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1513
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1514
880
|
}
|
|
1515
881
|
const contents = (0, smithy_client_1.map)({
|
|
1516
882
|
$metadata: deserializeMetadata(output),
|
|
@@ -1523,34 +889,9 @@ const de_ListMessagesCommand = async (output, context) => {
|
|
|
1523
889
|
return contents;
|
|
1524
890
|
};
|
|
1525
891
|
exports.de_ListMessagesCommand = de_ListMessagesCommand;
|
|
1526
|
-
const de_ListMessagesCommandError = async (output, context) => {
|
|
1527
|
-
const parsedOutput = {
|
|
1528
|
-
...output,
|
|
1529
|
-
body: await parseErrorBody(output.body, context)
|
|
1530
|
-
};
|
|
1531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
-
switch (errorCode) {
|
|
1533
|
-
case "ChannelNotFoundException":
|
|
1534
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1535
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "ForbiddenException":
|
|
1537
|
-
case "smithy.framework#ForbiddenException":
|
|
1538
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "ValidationException":
|
|
1540
|
-
case "smithy.framework#ValidationException":
|
|
1541
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1542
|
-
default:
|
|
1543
|
-
const parsedBody = parsedOutput.body;
|
|
1544
|
-
return throwDefaultError({
|
|
1545
|
-
output,
|
|
1546
|
-
parsedBody,
|
|
1547
|
-
errorCode
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
892
|
const de_MarkReadCommand = async (output, context) => {
|
|
1552
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1553
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
1554
895
|
}
|
|
1555
896
|
const contents = (0, smithy_client_1.map)({
|
|
1556
897
|
$metadata: deserializeMetadata(output),
|
|
@@ -1559,34 +900,9 @@ const de_MarkReadCommand = async (output, context) => {
|
|
|
1559
900
|
return contents;
|
|
1560
901
|
};
|
|
1561
902
|
exports.de_MarkReadCommand = de_MarkReadCommand;
|
|
1562
|
-
const de_MarkReadCommandError = async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context)
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
switch (errorCode) {
|
|
1569
|
-
case "ChannelNotFoundException":
|
|
1570
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1571
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ForbiddenException":
|
|
1573
|
-
case "smithy.framework#ForbiddenException":
|
|
1574
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "ValidationException":
|
|
1576
|
-
case "smithy.framework#ValidationException":
|
|
1577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1578
|
-
default:
|
|
1579
|
-
const parsedBody = parsedOutput.body;
|
|
1580
|
-
return throwDefaultError({
|
|
1581
|
-
output,
|
|
1582
|
-
parsedBody,
|
|
1583
|
-
errorCode
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
903
|
const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
1588
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1590
906
|
}
|
|
1591
907
|
const contents = (0, smithy_client_1.map)({
|
|
1592
908
|
$metadata: deserializeMetadata(output),
|
|
@@ -1599,34 +915,9 @@ const de_PartialUpdateChannelCommand = async (output, context) => {
|
|
|
1599
915
|
return contents;
|
|
1600
916
|
};
|
|
1601
917
|
exports.de_PartialUpdateChannelCommand = de_PartialUpdateChannelCommand;
|
|
1602
|
-
const de_PartialUpdateChannelCommandError = async (output, context) => {
|
|
1603
|
-
const parsedOutput = {
|
|
1604
|
-
...output,
|
|
1605
|
-
body: await parseErrorBody(output.body, context)
|
|
1606
|
-
};
|
|
1607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
|
-
switch (errorCode) {
|
|
1609
|
-
case "ChannelNotFoundException":
|
|
1610
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1611
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "ForbiddenException":
|
|
1613
|
-
case "smithy.framework#ForbiddenException":
|
|
1614
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1615
|
-
case "ValidationException":
|
|
1616
|
-
case "smithy.framework#ValidationException":
|
|
1617
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1618
|
-
default:
|
|
1619
|
-
const parsedBody = parsedOutput.body;
|
|
1620
|
-
return throwDefaultError({
|
|
1621
|
-
output,
|
|
1622
|
-
parsedBody,
|
|
1623
|
-
errorCode
|
|
1624
|
-
});
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
918
|
const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
1628
919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1629
|
-
return
|
|
920
|
+
return de_CommandError(output, context);
|
|
1630
921
|
}
|
|
1631
922
|
const contents = (0, smithy_client_1.map)({
|
|
1632
923
|
$metadata: deserializeMetadata(output),
|
|
@@ -1639,37 +930,9 @@ const de_PartialUpdateMessageCommand = async (output, context) => {
|
|
|
1639
930
|
return contents;
|
|
1640
931
|
};
|
|
1641
932
|
exports.de_PartialUpdateMessageCommand = de_PartialUpdateMessageCommand;
|
|
1642
|
-
const de_PartialUpdateMessageCommandError = async (output, context) => {
|
|
1643
|
-
const parsedOutput = {
|
|
1644
|
-
...output,
|
|
1645
|
-
body: await parseErrorBody(output.body, context)
|
|
1646
|
-
};
|
|
1647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
|
-
switch (errorCode) {
|
|
1649
|
-
case "ChannelNotFoundException":
|
|
1650
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1651
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "ForbiddenException":
|
|
1653
|
-
case "smithy.framework#ForbiddenException":
|
|
1654
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "MessageNotFoundException":
|
|
1656
|
-
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1657
|
-
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "ValidationException":
|
|
1659
|
-
case "smithy.framework#ValidationException":
|
|
1660
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1661
|
-
default:
|
|
1662
|
-
const parsedBody = parsedOutput.body;
|
|
1663
|
-
return throwDefaultError({
|
|
1664
|
-
output,
|
|
1665
|
-
parsedBody,
|
|
1666
|
-
errorCode
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
};
|
|
1670
933
|
const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
1671
934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
935
|
+
return de_CommandError(output, context);
|
|
1673
936
|
}
|
|
1674
937
|
const contents = (0, smithy_client_1.map)({
|
|
1675
938
|
$metadata: deserializeMetadata(output),
|
|
@@ -1678,34 +941,9 @@ const de_ScheduleExternalFlagAdjustmentJobCommand = async (output, context) => {
|
|
|
1678
941
|
return contents;
|
|
1679
942
|
};
|
|
1680
943
|
exports.de_ScheduleExternalFlagAdjustmentJobCommand = de_ScheduleExternalFlagAdjustmentJobCommand;
|
|
1681
|
-
const de_ScheduleExternalFlagAdjustmentJobCommandError = async (output, context) => {
|
|
1682
|
-
const parsedOutput = {
|
|
1683
|
-
...output,
|
|
1684
|
-
body: await parseErrorBody(output.body, context)
|
|
1685
|
-
};
|
|
1686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
|
-
switch (errorCode) {
|
|
1688
|
-
case "ConversationsServiceException":
|
|
1689
|
-
case "wildix.xbees.conversations#ConversationsServiceException":
|
|
1690
|
-
throw await de_ConversationsServiceExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ForbiddenException":
|
|
1692
|
-
case "smithy.framework#ForbiddenException":
|
|
1693
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ValidationException":
|
|
1695
|
-
case "smithy.framework#ValidationException":
|
|
1696
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1697
|
-
default:
|
|
1698
|
-
const parsedBody = parsedOutput.body;
|
|
1699
|
-
return throwDefaultError({
|
|
1700
|
-
output,
|
|
1701
|
-
parsedBody,
|
|
1702
|
-
errorCode
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
};
|
|
1706
944
|
const de_SendGiphyCommand = async (output, context) => {
|
|
1707
945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
|
-
return
|
|
946
|
+
return de_CommandError(output, context);
|
|
1709
947
|
}
|
|
1710
948
|
const contents = (0, smithy_client_1.map)({
|
|
1711
949
|
$metadata: deserializeMetadata(output),
|
|
@@ -1718,34 +956,9 @@ const de_SendGiphyCommand = async (output, context) => {
|
|
|
1718
956
|
return contents;
|
|
1719
957
|
};
|
|
1720
958
|
exports.de_SendGiphyCommand = de_SendGiphyCommand;
|
|
1721
|
-
const de_SendGiphyCommandError = async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context)
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "ChannelNotFoundException":
|
|
1729
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1730
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ForbiddenException":
|
|
1732
|
-
case "smithy.framework#ForbiddenException":
|
|
1733
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ValidationException":
|
|
1735
|
-
case "smithy.framework#ValidationException":
|
|
1736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody,
|
|
1742
|
-
errorCode
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
};
|
|
1746
959
|
const de_SendMessageCommand = async (output, context) => {
|
|
1747
960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
961
|
+
return de_CommandError(output, context);
|
|
1749
962
|
}
|
|
1750
963
|
const contents = (0, smithy_client_1.map)({
|
|
1751
964
|
$metadata: deserializeMetadata(output),
|
|
@@ -1758,34 +971,9 @@ const de_SendMessageCommand = async (output, context) => {
|
|
|
1758
971
|
return contents;
|
|
1759
972
|
};
|
|
1760
973
|
exports.de_SendMessageCommand = de_SendMessageCommand;
|
|
1761
|
-
const de_SendMessageCommandError = async (output, context) => {
|
|
1762
|
-
const parsedOutput = {
|
|
1763
|
-
...output,
|
|
1764
|
-
body: await parseErrorBody(output.body, context)
|
|
1765
|
-
};
|
|
1766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
-
switch (errorCode) {
|
|
1768
|
-
case "ChannelNotFoundException":
|
|
1769
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1770
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ForbiddenException":
|
|
1772
|
-
case "smithy.framework#ForbiddenException":
|
|
1773
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ValidationException":
|
|
1775
|
-
case "smithy.framework#ValidationException":
|
|
1776
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1777
|
-
default:
|
|
1778
|
-
const parsedBody = parsedOutput.body;
|
|
1779
|
-
return throwDefaultError({
|
|
1780
|
-
output,
|
|
1781
|
-
parsedBody,
|
|
1782
|
-
errorCode
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
};
|
|
1786
974
|
const de_SendMessageReactionCommand = async (output, context) => {
|
|
1787
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1788
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1789
977
|
}
|
|
1790
978
|
const contents = (0, smithy_client_1.map)({
|
|
1791
979
|
$metadata: deserializeMetadata(output),
|
|
@@ -1794,34 +982,9 @@ const de_SendMessageReactionCommand = async (output, context) => {
|
|
|
1794
982
|
return contents;
|
|
1795
983
|
};
|
|
1796
984
|
exports.de_SendMessageReactionCommand = de_SendMessageReactionCommand;
|
|
1797
|
-
const de_SendMessageReactionCommandError = async (output, context) => {
|
|
1798
|
-
const parsedOutput = {
|
|
1799
|
-
...output,
|
|
1800
|
-
body: await parseErrorBody(output.body, context)
|
|
1801
|
-
};
|
|
1802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
|
-
switch (errorCode) {
|
|
1804
|
-
case "ChannelNotFoundException":
|
|
1805
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1806
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ForbiddenException":
|
|
1808
|
-
case "smithy.framework#ForbiddenException":
|
|
1809
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ValidationException":
|
|
1811
|
-
case "smithy.framework#ValidationException":
|
|
1812
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
};
|
|
1822
985
|
const de_SendTypingStartCommand = async (output, context) => {
|
|
1823
986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1824
|
-
return
|
|
987
|
+
return de_CommandError(output, context);
|
|
1825
988
|
}
|
|
1826
989
|
const contents = (0, smithy_client_1.map)({
|
|
1827
990
|
$metadata: deserializeMetadata(output),
|
|
@@ -1830,34 +993,9 @@ const de_SendTypingStartCommand = async (output, context) => {
|
|
|
1830
993
|
return contents;
|
|
1831
994
|
};
|
|
1832
995
|
exports.de_SendTypingStartCommand = de_SendTypingStartCommand;
|
|
1833
|
-
const de_SendTypingStartCommandError = async (output, context) => {
|
|
1834
|
-
const parsedOutput = {
|
|
1835
|
-
...output,
|
|
1836
|
-
body: await parseErrorBody(output.body, context)
|
|
1837
|
-
};
|
|
1838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
-
switch (errorCode) {
|
|
1840
|
-
case "ChannelNotFoundException":
|
|
1841
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1842
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "ForbiddenException":
|
|
1844
|
-
case "smithy.framework#ForbiddenException":
|
|
1845
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "ValidationException":
|
|
1847
|
-
case "smithy.framework#ValidationException":
|
|
1848
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1849
|
-
default:
|
|
1850
|
-
const parsedBody = parsedOutput.body;
|
|
1851
|
-
return throwDefaultError({
|
|
1852
|
-
output,
|
|
1853
|
-
parsedBody,
|
|
1854
|
-
errorCode
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
};
|
|
1858
996
|
const de_SendTypingStopCommand = async (output, context) => {
|
|
1859
997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1860
|
-
return
|
|
998
|
+
return de_CommandError(output, context);
|
|
1861
999
|
}
|
|
1862
1000
|
const contents = (0, smithy_client_1.map)({
|
|
1863
1001
|
$metadata: deserializeMetadata(output),
|
|
@@ -1866,74 +1004,20 @@ const de_SendTypingStopCommand = async (output, context) => {
|
|
|
1866
1004
|
return contents;
|
|
1867
1005
|
};
|
|
1868
1006
|
exports.de_SendTypingStopCommand = de_SendTypingStopCommand;
|
|
1869
|
-
const de_SendTypingStopCommandError = async (output, context) => {
|
|
1870
|
-
const parsedOutput = {
|
|
1871
|
-
...output,
|
|
1872
|
-
body: await parseErrorBody(output.body, context)
|
|
1873
|
-
};
|
|
1874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
|
-
switch (errorCode) {
|
|
1876
|
-
case "ChannelNotFoundException":
|
|
1877
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1878
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ForbiddenException":
|
|
1880
|
-
case "smithy.framework#ForbiddenException":
|
|
1881
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ValidationException":
|
|
1883
|
-
case "smithy.framework#ValidationException":
|
|
1884
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
1007
|
const de_ShowChannelCommand = async (output, context) => {
|
|
1895
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
|
-
return
|
|
1009
|
+
return de_CommandError(output, context);
|
|
1897
1010
|
}
|
|
1898
1011
|
const contents = (0, smithy_client_1.map)({
|
|
1899
1012
|
$metadata: deserializeMetadata(output),
|
|
1900
1013
|
});
|
|
1901
|
-
|
|
1902
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1903
|
-
'channel': smithy_client_1._json,
|
|
1904
|
-
});
|
|
1905
|
-
Object.assign(contents, doc);
|
|
1014
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1906
1015
|
return contents;
|
|
1907
1016
|
};
|
|
1908
1017
|
exports.de_ShowChannelCommand = de_ShowChannelCommand;
|
|
1909
|
-
const de_ShowChannelCommandError = async (output, context) => {
|
|
1910
|
-
const parsedOutput = {
|
|
1911
|
-
...output,
|
|
1912
|
-
body: await parseErrorBody(output.body, context)
|
|
1913
|
-
};
|
|
1914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
-
switch (errorCode) {
|
|
1916
|
-
case "ChannelNotFoundException":
|
|
1917
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1918
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ForbiddenException":
|
|
1920
|
-
case "smithy.framework#ForbiddenException":
|
|
1921
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ValidationException":
|
|
1923
|
-
case "smithy.framework#ValidationException":
|
|
1924
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1925
|
-
default:
|
|
1926
|
-
const parsedBody = parsedOutput.body;
|
|
1927
|
-
return throwDefaultError({
|
|
1928
|
-
output,
|
|
1929
|
-
parsedBody,
|
|
1930
|
-
errorCode
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
};
|
|
1934
1018
|
const de_UpdateChannelCommand = async (output, context) => {
|
|
1935
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1937
1021
|
}
|
|
1938
1022
|
const contents = (0, smithy_client_1.map)({
|
|
1939
1023
|
$metadata: deserializeMetadata(output),
|
|
@@ -1946,34 +1030,9 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1946
1030
|
return contents;
|
|
1947
1031
|
};
|
|
1948
1032
|
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
1949
|
-
const de_UpdateChannelCommandError = async (output, context) => {
|
|
1950
|
-
const parsedOutput = {
|
|
1951
|
-
...output,
|
|
1952
|
-
body: await parseErrorBody(output.body, context)
|
|
1953
|
-
};
|
|
1954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
|
-
switch (errorCode) {
|
|
1956
|
-
case "ChannelNotFoundException":
|
|
1957
|
-
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1958
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "ForbiddenException":
|
|
1960
|
-
case "smithy.framework#ForbiddenException":
|
|
1961
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "ValidationException":
|
|
1963
|
-
case "smithy.framework#ValidationException":
|
|
1964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1965
|
-
default:
|
|
1966
|
-
const parsedBody = parsedOutput.body;
|
|
1967
|
-
return throwDefaultError({
|
|
1968
|
-
output,
|
|
1969
|
-
parsedBody,
|
|
1970
|
-
errorCode
|
|
1971
|
-
});
|
|
1972
|
-
}
|
|
1973
|
-
};
|
|
1974
1033
|
const de_UpdateMessageCommand = async (output, context) => {
|
|
1975
1034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
|
-
return
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1977
1036
|
}
|
|
1978
1037
|
const contents = (0, smithy_client_1.map)({
|
|
1979
1038
|
$metadata: deserializeMetadata(output),
|
|
@@ -1986,7 +1045,7 @@ const de_UpdateMessageCommand = async (output, context) => {
|
|
|
1986
1045
|
return contents;
|
|
1987
1046
|
};
|
|
1988
1047
|
exports.de_UpdateMessageCommand = de_UpdateMessageCommand;
|
|
1989
|
-
const
|
|
1048
|
+
const de_CommandError = async (output, context) => {
|
|
1990
1049
|
const parsedOutput = {
|
|
1991
1050
|
...output,
|
|
1992
1051
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1999,12 +1058,24 @@ const de_UpdateMessageCommandError = async (output, context) => {
|
|
|
1999
1058
|
case "ForbiddenException":
|
|
2000
1059
|
case "smithy.framework#ForbiddenException":
|
|
2001
1060
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "
|
|
2003
|
-
case "wildix.xbees.conversations#
|
|
2004
|
-
throw await
|
|
1061
|
+
case "MemberAlreadyExistException":
|
|
1062
|
+
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
1063
|
+
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
2005
1064
|
case "ValidationException":
|
|
2006
1065
|
case "smithy.framework#ValidationException":
|
|
2007
1066
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "ChannelAlreadyExistException":
|
|
1068
|
+
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1069
|
+
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "MemberNotFoundException":
|
|
1071
|
+
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1072
|
+
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "MessageNotFoundException":
|
|
1074
|
+
case "wildix.xbees.conversations#MessageNotFoundException":
|
|
1075
|
+
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "ConversationsServiceException":
|
|
1077
|
+
case "wildix.xbees.conversations#ConversationsServiceException":
|
|
1078
|
+
throw await de_ConversationsServiceExceptionRes(parsedOutput, context);
|
|
2008
1079
|
default:
|
|
2009
1080
|
const parsedBody = parsedOutput.body;
|
|
2010
1081
|
return throwDefaultError({
|
|
@@ -2132,6 +1203,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2132
1203
|
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
2133
1204
|
value.length != 0) &&
|
|
2134
1205
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1206
|
+
const _l = "limit";
|
|
1207
|
+
const _o = "offset";
|
|
1208
|
+
const _s = "silent";
|
|
1209
|
+
const _u = "user";
|
|
1210
|
+
const _uI = "userId";
|
|
2135
1211
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
2136
1212
|
if (encoded.length) {
|
|
2137
1213
|
return JSON.parse(encoded);
|