@aws-sdk/client-chime-sdk-messaging 3.490.0 → 3.496.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/ChimeSDKMessaging.js +1 -113
- package/dist-cjs/ChimeSDKMessagingClient.js +1 -43
- package/dist-cjs/commands/AssociateChannelFlowCommand.js +1 -28
- package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +1 -29
- package/dist-cjs/commands/ChannelFlowCallbackCommand.js +1 -29
- package/dist-cjs/commands/CreateChannelBanCommand.js +1 -29
- package/dist-cjs/commands/CreateChannelCommand.js +1 -29
- package/dist-cjs/commands/CreateChannelFlowCommand.js +1 -29
- package/dist-cjs/commands/CreateChannelMembershipCommand.js +1 -29
- package/dist-cjs/commands/CreateChannelModeratorCommand.js +1 -29
- package/dist-cjs/commands/DeleteChannelBanCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelFlowCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelMembershipCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelMessageCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelModeratorCommand.js +1 -28
- package/dist-cjs/commands/DeleteMessagingStreamingConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeChannelBanCommand.js +1 -29
- package/dist-cjs/commands/DescribeChannelCommand.js +1 -29
- package/dist-cjs/commands/DescribeChannelFlowCommand.js +1 -29
- package/dist-cjs/commands/DescribeChannelMembershipCommand.js +1 -29
- package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/DescribeChannelModeratorCommand.js +1 -29
- package/dist-cjs/commands/DisassociateChannelFlowCommand.js +1 -28
- package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +1 -29
- package/dist-cjs/commands/GetChannelMessageCommand.js +1 -29
- package/dist-cjs/commands/GetChannelMessageStatusCommand.js +1 -28
- package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +1 -28
- package/dist-cjs/commands/GetMessagingStreamingConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListChannelBansCommand.js +1 -29
- package/dist-cjs/commands/ListChannelFlowsCommand.js +1 -29
- package/dist-cjs/commands/ListChannelMembershipsCommand.js +1 -29
- package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/ListChannelMessagesCommand.js +1 -29
- package/dist-cjs/commands/ListChannelModeratorsCommand.js +1 -29
- package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +1 -29
- package/dist-cjs/commands/ListChannelsCommand.js +1 -29
- package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/ListSubChannelsCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/PutChannelExpirationSettingsCommand.js +1 -28
- package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +1 -29
- package/dist-cjs/commands/PutMessagingStreamingConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/RedactChannelMessageCommand.js +1 -28
- package/dist-cjs/commands/SearchChannelsCommand.js +1 -29
- package/dist-cjs/commands/SendChannelMessageCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateChannelCommand.js +1 -29
- package/dist-cjs/commands/UpdateChannelFlowCommand.js +1 -29
- package/dist-cjs/commands/UpdateChannelMessageCommand.js +1 -29
- package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -54
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5772 -11
- package/dist-cjs/models/ChimeSDKMessagingServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -656
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListChannelBansPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelFlowsPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelMembershipsPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelMessagesPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelModeratorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +1 -7
- package/dist-cjs/pagination/ListChannelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSubChannelsPaginator.js +1 -7
- package/dist-cjs/pagination/SearchChannelsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -15
- package/dist-cjs/protocols/Aws_restJson1.js +1 -3776
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3776 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_UpdateChannelMessageCommand = exports.se_UpdateChannelFlowCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendChannelMessageCommand = exports.se_SearchChannelsCommand = exports.se_RedactChannelMessageCommand = exports.se_PutMessagingStreamingConfigurationsCommand = exports.se_PutChannelMembershipPreferencesCommand = exports.se_PutChannelExpirationSettingsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubChannelsCommand = exports.se_ListChannelsModeratedByAppInstanceUserCommand = exports.se_ListChannelsAssociatedWithChannelFlowCommand = exports.se_ListChannelsCommand = exports.se_ListChannelModeratorsCommand = exports.se_ListChannelMessagesCommand = exports.se_ListChannelMembershipsForAppInstanceUserCommand = exports.se_ListChannelMembershipsCommand = exports.se_ListChannelFlowsCommand = exports.se_ListChannelBansCommand = exports.se_GetMessagingStreamingConfigurationsCommand = exports.se_GetMessagingSessionEndpointCommand = exports.se_GetChannelMessageStatusCommand = exports.se_GetChannelMessageCommand = exports.se_GetChannelMembershipPreferencesCommand = exports.se_DisassociateChannelFlowCommand = exports.se_DescribeChannelModeratorCommand = exports.se_DescribeChannelModeratedByAppInstanceUserCommand = exports.se_DescribeChannelMembershipForAppInstanceUserCommand = exports.se_DescribeChannelMembershipCommand = exports.se_DescribeChannelFlowCommand = exports.se_DescribeChannelBanCommand = exports.se_DescribeChannelCommand = exports.se_DeleteMessagingStreamingConfigurationsCommand = exports.se_DeleteChannelModeratorCommand = exports.se_DeleteChannelMessageCommand = exports.se_DeleteChannelMembershipCommand = exports.se_DeleteChannelFlowCommand = exports.se_DeleteChannelBanCommand = exports.se_DeleteChannelCommand = exports.se_CreateChannelModeratorCommand = exports.se_CreateChannelMembershipCommand = exports.se_CreateChannelFlowCommand = exports.se_CreateChannelBanCommand = exports.se_CreateChannelCommand = exports.se_ChannelFlowCallbackCommand = exports.se_BatchCreateChannelMembershipCommand = exports.se_AssociateChannelFlowCommand = void 0;
|
|
4
|
-
exports.de_UpdateChannelFlowCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendChannelMessageCommand = exports.de_SearchChannelsCommand = exports.de_RedactChannelMessageCommand = exports.de_PutMessagingStreamingConfigurationsCommand = exports.de_PutChannelMembershipPreferencesCommand = exports.de_PutChannelExpirationSettingsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubChannelsCommand = exports.de_ListChannelsModeratedByAppInstanceUserCommand = exports.de_ListChannelsAssociatedWithChannelFlowCommand = exports.de_ListChannelsCommand = exports.de_ListChannelModeratorsCommand = exports.de_ListChannelMessagesCommand = exports.de_ListChannelMembershipsForAppInstanceUserCommand = exports.de_ListChannelMembershipsCommand = exports.de_ListChannelFlowsCommand = exports.de_ListChannelBansCommand = exports.de_GetMessagingStreamingConfigurationsCommand = exports.de_GetMessagingSessionEndpointCommand = exports.de_GetChannelMessageStatusCommand = exports.de_GetChannelMessageCommand = exports.de_GetChannelMembershipPreferencesCommand = exports.de_DisassociateChannelFlowCommand = exports.de_DescribeChannelModeratorCommand = exports.de_DescribeChannelModeratedByAppInstanceUserCommand = exports.de_DescribeChannelMembershipForAppInstanceUserCommand = exports.de_DescribeChannelMembershipCommand = exports.de_DescribeChannelFlowCommand = exports.de_DescribeChannelBanCommand = exports.de_DescribeChannelCommand = exports.de_DeleteMessagingStreamingConfigurationsCommand = exports.de_DeleteChannelModeratorCommand = exports.de_DeleteChannelMessageCommand = exports.de_DeleteChannelMembershipCommand = exports.de_DeleteChannelFlowCommand = exports.de_DeleteChannelBanCommand = exports.de_DeleteChannelCommand = exports.de_CreateChannelModeratorCommand = exports.de_CreateChannelMembershipCommand = exports.de_CreateChannelFlowCommand = exports.de_CreateChannelBanCommand = exports.de_CreateChannelCommand = exports.de_ChannelFlowCallbackCommand = exports.de_BatchCreateChannelMembershipCommand = exports.de_AssociateChannelFlowCommand = exports.se_UpdateChannelReadMarkerCommand = void 0;
|
|
5
|
-
exports.de_UpdateChannelReadMarkerCommand = exports.de_UpdateChannelMessageCommand = void 0;
|
|
6
|
-
const core_1 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const ChimeSDKMessagingServiceException_1 = require("../models/ChimeSDKMessagingServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
12
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
13
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
14
|
-
"content-type": "application/json",
|
|
15
|
-
[_xacb]: input[_CB],
|
|
16
|
-
});
|
|
17
|
-
b.bp("/channels/{ChannelArn}/channel-flow");
|
|
18
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
21
|
-
ChannelFlowArn: [],
|
|
22
|
-
}));
|
|
23
|
-
b.m("PUT").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
exports.se_AssociateChannelFlowCommand = se_AssociateChannelFlowCommand;
|
|
27
|
-
const se_BatchCreateChannelMembershipCommand = async (input, context) => {
|
|
28
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
29
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
[_xacb]: input[_CB],
|
|
32
|
-
});
|
|
33
|
-
b.bp("/channels/{ChannelArn}/memberships");
|
|
34
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
35
|
-
const query = (0, smithy_client_1.map)({
|
|
36
|
-
[_o]: [, "batch-create"],
|
|
37
|
-
});
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
|
-
MemberArns: (_) => (0, smithy_client_1._json)(_),
|
|
41
|
-
SubChannelId: [],
|
|
42
|
-
Type: [],
|
|
43
|
-
}));
|
|
44
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
exports.se_BatchCreateChannelMembershipCommand = se_BatchCreateChannelMembershipCommand;
|
|
48
|
-
const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
49
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
50
|
-
const headers = {
|
|
51
|
-
"content-type": "application/json",
|
|
52
|
-
};
|
|
53
|
-
b.bp("/channels/{ChannelArn}");
|
|
54
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
55
|
-
const query = (0, smithy_client_1.map)({
|
|
56
|
-
[_o]: [, "channel-flow-callback"],
|
|
57
|
-
});
|
|
58
|
-
let body;
|
|
59
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
-
CallbackId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
61
|
-
ChannelMessage: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
-
DeleteResource: [],
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_ChannelFlowCallbackCommand = se_ChannelFlowCallbackCommand;
|
|
68
|
-
const se_CreateChannelCommand = async (input, context) => {
|
|
69
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
70
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
71
|
-
"content-type": "application/json",
|
|
72
|
-
[_xacb]: input[_CB],
|
|
73
|
-
});
|
|
74
|
-
b.bp("/channels");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
77
|
-
AppInstanceArn: [],
|
|
78
|
-
ChannelId: [],
|
|
79
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
80
|
-
ElasticChannelConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
-
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
82
|
-
MemberArns: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
-
Metadata: [],
|
|
84
|
-
Mode: [],
|
|
85
|
-
ModeratorArns: (_) => (0, smithy_client_1._json)(_),
|
|
86
|
-
Name: [],
|
|
87
|
-
Privacy: [],
|
|
88
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
89
|
-
}));
|
|
90
|
-
b.m("POST").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
94
|
-
const se_CreateChannelBanCommand = async (input, context) => {
|
|
95
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
96
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
97
|
-
"content-type": "application/json",
|
|
98
|
-
[_xacb]: input[_CB],
|
|
99
|
-
});
|
|
100
|
-
b.bp("/channels/{ChannelArn}/bans");
|
|
101
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
|
-
MemberArn: [],
|
|
105
|
-
}));
|
|
106
|
-
b.m("POST").h(headers).b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
exports.se_CreateChannelBanCommand = se_CreateChannelBanCommand;
|
|
110
|
-
const se_CreateChannelFlowCommand = async (input, context) => {
|
|
111
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
112
|
-
const headers = {
|
|
113
|
-
"content-type": "application/json",
|
|
114
|
-
};
|
|
115
|
-
b.bp("/channel-flows");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
118
|
-
AppInstanceArn: [],
|
|
119
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
120
|
-
Name: [],
|
|
121
|
-
Processors: (_) => (0, smithy_client_1._json)(_),
|
|
122
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
123
|
-
}));
|
|
124
|
-
b.m("POST").h(headers).b(body);
|
|
125
|
-
return b.build();
|
|
126
|
-
};
|
|
127
|
-
exports.se_CreateChannelFlowCommand = se_CreateChannelFlowCommand;
|
|
128
|
-
const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
129
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
130
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
131
|
-
"content-type": "application/json",
|
|
132
|
-
[_xacb]: input[_CB],
|
|
133
|
-
});
|
|
134
|
-
b.bp("/channels/{ChannelArn}/memberships");
|
|
135
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
138
|
-
MemberArn: [],
|
|
139
|
-
SubChannelId: [],
|
|
140
|
-
Type: [],
|
|
141
|
-
}));
|
|
142
|
-
b.m("POST").h(headers).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
exports.se_CreateChannelMembershipCommand = se_CreateChannelMembershipCommand;
|
|
146
|
-
const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
147
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
148
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
149
|
-
"content-type": "application/json",
|
|
150
|
-
[_xacb]: input[_CB],
|
|
151
|
-
});
|
|
152
|
-
b.bp("/channels/{ChannelArn}/moderators");
|
|
153
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
154
|
-
let body;
|
|
155
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
156
|
-
ChannelModeratorArn: [],
|
|
157
|
-
}));
|
|
158
|
-
b.m("POST").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
exports.se_CreateChannelModeratorCommand = se_CreateChannelModeratorCommand;
|
|
162
|
-
const se_DeleteChannelCommand = async (input, context) => {
|
|
163
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
164
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
165
|
-
[_xacb]: input[_CB],
|
|
166
|
-
});
|
|
167
|
-
b.bp("/channels/{ChannelArn}");
|
|
168
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
169
|
-
let body;
|
|
170
|
-
b.m("DELETE").h(headers).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
174
|
-
const se_DeleteChannelBanCommand = async (input, context) => {
|
|
175
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
176
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
177
|
-
[_xacb]: input[_CB],
|
|
178
|
-
});
|
|
179
|
-
b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
|
|
180
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
181
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
182
|
-
let body;
|
|
183
|
-
b.m("DELETE").h(headers).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
exports.se_DeleteChannelBanCommand = se_DeleteChannelBanCommand;
|
|
187
|
-
const se_DeleteChannelFlowCommand = async (input, context) => {
|
|
188
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
189
|
-
const headers = {};
|
|
190
|
-
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
191
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
192
|
-
let body;
|
|
193
|
-
b.m("DELETE").h(headers).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
exports.se_DeleteChannelFlowCommand = se_DeleteChannelFlowCommand;
|
|
197
|
-
const se_DeleteChannelMembershipCommand = async (input, context) => {
|
|
198
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
200
|
-
[_xacb]: input[_CB],
|
|
201
|
-
});
|
|
202
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
|
|
203
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
204
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
205
|
-
const query = (0, smithy_client_1.map)({
|
|
206
|
-
[_sci]: [, input[_SCI]],
|
|
207
|
-
});
|
|
208
|
-
let body;
|
|
209
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
210
|
-
return b.build();
|
|
211
|
-
};
|
|
212
|
-
exports.se_DeleteChannelMembershipCommand = se_DeleteChannelMembershipCommand;
|
|
213
|
-
const se_DeleteChannelMessageCommand = async (input, context) => {
|
|
214
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
215
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
216
|
-
[_xacb]: input[_CB],
|
|
217
|
-
});
|
|
218
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
219
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
220
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
221
|
-
const query = (0, smithy_client_1.map)({
|
|
222
|
-
[_sci]: [, input[_SCI]],
|
|
223
|
-
});
|
|
224
|
-
let body;
|
|
225
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
226
|
-
return b.build();
|
|
227
|
-
};
|
|
228
|
-
exports.se_DeleteChannelMessageCommand = se_DeleteChannelMessageCommand;
|
|
229
|
-
const se_DeleteChannelModeratorCommand = async (input, context) => {
|
|
230
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
231
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
232
|
-
[_xacb]: input[_CB],
|
|
233
|
-
});
|
|
234
|
-
b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
|
|
235
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
236
|
-
b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
237
|
-
let body;
|
|
238
|
-
b.m("DELETE").h(headers).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
exports.se_DeleteChannelModeratorCommand = se_DeleteChannelModeratorCommand;
|
|
242
|
-
const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
243
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
|
-
const headers = {};
|
|
245
|
-
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
246
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
247
|
-
let body;
|
|
248
|
-
b.m("DELETE").h(headers).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
exports.se_DeleteMessagingStreamingConfigurationsCommand = se_DeleteMessagingStreamingConfigurationsCommand;
|
|
252
|
-
const se_DescribeChannelCommand = async (input, context) => {
|
|
253
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
254
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
255
|
-
[_xacb]: input[_CB],
|
|
256
|
-
});
|
|
257
|
-
b.bp("/channels/{ChannelArn}");
|
|
258
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
259
|
-
let body;
|
|
260
|
-
b.m("GET").h(headers).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
|
|
264
|
-
const se_DescribeChannelBanCommand = async (input, context) => {
|
|
265
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
266
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
267
|
-
[_xacb]: input[_CB],
|
|
268
|
-
});
|
|
269
|
-
b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
|
|
270
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
271
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
272
|
-
let body;
|
|
273
|
-
b.m("GET").h(headers).b(body);
|
|
274
|
-
return b.build();
|
|
275
|
-
};
|
|
276
|
-
exports.se_DescribeChannelBanCommand = se_DescribeChannelBanCommand;
|
|
277
|
-
const se_DescribeChannelFlowCommand = async (input, context) => {
|
|
278
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
279
|
-
const headers = {};
|
|
280
|
-
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
281
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
282
|
-
let body;
|
|
283
|
-
b.m("GET").h(headers).b(body);
|
|
284
|
-
return b.build();
|
|
285
|
-
};
|
|
286
|
-
exports.se_DescribeChannelFlowCommand = se_DescribeChannelFlowCommand;
|
|
287
|
-
const se_DescribeChannelMembershipCommand = async (input, context) => {
|
|
288
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
289
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
290
|
-
[_xacb]: input[_CB],
|
|
291
|
-
});
|
|
292
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
|
|
293
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
294
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
295
|
-
const query = (0, smithy_client_1.map)({
|
|
296
|
-
[_sci]: [, input[_SCI]],
|
|
297
|
-
});
|
|
298
|
-
let body;
|
|
299
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
exports.se_DescribeChannelMembershipCommand = se_DescribeChannelMembershipCommand;
|
|
303
|
-
const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
|
|
304
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
305
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
306
|
-
[_xacb]: input[_CB],
|
|
307
|
-
});
|
|
308
|
-
b.bp("/channels/{ChannelArn}");
|
|
309
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
310
|
-
const query = (0, smithy_client_1.map)({
|
|
311
|
-
[_s]: [, "app-instance-user-membership"],
|
|
312
|
-
[_aiua]: [, (0, smithy_client_1.expectNonNull)(input[_AIUA], `AppInstanceUserArn`)],
|
|
313
|
-
});
|
|
314
|
-
let body;
|
|
315
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
exports.se_DescribeChannelMembershipForAppInstanceUserCommand = se_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
319
|
-
const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
320
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
321
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
322
|
-
[_xacb]: input[_CB],
|
|
323
|
-
});
|
|
324
|
-
b.bp("/channels/{ChannelArn}");
|
|
325
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
326
|
-
const query = (0, smithy_client_1.map)({
|
|
327
|
-
[_s]: [, "app-instance-user-moderated-channel"],
|
|
328
|
-
[_aiua]: [, (0, smithy_client_1.expectNonNull)(input[_AIUA], `AppInstanceUserArn`)],
|
|
329
|
-
});
|
|
330
|
-
let body;
|
|
331
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
332
|
-
return b.build();
|
|
333
|
-
};
|
|
334
|
-
exports.se_DescribeChannelModeratedByAppInstanceUserCommand = se_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
335
|
-
const se_DescribeChannelModeratorCommand = async (input, context) => {
|
|
336
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
337
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
338
|
-
[_xacb]: input[_CB],
|
|
339
|
-
});
|
|
340
|
-
b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
|
|
341
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
342
|
-
b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
343
|
-
let body;
|
|
344
|
-
b.m("GET").h(headers).b(body);
|
|
345
|
-
return b.build();
|
|
346
|
-
};
|
|
347
|
-
exports.se_DescribeChannelModeratorCommand = se_DescribeChannelModeratorCommand;
|
|
348
|
-
const se_DisassociateChannelFlowCommand = async (input, context) => {
|
|
349
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
350
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
351
|
-
[_xacb]: input[_CB],
|
|
352
|
-
});
|
|
353
|
-
b.bp("/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}");
|
|
354
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
355
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
356
|
-
let body;
|
|
357
|
-
b.m("DELETE").h(headers).b(body);
|
|
358
|
-
return b.build();
|
|
359
|
-
};
|
|
360
|
-
exports.se_DisassociateChannelFlowCommand = se_DisassociateChannelFlowCommand;
|
|
361
|
-
const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
|
|
362
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
363
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
364
|
-
[_xacb]: input[_CB],
|
|
365
|
-
});
|
|
366
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
|
|
367
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
368
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
369
|
-
let body;
|
|
370
|
-
b.m("GET").h(headers).b(body);
|
|
371
|
-
return b.build();
|
|
372
|
-
};
|
|
373
|
-
exports.se_GetChannelMembershipPreferencesCommand = se_GetChannelMembershipPreferencesCommand;
|
|
374
|
-
const se_GetChannelMessageCommand = async (input, context) => {
|
|
375
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
377
|
-
[_xacb]: input[_CB],
|
|
378
|
-
});
|
|
379
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
380
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
381
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
382
|
-
const query = (0, smithy_client_1.map)({
|
|
383
|
-
[_sci]: [, input[_SCI]],
|
|
384
|
-
});
|
|
385
|
-
let body;
|
|
386
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
-
return b.build();
|
|
388
|
-
};
|
|
389
|
-
exports.se_GetChannelMessageCommand = se_GetChannelMessageCommand;
|
|
390
|
-
const se_GetChannelMessageStatusCommand = async (input, context) => {
|
|
391
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
392
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
393
|
-
[_xacb]: input[_CB],
|
|
394
|
-
});
|
|
395
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
396
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
397
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
398
|
-
const query = (0, smithy_client_1.map)({
|
|
399
|
-
[_s]: [, "message-status"],
|
|
400
|
-
[_sci]: [, input[_SCI]],
|
|
401
|
-
});
|
|
402
|
-
let body;
|
|
403
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
404
|
-
return b.build();
|
|
405
|
-
};
|
|
406
|
-
exports.se_GetChannelMessageStatusCommand = se_GetChannelMessageStatusCommand;
|
|
407
|
-
const se_GetMessagingSessionEndpointCommand = async (input, context) => {
|
|
408
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
|
-
const headers = {
|
|
410
|
-
"content-type": "application/json",
|
|
411
|
-
};
|
|
412
|
-
b.bp("/endpoints/messaging-session");
|
|
413
|
-
let body;
|
|
414
|
-
body = "";
|
|
415
|
-
b.m("GET").h(headers).b(body);
|
|
416
|
-
return b.build();
|
|
417
|
-
};
|
|
418
|
-
exports.se_GetMessagingSessionEndpointCommand = se_GetMessagingSessionEndpointCommand;
|
|
419
|
-
const se_GetMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
420
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
421
|
-
const headers = {};
|
|
422
|
-
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
423
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
424
|
-
let body;
|
|
425
|
-
b.m("GET").h(headers).b(body);
|
|
426
|
-
return b.build();
|
|
427
|
-
};
|
|
428
|
-
exports.se_GetMessagingStreamingConfigurationsCommand = se_GetMessagingStreamingConfigurationsCommand;
|
|
429
|
-
const se_ListChannelBansCommand = async (input, context) => {
|
|
430
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
431
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
432
|
-
[_xacb]: input[_CB],
|
|
433
|
-
});
|
|
434
|
-
b.bp("/channels/{ChannelArn}/bans");
|
|
435
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
436
|
-
const query = (0, smithy_client_1.map)({
|
|
437
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
438
|
-
[_nt]: [, input[_NT]],
|
|
439
|
-
});
|
|
440
|
-
let body;
|
|
441
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
442
|
-
return b.build();
|
|
443
|
-
};
|
|
444
|
-
exports.se_ListChannelBansCommand = se_ListChannelBansCommand;
|
|
445
|
-
const se_ListChannelFlowsCommand = async (input, context) => {
|
|
446
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
447
|
-
const headers = {};
|
|
448
|
-
b.bp("/channel-flows");
|
|
449
|
-
const query = (0, smithy_client_1.map)({
|
|
450
|
-
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
451
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
452
|
-
[_nt]: [, input[_NT]],
|
|
453
|
-
});
|
|
454
|
-
let body;
|
|
455
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
456
|
-
return b.build();
|
|
457
|
-
};
|
|
458
|
-
exports.se_ListChannelFlowsCommand = se_ListChannelFlowsCommand;
|
|
459
|
-
const se_ListChannelMembershipsCommand = async (input, context) => {
|
|
460
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
461
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
462
|
-
[_xacb]: input[_CB],
|
|
463
|
-
});
|
|
464
|
-
b.bp("/channels/{ChannelArn}/memberships");
|
|
465
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
466
|
-
const query = (0, smithy_client_1.map)({
|
|
467
|
-
[_t]: [, input[_T]],
|
|
468
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
469
|
-
[_nt]: [, input[_NT]],
|
|
470
|
-
[_sci]: [, input[_SCI]],
|
|
471
|
-
});
|
|
472
|
-
let body;
|
|
473
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
474
|
-
return b.build();
|
|
475
|
-
};
|
|
476
|
-
exports.se_ListChannelMembershipsCommand = se_ListChannelMembershipsCommand;
|
|
477
|
-
const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
|
|
478
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
479
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
480
|
-
[_xacb]: input[_CB],
|
|
481
|
-
});
|
|
482
|
-
b.bp("/channels");
|
|
483
|
-
const query = (0, smithy_client_1.map)({
|
|
484
|
-
[_s]: [, "app-instance-user-memberships"],
|
|
485
|
-
[_aiua]: [, input[_AIUA]],
|
|
486
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
487
|
-
[_nt]: [, input[_NT]],
|
|
488
|
-
});
|
|
489
|
-
let body;
|
|
490
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
491
|
-
return b.build();
|
|
492
|
-
};
|
|
493
|
-
exports.se_ListChannelMembershipsForAppInstanceUserCommand = se_ListChannelMembershipsForAppInstanceUserCommand;
|
|
494
|
-
const se_ListChannelMessagesCommand = async (input, context) => {
|
|
495
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
496
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
497
|
-
[_xacb]: input[_CB],
|
|
498
|
-
});
|
|
499
|
-
b.bp("/channels/{ChannelArn}/messages");
|
|
500
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
501
|
-
const query = (0, smithy_client_1.map)({
|
|
502
|
-
[_so]: [, input[_SO]],
|
|
503
|
-
[_nb]: [() => input.NotBefore !== void 0, () => (input[_NB].toISOString().split(".")[0] + "Z").toString()],
|
|
504
|
-
[_na]: [() => input.NotAfter !== void 0, () => (input[_NA].toISOString().split(".")[0] + "Z").toString()],
|
|
505
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
506
|
-
[_nt]: [, input[_NT]],
|
|
507
|
-
[_sci]: [, input[_SCI]],
|
|
508
|
-
});
|
|
509
|
-
let body;
|
|
510
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
511
|
-
return b.build();
|
|
512
|
-
};
|
|
513
|
-
exports.se_ListChannelMessagesCommand = se_ListChannelMessagesCommand;
|
|
514
|
-
const se_ListChannelModeratorsCommand = async (input, context) => {
|
|
515
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
516
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
517
|
-
[_xacb]: input[_CB],
|
|
518
|
-
});
|
|
519
|
-
b.bp("/channels/{ChannelArn}/moderators");
|
|
520
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
521
|
-
const query = (0, smithy_client_1.map)({
|
|
522
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
523
|
-
[_nt]: [, input[_NT]],
|
|
524
|
-
});
|
|
525
|
-
let body;
|
|
526
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
527
|
-
return b.build();
|
|
528
|
-
};
|
|
529
|
-
exports.se_ListChannelModeratorsCommand = se_ListChannelModeratorsCommand;
|
|
530
|
-
const se_ListChannelsCommand = async (input, context) => {
|
|
531
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
532
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
533
|
-
[_xacb]: input[_CB],
|
|
534
|
-
});
|
|
535
|
-
b.bp("/channels");
|
|
536
|
-
const query = (0, smithy_client_1.map)({
|
|
537
|
-
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
538
|
-
[_p]: [, input[_P]],
|
|
539
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
540
|
-
[_nt]: [, input[_NT]],
|
|
541
|
-
});
|
|
542
|
-
let body;
|
|
543
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
544
|
-
return b.build();
|
|
545
|
-
};
|
|
546
|
-
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
547
|
-
const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
|
|
548
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
549
|
-
const headers = {};
|
|
550
|
-
b.bp("/channels");
|
|
551
|
-
const query = (0, smithy_client_1.map)({
|
|
552
|
-
[_s]: [, "channel-flow-associations"],
|
|
553
|
-
[_cfa]: [, (0, smithy_client_1.expectNonNull)(input[_CFA], `ChannelFlowArn`)],
|
|
554
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
555
|
-
[_nt]: [, input[_NT]],
|
|
556
|
-
});
|
|
557
|
-
let body;
|
|
558
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
559
|
-
return b.build();
|
|
560
|
-
};
|
|
561
|
-
exports.se_ListChannelsAssociatedWithChannelFlowCommand = se_ListChannelsAssociatedWithChannelFlowCommand;
|
|
562
|
-
const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
563
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
564
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
565
|
-
[_xacb]: input[_CB],
|
|
566
|
-
});
|
|
567
|
-
b.bp("/channels");
|
|
568
|
-
const query = (0, smithy_client_1.map)({
|
|
569
|
-
[_s]: [, "app-instance-user-moderated-channels"],
|
|
570
|
-
[_aiua]: [, input[_AIUA]],
|
|
571
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
572
|
-
[_nt]: [, input[_NT]],
|
|
573
|
-
});
|
|
574
|
-
let body;
|
|
575
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
576
|
-
return b.build();
|
|
577
|
-
};
|
|
578
|
-
exports.se_ListChannelsModeratedByAppInstanceUserCommand = se_ListChannelsModeratedByAppInstanceUserCommand;
|
|
579
|
-
const se_ListSubChannelsCommand = async (input, context) => {
|
|
580
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
581
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
582
|
-
[_xacb]: input[_CB],
|
|
583
|
-
});
|
|
584
|
-
b.bp("/channels/{ChannelArn}/subchannels");
|
|
585
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
586
|
-
const query = (0, smithy_client_1.map)({
|
|
587
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
588
|
-
[_nt]: [, input[_NT]],
|
|
589
|
-
});
|
|
590
|
-
let body;
|
|
591
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
592
|
-
return b.build();
|
|
593
|
-
};
|
|
594
|
-
exports.se_ListSubChannelsCommand = se_ListSubChannelsCommand;
|
|
595
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
596
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
597
|
-
const headers = {};
|
|
598
|
-
b.bp("/tags");
|
|
599
|
-
const query = (0, smithy_client_1.map)({
|
|
600
|
-
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
|
|
601
|
-
});
|
|
602
|
-
let body;
|
|
603
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
604
|
-
return b.build();
|
|
605
|
-
};
|
|
606
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
607
|
-
const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
608
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
609
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
610
|
-
"content-type": "application/json",
|
|
611
|
-
[_xacb]: input[_CB],
|
|
612
|
-
});
|
|
613
|
-
b.bp("/channels/{ChannelArn}/expiration-settings");
|
|
614
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
615
|
-
let body;
|
|
616
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
617
|
-
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
618
|
-
}));
|
|
619
|
-
b.m("PUT").h(headers).b(body);
|
|
620
|
-
return b.build();
|
|
621
|
-
};
|
|
622
|
-
exports.se_PutChannelExpirationSettingsCommand = se_PutChannelExpirationSettingsCommand;
|
|
623
|
-
const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
|
|
624
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
625
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
626
|
-
"content-type": "application/json",
|
|
627
|
-
[_xacb]: input[_CB],
|
|
628
|
-
});
|
|
629
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
|
|
630
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
631
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
632
|
-
let body;
|
|
633
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
634
|
-
Preferences: (_) => (0, smithy_client_1._json)(_),
|
|
635
|
-
}));
|
|
636
|
-
b.m("PUT").h(headers).b(body);
|
|
637
|
-
return b.build();
|
|
638
|
-
};
|
|
639
|
-
exports.se_PutChannelMembershipPreferencesCommand = se_PutChannelMembershipPreferencesCommand;
|
|
640
|
-
const se_PutMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
641
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
642
|
-
const headers = {
|
|
643
|
-
"content-type": "application/json",
|
|
644
|
-
};
|
|
645
|
-
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
646
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
647
|
-
let body;
|
|
648
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
649
|
-
StreamingConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
650
|
-
}));
|
|
651
|
-
b.m("PUT").h(headers).b(body);
|
|
652
|
-
return b.build();
|
|
653
|
-
};
|
|
654
|
-
exports.se_PutMessagingStreamingConfigurationsCommand = se_PutMessagingStreamingConfigurationsCommand;
|
|
655
|
-
const se_RedactChannelMessageCommand = async (input, context) => {
|
|
656
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
657
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
658
|
-
"content-type": "application/json",
|
|
659
|
-
[_xacb]: input[_CB],
|
|
660
|
-
});
|
|
661
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
662
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
663
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
664
|
-
const query = (0, smithy_client_1.map)({
|
|
665
|
-
[_o]: [, "redact"],
|
|
666
|
-
});
|
|
667
|
-
let body;
|
|
668
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
669
|
-
SubChannelId: [],
|
|
670
|
-
}));
|
|
671
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
672
|
-
return b.build();
|
|
673
|
-
};
|
|
674
|
-
exports.se_RedactChannelMessageCommand = se_RedactChannelMessageCommand;
|
|
675
|
-
const se_SearchChannelsCommand = async (input, context) => {
|
|
676
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
677
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
678
|
-
"content-type": "application/json",
|
|
679
|
-
[_xacb]: input[_CB],
|
|
680
|
-
});
|
|
681
|
-
b.bp("/channels");
|
|
682
|
-
const query = (0, smithy_client_1.map)({
|
|
683
|
-
[_o]: [, "search"],
|
|
684
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
685
|
-
[_nt]: [, input[_NT]],
|
|
686
|
-
});
|
|
687
|
-
let body;
|
|
688
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
689
|
-
Fields: (_) => (0, smithy_client_1._json)(_),
|
|
690
|
-
}));
|
|
691
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
692
|
-
return b.build();
|
|
693
|
-
};
|
|
694
|
-
exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
|
|
695
|
-
const se_SendChannelMessageCommand = async (input, context) => {
|
|
696
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
697
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
698
|
-
"content-type": "application/json",
|
|
699
|
-
[_xacb]: input[_CB],
|
|
700
|
-
});
|
|
701
|
-
b.bp("/channels/{ChannelArn}/messages");
|
|
702
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
703
|
-
let body;
|
|
704
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
705
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
706
|
-
Content: [],
|
|
707
|
-
ContentType: [],
|
|
708
|
-
MessageAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
709
|
-
Metadata: [],
|
|
710
|
-
Persistence: [],
|
|
711
|
-
PushNotification: (_) => (0, smithy_client_1._json)(_),
|
|
712
|
-
SubChannelId: [],
|
|
713
|
-
Target: (_) => (0, smithy_client_1._json)(_),
|
|
714
|
-
Type: [],
|
|
715
|
-
}));
|
|
716
|
-
b.m("POST").h(headers).b(body);
|
|
717
|
-
return b.build();
|
|
718
|
-
};
|
|
719
|
-
exports.se_SendChannelMessageCommand = se_SendChannelMessageCommand;
|
|
720
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
721
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
722
|
-
const headers = {
|
|
723
|
-
"content-type": "application/json",
|
|
724
|
-
};
|
|
725
|
-
b.bp("/tags");
|
|
726
|
-
const query = (0, smithy_client_1.map)({
|
|
727
|
-
[_o]: [, "tag-resource"],
|
|
728
|
-
});
|
|
729
|
-
let body;
|
|
730
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
731
|
-
ResourceARN: [],
|
|
732
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
733
|
-
}));
|
|
734
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
735
|
-
return b.build();
|
|
736
|
-
};
|
|
737
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
738
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
739
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
740
|
-
const headers = {
|
|
741
|
-
"content-type": "application/json",
|
|
742
|
-
};
|
|
743
|
-
b.bp("/tags");
|
|
744
|
-
const query = (0, smithy_client_1.map)({
|
|
745
|
-
[_o]: [, "untag-resource"],
|
|
746
|
-
});
|
|
747
|
-
let body;
|
|
748
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
749
|
-
ResourceARN: [],
|
|
750
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
751
|
-
}));
|
|
752
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
753
|
-
return b.build();
|
|
754
|
-
};
|
|
755
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
756
|
-
const se_UpdateChannelCommand = async (input, context) => {
|
|
757
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
758
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
759
|
-
"content-type": "application/json",
|
|
760
|
-
[_xacb]: input[_CB],
|
|
761
|
-
});
|
|
762
|
-
b.bp("/channels/{ChannelArn}");
|
|
763
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
764
|
-
let body;
|
|
765
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
766
|
-
Metadata: [],
|
|
767
|
-
Mode: [],
|
|
768
|
-
Name: [],
|
|
769
|
-
}));
|
|
770
|
-
b.m("PUT").h(headers).b(body);
|
|
771
|
-
return b.build();
|
|
772
|
-
};
|
|
773
|
-
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
774
|
-
const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
775
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
776
|
-
const headers = {
|
|
777
|
-
"content-type": "application/json",
|
|
778
|
-
};
|
|
779
|
-
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
780
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
781
|
-
let body;
|
|
782
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
783
|
-
Name: [],
|
|
784
|
-
Processors: (_) => (0, smithy_client_1._json)(_),
|
|
785
|
-
}));
|
|
786
|
-
b.m("PUT").h(headers).b(body);
|
|
787
|
-
return b.build();
|
|
788
|
-
};
|
|
789
|
-
exports.se_UpdateChannelFlowCommand = se_UpdateChannelFlowCommand;
|
|
790
|
-
const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
791
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
792
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
793
|
-
"content-type": "application/json",
|
|
794
|
-
[_xacb]: input[_CB],
|
|
795
|
-
});
|
|
796
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
797
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
798
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
799
|
-
let body;
|
|
800
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
801
|
-
Content: [],
|
|
802
|
-
ContentType: [],
|
|
803
|
-
Metadata: [],
|
|
804
|
-
SubChannelId: [],
|
|
805
|
-
}));
|
|
806
|
-
b.m("PUT").h(headers).b(body);
|
|
807
|
-
return b.build();
|
|
808
|
-
};
|
|
809
|
-
exports.se_UpdateChannelMessageCommand = se_UpdateChannelMessageCommand;
|
|
810
|
-
const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
811
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
812
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
813
|
-
[_xacb]: input[_CB],
|
|
814
|
-
});
|
|
815
|
-
b.bp("/channels/{ChannelArn}/readMarker");
|
|
816
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
817
|
-
let body;
|
|
818
|
-
b.m("PUT").h(headers).b(body);
|
|
819
|
-
return b.build();
|
|
820
|
-
};
|
|
821
|
-
exports.se_UpdateChannelReadMarkerCommand = se_UpdateChannelReadMarkerCommand;
|
|
822
|
-
const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
823
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return de_AssociateChannelFlowCommandError(output, context);
|
|
825
|
-
}
|
|
826
|
-
const contents = (0, smithy_client_1.map)({
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
});
|
|
829
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
830
|
-
return contents;
|
|
831
|
-
};
|
|
832
|
-
exports.de_AssociateChannelFlowCommand = de_AssociateChannelFlowCommand;
|
|
833
|
-
const de_AssociateChannelFlowCommandError = async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context),
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "BadRequestException":
|
|
841
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
842
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ConflictException":
|
|
844
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
845
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ForbiddenException":
|
|
847
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
848
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
849
|
-
case "NotFoundException":
|
|
850
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
851
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ServiceFailureException":
|
|
853
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
854
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ServiceUnavailableException":
|
|
856
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
857
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ThrottledClientException":
|
|
859
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
860
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
861
|
-
case "UnauthorizedClientException":
|
|
862
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
863
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
const de_BatchCreateChannelMembershipCommand = async (output, context) => {
|
|
874
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
875
|
-
return de_BatchCreateChannelMembershipCommandError(output, context);
|
|
876
|
-
}
|
|
877
|
-
const contents = (0, smithy_client_1.map)({
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
});
|
|
880
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
881
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
882
|
-
BatchChannelMemberships: smithy_client_1._json,
|
|
883
|
-
Errors: smithy_client_1._json,
|
|
884
|
-
});
|
|
885
|
-
Object.assign(contents, doc);
|
|
886
|
-
return contents;
|
|
887
|
-
};
|
|
888
|
-
exports.de_BatchCreateChannelMembershipCommand = de_BatchCreateChannelMembershipCommand;
|
|
889
|
-
const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context),
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "BadRequestException":
|
|
897
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
898
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ForbiddenException":
|
|
900
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
901
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
902
|
-
case "NotFoundException":
|
|
903
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
904
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ResourceLimitExceededException":
|
|
906
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
907
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ServiceFailureException":
|
|
909
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
910
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ServiceUnavailableException":
|
|
912
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
913
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ThrottledClientException":
|
|
915
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
916
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
917
|
-
case "UnauthorizedClientException":
|
|
918
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
919
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
-
return de_ChannelFlowCallbackCommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const contents = (0, smithy_client_1.map)({
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
});
|
|
936
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
937
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
938
|
-
CallbackId: smithy_client_1.expectString,
|
|
939
|
-
ChannelArn: smithy_client_1.expectString,
|
|
940
|
-
});
|
|
941
|
-
Object.assign(contents, doc);
|
|
942
|
-
return contents;
|
|
943
|
-
};
|
|
944
|
-
exports.de_ChannelFlowCallbackCommand = de_ChannelFlowCallbackCommand;
|
|
945
|
-
const de_ChannelFlowCallbackCommandError = async (output, context) => {
|
|
946
|
-
const parsedOutput = {
|
|
947
|
-
...output,
|
|
948
|
-
body: await parseErrorBody(output.body, context),
|
|
949
|
-
};
|
|
950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
-
switch (errorCode) {
|
|
952
|
-
case "BadRequestException":
|
|
953
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
954
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
955
|
-
case "ConflictException":
|
|
956
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
957
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ForbiddenException":
|
|
959
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
960
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ServiceFailureException":
|
|
962
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
963
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ServiceUnavailableException":
|
|
965
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
966
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ThrottledClientException":
|
|
968
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
969
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
970
|
-
case "UnauthorizedClientException":
|
|
971
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
972
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
const de_CreateChannelCommand = async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
984
|
-
return de_CreateChannelCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, smithy_client_1.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
});
|
|
989
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
990
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
991
|
-
ChannelArn: smithy_client_1.expectString,
|
|
992
|
-
});
|
|
993
|
-
Object.assign(contents, doc);
|
|
994
|
-
return contents;
|
|
995
|
-
};
|
|
996
|
-
exports.de_CreateChannelCommand = de_CreateChannelCommand;
|
|
997
|
-
const de_CreateChannelCommandError = async (output, context) => {
|
|
998
|
-
const parsedOutput = {
|
|
999
|
-
...output,
|
|
1000
|
-
body: await parseErrorBody(output.body, context),
|
|
1001
|
-
};
|
|
1002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
-
switch (errorCode) {
|
|
1004
|
-
case "BadRequestException":
|
|
1005
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1006
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ConflictException":
|
|
1008
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1009
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ForbiddenException":
|
|
1011
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1012
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ResourceLimitExceededException":
|
|
1014
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1015
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ServiceFailureException":
|
|
1017
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1018
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ServiceUnavailableException":
|
|
1020
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1021
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottledClientException":
|
|
1023
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1024
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "UnauthorizedClientException":
|
|
1026
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1027
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
const de_CreateChannelBanCommand = async (output, context) => {
|
|
1038
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1039
|
-
return de_CreateChannelBanCommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const contents = (0, smithy_client_1.map)({
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
});
|
|
1044
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1046
|
-
ChannelArn: smithy_client_1.expectString,
|
|
1047
|
-
Member: smithy_client_1._json,
|
|
1048
|
-
});
|
|
1049
|
-
Object.assign(contents, doc);
|
|
1050
|
-
return contents;
|
|
1051
|
-
};
|
|
1052
|
-
exports.de_CreateChannelBanCommand = de_CreateChannelBanCommand;
|
|
1053
|
-
const de_CreateChannelBanCommandError = async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context),
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "BadRequestException":
|
|
1061
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1062
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ConflictException":
|
|
1064
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1065
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ForbiddenException":
|
|
1067
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1068
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ResourceLimitExceededException":
|
|
1070
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1071
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ServiceFailureException":
|
|
1073
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1074
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ServiceUnavailableException":
|
|
1076
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1077
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ThrottledClientException":
|
|
1079
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1080
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "UnauthorizedClientException":
|
|
1082
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1083
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1084
|
-
default:
|
|
1085
|
-
const parsedBody = parsedOutput.body;
|
|
1086
|
-
return throwDefaultError({
|
|
1087
|
-
output,
|
|
1088
|
-
parsedBody,
|
|
1089
|
-
errorCode,
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
const de_CreateChannelFlowCommand = async (output, context) => {
|
|
1094
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1095
|
-
return de_CreateChannelFlowCommandError(output, context);
|
|
1096
|
-
}
|
|
1097
|
-
const contents = (0, smithy_client_1.map)({
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
});
|
|
1100
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1101
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1102
|
-
ChannelFlowArn: smithy_client_1.expectString,
|
|
1103
|
-
});
|
|
1104
|
-
Object.assign(contents, doc);
|
|
1105
|
-
return contents;
|
|
1106
|
-
};
|
|
1107
|
-
exports.de_CreateChannelFlowCommand = de_CreateChannelFlowCommand;
|
|
1108
|
-
const de_CreateChannelFlowCommandError = async (output, context) => {
|
|
1109
|
-
const parsedOutput = {
|
|
1110
|
-
...output,
|
|
1111
|
-
body: await parseErrorBody(output.body, context),
|
|
1112
|
-
};
|
|
1113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
|
-
switch (errorCode) {
|
|
1115
|
-
case "BadRequestException":
|
|
1116
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1117
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ConflictException":
|
|
1119
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1120
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ForbiddenException":
|
|
1122
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1123
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ResourceLimitExceededException":
|
|
1125
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1126
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "ServiceFailureException":
|
|
1128
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1129
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ServiceUnavailableException":
|
|
1131
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1132
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ThrottledClientException":
|
|
1134
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1135
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "UnauthorizedClientException":
|
|
1137
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1138
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1139
|
-
default:
|
|
1140
|
-
const parsedBody = parsedOutput.body;
|
|
1141
|
-
return throwDefaultError({
|
|
1142
|
-
output,
|
|
1143
|
-
parsedBody,
|
|
1144
|
-
errorCode,
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
1149
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1150
|
-
return de_CreateChannelMembershipCommandError(output, context);
|
|
1151
|
-
}
|
|
1152
|
-
const contents = (0, smithy_client_1.map)({
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
});
|
|
1155
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1156
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1157
|
-
ChannelArn: smithy_client_1.expectString,
|
|
1158
|
-
Member: smithy_client_1._json,
|
|
1159
|
-
SubChannelId: smithy_client_1.expectString,
|
|
1160
|
-
});
|
|
1161
|
-
Object.assign(contents, doc);
|
|
1162
|
-
return contents;
|
|
1163
|
-
};
|
|
1164
|
-
exports.de_CreateChannelMembershipCommand = de_CreateChannelMembershipCommand;
|
|
1165
|
-
const de_CreateChannelMembershipCommandError = async (output, context) => {
|
|
1166
|
-
const parsedOutput = {
|
|
1167
|
-
...output,
|
|
1168
|
-
body: await parseErrorBody(output.body, context),
|
|
1169
|
-
};
|
|
1170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
-
switch (errorCode) {
|
|
1172
|
-
case "BadRequestException":
|
|
1173
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1174
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ConflictException":
|
|
1176
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ForbiddenException":
|
|
1179
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1180
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "NotFoundException":
|
|
1182
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1183
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ResourceLimitExceededException":
|
|
1185
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1186
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ServiceFailureException":
|
|
1188
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1189
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ServiceUnavailableException":
|
|
1191
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1192
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ThrottledClientException":
|
|
1194
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1195
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "UnauthorizedClientException":
|
|
1197
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1198
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody,
|
|
1204
|
-
errorCode,
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
|
-
const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
1209
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1210
|
-
return de_CreateChannelModeratorCommandError(output, context);
|
|
1211
|
-
}
|
|
1212
|
-
const contents = (0, smithy_client_1.map)({
|
|
1213
|
-
$metadata: deserializeMetadata(output),
|
|
1214
|
-
});
|
|
1215
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1216
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1217
|
-
ChannelArn: smithy_client_1.expectString,
|
|
1218
|
-
ChannelModerator: smithy_client_1._json,
|
|
1219
|
-
});
|
|
1220
|
-
Object.assign(contents, doc);
|
|
1221
|
-
return contents;
|
|
1222
|
-
};
|
|
1223
|
-
exports.de_CreateChannelModeratorCommand = de_CreateChannelModeratorCommand;
|
|
1224
|
-
const de_CreateChannelModeratorCommandError = async (output, context) => {
|
|
1225
|
-
const parsedOutput = {
|
|
1226
|
-
...output,
|
|
1227
|
-
body: await parseErrorBody(output.body, context),
|
|
1228
|
-
};
|
|
1229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
|
-
switch (errorCode) {
|
|
1231
|
-
case "BadRequestException":
|
|
1232
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1233
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ConflictException":
|
|
1235
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1236
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ForbiddenException":
|
|
1238
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1239
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ResourceLimitExceededException":
|
|
1241
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1242
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ServiceFailureException":
|
|
1244
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1245
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ServiceUnavailableException":
|
|
1247
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1248
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ThrottledClientException":
|
|
1250
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1251
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "UnauthorizedClientException":
|
|
1253
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1254
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1255
|
-
default:
|
|
1256
|
-
const parsedBody = parsedOutput.body;
|
|
1257
|
-
return throwDefaultError({
|
|
1258
|
-
output,
|
|
1259
|
-
parsedBody,
|
|
1260
|
-
errorCode,
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
};
|
|
1264
|
-
const de_DeleteChannelCommand = async (output, context) => {
|
|
1265
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1266
|
-
return de_DeleteChannelCommandError(output, context);
|
|
1267
|
-
}
|
|
1268
|
-
const contents = (0, smithy_client_1.map)({
|
|
1269
|
-
$metadata: deserializeMetadata(output),
|
|
1270
|
-
});
|
|
1271
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1272
|
-
return contents;
|
|
1273
|
-
};
|
|
1274
|
-
exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
|
|
1275
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
1276
|
-
const parsedOutput = {
|
|
1277
|
-
...output,
|
|
1278
|
-
body: await parseErrorBody(output.body, context),
|
|
1279
|
-
};
|
|
1280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
-
switch (errorCode) {
|
|
1282
|
-
case "BadRequestException":
|
|
1283
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1284
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ConflictException":
|
|
1286
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1287
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ForbiddenException":
|
|
1289
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1290
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ServiceFailureException":
|
|
1292
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1293
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ServiceUnavailableException":
|
|
1295
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1296
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ThrottledClientException":
|
|
1298
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1299
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "UnauthorizedClientException":
|
|
1301
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1302
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1303
|
-
default:
|
|
1304
|
-
const parsedBody = parsedOutput.body;
|
|
1305
|
-
return throwDefaultError({
|
|
1306
|
-
output,
|
|
1307
|
-
parsedBody,
|
|
1308
|
-
errorCode,
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
|
-
const de_DeleteChannelBanCommand = async (output, context) => {
|
|
1313
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1314
|
-
return de_DeleteChannelBanCommandError(output, context);
|
|
1315
|
-
}
|
|
1316
|
-
const contents = (0, smithy_client_1.map)({
|
|
1317
|
-
$metadata: deserializeMetadata(output),
|
|
1318
|
-
});
|
|
1319
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1320
|
-
return contents;
|
|
1321
|
-
};
|
|
1322
|
-
exports.de_DeleteChannelBanCommand = de_DeleteChannelBanCommand;
|
|
1323
|
-
const de_DeleteChannelBanCommandError = async (output, context) => {
|
|
1324
|
-
const parsedOutput = {
|
|
1325
|
-
...output,
|
|
1326
|
-
body: await parseErrorBody(output.body, context),
|
|
1327
|
-
};
|
|
1328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
-
switch (errorCode) {
|
|
1330
|
-
case "BadRequestException":
|
|
1331
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1332
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ForbiddenException":
|
|
1334
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1335
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ServiceFailureException":
|
|
1337
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1338
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ServiceUnavailableException":
|
|
1340
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1341
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ThrottledClientException":
|
|
1343
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1344
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "UnauthorizedClientException":
|
|
1346
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1347
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody,
|
|
1353
|
-
errorCode,
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
const de_DeleteChannelFlowCommand = async (output, context) => {
|
|
1358
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1359
|
-
return de_DeleteChannelFlowCommandError(output, context);
|
|
1360
|
-
}
|
|
1361
|
-
const contents = (0, smithy_client_1.map)({
|
|
1362
|
-
$metadata: deserializeMetadata(output),
|
|
1363
|
-
});
|
|
1364
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1365
|
-
return contents;
|
|
1366
|
-
};
|
|
1367
|
-
exports.de_DeleteChannelFlowCommand = de_DeleteChannelFlowCommand;
|
|
1368
|
-
const de_DeleteChannelFlowCommandError = 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 "BadRequestException":
|
|
1376
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1377
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ConflictException":
|
|
1379
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1380
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ForbiddenException":
|
|
1382
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1383
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ServiceFailureException":
|
|
1385
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1386
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ServiceUnavailableException":
|
|
1388
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1389
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ThrottledClientException":
|
|
1391
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1392
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "UnauthorizedClientException":
|
|
1394
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1395
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1396
|
-
default:
|
|
1397
|
-
const parsedBody = parsedOutput.body;
|
|
1398
|
-
return throwDefaultError({
|
|
1399
|
-
output,
|
|
1400
|
-
parsedBody,
|
|
1401
|
-
errorCode,
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
const de_DeleteChannelMembershipCommand = async (output, context) => {
|
|
1406
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1407
|
-
return de_DeleteChannelMembershipCommandError(output, context);
|
|
1408
|
-
}
|
|
1409
|
-
const contents = (0, smithy_client_1.map)({
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
});
|
|
1412
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1413
|
-
return contents;
|
|
1414
|
-
};
|
|
1415
|
-
exports.de_DeleteChannelMembershipCommand = de_DeleteChannelMembershipCommand;
|
|
1416
|
-
const de_DeleteChannelMembershipCommandError = async (output, context) => {
|
|
1417
|
-
const parsedOutput = {
|
|
1418
|
-
...output,
|
|
1419
|
-
body: await parseErrorBody(output.body, context),
|
|
1420
|
-
};
|
|
1421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
-
switch (errorCode) {
|
|
1423
|
-
case "BadRequestException":
|
|
1424
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1425
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ConflictException":
|
|
1427
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1428
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ForbiddenException":
|
|
1430
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1431
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ServiceFailureException":
|
|
1433
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1434
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "ServiceUnavailableException":
|
|
1436
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1437
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "ThrottledClientException":
|
|
1439
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1440
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "UnauthorizedClientException":
|
|
1442
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1443
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1444
|
-
default:
|
|
1445
|
-
const parsedBody = parsedOutput.body;
|
|
1446
|
-
return throwDefaultError({
|
|
1447
|
-
output,
|
|
1448
|
-
parsedBody,
|
|
1449
|
-
errorCode,
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
};
|
|
1453
|
-
const de_DeleteChannelMessageCommand = async (output, context) => {
|
|
1454
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1455
|
-
return de_DeleteChannelMessageCommandError(output, context);
|
|
1456
|
-
}
|
|
1457
|
-
const contents = (0, smithy_client_1.map)({
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
});
|
|
1460
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1461
|
-
return contents;
|
|
1462
|
-
};
|
|
1463
|
-
exports.de_DeleteChannelMessageCommand = de_DeleteChannelMessageCommand;
|
|
1464
|
-
const de_DeleteChannelMessageCommandError = async (output, context) => {
|
|
1465
|
-
const parsedOutput = {
|
|
1466
|
-
...output,
|
|
1467
|
-
body: await parseErrorBody(output.body, context),
|
|
1468
|
-
};
|
|
1469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
|
-
switch (errorCode) {
|
|
1471
|
-
case "BadRequestException":
|
|
1472
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1473
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ForbiddenException":
|
|
1475
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1476
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "ServiceFailureException":
|
|
1478
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1479
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "ServiceUnavailableException":
|
|
1481
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1482
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ThrottledClientException":
|
|
1484
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1485
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "UnauthorizedClientException":
|
|
1487
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1488
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1489
|
-
default:
|
|
1490
|
-
const parsedBody = parsedOutput.body;
|
|
1491
|
-
return throwDefaultError({
|
|
1492
|
-
output,
|
|
1493
|
-
parsedBody,
|
|
1494
|
-
errorCode,
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
};
|
|
1498
|
-
const de_DeleteChannelModeratorCommand = async (output, context) => {
|
|
1499
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1500
|
-
return de_DeleteChannelModeratorCommandError(output, context);
|
|
1501
|
-
}
|
|
1502
|
-
const contents = (0, smithy_client_1.map)({
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
});
|
|
1505
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1506
|
-
return contents;
|
|
1507
|
-
};
|
|
1508
|
-
exports.de_DeleteChannelModeratorCommand = de_DeleteChannelModeratorCommand;
|
|
1509
|
-
const de_DeleteChannelModeratorCommandError = async (output, context) => {
|
|
1510
|
-
const parsedOutput = {
|
|
1511
|
-
...output,
|
|
1512
|
-
body: await parseErrorBody(output.body, context),
|
|
1513
|
-
};
|
|
1514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
-
switch (errorCode) {
|
|
1516
|
-
case "BadRequestException":
|
|
1517
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1518
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ForbiddenException":
|
|
1520
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1521
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ServiceFailureException":
|
|
1523
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1524
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ServiceUnavailableException":
|
|
1526
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1527
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ThrottledClientException":
|
|
1529
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1530
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "UnauthorizedClientException":
|
|
1532
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1533
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody,
|
|
1539
|
-
errorCode,
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
};
|
|
1543
|
-
const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1544
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1545
|
-
return de_DeleteMessagingStreamingConfigurationsCommandError(output, context);
|
|
1546
|
-
}
|
|
1547
|
-
const contents = (0, smithy_client_1.map)({
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
});
|
|
1550
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1551
|
-
return contents;
|
|
1552
|
-
};
|
|
1553
|
-
exports.de_DeleteMessagingStreamingConfigurationsCommand = de_DeleteMessagingStreamingConfigurationsCommand;
|
|
1554
|
-
const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
1555
|
-
const parsedOutput = {
|
|
1556
|
-
...output,
|
|
1557
|
-
body: await parseErrorBody(output.body, context),
|
|
1558
|
-
};
|
|
1559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
|
-
switch (errorCode) {
|
|
1561
|
-
case "BadRequestException":
|
|
1562
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1563
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ForbiddenException":
|
|
1565
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1566
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "ServiceFailureException":
|
|
1568
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1569
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ServiceUnavailableException":
|
|
1571
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1572
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "ThrottledClientException":
|
|
1574
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1575
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "UnauthorizedClientException":
|
|
1577
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1578
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1579
|
-
default:
|
|
1580
|
-
const parsedBody = parsedOutput.body;
|
|
1581
|
-
return throwDefaultError({
|
|
1582
|
-
output,
|
|
1583
|
-
parsedBody,
|
|
1584
|
-
errorCode,
|
|
1585
|
-
});
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
const de_DescribeChannelCommand = async (output, context) => {
|
|
1589
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1590
|
-
return de_DescribeChannelCommandError(output, context);
|
|
1591
|
-
}
|
|
1592
|
-
const contents = (0, smithy_client_1.map)({
|
|
1593
|
-
$metadata: deserializeMetadata(output),
|
|
1594
|
-
});
|
|
1595
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1596
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1597
|
-
Channel: (_) => de_Channel(_, context),
|
|
1598
|
-
});
|
|
1599
|
-
Object.assign(contents, doc);
|
|
1600
|
-
return contents;
|
|
1601
|
-
};
|
|
1602
|
-
exports.de_DescribeChannelCommand = de_DescribeChannelCommand;
|
|
1603
|
-
const de_DescribeChannelCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "BadRequestException":
|
|
1611
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1612
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "ForbiddenException":
|
|
1614
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1615
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "ServiceFailureException":
|
|
1617
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1618
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "ServiceUnavailableException":
|
|
1620
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1621
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ThrottledClientException":
|
|
1623
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1624
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "UnauthorizedClientException":
|
|
1626
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1627
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1628
|
-
default:
|
|
1629
|
-
const parsedBody = parsedOutput.body;
|
|
1630
|
-
return throwDefaultError({
|
|
1631
|
-
output,
|
|
1632
|
-
parsedBody,
|
|
1633
|
-
errorCode,
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1636
|
-
};
|
|
1637
|
-
const de_DescribeChannelBanCommand = async (output, context) => {
|
|
1638
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1639
|
-
return de_DescribeChannelBanCommandError(output, context);
|
|
1640
|
-
}
|
|
1641
|
-
const contents = (0, smithy_client_1.map)({
|
|
1642
|
-
$metadata: deserializeMetadata(output),
|
|
1643
|
-
});
|
|
1644
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1645
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1646
|
-
ChannelBan: (_) => de_ChannelBan(_, context),
|
|
1647
|
-
});
|
|
1648
|
-
Object.assign(contents, doc);
|
|
1649
|
-
return contents;
|
|
1650
|
-
};
|
|
1651
|
-
exports.de_DescribeChannelBanCommand = de_DescribeChannelBanCommand;
|
|
1652
|
-
const de_DescribeChannelBanCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "BadRequestException":
|
|
1660
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1661
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ForbiddenException":
|
|
1663
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1664
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "NotFoundException":
|
|
1666
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1667
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ServiceFailureException":
|
|
1669
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1670
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ServiceUnavailableException":
|
|
1672
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1673
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ThrottledClientException":
|
|
1675
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1676
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "UnauthorizedClientException":
|
|
1678
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1679
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1680
|
-
default:
|
|
1681
|
-
const parsedBody = parsedOutput.body;
|
|
1682
|
-
return throwDefaultError({
|
|
1683
|
-
output,
|
|
1684
|
-
parsedBody,
|
|
1685
|
-
errorCode,
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
};
|
|
1689
|
-
const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
1690
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1691
|
-
return de_DescribeChannelFlowCommandError(output, context);
|
|
1692
|
-
}
|
|
1693
|
-
const contents = (0, smithy_client_1.map)({
|
|
1694
|
-
$metadata: deserializeMetadata(output),
|
|
1695
|
-
});
|
|
1696
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1697
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1698
|
-
ChannelFlow: (_) => de_ChannelFlow(_, context),
|
|
1699
|
-
});
|
|
1700
|
-
Object.assign(contents, doc);
|
|
1701
|
-
return contents;
|
|
1702
|
-
};
|
|
1703
|
-
exports.de_DescribeChannelFlowCommand = de_DescribeChannelFlowCommand;
|
|
1704
|
-
const de_DescribeChannelFlowCommandError = async (output, context) => {
|
|
1705
|
-
const parsedOutput = {
|
|
1706
|
-
...output,
|
|
1707
|
-
body: await parseErrorBody(output.body, context),
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "BadRequestException":
|
|
1712
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1713
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ForbiddenException":
|
|
1715
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1716
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ServiceFailureException":
|
|
1718
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1719
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ServiceUnavailableException":
|
|
1721
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1722
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ThrottledClientException":
|
|
1724
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1725
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "UnauthorizedClientException":
|
|
1727
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1728
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1729
|
-
default:
|
|
1730
|
-
const parsedBody = parsedOutput.body;
|
|
1731
|
-
return throwDefaultError({
|
|
1732
|
-
output,
|
|
1733
|
-
parsedBody,
|
|
1734
|
-
errorCode,
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
};
|
|
1738
|
-
const de_DescribeChannelMembershipCommand = async (output, context) => {
|
|
1739
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1740
|
-
return de_DescribeChannelMembershipCommandError(output, context);
|
|
1741
|
-
}
|
|
1742
|
-
const contents = (0, smithy_client_1.map)({
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
});
|
|
1745
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1746
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1747
|
-
ChannelMembership: (_) => de_ChannelMembership(_, context),
|
|
1748
|
-
});
|
|
1749
|
-
Object.assign(contents, doc);
|
|
1750
|
-
return contents;
|
|
1751
|
-
};
|
|
1752
|
-
exports.de_DescribeChannelMembershipCommand = de_DescribeChannelMembershipCommand;
|
|
1753
|
-
const de_DescribeChannelMembershipCommandError = async (output, context) => {
|
|
1754
|
-
const parsedOutput = {
|
|
1755
|
-
...output,
|
|
1756
|
-
body: await parseErrorBody(output.body, context),
|
|
1757
|
-
};
|
|
1758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
|
-
switch (errorCode) {
|
|
1760
|
-
case "BadRequestException":
|
|
1761
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1762
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "ForbiddenException":
|
|
1764
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1765
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "NotFoundException":
|
|
1767
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1768
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "ServiceFailureException":
|
|
1770
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1771
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "ServiceUnavailableException":
|
|
1773
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1774
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "ThrottledClientException":
|
|
1776
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1777
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "UnauthorizedClientException":
|
|
1779
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1780
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1781
|
-
default:
|
|
1782
|
-
const parsedBody = parsedOutput.body;
|
|
1783
|
-
return throwDefaultError({
|
|
1784
|
-
output,
|
|
1785
|
-
parsedBody,
|
|
1786
|
-
errorCode,
|
|
1787
|
-
});
|
|
1788
|
-
}
|
|
1789
|
-
};
|
|
1790
|
-
const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
|
|
1791
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1792
|
-
return de_DescribeChannelMembershipForAppInstanceUserCommandError(output, context);
|
|
1793
|
-
}
|
|
1794
|
-
const contents = (0, smithy_client_1.map)({
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
});
|
|
1797
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1798
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1799
|
-
ChannelMembership: (_) => de_ChannelMembershipForAppInstanceUserSummary(_, context),
|
|
1800
|
-
});
|
|
1801
|
-
Object.assign(contents, doc);
|
|
1802
|
-
return contents;
|
|
1803
|
-
};
|
|
1804
|
-
exports.de_DescribeChannelMembershipForAppInstanceUserCommand = de_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
1805
|
-
const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
|
|
1806
|
-
const parsedOutput = {
|
|
1807
|
-
...output,
|
|
1808
|
-
body: await parseErrorBody(output.body, context),
|
|
1809
|
-
};
|
|
1810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
|
-
switch (errorCode) {
|
|
1812
|
-
case "BadRequestException":
|
|
1813
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1814
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "ForbiddenException":
|
|
1816
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1817
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "ServiceFailureException":
|
|
1819
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1820
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ServiceUnavailableException":
|
|
1822
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1823
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ThrottledClientException":
|
|
1825
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1826
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "UnauthorizedClientException":
|
|
1828
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1829
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
return throwDefaultError({
|
|
1833
|
-
output,
|
|
1834
|
-
parsedBody,
|
|
1835
|
-
errorCode,
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
};
|
|
1839
|
-
const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
1840
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1841
|
-
return de_DescribeChannelModeratedByAppInstanceUserCommandError(output, context);
|
|
1842
|
-
}
|
|
1843
|
-
const contents = (0, smithy_client_1.map)({
|
|
1844
|
-
$metadata: deserializeMetadata(output),
|
|
1845
|
-
});
|
|
1846
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1847
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1848
|
-
Channel: (_) => de_ChannelModeratedByAppInstanceUserSummary(_, context),
|
|
1849
|
-
});
|
|
1850
|
-
Object.assign(contents, doc);
|
|
1851
|
-
return contents;
|
|
1852
|
-
};
|
|
1853
|
-
exports.de_DescribeChannelModeratedByAppInstanceUserCommand = de_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
1854
|
-
const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
1855
|
-
const parsedOutput = {
|
|
1856
|
-
...output,
|
|
1857
|
-
body: await parseErrorBody(output.body, context),
|
|
1858
|
-
};
|
|
1859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
|
-
switch (errorCode) {
|
|
1861
|
-
case "BadRequestException":
|
|
1862
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1863
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "ForbiddenException":
|
|
1865
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1866
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "ServiceFailureException":
|
|
1868
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1869
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "ServiceUnavailableException":
|
|
1871
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1872
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ThrottledClientException":
|
|
1874
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1875
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "UnauthorizedClientException":
|
|
1877
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1878
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
return throwDefaultError({
|
|
1882
|
-
output,
|
|
1883
|
-
parsedBody,
|
|
1884
|
-
errorCode,
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
|
-
const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
1889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
|
-
return de_DescribeChannelModeratorCommandError(output, context);
|
|
1891
|
-
}
|
|
1892
|
-
const contents = (0, smithy_client_1.map)({
|
|
1893
|
-
$metadata: deserializeMetadata(output),
|
|
1894
|
-
});
|
|
1895
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1896
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1897
|
-
ChannelModerator: (_) => de_ChannelModerator(_, context),
|
|
1898
|
-
});
|
|
1899
|
-
Object.assign(contents, doc);
|
|
1900
|
-
return contents;
|
|
1901
|
-
};
|
|
1902
|
-
exports.de_DescribeChannelModeratorCommand = de_DescribeChannelModeratorCommand;
|
|
1903
|
-
const de_DescribeChannelModeratorCommandError = async (output, context) => {
|
|
1904
|
-
const parsedOutput = {
|
|
1905
|
-
...output,
|
|
1906
|
-
body: await parseErrorBody(output.body, context),
|
|
1907
|
-
};
|
|
1908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
|
-
switch (errorCode) {
|
|
1910
|
-
case "BadRequestException":
|
|
1911
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1912
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "ForbiddenException":
|
|
1914
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1915
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "NotFoundException":
|
|
1917
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1918
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ServiceFailureException":
|
|
1920
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1921
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ServiceUnavailableException":
|
|
1923
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1924
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ThrottledClientException":
|
|
1926
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1927
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "UnauthorizedClientException":
|
|
1929
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1930
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1931
|
-
default:
|
|
1932
|
-
const parsedBody = parsedOutput.body;
|
|
1933
|
-
return throwDefaultError({
|
|
1934
|
-
output,
|
|
1935
|
-
parsedBody,
|
|
1936
|
-
errorCode,
|
|
1937
|
-
});
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1940
|
-
const de_DisassociateChannelFlowCommand = async (output, context) => {
|
|
1941
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1942
|
-
return de_DisassociateChannelFlowCommandError(output, context);
|
|
1943
|
-
}
|
|
1944
|
-
const contents = (0, smithy_client_1.map)({
|
|
1945
|
-
$metadata: deserializeMetadata(output),
|
|
1946
|
-
});
|
|
1947
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1948
|
-
return contents;
|
|
1949
|
-
};
|
|
1950
|
-
exports.de_DisassociateChannelFlowCommand = de_DisassociateChannelFlowCommand;
|
|
1951
|
-
const de_DisassociateChannelFlowCommandError = async (output, context) => {
|
|
1952
|
-
const parsedOutput = {
|
|
1953
|
-
...output,
|
|
1954
|
-
body: await parseErrorBody(output.body, context),
|
|
1955
|
-
};
|
|
1956
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
-
switch (errorCode) {
|
|
1958
|
-
case "BadRequestException":
|
|
1959
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1960
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ConflictException":
|
|
1962
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1963
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ForbiddenException":
|
|
1965
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1966
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "NotFoundException":
|
|
1968
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1969
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ServiceFailureException":
|
|
1971
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1972
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ServiceUnavailableException":
|
|
1974
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1975
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ThrottledClientException":
|
|
1977
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1978
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "UnauthorizedClientException":
|
|
1980
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1981
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1982
|
-
default:
|
|
1983
|
-
const parsedBody = parsedOutput.body;
|
|
1984
|
-
return throwDefaultError({
|
|
1985
|
-
output,
|
|
1986
|
-
parsedBody,
|
|
1987
|
-
errorCode,
|
|
1988
|
-
});
|
|
1989
|
-
}
|
|
1990
|
-
};
|
|
1991
|
-
const de_GetChannelMembershipPreferencesCommand = async (output, context) => {
|
|
1992
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1993
|
-
return de_GetChannelMembershipPreferencesCommandError(output, context);
|
|
1994
|
-
}
|
|
1995
|
-
const contents = (0, smithy_client_1.map)({
|
|
1996
|
-
$metadata: deserializeMetadata(output),
|
|
1997
|
-
});
|
|
1998
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1999
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2000
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2001
|
-
Member: smithy_client_1._json,
|
|
2002
|
-
Preferences: smithy_client_1._json,
|
|
2003
|
-
});
|
|
2004
|
-
Object.assign(contents, doc);
|
|
2005
|
-
return contents;
|
|
2006
|
-
};
|
|
2007
|
-
exports.de_GetChannelMembershipPreferencesCommand = de_GetChannelMembershipPreferencesCommand;
|
|
2008
|
-
const de_GetChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
2009
|
-
const parsedOutput = {
|
|
2010
|
-
...output,
|
|
2011
|
-
body: await parseErrorBody(output.body, context),
|
|
2012
|
-
};
|
|
2013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
|
-
switch (errorCode) {
|
|
2015
|
-
case "BadRequestException":
|
|
2016
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2017
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ForbiddenException":
|
|
2019
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2020
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ServiceFailureException":
|
|
2022
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2023
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ServiceUnavailableException":
|
|
2025
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2026
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "ThrottledClientException":
|
|
2028
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2029
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "UnauthorizedClientException":
|
|
2031
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2032
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2033
|
-
default:
|
|
2034
|
-
const parsedBody = parsedOutput.body;
|
|
2035
|
-
return throwDefaultError({
|
|
2036
|
-
output,
|
|
2037
|
-
parsedBody,
|
|
2038
|
-
errorCode,
|
|
2039
|
-
});
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
2042
|
-
const de_GetChannelMessageCommand = async (output, context) => {
|
|
2043
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2044
|
-
return de_GetChannelMessageCommandError(output, context);
|
|
2045
|
-
}
|
|
2046
|
-
const contents = (0, smithy_client_1.map)({
|
|
2047
|
-
$metadata: deserializeMetadata(output),
|
|
2048
|
-
});
|
|
2049
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2050
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2051
|
-
ChannelMessage: (_) => de_ChannelMessage(_, context),
|
|
2052
|
-
});
|
|
2053
|
-
Object.assign(contents, doc);
|
|
2054
|
-
return contents;
|
|
2055
|
-
};
|
|
2056
|
-
exports.de_GetChannelMessageCommand = de_GetChannelMessageCommand;
|
|
2057
|
-
const de_GetChannelMessageCommandError = async (output, context) => {
|
|
2058
|
-
const parsedOutput = {
|
|
2059
|
-
...output,
|
|
2060
|
-
body: await parseErrorBody(output.body, context),
|
|
2061
|
-
};
|
|
2062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
|
-
switch (errorCode) {
|
|
2064
|
-
case "BadRequestException":
|
|
2065
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2066
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "ForbiddenException":
|
|
2068
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2069
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "NotFoundException":
|
|
2071
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2072
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ServiceFailureException":
|
|
2074
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2075
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ServiceUnavailableException":
|
|
2077
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2078
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "ThrottledClientException":
|
|
2080
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2081
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2082
|
-
case "UnauthorizedClientException":
|
|
2083
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2084
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2085
|
-
default:
|
|
2086
|
-
const parsedBody = parsedOutput.body;
|
|
2087
|
-
return throwDefaultError({
|
|
2088
|
-
output,
|
|
2089
|
-
parsedBody,
|
|
2090
|
-
errorCode,
|
|
2091
|
-
});
|
|
2092
|
-
}
|
|
2093
|
-
};
|
|
2094
|
-
const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
2095
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2096
|
-
return de_GetChannelMessageStatusCommandError(output, context);
|
|
2097
|
-
}
|
|
2098
|
-
const contents = (0, smithy_client_1.map)({
|
|
2099
|
-
$metadata: deserializeMetadata(output),
|
|
2100
|
-
});
|
|
2101
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2102
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2103
|
-
Status: smithy_client_1._json,
|
|
2104
|
-
});
|
|
2105
|
-
Object.assign(contents, doc);
|
|
2106
|
-
return contents;
|
|
2107
|
-
};
|
|
2108
|
-
exports.de_GetChannelMessageStatusCommand = de_GetChannelMessageStatusCommand;
|
|
2109
|
-
const de_GetChannelMessageStatusCommandError = async (output, context) => {
|
|
2110
|
-
const parsedOutput = {
|
|
2111
|
-
...output,
|
|
2112
|
-
body: await parseErrorBody(output.body, context),
|
|
2113
|
-
};
|
|
2114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
|
-
switch (errorCode) {
|
|
2116
|
-
case "BadRequestException":
|
|
2117
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2118
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "ForbiddenException":
|
|
2120
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2121
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "ServiceFailureException":
|
|
2123
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2124
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ServiceUnavailableException":
|
|
2126
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2127
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "ThrottledClientException":
|
|
2129
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2130
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "UnauthorizedClientException":
|
|
2132
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2133
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2134
|
-
default:
|
|
2135
|
-
const parsedBody = parsedOutput.body;
|
|
2136
|
-
return throwDefaultError({
|
|
2137
|
-
output,
|
|
2138
|
-
parsedBody,
|
|
2139
|
-
errorCode,
|
|
2140
|
-
});
|
|
2141
|
-
}
|
|
2142
|
-
};
|
|
2143
|
-
const de_GetMessagingSessionEndpointCommand = async (output, context) => {
|
|
2144
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2145
|
-
return de_GetMessagingSessionEndpointCommandError(output, context);
|
|
2146
|
-
}
|
|
2147
|
-
const contents = (0, smithy_client_1.map)({
|
|
2148
|
-
$metadata: deserializeMetadata(output),
|
|
2149
|
-
});
|
|
2150
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2151
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2152
|
-
Endpoint: smithy_client_1._json,
|
|
2153
|
-
});
|
|
2154
|
-
Object.assign(contents, doc);
|
|
2155
|
-
return contents;
|
|
2156
|
-
};
|
|
2157
|
-
exports.de_GetMessagingSessionEndpointCommand = de_GetMessagingSessionEndpointCommand;
|
|
2158
|
-
const de_GetMessagingSessionEndpointCommandError = async (output, context) => {
|
|
2159
|
-
const parsedOutput = {
|
|
2160
|
-
...output,
|
|
2161
|
-
body: await parseErrorBody(output.body, context),
|
|
2162
|
-
};
|
|
2163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
-
switch (errorCode) {
|
|
2165
|
-
case "ForbiddenException":
|
|
2166
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2167
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "ServiceFailureException":
|
|
2169
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2170
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ServiceUnavailableException":
|
|
2172
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2173
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ThrottledClientException":
|
|
2175
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2176
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "UnauthorizedClientException":
|
|
2178
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2179
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2180
|
-
default:
|
|
2181
|
-
const parsedBody = parsedOutput.body;
|
|
2182
|
-
return throwDefaultError({
|
|
2183
|
-
output,
|
|
2184
|
-
parsedBody,
|
|
2185
|
-
errorCode,
|
|
2186
|
-
});
|
|
2187
|
-
}
|
|
2188
|
-
};
|
|
2189
|
-
const de_GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
2190
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2191
|
-
return de_GetMessagingStreamingConfigurationsCommandError(output, context);
|
|
2192
|
-
}
|
|
2193
|
-
const contents = (0, smithy_client_1.map)({
|
|
2194
|
-
$metadata: deserializeMetadata(output),
|
|
2195
|
-
});
|
|
2196
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2197
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2198
|
-
StreamingConfigurations: smithy_client_1._json,
|
|
2199
|
-
});
|
|
2200
|
-
Object.assign(contents, doc);
|
|
2201
|
-
return contents;
|
|
2202
|
-
};
|
|
2203
|
-
exports.de_GetMessagingStreamingConfigurationsCommand = de_GetMessagingStreamingConfigurationsCommand;
|
|
2204
|
-
const de_GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
2205
|
-
const parsedOutput = {
|
|
2206
|
-
...output,
|
|
2207
|
-
body: await parseErrorBody(output.body, context),
|
|
2208
|
-
};
|
|
2209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2210
|
-
switch (errorCode) {
|
|
2211
|
-
case "BadRequestException":
|
|
2212
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2213
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ForbiddenException":
|
|
2215
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2216
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "NotFoundException":
|
|
2218
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2219
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "ServiceFailureException":
|
|
2221
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2222
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ServiceUnavailableException":
|
|
2224
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2225
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "ThrottledClientException":
|
|
2227
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2228
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "UnauthorizedClientException":
|
|
2230
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2231
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2232
|
-
default:
|
|
2233
|
-
const parsedBody = parsedOutput.body;
|
|
2234
|
-
return throwDefaultError({
|
|
2235
|
-
output,
|
|
2236
|
-
parsedBody,
|
|
2237
|
-
errorCode,
|
|
2238
|
-
});
|
|
2239
|
-
}
|
|
2240
|
-
};
|
|
2241
|
-
const de_ListChannelBansCommand = async (output, context) => {
|
|
2242
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2243
|
-
return de_ListChannelBansCommandError(output, context);
|
|
2244
|
-
}
|
|
2245
|
-
const contents = (0, smithy_client_1.map)({
|
|
2246
|
-
$metadata: deserializeMetadata(output),
|
|
2247
|
-
});
|
|
2248
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2249
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2250
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2251
|
-
ChannelBans: smithy_client_1._json,
|
|
2252
|
-
NextToken: smithy_client_1.expectString,
|
|
2253
|
-
});
|
|
2254
|
-
Object.assign(contents, doc);
|
|
2255
|
-
return contents;
|
|
2256
|
-
};
|
|
2257
|
-
exports.de_ListChannelBansCommand = de_ListChannelBansCommand;
|
|
2258
|
-
const de_ListChannelBansCommandError = async (output, context) => {
|
|
2259
|
-
const parsedOutput = {
|
|
2260
|
-
...output,
|
|
2261
|
-
body: await parseErrorBody(output.body, context),
|
|
2262
|
-
};
|
|
2263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2264
|
-
switch (errorCode) {
|
|
2265
|
-
case "BadRequestException":
|
|
2266
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2267
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "ForbiddenException":
|
|
2269
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2270
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ServiceFailureException":
|
|
2272
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2273
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ServiceUnavailableException":
|
|
2275
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2276
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "ThrottledClientException":
|
|
2278
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2279
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "UnauthorizedClientException":
|
|
2281
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2282
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2283
|
-
default:
|
|
2284
|
-
const parsedBody = parsedOutput.body;
|
|
2285
|
-
return throwDefaultError({
|
|
2286
|
-
output,
|
|
2287
|
-
parsedBody,
|
|
2288
|
-
errorCode,
|
|
2289
|
-
});
|
|
2290
|
-
}
|
|
2291
|
-
};
|
|
2292
|
-
const de_ListChannelFlowsCommand = async (output, context) => {
|
|
2293
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2294
|
-
return de_ListChannelFlowsCommandError(output, context);
|
|
2295
|
-
}
|
|
2296
|
-
const contents = (0, smithy_client_1.map)({
|
|
2297
|
-
$metadata: deserializeMetadata(output),
|
|
2298
|
-
});
|
|
2299
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2300
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2301
|
-
ChannelFlows: smithy_client_1._json,
|
|
2302
|
-
NextToken: smithy_client_1.expectString,
|
|
2303
|
-
});
|
|
2304
|
-
Object.assign(contents, doc);
|
|
2305
|
-
return contents;
|
|
2306
|
-
};
|
|
2307
|
-
exports.de_ListChannelFlowsCommand = de_ListChannelFlowsCommand;
|
|
2308
|
-
const de_ListChannelFlowsCommandError = async (output, context) => {
|
|
2309
|
-
const parsedOutput = {
|
|
2310
|
-
...output,
|
|
2311
|
-
body: await parseErrorBody(output.body, context),
|
|
2312
|
-
};
|
|
2313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
-
switch (errorCode) {
|
|
2315
|
-
case "BadRequestException":
|
|
2316
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2317
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "ForbiddenException":
|
|
2319
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2320
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ServiceFailureException":
|
|
2322
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2323
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ServiceUnavailableException":
|
|
2325
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2326
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ThrottledClientException":
|
|
2328
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2329
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "UnauthorizedClientException":
|
|
2331
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2332
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode,
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
2343
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2344
|
-
return de_ListChannelMembershipsCommandError(output, context);
|
|
2345
|
-
}
|
|
2346
|
-
const contents = (0, smithy_client_1.map)({
|
|
2347
|
-
$metadata: deserializeMetadata(output),
|
|
2348
|
-
});
|
|
2349
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2350
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2351
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2352
|
-
ChannelMemberships: smithy_client_1._json,
|
|
2353
|
-
NextToken: smithy_client_1.expectString,
|
|
2354
|
-
});
|
|
2355
|
-
Object.assign(contents, doc);
|
|
2356
|
-
return contents;
|
|
2357
|
-
};
|
|
2358
|
-
exports.de_ListChannelMembershipsCommand = de_ListChannelMembershipsCommand;
|
|
2359
|
-
const de_ListChannelMembershipsCommandError = async (output, context) => {
|
|
2360
|
-
const parsedOutput = {
|
|
2361
|
-
...output,
|
|
2362
|
-
body: await parseErrorBody(output.body, context),
|
|
2363
|
-
};
|
|
2364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2365
|
-
switch (errorCode) {
|
|
2366
|
-
case "BadRequestException":
|
|
2367
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2368
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ForbiddenException":
|
|
2370
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2371
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ServiceFailureException":
|
|
2373
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2374
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "ServiceUnavailableException":
|
|
2376
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2377
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "ThrottledClientException":
|
|
2379
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2380
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "UnauthorizedClientException":
|
|
2382
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2383
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2384
|
-
default:
|
|
2385
|
-
const parsedBody = parsedOutput.body;
|
|
2386
|
-
return throwDefaultError({
|
|
2387
|
-
output,
|
|
2388
|
-
parsedBody,
|
|
2389
|
-
errorCode,
|
|
2390
|
-
});
|
|
2391
|
-
}
|
|
2392
|
-
};
|
|
2393
|
-
const de_ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
|
|
2394
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2395
|
-
return de_ListChannelMembershipsForAppInstanceUserCommandError(output, context);
|
|
2396
|
-
}
|
|
2397
|
-
const contents = (0, smithy_client_1.map)({
|
|
2398
|
-
$metadata: deserializeMetadata(output),
|
|
2399
|
-
});
|
|
2400
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2401
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2402
|
-
ChannelMemberships: (_) => de_ChannelMembershipForAppInstanceUserSummaryList(_, context),
|
|
2403
|
-
NextToken: smithy_client_1.expectString,
|
|
2404
|
-
});
|
|
2405
|
-
Object.assign(contents, doc);
|
|
2406
|
-
return contents;
|
|
2407
|
-
};
|
|
2408
|
-
exports.de_ListChannelMembershipsForAppInstanceUserCommand = de_ListChannelMembershipsForAppInstanceUserCommand;
|
|
2409
|
-
const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
|
|
2410
|
-
const parsedOutput = {
|
|
2411
|
-
...output,
|
|
2412
|
-
body: await parseErrorBody(output.body, context),
|
|
2413
|
-
};
|
|
2414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
|
-
switch (errorCode) {
|
|
2416
|
-
case "BadRequestException":
|
|
2417
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2418
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "ForbiddenException":
|
|
2420
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2421
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ServiceFailureException":
|
|
2423
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2424
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ServiceUnavailableException":
|
|
2426
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2427
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "ThrottledClientException":
|
|
2429
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2430
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "UnauthorizedClientException":
|
|
2432
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2433
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2434
|
-
default:
|
|
2435
|
-
const parsedBody = parsedOutput.body;
|
|
2436
|
-
return throwDefaultError({
|
|
2437
|
-
output,
|
|
2438
|
-
parsedBody,
|
|
2439
|
-
errorCode,
|
|
2440
|
-
});
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
const de_ListChannelMessagesCommand = async (output, context) => {
|
|
2444
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2445
|
-
return de_ListChannelMessagesCommandError(output, context);
|
|
2446
|
-
}
|
|
2447
|
-
const contents = (0, smithy_client_1.map)({
|
|
2448
|
-
$metadata: deserializeMetadata(output),
|
|
2449
|
-
});
|
|
2450
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2451
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2452
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2453
|
-
ChannelMessages: (_) => de_ChannelMessageSummaryList(_, context),
|
|
2454
|
-
NextToken: smithy_client_1.expectString,
|
|
2455
|
-
SubChannelId: smithy_client_1.expectString,
|
|
2456
|
-
});
|
|
2457
|
-
Object.assign(contents, doc);
|
|
2458
|
-
return contents;
|
|
2459
|
-
};
|
|
2460
|
-
exports.de_ListChannelMessagesCommand = de_ListChannelMessagesCommand;
|
|
2461
|
-
const de_ListChannelMessagesCommandError = async (output, context) => {
|
|
2462
|
-
const parsedOutput = {
|
|
2463
|
-
...output,
|
|
2464
|
-
body: await parseErrorBody(output.body, context),
|
|
2465
|
-
};
|
|
2466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
|
-
switch (errorCode) {
|
|
2468
|
-
case "BadRequestException":
|
|
2469
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2470
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ForbiddenException":
|
|
2472
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2473
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "ServiceFailureException":
|
|
2475
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2476
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ServiceUnavailableException":
|
|
2478
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2479
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "ThrottledClientException":
|
|
2481
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2482
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "UnauthorizedClientException":
|
|
2484
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2485
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2486
|
-
default:
|
|
2487
|
-
const parsedBody = parsedOutput.body;
|
|
2488
|
-
return throwDefaultError({
|
|
2489
|
-
output,
|
|
2490
|
-
parsedBody,
|
|
2491
|
-
errorCode,
|
|
2492
|
-
});
|
|
2493
|
-
}
|
|
2494
|
-
};
|
|
2495
|
-
const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
2496
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2497
|
-
return de_ListChannelModeratorsCommandError(output, context);
|
|
2498
|
-
}
|
|
2499
|
-
const contents = (0, smithy_client_1.map)({
|
|
2500
|
-
$metadata: deserializeMetadata(output),
|
|
2501
|
-
});
|
|
2502
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2503
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2504
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2505
|
-
ChannelModerators: smithy_client_1._json,
|
|
2506
|
-
NextToken: smithy_client_1.expectString,
|
|
2507
|
-
});
|
|
2508
|
-
Object.assign(contents, doc);
|
|
2509
|
-
return contents;
|
|
2510
|
-
};
|
|
2511
|
-
exports.de_ListChannelModeratorsCommand = de_ListChannelModeratorsCommand;
|
|
2512
|
-
const de_ListChannelModeratorsCommandError = async (output, context) => {
|
|
2513
|
-
const parsedOutput = {
|
|
2514
|
-
...output,
|
|
2515
|
-
body: await parseErrorBody(output.body, context),
|
|
2516
|
-
};
|
|
2517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
|
-
switch (errorCode) {
|
|
2519
|
-
case "BadRequestException":
|
|
2520
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2521
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "ForbiddenException":
|
|
2523
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2524
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ServiceFailureException":
|
|
2526
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2527
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "ServiceUnavailableException":
|
|
2529
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2530
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ThrottledClientException":
|
|
2532
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2533
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "UnauthorizedClientException":
|
|
2535
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2536
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode,
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
|
-
const de_ListChannelsCommand = async (output, context) => {
|
|
2547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2548
|
-
return de_ListChannelsCommandError(output, context);
|
|
2549
|
-
}
|
|
2550
|
-
const contents = (0, smithy_client_1.map)({
|
|
2551
|
-
$metadata: deserializeMetadata(output),
|
|
2552
|
-
});
|
|
2553
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2554
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2555
|
-
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
2556
|
-
NextToken: smithy_client_1.expectString,
|
|
2557
|
-
});
|
|
2558
|
-
Object.assign(contents, doc);
|
|
2559
|
-
return contents;
|
|
2560
|
-
};
|
|
2561
|
-
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
2562
|
-
const de_ListChannelsCommandError = async (output, context) => {
|
|
2563
|
-
const parsedOutput = {
|
|
2564
|
-
...output,
|
|
2565
|
-
body: await parseErrorBody(output.body, context),
|
|
2566
|
-
};
|
|
2567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
-
switch (errorCode) {
|
|
2569
|
-
case "BadRequestException":
|
|
2570
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2571
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ForbiddenException":
|
|
2573
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2574
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ServiceFailureException":
|
|
2576
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2577
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "ServiceUnavailableException":
|
|
2579
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2580
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ThrottledClientException":
|
|
2582
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2583
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "UnauthorizedClientException":
|
|
2585
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2586
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2587
|
-
default:
|
|
2588
|
-
const parsedBody = parsedOutput.body;
|
|
2589
|
-
return throwDefaultError({
|
|
2590
|
-
output,
|
|
2591
|
-
parsedBody,
|
|
2592
|
-
errorCode,
|
|
2593
|
-
});
|
|
2594
|
-
}
|
|
2595
|
-
};
|
|
2596
|
-
const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
|
|
2597
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2598
|
-
return de_ListChannelsAssociatedWithChannelFlowCommandError(output, context);
|
|
2599
|
-
}
|
|
2600
|
-
const contents = (0, smithy_client_1.map)({
|
|
2601
|
-
$metadata: deserializeMetadata(output),
|
|
2602
|
-
});
|
|
2603
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2604
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2605
|
-
Channels: smithy_client_1._json,
|
|
2606
|
-
NextToken: smithy_client_1.expectString,
|
|
2607
|
-
});
|
|
2608
|
-
Object.assign(contents, doc);
|
|
2609
|
-
return contents;
|
|
2610
|
-
};
|
|
2611
|
-
exports.de_ListChannelsAssociatedWithChannelFlowCommand = de_ListChannelsAssociatedWithChannelFlowCommand;
|
|
2612
|
-
const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
|
|
2613
|
-
const parsedOutput = {
|
|
2614
|
-
...output,
|
|
2615
|
-
body: await parseErrorBody(output.body, context),
|
|
2616
|
-
};
|
|
2617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
|
-
switch (errorCode) {
|
|
2619
|
-
case "BadRequestException":
|
|
2620
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2621
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "ForbiddenException":
|
|
2623
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2624
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "ServiceFailureException":
|
|
2626
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2627
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ServiceUnavailableException":
|
|
2629
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2630
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ThrottledClientException":
|
|
2632
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2633
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "UnauthorizedClientException":
|
|
2635
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2636
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2637
|
-
default:
|
|
2638
|
-
const parsedBody = parsedOutput.body;
|
|
2639
|
-
return throwDefaultError({
|
|
2640
|
-
output,
|
|
2641
|
-
parsedBody,
|
|
2642
|
-
errorCode,
|
|
2643
|
-
});
|
|
2644
|
-
}
|
|
2645
|
-
};
|
|
2646
|
-
const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
2647
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2648
|
-
return de_ListChannelsModeratedByAppInstanceUserCommandError(output, context);
|
|
2649
|
-
}
|
|
2650
|
-
const contents = (0, smithy_client_1.map)({
|
|
2651
|
-
$metadata: deserializeMetadata(output),
|
|
2652
|
-
});
|
|
2653
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2654
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2655
|
-
Channels: (_) => de_ChannelModeratedByAppInstanceUserSummaryList(_, context),
|
|
2656
|
-
NextToken: smithy_client_1.expectString,
|
|
2657
|
-
});
|
|
2658
|
-
Object.assign(contents, doc);
|
|
2659
|
-
return contents;
|
|
2660
|
-
};
|
|
2661
|
-
exports.de_ListChannelsModeratedByAppInstanceUserCommand = de_ListChannelsModeratedByAppInstanceUserCommand;
|
|
2662
|
-
const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
2663
|
-
const parsedOutput = {
|
|
2664
|
-
...output,
|
|
2665
|
-
body: await parseErrorBody(output.body, context),
|
|
2666
|
-
};
|
|
2667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
|
-
switch (errorCode) {
|
|
2669
|
-
case "BadRequestException":
|
|
2670
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2671
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ForbiddenException":
|
|
2673
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2674
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ServiceFailureException":
|
|
2676
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2677
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "ServiceUnavailableException":
|
|
2679
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2680
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ThrottledClientException":
|
|
2682
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2683
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "UnauthorizedClientException":
|
|
2685
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2686
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2687
|
-
default:
|
|
2688
|
-
const parsedBody = parsedOutput.body;
|
|
2689
|
-
return throwDefaultError({
|
|
2690
|
-
output,
|
|
2691
|
-
parsedBody,
|
|
2692
|
-
errorCode,
|
|
2693
|
-
});
|
|
2694
|
-
}
|
|
2695
|
-
};
|
|
2696
|
-
const de_ListSubChannelsCommand = async (output, context) => {
|
|
2697
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2698
|
-
return de_ListSubChannelsCommandError(output, context);
|
|
2699
|
-
}
|
|
2700
|
-
const contents = (0, smithy_client_1.map)({
|
|
2701
|
-
$metadata: deserializeMetadata(output),
|
|
2702
|
-
});
|
|
2703
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2704
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2705
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2706
|
-
NextToken: smithy_client_1.expectString,
|
|
2707
|
-
SubChannels: smithy_client_1._json,
|
|
2708
|
-
});
|
|
2709
|
-
Object.assign(contents, doc);
|
|
2710
|
-
return contents;
|
|
2711
|
-
};
|
|
2712
|
-
exports.de_ListSubChannelsCommand = de_ListSubChannelsCommand;
|
|
2713
|
-
const de_ListSubChannelsCommandError = async (output, context) => {
|
|
2714
|
-
const parsedOutput = {
|
|
2715
|
-
...output,
|
|
2716
|
-
body: await parseErrorBody(output.body, context),
|
|
2717
|
-
};
|
|
2718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
|
-
switch (errorCode) {
|
|
2720
|
-
case "BadRequestException":
|
|
2721
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2722
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "ForbiddenException":
|
|
2724
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2725
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "ServiceFailureException":
|
|
2727
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2728
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ServiceUnavailableException":
|
|
2730
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2731
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ThrottledClientException":
|
|
2733
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2734
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "UnauthorizedClientException":
|
|
2736
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2737
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2738
|
-
default:
|
|
2739
|
-
const parsedBody = parsedOutput.body;
|
|
2740
|
-
return throwDefaultError({
|
|
2741
|
-
output,
|
|
2742
|
-
parsedBody,
|
|
2743
|
-
errorCode,
|
|
2744
|
-
});
|
|
2745
|
-
}
|
|
2746
|
-
};
|
|
2747
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2748
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2749
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2750
|
-
}
|
|
2751
|
-
const contents = (0, smithy_client_1.map)({
|
|
2752
|
-
$metadata: deserializeMetadata(output),
|
|
2753
|
-
});
|
|
2754
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2755
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2756
|
-
Tags: smithy_client_1._json,
|
|
2757
|
-
});
|
|
2758
|
-
Object.assign(contents, doc);
|
|
2759
|
-
return contents;
|
|
2760
|
-
};
|
|
2761
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2762
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2763
|
-
const parsedOutput = {
|
|
2764
|
-
...output,
|
|
2765
|
-
body: await parseErrorBody(output.body, context),
|
|
2766
|
-
};
|
|
2767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
|
-
switch (errorCode) {
|
|
2769
|
-
case "BadRequestException":
|
|
2770
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2771
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "ForbiddenException":
|
|
2773
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2774
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ServiceFailureException":
|
|
2776
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2777
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "ServiceUnavailableException":
|
|
2779
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2780
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ThrottledClientException":
|
|
2782
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2783
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "UnauthorizedClientException":
|
|
2785
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2786
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2787
|
-
default:
|
|
2788
|
-
const parsedBody = parsedOutput.body;
|
|
2789
|
-
return throwDefaultError({
|
|
2790
|
-
output,
|
|
2791
|
-
parsedBody,
|
|
2792
|
-
errorCode,
|
|
2793
|
-
});
|
|
2794
|
-
}
|
|
2795
|
-
};
|
|
2796
|
-
const de_PutChannelExpirationSettingsCommand = async (output, context) => {
|
|
2797
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2798
|
-
return de_PutChannelExpirationSettingsCommandError(output, context);
|
|
2799
|
-
}
|
|
2800
|
-
const contents = (0, smithy_client_1.map)({
|
|
2801
|
-
$metadata: deserializeMetadata(output),
|
|
2802
|
-
});
|
|
2803
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2804
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2805
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2806
|
-
ExpirationSettings: smithy_client_1._json,
|
|
2807
|
-
});
|
|
2808
|
-
Object.assign(contents, doc);
|
|
2809
|
-
return contents;
|
|
2810
|
-
};
|
|
2811
|
-
exports.de_PutChannelExpirationSettingsCommand = de_PutChannelExpirationSettingsCommand;
|
|
2812
|
-
const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
|
|
2813
|
-
const parsedOutput = {
|
|
2814
|
-
...output,
|
|
2815
|
-
body: await parseErrorBody(output.body, context),
|
|
2816
|
-
};
|
|
2817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2818
|
-
switch (errorCode) {
|
|
2819
|
-
case "BadRequestException":
|
|
2820
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2821
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "ConflictException":
|
|
2823
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2824
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "ForbiddenException":
|
|
2826
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2827
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ServiceFailureException":
|
|
2829
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2830
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "ServiceUnavailableException":
|
|
2832
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2833
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "ThrottledClientException":
|
|
2835
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2836
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "UnauthorizedClientException":
|
|
2838
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2839
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2840
|
-
default:
|
|
2841
|
-
const parsedBody = parsedOutput.body;
|
|
2842
|
-
return throwDefaultError({
|
|
2843
|
-
output,
|
|
2844
|
-
parsedBody,
|
|
2845
|
-
errorCode,
|
|
2846
|
-
});
|
|
2847
|
-
}
|
|
2848
|
-
};
|
|
2849
|
-
const de_PutChannelMembershipPreferencesCommand = async (output, context) => {
|
|
2850
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2851
|
-
return de_PutChannelMembershipPreferencesCommandError(output, context);
|
|
2852
|
-
}
|
|
2853
|
-
const contents = (0, smithy_client_1.map)({
|
|
2854
|
-
$metadata: deserializeMetadata(output),
|
|
2855
|
-
});
|
|
2856
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2857
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2858
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2859
|
-
Member: smithy_client_1._json,
|
|
2860
|
-
Preferences: smithy_client_1._json,
|
|
2861
|
-
});
|
|
2862
|
-
Object.assign(contents, doc);
|
|
2863
|
-
return contents;
|
|
2864
|
-
};
|
|
2865
|
-
exports.de_PutChannelMembershipPreferencesCommand = de_PutChannelMembershipPreferencesCommand;
|
|
2866
|
-
const de_PutChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
2867
|
-
const parsedOutput = {
|
|
2868
|
-
...output,
|
|
2869
|
-
body: await parseErrorBody(output.body, context),
|
|
2870
|
-
};
|
|
2871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
|
-
switch (errorCode) {
|
|
2873
|
-
case "BadRequestException":
|
|
2874
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2875
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2876
|
-
case "ConflictException":
|
|
2877
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2878
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2879
|
-
case "ForbiddenException":
|
|
2880
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2881
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2882
|
-
case "ServiceFailureException":
|
|
2883
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2884
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "ServiceUnavailableException":
|
|
2886
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2887
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ThrottledClientException":
|
|
2889
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2890
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "UnauthorizedClientException":
|
|
2892
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2893
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2894
|
-
default:
|
|
2895
|
-
const parsedBody = parsedOutput.body;
|
|
2896
|
-
return throwDefaultError({
|
|
2897
|
-
output,
|
|
2898
|
-
parsedBody,
|
|
2899
|
-
errorCode,
|
|
2900
|
-
});
|
|
2901
|
-
}
|
|
2902
|
-
};
|
|
2903
|
-
const de_PutMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
2904
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2905
|
-
return de_PutMessagingStreamingConfigurationsCommandError(output, context);
|
|
2906
|
-
}
|
|
2907
|
-
const contents = (0, smithy_client_1.map)({
|
|
2908
|
-
$metadata: deserializeMetadata(output),
|
|
2909
|
-
});
|
|
2910
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2911
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2912
|
-
StreamingConfigurations: smithy_client_1._json,
|
|
2913
|
-
});
|
|
2914
|
-
Object.assign(contents, doc);
|
|
2915
|
-
return contents;
|
|
2916
|
-
};
|
|
2917
|
-
exports.de_PutMessagingStreamingConfigurationsCommand = de_PutMessagingStreamingConfigurationsCommand;
|
|
2918
|
-
const de_PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
2919
|
-
const parsedOutput = {
|
|
2920
|
-
...output,
|
|
2921
|
-
body: await parseErrorBody(output.body, context),
|
|
2922
|
-
};
|
|
2923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
|
-
switch (errorCode) {
|
|
2925
|
-
case "BadRequestException":
|
|
2926
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2927
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "ConflictException":
|
|
2929
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2930
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "ForbiddenException":
|
|
2932
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2933
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "NotFoundException":
|
|
2935
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2936
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ServiceFailureException":
|
|
2938
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2939
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ServiceUnavailableException":
|
|
2941
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2942
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "ThrottledClientException":
|
|
2944
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2945
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2946
|
-
case "UnauthorizedClientException":
|
|
2947
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2948
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2949
|
-
default:
|
|
2950
|
-
const parsedBody = parsedOutput.body;
|
|
2951
|
-
return throwDefaultError({
|
|
2952
|
-
output,
|
|
2953
|
-
parsedBody,
|
|
2954
|
-
errorCode,
|
|
2955
|
-
});
|
|
2956
|
-
}
|
|
2957
|
-
};
|
|
2958
|
-
const de_RedactChannelMessageCommand = async (output, context) => {
|
|
2959
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2960
|
-
return de_RedactChannelMessageCommandError(output, context);
|
|
2961
|
-
}
|
|
2962
|
-
const contents = (0, smithy_client_1.map)({
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
});
|
|
2965
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2966
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2967
|
-
ChannelArn: smithy_client_1.expectString,
|
|
2968
|
-
MessageId: smithy_client_1.expectString,
|
|
2969
|
-
SubChannelId: smithy_client_1.expectString,
|
|
2970
|
-
});
|
|
2971
|
-
Object.assign(contents, doc);
|
|
2972
|
-
return contents;
|
|
2973
|
-
};
|
|
2974
|
-
exports.de_RedactChannelMessageCommand = de_RedactChannelMessageCommand;
|
|
2975
|
-
const de_RedactChannelMessageCommandError = async (output, context) => {
|
|
2976
|
-
const parsedOutput = {
|
|
2977
|
-
...output,
|
|
2978
|
-
body: await parseErrorBody(output.body, context),
|
|
2979
|
-
};
|
|
2980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2981
|
-
switch (errorCode) {
|
|
2982
|
-
case "BadRequestException":
|
|
2983
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2984
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ConflictException":
|
|
2986
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2987
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ForbiddenException":
|
|
2989
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2990
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "ServiceFailureException":
|
|
2992
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2993
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "ServiceUnavailableException":
|
|
2995
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2996
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "ThrottledClientException":
|
|
2998
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2999
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3000
|
-
case "UnauthorizedClientException":
|
|
3001
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3002
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3003
|
-
default:
|
|
3004
|
-
const parsedBody = parsedOutput.body;
|
|
3005
|
-
return throwDefaultError({
|
|
3006
|
-
output,
|
|
3007
|
-
parsedBody,
|
|
3008
|
-
errorCode,
|
|
3009
|
-
});
|
|
3010
|
-
}
|
|
3011
|
-
};
|
|
3012
|
-
const de_SearchChannelsCommand = async (output, context) => {
|
|
3013
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3014
|
-
return de_SearchChannelsCommandError(output, context);
|
|
3015
|
-
}
|
|
3016
|
-
const contents = (0, smithy_client_1.map)({
|
|
3017
|
-
$metadata: deserializeMetadata(output),
|
|
3018
|
-
});
|
|
3019
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3020
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3021
|
-
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
3022
|
-
NextToken: smithy_client_1.expectString,
|
|
3023
|
-
});
|
|
3024
|
-
Object.assign(contents, doc);
|
|
3025
|
-
return contents;
|
|
3026
|
-
};
|
|
3027
|
-
exports.de_SearchChannelsCommand = de_SearchChannelsCommand;
|
|
3028
|
-
const de_SearchChannelsCommandError = async (output, context) => {
|
|
3029
|
-
const parsedOutput = {
|
|
3030
|
-
...output,
|
|
3031
|
-
body: await parseErrorBody(output.body, context),
|
|
3032
|
-
};
|
|
3033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
|
-
switch (errorCode) {
|
|
3035
|
-
case "BadRequestException":
|
|
3036
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3037
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "ForbiddenException":
|
|
3039
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3040
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3041
|
-
case "ServiceFailureException":
|
|
3042
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3043
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "ServiceUnavailableException":
|
|
3045
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3046
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "ThrottledClientException":
|
|
3048
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3049
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "UnauthorizedClientException":
|
|
3051
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3052
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3053
|
-
default:
|
|
3054
|
-
const parsedBody = parsedOutput.body;
|
|
3055
|
-
return throwDefaultError({
|
|
3056
|
-
output,
|
|
3057
|
-
parsedBody,
|
|
3058
|
-
errorCode,
|
|
3059
|
-
});
|
|
3060
|
-
}
|
|
3061
|
-
};
|
|
3062
|
-
const de_SendChannelMessageCommand = async (output, context) => {
|
|
3063
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3064
|
-
return de_SendChannelMessageCommandError(output, context);
|
|
3065
|
-
}
|
|
3066
|
-
const contents = (0, smithy_client_1.map)({
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
});
|
|
3069
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3070
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3071
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3072
|
-
MessageId: smithy_client_1.expectString,
|
|
3073
|
-
Status: smithy_client_1._json,
|
|
3074
|
-
SubChannelId: smithy_client_1.expectString,
|
|
3075
|
-
});
|
|
3076
|
-
Object.assign(contents, doc);
|
|
3077
|
-
return contents;
|
|
3078
|
-
};
|
|
3079
|
-
exports.de_SendChannelMessageCommand = de_SendChannelMessageCommand;
|
|
3080
|
-
const de_SendChannelMessageCommandError = async (output, context) => {
|
|
3081
|
-
const parsedOutput = {
|
|
3082
|
-
...output,
|
|
3083
|
-
body: await parseErrorBody(output.body, context),
|
|
3084
|
-
};
|
|
3085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3086
|
-
switch (errorCode) {
|
|
3087
|
-
case "BadRequestException":
|
|
3088
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3089
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "ConflictException":
|
|
3091
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3092
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3093
|
-
case "ForbiddenException":
|
|
3094
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3095
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "ServiceFailureException":
|
|
3097
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3098
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "ServiceUnavailableException":
|
|
3100
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3101
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "ThrottledClientException":
|
|
3103
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3104
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3105
|
-
case "UnauthorizedClientException":
|
|
3106
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3107
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3108
|
-
default:
|
|
3109
|
-
const parsedBody = parsedOutput.body;
|
|
3110
|
-
return throwDefaultError({
|
|
3111
|
-
output,
|
|
3112
|
-
parsedBody,
|
|
3113
|
-
errorCode,
|
|
3114
|
-
});
|
|
3115
|
-
}
|
|
3116
|
-
};
|
|
3117
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3118
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3119
|
-
return de_TagResourceCommandError(output, context);
|
|
3120
|
-
}
|
|
3121
|
-
const contents = (0, smithy_client_1.map)({
|
|
3122
|
-
$metadata: deserializeMetadata(output),
|
|
3123
|
-
});
|
|
3124
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3125
|
-
return contents;
|
|
3126
|
-
};
|
|
3127
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3128
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3129
|
-
const parsedOutput = {
|
|
3130
|
-
...output,
|
|
3131
|
-
body: await parseErrorBody(output.body, context),
|
|
3132
|
-
};
|
|
3133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
|
-
switch (errorCode) {
|
|
3135
|
-
case "BadRequestException":
|
|
3136
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3137
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "ForbiddenException":
|
|
3139
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3140
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3141
|
-
case "ResourceLimitExceededException":
|
|
3142
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
3143
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3144
|
-
case "ServiceFailureException":
|
|
3145
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3146
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "ServiceUnavailableException":
|
|
3148
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3149
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "ThrottledClientException":
|
|
3151
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3152
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "UnauthorizedClientException":
|
|
3154
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3155
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3156
|
-
default:
|
|
3157
|
-
const parsedBody = parsedOutput.body;
|
|
3158
|
-
return throwDefaultError({
|
|
3159
|
-
output,
|
|
3160
|
-
parsedBody,
|
|
3161
|
-
errorCode,
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
};
|
|
3165
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3166
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3167
|
-
return de_UntagResourceCommandError(output, context);
|
|
3168
|
-
}
|
|
3169
|
-
const contents = (0, smithy_client_1.map)({
|
|
3170
|
-
$metadata: deserializeMetadata(output),
|
|
3171
|
-
});
|
|
3172
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3173
|
-
return contents;
|
|
3174
|
-
};
|
|
3175
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3176
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3177
|
-
const parsedOutput = {
|
|
3178
|
-
...output,
|
|
3179
|
-
body: await parseErrorBody(output.body, context),
|
|
3180
|
-
};
|
|
3181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3182
|
-
switch (errorCode) {
|
|
3183
|
-
case "BadRequestException":
|
|
3184
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3185
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "ForbiddenException":
|
|
3187
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3188
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "ServiceFailureException":
|
|
3190
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3191
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "ServiceUnavailableException":
|
|
3193
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3194
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "ThrottledClientException":
|
|
3196
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3197
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3198
|
-
case "UnauthorizedClientException":
|
|
3199
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3200
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3201
|
-
default:
|
|
3202
|
-
const parsedBody = parsedOutput.body;
|
|
3203
|
-
return throwDefaultError({
|
|
3204
|
-
output,
|
|
3205
|
-
parsedBody,
|
|
3206
|
-
errorCode,
|
|
3207
|
-
});
|
|
3208
|
-
}
|
|
3209
|
-
};
|
|
3210
|
-
const de_UpdateChannelCommand = async (output, context) => {
|
|
3211
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3212
|
-
return de_UpdateChannelCommandError(output, context);
|
|
3213
|
-
}
|
|
3214
|
-
const contents = (0, smithy_client_1.map)({
|
|
3215
|
-
$metadata: deserializeMetadata(output),
|
|
3216
|
-
});
|
|
3217
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3218
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3219
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3220
|
-
});
|
|
3221
|
-
Object.assign(contents, doc);
|
|
3222
|
-
return contents;
|
|
3223
|
-
};
|
|
3224
|
-
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
3225
|
-
const de_UpdateChannelCommandError = async (output, context) => {
|
|
3226
|
-
const parsedOutput = {
|
|
3227
|
-
...output,
|
|
3228
|
-
body: await parseErrorBody(output.body, context),
|
|
3229
|
-
};
|
|
3230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3231
|
-
switch (errorCode) {
|
|
3232
|
-
case "BadRequestException":
|
|
3233
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3234
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "ConflictException":
|
|
3236
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3237
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "ForbiddenException":
|
|
3239
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3240
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "ServiceFailureException":
|
|
3242
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3243
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3244
|
-
case "ServiceUnavailableException":
|
|
3245
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3246
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3247
|
-
case "ThrottledClientException":
|
|
3248
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3249
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3250
|
-
case "UnauthorizedClientException":
|
|
3251
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3252
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3253
|
-
default:
|
|
3254
|
-
const parsedBody = parsedOutput.body;
|
|
3255
|
-
return throwDefaultError({
|
|
3256
|
-
output,
|
|
3257
|
-
parsedBody,
|
|
3258
|
-
errorCode,
|
|
3259
|
-
});
|
|
3260
|
-
}
|
|
3261
|
-
};
|
|
3262
|
-
const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
3263
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3264
|
-
return de_UpdateChannelFlowCommandError(output, context);
|
|
3265
|
-
}
|
|
3266
|
-
const contents = (0, smithy_client_1.map)({
|
|
3267
|
-
$metadata: deserializeMetadata(output),
|
|
3268
|
-
});
|
|
3269
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3270
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3271
|
-
ChannelFlowArn: smithy_client_1.expectString,
|
|
3272
|
-
});
|
|
3273
|
-
Object.assign(contents, doc);
|
|
3274
|
-
return contents;
|
|
3275
|
-
};
|
|
3276
|
-
exports.de_UpdateChannelFlowCommand = de_UpdateChannelFlowCommand;
|
|
3277
|
-
const de_UpdateChannelFlowCommandError = async (output, context) => {
|
|
3278
|
-
const parsedOutput = {
|
|
3279
|
-
...output,
|
|
3280
|
-
body: await parseErrorBody(output.body, context),
|
|
3281
|
-
};
|
|
3282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3283
|
-
switch (errorCode) {
|
|
3284
|
-
case "BadRequestException":
|
|
3285
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3286
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3287
|
-
case "ConflictException":
|
|
3288
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3289
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3290
|
-
case "ForbiddenException":
|
|
3291
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3292
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3293
|
-
case "ServiceFailureException":
|
|
3294
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3295
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3296
|
-
case "ServiceUnavailableException":
|
|
3297
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3298
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3299
|
-
case "ThrottledClientException":
|
|
3300
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3301
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "UnauthorizedClientException":
|
|
3303
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3304
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3305
|
-
default:
|
|
3306
|
-
const parsedBody = parsedOutput.body;
|
|
3307
|
-
return throwDefaultError({
|
|
3308
|
-
output,
|
|
3309
|
-
parsedBody,
|
|
3310
|
-
errorCode,
|
|
3311
|
-
});
|
|
3312
|
-
}
|
|
3313
|
-
};
|
|
3314
|
-
const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
3315
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3316
|
-
return de_UpdateChannelMessageCommandError(output, context);
|
|
3317
|
-
}
|
|
3318
|
-
const contents = (0, smithy_client_1.map)({
|
|
3319
|
-
$metadata: deserializeMetadata(output),
|
|
3320
|
-
});
|
|
3321
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3322
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3323
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3324
|
-
MessageId: smithy_client_1.expectString,
|
|
3325
|
-
Status: smithy_client_1._json,
|
|
3326
|
-
SubChannelId: smithy_client_1.expectString,
|
|
3327
|
-
});
|
|
3328
|
-
Object.assign(contents, doc);
|
|
3329
|
-
return contents;
|
|
3330
|
-
};
|
|
3331
|
-
exports.de_UpdateChannelMessageCommand = de_UpdateChannelMessageCommand;
|
|
3332
|
-
const de_UpdateChannelMessageCommandError = async (output, context) => {
|
|
3333
|
-
const parsedOutput = {
|
|
3334
|
-
...output,
|
|
3335
|
-
body: await parseErrorBody(output.body, context),
|
|
3336
|
-
};
|
|
3337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3338
|
-
switch (errorCode) {
|
|
3339
|
-
case "BadRequestException":
|
|
3340
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3341
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "ConflictException":
|
|
3343
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3344
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "ForbiddenException":
|
|
3346
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3347
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3348
|
-
case "ServiceFailureException":
|
|
3349
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3350
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3351
|
-
case "ServiceUnavailableException":
|
|
3352
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3353
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "ThrottledClientException":
|
|
3355
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3356
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "UnauthorizedClientException":
|
|
3358
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3359
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3360
|
-
default:
|
|
3361
|
-
const parsedBody = parsedOutput.body;
|
|
3362
|
-
return throwDefaultError({
|
|
3363
|
-
output,
|
|
3364
|
-
parsedBody,
|
|
3365
|
-
errorCode,
|
|
3366
|
-
});
|
|
3367
|
-
}
|
|
3368
|
-
};
|
|
3369
|
-
const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
3370
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3371
|
-
return de_UpdateChannelReadMarkerCommandError(output, context);
|
|
3372
|
-
}
|
|
3373
|
-
const contents = (0, smithy_client_1.map)({
|
|
3374
|
-
$metadata: deserializeMetadata(output),
|
|
3375
|
-
});
|
|
3376
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3377
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3378
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3379
|
-
});
|
|
3380
|
-
Object.assign(contents, doc);
|
|
3381
|
-
return contents;
|
|
3382
|
-
};
|
|
3383
|
-
exports.de_UpdateChannelReadMarkerCommand = de_UpdateChannelReadMarkerCommand;
|
|
3384
|
-
const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
3385
|
-
const parsedOutput = {
|
|
3386
|
-
...output,
|
|
3387
|
-
body: await parseErrorBody(output.body, context),
|
|
3388
|
-
};
|
|
3389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3390
|
-
switch (errorCode) {
|
|
3391
|
-
case "BadRequestException":
|
|
3392
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3393
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "ConflictException":
|
|
3395
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3396
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3397
|
-
case "ForbiddenException":
|
|
3398
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3399
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ServiceFailureException":
|
|
3401
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3402
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "ServiceUnavailableException":
|
|
3404
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3405
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ThrottledClientException":
|
|
3407
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3408
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "UnauthorizedClientException":
|
|
3410
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3411
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3412
|
-
default:
|
|
3413
|
-
const parsedBody = parsedOutput.body;
|
|
3414
|
-
return throwDefaultError({
|
|
3415
|
-
output,
|
|
3416
|
-
parsedBody,
|
|
3417
|
-
errorCode,
|
|
3418
|
-
});
|
|
3419
|
-
}
|
|
3420
|
-
};
|
|
3421
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException);
|
|
3422
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3423
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3424
|
-
const data = parsedOutput.body;
|
|
3425
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3426
|
-
Code: smithy_client_1.expectString,
|
|
3427
|
-
Message: smithy_client_1.expectString,
|
|
3428
|
-
});
|
|
3429
|
-
Object.assign(contents, doc);
|
|
3430
|
-
const exception = new models_0_1.BadRequestException({
|
|
3431
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3432
|
-
...contents,
|
|
3433
|
-
});
|
|
3434
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3435
|
-
};
|
|
3436
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3437
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3438
|
-
const data = parsedOutput.body;
|
|
3439
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3440
|
-
Code: smithy_client_1.expectString,
|
|
3441
|
-
Message: smithy_client_1.expectString,
|
|
3442
|
-
});
|
|
3443
|
-
Object.assign(contents, doc);
|
|
3444
|
-
const exception = new models_0_1.ConflictException({
|
|
3445
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3446
|
-
...contents,
|
|
3447
|
-
});
|
|
3448
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3449
|
-
};
|
|
3450
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
3451
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3452
|
-
const data = parsedOutput.body;
|
|
3453
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3454
|
-
Code: smithy_client_1.expectString,
|
|
3455
|
-
Message: smithy_client_1.expectString,
|
|
3456
|
-
});
|
|
3457
|
-
Object.assign(contents, doc);
|
|
3458
|
-
const exception = new models_0_1.ForbiddenException({
|
|
3459
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3460
|
-
...contents,
|
|
3461
|
-
});
|
|
3462
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3463
|
-
};
|
|
3464
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3465
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3466
|
-
const data = parsedOutput.body;
|
|
3467
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3468
|
-
Code: smithy_client_1.expectString,
|
|
3469
|
-
Message: smithy_client_1.expectString,
|
|
3470
|
-
});
|
|
3471
|
-
Object.assign(contents, doc);
|
|
3472
|
-
const exception = new models_0_1.NotFoundException({
|
|
3473
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3474
|
-
...contents,
|
|
3475
|
-
});
|
|
3476
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3477
|
-
};
|
|
3478
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3479
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3480
|
-
const data = parsedOutput.body;
|
|
3481
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3482
|
-
Code: smithy_client_1.expectString,
|
|
3483
|
-
Message: smithy_client_1.expectString,
|
|
3484
|
-
});
|
|
3485
|
-
Object.assign(contents, doc);
|
|
3486
|
-
const exception = new models_0_1.ResourceLimitExceededException({
|
|
3487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3488
|
-
...contents,
|
|
3489
|
-
});
|
|
3490
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3491
|
-
};
|
|
3492
|
-
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
3493
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3494
|
-
const data = parsedOutput.body;
|
|
3495
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3496
|
-
Code: smithy_client_1.expectString,
|
|
3497
|
-
Message: smithy_client_1.expectString,
|
|
3498
|
-
});
|
|
3499
|
-
Object.assign(contents, doc);
|
|
3500
|
-
const exception = new models_0_1.ServiceFailureException({
|
|
3501
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3502
|
-
...contents,
|
|
3503
|
-
});
|
|
3504
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3505
|
-
};
|
|
3506
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3507
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3508
|
-
const data = parsedOutput.body;
|
|
3509
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3510
|
-
Code: smithy_client_1.expectString,
|
|
3511
|
-
Message: smithy_client_1.expectString,
|
|
3512
|
-
});
|
|
3513
|
-
Object.assign(contents, doc);
|
|
3514
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
3515
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3516
|
-
...contents,
|
|
3517
|
-
});
|
|
3518
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3519
|
-
};
|
|
3520
|
-
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
3521
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3522
|
-
const data = parsedOutput.body;
|
|
3523
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3524
|
-
Code: smithy_client_1.expectString,
|
|
3525
|
-
Message: smithy_client_1.expectString,
|
|
3526
|
-
});
|
|
3527
|
-
Object.assign(contents, doc);
|
|
3528
|
-
const exception = new models_0_1.ThrottledClientException({
|
|
3529
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3530
|
-
...contents,
|
|
3531
|
-
});
|
|
3532
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3533
|
-
};
|
|
3534
|
-
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
3535
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3536
|
-
const data = parsedOutput.body;
|
|
3537
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3538
|
-
Code: smithy_client_1.expectString,
|
|
3539
|
-
Message: smithy_client_1.expectString,
|
|
3540
|
-
});
|
|
3541
|
-
Object.assign(contents, doc);
|
|
3542
|
-
const exception = new models_0_1.UnauthorizedClientException({
|
|
3543
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3544
|
-
...contents,
|
|
3545
|
-
});
|
|
3546
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3547
|
-
};
|
|
3548
|
-
const de_AppInstanceUserMembershipSummary = (output, context) => {
|
|
3549
|
-
return (0, smithy_client_1.take)(output, {
|
|
3550
|
-
ReadMarkerTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3551
|
-
SubChannelId: smithy_client_1.expectString,
|
|
3552
|
-
Type: smithy_client_1.expectString,
|
|
3553
|
-
});
|
|
3554
|
-
};
|
|
3555
|
-
const de_Channel = (output, context) => {
|
|
3556
|
-
return (0, smithy_client_1.take)(output, {
|
|
3557
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3558
|
-
ChannelFlowArn: smithy_client_1.expectString,
|
|
3559
|
-
CreatedBy: smithy_client_1._json,
|
|
3560
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3561
|
-
ElasticChannelConfiguration: smithy_client_1._json,
|
|
3562
|
-
ExpirationSettings: smithy_client_1._json,
|
|
3563
|
-
LastMessageTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3564
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3565
|
-
Metadata: smithy_client_1.expectString,
|
|
3566
|
-
Mode: smithy_client_1.expectString,
|
|
3567
|
-
Name: smithy_client_1.expectString,
|
|
3568
|
-
Privacy: smithy_client_1.expectString,
|
|
3569
|
-
});
|
|
3570
|
-
};
|
|
3571
|
-
const de_ChannelBan = (output, context) => {
|
|
3572
|
-
return (0, smithy_client_1.take)(output, {
|
|
3573
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3574
|
-
CreatedBy: smithy_client_1._json,
|
|
3575
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3576
|
-
Member: smithy_client_1._json,
|
|
3577
|
-
});
|
|
3578
|
-
};
|
|
3579
|
-
const de_ChannelFlow = (output, context) => {
|
|
3580
|
-
return (0, smithy_client_1.take)(output, {
|
|
3581
|
-
ChannelFlowArn: smithy_client_1.expectString,
|
|
3582
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3583
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3584
|
-
Name: smithy_client_1.expectString,
|
|
3585
|
-
Processors: smithy_client_1._json,
|
|
3586
|
-
});
|
|
3587
|
-
};
|
|
3588
|
-
const de_ChannelMembership = (output, context) => {
|
|
3589
|
-
return (0, smithy_client_1.take)(output, {
|
|
3590
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3591
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3592
|
-
InvitedBy: smithy_client_1._json,
|
|
3593
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3594
|
-
Member: smithy_client_1._json,
|
|
3595
|
-
SubChannelId: smithy_client_1.expectString,
|
|
3596
|
-
Type: smithy_client_1.expectString,
|
|
3597
|
-
});
|
|
3598
|
-
};
|
|
3599
|
-
const de_ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
3600
|
-
return (0, smithy_client_1.take)(output, {
|
|
3601
|
-
AppInstanceUserMembershipSummary: (_) => de_AppInstanceUserMembershipSummary(_, context),
|
|
3602
|
-
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
3603
|
-
});
|
|
3604
|
-
};
|
|
3605
|
-
const de_ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
|
|
3606
|
-
const retVal = (output || [])
|
|
3607
|
-
.filter((e) => e != null)
|
|
3608
|
-
.map((entry) => {
|
|
3609
|
-
return de_ChannelMembershipForAppInstanceUserSummary(entry, context);
|
|
3610
|
-
});
|
|
3611
|
-
return retVal;
|
|
3612
|
-
};
|
|
3613
|
-
const de_ChannelMessage = (output, context) => {
|
|
3614
|
-
return (0, smithy_client_1.take)(output, {
|
|
3615
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3616
|
-
Content: smithy_client_1.expectString,
|
|
3617
|
-
ContentType: smithy_client_1.expectString,
|
|
3618
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3619
|
-
LastEditedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3620
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3621
|
-
MessageAttributes: smithy_client_1._json,
|
|
3622
|
-
MessageId: smithy_client_1.expectString,
|
|
3623
|
-
Metadata: smithy_client_1.expectString,
|
|
3624
|
-
Persistence: smithy_client_1.expectString,
|
|
3625
|
-
Redacted: smithy_client_1.expectBoolean,
|
|
3626
|
-
Sender: smithy_client_1._json,
|
|
3627
|
-
Status: smithy_client_1._json,
|
|
3628
|
-
SubChannelId: smithy_client_1.expectString,
|
|
3629
|
-
Target: smithy_client_1._json,
|
|
3630
|
-
Type: smithy_client_1.expectString,
|
|
3631
|
-
});
|
|
3632
|
-
};
|
|
3633
|
-
const de_ChannelMessageSummary = (output, context) => {
|
|
3634
|
-
return (0, smithy_client_1.take)(output, {
|
|
3635
|
-
Content: smithy_client_1.expectString,
|
|
3636
|
-
ContentType: smithy_client_1.expectString,
|
|
3637
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3638
|
-
LastEditedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3639
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3640
|
-
MessageAttributes: smithy_client_1._json,
|
|
3641
|
-
MessageId: smithy_client_1.expectString,
|
|
3642
|
-
Metadata: smithy_client_1.expectString,
|
|
3643
|
-
Redacted: smithy_client_1.expectBoolean,
|
|
3644
|
-
Sender: smithy_client_1._json,
|
|
3645
|
-
Status: smithy_client_1._json,
|
|
3646
|
-
Target: smithy_client_1._json,
|
|
3647
|
-
Type: smithy_client_1.expectString,
|
|
3648
|
-
});
|
|
3649
|
-
};
|
|
3650
|
-
const de_ChannelMessageSummaryList = (output, context) => {
|
|
3651
|
-
const retVal = (output || [])
|
|
3652
|
-
.filter((e) => e != null)
|
|
3653
|
-
.map((entry) => {
|
|
3654
|
-
return de_ChannelMessageSummary(entry, context);
|
|
3655
|
-
});
|
|
3656
|
-
return retVal;
|
|
3657
|
-
};
|
|
3658
|
-
const de_ChannelModeratedByAppInstanceUserSummary = (output, context) => {
|
|
3659
|
-
return (0, smithy_client_1.take)(output, {
|
|
3660
|
-
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
3661
|
-
});
|
|
3662
|
-
};
|
|
3663
|
-
const de_ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
|
|
3664
|
-
const retVal = (output || [])
|
|
3665
|
-
.filter((e) => e != null)
|
|
3666
|
-
.map((entry) => {
|
|
3667
|
-
return de_ChannelModeratedByAppInstanceUserSummary(entry, context);
|
|
3668
|
-
});
|
|
3669
|
-
return retVal;
|
|
3670
|
-
};
|
|
3671
|
-
const de_ChannelModerator = (output, context) => {
|
|
3672
|
-
return (0, smithy_client_1.take)(output, {
|
|
3673
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3674
|
-
CreatedBy: smithy_client_1._json,
|
|
3675
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3676
|
-
Moderator: smithy_client_1._json,
|
|
3677
|
-
});
|
|
3678
|
-
};
|
|
3679
|
-
const de_ChannelSummary = (output, context) => {
|
|
3680
|
-
return (0, smithy_client_1.take)(output, {
|
|
3681
|
-
ChannelArn: smithy_client_1.expectString,
|
|
3682
|
-
LastMessageTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3683
|
-
Metadata: smithy_client_1.expectString,
|
|
3684
|
-
Mode: smithy_client_1.expectString,
|
|
3685
|
-
Name: smithy_client_1.expectString,
|
|
3686
|
-
Privacy: smithy_client_1.expectString,
|
|
3687
|
-
});
|
|
3688
|
-
};
|
|
3689
|
-
const de_ChannelSummaryList = (output, context) => {
|
|
3690
|
-
const retVal = (output || [])
|
|
3691
|
-
.filter((e) => e != null)
|
|
3692
|
-
.map((entry) => {
|
|
3693
|
-
return de_ChannelSummary(entry, context);
|
|
3694
|
-
});
|
|
3695
|
-
return retVal;
|
|
3696
|
-
};
|
|
3697
|
-
const deserializeMetadata = (output) => ({
|
|
3698
|
-
httpStatusCode: output.statusCode,
|
|
3699
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3700
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3701
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3702
|
-
});
|
|
3703
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3704
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3705
|
-
value !== null &&
|
|
3706
|
-
value !== "" &&
|
|
3707
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3708
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3709
|
-
const _AIA = "AppInstanceArn";
|
|
3710
|
-
const _AIUA = "AppInstanceUserArn";
|
|
3711
|
-
const _CB = "ChimeBearer";
|
|
3712
|
-
const _CFA = "ChannelFlowArn";
|
|
3713
|
-
const _MR = "MaxResults";
|
|
3714
|
-
const _NA = "NotAfter";
|
|
3715
|
-
const _NB = "NotBefore";
|
|
3716
|
-
const _NT = "NextToken";
|
|
3717
|
-
const _P = "Privacy";
|
|
3718
|
-
const _RARN = "ResourceARN";
|
|
3719
|
-
const _SCI = "SubChannelId";
|
|
3720
|
-
const _SO = "SortOrder";
|
|
3721
|
-
const _T = "Type";
|
|
3722
|
-
const _a = "arn";
|
|
3723
|
-
const _aia = "app-instance-arn";
|
|
3724
|
-
const _aiua = "app-instance-user-arn";
|
|
3725
|
-
const _cfa = "channel-flow-arn";
|
|
3726
|
-
const _mr = "max-results";
|
|
3727
|
-
const _na = "not-after";
|
|
3728
|
-
const _nb = "not-before";
|
|
3729
|
-
const _nt = "next-token";
|
|
3730
|
-
const _o = "operation";
|
|
3731
|
-
const _p = "privacy";
|
|
3732
|
-
const _s = "scope";
|
|
3733
|
-
const _sci = "sub-channel-id";
|
|
3734
|
-
const _so = "sort-order";
|
|
3735
|
-
const _t = "type";
|
|
3736
|
-
const _xacb = "x-amz-chime-bearer";
|
|
3737
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3738
|
-
if (encoded.length) {
|
|
3739
|
-
return JSON.parse(encoded);
|
|
3740
|
-
}
|
|
3741
|
-
return {};
|
|
3742
|
-
});
|
|
3743
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3744
|
-
const value = await parseBody(errorBody, context);
|
|
3745
|
-
value.message = value.message ?? value.Message;
|
|
3746
|
-
return value;
|
|
3747
|
-
};
|
|
3748
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3749
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3750
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3751
|
-
let cleanValue = rawValue;
|
|
3752
|
-
if (typeof cleanValue === "number") {
|
|
3753
|
-
cleanValue = cleanValue.toString();
|
|
3754
|
-
}
|
|
3755
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3756
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3757
|
-
}
|
|
3758
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3759
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3760
|
-
}
|
|
3761
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3762
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3763
|
-
}
|
|
3764
|
-
return cleanValue;
|
|
3765
|
-
};
|
|
3766
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3767
|
-
if (headerKey !== undefined) {
|
|
3768
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3769
|
-
}
|
|
3770
|
-
if (data.code !== undefined) {
|
|
3771
|
-
return sanitizeErrorCode(data.code);
|
|
3772
|
-
}
|
|
3773
|
-
if (data["__type"] !== undefined) {
|
|
3774
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3775
|
-
}
|
|
3776
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|