@aws-sdk/client-chime-sdk-meetings 3.100.0 → 3.108.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist-cjs/ChimeSDKMeetings.js +30 -0
  3. package/dist-cjs/ChimeSDKMeetingsClient.js +2 -0
  4. package/dist-cjs/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.js +36 -0
  5. package/dist-cjs/commands/UpdateAttendeeCapabilitiesCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +2 -0
  7. package/dist-cjs/models/models_0.js +57 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +247 -1
  9. package/dist-es/ChimeSDKMeetings.js +30 -0
  10. package/dist-es/ChimeSDKMeetingsClient.js +2 -0
  11. package/dist-es/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.js +39 -0
  12. package/dist-es/commands/UpdateAttendeeCapabilitiesCommand.js +39 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +43 -0
  15. package/dist-es/protocols/Aws_restJson1.js +292 -3
  16. package/dist-types/ChimeSDKMeetings.d.ts +14 -0
  17. package/dist-types/ChimeSDKMeetingsClient.d.ts +4 -2
  18. package/dist-types/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.d.ts +35 -0
  19. package/dist-types/commands/UpdateAttendeeCapabilitiesCommand.d.ts +35 -0
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/models/models_0.d.ts +139 -3
  22. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  23. package/dist-types/ts3.4/ChimeSDKMeetings.d.ts +10 -0
  24. package/dist-types/ts3.4/ChimeSDKMeetingsClient.d.ts +4 -2
  25. package/dist-types/ts3.4/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/UpdateAttendeeCapabilitiesCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +77 -0
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  30. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.108.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.107.0...v3.108.0) (2022-06-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-chime-sdk-meetings:** Adds support for live transcription in AWS GovCloud (US) Regions. ([e42639d](https://github.com/aws/aws-sdk-js-v3/commit/e42639d4c08bf730f1a41e26f5932571a57fa111))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.103.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.102.0...v3.103.0) (2022-06-01)
29
+
30
+
31
+ ### Features
32
+
33
+ * **client-chime-sdk-meetings:** Adds support for centrally controlling each participant's ability to send and receive audio, video and screen share within a WebRTC session. Attendee capabilities can be specified when the attendee is created and updated during the session with the new BatchUpdateAttendeeCapabilitiesExcept API. ([a938290](https://github.com/aws/aws-sdk-js-v3/commit/a938290d1a2010f0e1ee1ee5f35ce95c80883820))
34
+
35
+
36
+
37
+
38
+
6
39
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
40
 
8
41
  **Note:** Version bump only for package @aws-sdk/client-chime-sdk-meetings
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChimeSDKMeetings = void 0;
4
4
  const ChimeSDKMeetingsClient_1 = require("./ChimeSDKMeetingsClient");
5
5
  const BatchCreateAttendeeCommand_1 = require("./commands/BatchCreateAttendeeCommand");
6
+ const BatchUpdateAttendeeCapabilitiesExceptCommand_1 = require("./commands/BatchUpdateAttendeeCapabilitiesExceptCommand");
6
7
  const CreateAttendeeCommand_1 = require("./commands/CreateAttendeeCommand");
7
8
  const CreateMeetingCommand_1 = require("./commands/CreateMeetingCommand");
8
9
  const CreateMeetingWithAttendeesCommand_1 = require("./commands/CreateMeetingWithAttendeesCommand");
@@ -13,6 +14,7 @@ const GetMeetingCommand_1 = require("./commands/GetMeetingCommand");
13
14
  const ListAttendeesCommand_1 = require("./commands/ListAttendeesCommand");
14
15
  const StartMeetingTranscriptionCommand_1 = require("./commands/StartMeetingTranscriptionCommand");
15
16
  const StopMeetingTranscriptionCommand_1 = require("./commands/StopMeetingTranscriptionCommand");
17
+ const UpdateAttendeeCapabilitiesCommand_1 = require("./commands/UpdateAttendeeCapabilitiesCommand");
16
18
  class ChimeSDKMeetings extends ChimeSDKMeetingsClient_1.ChimeSDKMeetingsClient {
17
19
  batchCreateAttendee(args, optionsOrCb, cb) {
18
20
  const command = new BatchCreateAttendeeCommand_1.BatchCreateAttendeeCommand(args);
@@ -28,6 +30,20 @@ class ChimeSDKMeetings extends ChimeSDKMeetingsClient_1.ChimeSDKMeetingsClient {
28
30
  return this.send(command, optionsOrCb);
29
31
  }
30
32
  }
33
+ batchUpdateAttendeeCapabilitiesExcept(args, optionsOrCb, cb) {
34
+ const command = new BatchUpdateAttendeeCapabilitiesExceptCommand_1.BatchUpdateAttendeeCapabilitiesExceptCommand(args);
35
+ if (typeof optionsOrCb === "function") {
36
+ this.send(command, optionsOrCb);
37
+ }
38
+ else if (typeof cb === "function") {
39
+ if (typeof optionsOrCb !== "object")
40
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
+ this.send(command, optionsOrCb || {}, cb);
42
+ }
43
+ else {
44
+ return this.send(command, optionsOrCb);
45
+ }
46
+ }
31
47
  createAttendee(args, optionsOrCb, cb) {
32
48
  const command = new CreateAttendeeCommand_1.CreateAttendeeCommand(args);
33
49
  if (typeof optionsOrCb === "function") {
@@ -168,5 +184,19 @@ class ChimeSDKMeetings extends ChimeSDKMeetingsClient_1.ChimeSDKMeetingsClient {
168
184
  return this.send(command, optionsOrCb);
169
185
  }
170
186
  }
187
+ updateAttendeeCapabilities(args, optionsOrCb, cb) {
188
+ const command = new UpdateAttendeeCapabilitiesCommand_1.UpdateAttendeeCapabilitiesCommand(args);
189
+ if (typeof optionsOrCb === "function") {
190
+ this.send(command, optionsOrCb);
191
+ }
192
+ else if (typeof cb === "function") {
193
+ if (typeof optionsOrCb !== "object")
194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
+ this.send(command, optionsOrCb || {}, cb);
196
+ }
197
+ else {
198
+ return this.send(command, optionsOrCb);
199
+ }
200
+ }
171
201
  }
172
202
  exports.ChimeSDKMeetings = ChimeSDKMeetings;
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class ChimeSDKMeetingsClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
31
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
32
  }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchUpdateAttendeeCapabilitiesExceptCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class BatchUpdateAttendeeCapabilitiesExceptCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ChimeSDKMeetingsClient";
18
+ const commandName = "BatchUpdateAttendeeCapabilitiesExceptCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.BatchUpdateAttendeeCapabilitiesExceptRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand)(output, context);
34
+ }
35
+ }
36
+ exports.BatchUpdateAttendeeCapabilitiesExceptCommand = BatchUpdateAttendeeCapabilitiesExceptCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAttendeeCapabilitiesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateAttendeeCapabilitiesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ChimeSDKMeetingsClient";
18
+ const commandName = "UpdateAttendeeCapabilitiesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateAttendeeCapabilitiesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateAttendeeCapabilitiesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1UpdateAttendeeCapabilitiesCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand)(output, context);
34
+ }
35
+ }
36
+ exports.UpdateAttendeeCapabilitiesCommand = UpdateAttendeeCapabilitiesCommand;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BatchCreateAttendeeCommand"), exports);
5
+ tslib_1.__exportStar(require("./BatchUpdateAttendeeCapabilitiesExceptCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateAttendeeCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateMeetingCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateMeetingWithAttendeesCommand"), exports);
@@ -12,3 +13,4 @@ tslib_1.__exportStar(require("./GetMeetingCommand"), exports);
12
13
  tslib_1.__exportStar(require("./ListAttendeesCommand"), exports);
