@aws-sdk/client-connectparticipant 3.118.1 → 3.128.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 CHANGED
@@ -3,6 +3,33 @@
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-connectparticipant
9
+
10
+
11
+
12
+
13
+
14
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-connectparticipant
17
+
18
+
19
+
20
+
21
+
22
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-connectparticipant
@@ -16,8 +16,7 @@ const serializeAws_restJson1CompleteAttachmentUploadCommand = async (input, cont
16
16
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/participant/complete-attachment-upload";
17
17
  let body;
18
18
  body = JSON.stringify({
19
- ...(input.AttachmentIds !== undefined &&
20
- input.AttachmentIds !== null && {
19
+ ...(input.AttachmentIds != null && {
21
20
  AttachmentIds: serializeAws_restJson1AttachmentIdList(input.AttachmentIds, context),
22
21
  }),
23
22
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
@@ -42,10 +41,8 @@ const serializeAws_restJson1CreateParticipantConnectionCommand = async (input, c
42
41
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/participant/connection";
43
42
  let body;
44
43
  body = JSON.stringify({
45
- ...(input.ConnectParticipant !== undefined &&
46
- input.ConnectParticipant !== null && { ConnectParticipant: input.ConnectParticipant }),
47
- ...(input.Type !== undefined &&
48
- input.Type !== null && { Type: serializeAws_restJson1ConnectionTypeList(input.Type, context) }),
44
+ ...(input.ConnectParticipant != null && { ConnectParticipant: input.ConnectParticipant }),
45
+ ...(input.Type != null && { Type: serializeAws_restJson1ConnectionTypeList(input.Type, context) }),
49
46
  });
50
47
  return new protocol_http_1.HttpRequest({
51
48
  protocol,
@@ -90,7 +87,7 @@ const serializeAws_restJson1GetAttachmentCommand = async (input, context) => {
90
87
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/participant/attachment";
91
88
  let body;
92
89
  body = JSON.stringify({
93
- ...(input.AttachmentId !== undefined && input.AttachmentId !== null && { AttachmentId: input.AttachmentId }),
90
+ ...(input.AttachmentId != null && { AttachmentId: input.AttachmentId }),
94
91
  });
95
92
  return new protocol_http_1.HttpRequest({
96
93
  protocol,
@@ -112,13 +109,12 @@ const serializeAws_restJson1GetTranscriptCommand = async (input, context) => {
112
109
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/participant/transcript";
113
110
  let body;
114
111
  body = JSON.stringify({
115
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
116
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
117
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
118
- ...(input.ScanDirection !== undefined && input.ScanDirection !== null && { ScanDirection: input.ScanDirection }),
119
- ...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
120
- ...(input.StartPosition !== undefined &&
121
- input.StartPosition !== null && {
112
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
113
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
114
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
115
+ ...(input.ScanDirection != null && { ScanDirection: input.ScanDirection }),
116
+ ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
117
+ ...(input.StartPosition != null && {
122
118
  StartPosition: serializeAws_restJson1StartPosition(input.StartPosition, context),
123
119
  }),
124
120
  });
@@ -144,8 +140,8 @@ const serializeAws_restJson1SendEventCommand = async (input, context) => {
144
140
  let body;
145
141
  body = JSON.stringify({
146
142
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
147
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
148
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
143
+ ...(input.Content != null && { Content: input.Content }),
144
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
149
145
  });
150
146
  return new protocol_http_1.HttpRequest({
151
147
  protocol,
@@ -169,8 +165,8 @@ const serializeAws_restJson1SendMessageCommand = async (input, context) => {
169
165
  let body;
170
166
  body = JSON.stringify({
171
167
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
172
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
173
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
168
+ ...(input.Content != null && { Content: input.Content }),
169
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
174
170
  });
175
171
  return new protocol_http_1.HttpRequest({
176
172
  protocol,
@@ -193,12 +189,10 @@ const serializeAws_restJson1StartAttachmentUploadCommand = async (input, context
193
189
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/participant/start-attachment-upload";
194
190
  let body;
195
191
  body = JSON.stringify({
196
- ...(input.AttachmentName !== undefined &&
197
- input.AttachmentName !== null && { AttachmentName: input.AttachmentName }),
198
- ...(input.AttachmentSizeInBytes !== undefined &&
199
- input.AttachmentSizeInBytes !== null && { AttachmentSizeInBytes: input.AttachmentSizeInBytes }),
192
+ ...(input.AttachmentName != null && { AttachmentName: input.AttachmentName }),
193
+ ...(input.AttachmentSizeInBytes != null && { AttachmentSizeInBytes: input.AttachmentSizeInBytes }),
200
194
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
201
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
195
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
202
196
  });
203
197
  return new protocol_http_1.HttpRequest({
204
198
  protocol,
@@ -228,8 +222,7 @@ const deserializeAws_restJson1CompleteAttachmentUploadCommandError = async (outp
228
222
  body: await parseBody(output.body, context),
229
223
  };
230
224
  let response;
231
- let errorCode = "UnknownError";
232
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
225
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
233
226
  switch (errorCode) {
234
227
  case "AccessDeniedException":
235
228
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -251,10 +244,12 @@ const deserializeAws_restJson1CompleteAttachmentUploadCommandError = async (outp
251
244
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
252
245
  default:
253
246
  const parsedBody = parsedOutput.body;
247
+ const $metadata = deserializeMetadata(output);
248
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
254
249
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
255
- name: parsedBody.code || parsedBody.Code || errorCode,
250
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
256
251
  $fault: "client",
257
- $metadata: deserializeMetadata(output),
252
+ $metadata,
258
253
  });
259
254
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
260
255
  }
@@ -284,8 +279,7 @@ const deserializeAws_restJson1CreateParticipantConnectionCommandError = async (o
284
279
  body: await parseBody(output.body, context),
285
280
  };
286
281
  let response;
287
- let errorCode = "UnknownError";
288
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
282
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
289
283
  switch (errorCode) {
290
284
  case "AccessDeniedException":
291
285
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -301,10 +295,12 @@ const deserializeAws_restJson1CreateParticipantConnectionCommandError = async (o
301
295
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
302
296
  default:
303
297
  const parsedBody = parsedOutput.body;
298
+ const $metadata = deserializeMetadata(output);
299
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
304
300
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
305
- name: parsedBody.code || parsedBody.Code || errorCode,
301
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
306
302
  $fault: "client",
307
- $metadata: deserializeMetadata(output),
303
+ $metadata,
308
304
  });
309
305
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
310
306
  }
@@ -326,8 +322,7 @@ const deserializeAws_restJson1DisconnectParticipantCommandError = async (output,
326
322
  body: await parseBody(output.body, context),
327
323
  };
328
324
  let response;
329
- let errorCode = "UnknownError";
330
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
325
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
331
326
  switch (errorCode) {
332
327
  case "AccessDeniedException":
333
328
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -343,10 +338,12 @@ const deserializeAws_restJson1DisconnectParticipantCommandError = async (output,
343
338
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
344
339
  default:
345
340
  const parsedBody = parsedOutput.body;
341
+ const $metadata = deserializeMetadata(output);
342
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
346
343
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
347
- name: parsedBody.code || parsedBody.Code || errorCode,
344
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
348
345
  $fault: "client",
349
- $metadata: deserializeMetadata(output),
346
+ $metadata,
350
347
  });
351
348
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
352
349
  }
@@ -376,8 +373,7 @@ const deserializeAws_restJson1GetAttachmentCommandError = async (output, context
376
373
  body: await parseBody(output.body, context),
377
374
  };
378
375
  let response;
379
- let errorCode = "UnknownError";
380
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
376
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
381
377
  switch (errorCode) {
382
378
  case "AccessDeniedException":
383
379
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -393,10 +389,12 @@ const deserializeAws_restJson1GetAttachmentCommandError = async (output, context
393
389
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
394
390
  default:
395
391
  const parsedBody = parsedOutput.body;
392
+ const $metadata = deserializeMetadata(output);
393
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
396
394
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
397
- name: parsedBody.code || parsedBody.Code || errorCode,
395
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
398
396
  $fault: "client",
399
- $metadata: deserializeMetadata(output),
397
+ $metadata,
400
398
  });
401
399
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
402
400
  }
@@ -430,8 +428,7 @@ const deserializeAws_restJson1GetTranscriptCommandError = async (output, context
430
428
  body: await parseBody(output.body, context),
431
429
  };
432
430
  let response;
433
- let errorCode = "UnknownError";
434
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
431
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
435
432
  switch (errorCode) {
436
433
  case "AccessDeniedException":
437
434
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -447,10 +444,12 @@ const deserializeAws_restJson1GetTranscriptCommandError = async (output, context
447
444
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
448
445
  default:
449
446
  const parsedBody = parsedOutput.body;
447
+ const $metadata = deserializeMetadata(output);
448
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
450
449
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
451
- name: parsedBody.code || parsedBody.Code || errorCode,
450
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
452
451
  $fault: "client",
453
- $metadata: deserializeMetadata(output),
452
+ $metadata,
454
453
  });
455
454
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
456
455
  }
@@ -480,8 +479,7 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
480
479
  body: await parseBody(output.body, context),
481
480
  };
482
481
  let response;
483
- let errorCode = "UnknownError";
484
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
482
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
485
483
  switch (errorCode) {
486
484
  case "AccessDeniedException":
487
485
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -497,10 +495,12 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
497
495
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
498
496
  default:
499
497
  const parsedBody = parsedOutput.body;
498
+ const $metadata = deserializeMetadata(output);
499
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
500
500
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
501
- name: parsedBody.code || parsedBody.Code || errorCode,
501
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
502
502
  $fault: "client",
503
- $metadata: deserializeMetadata(output),
503
+ $metadata,
504
504
  });
505
505
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
506
506
  }
@@ -530,8 +530,7 @@ const deserializeAws_restJson1SendMessageCommandError = async (output, context)
530
530
  body: await parseBody(output.body, context),
531
531
  };
532
532
  let response;
533
- let errorCode = "UnknownError";
534
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
535
534
  switch (errorCode) {
536
535
  case "AccessDeniedException":
537
536
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -547,10 +546,12 @@ const deserializeAws_restJson1SendMessageCommandError = async (output, context)
547
546
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
548
547
  default:
549
548
  const parsedBody = parsedOutput.body;
549
+ const $metadata = deserializeMetadata(output);
550
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
550
551
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
551
- name: parsedBody.code || parsedBody.Code || errorCode,
552
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
552
553
  $fault: "client",
553
- $metadata: deserializeMetadata(output),
554
+ $metadata,
554
555
  });
555
556
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
556
557
  }
@@ -580,8 +581,7 @@ const deserializeAws_restJson1StartAttachmentUploadCommandError = async (output,
580
581
  body: await parseBody(output.body, context),
581
582
  };
582
583
  let response;
583
- let errorCode = "UnknownError";
584
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
584
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
585
585
  switch (errorCode) {
586
586
  case "AccessDeniedException":
587
587
  case "com.amazonaws.connectparticipant#AccessDeniedException":
@@ -600,10 +600,12 @@ const deserializeAws_restJson1StartAttachmentUploadCommandError = async (output,
600
600
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
601
601
  default:
602
602
  const parsedBody = parsedOutput.body;
603
+ const $metadata = deserializeMetadata(output);
604
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
603
605
  response = new ConnectParticipantServiceException_1.ConnectParticipantServiceException({
604
- name: parsedBody.code || parsedBody.Code || errorCode,
606
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
605
607
  $fault: "client",
606
- $metadata: deserializeMetadata(output),
608
+ $metadata,
607
609
  });
608
610
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
609
611
  }
@@ -702,9 +704,9 @@ const serializeAws_restJson1ConnectionTypeList = (input, context) => {
702
704
  };
703
705
  const serializeAws_restJson1StartPosition = (input, context) => {
704
706
  return {
705
- ...(input.AbsoluteTime !== undefined && input.AbsoluteTime !== null && { AbsoluteTime: input.AbsoluteTime }),
706
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
707
- ...(input.MostRecent !== undefined && input.MostRecent !== null && { MostRecent: input.MostRecent }),
707
+ ...(input.AbsoluteTime != null && { AbsoluteTime: input.AbsoluteTime }),
708
+ ...(input.Id != null && { Id: input.Id }),
709
+ ...(input.MostRecent != null && { MostRecent: input.MostRecent }),
708
710
  };
709
711
  };
710
712
  const deserializeAws_restJson1AttachmentItem = (output, context) => {
@@ -735,9 +737,7 @@ const deserializeAws_restJson1ConnectionCredentials = (output, context) => {
735
737
  const deserializeAws_restJson1Item = (output, context) => {
736
738
  return {
737
739
  AbsoluteTime: (0, smithy_client_1.expectString)(output.AbsoluteTime),
738
- Attachments: output.Attachments !== undefined && output.Attachments !== null
739
- ? deserializeAws_restJson1Attachments(output.Attachments, context)
740
- : undefined,
740
+ Attachments: output.Attachments != null ? deserializeAws_restJson1Attachments(output.Attachments, context) : undefined,
741
741
  Content: (0, smithy_client_1.expectString)(output.Content),
742
742
  ContentType: (0, smithy_client_1.expectString)(output.ContentType),
743
743
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
@@ -760,7 +760,7 @@ const deserializeAws_restJson1Transcript = (output, context) => {
760
760
  };
761
761
  const deserializeAws_restJson1UploadMetadata = (output, context) => {
762
762
  return {
763
- HeadersToInclude: output.HeadersToInclude !== undefined && output.HeadersToInclude !== null
763
+ HeadersToInclude: output.HeadersToInclude != null
764
764
  ? deserializeAws_restJson1UploadMetadataSignedHeaders(output.HeadersToInclude, context)
765
765
  : undefined,
766
766
  Url: (0, smithy_client_1.expectString)(output.Url),
@@ -833,5 +833,4 @@ const loadRestJsonErrorCode = (output, data) => {
833
833
  if (data["__type"] !== undefined) {
834
834
  return sanitizeErrorCode(data["__type"]);
835
835
  }
836
- return "";
837
836
  };
@@ -14,8 +14,7 @@ export var serializeAws_restJson1CompleteAttachmentUploadCommand = function (inp
14
14
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
15
15
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ConnectionToken) && { "x-amz-bearer": input.ConnectionToken }));
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/complete-attachment-upload";
17
- body = JSON.stringify(__assign(__assign({}, (input.AttachmentIds !== undefined &&
18
- input.AttachmentIds !== null && {
17
+ body = JSON.stringify(__assign(__assign({}, (input.AttachmentIds != null && {
19
18
  AttachmentIds: serializeAws_restJson1AttachmentIdList(input.AttachmentIds, context),
20
19
  })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
21
20
  return [2, new __HttpRequest({
@@ -39,9 +38,7 @@ export var serializeAws_restJson1CreateParticipantConnectionCommand = function (
39
38
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
40
39
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ParticipantToken) && { "x-amz-bearer": input.ParticipantToken }));
41
40
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/connection";
42
- body = JSON.stringify(__assign(__assign({}, (input.ConnectParticipant !== undefined &&
43
- input.ConnectParticipant !== null && { ConnectParticipant: input.ConnectParticipant })), (input.Type !== undefined &&
44
- input.Type !== null && { Type: serializeAws_restJson1ConnectionTypeList(input.Type, context) })));
41
+ body = JSON.stringify(__assign(__assign({}, (input.ConnectParticipant != null && { ConnectParticipant: input.ConnectParticipant })), (input.Type != null && { Type: serializeAws_restJson1ConnectionTypeList(input.Type, context) })));
45
42
  return [2, new __HttpRequest({
46
43
  protocol: protocol,
47
44
  hostname: hostname,
@@ -88,7 +85,7 @@ export var serializeAws_restJson1GetAttachmentCommand = function (input, context
88
85
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
89
86
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ConnectionToken) && { "x-amz-bearer": input.ConnectionToken }));
90
87
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/attachment";
91
- body = JSON.stringify(__assign({}, (input.AttachmentId !== undefined && input.AttachmentId !== null && { AttachmentId: input.AttachmentId })));
88
+ body = JSON.stringify(__assign({}, (input.AttachmentId != null && { AttachmentId: input.AttachmentId })));
92
89
  return [2, new __HttpRequest({
93
90
  protocol: protocol,
94
91
  hostname: hostname,
@@ -110,8 +107,7 @@ export var serializeAws_restJson1GetTranscriptCommand = function (input, context
110
107
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
111
108
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ConnectionToken) && { "x-amz-bearer": input.ConnectionToken }));
112
109
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/transcript";
113
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ScanDirection !== undefined && input.ScanDirection !== null && { ScanDirection: input.ScanDirection })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder })), (input.StartPosition !== undefined &&
114
- input.StartPosition !== null && {
110
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ScanDirection != null && { ScanDirection: input.ScanDirection })), (input.SortOrder != null && { SortOrder: input.SortOrder })), (input.StartPosition != null && {
115
111
  StartPosition: serializeAws_restJson1StartPosition(input.StartPosition, context),
116
112
  })));
117
113
  return [2, new __HttpRequest({
@@ -136,7 +132,7 @@ export var serializeAws_restJson1SendEventCommand = function (input, context) {
136
132
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
137
133
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ConnectionToken) && { "x-amz-bearer": input.ConnectionToken }));
138
134
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/event";
139
- body = JSON.stringify(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content !== undefined && input.Content !== null && { Content: input.Content })), (input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType })));
135
+ body = JSON.stringify(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.ContentType != null && { ContentType: input.ContentType })));
140
136
  return [2, new __HttpRequest({
141
137
  protocol: protocol,
142
138
  hostname: hostname,
@@ -159,7 +155,7 @@ export var serializeAws_restJson1SendMessageCommand = function (input, context)
159
155
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
160
156
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ConnectionToken) && { "x-amz-bearer": input.ConnectionToken }));
161
157
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/message";
162
- body = JSON.stringify(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content !== undefined && input.Content !== null && { Content: input.Content })), (input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType })));
158
+ body = JSON.stringify(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.ContentType != null && { ContentType: input.ContentType })));
163
159
  return [2, new __HttpRequest({
164
160
  protocol: protocol,
165
161
  hostname: hostname,
@@ -182,9 +178,7 @@ export var serializeAws_restJson1StartAttachmentUploadCommand = function (input,
182
178
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
183
179
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ConnectionToken) && { "x-amz-bearer": input.ConnectionToken }));
184
180
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/participant/start-attachment-upload";
185
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AttachmentName !== undefined &&
186
- input.AttachmentName !== null && { AttachmentName: input.AttachmentName })), (input.AttachmentSizeInBytes !== undefined &&
187
- input.AttachmentSizeInBytes !== null && { AttachmentSizeInBytes: input.AttachmentSizeInBytes })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType })));
181
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AttachmentName != null && { AttachmentName: input.AttachmentName })), (input.AttachmentSizeInBytes != null && { AttachmentSizeInBytes: input.AttachmentSizeInBytes })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ContentType != null && { ContentType: input.ContentType })));
188
182
  return [2, new __HttpRequest({
189
183
  protocol: protocol,
190
184
  hostname: hostname,
@@ -216,7 +210,7 @@ export var deserializeAws_restJson1CompleteAttachmentUploadCommand = function (o
216
210
  });
217
211
  }); };
