@aws-sdk/client-chatbot 3.893.0 → 3.895.0
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/index.js +3275 -10
- package/package.json +7 -7
- package/dist-cjs/Chatbot.js +0 -79
- package/dist-cjs/ChatbotClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/AssociateToConfigurationCommand.js +0 -26
- package/dist-cjs/commands/CreateChimeWebhookConfigurationCommand.js +0 -27
- package/dist-cjs/commands/CreateCustomActionCommand.js +0 -26
- package/dist-cjs/commands/CreateMicrosoftTeamsChannelConfigurationCommand.js +0 -27
- package/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +0 -27
- package/dist-cjs/commands/DeleteChimeWebhookConfigurationCommand.js +0 -26
- package/dist-cjs/commands/DeleteCustomActionCommand.js +0 -26
- package/dist-cjs/commands/DeleteMicrosoftTeamsChannelConfigurationCommand.js +0 -26
- package/dist-cjs/commands/DeleteMicrosoftTeamsConfiguredTeamCommand.js +0 -26
- package/dist-cjs/commands/DeleteMicrosoftTeamsUserIdentityCommand.js +0 -26
- package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +0 -26
- package/dist-cjs/commands/DeleteSlackUserIdentityCommand.js +0 -26
- package/dist-cjs/commands/DeleteSlackWorkspaceAuthorizationCommand.js +0 -26
- package/dist-cjs/commands/DescribeChimeWebhookConfigurationsCommand.js +0 -27
- package/dist-cjs/commands/DescribeSlackChannelConfigurationsCommand.js +0 -27
- package/dist-cjs/commands/DescribeSlackUserIdentitiesCommand.js +0 -26
- package/dist-cjs/commands/DescribeSlackWorkspacesCommand.js +0 -26
- package/dist-cjs/commands/DisassociateFromConfigurationCommand.js +0 -26
- package/dist-cjs/commands/GetAccountPreferencesCommand.js +0 -26
- package/dist-cjs/commands/GetCustomActionCommand.js +0 -26
- package/dist-cjs/commands/GetMicrosoftTeamsChannelConfigurationCommand.js +0 -27
- package/dist-cjs/commands/ListAssociationsCommand.js +0 -26
- package/dist-cjs/commands/ListCustomActionsCommand.js +0 -26
- package/dist-cjs/commands/ListMicrosoftTeamsChannelConfigurationsCommand.js +0 -27
- package/dist-cjs/commands/ListMicrosoftTeamsConfiguredTeamsCommand.js +0 -26
- package/dist-cjs/commands/ListMicrosoftTeamsUserIdentitiesCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateAccountPreferencesCommand.js +0 -26
- package/dist-cjs/commands/UpdateChimeWebhookConfigurationCommand.js +0 -27
- package/dist-cjs/commands/UpdateCustomActionCommand.js +0 -26
- package/dist-cjs/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.js +0 -27
- package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.js +0 -27
- package/dist-cjs/commands/index.js +0 -37
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/ChatbotServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -595
- package/dist-cjs/pagination/DescribeChimeWebhookConfigurationsPaginator.js +0 -7
- package/dist-cjs/pagination/DescribeSlackChannelConfigurationsPaginator.js +0 -7
- package/dist-cjs/pagination/DescribeSlackUserIdentitiesPaginator.js +0 -7
- package/dist-cjs/pagination/DescribeSlackWorkspacesPaginator.js +0 -7
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListAssociationsPaginator.js +0 -7
- package/dist-cjs/pagination/ListCustomActionsPaginator.js +0 -7
- package/dist-cjs/pagination/ListMicrosoftTeamsChannelConfigurationsPaginator.js +0 -7
- package/dist-cjs/pagination/ListMicrosoftTeamsConfiguredTeamsPaginator.js +0 -7
- package/dist-cjs/pagination/ListMicrosoftTeamsUserIdentitiesPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -13
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1564
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,1564 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DescribeSlackUserIdentitiesCommand = exports.de_DescribeSlackChannelConfigurationsCommand = exports.de_DescribeChimeWebhookConfigurationsCommand = exports.de_DeleteSlackWorkspaceAuthorizationCommand = exports.de_DeleteSlackUserIdentityCommand = exports.de_DeleteSlackChannelConfigurationCommand = exports.de_DeleteMicrosoftTeamsUserIdentityCommand = exports.de_DeleteMicrosoftTeamsConfiguredTeamCommand = exports.de_DeleteMicrosoftTeamsChannelConfigurationCommand = exports.de_DeleteCustomActionCommand = exports.de_DeleteChimeWebhookConfigurationCommand = exports.de_CreateSlackChannelConfigurationCommand = exports.de_CreateMicrosoftTeamsChannelConfigurationCommand = exports.de_CreateCustomActionCommand = exports.de_CreateChimeWebhookConfigurationCommand = exports.de_AssociateToConfigurationCommand = exports.se_UpdateSlackChannelConfigurationCommand = exports.se_UpdateMicrosoftTeamsChannelConfigurationCommand = exports.se_UpdateCustomActionCommand = exports.se_UpdateChimeWebhookConfigurationCommand = exports.se_UpdateAccountPreferencesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMicrosoftTeamsUserIdentitiesCommand = exports.se_ListMicrosoftTeamsConfiguredTeamsCommand = exports.se_ListMicrosoftTeamsChannelConfigurationsCommand = exports.se_ListCustomActionsCommand = exports.se_ListAssociationsCommand = exports.se_GetMicrosoftTeamsChannelConfigurationCommand = exports.se_GetCustomActionCommand = exports.se_GetAccountPreferencesCommand = exports.se_DisassociateFromConfigurationCommand = exports.se_DescribeSlackWorkspacesCommand = exports.se_DescribeSlackUserIdentitiesCommand = exports.se_DescribeSlackChannelConfigurationsCommand = exports.se_DescribeChimeWebhookConfigurationsCommand = exports.se_DeleteSlackWorkspaceAuthorizationCommand = exports.se_DeleteSlackUserIdentityCommand = exports.se_DeleteSlackChannelConfigurationCommand = exports.se_DeleteMicrosoftTeamsUserIdentityCommand = exports.se_DeleteMicrosoftTeamsConfiguredTeamCommand = exports.se_DeleteMicrosoftTeamsChannelConfigurationCommand = exports.se_DeleteCustomActionCommand = exports.se_DeleteChimeWebhookConfigurationCommand = exports.se_CreateSlackChannelConfigurationCommand = exports.se_CreateMicrosoftTeamsChannelConfigurationCommand = exports.se_CreateCustomActionCommand = exports.se_CreateChimeWebhookConfigurationCommand = exports.se_AssociateToConfigurationCommand = void 0;
|
|
4
|
-
exports.de_UpdateSlackChannelConfigurationCommand = exports.de_UpdateMicrosoftTeamsChannelConfigurationCommand = exports.de_UpdateCustomActionCommand = exports.de_UpdateChimeWebhookConfigurationCommand = exports.de_UpdateAccountPreferencesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMicrosoftTeamsUserIdentitiesCommand = exports.de_ListMicrosoftTeamsConfiguredTeamsCommand = exports.de_ListMicrosoftTeamsChannelConfigurationsCommand = exports.de_ListCustomActionsCommand = exports.de_ListAssociationsCommand = exports.de_GetMicrosoftTeamsChannelConfigurationCommand = exports.de_GetCustomActionCommand = exports.de_GetAccountPreferencesCommand = exports.de_DisassociateFromConfigurationCommand = exports.de_DescribeSlackWorkspacesCommand = void 0;
|
|
5
|
-
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const core_2 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const ChatbotServiceException_1 = require("../models/ChatbotServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_AssociateToConfigurationCommand = async (input, context) => {
|
|
12
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
|
-
const headers = {
|
|
14
|
-
"content-type": "application/json",
|
|
15
|
-
};
|
|
16
|
-
b.bp("/associate-to-configuration");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
-
ChatConfiguration: [],
|
|
20
|
-
Resource: [],
|
|
21
|
-
}));
|
|
22
|
-
b.m("POST").h(headers).b(body);
|
|
23
|
-
return b.build();
|
|
24
|
-
};
|
|
25
|
-
exports.se_AssociateToConfigurationCommand = se_AssociateToConfigurationCommand;
|
|
26
|
-
const se_CreateChimeWebhookConfigurationCommand = async (input, context) => {
|
|
27
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
28
|
-
const headers = {
|
|
29
|
-
"content-type": "application/json",
|
|
30
|
-
};
|
|
31
|
-
b.bp("/create-chime-webhook-configuration");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
|
-
ConfigurationName: [],
|
|
35
|
-
IamRoleArn: [],
|
|
36
|
-
LoggingLevel: [],
|
|
37
|
-
SnsTopicArns: (_) => (0, smithy_client_1._json)(_),
|
|
38
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
-
WebhookDescription: [],
|
|
40
|
-
WebhookUrl: [],
|
|
41
|
-
}));
|
|
42
|
-
b.m("POST").h(headers).b(body);
|
|
43
|
-
return b.build();
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateChimeWebhookConfigurationCommand = se_CreateChimeWebhookConfigurationCommand;
|
|
46
|
-
const se_CreateCustomActionCommand = async (input, context) => {
|
|
47
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
48
|
-
const headers = {
|
|
49
|
-
"content-type": "application/json",
|
|
50
|
-
};
|
|
51
|
-
b.bp("/create-custom-action");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
54
|
-
ActionName: [],
|
|
55
|
-
AliasName: [],
|
|
56
|
-
Attachments: (_) => (0, smithy_client_1._json)(_),
|
|
57
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
58
|
-
Definition: (_) => (0, smithy_client_1._json)(_),
|
|
59
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
-
}));
|
|
61
|
-
b.m("POST").h(headers).b(body);
|
|
62
|
-
return b.build();
|
|
63
|
-
};
|
|
64
|
-
exports.se_CreateCustomActionCommand = se_CreateCustomActionCommand;
|
|
65
|
-
const se_CreateMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
66
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
67
|
-
const headers = {
|
|
68
|
-
"content-type": "application/json",
|
|
69
|
-
};
|
|
70
|
-
b.bp("/create-ms-teams-channel-configuration");
|
|
71
|
-
let body;
|
|
72
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
73
|
-
ChannelId: [],
|
|
74
|
-
ChannelName: [],
|
|
75
|
-
ConfigurationName: [],
|
|
76
|
-
GuardrailPolicyArns: (_) => (0, smithy_client_1._json)(_),
|
|
77
|
-
IamRoleArn: [],
|
|
78
|
-
LoggingLevel: [],
|
|
79
|
-
SnsTopicArns: (_) => (0, smithy_client_1._json)(_),
|
|
80
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
-
TeamId: [],
|
|
82
|
-
TeamName: [],
|
|
83
|
-
TenantId: [],
|
|
84
|
-
UserAuthorizationRequired: [],
|
|
85
|
-
}));
|
|
86
|
-
b.m("POST").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
exports.se_CreateMicrosoftTeamsChannelConfigurationCommand = se_CreateMicrosoftTeamsChannelConfigurationCommand;
|
|
90
|
-
const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
91
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
92
|
-
const headers = {
|
|
93
|
-
"content-type": "application/json",
|
|
94
|
-
};
|
|
95
|
-
b.bp("/create-slack-channel-configuration");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
98
|
-
ConfigurationName: [],
|
|
99
|
-
GuardrailPolicyArns: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
-
IamRoleArn: [],
|
|
101
|
-
LoggingLevel: [],
|
|
102
|
-
SlackChannelId: [],
|
|
103
|
-
SlackChannelName: [],
|
|
104
|
-
SlackTeamId: [],
|
|
105
|
-
SnsTopicArns: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
-
UserAuthorizationRequired: [],
|
|
108
|
-
}));
|
|
109
|
-
b.m("POST").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
exports.se_CreateSlackChannelConfigurationCommand = se_CreateSlackChannelConfigurationCommand;
|
|
113
|
-
const se_DeleteChimeWebhookConfigurationCommand = async (input, context) => {
|
|
114
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
115
|
-
const headers = {
|
|
116
|
-
"content-type": "application/json",
|
|
117
|
-
};
|
|
118
|
-
b.bp("/delete-chime-webhook-configuration");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
121
|
-
ChatConfigurationArn: [],
|
|
122
|
-
}));
|
|
123
|
-
b.m("POST").h(headers).b(body);
|
|
124
|
-
return b.build();
|
|
125
|
-
};
|
|
126
|
-
exports.se_DeleteChimeWebhookConfigurationCommand = se_DeleteChimeWebhookConfigurationCommand;
|
|
127
|
-
const se_DeleteCustomActionCommand = async (input, context) => {
|
|
128
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
129
|
-
const headers = {
|
|
130
|
-
"content-type": "application/json",
|
|
131
|
-
};
|
|
132
|
-
b.bp("/delete-custom-action");
|
|
133
|
-
let body;
|
|
134
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
135
|
-
CustomActionArn: [],
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
exports.se_DeleteCustomActionCommand = se_DeleteCustomActionCommand;
|
|
141
|
-
const se_DeleteMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
142
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
143
|
-
const headers = {
|
|
144
|
-
"content-type": "application/json",
|
|
145
|
-
};
|
|
146
|
-
b.bp("/delete-ms-teams-channel-configuration");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
149
|
-
ChatConfigurationArn: [],
|
|
150
|
-
}));
|
|
151
|
-
b.m("POST").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
exports.se_DeleteMicrosoftTeamsChannelConfigurationCommand = se_DeleteMicrosoftTeamsChannelConfigurationCommand;
|
|
155
|
-
const se_DeleteMicrosoftTeamsConfiguredTeamCommand = async (input, context) => {
|
|
156
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
157
|
-
const headers = {
|
|
158
|
-
"content-type": "application/json",
|
|
159
|
-
};
|
|
160
|
-
b.bp("/delete-ms-teams-configured-teams");
|
|
161
|
-
let body;
|
|
162
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
163
|
-
TeamId: [],
|
|
164
|
-
}));
|
|
165
|
-
b.m("POST").h(headers).b(body);
|
|
166
|
-
return b.build();
|
|
167
|
-
};
|
|
168
|
-
exports.se_DeleteMicrosoftTeamsConfiguredTeamCommand = se_DeleteMicrosoftTeamsConfiguredTeamCommand;
|
|
169
|
-
const se_DeleteMicrosoftTeamsUserIdentityCommand = async (input, context) => {
|
|
170
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
171
|
-
const headers = {
|
|
172
|
-
"content-type": "application/json",
|
|
173
|
-
};
|
|
174
|
-
b.bp("/delete-ms-teams-user-identity");
|
|
175
|
-
let body;
|
|
176
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
177
|
-
ChatConfigurationArn: [],
|
|
178
|
-
UserId: [],
|
|
179
|
-
}));
|
|
180
|
-
b.m("POST").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
exports.se_DeleteMicrosoftTeamsUserIdentityCommand = se_DeleteMicrosoftTeamsUserIdentityCommand;
|
|
184
|
-
const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
|
|
185
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
186
|
-
const headers = {
|
|
187
|
-
"content-type": "application/json",
|
|
188
|
-
};
|
|
189
|
-
b.bp("/delete-slack-channel-configuration");
|
|
190
|
-
let body;
|
|
191
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
192
|
-
ChatConfigurationArn: [],
|
|
193
|
-
}));
|
|
194
|
-
b.m("POST").h(headers).b(body);
|
|
195
|
-
return b.build();
|
|
196
|
-
};
|
|
197
|
-
exports.se_DeleteSlackChannelConfigurationCommand = se_DeleteSlackChannelConfigurationCommand;
|
|
198
|
-
const se_DeleteSlackUserIdentityCommand = async (input, context) => {
|
|
199
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
200
|
-
const headers = {
|
|
201
|
-
"content-type": "application/json",
|
|
202
|
-
};
|
|
203
|
-
b.bp("/delete-slack-user-identity");
|
|
204
|
-
let body;
|
|
205
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
206
|
-
ChatConfigurationArn: [],
|
|
207
|
-
SlackTeamId: [],
|
|
208
|
-
SlackUserId: [],
|
|
209
|
-
}));
|
|
210
|
-
b.m("POST").h(headers).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
exports.se_DeleteSlackUserIdentityCommand = se_DeleteSlackUserIdentityCommand;
|
|
214
|
-
const se_DeleteSlackWorkspaceAuthorizationCommand = async (input, context) => {
|
|
215
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
216
|
-
const headers = {
|
|
217
|
-
"content-type": "application/json",
|
|
218
|
-
};
|
|
219
|
-
b.bp("/delete-slack-workspace-authorization");
|
|
220
|
-
let body;
|
|
221
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
222
|
-
SlackTeamId: [],
|
|
223
|
-
}));
|
|
224
|
-
b.m("POST").h(headers).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
exports.se_DeleteSlackWorkspaceAuthorizationCommand = se_DeleteSlackWorkspaceAuthorizationCommand;
|
|
228
|
-
const se_DescribeChimeWebhookConfigurationsCommand = async (input, context) => {
|
|
229
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
230
|
-
const headers = {
|
|
231
|
-
"content-type": "application/json",
|
|
232
|
-
};
|
|
233
|
-
b.bp("/describe-chime-webhook-configurations");
|
|
234
|
-
let body;
|
|
235
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
236
|
-
ChatConfigurationArn: [],
|
|
237
|
-
MaxResults: [],
|
|
238
|
-
NextToken: [],
|
|
239
|
-
}));
|
|
240
|
-
b.m("POST").h(headers).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
exports.se_DescribeChimeWebhookConfigurationsCommand = se_DescribeChimeWebhookConfigurationsCommand;
|
|
244
|
-
const se_DescribeSlackChannelConfigurationsCommand = async (input, context) => {
|
|
245
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
246
|
-
const headers = {
|
|
247
|
-
"content-type": "application/json",
|
|
248
|
-
};
|
|
249
|
-
b.bp("/describe-slack-channel-configurations");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
252
|
-
ChatConfigurationArn: [],
|
|
253
|
-
MaxResults: [],
|
|
254
|
-
NextToken: [],
|
|
255
|
-
}));
|
|
256
|
-
b.m("POST").h(headers).b(body);
|
|
257
|
-
return b.build();
|
|
258
|
-
};
|
|
259
|
-
exports.se_DescribeSlackChannelConfigurationsCommand = se_DescribeSlackChannelConfigurationsCommand;
|
|
260
|
-
const se_DescribeSlackUserIdentitiesCommand = async (input, context) => {
|
|
261
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
262
|
-
const headers = {
|
|
263
|
-
"content-type": "application/json",
|
|
264
|
-
};
|
|
265
|
-
b.bp("/describe-slack-user-identities");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
268
|
-
ChatConfigurationArn: [],
|
|
269
|
-
MaxResults: [],
|
|
270
|
-
NextToken: [],
|
|
271
|
-
}));
|
|
272
|
-
b.m("POST").h(headers).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
exports.se_DescribeSlackUserIdentitiesCommand = se_DescribeSlackUserIdentitiesCommand;
|
|
276
|
-
const se_DescribeSlackWorkspacesCommand = async (input, context) => {
|
|
277
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
278
|
-
const headers = {
|
|
279
|
-
"content-type": "application/json",
|
|
280
|
-
};
|
|
281
|
-
b.bp("/describe-slack-workspaces");
|
|
282
|
-
let body;
|
|
283
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
284
|
-
MaxResults: [],
|
|
285
|
-
NextToken: [],
|
|
286
|
-
}));
|
|
287
|
-
b.m("POST").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_DescribeSlackWorkspacesCommand = se_DescribeSlackWorkspacesCommand;
|
|
291
|
-
const se_DisassociateFromConfigurationCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
293
|
-
const headers = {
|
|
294
|
-
"content-type": "application/json",
|
|
295
|
-
};
|
|
296
|
-
b.bp("/disassociate-from-configuration");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
299
|
-
ChatConfiguration: [],
|
|
300
|
-
Resource: [],
|
|
301
|
-
}));
|
|
302
|
-
b.m("POST").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
exports.se_DisassociateFromConfigurationCommand = se_DisassociateFromConfigurationCommand;
|
|
306
|
-
const se_GetAccountPreferencesCommand = async (input, context) => {
|
|
307
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
308
|
-
const headers = {};
|
|
309
|
-
b.bp("/get-account-preferences");
|
|
310
|
-
let body;
|
|
311
|
-
b.m("POST").h(headers).b(body);
|
|
312
|
-
return b.build();
|
|
313
|
-
};
|
|
314
|
-
exports.se_GetAccountPreferencesCommand = se_GetAccountPreferencesCommand;
|
|
315
|
-
const se_GetCustomActionCommand = async (input, context) => {
|
|
316
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
317
|
-
const headers = {
|
|
318
|
-
"content-type": "application/json",
|
|
319
|
-
};
|
|
320
|
-
b.bp("/get-custom-action");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
323
|
-
CustomActionArn: [],
|
|
324
|
-
}));
|
|
325
|
-
b.m("POST").h(headers).b(body);
|
|
326
|
-
return b.build();
|
|
327
|
-
};
|
|
328
|
-
exports.se_GetCustomActionCommand = se_GetCustomActionCommand;
|
|
329
|
-
const se_GetMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
330
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
331
|
-
const headers = {
|
|
332
|
-
"content-type": "application/json",
|
|
333
|
-
};
|
|
334
|
-
b.bp("/get-ms-teams-channel-configuration");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
337
|
-
ChatConfigurationArn: [],
|
|
338
|
-
}));
|
|
339
|
-
b.m("POST").h(headers).b(body);
|
|
340
|
-
return b.build();
|
|
341
|
-
};
|
|
342
|
-
exports.se_GetMicrosoftTeamsChannelConfigurationCommand = se_GetMicrosoftTeamsChannelConfigurationCommand;
|
|
343
|
-
const se_ListAssociationsCommand = async (input, context) => {
|
|
344
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
345
|
-
const headers = {
|
|
346
|
-
"content-type": "application/json",
|
|
347
|
-
};
|
|
348
|
-
b.bp("/list-associations");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
351
|
-
ChatConfiguration: [],
|
|
352
|
-
MaxResults: [],
|
|
353
|
-
NextToken: [],
|
|
354
|
-
}));
|
|
355
|
-
b.m("POST").h(headers).b(body);
|
|
356
|
-
return b.build();
|
|
357
|
-
};
|
|
358
|
-
exports.se_ListAssociationsCommand = se_ListAssociationsCommand;
|
|
359
|
-
const se_ListCustomActionsCommand = async (input, context) => {
|
|
360
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
361
|
-
const headers = {
|
|
362
|
-
"content-type": "application/json",
|
|
363
|
-
};
|
|
364
|
-
b.bp("/list-custom-actions");
|
|
365
|
-
let body;
|
|
366
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
367
|
-
MaxResults: [],
|
|
368
|
-
NextToken: [],
|
|
369
|
-
}));
|
|
370
|
-
b.m("POST").h(headers).b(body);
|
|
371
|
-
return b.build();
|
|
372
|
-
};
|
|
373
|
-
exports.se_ListCustomActionsCommand = se_ListCustomActionsCommand;
|
|
374
|
-
const se_ListMicrosoftTeamsChannelConfigurationsCommand = async (input, context) => {
|
|
375
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
376
|
-
const headers = {
|
|
377
|
-
"content-type": "application/json",
|
|
378
|
-
};
|
|
379
|
-
b.bp("/list-ms-teams-channel-configurations");
|
|
380
|
-
let body;
|
|
381
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
382
|
-
MaxResults: [],
|
|
383
|
-
NextToken: [],
|
|
384
|
-
TeamId: [],
|
|
385
|
-
}));
|
|
386
|
-
b.m("POST").h(headers).b(body);
|
|
387
|
-
return b.build();
|
|
388
|
-
};
|
|
389
|
-
exports.se_ListMicrosoftTeamsChannelConfigurationsCommand = se_ListMicrosoftTeamsChannelConfigurationsCommand;
|
|
390
|
-
const se_ListMicrosoftTeamsConfiguredTeamsCommand = async (input, context) => {
|
|
391
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
392
|
-
const headers = {
|
|
393
|
-
"content-type": "application/json",
|
|
394
|
-
};
|
|
395
|
-
b.bp("/list-ms-teams-configured-teams");
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
398
|
-
MaxResults: [],
|
|
399
|
-
NextToken: [],
|
|
400
|
-
}));
|
|
401
|
-
b.m("POST").h(headers).b(body);
|
|
402
|
-
return b.build();
|
|
403
|
-
};
|
|
404
|
-
exports.se_ListMicrosoftTeamsConfiguredTeamsCommand = se_ListMicrosoftTeamsConfiguredTeamsCommand;
|
|
405
|
-
const se_ListMicrosoftTeamsUserIdentitiesCommand = async (input, context) => {
|
|
406
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
407
|
-
const headers = {
|
|
408
|
-
"content-type": "application/json",
|
|
409
|
-
};
|
|
410
|
-
b.bp("/list-ms-teams-user-identities");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
413
|
-
ChatConfigurationArn: [],
|
|
414
|
-
MaxResults: [],
|
|
415
|
-
NextToken: [],
|
|
416
|
-
}));
|
|
417
|
-
b.m("POST").h(headers).b(body);
|
|
418
|
-
return b.build();
|
|
419
|
-
};
|
|
420
|
-
exports.se_ListMicrosoftTeamsUserIdentitiesCommand = se_ListMicrosoftTeamsUserIdentitiesCommand;
|
|
421
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
422
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
423
|
-
const headers = {
|
|
424
|
-
"content-type": "application/json",
|
|
425
|
-
};
|
|
426
|
-
b.bp("/list-tags-for-resource");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
429
|
-
ResourceARN: [],
|
|
430
|
-
}));
|
|
431
|
-
b.m("POST").h(headers).b(body);
|
|
432
|
-
return b.build();
|
|
433
|
-
};
|
|
434
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
435
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
436
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
437
|
-
const headers = {
|
|
438
|
-
"content-type": "application/json",
|
|
439
|
-
};
|
|
440
|
-
b.bp("/tag-resource");
|
|
441
|
-
let body;
|
|
442
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
443
|
-
ResourceARN: [],
|
|
444
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
445
|
-
}));
|
|
446
|
-
b.m("POST").h(headers).b(body);
|
|
447
|
-
return b.build();
|
|
448
|
-
};
|
|
449
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
450
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
451
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
452
|
-
const headers = {
|
|
453
|
-
"content-type": "application/json",
|
|
454
|
-
};
|
|
455
|
-
b.bp("/untag-resource");
|
|
456
|
-
let body;
|
|
457
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
458
|
-
ResourceARN: [],
|
|
459
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
460
|
-
}));
|
|
461
|
-
b.m("POST").h(headers).b(body);
|
|
462
|
-
return b.build();
|
|
463
|
-
};
|
|
464
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
465
|
-
const se_UpdateAccountPreferencesCommand = async (input, context) => {
|
|
466
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
467
|
-
const headers = {
|
|
468
|
-
"content-type": "application/json",
|
|
469
|
-
};
|
|
470
|
-
b.bp("/update-account-preferences");
|
|
471
|
-
let body;
|
|
472
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
473
|
-
TrainingDataCollectionEnabled: [],
|
|
474
|
-
UserAuthorizationRequired: [],
|
|
475
|
-
}));
|
|
476
|
-
b.m("POST").h(headers).b(body);
|
|
477
|
-
return b.build();
|
|
478
|
-
};
|
|
479
|
-
exports.se_UpdateAccountPreferencesCommand = se_UpdateAccountPreferencesCommand;
|
|
480
|
-
const se_UpdateChimeWebhookConfigurationCommand = async (input, context) => {
|
|
481
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
482
|
-
const headers = {
|
|
483
|
-
"content-type": "application/json",
|
|
484
|
-
};
|
|
485
|
-
b.bp("/update-chime-webhook-configuration");
|
|
486
|
-
let body;
|
|
487
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
488
|
-
ChatConfigurationArn: [],
|
|
489
|
-
IamRoleArn: [],
|
|
490
|
-
LoggingLevel: [],
|
|
491
|
-
SnsTopicArns: (_) => (0, smithy_client_1._json)(_),
|
|
492
|
-
WebhookDescription: [],
|
|
493
|
-
WebhookUrl: [],
|
|
494
|
-
}));
|
|
495
|
-
b.m("POST").h(headers).b(body);
|
|
496
|
-
return b.build();
|
|
497
|
-
};
|
|
498
|
-
exports.se_UpdateChimeWebhookConfigurationCommand = se_UpdateChimeWebhookConfigurationCommand;
|
|
499
|
-
const se_UpdateCustomActionCommand = async (input, context) => {
|
|
500
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
501
|
-
const headers = {
|
|
502
|
-
"content-type": "application/json",
|
|
503
|
-
};
|
|
504
|
-
b.bp("/update-custom-action");
|
|
505
|
-
let body;
|
|
506
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
507
|
-
AliasName: [],
|
|
508
|
-
Attachments: (_) => (0, smithy_client_1._json)(_),
|
|
509
|
-
CustomActionArn: [],
|
|
510
|
-
Definition: (_) => (0, smithy_client_1._json)(_),
|
|
511
|
-
}));
|
|
512
|
-
b.m("POST").h(headers).b(body);
|
|
513
|
-
return b.build();
|
|
514
|
-
};
|
|
515
|
-
exports.se_UpdateCustomActionCommand = se_UpdateCustomActionCommand;
|
|
516
|
-
const se_UpdateMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
517
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
518
|
-
const headers = {
|
|
519
|
-
"content-type": "application/json",
|
|
520
|
-
};
|
|
521
|
-
b.bp("/update-ms-teams-channel-configuration");
|
|
522
|
-
let body;
|
|
523
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
524
|
-
ChannelId: [],
|
|
525
|
-
ChannelName: [],
|
|
526
|
-
ChatConfigurationArn: [],
|
|
527
|
-
GuardrailPolicyArns: (_) => (0, smithy_client_1._json)(_),
|
|
528
|
-
IamRoleArn: [],
|
|
529
|
-
LoggingLevel: [],
|
|
530
|
-
SnsTopicArns: (_) => (0, smithy_client_1._json)(_),
|
|
531
|
-
UserAuthorizationRequired: [],
|
|
532
|
-
}));
|
|
533
|
-
b.m("POST").h(headers).b(body);
|
|
534
|
-
return b.build();
|
|
535
|
-
};
|
|
536
|
-
exports.se_UpdateMicrosoftTeamsChannelConfigurationCommand = se_UpdateMicrosoftTeamsChannelConfigurationCommand;
|
|
537
|
-
const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
538
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
539
|
-
const headers = {
|
|
540
|
-
"content-type": "application/json",
|
|
541
|
-
};
|
|
542
|
-
b.bp("/update-slack-channel-configuration");
|
|
543
|
-
let body;
|
|
544
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
545
|
-
ChatConfigurationArn: [],
|
|
546
|
-
GuardrailPolicyArns: (_) => (0, smithy_client_1._json)(_),
|
|
547
|
-
IamRoleArn: [],
|
|
548
|
-
LoggingLevel: [],
|
|
549
|
-
SlackChannelId: [],
|
|
550
|
-
SlackChannelName: [],
|
|
551
|
-
SnsTopicArns: (_) => (0, smithy_client_1._json)(_),
|
|
552
|
-
UserAuthorizationRequired: [],
|
|
553
|
-
}));
|
|
554
|
-
b.m("POST").h(headers).b(body);
|
|
555
|
-
return b.build();
|
|
556
|
-
};
|
|
557
|
-
exports.se_UpdateSlackChannelConfigurationCommand = se_UpdateSlackChannelConfigurationCommand;
|
|
558
|
-
const de_AssociateToConfigurationCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const contents = (0, smithy_client_1.map)({
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
});
|
|
565
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
566
|
-
return contents;
|
|
567
|
-
};
|
|
568
|
-
exports.de_AssociateToConfigurationCommand = de_AssociateToConfigurationCommand;
|
|
569
|
-
const de_CreateChimeWebhookConfigurationCommand = async (output, context) => {
|
|
570
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
571
|
-
return de_CommandError(output, context);
|
|
572
|
-
}
|
|
573
|
-
const contents = (0, smithy_client_1.map)({
|
|
574
|
-
$metadata: deserializeMetadata(output),
|
|
575
|
-
});
|
|
576
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
577
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
578
|
-
WebhookConfiguration: smithy_client_1._json,
|
|
579
|
-
});
|
|
580
|
-
Object.assign(contents, doc);
|
|
581
|
-
return contents;
|
|
582
|
-
};
|
|
583
|
-
exports.de_CreateChimeWebhookConfigurationCommand = de_CreateChimeWebhookConfigurationCommand;
|
|
584
|
-
const de_CreateCustomActionCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const contents = (0, smithy_client_1.map)({
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
});
|
|
591
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
592
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
593
|
-
CustomActionArn: smithy_client_1.expectString,
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
return contents;
|
|
597
|
-
};
|
|
598
|
-
exports.de_CreateCustomActionCommand = de_CreateCustomActionCommand;
|
|
599
|
-
const de_CreateMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const contents = (0, smithy_client_1.map)({
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
});
|
|
606
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
607
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
608
|
-
ChannelConfiguration: smithy_client_1._json,
|
|
609
|
-
});
|
|
610
|
-
Object.assign(contents, doc);
|
|
611
|
-
return contents;
|
|
612
|
-
};
|
|
613
|
-
exports.de_CreateMicrosoftTeamsChannelConfigurationCommand = de_CreateMicrosoftTeamsChannelConfigurationCommand;
|
|
614
|
-
const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
615
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
616
|
-
return de_CommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const contents = (0, smithy_client_1.map)({
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
620
|
-
});
|
|
621
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
622
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
623
|
-
ChannelConfiguration: smithy_client_1._json,
|
|
624
|
-
});
|
|
625
|
-
Object.assign(contents, doc);
|
|
626
|
-
return contents;
|
|
627
|
-
};
|
|
628
|
-
exports.de_CreateSlackChannelConfigurationCommand = de_CreateSlackChannelConfigurationCommand;
|
|
629
|
-
const de_DeleteChimeWebhookConfigurationCommand = async (output, context) => {
|
|
630
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
631
|
-
return de_CommandError(output, context);
|
|
632
|
-
}
|
|
633
|
-
const contents = (0, smithy_client_1.map)({
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
});
|
|
636
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
637
|
-
return contents;
|
|
638
|
-
};
|
|
639
|
-
exports.de_DeleteChimeWebhookConfigurationCommand = de_DeleteChimeWebhookConfigurationCommand;
|
|
640
|
-
const de_DeleteCustomActionCommand = async (output, context) => {
|
|
641
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
642
|
-
return de_CommandError(output, context);
|
|
643
|
-
}
|
|
644
|
-
const contents = (0, smithy_client_1.map)({
|
|
645
|
-
$metadata: deserializeMetadata(output),
|
|
646
|
-
});
|
|
647
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
648
|
-
return contents;
|
|
649
|
-
};
|
|
650
|
-
exports.de_DeleteCustomActionCommand = de_DeleteCustomActionCommand;
|
|
651
|
-
const de_DeleteMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
652
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const contents = (0, smithy_client_1.map)({
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
});
|
|
658
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
659
|
-
return contents;
|
|
660
|
-
};
|
|
661
|
-
exports.de_DeleteMicrosoftTeamsChannelConfigurationCommand = de_DeleteMicrosoftTeamsChannelConfigurationCommand;
|
|
662
|
-
const de_DeleteMicrosoftTeamsConfiguredTeamCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
664
|
-
return de_CommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const contents = (0, smithy_client_1.map)({
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
});
|
|
669
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
exports.de_DeleteMicrosoftTeamsConfiguredTeamCommand = de_DeleteMicrosoftTeamsConfiguredTeamCommand;
|
|
673
|
-
const de_DeleteMicrosoftTeamsUserIdentityCommand = async (output, context) => {
|
|
674
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
675
|
-
return de_CommandError(output, context);
|
|
676
|
-
}
|
|
677
|
-
const contents = (0, smithy_client_1.map)({
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
});
|
|
680
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
681
|
-
return contents;
|
|
682
|
-
};
|
|
683
|
-
exports.de_DeleteMicrosoftTeamsUserIdentityCommand = de_DeleteMicrosoftTeamsUserIdentityCommand;
|
|
684
|
-
const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
685
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
686
|
-
return de_CommandError(output, context);
|
|
687
|
-
}
|
|
688
|
-
const contents = (0, smithy_client_1.map)({
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
});
|
|
691
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
692
|
-
return contents;
|
|
693
|
-
};
|
|
694
|
-
exports.de_DeleteSlackChannelConfigurationCommand = de_DeleteSlackChannelConfigurationCommand;
|
|
695
|
-
const de_DeleteSlackUserIdentityCommand = async (output, context) => {
|
|
696
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
697
|
-
return de_CommandError(output, context);
|
|
698
|
-
}
|
|
699
|
-
const contents = (0, smithy_client_1.map)({
|
|
700
|
-
$metadata: deserializeMetadata(output),
|
|
701
|
-
});
|
|
702
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
703
|
-
return contents;
|
|
704
|
-
};
|
|
705
|
-
exports.de_DeleteSlackUserIdentityCommand = de_DeleteSlackUserIdentityCommand;
|
|
706
|
-
const de_DeleteSlackWorkspaceAuthorizationCommand = async (output, context) => {
|
|
707
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
708
|
-
return de_CommandError(output, context);
|
|
709
|
-
}
|
|
710
|
-
const contents = (0, smithy_client_1.map)({
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
});
|
|
713
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
714
|
-
return contents;
|
|
715
|
-
};
|
|
716
|
-
exports.de_DeleteSlackWorkspaceAuthorizationCommand = de_DeleteSlackWorkspaceAuthorizationCommand;
|
|
717
|
-
const de_DescribeChimeWebhookConfigurationsCommand = async (output, context) => {
|
|
718
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
-
return de_CommandError(output, context);
|
|
720
|
-
}
|
|
721
|
-
const contents = (0, smithy_client_1.map)({
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
});
|
|
724
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
725
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
726
|
-
NextToken: smithy_client_1.expectString,
|
|
727
|
-
WebhookConfigurations: smithy_client_1._json,
|
|
728
|
-
});
|
|
729
|
-
Object.assign(contents, doc);
|
|
730
|
-
return contents;
|
|
731
|
-
};
|
|
732
|
-
exports.de_DescribeChimeWebhookConfigurationsCommand = de_DescribeChimeWebhookConfigurationsCommand;
|
|
733
|
-
const de_DescribeSlackChannelConfigurationsCommand = async (output, context) => {
|
|
734
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return de_CommandError(output, context);
|
|
736
|
-
}
|
|
737
|
-
const contents = (0, smithy_client_1.map)({
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
});
|
|
740
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
741
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
742
|
-
NextToken: smithy_client_1.expectString,
|
|
743
|
-
SlackChannelConfigurations: smithy_client_1._json,
|
|
744
|
-
});
|
|
745
|
-
Object.assign(contents, doc);
|
|
746
|
-
return contents;
|
|
747
|
-
};
|
|
748
|
-
exports.de_DescribeSlackChannelConfigurationsCommand = de_DescribeSlackChannelConfigurationsCommand;
|
|
749
|
-
const de_DescribeSlackUserIdentitiesCommand = async (output, context) => {
|
|
750
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
-
return de_CommandError(output, context);
|
|
752
|
-
}
|
|
753
|
-
const contents = (0, smithy_client_1.map)({
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
});
|
|
756
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
757
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
758
|
-
NextToken: smithy_client_1.expectString,
|
|
759
|
-
SlackUserIdentities: smithy_client_1._json,
|
|
760
|
-
});
|
|
761
|
-
Object.assign(contents, doc);
|
|
762
|
-
return contents;
|
|
763
|
-
};
|
|
764
|
-
exports.de_DescribeSlackUserIdentitiesCommand = de_DescribeSlackUserIdentitiesCommand;
|
|
765
|
-
const de_DescribeSlackWorkspacesCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return de_CommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const contents = (0, smithy_client_1.map)({
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
});
|
|
772
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
773
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
774
|
-
NextToken: smithy_client_1.expectString,
|
|
775
|
-
SlackWorkspaces: smithy_client_1._json,
|
|
776
|
-
});
|
|
777
|
-
Object.assign(contents, doc);
|
|
778
|
-
return contents;
|
|
779
|
-
};
|
|
780
|
-
exports.de_DescribeSlackWorkspacesCommand = de_DescribeSlackWorkspacesCommand;
|
|
781
|
-
const de_DisassociateFromConfigurationCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const contents = (0, smithy_client_1.map)({
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
});
|
|
788
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
789
|
-
return contents;
|
|
790
|
-
};
|
|
791
|
-
exports.de_DisassociateFromConfigurationCommand = de_DisassociateFromConfigurationCommand;
|
|
792
|
-
const de_GetAccountPreferencesCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
794
|
-
return de_CommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
const contents = (0, smithy_client_1.map)({
|
|
797
|
-
$metadata: deserializeMetadata(output),
|
|
798
|
-
});
|
|
799
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
800
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
801
|
-
AccountPreferences: smithy_client_1._json,
|
|
802
|
-
});
|
|
803
|
-
Object.assign(contents, doc);
|
|
804
|
-
return contents;
|
|
805
|
-
};
|
|
806
|
-
exports.de_GetAccountPreferencesCommand = de_GetAccountPreferencesCommand;
|
|
807
|
-
const de_GetCustomActionCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
-
return de_CommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const contents = (0, smithy_client_1.map)({
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
});
|
|
814
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
815
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
816
|
-
CustomAction: smithy_client_1._json,
|
|
817
|
-
});
|
|
818
|
-
Object.assign(contents, doc);
|
|
819
|
-
return contents;
|
|
820
|
-
};
|
|
821
|
-
exports.de_GetCustomActionCommand = de_GetCustomActionCommand;
|
|
822
|
-
const de_GetMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
823
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return de_CommandError(output, context);
|
|
825
|
-
}
|
|
826
|
-
const contents = (0, smithy_client_1.map)({
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
});
|
|
829
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
830
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
831
|
-
ChannelConfiguration: smithy_client_1._json,
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
return contents;
|
|
835
|
-
};
|
|
836
|
-
exports.de_GetMicrosoftTeamsChannelConfigurationCommand = de_GetMicrosoftTeamsChannelConfigurationCommand;
|
|
837
|
-
const de_ListAssociationsCommand = async (output, context) => {
|
|
838
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
839
|
-
return de_CommandError(output, context);
|
|
840
|
-
}
|
|
841
|
-
const contents = (0, smithy_client_1.map)({
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
});
|
|
844
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
845
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
846
|
-
Associations: smithy_client_1._json,
|
|
847
|
-
NextToken: smithy_client_1.expectString,
|
|
848
|
-
});
|
|
849
|
-
Object.assign(contents, doc);
|
|
850
|
-
return contents;
|
|
851
|
-
};
|
|
852
|
-
exports.de_ListAssociationsCommand = de_ListAssociationsCommand;
|
|
853
|
-
const de_ListCustomActionsCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = (0, smithy_client_1.map)({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
861
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
862
|
-
CustomActions: smithy_client_1._json,
|
|
863
|
-
NextToken: smithy_client_1.expectString,
|
|
864
|
-
});
|
|
865
|
-
Object.assign(contents, doc);
|
|
866
|
-
return contents;
|
|
867
|
-
};
|
|
868
|
-
exports.de_ListCustomActionsCommand = de_ListCustomActionsCommand;
|
|
869
|
-
const de_ListMicrosoftTeamsChannelConfigurationsCommand = async (output, context) => {
|
|
870
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
871
|
-
return de_CommandError(output, context);
|
|
872
|
-
}
|
|
873
|
-
const contents = (0, smithy_client_1.map)({
|
|
874
|
-
$metadata: deserializeMetadata(output),
|
|
875
|
-
});
|
|
876
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
877
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
878
|
-
NextToken: smithy_client_1.expectString,
|
|
879
|
-
TeamChannelConfigurations: smithy_client_1._json,
|
|
880
|
-
});
|
|
881
|
-
Object.assign(contents, doc);
|
|
882
|
-
return contents;
|
|
883
|
-
};
|
|
884
|
-
exports.de_ListMicrosoftTeamsChannelConfigurationsCommand = de_ListMicrosoftTeamsChannelConfigurationsCommand;
|
|
885
|
-
const de_ListMicrosoftTeamsConfiguredTeamsCommand = async (output, context) => {
|
|
886
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const contents = (0, smithy_client_1.map)({
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
});
|
|
892
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
893
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
894
|
-
ConfiguredTeams: smithy_client_1._json,
|
|
895
|
-
NextToken: smithy_client_1.expectString,
|
|
896
|
-
});
|
|
897
|
-
Object.assign(contents, doc);
|
|
898
|
-
return contents;
|
|
899
|
-
};
|
|
900
|
-
exports.de_ListMicrosoftTeamsConfiguredTeamsCommand = de_ListMicrosoftTeamsConfiguredTeamsCommand;
|
|
901
|
-
const de_ListMicrosoftTeamsUserIdentitiesCommand = async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return de_CommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = (0, smithy_client_1.map)({
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
});
|
|
908
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
909
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
910
|
-
NextToken: smithy_client_1.expectString,
|
|
911
|
-
TeamsUserIdentities: smithy_client_1._json,
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
return contents;
|
|
915
|
-
};
|
|
916
|
-
exports.de_ListMicrosoftTeamsUserIdentitiesCommand = de_ListMicrosoftTeamsUserIdentitiesCommand;
|
|
917
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
918
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return de_CommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const contents = (0, smithy_client_1.map)({
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
});
|
|
924
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
925
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
926
|
-
Tags: smithy_client_1._json,
|
|
927
|
-
});
|
|
928
|
-
Object.assign(contents, doc);
|
|
929
|
-
return contents;
|
|
930
|
-
};
|
|
931
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
932
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, smithy_client_1.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
});
|
|
939
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
940
|
-
return contents;
|
|
941
|
-
};
|
|
942
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
943
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
944
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
-
return de_CommandError(output, context);
|
|
946
|
-
}
|
|
947
|
-
const contents = (0, smithy_client_1.map)({
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
});
|
|
950
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
951
|
-
return contents;
|
|
952
|
-
};
|
|
953
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
954
|
-
const de_UpdateAccountPreferencesCommand = async (output, context) => {
|
|
955
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
|
-
return de_CommandError(output, context);
|
|
957
|
-
}
|
|
958
|
-
const contents = (0, smithy_client_1.map)({
|
|
959
|
-
$metadata: deserializeMetadata(output),
|
|
960
|
-
});
|
|
961
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
962
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
963
|
-
AccountPreferences: smithy_client_1._json,
|
|
964
|
-
});
|
|
965
|
-
Object.assign(contents, doc);
|
|
966
|
-
return contents;
|
|
967
|
-
};
|
|
968
|
-
exports.de_UpdateAccountPreferencesCommand = de_UpdateAccountPreferencesCommand;
|
|
969
|
-
const de_UpdateChimeWebhookConfigurationCommand = async (output, context) => {
|
|
970
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
-
return de_CommandError(output, context);
|
|
972
|
-
}
|
|
973
|
-
const contents = (0, smithy_client_1.map)({
|
|
974
|
-
$metadata: deserializeMetadata(output),
|
|
975
|
-
});
|
|
976
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
977
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
978
|
-
WebhookConfiguration: smithy_client_1._json,
|
|
979
|
-
});
|
|
980
|
-
Object.assign(contents, doc);
|
|
981
|
-
return contents;
|
|
982
|
-
};
|
|
983
|
-
exports.de_UpdateChimeWebhookConfigurationCommand = de_UpdateChimeWebhookConfigurationCommand;
|
|
984
|
-
const de_UpdateCustomActionCommand = async (output, context) => {
|
|
985
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return de_CommandError(output, context);
|
|
987
|
-
}
|
|
988
|
-
const contents = (0, smithy_client_1.map)({
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
});
|
|
991
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
992
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
993
|
-
CustomActionArn: smithy_client_1.expectString,
|
|
994
|
-
});
|
|
995
|
-
Object.assign(contents, doc);
|
|
996
|
-
return contents;
|
|
997
|
-
};
|
|
998
|
-
exports.de_UpdateCustomActionCommand = de_UpdateCustomActionCommand;
|
|
999
|
-
const de_UpdateMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
1000
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return de_CommandError(output, context);
|
|
1002
|
-
}
|
|
1003
|
-
const contents = (0, smithy_client_1.map)({
|
|
1004
|
-
$metadata: deserializeMetadata(output),
|
|
1005
|
-
});
|
|
1006
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1007
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1008
|
-
ChannelConfiguration: smithy_client_1._json,
|
|
1009
|
-
});
|
|
1010
|
-
Object.assign(contents, doc);
|
|
1011
|
-
return contents;
|
|
1012
|
-
};
|
|
1013
|
-
exports.de_UpdateMicrosoftTeamsChannelConfigurationCommand = de_UpdateMicrosoftTeamsChannelConfigurationCommand;
|
|
1014
|
-
const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
1015
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1016
|
-
return de_CommandError(output, context);
|
|
1017
|
-
}
|
|
1018
|
-
const contents = (0, smithy_client_1.map)({
|
|
1019
|
-
$metadata: deserializeMetadata(output),
|
|
1020
|
-
});
|
|
1021
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1022
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1023
|
-
ChannelConfiguration: smithy_client_1._json,
|
|
1024
|
-
});
|
|
1025
|
-
Object.assign(contents, doc);
|
|
1026
|
-
return contents;
|
|
1027
|
-
};
|
|
1028
|
-
exports.de_UpdateSlackChannelConfigurationCommand = de_UpdateSlackChannelConfigurationCommand;
|
|
1029
|
-
const de_CommandError = async (output, context) => {
|
|
1030
|
-
const parsedOutput = {
|
|
1031
|
-
...output,
|
|
1032
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
1033
|
-
};
|
|
1034
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1035
|
-
switch (errorCode) {
|
|
1036
|
-
case "InternalServiceError":
|
|
1037
|
-
case "com.amazonaws.chatbot#InternalServiceError":
|
|
1038
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1039
|
-
case "InvalidRequestException":
|
|
1040
|
-
case "com.amazonaws.chatbot#InvalidRequestException":
|
|
1041
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "UnauthorizedException":
|
|
1043
|
-
case "com.amazonaws.chatbot#UnauthorizedException":
|
|
1044
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ConflictException":
|
|
1046
|
-
case "com.amazonaws.chatbot#ConflictException":
|
|
1047
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "CreateChimeWebhookConfigurationException":
|
|
1049
|
-
case "com.amazonaws.chatbot#CreateChimeWebhookConfigurationException":
|
|
1050
|
-
throw await de_CreateChimeWebhookConfigurationExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "InvalidParameterException":
|
|
1052
|
-
case "com.amazonaws.chatbot#InvalidParameterException":
|
|
1053
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "LimitExceededException":
|
|
1055
|
-
case "com.amazonaws.chatbot#LimitExceededException":
|
|
1056
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "CreateTeamsChannelConfigurationException":
|
|
1058
|
-
case "com.amazonaws.chatbot#CreateTeamsChannelConfigurationException":
|
|
1059
|
-
throw await de_CreateTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "CreateSlackChannelConfigurationException":
|
|
1061
|
-
case "com.amazonaws.chatbot#CreateSlackChannelConfigurationException":
|
|
1062
|
-
throw await de_CreateSlackChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "DeleteChimeWebhookConfigurationException":
|
|
1064
|
-
case "com.amazonaws.chatbot#DeleteChimeWebhookConfigurationException":
|
|
1065
|
-
throw await de_DeleteChimeWebhookConfigurationExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ResourceNotFoundException":
|
|
1067
|
-
case "com.amazonaws.chatbot#ResourceNotFoundException":
|
|
1068
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "DeleteTeamsChannelConfigurationException":
|
|
1070
|
-
case "com.amazonaws.chatbot#DeleteTeamsChannelConfigurationException":
|
|
1071
|
-
throw await de_DeleteTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "DeleteTeamsConfiguredTeamException":
|
|
1073
|
-
case "com.amazonaws.chatbot#DeleteTeamsConfiguredTeamException":
|
|
1074
|
-
throw await de_DeleteTeamsConfiguredTeamExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "DeleteMicrosoftTeamsUserIdentityException":
|
|
1076
|
-
case "com.amazonaws.chatbot#DeleteMicrosoftTeamsUserIdentityException":
|
|
1077
|
-
throw await de_DeleteMicrosoftTeamsUserIdentityExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "DeleteSlackChannelConfigurationException":
|
|
1079
|
-
case "com.amazonaws.chatbot#DeleteSlackChannelConfigurationException":
|
|
1080
|
-
throw await de_DeleteSlackChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "DeleteSlackUserIdentityException":
|
|
1082
|
-
case "com.amazonaws.chatbot#DeleteSlackUserIdentityException":
|
|
1083
|
-
throw await de_DeleteSlackUserIdentityExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "DeleteSlackWorkspaceAuthorizationFault":
|
|
1085
|
-
case "com.amazonaws.chatbot#DeleteSlackWorkspaceAuthorizationFault":
|
|
1086
|
-
throw await de_DeleteSlackWorkspaceAuthorizationFaultRes(parsedOutput, context);
|
|
1087
|
-
case "DescribeChimeWebhookConfigurationsException":
|
|
1088
|
-
case "com.amazonaws.chatbot#DescribeChimeWebhookConfigurationsException":
|
|
1089
|
-
throw await de_DescribeChimeWebhookConfigurationsExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "DescribeSlackChannelConfigurationsException":
|
|
1091
|
-
case "com.amazonaws.chatbot#DescribeSlackChannelConfigurationsException":
|
|
1092
|
-
throw await de_DescribeSlackChannelConfigurationsExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "DescribeSlackUserIdentitiesException":
|
|
1094
|
-
case "com.amazonaws.chatbot#DescribeSlackUserIdentitiesException":
|
|
1095
|
-
throw await de_DescribeSlackUserIdentitiesExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "DescribeSlackWorkspacesException":
|
|
1097
|
-
case "com.amazonaws.chatbot#DescribeSlackWorkspacesException":
|
|
1098
|
-
throw await de_DescribeSlackWorkspacesExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "GetAccountPreferencesException":
|
|
1100
|
-
case "com.amazonaws.chatbot#GetAccountPreferencesException":
|
|
1101
|
-
throw await de_GetAccountPreferencesExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "GetTeamsChannelConfigurationException":
|
|
1103
|
-
case "com.amazonaws.chatbot#GetTeamsChannelConfigurationException":
|
|
1104
|
-
throw await de_GetTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ListTeamsChannelConfigurationsException":
|
|
1106
|
-
case "com.amazonaws.chatbot#ListTeamsChannelConfigurationsException":
|
|
1107
|
-
throw await de_ListTeamsChannelConfigurationsExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ListMicrosoftTeamsConfiguredTeamsException":
|
|
1109
|
-
case "com.amazonaws.chatbot#ListMicrosoftTeamsConfiguredTeamsException":
|
|
1110
|
-
throw await de_ListMicrosoftTeamsConfiguredTeamsExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ListMicrosoftTeamsUserIdentitiesException":
|
|
1112
|
-
case "com.amazonaws.chatbot#ListMicrosoftTeamsUserIdentitiesException":
|
|
1113
|
-
throw await de_ListMicrosoftTeamsUserIdentitiesExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ServiceUnavailableException":
|
|
1115
|
-
case "com.amazonaws.chatbot#ServiceUnavailableException":
|
|
1116
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "TooManyTagsException":
|
|
1118
|
-
case "com.amazonaws.chatbot#TooManyTagsException":
|
|
1119
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "UpdateAccountPreferencesException":
|
|
1121
|
-
case "com.amazonaws.chatbot#UpdateAccountPreferencesException":
|
|
1122
|
-
throw await de_UpdateAccountPreferencesExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "UpdateChimeWebhookConfigurationException":
|
|
1124
|
-
case "com.amazonaws.chatbot#UpdateChimeWebhookConfigurationException":
|
|
1125
|
-
throw await de_UpdateChimeWebhookConfigurationExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "UpdateTeamsChannelConfigurationException":
|
|
1127
|
-
case "com.amazonaws.chatbot#UpdateTeamsChannelConfigurationException":
|
|
1128
|
-
throw await de_UpdateTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "UpdateSlackChannelConfigurationException":
|
|
1130
|
-
case "com.amazonaws.chatbot#UpdateSlackChannelConfigurationException":
|
|
1131
|
-
throw await de_UpdateSlackChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode,
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ChatbotServiceException_1.ChatbotServiceException);
|
|
1142
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1143
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1144
|
-
const data = parsedOutput.body;
|
|
1145
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1146
|
-
message: smithy_client_1.expectString,
|
|
1147
|
-
});
|
|
1148
|
-
Object.assign(contents, doc);
|
|
1149
|
-
const exception = new models_0_1.ConflictException({
|
|
1150
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1151
|
-
...contents,
|
|
1152
|
-
});
|
|
1153
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1154
|
-
};
|
|
1155
|
-
const de_CreateChimeWebhookConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1156
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1157
|
-
const data = parsedOutput.body;
|
|
1158
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1159
|
-
Message: smithy_client_1.expectString,
|
|
1160
|
-
});
|
|
1161
|
-
Object.assign(contents, doc);
|
|
1162
|
-
const exception = new models_0_1.CreateChimeWebhookConfigurationException({
|
|
1163
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1164
|
-
...contents,
|
|
1165
|
-
});
|
|
1166
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1167
|
-
};
|
|
1168
|
-
const de_CreateSlackChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1169
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1170
|
-
const data = parsedOutput.body;
|
|
1171
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1172
|
-
Message: smithy_client_1.expectString,
|
|
1173
|
-
});
|
|
1174
|
-
Object.assign(contents, doc);
|
|
1175
|
-
const exception = new models_0_1.CreateSlackChannelConfigurationException({
|
|
1176
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1177
|
-
...contents,
|
|
1178
|
-
});
|
|
1179
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1180
|
-
};
|
|
1181
|
-
const de_CreateTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1182
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1183
|
-
const data = parsedOutput.body;
|
|
1184
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1185
|
-
Message: smithy_client_1.expectString,
|
|
1186
|
-
});
|
|
1187
|
-
Object.assign(contents, doc);
|
|
1188
|
-
const exception = new models_0_1.CreateTeamsChannelConfigurationException({
|
|
1189
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1190
|
-
...contents,
|
|
1191
|
-
});
|
|
1192
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1193
|
-
};
|
|
1194
|
-
const de_DeleteChimeWebhookConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1195
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1196
|
-
const data = parsedOutput.body;
|
|
1197
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1198
|
-
Message: smithy_client_1.expectString,
|
|
1199
|
-
});
|
|
1200
|
-
Object.assign(contents, doc);
|
|
1201
|
-
const exception = new models_0_1.DeleteChimeWebhookConfigurationException({
|
|
1202
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1203
|
-
...contents,
|
|
1204
|
-
});
|
|
1205
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1206
|
-
};
|
|
1207
|
-
const de_DeleteMicrosoftTeamsUserIdentityExceptionRes = async (parsedOutput, context) => {
|
|
1208
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1209
|
-
const data = parsedOutput.body;
|
|
1210
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1211
|
-
Message: smithy_client_1.expectString,
|
|
1212
|
-
});
|
|
1213
|
-
Object.assign(contents, doc);
|
|
1214
|
-
const exception = new models_0_1.DeleteMicrosoftTeamsUserIdentityException({
|
|
1215
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1216
|
-
...contents,
|
|
1217
|
-
});
|
|
1218
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1219
|
-
};
|
|
1220
|
-
const de_DeleteSlackChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1221
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1222
|
-
const data = parsedOutput.body;
|
|
1223
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1224
|
-
Message: smithy_client_1.expectString,
|
|
1225
|
-
});
|
|
1226
|
-
Object.assign(contents, doc);
|
|
1227
|
-
const exception = new models_0_1.DeleteSlackChannelConfigurationException({
|
|
1228
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1229
|
-
...contents,
|
|
1230
|
-
});
|
|
1231
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1232
|
-
};
|
|
1233
|
-
const de_DeleteSlackUserIdentityExceptionRes = async (parsedOutput, context) => {
|
|
1234
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1235
|
-
const data = parsedOutput.body;
|
|
1236
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1237
|
-
Message: smithy_client_1.expectString,
|
|
1238
|
-
});
|
|
1239
|
-
Object.assign(contents, doc);
|
|
1240
|
-
const exception = new models_0_1.DeleteSlackUserIdentityException({
|
|
1241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1242
|
-
...contents,
|
|
1243
|
-
});
|
|
1244
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1245
|
-
};
|
|
1246
|
-
const de_DeleteSlackWorkspaceAuthorizationFaultRes = async (parsedOutput, context) => {
|
|
1247
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1248
|
-
const data = parsedOutput.body;
|
|
1249
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1250
|
-
Message: smithy_client_1.expectString,
|
|
1251
|
-
});
|
|
1252
|
-
Object.assign(contents, doc);
|
|
1253
|
-
const exception = new models_0_1.DeleteSlackWorkspaceAuthorizationFault({
|
|
1254
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
|
-
...contents,
|
|
1256
|
-
});
|
|
1257
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1258
|
-
};
|
|
1259
|
-
const de_DeleteTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1260
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1261
|
-
const data = parsedOutput.body;
|
|
1262
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1263
|
-
Message: smithy_client_1.expectString,
|
|
1264
|
-
});
|
|
1265
|
-
Object.assign(contents, doc);
|
|
1266
|
-
const exception = new models_0_1.DeleteTeamsChannelConfigurationException({
|
|
1267
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1268
|
-
...contents,
|
|
1269
|
-
});
|
|
1270
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1271
|
-
};
|
|
1272
|
-
const de_DeleteTeamsConfiguredTeamExceptionRes = async (parsedOutput, context) => {
|
|
1273
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1274
|
-
const data = parsedOutput.body;
|
|
1275
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1276
|
-
Message: smithy_client_1.expectString,
|
|
1277
|
-
});
|
|
1278
|
-
Object.assign(contents, doc);
|
|
1279
|
-
const exception = new models_0_1.DeleteTeamsConfiguredTeamException({
|
|
1280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
|
-
...contents,
|
|
1282
|
-
});
|
|
1283
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1284
|
-
};
|
|
1285
|
-
const de_DescribeChimeWebhookConfigurationsExceptionRes = async (parsedOutput, context) => {
|
|
1286
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1287
|
-
const data = parsedOutput.body;
|
|
1288
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1289
|
-
Message: smithy_client_1.expectString,
|
|
1290
|
-
});
|
|
1291
|
-
Object.assign(contents, doc);
|
|
1292
|
-
const exception = new models_0_1.DescribeChimeWebhookConfigurationsException({
|
|
1293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
|
-
...contents,
|
|
1295
|
-
});
|
|
1296
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1297
|
-
};
|
|
1298
|
-
const de_DescribeSlackChannelConfigurationsExceptionRes = async (parsedOutput, context) => {
|
|
1299
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1300
|
-
const data = parsedOutput.body;
|
|
1301
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1302
|
-
Message: smithy_client_1.expectString,
|
|
1303
|
-
});
|
|
1304
|
-
Object.assign(contents, doc);
|
|
1305
|
-
const exception = new models_0_1.DescribeSlackChannelConfigurationsException({
|
|
1306
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1307
|
-
...contents,
|
|
1308
|
-
});
|
|
1309
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1310
|
-
};
|
|
1311
|
-
const de_DescribeSlackUserIdentitiesExceptionRes = async (parsedOutput, context) => {
|
|
1312
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1313
|
-
const data = parsedOutput.body;
|
|
1314
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1315
|
-
Message: smithy_client_1.expectString,
|
|
1316
|
-
});
|
|
1317
|
-
Object.assign(contents, doc);
|
|
1318
|
-
const exception = new models_0_1.DescribeSlackUserIdentitiesException({
|
|
1319
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1320
|
-
...contents,
|
|
1321
|
-
});
|
|
1322
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1323
|
-
};
|
|
1324
|
-
const de_DescribeSlackWorkspacesExceptionRes = async (parsedOutput, context) => {
|
|
1325
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1326
|
-
const data = parsedOutput.body;
|
|
1327
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1328
|
-
Message: smithy_client_1.expectString,
|
|
1329
|
-
});
|
|
1330
|
-
Object.assign(contents, doc);
|
|
1331
|
-
const exception = new models_0_1.DescribeSlackWorkspacesException({
|
|
1332
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1333
|
-
...contents,
|
|
1334
|
-
});
|
|
1335
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1336
|
-
};
|
|
1337
|
-
const de_GetAccountPreferencesExceptionRes = async (parsedOutput, context) => {
|
|
1338
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1339
|
-
const data = parsedOutput.body;
|
|
1340
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1341
|
-
Message: smithy_client_1.expectString,
|
|
1342
|
-
});
|
|
1343
|
-
Object.assign(contents, doc);
|
|
1344
|
-
const exception = new models_0_1.GetAccountPreferencesException({
|
|
1345
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1346
|
-
...contents,
|
|
1347
|
-
});
|
|
1348
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1349
|
-
};
|
|
1350
|
-
const de_GetTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1351
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1352
|
-
const data = parsedOutput.body;
|
|
1353
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1354
|
-
Message: smithy_client_1.expectString,
|
|
1355
|
-
});
|
|
1356
|
-
Object.assign(contents, doc);
|
|
1357
|
-
const exception = new models_0_1.GetTeamsChannelConfigurationException({
|
|
1358
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1359
|
-
...contents,
|
|
1360
|
-
});
|
|
1361
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1362
|
-
};
|
|
1363
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1364
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1365
|
-
const data = parsedOutput.body;
|
|
1366
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1367
|
-
Message: smithy_client_1.expectString,
|
|
1368
|
-
});
|
|
1369
|
-
Object.assign(contents, doc);
|
|
1370
|
-
const exception = new models_0_1.InternalServiceError({
|
|
1371
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1372
|
-
...contents,
|
|
1373
|
-
});
|
|
1374
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1375
|
-
};
|
|
1376
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1377
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1378
|
-
const data = parsedOutput.body;
|
|
1379
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1380
|
-
message: smithy_client_1.expectString,
|
|
1381
|
-
});
|
|
1382
|
-
Object.assign(contents, doc);
|
|
1383
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
1384
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1385
|
-
...contents,
|
|
1386
|
-
});
|
|
1387
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1388
|
-
};
|
|
1389
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1390
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1391
|
-
const data = parsedOutput.body;
|
|
1392
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1393
|
-
message: smithy_client_1.expectString,
|
|
1394
|
-
});
|
|
1395
|
-
Object.assign(contents, doc);
|
|
1396
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
1397
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1398
|
-
...contents,
|
|
1399
|
-
});
|
|
1400
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1401
|
-
};
|
|
1402
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1403
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1404
|
-
const data = parsedOutput.body;
|
|
1405
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1406
|
-
message: smithy_client_1.expectString,
|
|
1407
|
-
});
|
|
1408
|
-
Object.assign(contents, doc);
|
|
1409
|
-
const exception = new models_0_1.LimitExceededException({
|
|
1410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1411
|
-
...contents,
|
|
1412
|
-
});
|
|
1413
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1414
|
-
};
|
|
1415
|
-
const de_ListMicrosoftTeamsConfiguredTeamsExceptionRes = async (parsedOutput, context) => {
|
|
1416
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1417
|
-
const data = parsedOutput.body;
|
|
1418
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1419
|
-
Message: smithy_client_1.expectString,
|
|
1420
|
-
});
|
|
1421
|
-
Object.assign(contents, doc);
|
|
1422
|
-
const exception = new models_0_1.ListMicrosoftTeamsConfiguredTeamsException({
|
|
1423
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1424
|
-
...contents,
|
|
1425
|
-
});
|
|
1426
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1427
|
-
};
|
|
1428
|
-
const de_ListMicrosoftTeamsUserIdentitiesExceptionRes = async (parsedOutput, context) => {
|
|
1429
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1430
|
-
const data = parsedOutput.body;
|
|
1431
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1432
|
-
Message: smithy_client_1.expectString,
|
|
1433
|
-
});
|
|
1434
|
-
Object.assign(contents, doc);
|
|
1435
|
-
const exception = new models_0_1.ListMicrosoftTeamsUserIdentitiesException({
|
|
1436
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1437
|
-
...contents,
|
|
1438
|
-
});
|
|
1439
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1440
|
-
};
|
|
1441
|
-
const de_ListTeamsChannelConfigurationsExceptionRes = async (parsedOutput, context) => {
|
|
1442
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1443
|
-
const data = parsedOutput.body;
|
|
1444
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1445
|
-
Message: smithy_client_1.expectString,
|
|
1446
|
-
});
|
|
1447
|
-
Object.assign(contents, doc);
|
|
1448
|
-
const exception = new models_0_1.ListTeamsChannelConfigurationsException({
|
|
1449
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1450
|
-
...contents,
|
|
1451
|
-
});
|
|
1452
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1453
|
-
};
|
|
1454
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1455
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1456
|
-
const data = parsedOutput.body;
|
|
1457
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1458
|
-
Message: smithy_client_1.expectString,
|
|
1459
|
-
});
|
|
1460
|
-
Object.assign(contents, doc);
|
|
1461
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1462
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1463
|
-
...contents,
|
|
1464
|
-
});
|
|
1465
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1466
|
-
};
|
|
1467
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1468
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1469
|
-
const data = parsedOutput.body;
|
|
1470
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1471
|
-
message: smithy_client_1.expectString,
|
|
1472
|
-
});
|
|
1473
|
-
Object.assign(contents, doc);
|
|
1474
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
1475
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1476
|
-
...contents,
|
|
1477
|
-
});
|
|
1478
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1479
|
-
};
|
|
1480
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1481
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1482
|
-
const data = parsedOutput.body;
|
|
1483
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1484
|
-
message: smithy_client_1.expectString,
|
|
1485
|
-
});
|
|
1486
|
-
Object.assign(contents, doc);
|
|
1487
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
1488
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1489
|
-
...contents,
|
|
1490
|
-
});
|
|
1491
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1492
|
-
};
|
|
1493
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1494
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1495
|
-
const data = parsedOutput.body;
|
|
1496
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1497
|
-
message: smithy_client_1.expectString,
|
|
1498
|
-
});
|
|
1499
|
-
Object.assign(contents, doc);
|
|
1500
|
-
const exception = new models_0_1.UnauthorizedException({
|
|
1501
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1502
|
-
...contents,
|
|
1503
|
-
});
|
|
1504
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1505
|
-
};
|
|
1506
|
-
const de_UpdateAccountPreferencesExceptionRes = async (parsedOutput, context) => {
|
|
1507
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1508
|
-
const data = parsedOutput.body;
|
|
1509
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1510
|
-
Message: smithy_client_1.expectString,
|
|
1511
|
-
});
|
|
1512
|
-
Object.assign(contents, doc);
|
|
1513
|
-
const exception = new models_0_1.UpdateAccountPreferencesException({
|
|
1514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1515
|
-
...contents,
|
|
1516
|
-
});
|
|
1517
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1518
|
-
};
|
|
1519
|
-
const de_UpdateChimeWebhookConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1520
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1521
|
-
const data = parsedOutput.body;
|
|
1522
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1523
|
-
Message: smithy_client_1.expectString,
|
|
1524
|
-
});
|
|
1525
|
-
Object.assign(contents, doc);
|
|
1526
|
-
const exception = new models_0_1.UpdateChimeWebhookConfigurationException({
|
|
1527
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1528
|
-
...contents,
|
|
1529
|
-
});
|
|
1530
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1531
|
-
};
|
|
1532
|
-
const de_UpdateSlackChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1533
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1534
|
-
const data = parsedOutput.body;
|
|
1535
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1536
|
-
Message: smithy_client_1.expectString,
|
|
1537
|
-
});
|
|
1538
|
-
Object.assign(contents, doc);
|
|
1539
|
-
const exception = new models_0_1.UpdateSlackChannelConfigurationException({
|
|
1540
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1541
|
-
...contents,
|
|
1542
|
-
});
|
|
1543
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1544
|
-
};
|
|
1545
|
-
const de_UpdateTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1546
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1547
|
-
const data = parsedOutput.body;
|
|
1548
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1549
|
-
Message: smithy_client_1.expectString,
|
|
1550
|
-
});
|
|
1551
|
-
Object.assign(contents, doc);
|
|
1552
|
-
const exception = new models_0_1.UpdateTeamsChannelConfigurationException({
|
|
1553
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1554
|
-
...contents,
|
|
1555
|
-
});
|
|
1556
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1557
|
-
};
|
|
1558
|
-
const deserializeMetadata = (output) => ({
|
|
1559
|
-
httpStatusCode: output.statusCode,
|
|
1560
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1561
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1562
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1563
|
-
});
|
|
1564
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|