13
14
  tslib_1.__exportStar(require("./StartMeetingTranscriptionCommand"), exports);
14
15
  tslib_1.__exportStar(require("./StopMeetingTranscriptionCommand"), exports);
16
+ tslib_1.__exportStar(require("./UpdateAttendeeCapabilitiesCommand"), exports);
@@ -1,8 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StopMeetingTranscriptionRequest = exports.StartMeetingTranscriptionRequest = exports.TranscriptionConfiguration = exports.EngineTranscribeSettings = exports.TranscribeVocabularyFilterMethod = exports.TranscribeRegion = exports.TranscribePartialResultsStability = exports.TranscribeLanguageCode = exports.TranscribeContentRedactionType = exports.TranscribeContentIdentificationType = exports.EngineTranscribeMedicalSettings = exports.TranscribeMedicalType = exports.TranscribeMedicalSpecialty = exports.TranscribeMedicalRegion = exports.TranscribeMedicalLanguageCode = exports.TranscribeMedicalContentIdentificationType = exports.ListAttendeesResponse = exports.ListAttendeesRequest = exports.GetMeetingResponse = exports.GetMeetingRequest = exports.GetAttendeeResponse = exports.GetAttendeeRequest = exports.DeleteMeetingRequest = exports.DeleteAttendeeRequest = exports.CreateMeetingWithAttendeesResponse = exports.CreateMeetingWithAttendeesRequest = exports.CreateMeetingResponse = exports.Meeting = exports.MediaPlacement = exports.CreateMeetingRequest = exports.NotificationsConfiguration = exports.MeetingFeaturesConfiguration = exports.CreateAttendeeResponse = exports.CreateAttendeeRequest = exports.UnprocessableEntityException = exports.UnauthorizedException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ServiceFailureException = exports.NotFoundException = exports.LimitExceededException = exports.ForbiddenException = exports.BatchCreateAttendeeResponse = exports.CreateAttendeeError = exports.BatchCreateAttendeeRequest = exports.CreateAttendeeRequestItem = exports.BadRequestException = exports.AudioFeatures = exports.MeetingFeatureStatus = exports.Attendee = void 0;
3
+ exports.TranscribeRegion = exports.TranscribePartialResultsStability = exports.TranscribeLanguageCode = exports.TranscribeContentRedactionType = exports.TranscribeContentIdentificationType = exports.EngineTranscribeMedicalSettings = exports.TranscribeMedicalType = exports.TranscribeMedicalSpecialty = exports.TranscribeMedicalRegion = exports.TranscribeMedicalLanguageCode = exports.TranscribeMedicalContentIdentificationType = exports.ListAttendeesResponse = exports.ListAttendeesRequest = exports.GetMeetingResponse = exports.GetMeetingRequest = exports.GetAttendeeResponse = exports.GetAttendeeRequest = exports.DeleteMeetingRequest = exports.DeleteAttendeeRequest = exports.CreateMeetingWithAttendeesResponse = exports.CreateMeetingWithAttendeesRequest = exports.CreateMeetingResponse = exports.Meeting = exports.MediaPlacement = exports.CreateMeetingRequest = exports.NotificationsConfiguration = exports.MeetingFeaturesConfiguration = exports.CreateAttendeeResponse = exports.CreateAttendeeRequest = exports.ConflictException = exports.BatchUpdateAttendeeCapabilitiesExceptRequest = exports.UnprocessableEntityException = exports.UnauthorizedException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ServiceFailureException = exports.NotFoundException = exports.LimitExceededException = exports.ForbiddenException = exports.BatchCreateAttendeeResponse = exports.CreateAttendeeError = exports.BatchCreateAttendeeRequest = exports.CreateAttendeeRequestItem = exports.BadRequestException = exports.AudioFeatures = exports.MeetingFeatureStatus = exports.AttendeeIdItem = exports.Attendee = exports.AttendeeCapabilities = exports.MediaCapabilities = void 0;
4
+ exports.UpdateAttendeeCapabilitiesResponse = exports.UpdateAttendeeCapabilitiesRequest = exports.StopMeetingTranscriptionRequest = exports.StartMeetingTranscriptionRequest = exports.TranscriptionConfiguration = exports.EngineTranscribeSettings = exports.TranscribeVocabularyFilterMethod = void 0;
4
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
6
  const ChimeSDKMeetingsServiceException_1 = require("./ChimeSDKMeetingsServiceException");