218
212
  var deserializeAws_restJson1CompleteAttachmentUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
219
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
213
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
220
214
  var _c;
221
215
  return __generator(this, function (_d) {
222
216
  switch (_d.label) {
@@ -226,7 +220,6 @@ var deserializeAws_restJson1CompleteAttachmentUploadCommandError = function (out
226
220
  return [4, parseBody(output.body, context)];
227
221
  case 1:
228
222
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
229
- errorCode = "UnknownError";
230
223
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
231
224
  _b = errorCode;
232
225
  switch (_b) {
@@ -258,10 +251,12 @@ var deserializeAws_restJson1CompleteAttachmentUploadCommandError = function (out
258
251
  case 13: throw _d.sent();
259
252
  case 14:
260
253
  parsedBody = parsedOutput.body;
254
+ $metadata = deserializeMetadata(output);
255
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
261
256
  response = new __BaseException({
262
- name: parsedBody.code || parsedBody.Code || errorCode,
257
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
263
258
  $fault: "client",
264
- $metadata: deserializeMetadata(output),
259
+ $metadata: $metadata,
265
260
  });
266
261
  throw __decorateServiceException(response, parsedBody);
267
262
  }
@@ -296,7 +291,7 @@ export var deserializeAws_restJson1CreateParticipantConnectionCommand = function
296
291
  });
297
292
  }); };
