@aws-sdk/client-chime-sdk-meetings 3.141.0 → 3.145.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/CHANGELOG.md +30 -0
- package/dist-cjs/ChimeSDKMeetings.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +64 -2
- package/dist-cjs/protocols/Aws_restJson1.js +452 -382
- package/dist-es/ChimeSDKMeetings.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +575 -394
- package/dist-types/ChimeSDKMeetings.d.ts +46 -0
- package/dist-types/ChimeSDKMeetingsClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +60 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +181 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ChimeSDKMeetings.d.ts +15 -0
- package/dist-types/ts3.4/ChimeSDKMeetingsClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +80 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = exports.deserializeAws_restJson1StartMeetingTranscriptionCommand = exports.deserializeAws_restJson1ListAttendeesCommand = exports.deserializeAws_restJson1GetMeetingCommand = exports.deserializeAws_restJson1GetAttendeeCommand = exports.deserializeAws_restJson1DeleteMeetingCommand = exports.deserializeAws_restJson1DeleteAttendeeCommand = exports.deserializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.deserializeAws_restJson1CreateMeetingCommand = exports.deserializeAws_restJson1CreateAttendeeCommand = exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.deserializeAws_restJson1BatchCreateAttendeeCommand = exports.serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.serializeAws_restJson1StopMeetingTranscriptionCommand = exports.serializeAws_restJson1StartMeetingTranscriptionCommand = exports.serializeAws_restJson1ListAttendeesCommand = exports.serializeAws_restJson1GetMeetingCommand = exports.serializeAws_restJson1GetAttendeeCommand = exports.serializeAws_restJson1DeleteMeetingCommand = exports.serializeAws_restJson1DeleteAttendeeCommand = exports.serializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.serializeAws_restJson1CreateMeetingCommand = exports.serializeAws_restJson1CreateAttendeeCommand = exports.serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.serializeAws_restJson1BatchCreateAttendeeCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = exports.deserializeAws_restJson1StartMeetingTranscriptionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttendeesCommand = exports.deserializeAws_restJson1GetMeetingCommand = exports.deserializeAws_restJson1GetAttendeeCommand = exports.deserializeAws_restJson1DeleteMeetingCommand = exports.deserializeAws_restJson1DeleteAttendeeCommand = exports.deserializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.deserializeAws_restJson1CreateMeetingCommand = exports.deserializeAws_restJson1CreateAttendeeCommand = exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.deserializeAws_restJson1BatchCreateAttendeeCommand = exports.serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopMeetingTranscriptionCommand = exports.serializeAws_restJson1StartMeetingTranscriptionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAttendeesCommand = exports.serializeAws_restJson1GetMeetingCommand = exports.serializeAws_restJson1GetAttendeeCommand = exports.serializeAws_restJson1DeleteMeetingCommand = exports.serializeAws_restJson1DeleteAttendeeCommand = exports.serializeAws_restJson1CreateMeetingWithAttendeesCommand = exports.serializeAws_restJson1CreateMeetingCommand = exports.serializeAws_restJson1CreateAttendeeCommand = exports.serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = exports.serializeAws_restJson1BatchCreateAttendeeCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -12,19 +12,10 @@ const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context)
|
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
14
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
24
|
-
}
|
|
25
|
-
const query = {
|
|
26
|
-
operation: "batch-create",
|
|
27
|
-
};
|
|
15
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
16
|
+
const query = map({
|
|
17
|
+
operation: [, "batch-create"],
|
|
18
|
+
});
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify({
|
|
30
21
|
...(input.Attendees != null && {
|
|
@@ -50,19 +41,10 @@ const serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async
|
|
|
50
41
|
};
|
|
51
42
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
52
43
|
"/meetings/{MeetingId}/attendees/capabilities";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
62
|
-
}
|
|
63
|
-
const query = {
|
|
64
|
-
operation: "batch-update-except",
|
|
65
|
-
};
|
|
44
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
45
|
+
const query = map({
|
|
46
|
+
operation: [, "batch-update-except"],
|
|
47
|
+
});
|
|
66
48
|
let body;
|
|
67
49
|
body = JSON.stringify({
|
|
68
50
|
...(input.Capabilities != null && {
|
|
@@ -90,16 +72,7 @@ const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
|
|
|
90
72
|
"content-type": "application/json",
|
|
91
73
|
};
|
|
92
74
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
93
|
-
|
|
94
|
-
const labelValue = input.MeetingId;
|
|
95
|
-
if (labelValue.length <= 0) {
|
|
96
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
97
|
-
}
|
|
98
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
102
|
-
}
|
|
75
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
103
76
|
let body;
|
|
104
77
|
body = JSON.stringify({
|
|
105
78
|
...(input.Capabilities != null && {
|
|
@@ -138,6 +111,7 @@ const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
|
|
|
138
111
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
139
112
|
}),
|
|
140
113
|
...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
114
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
141
115
|
...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
|
|
142
116
|
});
|
|
143
117
|
return new protocol_http_1.HttpRequest({
|
|
@@ -158,9 +132,9 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
|
|
|
158
132
|
"content-type": "application/json",
|
|
159
133
|
};
|
|
160
134
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings";
|
|
161
|
-
const query = {
|
|
162
|
-
operation: "create-attendees",
|
|
163
|
-
};
|
|
135
|
+
const query = map({
|
|
136
|
+
operation: [, "create-attendees"],
|
|
137
|
+
});
|
|
164
138
|
let body;
|
|
165
139
|
body = JSON.stringify({
|
|
166
140
|
...(input.Attendees != null && {
|
|
@@ -177,6 +151,7 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
|
|
|
177
151
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
178
152
|
}),
|
|
179
153
|
...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
154
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
180
155
|
...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
|
|
181
156
|
});
|
|
182
157
|
return new protocol_http_1.HttpRequest({
|
|
@@ -196,26 +171,8 @@ const serializeAws_restJson1DeleteAttendeeCommand = async (input, context) => {
|
|
|
196
171
|
const headers = {};
|
|
197
172
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
198
173
|
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (labelValue.length <= 0) {
|
|
202
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
203
|
-
}
|
|
204
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
208
|
-
}
|
|
209
|
-
if (input.AttendeeId !== undefined) {
|
|
210
|
-
const labelValue = input.AttendeeId;
|
|
211
|
-
if (labelValue.length <= 0) {
|
|
212
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
213
|
-
}
|
|
214
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
218
|
-
}
|
|
174
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
175
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
219
176
|
let body;
|
|
220
177
|
return new protocol_http_1.HttpRequest({
|
|
221
178
|
protocol,
|
|
@@ -232,16 +189,7 @@ const serializeAws_restJson1DeleteMeetingCommand = async (input, context) => {
|
|
|
232
189
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
190
|
const headers = {};
|
|
234
191
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}";
|
|
235
|
-
|
|
236
|
-
const labelValue = input.MeetingId;
|
|
237
|
-
if (labelValue.length <= 0) {
|
|
238
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
239
|
-
}
|
|
240
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
244
|
-
}
|
|
192
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
245
193
|
let body;
|
|
246
194
|
return new protocol_http_1.HttpRequest({
|
|
247
195
|
protocol,
|
|
@@ -259,26 +207,8 @@ const serializeAws_restJson1GetAttendeeCommand = async (input, context) => {
|
|
|
259
207
|
const headers = {};
|
|
260
208
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
261
209
|
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (labelValue.length <= 0) {
|
|
265
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
266
|
-
}
|
|
267
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
271
|
-
}
|
|
272
|
-
if (input.AttendeeId !== undefined) {
|
|
273
|
-
const labelValue = input.AttendeeId;
|
|
274
|
-
if (labelValue.length <= 0) {
|
|
275
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
276
|
-
}
|
|
277
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
281
|
-
}
|
|
210
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
211
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
282
212
|
let body;
|
|
283
213
|
return new protocol_http_1.HttpRequest({
|
|
284
214
|
protocol,
|
|
@@ -295,16 +225,7 @@ const serializeAws_restJson1GetMeetingCommand = async (input, context) => {
|
|
|
295
225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
296
226
|
const headers = {};
|
|
297
227
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}";
|
|
298
|
-
|
|
299
|
-
const labelValue = input.MeetingId;
|
|
300
|
-
if (labelValue.length <= 0) {
|
|
301
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
302
|
-
}
|
|
303
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
307
|
-
}
|
|
228
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
308
229
|
let body;
|
|
309
230
|
return new protocol_http_1.HttpRequest({
|
|
310
231
|
protocol,
|
|
@@ -321,20 +242,11 @@ const serializeAws_restJson1ListAttendeesCommand = async (input, context) => {
|
|
|
321
242
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
243
|
const headers = {};
|
|
323
244
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
333
|
-
}
|
|
334
|
-
const query = {
|
|
335
|
-
...(input.NextToken !== undefined && { "next-token": input.NextToken }),
|
|
336
|
-
...(input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }),
|
|
337
|
-
};
|
|
245
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
246
|
+
const query = map({
|
|
247
|
+
"next-token": [, input.NextToken],
|
|
248
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
249
|
+
});
|
|
338
250
|
let body;
|
|
339
251
|
return new protocol_http_1.HttpRequest({
|
|
340
252
|
protocol,
|
|
@@ -348,25 +260,36 @@ const serializeAws_restJson1ListAttendeesCommand = async (input, context) => {
|
|
|
348
260
|
});
|
|
349
261
|
};
|
|
350
262
|
exports.serializeAws_restJson1ListAttendeesCommand = serializeAws_restJson1ListAttendeesCommand;
|
|
263
|
+
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
264
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
|
+
const headers = {};
|
|
266
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
267
|
+
const query = map({
|
|
268
|
+
arn: [, input.ResourceARN],
|
|
269
|
+
});
|
|
270
|
+
let body;
|
|
271
|
+
return new protocol_http_1.HttpRequest({
|
|
272
|
+
protocol,
|
|
273
|
+
hostname,
|
|
274
|
+
port,
|
|
275
|
+
method: "GET",
|
|
276
|
+
headers,
|
|
277
|
+
path: resolvedPath,
|
|
278
|
+
query,
|
|
279
|
+
body,
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
351
283
|
const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, context) => {
|
|
352
284
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
285
|
const headers = {
|
|
354
286
|
"content-type": "application/json",
|
|
355
287
|
};
|
|
356
288
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription";
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
366
|
-
}
|
|
367
|
-
const query = {
|
|
368
|
-
operation: "start",
|
|
369
|
-
};
|
|
289
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
290
|
+
const query = map({
|
|
291
|
+
operation: [, "start"],
|
|
292
|
+
});
|
|
370
293
|
let body;
|
|
371
294
|
body = JSON.stringify({
|
|
372
295
|
...(input.TranscriptionConfiguration != null && {
|
|
@@ -389,19 +312,10 @@ const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, cont
|
|
|
389
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
313
|
const headers = {};
|
|
391
314
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription";
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
401
|
-
}
|
|
402
|
-
const query = {
|
|
403
|
-
operation: "stop",
|
|
404
|
-
};
|
|
315
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
316
|
+
const query = map({
|
|
317
|
+
operation: [, "stop"],
|
|
318
|
+
});
|
|
405
319
|
let body;
|
|
406
320
|
return new protocol_http_1.HttpRequest({
|
|
407
321
|
protocol,
|
|
@@ -415,6 +329,58 @@ const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, cont
|
|
|
415
329
|
});
|
|
416
330
|
};
|
|
417
331
|
exports.serializeAws_restJson1StopMeetingTranscriptionCommand = serializeAws_restJson1StopMeetingTranscriptionCommand;
|
|
332
|
+
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
333
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
|
+
const headers = {
|
|
335
|
+
"content-type": "application/json",
|
|
336
|
+
};
|
|
337
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
338
|
+
const query = map({
|
|
339
|
+
operation: [, "tag-resource"],
|
|
340
|
+
});
|
|
341
|
+
let body;
|
|
342
|
+
body = JSON.stringify({
|
|
343
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
344
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
345
|
+
});
|
|
346
|
+
return new protocol_http_1.HttpRequest({
|
|
347
|
+
protocol,
|
|
348
|
+
hostname,
|
|
349
|
+
port,
|
|
350
|
+
method: "POST",
|
|
351
|
+
headers,
|
|
352
|
+
path: resolvedPath,
|
|
353
|
+
query,
|
|
354
|
+
body,
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
|
|
358
|
+
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
359
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/json",
|
|
362
|
+
};
|
|
363
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
364
|
+
const query = map({
|
|
365
|
+
operation: [, "untag-resource"],
|
|
366
|
+
});
|
|
367
|
+
let body;
|
|
368
|
+
body = JSON.stringify({
|
|
369
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
370
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
371
|
+
});
|
|
372
|
+
return new protocol_http_1.HttpRequest({
|
|
373
|
+
protocol,
|
|
374
|
+
hostname,
|
|
375
|
+
port,
|
|
376
|
+
method: "POST",
|
|
377
|
+
headers,
|
|
378
|
+
path: resolvedPath,
|
|
379
|
+
query,
|
|
380
|
+
body,
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
418
384
|
const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, context) => {
|
|
419
385
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
420
386
|
const headers = {
|
|
@@ -422,26 +388,8 @@ const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, co
|
|
|
422
388
|
};
|
|
423
389
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
424
390
|
"/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities";
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (labelValue.length <= 0) {
|
|
428
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
429
|
-
}
|
|
430
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
434
|
-
}
|
|
435
|
-
if (input.AttendeeId !== undefined) {
|
|
436
|
-
const labelValue = input.AttendeeId;
|
|
437
|
-
if (labelValue.length <= 0) {
|
|
438
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
439
|
-
}
|
|
440
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
441
|
-
}
|
|
442
|
-
else {
|
|
443
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
444
|
-
}
|
|
391
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
392
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
445
393
|
let body;
|
|
446
394
|
body = JSON.stringify({
|
|
447
395
|
...(input.Capabilities != null && {
|
|
@@ -463,19 +411,17 @@ const deserializeAws_restJson1BatchCreateAttendeeCommand = async (output, contex
|
|
|
463
411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
464
412
|
return deserializeAws_restJson1BatchCreateAttendeeCommandError(output, context);
|
|
465
413
|
}
|
|
466
|
-
const contents = {
|
|
414
|
+
const contents = map({
|
|
467
415
|
$metadata: deserializeMetadata(output),
|
|
468
|
-
|
|
469
|
-
Errors: undefined,
|
|
470
|
-
};
|
|
416
|
+
});
|
|
471
417
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
472
|
-
if (data.Attendees
|
|
418
|
+
if (data.Attendees != null) {
|
|
473
419
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
474
420
|
}
|
|
475
|
-
if (data.Errors
|
|
421
|
+
if (data.Errors != null) {
|
|
476
422
|
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
477
423
|
}
|
|
478
|
-
return
|
|
424
|
+
return contents;
|
|
479
425
|
};
|
|
480
426
|
exports.deserializeAws_restJson1BatchCreateAttendeeCommand = deserializeAws_restJson1BatchCreateAttendeeCommand;
|
|
481
427
|
const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, context) => {
|
|
@@ -483,7 +429,6 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
483
429
|
...output,
|
|
484
430
|
body: await parseBody(output.body, context),
|
|
485
431
|
};
|
|
486
|
-
let response;
|
|
487
432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
433
|
switch (errorCode) {
|
|
489
434
|
case "BadRequestException":
|
|
@@ -515,25 +460,23 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
515
460
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
516
461
|
default:
|
|
517
462
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
$metadata,
|
|
463
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
464
|
+
output,
|
|
465
|
+
parsedBody,
|
|
466
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
467
|
+
errorCode,
|
|
524
468
|
});
|
|
525
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
526
469
|
}
|
|
527
470
|
};
|
|
528
471
|
const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, context) => {
|
|
529
472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
473
|
return deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError(output, context);
|
|
531
474
|
}
|
|
532
|
-
const contents = {
|
|
475
|
+
const contents = map({
|
|
533
476
|
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
477
|
+
});
|
|
535
478
|
await collectBody(output.body, context);
|
|
536
|
-
return
|
|
479
|
+
return contents;
|
|
537
480
|
};
|
|
538
481
|
exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand;
|
|
539
482
|
const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError = async (output, context) => {
|
|
@@ -541,7 +484,6 @@ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError
|
|
|
541
484
|
...output,
|
|
542
485
|
body: await parseBody(output.body, context),
|
|
543
486
|
};
|
|
544
|
-
let response;
|
|
545
487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
546
488
|
switch (errorCode) {
|
|
547
489
|
case "BadRequestException":
|
|
@@ -564,29 +506,26 @@ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError
|
|
|
564
506
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
565
507
|
default:
|
|
566
508
|
const parsedBody = parsedOutput.body;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
$metadata,
|
|
509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
510
|
+
output,
|
|
511
|
+
parsedBody,
|
|
512
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
513
|
+
errorCode,
|
|
573
514
|
});
|
|
574
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
575
515
|
}
|
|
576
516
|
};
|
|
577
517
|
const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) => {
|
|
578
518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
519
|
return deserializeAws_restJson1CreateAttendeeCommandError(output, context);
|
|
580
520
|
}
|
|
581
|
-
const contents = {
|
|
521
|
+
const contents = map({
|
|
582
522
|
$metadata: deserializeMetadata(output),
|
|
583
|
-
|
|
584
|
-
};
|
|
523
|
+
});
|
|
585
524
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
586
|
-
if (data.Attendee
|
|
525
|
+
if (data.Attendee != null) {
|
|
587
526
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
588
527
|
}
|
|
589
|
-
return
|
|
528
|
+
return contents;
|
|
590
529
|
};
|
|
591
530
|
exports.deserializeAws_restJson1CreateAttendeeCommand = deserializeAws_restJson1CreateAttendeeCommand;
|
|
592
531
|
const deserializeAws_restJson1CreateAttendeeCommandError = async (output, context) => {
|
|
@@ -594,7 +533,6 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
594
533
|
...output,
|
|
595
534
|
body: await parseBody(output.body, context),
|
|
596
535
|
};
|
|
597
|
-
let response;
|
|
598
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
537
|
switch (errorCode) {
|
|
600
538
|
case "BadRequestException":
|
|
@@ -626,29 +564,26 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
626
564
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
627
565
|
default:
|
|
628
566
|
const parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
$metadata,
|
|
567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
568
|
+
output,
|
|
569
|
+
parsedBody,
|
|
570
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
571
|
+
errorCode,
|
|
635
572
|
});
|
|
636
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
637
573
|
}
|
|
638
574
|
};
|
|
639
575
|
const deserializeAws_restJson1CreateMeetingCommand = async (output, context) => {
|
|
640
576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
577
|
return deserializeAws_restJson1CreateMeetingCommandError(output, context);
|
|
642
578
|
}
|
|
643
|
-
const contents = {
|
|
579
|
+
const contents = map({
|
|
644
580
|
$metadata: deserializeMetadata(output),
|
|
645
|
-
|
|
646
|
-
};
|
|
581
|
+
});
|
|
647
582
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
648
|
-
if (data.Meeting
|
|
583
|
+
if (data.Meeting != null) {
|
|
649
584
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
650
585
|
}
|
|
651
|
-
return
|
|
586
|
+
return contents;
|
|
652
587
|
};
|
|
653
588
|
exports.deserializeAws_restJson1CreateMeetingCommand = deserializeAws_restJson1CreateMeetingCommand;
|
|
654
589
|
const deserializeAws_restJson1CreateMeetingCommandError = async (output, context) => {
|
|
@@ -656,7 +591,6 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
656
591
|
...output,
|
|
657
592
|
body: await parseBody(output.body, context),
|
|
658
593
|
};
|
|
659
|
-
let response;
|
|
660
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
595
|
switch (errorCode) {
|
|
662
596
|
case "BadRequestException":
|
|
@@ -682,37 +616,32 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
682
616
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
683
617
|
default:
|
|
684
618
|
const parsedBody = parsedOutput.body;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
$metadata,
|
|
619
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
620
|
+
output,
|
|
621
|
+
parsedBody,
|
|
622
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
623
|
+
errorCode,
|
|
691
624
|
});
|
|
692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
693
625
|
}
|
|
694
626
|
};
|
|
695
627
|
const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
696
628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
629
|
return deserializeAws_restJson1CreateMeetingWithAttendeesCommandError(output, context);
|
|
698
630
|
}
|
|
699
|
-
const contents = {
|
|
631
|
+
const contents = map({
|
|
700
632
|
$metadata: deserializeMetadata(output),
|
|
701
|
-
|
|
702
|
-
Errors: undefined,
|
|
703
|
-
Meeting: undefined,
|
|
704
|
-
};
|
|
633
|
+
});
|
|
705
634
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
706
|
-
if (data.Attendees
|
|
635
|
+
if (data.Attendees != null) {
|
|
707
636
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
708
637
|
}
|
|
709
|
-
if (data.Errors
|
|
638
|
+
if (data.Errors != null) {
|
|
710
639
|
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
711
640
|
}
|
|
712
|
-
if (data.Meeting
|
|
641
|
+
if (data.Meeting != null) {
|
|
713
642
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
714
643
|
}
|
|
715
|
-
return
|
|
644
|
+
return contents;
|
|
716
645
|
};
|
|
717
646
|
exports.deserializeAws_restJson1CreateMeetingWithAttendeesCommand = deserializeAws_restJson1CreateMeetingWithAttendeesCommand;
|
|
718
647
|
const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (output, context) => {
|
|
@@ -720,7 +649,6 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
720
649
|
...output,
|
|
721
650
|
body: await parseBody(output.body, context),
|
|
722
651
|
};
|
|
723
|
-
let response;
|
|
724
652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
653
|
switch (errorCode) {
|
|
726
654
|
case "BadRequestException":
|
|
@@ -746,25 +674,23 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
746
674
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
747
675
|
default:
|
|
748
676
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
$metadata,
|
|
677
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
678
|
+
output,
|
|
679
|
+
parsedBody,
|
|
680
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
681
|
+
errorCode,
|
|
755
682
|
});
|
|
756
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
757
683
|
}
|
|
758
684
|
};
|
|
759
685
|
const deserializeAws_restJson1DeleteAttendeeCommand = async (output, context) => {
|
|
760
686
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
761
687
|
return deserializeAws_restJson1DeleteAttendeeCommandError(output, context);
|
|
762
688
|
}
|
|
763
|
-
const contents = {
|
|
689
|
+
const contents = map({
|
|
764
690
|
$metadata: deserializeMetadata(output),
|
|
765
|
-
};
|
|
691
|
+
});
|
|
766
692
|
await collectBody(output.body, context);
|
|
767
|
-
return
|
|
693
|
+
return contents;
|
|
768
694
|
};
|
|
769
695
|
exports.deserializeAws_restJson1DeleteAttendeeCommand = deserializeAws_restJson1DeleteAttendeeCommand;
|
|
770
696
|
const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, context) => {
|
|
@@ -772,7 +698,6 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
772
698
|
...output,
|
|
773
699
|
body: await parseBody(output.body, context),
|
|
774
700
|
};
|
|
775
|
-
let response;
|
|
776
701
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
702
|
switch (errorCode) {
|
|
778
703
|
case "BadRequestException":
|
|
@@ -798,25 +723,23 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
798
723
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
799
724
|
default:
|
|
800
725
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
$metadata,
|
|
726
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
727
|
+
output,
|
|
728
|
+
parsedBody,
|
|
729
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
730
|
+
errorCode,
|
|
807
731
|
});
|
|
808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
809
732
|
}
|
|
810
733
|
};
|
|
811
734
|
const deserializeAws_restJson1DeleteMeetingCommand = async (output, context) => {
|
|
812
735
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
813
736
|
return deserializeAws_restJson1DeleteMeetingCommandError(output, context);
|
|
814
737
|
}
|
|
815
|
-
const contents = {
|
|
738
|
+
const contents = map({
|
|
816
739
|
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
740
|
+
});
|
|
818
741
|
await collectBody(output.body, context);
|
|
819
|
-
return
|
|
742
|
+
return contents;
|
|
820
743
|
};
|
|
821
744
|
exports.deserializeAws_restJson1DeleteMeetingCommand = deserializeAws_restJson1DeleteMeetingCommand;
|
|
822
745
|
const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context) => {
|
|
@@ -824,7 +747,6 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
824
747
|
...output,
|
|
825
748
|
body: await parseBody(output.body, context),
|
|
826
749
|
};
|
|
827
|
-
let response;
|
|
828
750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
751
|
switch (errorCode) {
|
|
830
752
|
case "BadRequestException":
|
|
@@ -850,29 +772,26 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
850
772
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
851
773
|
default:
|
|
852
774
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
$metadata,
|
|
775
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
776
|
+
output,
|
|
777
|
+
parsedBody,
|
|
778
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
779
|
+
errorCode,
|
|
859
780
|
});
|
|
860
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
861
781
|
}
|
|
862
782
|
};
|
|
863
783
|
const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
864
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
785
|
return deserializeAws_restJson1GetAttendeeCommandError(output, context);
|
|
866
786
|
}
|
|
867
|
-
const contents = {
|
|
787
|
+
const contents = map({
|
|
868
788
|
$metadata: deserializeMetadata(output),
|
|
869
|
-
|
|
870
|
-
};
|
|
789
|
+
});
|
|
871
790
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
872
|
-
if (data.Attendee
|
|
791
|
+
if (data.Attendee != null) {
|
|
873
792
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
874
793
|
}
|
|
875
|
-
return
|
|
794
|
+
return contents;
|
|
876
795
|
};
|
|
877
796
|
exports.deserializeAws_restJson1GetAttendeeCommand = deserializeAws_restJson1GetAttendeeCommand;
|
|
878
797
|
const deserializeAws_restJson1GetAttendeeCommandError = async (output, context) => {
|
|
@@ -880,7 +799,6 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
880
799
|
...output,
|
|
881
800
|
body: await parseBody(output.body, context),
|
|
882
801
|
};
|
|
883
|
-
let response;
|
|
884
802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
803
|
switch (errorCode) {
|
|
886
804
|
case "BadRequestException":
|
|
@@ -906,29 +824,26 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
906
824
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
907
825
|
default:
|
|
908
826
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
$metadata,
|
|
827
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
828
|
+
output,
|
|
829
|
+
parsedBody,
|
|
830
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
831
|
+
errorCode,
|
|
915
832
|
});
|
|
916
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
917
833
|
}
|
|
918
834
|
};
|
|
919
835
|
const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
920
836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
837
|
return deserializeAws_restJson1GetMeetingCommandError(output, context);
|
|
922
838
|
}
|
|
923
|
-
const contents = {
|
|
839
|
+
const contents = map({
|
|
924
840
|
$metadata: deserializeMetadata(output),
|
|
925
|
-
|
|
926
|
-
};
|
|
841
|
+
});
|
|
927
842
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
928
|
-
if (data.Meeting
|
|
843
|
+
if (data.Meeting != null) {
|
|
929
844
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
930
845
|
}
|
|
931
|
-
return
|
|
846
|
+
return contents;
|
|
932
847
|
};
|
|
933
848
|
exports.deserializeAws_restJson1GetMeetingCommand = deserializeAws_restJson1GetMeetingCommand;
|
|
934
849
|
const deserializeAws_restJson1GetMeetingCommandError = async (output, context) => {
|
|
@@ -936,7 +851,6 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
936
851
|
...output,
|
|
937
852
|
body: await parseBody(output.body, context),
|
|
938
853
|
};
|
|
939
|
-
let response;
|
|
940
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
855
|
switch (errorCode) {
|
|
942
856
|
case "BadRequestException":
|
|
@@ -962,33 +876,29 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
962
876
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
963
877
|
default:
|
|
964
878
|
const parsedBody = parsedOutput.body;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
$metadata,
|
|
879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
880
|
+
output,
|
|
881
|
+
parsedBody,
|
|
882
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
883
|
+
errorCode,
|
|
971
884
|
});
|
|
972
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
973
885
|
}
|
|
974
886
|
};
|
|
975
887
|
const deserializeAws_restJson1ListAttendeesCommand = async (output, context) => {
|
|
976
888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
889
|
return deserializeAws_restJson1ListAttendeesCommandError(output, context);
|
|
978
890
|
}
|
|
979
|
-
const contents = {
|
|
891
|
+
const contents = map({
|
|
980
892
|
$metadata: deserializeMetadata(output),
|
|
981
|
-
|
|
982
|
-
NextToken: undefined,
|
|
983
|
-
};
|
|
893
|
+
});
|
|
984
894
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
985
|
-
if (data.Attendees
|
|
895
|
+
if (data.Attendees != null) {
|
|
986
896
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
987
897
|
}
|
|
988
|
-
if (data.NextToken
|
|
898
|
+
if (data.NextToken != null) {
|
|
989
899
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
990
900
|
}
|
|
991
|
-
return
|
|
901
|
+
return contents;
|
|
992
902
|
};
|
|
993
903
|
exports.deserializeAws_restJson1ListAttendeesCommand = deserializeAws_restJson1ListAttendeesCommand;
|
|
994
904
|
const deserializeAws_restJson1ListAttendeesCommandError = async (output, context) => {
|
|
@@ -996,7 +906,6 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
996
906
|
...output,
|
|
997
907
|
body: await parseBody(output.body, context),
|
|
998
908
|
};
|
|
999
|
-
let response;
|
|
1000
909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
910
|
switch (errorCode) {
|
|
1002
911
|
case "BadRequestException":
|
|
@@ -1022,25 +931,57 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
1022
931
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1023
932
|
default:
|
|
1024
933
|
const parsedBody = parsedOutput.body;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
934
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
935
|
+
output,
|
|
936
|
+
parsedBody,
|
|
937
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
938
|
+
errorCode,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
943
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
945
|
+
}
|
|
946
|
+
const contents = map({
|
|
947
|
+
$metadata: deserializeMetadata(output),
|
|
948
|
+
});
|
|
949
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
950
|
+
if (data.Tags != null) {
|
|
951
|
+
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
952
|
+
}
|
|
953
|
+
return contents;
|
|
954
|
+
};
|
|
955
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
956
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
957
|
+
const parsedOutput = {
|
|
958
|
+
...output,
|
|
959
|
+
body: await parseBody(output.body, context),
|
|
960
|
+
};
|
|
961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
+
switch (errorCode) {
|
|
963
|
+
case "ResourceNotFoundException":
|
|
964
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
965
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
966
|
+
default:
|
|
967
|
+
const parsedBody = parsedOutput.body;
|
|
968
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
969
|
+
output,
|
|
970
|
+
parsedBody,
|
|
971
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
972
|
+
errorCode,
|
|
1031
973
|
});
|
|
1032
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1033
974
|
}
|
|
1034
975
|
};
|
|
1035
976
|
const deserializeAws_restJson1StartMeetingTranscriptionCommand = async (output, context) => {
|
|
1036
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
978
|
return deserializeAws_restJson1StartMeetingTranscriptionCommandError(output, context);
|
|
1038
979
|
}
|
|
1039
|
-
const contents = {
|
|
980
|
+
const contents = map({
|
|
1040
981
|
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
982
|
+
});
|
|
1042
983
|
await collectBody(output.body, context);
|
|
1043
|
-
return
|
|
984
|
+
return contents;
|
|
1044
985
|
};
|
|
1045
986
|
exports.deserializeAws_restJson1StartMeetingTranscriptionCommand = deserializeAws_restJson1StartMeetingTranscriptionCommand;
|
|
1046
987
|
const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (output, context) => {
|
|
@@ -1048,7 +989,6 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1048
989
|
...output,
|
|
1049
990
|
body: await parseBody(output.body, context),
|
|
1050
991
|
};
|
|
1051
|
-
let response;
|
|
1052
992
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
993
|
switch (errorCode) {
|
|
1054
994
|
case "BadRequestException":
|
|
@@ -1080,25 +1020,23 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1080
1020
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1081
1021
|
default:
|
|
1082
1022
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
$metadata,
|
|
1023
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1024
|
+
output,
|
|
1025
|
+
parsedBody,
|
|
1026
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
1027
|
+
errorCode,
|
|
1089
1028
|
});
|
|
1090
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
1029
|
}
|
|
1092
1030
|
};
|
|
1093
1031
|
const deserializeAws_restJson1StopMeetingTranscriptionCommand = async (output, context) => {
|
|
1094
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
1033
|
return deserializeAws_restJson1StopMeetingTranscriptionCommandError(output, context);
|
|
1096
1034
|
}
|
|
1097
|
-
const contents = {
|
|
1035
|
+
const contents = map({
|
|
1098
1036
|
$metadata: deserializeMetadata(output),
|
|
1099
|
-
};
|
|
1037
|
+
});
|
|
1100
1038
|
await collectBody(output.body, context);
|
|
1101
|
-
return
|
|
1039
|
+
return contents;
|
|
1102
1040
|
};
|
|
1103
1041
|
exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = deserializeAws_restJson1StopMeetingTranscriptionCommand;
|
|
1104
1042
|
const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (output, context) => {
|
|
@@ -1106,7 +1044,6 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1106
1044
|
...output,
|
|
1107
1045
|
body: await parseBody(output.body, context),
|
|
1108
1046
|
};
|
|
1109
|
-
let response;
|
|
1110
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1048
|
switch (errorCode) {
|
|
1112
1049
|
case "BadRequestException":
|
|
@@ -1135,29 +1072,97 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1135
1072
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1136
1073
|
default:
|
|
1137
1074
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1075
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1076
|
+
output,
|
|
1077
|
+
parsedBody,
|
|
1078
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
1079
|
+
errorCode,
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1084
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1085
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1086
|
+
}
|
|
1087
|
+
const contents = map({
|
|
1088
|
+
$metadata: deserializeMetadata(output),
|
|
1089
|
+
});
|
|
1090
|
+
await collectBody(output.body, context);
|
|
1091
|
+
return contents;
|
|
1092
|
+
};
|
|
1093
|
+
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
1094
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1095
|
+
const parsedOutput = {
|
|
1096
|
+
...output,
|
|
1097
|
+
body: await parseBody(output.body, context),
|
|
1098
|
+
};
|
|
1099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
|
+
switch (errorCode) {
|
|
1101
|
+
case "BadRequestException":
|
|
1102
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1103
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1104
|
+
case "ResourceNotFoundException":
|
|
1105
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
1106
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1107
|
+
case "TooManyTagsException":
|
|
1108
|
+
case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
|
|
1109
|
+
throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1110
|
+
default:
|
|
1111
|
+
const parsedBody = parsedOutput.body;
|
|
1112
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1113
|
+
output,
|
|
1114
|
+
parsedBody,
|
|
1115
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
1116
|
+
errorCode,
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1121
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1122
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1123
|
+
}
|
|
1124
|
+
const contents = map({
|
|
1125
|
+
$metadata: deserializeMetadata(output),
|
|
1126
|
+
});
|
|
1127
|
+
await collectBody(output.body, context);
|
|
1128
|
+
return contents;
|
|
1129
|
+
};
|
|
1130
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
1131
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1132
|
+
const parsedOutput = {
|
|
1133
|
+
...output,
|
|
1134
|
+
body: await parseBody(output.body, context),
|
|
1135
|
+
};
|
|
1136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
+
switch (errorCode) {
|
|
1138
|
+
case "BadRequestException":
|
|
1139
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1140
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "ResourceNotFoundException":
|
|
1142
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
1143
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1144
|
+
default:
|
|
1145
|
+
const parsedBody = parsedOutput.body;
|
|
1146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1147
|
+
output,
|
|
1148
|
+
parsedBody,
|
|
1149
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
1150
|
+
errorCode,
|
|
1144
1151
|
});
|
|
1145
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1146
1152
|
}
|
|
1147
1153
|
};
|
|
1148
1154
|
const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (output, context) => {
|
|
1149
1155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
1156
|
return deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError(output, context);
|
|
1151
1157
|
}
|
|
1152
|
-
const contents = {
|
|
1158
|
+
const contents = map({
|
|
1153
1159
|
$metadata: deserializeMetadata(output),
|
|
1154
|
-
|
|
1155
|
-
};
|
|
1160
|
+
});
|
|
1156
1161
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1157
|
-
if (data.Attendee
|
|
1162
|
+
if (data.Attendee != null) {
|
|
1158
1163
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
1159
1164
|
}
|
|
1160
|
-
return
|
|
1165
|
+
return contents;
|
|
1161
1166
|
};
|
|
1162
1167
|
exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand;
|
|
1163
1168
|
const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (output, context) => {
|
|
@@ -1165,7 +1170,6 @@ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (ou
|
|
|
1165
1170
|
...output,
|
|
1166
1171
|
body: await parseBody(output.body, context),
|
|
1167
1172
|
};
|
|
1168
|
-
let response;
|
|
1169
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1174
|
switch (errorCode) {
|
|
1171
1175
|
case "BadRequestException":
|
|
@@ -1188,26 +1192,25 @@ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (ou
|
|
|
1188
1192
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1189
1193
|
default:
|
|
1190
1194
|
const parsedBody = parsedOutput.body;
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
$metadata,
|
|
1195
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1196
|
+
output,
|
|
1197
|
+
parsedBody,
|
|
1198
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
1199
|
+
errorCode,
|
|
1197
1200
|
});
|
|
1198
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1199
1201
|
}
|
|
1200
1202
|
};
|
|
1203
|
+
const map = smithy_client_1.map;
|
|
1201
1204
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1202
|
-
const contents = {};
|
|
1205
|
+
const contents = map({});
|
|
1203
1206
|
const data = parsedOutput.body;
|
|
1204
|
-
if (data.Code
|
|
1207
|
+
if (data.Code != null) {
|
|
1205
1208
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1206
1209
|
}
|
|
1207
|
-
if (data.Message
|
|
1210
|
+
if (data.Message != null) {
|
|
1208
1211
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1209
1212
|
}
|
|
1210
|
-
if (data.RequestId
|
|
1213
|
+
if (data.RequestId != null) {
|
|
1211
1214
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1212
1215
|
}
|
|
1213
1216
|
const exception = new models_0_1.BadRequestException({
|
|
@@ -1217,15 +1220,15 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1217
1220
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1218
1221
|
};
|
|
1219
1222
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1220
|
-
const contents = {};
|
|
1223
|
+
const contents = map({});
|
|
1221
1224
|
const data = parsedOutput.body;
|
|
1222
|
-
if (data.Code
|
|
1225
|
+
if (data.Code != null) {
|
|
1223
1226
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1224
1227
|
}
|
|
1225
|
-
if (data.Message
|
|
1228
|
+
if (data.Message != null) {
|
|
1226
1229
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1227
1230
|
}
|
|
1228
|
-
if (data.RequestId
|
|
1231
|
+
if (data.RequestId != null) {
|
|
1229
1232
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1230
1233
|
}
|
|
1231
1234
|
const exception = new models_0_1.ConflictException({
|
|
@@ -1235,15 +1238,15 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1235
1238
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1236
1239
|
};
|
|
1237
1240
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1238
|
-
const contents = {};
|
|
1241
|
+
const contents = map({});
|
|
1239
1242
|
const data = parsedOutput.body;
|
|
1240
|
-
if (data.Code
|
|
1243
|
+
if (data.Code != null) {
|
|
1241
1244
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1242
1245
|
}
|
|
1243
|
-
if (data.Message
|
|
1246
|
+
if (data.Message != null) {
|
|
1244
1247
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1245
1248
|
}
|
|
1246
|
-
if (data.RequestId
|
|
1249
|
+
if (data.RequestId != null) {
|
|
1247
1250
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1248
1251
|
}
|
|
1249
1252
|
const exception = new models_0_1.ForbiddenException({
|
|
@@ -1253,15 +1256,15 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1253
1256
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1254
1257
|
};
|
|
1255
1258
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1256
|
-
const contents = {};
|
|
1259
|
+
const contents = map({});
|
|
1257
1260
|
const data = parsedOutput.body;
|
|
1258
|
-
if (data.Code
|
|
1261
|
+
if (data.Code != null) {
|
|
1259
1262
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1260
1263
|
}
|
|
1261
|
-
if (data.Message
|
|
1264
|
+
if (data.Message != null) {
|
|
1262
1265
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1263
1266
|
}
|
|
1264
|
-
if (data.RequestId
|
|
1267
|
+
if (data.RequestId != null) {
|
|
1265
1268
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1266
1269
|
}
|
|
1267
1270
|
const exception = new models_0_1.LimitExceededException({
|
|
@@ -1271,15 +1274,15 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
1271
1274
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1272
1275
|
};
|
|
1273
1276
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1274
|
-
const contents = {};
|
|
1277
|
+
const contents = map({});
|
|
1275
1278
|
const data = parsedOutput.body;
|
|
1276
|
-
if (data.Code
|
|
1279
|
+
if (data.Code != null) {
|
|
1277
1280
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1278
1281
|
}
|
|
1279
|
-
if (data.Message
|
|
1282
|
+
if (data.Message != null) {
|
|
1280
1283
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1281
1284
|
}
|
|
1282
|
-
if (data.RequestId
|
|
1285
|
+
if (data.RequestId != null) {
|
|
1283
1286
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1284
1287
|
}
|
|
1285
1288
|
const exception = new models_0_1.NotFoundException({
|
|
@@ -1288,16 +1291,37 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1288
1291
|
});
|
|
1289
1292
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1290
1293
|
};
|
|
1294
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1295
|
+
const contents = map({});
|
|
1296
|
+
const data = parsedOutput.body;
|
|
1297
|
+
if (data.Code != null) {
|
|
1298
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1299
|
+
}
|
|
1300
|
+
if (data.Message != null) {
|
|
1301
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1302
|
+
}
|
|
1303
|
+
if (data.RequestId != null) {
|
|
1304
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1305
|
+
}
|
|
1306
|
+
if (data.ResourceName != null) {
|
|
1307
|
+
contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
|
|
1308
|
+
}
|
|
1309
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1310
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1311
|
+
...contents,
|
|
1312
|
+
});
|
|
1313
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1314
|
+
};
|
|
1291
1315
|
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
1292
|
-
const contents = {};
|
|
1316
|
+
const contents = map({});
|
|
1293
1317
|
const data = parsedOutput.body;
|
|
1294
|
-
if (data.Code
|
|
1318
|
+
if (data.Code != null) {
|
|
1295
1319
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1296
1320
|
}
|
|
1297
|
-
if (data.Message
|
|
1321
|
+
if (data.Message != null) {
|
|
1298
1322
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1299
1323
|
}
|
|
1300
|
-
if (data.RequestId
|
|
1324
|
+
if (data.RequestId != null) {
|
|
1301
1325
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1302
1326
|
}
|
|
1303
1327
|
const exception = new models_0_1.ServiceFailureException({
|
|
@@ -1307,18 +1331,17 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
1307
1331
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1308
1332
|
};
|
|
1309
1333
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1310
|
-
const contents = {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}
|
|
1334
|
+
const contents = map({
|
|
1335
|
+
RetryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
1336
|
+
});
|
|
1314
1337
|
const data = parsedOutput.body;
|
|
1315
|
-
if (data.Code
|
|
1338
|
+
if (data.Code != null) {
|
|
1316
1339
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1317
1340
|
}
|
|
1318
|
-
if (data.Message
|
|
1341
|
+
if (data.Message != null) {
|
|
1319
1342
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1320
1343
|
}
|
|
1321
|
-
if (data.RequestId
|
|
1344
|
+
if (data.RequestId != null) {
|
|
1322
1345
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1323
1346
|
}
|
|
1324
1347
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
@@ -1328,15 +1351,15 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
1328
1351
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1329
1352
|
};
|
|
1330
1353
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1331
|
-
const contents = {};
|
|
1354
|
+
const contents = map({});
|
|
1332
1355
|
const data = parsedOutput.body;
|
|
1333
|
-
if (data.Code
|
|
1356
|
+
if (data.Code != null) {
|
|
1334
1357
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1335
1358
|
}
|
|
1336
|
-
if (data.Message
|
|
1359
|
+
if (data.Message != null) {
|
|
1337
1360
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1338
1361
|
}
|
|
1339
|
-
if (data.RequestId
|
|
1362
|
+
if (data.RequestId != null) {
|
|
1340
1363
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1341
1364
|
}
|
|
1342
1365
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -1345,16 +1368,37 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1345
1368
|
});
|
|
1346
1369
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1347
1370
|
};
|
|
1371
|
+
const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
1372
|
+
const contents = map({});
|
|
1373
|
+
const data = parsedOutput.body;
|
|
1374
|
+
if (data.Code != null) {
|
|
1375
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1376
|
+
}
|
|
1377
|
+
if (data.Message != null) {
|
|
1378
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1379
|
+
}
|
|
1380
|
+
if (data.RequestId != null) {
|
|
1381
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1382
|
+
}
|
|
1383
|
+
if (data.ResourceName != null) {
|
|
1384
|
+
contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
|
|
1385
|
+
}
|
|
1386
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
1387
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1388
|
+
...contents,
|
|
1389
|
+
});
|
|
1390
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1391
|
+
};
|
|
1348
1392
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1349
|
-
const contents = {};
|
|
1393
|
+
const contents = map({});
|
|
1350
1394
|
const data = parsedOutput.body;
|
|
1351
|
-
if (data.Code
|
|
1395
|
+
if (data.Code != null) {
|
|
1352
1396
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1353
1397
|
}
|
|
1354
|
-
if (data.Message
|
|
1398
|
+
if (data.Message != null) {
|
|
1355
1399
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1356
1400
|
}
|
|
1357
|
-
if (data.RequestId
|
|
1401
|
+
if (data.RequestId != null) {
|
|
1358
1402
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1359
1403
|
}
|
|
1360
1404
|
const exception = new models_0_1.UnauthorizedException({
|
|
@@ -1364,15 +1408,15 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1364
1408
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1365
1409
|
};
|
|
1366
1410
|
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
1367
|
-
const contents = {};
|
|
1411
|
+
const contents = map({});
|
|
1368
1412
|
const data = parsedOutput.body;
|
|
1369
|
-
if (data.Code
|
|
1413
|
+
if (data.Code != null) {
|
|
1370
1414
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1371
1415
|
}
|
|
1372
|
-
if (data.Message
|
|
1416
|
+
if (data.Message != null) {
|
|
1373
1417
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1374
1418
|
}
|
|
1375
|
-
if (data.RequestId
|
|
1419
|
+
if (data.RequestId != null) {
|
|
1376
1420
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1377
1421
|
}
|
|
1378
1422
|
const exception = new models_0_1.UnprocessableEntityException({
|
|
@@ -1397,9 +1441,6 @@ const serializeAws_restJson1AttendeeIdsList = (input, context) => {
|
|
|
1397
1441
|
return input
|
|
1398
1442
|
.filter((e) => e != null)
|
|
1399
1443
|
.map((entry) => {
|
|
1400
|
-
if (entry === null) {
|
|
1401
|
-
return null;
|
|
1402
|
-
}
|
|
1403
1444
|
return serializeAws_restJson1AttendeeIdItem(entry, context);
|
|
1404
1445
|
});
|
|
1405
1446
|
};
|
|
@@ -1420,9 +1461,6 @@ const serializeAws_restJson1CreateAttendeeRequestItemList = (input, context) =>
|
|
|
1420
1461
|
return input
|
|
1421
1462
|
.filter((e) => e != null)
|
|
1422
1463
|
.map((entry) => {
|
|
1423
|
-
if (entry === null) {
|
|
1424
|
-
return null;
|
|
1425
|
-
}
|
|
1426
1464
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1427
1465
|
});
|
|
1428
1466
|
};
|
|
@@ -1430,9 +1468,6 @@ const serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = (input,
|
|
|
1430
1468
|
return input
|
|
1431
1469
|
.filter((e) => e != null)
|
|
1432
1470
|
.map((entry) => {
|
|
1433
|
-
if (entry === null) {
|
|
1434
|
-
return null;
|
|
1435
|
-
}
|
|
1436
1471
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1437
1472
|
});
|
|
1438
1473
|
};
|
|
@@ -1478,13 +1513,30 @@ const serializeAws_restJson1NotificationsConfiguration = (input, context) => {
|
|
|
1478
1513
|
...(input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }),
|
|
1479
1514
|
};
|
|
1480
1515
|
};
|
|
1516
|
+
const serializeAws_restJson1Tag = (input, context) => {
|
|
1517
|
+
return {
|
|
1518
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1519
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
1523
|
+
return input
|
|
1524
|
+
.filter((e) => e != null)
|
|
1525
|
+
.map((entry) => {
|
|
1526
|
+
return entry;
|
|
1527
|
+
});
|
|
1528
|
+
};
|
|
1529
|
+
const serializeAws_restJson1TagList = (input, context) => {
|
|
1530
|
+
return input
|
|
1531
|
+
.filter((e) => e != null)
|
|
1532
|
+
.map((entry) => {
|
|
1533
|
+
return serializeAws_restJson1Tag(entry, context);
|
|
1534
|
+
});
|
|
1535
|
+
};
|
|
1481
1536
|
const serializeAws_restJson1TenantIdList = (input, context) => {
|
|
1482
1537
|
return input
|
|
1483
1538
|
.filter((e) => e != null)
|
|
1484
1539
|
.map((entry) => {
|
|
1485
|
-
if (entry === null) {
|
|
1486
|
-
return null;
|
|
1487
|
-
}
|
|
1488
1540
|
return entry;
|
|
1489
1541
|
});
|
|
1490
1542
|
};
|
|
@@ -1568,6 +1620,7 @@ const deserializeAws_restJson1Meeting = (output, context) => {
|
|
|
1568
1620
|
? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
|
|
1569
1621
|
: undefined,
|
|
1570
1622
|
MediaRegion: (0, smithy_client_1.expectString)(output.MediaRegion),
|
|
1623
|
+
MeetingArn: (0, smithy_client_1.expectString)(output.MeetingArn),
|
|
1571
1624
|
MeetingFeatures: output.MeetingFeatures != null
|
|
1572
1625
|
? deserializeAws_restJson1MeetingFeaturesConfiguration(output.MeetingFeatures, context)
|
|
1573
1626
|
: undefined,
|
|
@@ -1582,6 +1635,23 @@ const deserializeAws_restJson1MeetingFeaturesConfiguration = (output, context) =
|
|
|
1582
1635
|
Audio: output.Audio != null ? deserializeAws_restJson1AudioFeatures(output.Audio, context) : undefined,
|
|
1583
1636
|
};
|
|
1584
1637
|
};
|
|
1638
|
+
const deserializeAws_restJson1Tag = (output, context) => {
|
|
1639
|
+
return {
|
|
1640
|
+
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1641
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1644
|
+
const deserializeAws_restJson1TagList = (output, context) => {
|
|
1645
|
+
const retVal = (output || [])
|
|
1646
|
+
.filter((e) => e != null)
|
|
1647
|
+
.map((entry) => {
|
|
1648
|
+
if (entry === null) {
|
|
1649
|
+
return null;
|
|
1650
|
+
}
|
|
1651
|
+
return deserializeAws_restJson1Tag(entry, context);
|
|
1652
|
+
});
|
|
1653
|
+
return retVal;
|
|
1654
|
+
};
|
|
1585
1655
|
const deserializeAws_restJson1TenantIdList = (output, context) => {
|
|
1586
1656
|
const retVal = (output || [])
|
|
1587
1657
|
.filter((e) => e != null)
|