7
+ var MediaCapabilities;
8
+ (function (MediaCapabilities) {
9
+ MediaCapabilities["NONE"] = "None";
10
+ MediaCapabilities["RECEIVE"] = "Receive";
11
+ MediaCapabilities["SEND"] = "Send";
12
+ MediaCapabilities["SEND_RECEIVE"] = "SendReceive";
13
+ })(MediaCapabilities = exports.MediaCapabilities || (exports.MediaCapabilities = {}));
14
+ var AttendeeCapabilities;
15
+ (function (AttendeeCapabilities) {
16
+ AttendeeCapabilities.filterSensitiveLog = (obj) => ({
17
+ ...obj,
18
+ });
19
+ })(AttendeeCapabilities = exports.AttendeeCapabilities || (exports.AttendeeCapabilities = {}));
6
20
  var Attendee;
7
21
  (function (Attendee) {
8
22
  Attendee.filterSensitiveLog = (obj) => ({
@@ -11,6 +25,12 @@ var Attendee;
11
25
  ...(obj.JoinToken && { JoinToken: smithy_client_1.SENSITIVE_STRING }),
12
26
  });
13
27
  })(Attendee = exports.Attendee || (exports.Attendee = {}));
28
+ var AttendeeIdItem;
29
+ (function (AttendeeIdItem) {
30
+ AttendeeIdItem.filterSensitiveLog = (obj) => ({
31
+ ...obj,
32
+ });
33
+ })(AttendeeIdItem = exports.AttendeeIdItem || (exports.AttendeeIdItem = {}));
14
34
  var MeetingFeatureStatus;