298
293
  var deserializeAws_restJson1CreateParticipantConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
299
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
294
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
300
295
  var _c;
301
296
  return __generator(this, function (_d) {
302
297
  switch (_d.label) {
@@ -306,7 +301,6 @@ var deserializeAws_restJson1CreateParticipantConnectionCommandError = function (
306
301
  return [4, parseBody(output.body, context)];
307
302
  case 1:
308
303
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
309
- errorCode = "UnknownError";
310
304
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
311
305
  _b = errorCode;
312
306
  switch (_b) {
@@ -330,10 +324,12 @@ var deserializeAws_restJson1CreateParticipantConnectionCommandError = function (
330
324
  case 9: throw _d.sent();
331
325
  case 10:
332
326
  parsedBody = parsedOutput.body;
327
+ $metadata = deserializeMetadata(output);
328
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
333
329
  response = new __BaseException({
334
- name: parsedBody.code || parsedBody.Code || errorCode,
330
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
335
331
  $fault: "client",
336
- $metadata: deserializeMetadata(output),
332
+ $metadata: $metadata,
337
333
  });
338
334
  throw __decorateServiceException(response, parsedBody);
339
335
  }
@@ -358,7 +354,7 @@ export var deserializeAws_restJson1DisconnectParticipantCommand = function (outp
358
354
  });
359
355
  }); };
360
356
  var deserializeAws_restJson1DisconnectParticipantCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
361
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
357
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
362
358
  var _c;
363
359
  return __generator(this, function (_d) {
364
360
  switch (_d.label) {
@@ -368,7 +364,6 @@ var deserializeAws_restJson1DisconnectParticipantCommandError = function (output
368
364
  return [4, parseBody(output.body, context)];
369
365
  case 1:
370
366
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
371
- errorCode = "UnknownError";
372
367
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
373
368
  _b = errorCode;
374
369
  switch (_b) {
@@ -392,10 +387,12 @@ var deserializeAws_restJson1DisconnectParticipantCommandError = function (output
392
387
  case 9: throw _d.sent();
393
388
  case 10:
394
389
  parsedBody = parsedOutput.body;
390
+ $metadata = deserializeMetadata(output);
391
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
395
392
  response = new __BaseException({
396
- name: parsedBody.code || parsedBody.Code || errorCode,
393
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
397
394
  $fault: "client",
398
- $metadata: deserializeMetadata(output),
395
+ $metadata: $metadata,
399
396
  });
400
397
  throw __decorateServiceException(response, parsedBody);
401
398
  }
@@ -430,7 +427,7 @@ export var deserializeAws_restJson1GetAttachmentCommand = function (output, cont
430
427
  });
431
428
  }); };
432
429
  var deserializeAws_restJson1GetAttachmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
433
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
430
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
434
431
  var _c;
435
432
  return __generator(this, function (_d) {
436
433
  switch (_d.label) {
@@ -440,7 +437,6 @@ var deserializeAws_restJson1GetAttachmentCommandError = function (output, contex
440
437
  return [4, parseBody(output.body, context)];
441
438
  case 1:
442
439
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
443
- errorCode = "UnknownError";
444
440
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
445
441
  _b = errorCode;
446
442
  switch (_b) {
@@ -464,10 +460,12 @@ var deserializeAws_restJson1GetAttachmentCommandError = function (output, contex
464
460
  case 9: throw _d.sent();
465
461
  case 10:
466
462
  parsedBody = parsedOutput.body;
463
+ $metadata = deserializeMetadata(output);
464
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
467
465
  response = new __BaseException({
468
- name: parsedBody.code || parsedBody.Code || errorCode,
466
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
469
467
  $fault: "client",
470
- $metadata: deserializeMetadata(output),
468
+ $metadata: $metadata,
471
469
  });
472
470
  throw __decorateServiceException(response, parsedBody);
473
471
  }
@@ -506,7 +504,7 @@ export var deserializeAws_restJson1GetTranscriptCommand = function (output, cont
506
504
  });
507
505
  }); };
508
506
  var deserializeAws_restJson1GetTranscriptCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
509
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
507
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
510
508
  var _c;
511
509
  return __generator(this, function (_d) {
512
510
  switch (_d.label) {
@@ -516,7 +514,6 @@ var deserializeAws_restJson1GetTranscriptCommandError = function (output, contex
516
514
  return [4, parseBody(output.body, context)];
517
515
  case 1:
518
516
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
519
- errorCode = "UnknownError";
520
517
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
521
518
  _b = errorCode;
522
519
  switch (_b) {
@@ -540,10 +537,12 @@ var deserializeAws_restJson1GetTranscriptCommandError = function (output, contex
540
537
  case 9: throw _d.sent();
541
538
  case 10:
542
539
  parsedBody = parsedOutput.body;
540
+ $metadata = deserializeMetadata(output);
541
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
543
542
  response = new __BaseException({
544
- name: parsedBody.code || parsedBody.Code || errorCode,
543
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
545
544
  $fault: "client",
546
- $metadata: deserializeMetadata(output),
545
+ $metadata: $metadata,
547
546
  });
548
547
  throw __decorateServiceException(response, parsedBody);
549
548
  }
@@ -578,7 +577,7 @@ export var deserializeAws_restJson1SendEventCommand = function (output, context)
578
577
  });
579
578
  }); };
580
579
  var deserializeAws_restJson1SendEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
581
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
580
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
582
581
  var _c;
583
582
  return __generator(this, function (_d) {
584
583
  switch (_d.label) {
@@ -588,7 +587,6 @@ var deserializeAws_restJson1SendEventCommandError = function (output, context) {
588
587
  return [4, parseBody(output.body, context)];
589
588
  case 1:
590
589
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
591
- errorCode = "UnknownError";
592
590
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
593
591
  _b = errorCode;
594
592
  switch (_b) {
@@ -612,10 +610,12 @@ var deserializeAws_restJson1SendEventCommandError = function (output, context) {
612
610
  case 9: throw _d.sent();
613
611
  case 10:
614
612
  parsedBody = parsedOutput.body;
613
+ $metadata = deserializeMetadata(output);
614
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
615
615
  response = new __BaseException({
616
- name: parsedBody.code || parsedBody.Code || errorCode,
616
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
617
617
  $fault: "client",
618
- $metadata: deserializeMetadata(output),
618
+ $metadata: $metadata,
619
619
  });
620
620
  throw __decorateServiceException(response, parsedBody);
621
621
  }
@@ -650,7 +650,7 @@ export var deserializeAws_restJson1SendMessageCommand = function (output, contex
650
650
  });
651
651
  }); };
652
652
  var deserializeAws_restJson1SendMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
653
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
653
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
654
654
  var _c;
655
655
  return __generator(this, function (_d) {
656
656
  switch (_d.label) {
@@ -660,7 +660,6 @@ var deserializeAws_restJson1SendMessageCommandError = function (output, context)
660
660
  return [4, parseBody(output.body, context)];
661
661
  case 1:
662
662
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
663
- errorCode = "UnknownError";
664
663
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
665
664
  _b = errorCode;
666
665
  switch (_b) {
@@ -684,10 +683,12 @@ var deserializeAws_restJson1SendMessageCommandError = function (output, context)
684
683
  case 9: throw _d.sent();
685
684
  case 10:
686
685
  parsedBody = parsedOutput.body;
686
+ $metadata = deserializeMetadata(output);
687
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
687
688
  response = new __BaseException({
688
- name: parsedBody.code || parsedBody.Code || errorCode,
689
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
689
690
  $fault: "client",
690
- $metadata: deserializeMetadata(output),
691
+ $metadata: $metadata,
691
692
  });
692
693
  throw __decorateServiceException(response, parsedBody);
693
694
  }
@@ -722,7 +723,7 @@ export var deserializeAws_restJson1StartAttachmentUploadCommand = function (outp
722
723
  });
723
724
  }); };
724
725
  var deserializeAws_restJson1StartAttachmentUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
725
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
726
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
726
727
  var _c;
727
728
  return __generator(this, function (_d) {
728
729
  switch (_d.label) {
@@ -732,7 +733,6 @@ var deserializeAws_restJson1StartAttachmentUploadCommandError = function (output
732
733
  return [4, parseBody(output.body, context)];
733
734
  case 1:
734
735
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
735
- errorCode = "UnknownError";
736
736
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
737
737
  _b = errorCode;
738
738
  switch (_b) {
@@ -760,10 +760,12 @@ var deserializeAws_restJson1StartAttachmentUploadCommandError = function (output
760
760
  case 11: throw _d.sent();
761
761
  case 12:
762
762
  parsedBody = parsedOutput.body;
763
+ $metadata = deserializeMetadata(output);
764
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
763
765
  response = new __BaseException({
764
- name: parsedBody.code || parsedBody.Code || errorCode,
766
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
765
767
  $fault: "client",
766
- $metadata: deserializeMetadata(output),
768
+ $metadata: $metadata,
767
769
  });
768
770
  throw __decorateServiceException(response, parsedBody);
769
771
  }
@@ -862,7 +864,7 @@ var serializeAws_restJson1ConnectionTypeList = function (input, context) {
862
864
  });
863
865
  };
864
866
  var serializeAws_restJson1StartPosition = function (input, context) {
865
- return __assign(__assign(__assign({}, (input.AbsoluteTime !== undefined && input.AbsoluteTime !== null && { AbsoluteTime: input.AbsoluteTime })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.MostRecent !== undefined && input.MostRecent !== null && { MostRecent: input.MostRecent }));
867
+ return __assign(__assign(__assign({}, (input.AbsoluteTime != null && { AbsoluteTime: input.AbsoluteTime })), (input.Id != null && { Id: input.Id })), (input.MostRecent != null && { MostRecent: input.MostRecent }));
866
868
  };
867
869
  var deserializeAws_restJson1AttachmentItem = function (output, context) {
868
870
  return {
@@ -892,9 +894,7 @@ var deserializeAws_restJson1ConnectionCredentials = function (output, context) {
892
894
  var deserializeAws_restJson1Item = function (output, context) {
893
895
  return {
894
896
  AbsoluteTime: __expectString(output.AbsoluteTime),
895
- Attachments: output.Attachments !== undefined && output.Attachments !== null
896
- ? deserializeAws_restJson1Attachments(output.Attachments, context)
897
- : undefined,
897
+ Attachments: output.Attachments != null ? deserializeAws_restJson1Attachments(output.Attachments, context) : undefined,
898
898
  Content: __expectString(output.Content),
899
899
  ContentType: __expectString(output.ContentType),
900
900
  DisplayName: __expectString(output.DisplayName),
@@ -917,7 +917,7 @@ var deserializeAws_restJson1Transcript = function (output, context) {
917
917
  };
918
918
  var deserializeAws_restJson1UploadMetadata = function (output, context) {
919
919
  return {
920
- HeadersToInclude: output.HeadersToInclude !== undefined && output.HeadersToInclude !== null
920
+ HeadersToInclude: output.HeadersToInclude != null
921
921
  ? deserializeAws_restJson1UploadMetadataSignedHeaders(output.HeadersToInclude, context)
922
922
  : undefined,
923
923
  Url: __expectString(output.Url),
@@ -996,5 +996,4 @@ var loadRestJsonErrorCode = function (output, data) {
996
996
  if (data["__type"] !== undefined) {
997
997
  return sanitizeErrorCode(data["__type"]);
998
998
  }
999
- return "";
1000
999
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectparticipant",
3
3
  "description": "AWS SDK for JavaScript Connectparticipant Client for Node.js, Browser and React Native",
4
- "version": "3.118.1",
4
+ "version": "3.128.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.118.1",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.1",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.128.0",
22
+ "@aws-sdk/config-resolver": "3.128.0",
23
+ "@aws-sdk/credential-provider-node": "3.128.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.128.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.128.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",