@aws-sdk/client-chime-sdk-messaging 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +2588 -2622
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ChimeSDKMessagingClient.js +2 -0
- package/dist-es/commands/AssociateChannelFlowCommand.js +3 -9
- package/dist-es/commands/BatchCreateChannelMembershipCommand.js +3 -10
- package/dist-es/commands/ChannelFlowCallbackCommand.js +3 -10
- package/dist-es/commands/CreateChannelBanCommand.js +3 -10
- package/dist-es/commands/CreateChannelCommand.js +3 -10
- package/dist-es/commands/CreateChannelFlowCommand.js +3 -10
- package/dist-es/commands/CreateChannelMembershipCommand.js +3 -10
- package/dist-es/commands/CreateChannelModeratorCommand.js +3 -10
- package/dist-es/commands/DeleteChannelBanCommand.js +3 -9
- package/dist-es/commands/DeleteChannelCommand.js +3 -9
- package/dist-es/commands/DeleteChannelFlowCommand.js +3 -9
- package/dist-es/commands/DeleteChannelMembershipCommand.js +3 -9
- package/dist-es/commands/DeleteChannelMessageCommand.js +3 -9
- package/dist-es/commands/DeleteChannelModeratorCommand.js +3 -9
- package/dist-es/commands/DeleteMessagingStreamingConfigurationsCommand.js +3 -9
- package/dist-es/commands/DescribeChannelBanCommand.js +3 -10
- package/dist-es/commands/DescribeChannelCommand.js +3 -10
- package/dist-es/commands/DescribeChannelFlowCommand.js +3 -10
- package/dist-es/commands/DescribeChannelMembershipCommand.js +3 -10
- package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -10
- package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -10
- package/dist-es/commands/DescribeChannelModeratorCommand.js +3 -10
- package/dist-es/commands/DisassociateChannelFlowCommand.js +3 -9
- package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +3 -10
- package/dist-es/commands/GetChannelMessageCommand.js +3 -10
- package/dist-es/commands/GetChannelMessageStatusCommand.js +3 -9
- package/dist-es/commands/GetMessagingSessionEndpointCommand.js +3 -9
- package/dist-es/commands/GetMessagingStreamingConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListChannelBansCommand.js +3 -10
- package/dist-es/commands/ListChannelFlowsCommand.js +3 -10
- package/dist-es/commands/ListChannelMembershipsCommand.js +3 -10
- package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -10
- package/dist-es/commands/ListChannelMessagesCommand.js +3 -10
- package/dist-es/commands/ListChannelModeratorsCommand.js +3 -10
- package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +3 -10
- package/dist-es/commands/ListChannelsCommand.js +3 -10
- package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -10
- package/dist-es/commands/ListSubChannelsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/PutChannelExpirationSettingsCommand.js +3 -9
- package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +3 -10
- package/dist-es/commands/PutMessagingStreamingConfigurationsCommand.js +3 -9
- package/dist-es/commands/RedactChannelMessageCommand.js +3 -9
- package/dist-es/commands/SearchChannelsCommand.js +3 -10
- package/dist-es/commands/SendChannelMessageCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateChannelCommand.js +3 -10
- package/dist-es/commands/UpdateChannelFlowCommand.js +3 -10
- package/dist-es/commands/UpdateChannelMessageCommand.js +3 -10
- package/dist-es/commands/UpdateChannelReadMarkerCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -367
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +2487 -0
- package/dist-types/ChimeSDKMessagingClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -284
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +230 -0
- package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -201
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +237 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -1828
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -461
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -617
|
@@ -1,1828 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ChimeSDKMessagingServiceException as __BaseException } from "../models/ChimeSDKMessagingServiceException";
|
|
6
|
-
import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
7
|
-
export const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
[_xacb]: input[_CB],
|
|
12
|
-
});
|
|
13
|
-
b.bp("/channels/{ChannelArn}/channel-flow");
|
|
14
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(take(input, {
|
|
17
|
-
ChannelFlowArn: [],
|
|
18
|
-
}));
|
|
19
|
-
b.m("PUT").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_BatchCreateChannelMembershipCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
25
|
-
"content-type": "application/json",
|
|
26
|
-
[_xacb]: input[_CB],
|
|
27
|
-
});
|
|
28
|
-
b.bp("/channels/{ChannelArn}/memberships");
|
|
29
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
30
|
-
const query = map({
|
|
31
|
-
[_o]: [, "batch-create"],
|
|
32
|
-
});
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(take(input, {
|
|
35
|
-
MemberArns: (_) => _json(_),
|
|
36
|
-
SubChannelId: [],
|
|
37
|
-
Type: [],
|
|
38
|
-
}));
|
|
39
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
40
|
-
return b.build();
|
|
41
|
-
};
|
|
42
|
-
export const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
43
|
-
const b = rb(input, context);
|
|
44
|
-
const headers = {
|
|
45
|
-
"content-type": "application/json",
|
|
46
|
-
};
|
|
47
|
-
b.bp("/channels/{ChannelArn}");
|
|
48
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
49
|
-
const query = map({
|
|
50
|
-
[_o]: [, "channel-flow-callback"],
|
|
51
|
-
});
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify(take(input, {
|
|
54
|
-
CallbackId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
55
|
-
ChannelMessage: (_) => _json(_),
|
|
56
|
-
DeleteResource: [],
|
|
57
|
-
}));
|
|
58
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
59
|
-
return b.build();
|
|
60
|
-
};
|
|
61
|
-
export const se_CreateChannelCommand = async (input, context) => {
|
|
62
|
-
const b = rb(input, context);
|
|
63
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
64
|
-
"content-type": "application/json",
|
|
65
|
-
[_xacb]: input[_CB],
|
|
66
|
-
});
|
|
67
|
-
b.bp("/channels");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(take(input, {
|
|
70
|
-
AppInstanceArn: [],
|
|
71
|
-
ChannelId: [],
|
|
72
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
73
|
-
ElasticChannelConfiguration: (_) => _json(_),
|
|
74
|
-
ExpirationSettings: (_) => _json(_),
|
|
75
|
-
MemberArns: (_) => _json(_),
|
|
76
|
-
Metadata: [],
|
|
77
|
-
Mode: [],
|
|
78
|
-
ModeratorArns: (_) => _json(_),
|
|
79
|
-
Name: [],
|
|
80
|
-
Privacy: [],
|
|
81
|
-
Tags: (_) => _json(_),
|
|
82
|
-
}));
|
|
83
|
-
b.m("POST").h(headers).b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
export const se_CreateChannelBanCommand = async (input, context) => {
|
|
87
|
-
const b = rb(input, context);
|
|
88
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
[_xacb]: input[_CB],
|
|
91
|
-
});
|
|
92
|
-
b.bp("/channels/{ChannelArn}/bans");
|
|
93
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify(take(input, {
|
|
96
|
-
MemberArn: [],
|
|
97
|
-
}));
|
|
98
|
-
b.m("POST").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
export const se_CreateChannelFlowCommand = async (input, context) => {
|
|
102
|
-
const b = rb(input, context);
|
|
103
|
-
const headers = {
|
|
104
|
-
"content-type": "application/json",
|
|
105
|
-
};
|
|
106
|
-
b.bp("/channel-flows");
|
|
107
|
-
let body;
|
|
108
|
-
body = JSON.stringify(take(input, {
|
|
109
|
-
AppInstanceArn: [],
|
|
110
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
111
|
-
Name: [],
|
|
112
|
-
Processors: (_) => _json(_),
|
|
113
|
-
Tags: (_) => _json(_),
|
|
114
|
-
}));
|
|
115
|
-
b.m("POST").h(headers).b(body);
|
|
116
|
-
return b.build();
|
|
117
|
-
};
|
|
118
|
-
export const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
119
|
-
const b = rb(input, context);
|
|
120
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
121
|
-
"content-type": "application/json",
|
|
122
|
-
[_xacb]: input[_CB],
|
|
123
|
-
});
|
|
124
|
-
b.bp("/channels/{ChannelArn}/memberships");
|
|
125
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify(take(input, {
|
|
128
|
-
MemberArn: [],
|
|
129
|
-
SubChannelId: [],
|
|
130
|
-
Type: [],
|
|
131
|
-
}));
|
|
132
|
-
b.m("POST").h(headers).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
export const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
136
|
-
const b = rb(input, context);
|
|
137
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
138
|
-
"content-type": "application/json",
|
|
139
|
-
[_xacb]: input[_CB],
|
|
140
|
-
});
|
|
141
|
-
b.bp("/channels/{ChannelArn}/moderators");
|
|
142
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify(take(input, {
|
|
145
|
-
ChannelModeratorArn: [],
|
|
146
|
-
}));
|
|
147
|
-
b.m("POST").h(headers).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
export const se_DeleteChannelCommand = async (input, context) => {
|
|
151
|
-
const b = rb(input, context);
|
|
152
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
153
|
-
[_xacb]: input[_CB],
|
|
154
|
-
});
|
|
155
|
-
b.bp("/channels/{ChannelArn}");
|
|
156
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
157
|
-
let body;
|
|
158
|
-
b.m("DELETE").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
export const se_DeleteChannelBanCommand = async (input, context) => {
|
|
162
|
-
const b = rb(input, context);
|
|
163
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
164
|
-
[_xacb]: input[_CB],
|
|
165
|
-
});
|
|
166
|
-
b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
|
|
167
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
168
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
169
|
-
let body;
|
|
170
|
-
b.m("DELETE").h(headers).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
export const se_DeleteChannelFlowCommand = async (input, context) => {
|
|
174
|
-
const b = rb(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
177
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
178
|
-
let body;
|
|
179
|
-
b.m("DELETE").h(headers).b(body);
|
|
180
|
-
return b.build();
|
|
181
|
-
};
|
|
182
|
-
export const se_DeleteChannelMembershipCommand = async (input, context) => {
|
|
183
|
-
const b = rb(input, context);
|
|
184
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
185
|
-
[_xacb]: input[_CB],
|
|
186
|
-
});
|
|
187
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
|
|
188
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
189
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
190
|
-
const query = map({
|
|
191
|
-
[_sci]: [, input[_SCI]],
|
|
192
|
-
});
|
|
193
|
-
let body;
|
|
194
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
195
|
-
return b.build();
|
|
196
|
-
};
|
|
197
|
-
export const se_DeleteChannelMessageCommand = async (input, context) => {
|
|
198
|
-
const b = rb(input, context);
|
|
199
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
200
|
-
[_xacb]: input[_CB],
|
|
201
|
-
});
|
|
202
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
203
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
204
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
205
|
-
const query = 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
|
-
export const se_DeleteChannelModeratorCommand = async (input, context) => {
|
|
213
|
-
const b = rb(input, context);
|
|
214
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
215
|
-
[_xacb]: input[_CB],
|
|
216
|
-
});
|
|
217
|
-
b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
|
|
218
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
219
|
-
b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
220
|
-
let body;
|
|
221
|
-
b.m("DELETE").h(headers).b(body);
|
|
222
|
-
return b.build();
|
|
223
|
-
};
|
|
224
|
-
export const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
225
|
-
const b = rb(input, context);
|
|
226
|
-
const headers = {};
|
|
227
|
-
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
228
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
229
|
-
let body;
|
|
230
|
-
b.m("DELETE").h(headers).b(body);
|
|
231
|
-
return b.build();
|
|
232
|
-
};
|
|
233
|
-
export const se_DescribeChannelCommand = async (input, context) => {
|
|
234
|
-
const b = rb(input, context);
|
|
235
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
236
|
-
[_xacb]: input[_CB],
|
|
237
|
-
});
|
|
238
|
-
b.bp("/channels/{ChannelArn}");
|
|
239
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
240
|
-
let body;
|
|
241
|
-
b.m("GET").h(headers).b(body);
|
|
242
|
-
return b.build();
|
|
243
|
-
};
|
|
244
|
-
export const se_DescribeChannelBanCommand = async (input, context) => {
|
|
245
|
-
const b = rb(input, context);
|
|
246
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
247
|
-
[_xacb]: input[_CB],
|
|
248
|
-
});
|
|
249
|
-
b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
|
|
250
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
251
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
252
|
-
let body;
|
|
253
|
-
b.m("GET").h(headers).b(body);
|
|
254
|
-
return b.build();
|
|
255
|
-
};
|
|
256
|
-
export const se_DescribeChannelFlowCommand = async (input, context) => {
|
|
257
|
-
const b = rb(input, context);
|
|
258
|
-
const headers = {};
|
|
259
|
-
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
260
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
261
|
-
let body;
|
|
262
|
-
b.m("GET").h(headers).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
export const se_DescribeChannelMembershipCommand = async (input, context) => {
|
|
266
|
-
const b = rb(input, context);
|
|
267
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
268
|
-
[_xacb]: input[_CB],
|
|
269
|
-
});
|
|
270
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
|
|
271
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
272
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
273
|
-
const query = map({
|
|
274
|
-
[_sci]: [, input[_SCI]],
|
|
275
|
-
});
|
|
276
|
-
let body;
|
|
277
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
278
|
-
return b.build();
|
|
279
|
-
};
|
|
280
|
-
export const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
|
|
281
|
-
const b = rb(input, context);
|
|
282
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
283
|
-
[_xacb]: input[_CB],
|
|
284
|
-
});
|
|
285
|
-
b.bp("/channels/{ChannelArn}");
|
|
286
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
287
|
-
const query = map({
|
|
288
|
-
[_s]: [, "app-instance-user-membership"],
|
|
289
|
-
[_aiua]: [, __expectNonNull(input[_AIUA], `AppInstanceUserArn`)],
|
|
290
|
-
});
|
|
291
|
-
let body;
|
|
292
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
293
|
-
return b.build();
|
|
294
|
-
};
|
|
295
|
-
export const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
296
|
-
const b = rb(input, context);
|
|
297
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
298
|
-
[_xacb]: input[_CB],
|
|
299
|
-
});
|
|
300
|
-
b.bp("/channels/{ChannelArn}");
|
|
301
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
302
|
-
const query = map({
|
|
303
|
-
[_s]: [, "app-instance-user-moderated-channel"],
|
|
304
|
-
[_aiua]: [, __expectNonNull(input[_AIUA], `AppInstanceUserArn`)],
|
|
305
|
-
});
|
|
306
|
-
let body;
|
|
307
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
308
|
-
return b.build();
|
|
309
|
-
};
|
|
310
|
-
export const se_DescribeChannelModeratorCommand = async (input, context) => {
|
|
311
|
-
const b = rb(input, context);
|
|
312
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
313
|
-
[_xacb]: input[_CB],
|
|
314
|
-
});
|
|
315
|
-
b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
|
|
316
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
317
|
-
b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
318
|
-
let body;
|
|
319
|
-
b.m("GET").h(headers).b(body);
|
|
320
|
-
return b.build();
|
|
321
|
-
};
|
|
322
|
-
export const se_DisassociateChannelFlowCommand = async (input, context) => {
|
|
323
|
-
const b = rb(input, context);
|
|
324
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
325
|
-
[_xacb]: input[_CB],
|
|
326
|
-
});
|
|
327
|
-
b.bp("/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}");
|
|
328
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
329
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
330
|
-
let body;
|
|
331
|
-
b.m("DELETE").h(headers).b(body);
|
|
332
|
-
return b.build();
|
|
333
|
-
};
|
|
334
|
-
export const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
|
|
335
|
-
const b = rb(input, context);
|
|
336
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
337
|
-
[_xacb]: input[_CB],
|
|
338
|
-
});
|
|
339
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
|
|
340
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
341
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
342
|
-
let body;
|
|
343
|
-
b.m("GET").h(headers).b(body);
|
|
344
|
-
return b.build();
|
|
345
|
-
};
|
|
346
|
-
export const se_GetChannelMessageCommand = async (input, context) => {
|
|
347
|
-
const b = rb(input, context);
|
|
348
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
349
|
-
[_xacb]: input[_CB],
|
|
350
|
-
});
|
|
351
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
352
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
353
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
354
|
-
const query = map({
|
|
355
|
-
[_sci]: [, input[_SCI]],
|
|
356
|
-
});
|
|
357
|
-
let body;
|
|
358
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
359
|
-
return b.build();
|
|
360
|
-
};
|
|
361
|
-
export const se_GetChannelMessageStatusCommand = async (input, context) => {
|
|
362
|
-
const b = rb(input, context);
|
|
363
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
364
|
-
[_xacb]: input[_CB],
|
|
365
|
-
});
|
|
366
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
367
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
368
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
369
|
-
const query = map({
|
|
370
|
-
[_s]: [, "message-status"],
|
|
371
|
-
[_sci]: [, input[_SCI]],
|
|
372
|
-
});
|
|
373
|
-
let body;
|
|
374
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
375
|
-
return b.build();
|
|
376
|
-
};
|
|
377
|
-
export const se_GetMessagingSessionEndpointCommand = async (input, context) => {
|
|
378
|
-
const b = rb(input, context);
|
|
379
|
-
const headers = {};
|
|
380
|
-
b.bp("/endpoints/messaging-session");
|
|
381
|
-
const query = map({
|
|
382
|
-
[_nt]: [, input[_NT]],
|
|
383
|
-
});
|
|
384
|
-
let body;
|
|
385
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
386
|
-
return b.build();
|
|
387
|
-
};
|
|
388
|
-
export const se_GetMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
389
|
-
const b = rb(input, context);
|
|
390
|
-
const headers = {};
|
|
391
|
-
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
392
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
393
|
-
let body;
|
|
394
|
-
b.m("GET").h(headers).b(body);
|
|
395
|
-
return b.build();
|
|
396
|
-
};
|
|
397
|
-
export const se_ListChannelBansCommand = async (input, context) => {
|
|
398
|
-
const b = rb(input, context);
|
|
399
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
400
|
-
[_xacb]: input[_CB],
|
|
401
|
-
});
|
|
402
|
-
b.bp("/channels/{ChannelArn}/bans");
|
|
403
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
404
|
-
const query = map({
|
|
405
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
406
|
-
[_nt_]: [, input[_NTe]],
|
|
407
|
-
});
|
|
408
|
-
let body;
|
|
409
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
410
|
-
return b.build();
|
|
411
|
-
};
|
|
412
|
-
export const se_ListChannelFlowsCommand = async (input, context) => {
|
|
413
|
-
const b = rb(input, context);
|
|
414
|
-
const headers = {};
|
|
415
|
-
b.bp("/channel-flows");
|
|
416
|
-
const query = map({
|
|
417
|
-
[_aia]: [, __expectNonNull(input[_AIA], `AppInstanceArn`)],
|
|
418
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
419
|
-
[_nt_]: [, input[_NTe]],
|
|
420
|
-
});
|
|
421
|
-
let body;
|
|
422
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
423
|
-
return b.build();
|
|
424
|
-
};
|
|
425
|
-
export const se_ListChannelMembershipsCommand = async (input, context) => {
|
|
426
|
-
const b = rb(input, context);
|
|
427
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
428
|
-
[_xacb]: input[_CB],
|
|
429
|
-
});
|
|
430
|
-
b.bp("/channels/{ChannelArn}/memberships");
|
|
431
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
432
|
-
const query = map({
|
|
433
|
-
[_t]: [, input[_T]],
|
|
434
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
435
|
-
[_nt_]: [, input[_NTe]],
|
|
436
|
-
[_sci]: [, input[_SCI]],
|
|
437
|
-
});
|
|
438
|
-
let body;
|
|
439
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
440
|
-
return b.build();
|
|
441
|
-
};
|
|
442
|
-
export const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
|
|
443
|
-
const b = rb(input, context);
|
|
444
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
445
|
-
[_xacb]: input[_CB],
|
|
446
|
-
});
|
|
447
|
-
b.bp("/channels");
|
|
448
|
-
const query = map({
|
|
449
|
-
[_s]: [, "app-instance-user-memberships"],
|
|
450
|
-
[_aiua]: [, input[_AIUA]],
|
|
451
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
452
|
-
[_nt_]: [, input[_NTe]],
|
|
453
|
-
});
|
|
454
|
-
let body;
|
|
455
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
456
|
-
return b.build();
|
|
457
|
-
};
|
|
458
|
-
export const se_ListChannelMessagesCommand = async (input, context) => {
|
|
459
|
-
const b = rb(input, context);
|
|
460
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
461
|
-
[_xacb]: input[_CB],
|
|
462
|
-
});
|
|
463
|
-
b.bp("/channels/{ChannelArn}/messages");
|
|
464
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
465
|
-
const query = map({
|
|
466
|
-
[_so]: [, input[_SO]],
|
|
467
|
-
[_nb]: [() => input.NotBefore !== void 0, () => __serializeDateTime(input[_NB]).toString()],
|
|
468
|
-
[_na]: [() => input.NotAfter !== void 0, () => __serializeDateTime(input[_NA]).toString()],
|
|
469
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
470
|
-
[_nt_]: [, input[_NTe]],
|
|
471
|
-
[_sci]: [, input[_SCI]],
|
|
472
|
-
});
|
|
473
|
-
let body;
|
|
474
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
475
|
-
return b.build();
|
|
476
|
-
};
|
|
477
|
-
export const se_ListChannelModeratorsCommand = async (input, context) => {
|
|
478
|
-
const b = rb(input, context);
|
|
479
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
480
|
-
[_xacb]: input[_CB],
|
|
481
|
-
});
|
|
482
|
-
b.bp("/channels/{ChannelArn}/moderators");
|
|
483
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
484
|
-
const query = map({
|
|
485
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
486
|
-
[_nt_]: [, input[_NTe]],
|
|
487
|
-
});
|
|
488
|
-
let body;
|
|
489
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
490
|
-
return b.build();
|
|
491
|
-
};
|
|
492
|
-
export const se_ListChannelsCommand = async (input, context) => {
|
|
493
|
-
const b = rb(input, context);
|
|
494
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
495
|
-
[_xacb]: input[_CB],
|
|
496
|
-
});
|
|
497
|
-
b.bp("/channels");
|
|
498
|
-
const query = map({
|
|
499
|
-
[_aia]: [, __expectNonNull(input[_AIA], `AppInstanceArn`)],
|
|
500
|
-
[_p]: [, input[_P]],
|
|
501
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
502
|
-
[_nt_]: [, input[_NTe]],
|
|
503
|
-
});
|
|
504
|
-
let body;
|
|
505
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
};
|
|
508
|
-
export const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
|
|
509
|
-
const b = rb(input, context);
|
|
510
|
-
const headers = {};
|
|
511
|
-
b.bp("/channels");
|
|
512
|
-
const query = map({
|
|
513
|
-
[_s]: [, "channel-flow-associations"],
|
|
514
|
-
[_cfa]: [, __expectNonNull(input[_CFA], `ChannelFlowArn`)],
|
|
515
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
516
|
-
[_nt_]: [, input[_NTe]],
|
|
517
|
-
});
|
|
518
|
-
let body;
|
|
519
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
520
|
-
return b.build();
|
|
521
|
-
};
|
|
522
|
-
export const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
523
|
-
const b = rb(input, context);
|
|
524
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
525
|
-
[_xacb]: input[_CB],
|
|
526
|
-
});
|
|
527
|
-
b.bp("/channels");
|
|
528
|
-
const query = map({
|
|
529
|
-
[_s]: [, "app-instance-user-moderated-channels"],
|
|
530
|
-
[_aiua]: [, input[_AIUA]],
|
|
531
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
532
|
-
[_nt_]: [, input[_NTe]],
|
|
533
|
-
});
|
|
534
|
-
let body;
|
|
535
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
536
|
-
return b.build();
|
|
537
|
-
};
|
|
538
|
-
export const se_ListSubChannelsCommand = async (input, context) => {
|
|
539
|
-
const b = rb(input, context);
|
|
540
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
541
|
-
[_xacb]: input[_CB],
|
|
542
|
-
});
|
|
543
|
-
b.bp("/channels/{ChannelArn}/subchannels");
|
|
544
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
545
|
-
const query = map({
|
|
546
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
547
|
-
[_nt_]: [, input[_NTe]],
|
|
548
|
-
});
|
|
549
|
-
let body;
|
|
550
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
551
|
-
return b.build();
|
|
552
|
-
};
|
|
553
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
554
|
-
const b = rb(input, context);
|
|
555
|
-
const headers = {};
|
|
556
|
-
b.bp("/tags");
|
|
557
|
-
const query = map({
|
|
558
|
-
[_a]: [, __expectNonNull(input[_RARN], `ResourceARN`)],
|
|
559
|
-
});
|
|
560
|
-
let body;
|
|
561
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
562
|
-
return b.build();
|
|
563
|
-
};
|
|
564
|
-
export const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
565
|
-
const b = rb(input, context);
|
|
566
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
567
|
-
"content-type": "application/json",
|
|
568
|
-
[_xacb]: input[_CB],
|
|
569
|
-
});
|
|
570
|
-
b.bp("/channels/{ChannelArn}/expiration-settings");
|
|
571
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
572
|
-
let body;
|
|
573
|
-
body = JSON.stringify(take(input, {
|
|
574
|
-
ExpirationSettings: (_) => _json(_),
|
|
575
|
-
}));
|
|
576
|
-
b.m("PUT").h(headers).b(body);
|
|
577
|
-
return b.build();
|
|
578
|
-
};
|
|
579
|
-
export const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
|
|
580
|
-
const b = rb(input, context);
|
|
581
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
582
|
-
"content-type": "application/json",
|
|
583
|
-
[_xacb]: input[_CB],
|
|
584
|
-
});
|
|
585
|
-
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
|
|
586
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
587
|
-
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
588
|
-
let body;
|
|
589
|
-
body = JSON.stringify(take(input, {
|
|
590
|
-
Preferences: (_) => _json(_),
|
|
591
|
-
}));
|
|
592
|
-
b.m("PUT").h(headers).b(body);
|
|
593
|
-
return b.build();
|
|
594
|
-
};
|
|
595
|
-
export const se_PutMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
596
|
-
const b = rb(input, context);
|
|
597
|
-
const headers = {
|
|
598
|
-
"content-type": "application/json",
|
|
599
|
-
};
|
|
600
|
-
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
601
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
602
|
-
let body;
|
|
603
|
-
body = JSON.stringify(take(input, {
|
|
604
|
-
StreamingConfigurations: (_) => _json(_),
|
|
605
|
-
}));
|
|
606
|
-
b.m("PUT").h(headers).b(body);
|
|
607
|
-
return b.build();
|
|
608
|
-
};
|
|
609
|
-
export const se_RedactChannelMessageCommand = async (input, context) => {
|
|
610
|
-
const b = rb(input, context);
|
|
611
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
612
|
-
"content-type": "application/json",
|
|
613
|
-
[_xacb]: input[_CB],
|
|
614
|
-
});
|
|
615
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
616
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
617
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
618
|
-
const query = map({
|
|
619
|
-
[_o]: [, "redact"],
|
|
620
|
-
});
|
|
621
|
-
let body;
|
|
622
|
-
body = JSON.stringify(take(input, {
|
|
623
|
-
SubChannelId: [],
|
|
624
|
-
}));
|
|
625
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
626
|
-
return b.build();
|
|
627
|
-
};
|
|
628
|
-
export const se_SearchChannelsCommand = async (input, context) => {
|
|
629
|
-
const b = rb(input, context);
|
|
630
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
631
|
-
"content-type": "application/json",
|
|
632
|
-
[_xacb]: input[_CB],
|
|
633
|
-
});
|
|
634
|
-
b.bp("/channels");
|
|
635
|
-
const query = map({
|
|
636
|
-
[_o]: [, "search"],
|
|
637
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
638
|
-
[_nt_]: [, input[_NTe]],
|
|
639
|
-
});
|
|
640
|
-
let body;
|
|
641
|
-
body = JSON.stringify(take(input, {
|
|
642
|
-
Fields: (_) => _json(_),
|
|
643
|
-
}));
|
|
644
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
645
|
-
return b.build();
|
|
646
|
-
};
|
|
647
|
-
export const se_SendChannelMessageCommand = async (input, context) => {
|
|
648
|
-
const b = rb(input, context);
|
|
649
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
650
|
-
"content-type": "application/json",
|
|
651
|
-
[_xacb]: input[_CB],
|
|
652
|
-
});
|
|
653
|
-
b.bp("/channels/{ChannelArn}/messages");
|
|
654
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
655
|
-
let body;
|
|
656
|
-
body = JSON.stringify(take(input, {
|
|
657
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
658
|
-
Content: [],
|
|
659
|
-
ContentType: [],
|
|
660
|
-
MessageAttributes: (_) => _json(_),
|
|
661
|
-
Metadata: [],
|
|
662
|
-
Persistence: [],
|
|
663
|
-
PushNotification: (_) => _json(_),
|
|
664
|
-
SubChannelId: [],
|
|
665
|
-
Target: (_) => _json(_),
|
|
666
|
-
Type: [],
|
|
667
|
-
}));
|
|
668
|
-
b.m("POST").h(headers).b(body);
|
|
669
|
-
return b.build();
|
|
670
|
-
};
|
|
671
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
672
|
-
const b = rb(input, context);
|
|
673
|
-
const headers = {
|
|
674
|
-
"content-type": "application/json",
|
|
675
|
-
};
|
|
676
|
-
b.bp("/tags");
|
|
677
|
-
const query = map({
|
|
678
|
-
[_o]: [, "tag-resource"],
|
|
679
|
-
});
|
|
680
|
-
let body;
|
|
681
|
-
body = JSON.stringify(take(input, {
|
|
682
|
-
ResourceARN: [],
|
|
683
|
-
Tags: (_) => _json(_),
|
|
684
|
-
}));
|
|
685
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
686
|
-
return b.build();
|
|
687
|
-
};
|
|
688
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
689
|
-
const b = rb(input, context);
|
|
690
|
-
const headers = {
|
|
691
|
-
"content-type": "application/json",
|
|
692
|
-
};
|
|
693
|
-
b.bp("/tags");
|
|
694
|
-
const query = map({
|
|
695
|
-
[_o]: [, "untag-resource"],
|
|
696
|
-
});
|
|
697
|
-
let body;
|
|
698
|
-
body = JSON.stringify(take(input, {
|
|
699
|
-
ResourceARN: [],
|
|
700
|
-
TagKeys: (_) => _json(_),
|
|
701
|
-
}));
|
|
702
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
703
|
-
return b.build();
|
|
704
|
-
};
|
|
705
|
-
export const se_UpdateChannelCommand = async (input, context) => {
|
|
706
|
-
const b = rb(input, context);
|
|
707
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
708
|
-
"content-type": "application/json",
|
|
709
|
-
[_xacb]: input[_CB],
|
|
710
|
-
});
|
|
711
|
-
b.bp("/channels/{ChannelArn}");
|
|
712
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
713
|
-
let body;
|
|
714
|
-
body = JSON.stringify(take(input, {
|
|
715
|
-
Metadata: [],
|
|
716
|
-
Mode: [],
|
|
717
|
-
Name: [],
|
|
718
|
-
}));
|
|
719
|
-
b.m("PUT").h(headers).b(body);
|
|
720
|
-
return b.build();
|
|
721
|
-
};
|
|
722
|
-
export const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
723
|
-
const b = rb(input, context);
|
|
724
|
-
const headers = {
|
|
725
|
-
"content-type": "application/json",
|
|
726
|
-
};
|
|
727
|
-
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
728
|
-
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
729
|
-
let body;
|
|
730
|
-
body = JSON.stringify(take(input, {
|
|
731
|
-
Name: [],
|
|
732
|
-
Processors: (_) => _json(_),
|
|
733
|
-
}));
|
|
734
|
-
b.m("PUT").h(headers).b(body);
|
|
735
|
-
return b.build();
|
|
736
|
-
};
|
|
737
|
-
export const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
738
|
-
const b = rb(input, context);
|
|
739
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
740
|
-
"content-type": "application/json",
|
|
741
|
-
[_xacb]: input[_CB],
|
|
742
|
-
});
|
|
743
|
-
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
744
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
745
|
-
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
746
|
-
let body;
|
|
747
|
-
body = JSON.stringify(take(input, {
|
|
748
|
-
Content: [],
|
|
749
|
-
ContentType: [],
|
|
750
|
-
Metadata: [],
|
|
751
|
-
SubChannelId: [],
|
|
752
|
-
}));
|
|
753
|
-
b.m("PUT").h(headers).b(body);
|
|
754
|
-
return b.build();
|
|
755
|
-
};
|
|
756
|
-
export const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
757
|
-
const b = rb(input, context);
|
|
758
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
759
|
-
[_xacb]: input[_CB],
|
|
760
|
-
});
|
|
761
|
-
b.bp("/channels/{ChannelArn}/readMarker");
|
|
762
|
-
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
763
|
-
let body;
|
|
764
|
-
b.m("PUT").h(headers).b(body);
|
|
765
|
-
return b.build();
|
|
766
|
-
};
|
|
767
|
-
export const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
768
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
-
return de_CommandError(output, context);
|
|
770
|
-
}
|
|
771
|
-
const contents = map({
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
});
|
|
774
|
-
await collectBody(output.body, context);
|
|
775
|
-
return contents;
|
|
776
|
-
};
|
|
777
|
-
export const de_BatchCreateChannelMembershipCommand = async (output, context) => {
|
|
778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
|
-
return de_CommandError(output, context);
|
|
780
|
-
}
|
|
781
|
-
const contents = map({
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
});
|
|
784
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
785
|
-
const doc = take(data, {
|
|
786
|
-
BatchChannelMemberships: _json,
|
|
787
|
-
Errors: _json,
|
|
788
|
-
});
|
|
789
|
-
Object.assign(contents, doc);
|
|
790
|
-
return contents;
|
|
791
|
-
};
|
|
792
|
-
export const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
794
|
-
return de_CommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
const contents = map({
|
|
797
|
-
$metadata: deserializeMetadata(output),
|
|
798
|
-
});
|
|
799
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
800
|
-
const doc = take(data, {
|
|
801
|
-
CallbackId: __expectString,
|
|
802
|
-
ChannelArn: __expectString,
|
|
803
|
-
});
|
|
804
|
-
Object.assign(contents, doc);
|
|
805
|
-
return contents;
|
|
806
|
-
};
|
|
807
|
-
export const de_CreateChannelCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
809
|
-
return de_CommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const contents = map({
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
});
|
|
814
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
815
|
-
const doc = take(data, {
|
|
816
|
-
ChannelArn: __expectString,
|
|
817
|
-
});
|
|
818
|
-
Object.assign(contents, doc);
|
|
819
|
-
return contents;
|
|
820
|
-
};
|
|
821
|
-
export const de_CreateChannelBanCommand = async (output, context) => {
|
|
822
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
823
|
-
return de_CommandError(output, context);
|
|
824
|
-
}
|
|
825
|
-
const contents = map({
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
});
|
|
828
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
829
|
-
const doc = take(data, {
|
|
830
|
-
ChannelArn: __expectString,
|
|
831
|
-
Member: _json,
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
return contents;
|
|
835
|
-
};
|
|
836
|
-
export const de_CreateChannelFlowCommand = async (output, context) => {
|
|
837
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const contents = map({
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
});
|
|
843
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
844
|
-
const doc = take(data, {
|
|
845
|
-
ChannelFlowArn: __expectString,
|
|
846
|
-
});
|
|
847
|
-
Object.assign(contents, doc);
|
|
848
|
-
return contents;
|
|
849
|
-
};
|
|
850
|
-
export const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
851
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
852
|
-
return de_CommandError(output, context);
|
|
853
|
-
}
|
|
854
|
-
const contents = map({
|
|
855
|
-
$metadata: deserializeMetadata(output),
|
|
856
|
-
});
|
|
857
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
858
|
-
const doc = take(data, {
|
|
859
|
-
ChannelArn: __expectString,
|
|
860
|
-
Member: _json,
|
|
861
|
-
SubChannelId: __expectString,
|
|
862
|
-
});
|
|
863
|
-
Object.assign(contents, doc);
|
|
864
|
-
return contents;
|
|
865
|
-
};
|
|
866
|
-
export const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
867
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
868
|
-
return de_CommandError(output, context);
|
|
869
|
-
}
|
|
870
|
-
const contents = map({
|
|
871
|
-
$metadata: deserializeMetadata(output),
|
|
872
|
-
});
|
|
873
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
874
|
-
const doc = take(data, {
|
|
875
|
-
ChannelArn: __expectString,
|
|
876
|
-
ChannelModerator: _json,
|
|
877
|
-
});
|
|
878
|
-
Object.assign(contents, doc);
|
|
879
|
-
return contents;
|
|
880
|
-
};
|
|
881
|
-
export const de_DeleteChannelCommand = async (output, context) => {
|
|
882
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
883
|
-
return de_CommandError(output, context);
|
|
884
|
-
}
|
|
885
|
-
const contents = map({
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
});
|
|
888
|
-
await collectBody(output.body, context);
|
|
889
|
-
return contents;
|
|
890
|
-
};
|
|
891
|
-
export const de_DeleteChannelBanCommand = async (output, context) => {
|
|
892
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
893
|
-
return de_CommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const contents = map({
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
});
|
|
898
|
-
await collectBody(output.body, context);
|
|
899
|
-
return contents;
|
|
900
|
-
};
|
|
901
|
-
export const de_DeleteChannelFlowCommand = async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
903
|
-
return de_CommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = map({
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
});
|
|
908
|
-
await collectBody(output.body, context);
|
|
909
|
-
return contents;
|
|
910
|
-
};
|
|
911
|
-
export const de_DeleteChannelMembershipCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
913
|
-
return de_CommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const contents = map({
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
});
|
|
918
|
-
await collectBody(output.body, context);
|
|
919
|
-
return contents;
|
|
920
|
-
};
|
|
921
|
-
export const de_DeleteChannelMessageCommand = async (output, context) => {
|
|
922
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
923
|
-
return de_CommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
const contents = map({
|
|
926
|
-
$metadata: deserializeMetadata(output),
|
|
927
|
-
});
|
|
928
|
-
await collectBody(output.body, context);
|
|
929
|
-
return contents;
|
|
930
|
-
};
|
|
931
|
-
export const de_DeleteChannelModeratorCommand = async (output, context) => {
|
|
932
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
933
|
-
return de_CommandError(output, context);
|
|
934
|
-
}
|
|
935
|
-
const contents = map({
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
});
|
|
938
|
-
await collectBody(output.body, context);
|
|
939
|
-
return contents;
|
|
940
|
-
};
|
|
941
|
-
export const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
942
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
943
|
-
return de_CommandError(output, context);
|
|
944
|
-
}
|
|
945
|
-
const contents = map({
|
|
946
|
-
$metadata: deserializeMetadata(output),
|
|
947
|
-
});
|
|
948
|
-
await collectBody(output.body, context);
|
|
949
|
-
return contents;
|
|
950
|
-
};
|
|
951
|
-
export const de_DescribeChannelCommand = async (output, context) => {
|
|
952
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
|
-
return de_CommandError(output, context);
|
|
954
|
-
}
|
|
955
|
-
const contents = map({
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
});
|
|
958
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
959
|
-
const doc = take(data, {
|
|
960
|
-
Channel: (_) => de_Channel(_, context),
|
|
961
|
-
});
|
|
962
|
-
Object.assign(contents, doc);
|
|
963
|
-
return contents;
|
|
964
|
-
};
|
|
965
|
-
export const de_DescribeChannelBanCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return de_CommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const contents = map({
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
});
|
|
972
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
973
|
-
const doc = take(data, {
|
|
974
|
-
ChannelBan: (_) => de_ChannelBan(_, context),
|
|
975
|
-
});
|
|
976
|
-
Object.assign(contents, doc);
|
|
977
|
-
return contents;
|
|
978
|
-
};
|
|
979
|
-
export const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
980
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
-
return de_CommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const contents = map({
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
});
|
|
986
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
987
|
-
const doc = take(data, {
|
|
988
|
-
ChannelFlow: (_) => de_ChannelFlow(_, context),
|
|
989
|
-
});
|
|
990
|
-
Object.assign(contents, doc);
|
|
991
|
-
return contents;
|
|
992
|
-
};
|
|
993
|
-
export const de_DescribeChannelMembershipCommand = async (output, context) => {
|
|
994
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
-
return de_CommandError(output, context);
|
|
996
|
-
}
|
|
997
|
-
const contents = map({
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
});
|
|
1000
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1001
|
-
const doc = take(data, {
|
|
1002
|
-
ChannelMembership: (_) => de_ChannelMembership(_, context),
|
|
1003
|
-
});
|
|
1004
|
-
Object.assign(contents, doc);
|
|
1005
|
-
return contents;
|
|
1006
|
-
};
|
|
1007
|
-
export const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
|
|
1008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return de_CommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const contents = map({
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
});
|
|
1014
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1015
|
-
const doc = take(data, {
|
|
1016
|
-
ChannelMembership: (_) => de_ChannelMembershipForAppInstanceUserSummary(_, context),
|
|
1017
|
-
});
|
|
1018
|
-
Object.assign(contents, doc);
|
|
1019
|
-
return contents;
|
|
1020
|
-
};
|
|
1021
|
-
export const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
1022
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1023
|
-
return de_CommandError(output, context);
|
|
1024
|
-
}
|
|
1025
|
-
const contents = map({
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
});
|
|
1028
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1029
|
-
const doc = take(data, {
|
|
1030
|
-
Channel: (_) => de_ChannelModeratedByAppInstanceUserSummary(_, context),
|
|
1031
|
-
});
|
|
1032
|
-
Object.assign(contents, doc);
|
|
1033
|
-
return contents;
|
|
1034
|
-
};
|
|
1035
|
-
export const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
1036
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return de_CommandError(output, context);
|
|
1038
|
-
}
|
|
1039
|
-
const contents = map({
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
});
|
|
1042
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1043
|
-
const doc = take(data, {
|
|
1044
|
-
ChannelModerator: (_) => de_ChannelModerator(_, context),
|
|
1045
|
-
});
|
|
1046
|
-
Object.assign(contents, doc);
|
|
1047
|
-
return contents;
|
|
1048
|
-
};
|
|
1049
|
-
export const de_DisassociateChannelFlowCommand = async (output, context) => {
|
|
1050
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1051
|
-
return de_CommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const contents = map({
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
});
|
|
1056
|
-
await collectBody(output.body, context);
|
|
1057
|
-
return contents;
|
|
1058
|
-
};
|
|
1059
|
-
export const de_GetChannelMembershipPreferencesCommand = async (output, context) => {
|
|
1060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return de_CommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const contents = map({
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
});
|
|
1066
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1067
|
-
const doc = take(data, {
|
|
1068
|
-
ChannelArn: __expectString,
|
|
1069
|
-
Member: _json,
|
|
1070
|
-
Preferences: _json,
|
|
1071
|
-
});
|
|
1072
|
-
Object.assign(contents, doc);
|
|
1073
|
-
return contents;
|
|
1074
|
-
};
|
|
1075
|
-
export const de_GetChannelMessageCommand = async (output, context) => {
|
|
1076
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
|
-
return de_CommandError(output, context);
|
|
1078
|
-
}
|
|
1079
|
-
const contents = map({
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
});
|
|
1082
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1083
|
-
const doc = take(data, {
|
|
1084
|
-
ChannelMessage: (_) => de_ChannelMessage(_, context),
|
|
1085
|
-
});
|
|
1086
|
-
Object.assign(contents, doc);
|
|
1087
|
-
return contents;
|
|
1088
|
-
};
|
|
1089
|
-
export const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
1090
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
|
-
return de_CommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const contents = map({
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
});
|
|
1096
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1097
|
-
const doc = take(data, {
|
|
1098
|
-
Status: _json,
|
|
1099
|
-
});
|
|
1100
|
-
Object.assign(contents, doc);
|
|
1101
|
-
return contents;
|
|
1102
|
-
};
|
|
1103
|
-
export const de_GetMessagingSessionEndpointCommand = async (output, context) => {
|
|
1104
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
|
-
return de_CommandError(output, context);
|
|
1106
|
-
}
|
|
1107
|
-
const contents = map({
|
|
1108
|
-
$metadata: deserializeMetadata(output),
|
|
1109
|
-
});
|
|
1110
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1111
|
-
const doc = take(data, {
|
|
1112
|
-
Endpoint: _json,
|
|
1113
|
-
});
|
|
1114
|
-
Object.assign(contents, doc);
|
|
1115
|
-
return contents;
|
|
1116
|
-
};
|
|
1117
|
-
export const de_GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1118
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
|
-
return de_CommandError(output, context);
|
|
1120
|
-
}
|
|
1121
|
-
const contents = map({
|
|
1122
|
-
$metadata: deserializeMetadata(output),
|
|
1123
|
-
});
|
|
1124
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1125
|
-
const doc = take(data, {
|
|
1126
|
-
StreamingConfigurations: _json,
|
|
1127
|
-
});
|
|
1128
|
-
Object.assign(contents, doc);
|
|
1129
|
-
return contents;
|
|
1130
|
-
};
|
|
1131
|
-
export const de_ListChannelBansCommand = async (output, context) => {
|
|
1132
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return de_CommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const contents = map({
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
});
|
|
1138
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1139
|
-
const doc = take(data, {
|
|
1140
|
-
ChannelArn: __expectString,
|
|
1141
|
-
ChannelBans: _json,
|
|
1142
|
-
NextToken: __expectString,
|
|
1143
|
-
});
|
|
1144
|
-
Object.assign(contents, doc);
|
|
1145
|
-
return contents;
|
|
1146
|
-
};
|
|
1147
|
-
export const de_ListChannelFlowsCommand = async (output, context) => {
|
|
1148
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1149
|
-
return de_CommandError(output, context);
|
|
1150
|
-
}
|
|
1151
|
-
const contents = map({
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
});
|
|
1154
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1155
|
-
const doc = take(data, {
|
|
1156
|
-
ChannelFlows: _json,
|
|
1157
|
-
NextToken: __expectString,
|
|
1158
|
-
});
|
|
1159
|
-
Object.assign(contents, doc);
|
|
1160
|
-
return contents;
|
|
1161
|
-
};
|
|
1162
|
-
export const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
1163
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1164
|
-
return de_CommandError(output, context);
|
|
1165
|
-
}
|
|
1166
|
-
const contents = map({
|
|
1167
|
-
$metadata: deserializeMetadata(output),
|
|
1168
|
-
});
|
|
1169
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1170
|
-
const doc = take(data, {
|
|
1171
|
-
ChannelArn: __expectString,
|
|
1172
|
-
ChannelMemberships: _json,
|
|
1173
|
-
NextToken: __expectString,
|
|
1174
|
-
});
|
|
1175
|
-
Object.assign(contents, doc);
|
|
1176
|
-
return contents;
|
|
1177
|
-
};
|
|
1178
|
-
export const de_ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
|
|
1179
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
-
return de_CommandError(output, context);
|
|
1181
|
-
}
|
|
1182
|
-
const contents = map({
|
|
1183
|
-
$metadata: deserializeMetadata(output),
|
|
1184
|
-
});
|
|
1185
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1186
|
-
const doc = take(data, {
|
|
1187
|
-
ChannelMemberships: (_) => de_ChannelMembershipForAppInstanceUserSummaryList(_, context),
|
|
1188
|
-
NextToken: __expectString,
|
|
1189
|
-
});
|
|
1190
|
-
Object.assign(contents, doc);
|
|
1191
|
-
return contents;
|
|
1192
|
-
};
|
|
1193
|
-
export const de_ListChannelMessagesCommand = async (output, context) => {
|
|
1194
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
|
-
return de_CommandError(output, context);
|
|
1196
|
-
}
|
|
1197
|
-
const contents = map({
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
});
|
|
1200
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1201
|
-
const doc = take(data, {
|
|
1202
|
-
ChannelArn: __expectString,
|
|
1203
|
-
ChannelMessages: (_) => de_ChannelMessageSummaryList(_, context),
|
|
1204
|
-
NextToken: __expectString,
|
|
1205
|
-
SubChannelId: __expectString,
|
|
1206
|
-
});
|
|
1207
|
-
Object.assign(contents, doc);
|
|
1208
|
-
return contents;
|
|
1209
|
-
};
|
|
1210
|
-
export const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
1211
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1212
|
-
return de_CommandError(output, context);
|
|
1213
|
-
}
|
|
1214
|
-
const contents = map({
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
});
|
|
1217
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1218
|
-
const doc = take(data, {
|
|
1219
|
-
ChannelArn: __expectString,
|
|
1220
|
-
ChannelModerators: _json,
|
|
1221
|
-
NextToken: __expectString,
|
|
1222
|
-
});
|
|
1223
|
-
Object.assign(contents, doc);
|
|
1224
|
-
return contents;
|
|
1225
|
-
};
|
|
1226
|
-
export const de_ListChannelsCommand = async (output, context) => {
|
|
1227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return de_CommandError(output, context);
|
|
1229
|
-
}
|
|
1230
|
-
const contents = map({
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
});
|
|
1233
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1234
|
-
const doc = take(data, {
|
|
1235
|
-
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
1236
|
-
NextToken: __expectString,
|
|
1237
|
-
});
|
|
1238
|
-
Object.assign(contents, doc);
|
|
1239
|
-
return contents;
|
|
1240
|
-
};
|
|
1241
|
-
export const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
|
|
1242
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
|
-
return de_CommandError(output, context);
|
|
1244
|
-
}
|
|
1245
|
-
const contents = map({
|
|
1246
|
-
$metadata: deserializeMetadata(output),
|
|
1247
|
-
});
|
|
1248
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1249
|
-
const doc = take(data, {
|
|
1250
|
-
Channels: _json,
|
|
1251
|
-
NextToken: __expectString,
|
|
1252
|
-
});
|
|
1253
|
-
Object.assign(contents, doc);
|
|
1254
|
-
return contents;
|
|
1255
|
-
};
|
|
1256
|
-
export const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
1257
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1258
|
-
return de_CommandError(output, context);
|
|
1259
|
-
}
|
|
1260
|
-
const contents = map({
|
|
1261
|
-
$metadata: deserializeMetadata(output),
|
|
1262
|
-
});
|
|
1263
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1264
|
-
const doc = take(data, {
|
|
1265
|
-
Channels: (_) => de_ChannelModeratedByAppInstanceUserSummaryList(_, context),
|
|
1266
|
-
NextToken: __expectString,
|
|
1267
|
-
});
|
|
1268
|
-
Object.assign(contents, doc);
|
|
1269
|
-
return contents;
|
|
1270
|
-
};
|
|
1271
|
-
export const de_ListSubChannelsCommand = async (output, context) => {
|
|
1272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1273
|
-
return de_CommandError(output, context);
|
|
1274
|
-
}
|
|
1275
|
-
const contents = map({
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
});
|
|
1278
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1279
|
-
const doc = take(data, {
|
|
1280
|
-
ChannelArn: __expectString,
|
|
1281
|
-
NextToken: __expectString,
|
|
1282
|
-
SubChannels: _json,
|
|
1283
|
-
});
|
|
1284
|
-
Object.assign(contents, doc);
|
|
1285
|
-
return contents;
|
|
1286
|
-
};
|
|
1287
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1288
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1289
|
-
return de_CommandError(output, context);
|
|
1290
|
-
}
|
|
1291
|
-
const contents = map({
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
});
|
|
1294
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1295
|
-
const doc = take(data, {
|
|
1296
|
-
Tags: _json,
|
|
1297
|
-
});
|
|
1298
|
-
Object.assign(contents, doc);
|
|
1299
|
-
return contents;
|
|
1300
|
-
};
|
|
1301
|
-
export const de_PutChannelExpirationSettingsCommand = async (output, context) => {
|
|
1302
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return de_CommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const contents = map({
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
});
|
|
1308
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1309
|
-
const doc = take(data, {
|
|
1310
|
-
ChannelArn: __expectString,
|
|
1311
|
-
ExpirationSettings: _json,
|
|
1312
|
-
});
|
|
1313
|
-
Object.assign(contents, doc);
|
|
1314
|
-
return contents;
|
|
1315
|
-
};
|
|
1316
|
-
export const de_PutChannelMembershipPreferencesCommand = async (output, context) => {
|
|
1317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1318
|
-
return de_CommandError(output, context);
|
|
1319
|
-
}
|
|
1320
|
-
const contents = map({
|
|
1321
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
-
});
|
|
1323
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1324
|
-
const doc = take(data, {
|
|
1325
|
-
ChannelArn: __expectString,
|
|
1326
|
-
Member: _json,
|
|
1327
|
-
Preferences: _json,
|
|
1328
|
-
});
|
|
1329
|
-
Object.assign(contents, doc);
|
|
1330
|
-
return contents;
|
|
1331
|
-
};
|
|
1332
|
-
export const de_PutMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1333
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return de_CommandError(output, context);
|
|
1335
|
-
}
|
|
1336
|
-
const contents = map({
|
|
1337
|
-
$metadata: deserializeMetadata(output),
|
|
1338
|
-
});
|
|
1339
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1340
|
-
const doc = take(data, {
|
|
1341
|
-
StreamingConfigurations: _json,
|
|
1342
|
-
});
|
|
1343
|
-
Object.assign(contents, doc);
|
|
1344
|
-
return contents;
|
|
1345
|
-
};
|
|
1346
|
-
export const de_RedactChannelMessageCommand = async (output, context) => {
|
|
1347
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
|
-
return de_CommandError(output, context);
|
|
1349
|
-
}
|
|
1350
|
-
const contents = map({
|
|
1351
|
-
$metadata: deserializeMetadata(output),
|
|
1352
|
-
});
|
|
1353
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1354
|
-
const doc = take(data, {
|
|
1355
|
-
ChannelArn: __expectString,
|
|
1356
|
-
MessageId: __expectString,
|
|
1357
|
-
SubChannelId: __expectString,
|
|
1358
|
-
});
|
|
1359
|
-
Object.assign(contents, doc);
|
|
1360
|
-
return contents;
|
|
1361
|
-
};
|
|
1362
|
-
export const de_SearchChannelsCommand = async (output, context) => {
|
|
1363
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return de_CommandError(output, context);
|
|
1365
|
-
}
|
|
1366
|
-
const contents = map({
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
});
|
|
1369
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1370
|
-
const doc = take(data, {
|
|
1371
|
-
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
1372
|
-
NextToken: __expectString,
|
|
1373
|
-
});
|
|
1374
|
-
Object.assign(contents, doc);
|
|
1375
|
-
return contents;
|
|
1376
|
-
};
|
|
1377
|
-
export const de_SendChannelMessageCommand = async (output, context) => {
|
|
1378
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1379
|
-
return de_CommandError(output, context);
|
|
1380
|
-
}
|
|
1381
|
-
const contents = map({
|
|
1382
|
-
$metadata: deserializeMetadata(output),
|
|
1383
|
-
});
|
|
1384
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1385
|
-
const doc = take(data, {
|
|
1386
|
-
ChannelArn: __expectString,
|
|
1387
|
-
MessageId: __expectString,
|
|
1388
|
-
Status: _json,
|
|
1389
|
-
SubChannelId: __expectString,
|
|
1390
|
-
});
|
|
1391
|
-
Object.assign(contents, doc);
|
|
1392
|
-
return contents;
|
|
1393
|
-
};
|
|
1394
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1395
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1396
|
-
return de_CommandError(output, context);
|
|
1397
|
-
}
|
|
1398
|
-
const contents = map({
|
|
1399
|
-
$metadata: deserializeMetadata(output),
|
|
1400
|
-
});
|
|
1401
|
-
await collectBody(output.body, context);
|
|
1402
|
-
return contents;
|
|
1403
|
-
};
|
|
1404
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1405
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1406
|
-
return de_CommandError(output, context);
|
|
1407
|
-
}
|
|
1408
|
-
const contents = map({
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
});
|
|
1411
|
-
await collectBody(output.body, context);
|
|
1412
|
-
return contents;
|
|
1413
|
-
};
|
|
1414
|
-
export const de_UpdateChannelCommand = async (output, context) => {
|
|
1415
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1416
|
-
return de_CommandError(output, context);
|
|
1417
|
-
}
|
|
1418
|
-
const contents = map({
|
|
1419
|
-
$metadata: deserializeMetadata(output),
|
|
1420
|
-
});
|
|
1421
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1422
|
-
const doc = take(data, {
|
|
1423
|
-
ChannelArn: __expectString,
|
|
1424
|
-
});
|
|
1425
|
-
Object.assign(contents, doc);
|
|
1426
|
-
return contents;
|
|
1427
|
-
};
|
|
1428
|
-
export const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return de_CommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const contents = map({
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
});
|
|
1435
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1436
|
-
const doc = take(data, {
|
|
1437
|
-
ChannelFlowArn: __expectString,
|
|
1438
|
-
});
|
|
1439
|
-
Object.assign(contents, doc);
|
|
1440
|
-
return contents;
|
|
1441
|
-
};
|
|
1442
|
-
export const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
1443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1444
|
-
return de_CommandError(output, context);
|
|
1445
|
-
}
|
|
1446
|
-
const contents = map({
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
});
|
|
1449
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1450
|
-
const doc = take(data, {
|
|
1451
|
-
ChannelArn: __expectString,
|
|
1452
|
-
MessageId: __expectString,
|
|
1453
|
-
Status: _json,
|
|
1454
|
-
SubChannelId: __expectString,
|
|
1455
|
-
});
|
|
1456
|
-
Object.assign(contents, doc);
|
|
1457
|
-
return contents;
|
|
1458
|
-
};
|
|
1459
|
-
export const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
1460
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1461
|
-
return de_CommandError(output, context);
|
|
1462
|
-
}
|
|
1463
|
-
const contents = map({
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
});
|
|
1466
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1467
|
-
const doc = take(data, {
|
|
1468
|
-
ChannelArn: __expectString,
|
|
1469
|
-
});
|
|
1470
|
-
Object.assign(contents, doc);
|
|
1471
|
-
return contents;
|
|
1472
|
-
};
|
|
1473
|
-
const de_CommandError = async (output, context) => {
|
|
1474
|
-
const parsedOutput = {
|
|
1475
|
-
...output,
|
|
1476
|
-
body: await parseErrorBody(output.body, context),
|
|
1477
|
-
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
-
switch (errorCode) {
|
|
1480
|
-
case "BadRequestException":
|
|
1481
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1482
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ConflictException":
|
|
1484
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1485
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ForbiddenException":
|
|
1487
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1488
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "NotFoundException":
|
|
1490
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1491
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ServiceFailureException":
|
|
1493
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1494
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ServiceUnavailableException":
|
|
1496
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1497
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ThrottledClientException":
|
|
1499
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1500
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "UnauthorizedClientException":
|
|
1502
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1503
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "ResourceLimitExceededException":
|
|
1505
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1506
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1507
|
-
default:
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode,
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1517
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1518
|
-
const contents = map({});
|
|
1519
|
-
const data = parsedOutput.body;
|
|
1520
|
-
const doc = take(data, {
|
|
1521
|
-
Code: __expectString,
|
|
1522
|
-
Message: __expectString,
|
|
1523
|
-
});
|
|
1524
|
-
Object.assign(contents, doc);
|
|
1525
|
-
const exception = new BadRequestException({
|
|
1526
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1527
|
-
...contents,
|
|
1528
|
-
});
|
|
1529
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1530
|
-
};
|
|
1531
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1532
|
-
const contents = map({});
|
|
1533
|
-
const data = parsedOutput.body;
|
|
1534
|
-
const doc = take(data, {
|
|
1535
|
-
Code: __expectString,
|
|
1536
|
-
Message: __expectString,
|
|
1537
|
-
});
|
|
1538
|
-
Object.assign(contents, doc);
|
|
1539
|
-
const exception = new ConflictException({
|
|
1540
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1541
|
-
...contents,
|
|
1542
|
-
});
|
|
1543
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1544
|
-
};
|
|
1545
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1546
|
-
const contents = map({});
|
|
1547
|
-
const data = parsedOutput.body;
|
|
1548
|
-
const doc = take(data, {
|
|
1549
|
-
Code: __expectString,
|
|
1550
|
-
Message: __expectString,
|
|
1551
|
-
});
|
|
1552
|
-
Object.assign(contents, doc);
|
|
1553
|
-
const exception = new ForbiddenException({
|
|
1554
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1555
|
-
...contents,
|
|
1556
|
-
});
|
|
1557
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1558
|
-
};
|
|
1559
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1560
|
-
const contents = map({});
|
|
1561
|
-
const data = parsedOutput.body;
|
|
1562
|
-
const doc = take(data, {
|
|
1563
|
-
Code: __expectString,
|
|
1564
|
-
Message: __expectString,
|
|
1565
|
-
});
|
|
1566
|
-
Object.assign(contents, doc);
|
|
1567
|
-
const exception = new NotFoundException({
|
|
1568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1569
|
-
...contents,
|
|
1570
|
-
});
|
|
1571
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1572
|
-
};
|
|
1573
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1574
|
-
const contents = map({});
|
|
1575
|
-
const data = parsedOutput.body;
|
|
1576
|
-
const doc = take(data, {
|
|
1577
|
-
Code: __expectString,
|
|
1578
|
-
Message: __expectString,
|
|
1579
|
-
});
|
|
1580
|
-
Object.assign(contents, doc);
|
|
1581
|
-
const exception = new ResourceLimitExceededException({
|
|
1582
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1583
|
-
...contents,
|
|
1584
|
-
});
|
|
1585
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1586
|
-
};
|
|
1587
|
-
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
1588
|
-
const contents = map({});
|
|
1589
|
-
const data = parsedOutput.body;
|
|
1590
|
-
const doc = take(data, {
|
|
1591
|
-
Code: __expectString,
|
|
1592
|
-
Message: __expectString,
|
|
1593
|
-
});
|
|
1594
|
-
Object.assign(contents, doc);
|
|
1595
|
-
const exception = new ServiceFailureException({
|
|
1596
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1597
|
-
...contents,
|
|
1598
|
-
});
|
|
1599
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1600
|
-
};
|
|
1601
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1602
|
-
const contents = map({});
|
|
1603
|
-
const data = parsedOutput.body;
|
|
1604
|
-
const doc = take(data, {
|
|
1605
|
-
Code: __expectString,
|
|
1606
|
-
Message: __expectString,
|
|
1607
|
-
});
|
|
1608
|
-
Object.assign(contents, doc);
|
|
1609
|
-
const exception = new ServiceUnavailableException({
|
|
1610
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1611
|
-
...contents,
|
|
1612
|
-
});
|
|
1613
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1614
|
-
};
|
|
1615
|
-
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
1616
|
-
const contents = map({});
|
|
1617
|
-
const data = parsedOutput.body;
|
|
1618
|
-
const doc = take(data, {
|
|
1619
|
-
Code: __expectString,
|
|
1620
|
-
Message: __expectString,
|
|
1621
|
-
});
|
|
1622
|
-
Object.assign(contents, doc);
|
|
1623
|
-
const exception = new ThrottledClientException({
|
|
1624
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1625
|
-
...contents,
|
|
1626
|
-
});
|
|
1627
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1628
|
-
};
|
|
1629
|
-
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
1630
|
-
const contents = map({});
|
|
1631
|
-
const data = parsedOutput.body;
|
|
1632
|
-
const doc = take(data, {
|
|
1633
|
-
Code: __expectString,
|
|
1634
|
-
Message: __expectString,
|
|
1635
|
-
});
|
|
1636
|
-
Object.assign(contents, doc);
|
|
1637
|
-
const exception = new UnauthorizedClientException({
|
|
1638
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1639
|
-
...contents,
|
|
1640
|
-
});
|
|
1641
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1642
|
-
};
|
|
1643
|
-
const de_AppInstanceUserMembershipSummary = (output, context) => {
|
|
1644
|
-
return take(output, {
|
|
1645
|
-
ReadMarkerTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1646
|
-
SubChannelId: __expectString,
|
|
1647
|
-
Type: __expectString,
|
|
1648
|
-
});
|
|
1649
|
-
};
|
|
1650
|
-
const de_Channel = (output, context) => {
|
|
1651
|
-
return take(output, {
|
|
1652
|
-
ChannelArn: __expectString,
|
|
1653
|
-
ChannelFlowArn: __expectString,
|
|
1654
|
-
CreatedBy: _json,
|
|
1655
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1656
|
-
ElasticChannelConfiguration: _json,
|
|
1657
|
-
ExpirationSettings: _json,
|
|
1658
|
-
LastMessageTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1659
|
-
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1660
|
-
Metadata: __expectString,
|
|
1661
|
-
Mode: __expectString,
|
|
1662
|
-
Name: __expectString,
|
|
1663
|
-
Privacy: __expectString,
|
|
1664
|
-
});
|
|
1665
|
-
};
|
|
1666
|
-
const de_ChannelBan = (output, context) => {
|
|
1667
|
-
return take(output, {
|
|
1668
|
-
ChannelArn: __expectString,
|
|
1669
|
-
CreatedBy: _json,
|
|
1670
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1671
|
-
Member: _json,
|
|
1672
|
-
});
|
|
1673
|
-
};
|
|
1674
|
-
const de_ChannelFlow = (output, context) => {
|
|
1675
|
-
return take(output, {
|
|
1676
|
-
ChannelFlowArn: __expectString,
|
|
1677
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1678
|
-
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1679
|
-
Name: __expectString,
|
|
1680
|
-
Processors: _json,
|
|
1681
|
-
});
|
|
1682
|
-
};
|
|
1683
|
-
const de_ChannelMembership = (output, context) => {
|
|
1684
|
-
return take(output, {
|
|
1685
|
-
ChannelArn: __expectString,
|
|
1686
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1687
|
-
InvitedBy: _json,
|
|
1688
|
-
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1689
|
-
Member: _json,
|
|
1690
|
-
SubChannelId: __expectString,
|
|
1691
|
-
Type: __expectString,
|
|
1692
|
-
});
|
|
1693
|
-
};
|
|
1694
|
-
const de_ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
1695
|
-
return take(output, {
|
|
1696
|
-
AppInstanceUserMembershipSummary: (_) => de_AppInstanceUserMembershipSummary(_, context),
|
|
1697
|
-
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
1698
|
-
});
|
|
1699
|
-
};
|
|
1700
|
-
const de_ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
|
|
1701
|
-
const retVal = (output || [])
|
|
1702
|
-
.filter((e) => e != null)
|
|
1703
|
-
.map((entry) => {
|
|
1704
|
-
return de_ChannelMembershipForAppInstanceUserSummary(entry, context);
|
|
1705
|
-
});
|
|
1706
|
-
return retVal;
|
|
1707
|
-
};
|
|
1708
|
-
const de_ChannelMessage = (output, context) => {
|
|
1709
|
-
return take(output, {
|
|
1710
|
-
ChannelArn: __expectString,
|
|
1711
|
-
Content: __expectString,
|
|
1712
|
-
ContentType: __expectString,
|
|
1713
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1714
|
-
LastEditedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1715
|
-
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1716
|
-
MessageAttributes: _json,
|
|
1717
|
-
MessageId: __expectString,
|
|
1718
|
-
Metadata: __expectString,
|
|
1719
|
-
Persistence: __expectString,
|
|
1720
|
-
Redacted: __expectBoolean,
|
|
1721
|
-
Sender: _json,
|
|
1722
|
-
Status: _json,
|
|
1723
|
-
SubChannelId: __expectString,
|
|
1724
|
-
Target: _json,
|
|
1725
|
-
Type: __expectString,
|
|
1726
|
-
});
|
|
1727
|
-
};
|
|
1728
|
-
const de_ChannelMessageSummary = (output, context) => {
|
|
1729
|
-
return take(output, {
|
|
1730
|
-
Content: __expectString,
|
|
1731
|
-
ContentType: __expectString,
|
|
1732
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1733
|
-
LastEditedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1734
|
-
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1735
|
-
MessageAttributes: _json,
|
|
1736
|
-
MessageId: __expectString,
|
|
1737
|
-
Metadata: __expectString,
|
|
1738
|
-
Redacted: __expectBoolean,
|
|
1739
|
-
Sender: _json,
|
|
1740
|
-
Status: _json,
|
|
1741
|
-
Target: _json,
|
|
1742
|
-
Type: __expectString,
|
|
1743
|
-
});
|
|
1744
|
-
};
|
|
1745
|
-
const de_ChannelMessageSummaryList = (output, context) => {
|
|
1746
|
-
const retVal = (output || [])
|
|
1747
|
-
.filter((e) => e != null)
|
|
1748
|
-
.map((entry) => {
|
|
1749
|
-
return de_ChannelMessageSummary(entry, context);
|
|
1750
|
-
});
|
|
1751
|
-
return retVal;
|
|
1752
|
-
};
|
|
1753
|
-
const de_ChannelModeratedByAppInstanceUserSummary = (output, context) => {
|
|
1754
|
-
return take(output, {
|
|
1755
|
-
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
1756
|
-
});
|
|
1757
|
-
};
|
|
1758
|
-
const de_ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
|
|
1759
|
-
const retVal = (output || [])
|
|
1760
|
-
.filter((e) => e != null)
|
|
1761
|
-
.map((entry) => {
|
|
1762
|
-
return de_ChannelModeratedByAppInstanceUserSummary(entry, context);
|
|
1763
|
-
});
|
|
1764
|
-
return retVal;
|
|
1765
|
-
};
|
|
1766
|
-
const de_ChannelModerator = (output, context) => {
|
|
1767
|
-
return take(output, {
|
|
1768
|
-
ChannelArn: __expectString,
|
|
1769
|
-
CreatedBy: _json,
|
|
1770
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1771
|
-
Moderator: _json,
|
|
1772
|
-
});
|
|
1773
|
-
};
|
|
1774
|
-
const de_ChannelSummary = (output, context) => {
|
|
1775
|
-
return take(output, {
|
|
1776
|
-
ChannelArn: __expectString,
|
|
1777
|
-
LastMessageTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1778
|
-
Metadata: __expectString,
|
|
1779
|
-
Mode: __expectString,
|
|
1780
|
-
Name: __expectString,
|
|
1781
|
-
Privacy: __expectString,
|
|
1782
|
-
});
|
|
1783
|
-
};
|
|
1784
|
-
const de_ChannelSummaryList = (output, context) => {
|
|
1785
|
-
const retVal = (output || [])
|
|
1786
|
-
.filter((e) => e != null)
|
|
1787
|
-
.map((entry) => {
|
|
1788
|
-
return de_ChannelSummary(entry, context);
|
|
1789
|
-
});
|
|
1790
|
-
return retVal;
|
|
1791
|
-
};
|
|
1792
|
-
const deserializeMetadata = (output) => ({
|
|
1793
|
-
httpStatusCode: output.statusCode,
|
|
1794
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1795
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1796
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1797
|
-
});
|
|
1798
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1799
|
-
const _AIA = "AppInstanceArn";
|
|
1800
|
-
const _AIUA = "AppInstanceUserArn";
|
|
1801
|
-
const _CB = "ChimeBearer";
|
|
1802
|
-
const _CFA = "ChannelFlowArn";
|
|
1803
|
-
const _MR = "MaxResults";
|
|
1804
|
-
const _NA = "NotAfter";
|
|
1805
|
-
const _NB = "NotBefore";
|
|
1806
|
-
const _NT = "NetworkType";
|
|
1807
|
-
const _NTe = "NextToken";
|
|
1808
|
-
const _P = "Privacy";
|
|
1809
|
-
const _RARN = "ResourceARN";
|
|
1810
|
-
const _SCI = "SubChannelId";
|
|
1811
|
-
const _SO = "SortOrder";
|
|
1812
|
-
const _T = "Type";
|
|
1813
|
-
const _a = "arn";
|
|
1814
|
-
const _aia = "app-instance-arn";
|
|
1815
|
-
const _aiua = "app-instance-user-arn";
|
|
1816
|
-
const _cfa = "channel-flow-arn";
|
|
1817
|
-
const _mr = "max-results";
|
|
1818
|
-
const _na = "not-after";
|
|
1819
|
-
const _nb = "not-before";
|
|
1820
|
-
const _nt = "network-type";
|
|
1821
|
-
const _nt_ = "next-token";
|
|
1822
|
-
const _o = "operation";
|
|
1823
|
-
const _p = "privacy";
|
|
1824
|
-
const _s = "scope";
|
|
1825
|
-
const _sci = "sub-channel-id";
|
|
1826
|
-
const _so = "sort-order";
|
|
1827
|
-
const _t = "type";
|
|
1828
|
-
const _xacb = "x-amz-chime-bearer";
|