15
35
  (function (MeetingFeatureStatus) {
16
36
  MeetingFeatureStatus["AVAILABLE"] = "AVAILABLE";
@@ -198,6 +218,28 @@ class UnprocessableEntityException extends ChimeSDKMeetingsServiceException_1.Ch
198
218
  }
199
219
  }
200
220
  exports.UnprocessableEntityException = UnprocessableEntityException;
221
+ var BatchUpdateAttendeeCapabilitiesExceptRequest;
222
+ (function (BatchUpdateAttendeeCapabilitiesExceptRequest) {
223
+ BatchUpdateAttendeeCapabilitiesExceptRequest.filterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ });
226
+ })(BatchUpdateAttendeeCapabilitiesExceptRequest = exports.BatchUpdateAttendeeCapabilitiesExceptRequest || (exports.BatchUpdateAttendeeCapabilitiesExceptRequest = {}));
227
+ class ConflictException extends ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException {
228
+ constructor(opts) {
229
+ super({
230
+ name: "ConflictException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ this.name = "ConflictException";
235
+ this.$fault = "client";
236
+ Object.setPrototypeOf(this, ConflictException.prototype);
237
+ this.Code = opts.Code;
238
+ this.Message = opts.Message;
239
+ this.RequestId = opts.RequestId;
240
+ }
241
+ }
242
+ exports.ConflictException = ConflictException;
201
243
  var CreateAttendeeRequest;
202
244
  (function (CreateAttendeeRequest) {
203
245
  CreateAttendeeRequest.filterSensitiveLog = (obj) => ({
@@ -415,6 +457,7 @@ var TranscribeRegion;
415
457
  TranscribeRegion["SA_EAST_1"] = "sa-east-1";
416
458
  TranscribeRegion["US_EAST_1"] = "us-east-1";
417
459
  TranscribeRegion["US_EAST_2"] = "us-east-2";
460
+ TranscribeRegion["US_GOV_WEST_1"] = "us-gov-west-1";
418
461
  TranscribeRegion["US_WEST_2"] = "us-west-2";
419
462
  })(TranscribeRegion = exports.TranscribeRegion || (exports.TranscribeRegion = {}));
420
463
  var TranscribeVocabularyFilterMethod;
@@ -447,3 +490,16 @@ var StopMeetingTranscriptionRequest;
447
490
  ...obj,
448
491
  });
449
492
  })(StopMeetingTranscriptionRequest = exports.StopMeetingTranscriptionRequest || (exports.StopMeetingTranscriptionRequest = {}));
493
+ var UpdateAttendeeCapabilitiesRequest;
494
+ (function (UpdateAttendeeCapabilitiesRequest) {
495
+ UpdateAttendeeCapabilitiesRequest.filterSensitiveLog = (obj) => ({
496
+ ...obj,
497
+ });
498
+ })(UpdateAttendeeCapabilitiesRequest = exports.UpdateAttendeeCapabilitiesRequest || (exports.UpdateAttendeeCapabilitiesRequest = {}));
499
+ var UpdateAttendeeCapabilitiesResponse;
500
+ (function (UpdateAttendeeCapabilitiesResponse) {
501
+ UpdateAttendeeCapabilitiesResponse.filterSensitiveLog = (obj) => ({
502
+ ...obj,
503
+ ...(obj.Attendee && { Attendee: Attendee.filterSensitiveLog(obj.Attendee) }),
504
+ });
505
+ })(UpdateAttendeeCapabilitiesResponse = exports.UpdateAttendeeCapabilitiesResponse || (exports.UpdateAttendeeCapabilitiesResponse = {}));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_restJson1BatchCreateAttendeeCommand = 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_restJson1BatchCreateAttendeeCommand = void 0;
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;
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");
@@ -44,6 +44,49 @@ const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context)
44
44
  });
45
45
  };
46
46
  exports.serializeAws_restJson1BatchCreateAttendeeCommand = serializeAws_restJson1BatchCreateAttendeeCommand;
47
+ const serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async (input, context) => {
48
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const headers = {
50
+ "content-type": "application/json",
51
+ };
52
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
53
+ "/meetings/{MeetingId}/attendees/capabilities";
54
+ if (input.MeetingId !== undefined) {
55
+ const labelValue = input.MeetingId;
56
+ if (labelValue.length <= 0) {
57
+ throw new Error("Empty value provided for input HTTP label: MeetingId.");
58
+ }
59
+ resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
60
+ }
61
+ else {
62
+ throw new Error("No value provided for input HTTP label: MeetingId.");
63
+ }
64
+ const query = {
65
+ operation: "batch-update-except",
66
+ };
67
+ let body;
68
+ body = JSON.stringify({
69
+ ...(input.Capabilities !== undefined &&
70
+ input.Capabilities !== null && {
71
+ Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
72
+ }),
73
+ ...(input.ExcludedAttendeeIds !== undefined &&
74
+ input.ExcludedAttendeeIds !== null && {
75
+ ExcludedAttendeeIds: serializeAws_restJson1AttendeeIdsList(input.ExcludedAttendeeIds, context),
76
+ }),
77
+ });
78
+ return new protocol_http_1.HttpRequest({
79
+ protocol,
80
+ hostname,
81
+ port,
82
+ method: "PUT",
83
+ headers,
84
+ path: resolvedPath,
85
+ query,
86
+ body,
87
+ });
88
+ };
89
+ exports.serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand;
47
90
  const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
48
91
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
92
  const headers = {
@@ -62,6 +105,10 @@ const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
62
105
  }
63
106
  let body;
64
107
  body = JSON.stringify({
108
+ ...(input.Capabilities !== undefined &&
109
+ input.Capabilities !== null && {
110
+ Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
111
+ }),
65
112
  ...(input.ExternalUserId !== undefined &&
66
113
  input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId }),
67
114
  });
@@ -381,6 +428,51 @@ const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, cont
381
428
  });
382
429
  };
383
430
  exports.serializeAws_restJson1StopMeetingTranscriptionCommand = serializeAws_restJson1StopMeetingTranscriptionCommand;
431
+ const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, context) => {
432
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
433
+ const headers = {
434
+ "content-type": "application/json",
435
+ };
436
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
437
+ "/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities";
438
+ if (input.MeetingId !== undefined) {
439
+ const labelValue = input.MeetingId;
440
+ if (labelValue.length <= 0) {
441
+ throw new Error("Empty value provided for input HTTP label: MeetingId.");
442
+ }
443
+ resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
444
+ }
445
+ else {
446
+ throw new Error("No value provided for input HTTP label: MeetingId.");
447
+ }
448
+ if (input.AttendeeId !== undefined) {
449
+ const labelValue = input.AttendeeId;
450
+ if (labelValue.length <= 0) {
451
+ throw new Error("Empty value provided for input HTTP label: AttendeeId.");
452
+ }
453
+ resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
454
+ }
455
+ else {
456
+ throw new Error("No value provided for input HTTP label: AttendeeId.");
457
+ }
458
+ let body;
459
+ body = JSON.stringify({
460
+ ...(input.Capabilities !== undefined &&
461
+ input.Capabilities !== null && {
462
+ Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
463
+ }),
464
+ });
465
+ return new protocol_http_1.HttpRequest({
466
+ protocol,
467
+ hostname,
468
+ port,
469
+ method: "PUT",
470
+ headers,
471
+ path: resolvedPath,
472
+ body,
473
+ });
474
+ };
475
+ exports.serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = serializeAws_restJson1UpdateAttendeeCapabilitiesCommand;
384
476
  const deserializeAws_restJson1BatchCreateAttendeeCommand = async (output, context) => {
385
477
  if (output.statusCode !== 200 && output.statusCode >= 300) {
386
478
  return deserializeAws_restJson1BatchCreateAttendeeCommandError(output, context);
@@ -446,6 +538,54 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
446
538
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
447
539
  }
448
540
  };
541
+ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, context) => {
542
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
543
+ return deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError(output, context);
544
+ }
545
+ const contents = {
546
+ $metadata: deserializeMetadata(output),
547
+ };
548
+ await collectBody(output.body, context);
549
+ return Promise.resolve(contents);
550
+ };
551
+ exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand;
552
+ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError = async (output, context) => {
553
+ const parsedOutput = {
554
+ ...output,
555
+ body: await parseBody(output.body, context),
556
+ };
557
+ let response;
558
+ let errorCode = "UnknownError";
559
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
560
+ switch (errorCode) {
561
+ case "BadRequestException":
562
+ case "com.amazonaws.chimesdkmeetings#BadRequestException":
563
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
564
+ case "ConflictException":
565
+ case "com.amazonaws.chimesdkmeetings#ConflictException":
566
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
567
+ case "ForbiddenException":
568
+ case "com.amazonaws.chimesdkmeetings#ForbiddenException":
569
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
570
+ case "NotFoundException":
571
+ case "com.amazonaws.chimesdkmeetings#NotFoundException":
572
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
573
+ case "ServiceUnavailableException":
574
+ case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
575
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
576
+ case "UnauthorizedException":
577
+ case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
578
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
579
+ default:
580
+ const parsedBody = parsedOutput.body;
581
+ response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
582
+ name: parsedBody.code || parsedBody.Code || errorCode,
583
+ $fault: "client",
584
+ $metadata: deserializeMetadata(output),
585
+ });
586
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
587
+ }
588
+ };
449
589
  const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) => {
450
590
  if (output.statusCode !== 200 && output.statusCode >= 300) {
451
591
  return deserializeAws_restJson1CreateAttendeeCommandError(output, context);
@@ -1007,6 +1147,58 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
1007
1147
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1008
1148
  }
1009
1149
  };
1150
+ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (output, context) => {
1151
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1152
+ return deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError(output, context);
1153
+ }
1154
+ const contents = {
1155
+ $metadata: deserializeMetadata(output),
1156
+ Attendee: undefined,
1157
+ };
1158
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1159
+ if (data.Attendee !== undefined && data.Attendee !== null) {
1160
+ contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
1161
+ }
1162
+ return Promise.resolve(contents);
1163
+ };
1164
+ exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand;
1165
+ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (output, context) => {
1166
+ const parsedOutput = {
1167
+ ...output,
1168
+ body: await parseBody(output.body, context),
1169
+ };
1170
+ let response;
1171
+ let errorCode = "UnknownError";
1172
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1173
+ switch (errorCode) {
1174
+ case "BadRequestException":
1175
+ case "com.amazonaws.chimesdkmeetings#BadRequestException":
1176
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1177
+ case "ConflictException":
1178
+ case "com.amazonaws.chimesdkmeetings#ConflictException":
1179
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1180
+ case "ForbiddenException":
1181
+ case "com.amazonaws.chimesdkmeetings#ForbiddenException":
1182
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
1183
+ case "NotFoundException":
1184
+ case "com.amazonaws.chimesdkmeetings#NotFoundException":
1185
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1186
+ case "ServiceUnavailableException":
1187
+ case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
1188
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1189
+ case "UnauthorizedException":
1190
+ case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
1191
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1192
+ default:
1193
+ const parsedBody = parsedOutput.body;
1194
+ response = new ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException({
1195
+ name: parsedBody.code || parsedBody.Code || errorCode,
1196
+ $fault: "client",
1197
+ $metadata: deserializeMetadata(output),
1198
+ });
1199
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1200
+ }
1201
+ };
1010
1202
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
1011
1203
  const contents = {};
1012
1204
  const data = parsedOutput.body;
@@ -1025,6 +1217,24 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
1025
1217
  });
1026
1218
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1027
1219
  };
1220
+ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1221
+ const contents = {};
1222
+ const data = parsedOutput.body;
1223
+ if (data.Code !== undefined && data.Code !== null) {
1224
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
1225
+ }
1226
+ if (data.Message !== undefined && data.Message !== null) {
1227
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
1228
+ }
1229
+ if (data.RequestId !== undefined && data.RequestId !== null) {
1230
+ contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
1231
+ }
1232
+ const exception = new models_0_1.ConflictException({
1233
+ $metadata: deserializeMetadata(parsedOutput),
1234
+ ...contents,
1235
+ });
1236
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1237
+ };
1028
1238
  const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
1029
1239
  const contents = {};
1030
1240
  const data = parsedOutput.body;
@@ -1172,6 +1382,28 @@ const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (pars
1172
1382
  });
1173
1383
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1174
1384
  };
1385
+ const serializeAws_restJson1AttendeeCapabilities = (input, context) => {
1386
+ return {
1387
+ ...(input.Audio !== undefined && input.Audio !== null && { Audio: input.Audio }),
1388
+ ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
1389
+ ...(input.Video !== undefined && input.Video !== null && { Video: input.Video }),
1390
+ };
1391
+ };
1392
+ const serializeAws_restJson1AttendeeIdItem = (input, context) => {
1393
+ return {
1394
+ ...(input.AttendeeId !== undefined && input.AttendeeId !== null && { AttendeeId: input.AttendeeId }),
1395
+ };
1396
+ };
1397
+ const serializeAws_restJson1AttendeeIdsList = (input, context) => {
1398
+ return input
1399
+ .filter((e) => e != null)
1400
+ .map((entry) => {
1401
+ if (entry === null) {
1402
+ return null;
1403
+ }
1404
+ return serializeAws_restJson1AttendeeIdItem(entry, context);
1405
+ });
1406
+ };
1175
1407
  const serializeAws_restJson1AudioFeatures = (input, context) => {
1176
1408
  return {
1177
1409
  ...(input.EchoReduction !== undefined && input.EchoReduction !== null && { EchoReduction: input.EchoReduction }),
@@ -1179,6 +1411,10 @@ const serializeAws_restJson1AudioFeatures = (input, context) => {
1179
1411
  };
1180
1412
  const serializeAws_restJson1CreateAttendeeRequestItem = (input, context) => {
1181
1413
  return {
1414
+ ...(input.Capabilities !== undefined &&
1415
+ input.Capabilities !== null && {
1416
+ Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
1417
+ }),
1182
1418
  ...(input.ExternalUserId !== undefined &&
1183
1419
  input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId }),
1184
1420
  };
@@ -1276,10 +1512,20 @@ const serializeAws_restJson1TranscriptionConfiguration = (input, context) => {
1276
1512
  const deserializeAws_restJson1Attendee = (output, context) => {
1277
1513
  return {
1278
1514
  AttendeeId: (0, smithy_client_1.expectString)(output.AttendeeId),
1515
+ Capabilities: output.Capabilities !== undefined && output.Capabilities !== null
1516
+ ? deserializeAws_restJson1AttendeeCapabilities(output.Capabilities, context)
1517
+ : undefined,
1279
1518
  ExternalUserId: (0, smithy_client_1.expectString)(output.ExternalUserId),
1280
1519
  JoinToken: (0, smithy_client_1.expectString)(output.JoinToken),
1281
1520
  };
1282
1521
  };
1522
+ const deserializeAws_restJson1AttendeeCapabilities = (output, context) => {
1523
+ return {
1524
+ Audio: (0, smithy_client_1.expectString)(output.Audio),
1525
+ Content: (0, smithy_client_1.expectString)(output.Content),
1526
+ Video: (0, smithy_client_1.expectString)(output.Video),
1527
+ };
1528
+ };
1283
1529
  const deserializeAws_restJson1AttendeeList = (output, context) => {
1284
1530
  const retVal = (output || [])
1285
1531
  .filter((e) => e != null)