@aws-sdk/client-ivschat 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +101 -108
- package/dist-es/protocols/Aws_restJson1.js +83 -90
- package/package.json +26 -26
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ivschat
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-ivschat
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-ivschat
|
|
@@ -13,19 +13,15 @@ const serializeAws_restJson1CreateChatTokenCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChatToken";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.attributes
|
|
17
|
-
input.attributes !== null && {
|
|
16
|
+
...(input.attributes != null && {
|
|
18
17
|
attributes: serializeAws_restJson1ChatTokenAttributes(input.attributes, context),
|
|
19
18
|
}),
|
|
20
|
-
...(input.capabilities
|
|
21
|
-
input.capabilities !== null && {
|
|
19
|
+
...(input.capabilities != null && {
|
|
22
20
|
capabilities: serializeAws_restJson1ChatTokenCapabilities(input.capabilities, context),
|
|
23
21
|
}),
|
|
24
|
-
...(input.roomIdentifier
|
|
25
|
-
|
|
26
|
-
...(input.
|
|
27
|
-
input.sessionDurationInMinutes !== null && { sessionDurationInMinutes: input.sessionDurationInMinutes }),
|
|
28
|
-
...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
|
|
22
|
+
...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
|
|
23
|
+
...(input.sessionDurationInMinutes != null && { sessionDurationInMinutes: input.sessionDurationInMinutes }),
|
|
24
|
+
...(input.userId != null && { userId: input.userId }),
|
|
29
25
|
});
|
|
30
26
|
return new protocol_http_1.HttpRequest({
|
|
31
27
|
protocol,
|
|
@@ -46,16 +42,15 @@ const serializeAws_restJson1CreateRoomCommand = async (input, context) => {
|
|
|
46
42
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRoom";
|
|
47
43
|
let body;
|
|
48
44
|
body = JSON.stringify({
|
|
49
|
-
...(input.maximumMessageLength
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
...(input.messageReviewHandler
|
|
54
|
-
input.messageReviewHandler !== null && {
|
|
45
|
+
...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
|
|
46
|
+
...(input.maximumMessageRatePerSecond != null && {
|
|
47
|
+
maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
|
|
48
|
+
}),
|
|
49
|
+
...(input.messageReviewHandler != null && {
|
|
55
50
|
messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
|
|
56
51
|
}),
|
|
57
|
-
...(input.name
|
|
58
|
-
...(input.tags
|
|
52
|
+
...(input.name != null && { name: input.name }),
|
|
53
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
59
54
|
});
|
|
60
55
|
return new protocol_http_1.HttpRequest({
|
|
61
56
|
protocol,
|
|
@@ -76,10 +71,9 @@ const serializeAws_restJson1DeleteMessageCommand = async (input, context) => {
|
|
|
76
71
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteMessage";
|
|
77
72
|
let body;
|
|
78
73
|
body = JSON.stringify({
|
|
79
|
-
...(input.id
|
|
80
|
-
...(input.reason
|
|
81
|
-
...(input.roomIdentifier
|
|
82
|
-
input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier }),
|
|
74
|
+
...(input.id != null && { id: input.id }),
|
|
75
|
+
...(input.reason != null && { reason: input.reason }),
|
|
76
|
+
...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
|
|
83
77
|
});
|
|
84
78
|
return new protocol_http_1.HttpRequest({
|
|
85
79
|
protocol,
|
|
@@ -100,7 +94,7 @@ const serializeAws_restJson1DeleteRoomCommand = async (input, context) => {
|
|
|
100
94
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRoom";
|
|
101
95
|
let body;
|
|
102
96
|
body = JSON.stringify({
|
|
103
|
-
...(input.identifier
|
|
97
|
+
...(input.identifier != null && { identifier: input.identifier }),
|
|
104
98
|
});
|
|
105
99
|
return new protocol_http_1.HttpRequest({
|
|
106
100
|
protocol,
|
|
@@ -121,10 +115,9 @@ const serializeAws_restJson1DisconnectUserCommand = async (input, context) => {
|
|
|
121
115
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectUser";
|
|
122
116
|
let body;
|
|
123
117
|
body = JSON.stringify({
|
|
124
|
-
...(input.reason
|
|
125
|
-
...(input.roomIdentifier
|
|
126
|
-
|
|
127
|
-
...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
|
|
118
|
+
...(input.reason != null && { reason: input.reason }),
|
|
119
|
+
...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
|
|
120
|
+
...(input.userId != null && { userId: input.userId }),
|
|
128
121
|
});
|
|
129
122
|
return new protocol_http_1.HttpRequest({
|
|
130
123
|
protocol,
|
|
@@ -145,7 +138,7 @@ const serializeAws_restJson1GetRoomCommand = async (input, context) => {
|
|
|
145
138
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetRoom";
|
|
146
139
|
let body;
|
|
147
140
|
body = JSON.stringify({
|
|
148
|
-
...(input.identifier
|
|
141
|
+
...(input.identifier != null && { identifier: input.identifier }),
|
|
149
142
|
});
|
|
150
143
|
return new protocol_http_1.HttpRequest({
|
|
151
144
|
protocol,
|
|
@@ -166,11 +159,10 @@ const serializeAws_restJson1ListRoomsCommand = async (input, context) => {
|
|
|
166
159
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListRooms";
|
|
167
160
|
let body;
|
|
168
161
|
body = JSON.stringify({
|
|
169
|
-
...(input.maxResults
|
|
170
|
-
...(input.messageReviewHandlerUri
|
|
171
|
-
|
|
172
|
-
...(input.
|
|
173
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
162
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
163
|
+
...(input.messageReviewHandlerUri != null && { messageReviewHandlerUri: input.messageReviewHandlerUri }),
|
|
164
|
+
...(input.name != null && { name: input.name }),
|
|
165
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
174
166
|
});
|
|
175
167
|
return new protocol_http_1.HttpRequest({
|
|
176
168
|
protocol,
|
|
@@ -217,11 +209,9 @@ const serializeAws_restJson1SendEventCommand = async (input, context) => {
|
|
|
217
209
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SendEvent";
|
|
218
210
|
let body;
|
|
219
211
|
body = JSON.stringify({
|
|
220
|
-
...(input.attributes
|
|
221
|
-
|
|
222
|
-
...(input.
|
|
223
|
-
...(input.roomIdentifier !== undefined &&
|
|
224
|
-
input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier }),
|
|
212
|
+
...(input.attributes != null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) }),
|
|
213
|
+
...(input.eventName != null && { eventName: input.eventName }),
|
|
214
|
+
...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
|
|
225
215
|
});
|
|
226
216
|
return new protocol_http_1.HttpRequest({
|
|
227
217
|
protocol,
|
|
@@ -252,7 +242,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
252
242
|
}
|
|
253
243
|
let body;
|
|
254
244
|
body = JSON.stringify({
|
|
255
|
-
...(input.tags
|
|
245
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
256
246
|
});
|
|
257
247
|
return new protocol_http_1.HttpRequest({
|
|
258
248
|
protocol,
|
|
@@ -303,16 +293,15 @@ const serializeAws_restJson1UpdateRoomCommand = async (input, context) => {
|
|
|
303
293
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateRoom";
|
|
304
294
|
let body;
|
|
305
295
|
body = JSON.stringify({
|
|
306
|
-
...(input.identifier
|
|
307
|
-
...(input.maximumMessageLength
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
...(input.messageReviewHandler
|
|
312
|
-
input.messageReviewHandler !== null && {
|
|
296
|
+
...(input.identifier != null && { identifier: input.identifier }),
|
|
297
|
+
...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
|
|
298
|
+
...(input.maximumMessageRatePerSecond != null && {
|
|
299
|
+
maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
|
|
300
|
+
}),
|
|
301
|
+
...(input.messageReviewHandler != null && {
|
|
313
302
|
messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
|
|
314
303
|
}),
|
|
315
|
-
...(input.name
|
|
304
|
+
...(input.name != null && { name: input.name }),
|
|
316
305
|
});
|
|
317
306
|
return new protocol_http_1.HttpRequest({
|
|
318
307
|
protocol,
|
|
@@ -354,8 +343,7 @@ const deserializeAws_restJson1CreateChatTokenCommandError = async (output, conte
|
|
|
354
343
|
body: await parseBody(output.body, context),
|
|
355
344
|
};
|
|
356
345
|
let response;
|
|
357
|
-
|
|
358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
347
|
switch (errorCode) {
|
|
360
348
|
case "AccessDeniedException":
|
|
361
349
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -371,10 +359,12 @@ const deserializeAws_restJson1CreateChatTokenCommandError = async (output, conte
|
|
|
371
359
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
372
360
|
default:
|
|
373
361
|
const parsedBody = parsedOutput.body;
|
|
362
|
+
const $metadata = deserializeMetadata(output);
|
|
363
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
374
364
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
376
366
|
$fault: "client",
|
|
377
|
-
$metadata
|
|
367
|
+
$metadata,
|
|
378
368
|
});
|
|
379
369
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
380
370
|
}
|
|
@@ -432,8 +422,7 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
|
|
|
432
422
|
body: await parseBody(output.body, context),
|
|
433
423
|
};
|
|
434
424
|
let response;
|
|
435
|
-
|
|
436
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
437
426
|
switch (errorCode) {
|
|
438
427
|
case "AccessDeniedException":
|
|
439
428
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -455,10 +444,12 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
|
|
|
455
444
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
456
445
|
default:
|
|
457
446
|
const parsedBody = parsedOutput.body;
|
|
447
|
+
const $metadata = deserializeMetadata(output);
|
|
448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
458
449
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
460
451
|
$fault: "client",
|
|
461
|
-
$metadata
|
|
452
|
+
$metadata,
|
|
462
453
|
});
|
|
463
454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
464
455
|
}
|
|
@@ -484,8 +475,7 @@ const deserializeAws_restJson1DeleteMessageCommandError = async (output, context
|
|
|
484
475
|
body: await parseBody(output.body, context),
|
|
485
476
|
};
|
|
486
477
|
let response;
|
|
487
|
-
|
|
488
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
478
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
479
|
switch (errorCode) {
|
|
490
480
|
case "AccessDeniedException":
|
|
491
481
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -501,10 +491,12 @@ const deserializeAws_restJson1DeleteMessageCommandError = async (output, context
|
|
|
501
491
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
502
492
|
default:
|
|
503
493
|
const parsedBody = parsedOutput.body;
|
|
494
|
+
const $metadata = deserializeMetadata(output);
|
|
495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
504
496
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
505
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
506
498
|
$fault: "client",
|
|
507
|
-
$metadata
|
|
499
|
+
$metadata,
|
|
508
500
|
});
|
|
509
501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
510
502
|
}
|
|
@@ -526,8 +518,7 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
|
|
|
526
518
|
body: await parseBody(output.body, context),
|
|
527
519
|
};
|
|
528
520
|
let response;
|
|
529
|
-
|
|
530
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
522
|
switch (errorCode) {
|
|
532
523
|
case "AccessDeniedException":
|
|
533
524
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -543,10 +534,12 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
|
|
|
543
534
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
544
535
|
default:
|
|
545
536
|
const parsedBody = parsedOutput.body;
|
|
537
|
+
const $metadata = deserializeMetadata(output);
|
|
538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
546
539
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
548
541
|
$fault: "client",
|
|
549
|
-
$metadata
|
|
542
|
+
$metadata,
|
|
550
543
|
});
|
|
551
544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
552
545
|
}
|
|
@@ -568,8 +561,7 @@ const deserializeAws_restJson1DisconnectUserCommandError = async (output, contex
|
|
|
568
561
|
body: await parseBody(output.body, context),
|
|
569
562
|
};
|
|
570
563
|
let response;
|
|
571
|
-
|
|
572
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
565
|
switch (errorCode) {
|
|
574
566
|
case "AccessDeniedException":
|
|
575
567
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -585,10 +577,12 @@ const deserializeAws_restJson1DisconnectUserCommandError = async (output, contex
|
|
|
585
577
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
586
578
|
default:
|
|
587
579
|
const parsedBody = parsedOutput.body;
|
|
580
|
+
const $metadata = deserializeMetadata(output);
|
|
581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
588
582
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
589
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
590
584
|
$fault: "client",
|
|
591
|
-
$metadata
|
|
585
|
+
$metadata,
|
|
592
586
|
});
|
|
593
587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
588
|
}
|
|
@@ -646,8 +640,7 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
|
|
|
646
640
|
body: await parseBody(output.body, context),
|
|
647
641
|
};
|
|
648
642
|
let response;
|
|
649
|
-
|
|
650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
644
|
switch (errorCode) {
|
|
652
645
|
case "AccessDeniedException":
|
|
653
646
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -660,10 +653,12 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
|
|
|
660
653
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
661
654
|
default:
|
|
662
655
|
const parsedBody = parsedOutput.body;
|
|
656
|
+
const $metadata = deserializeMetadata(output);
|
|
657
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
663
658
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
659
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
665
660
|
$fault: "client",
|
|
666
|
-
$metadata
|
|
661
|
+
$metadata,
|
|
667
662
|
});
|
|
668
663
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
669
664
|
}
|
|
@@ -693,8 +688,7 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
|
|
|
693
688
|
body: await parseBody(output.body, context),
|
|
694
689
|
};
|
|
695
690
|
let response;
|
|
696
|
-
|
|
697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
692
|
switch (errorCode) {
|
|
699
693
|
case "AccessDeniedException":
|
|
700
694
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -707,10 +701,12 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
|
|
|
707
701
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
708
702
|
default:
|
|
709
703
|
const parsedBody = parsedOutput.body;
|
|
704
|
+
const $metadata = deserializeMetadata(output);
|
|
705
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
710
706
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
711
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
707
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
712
708
|
$fault: "client",
|
|
713
|
-
$metadata
|
|
709
|
+
$metadata,
|
|
714
710
|
});
|
|
715
711
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
716
712
|
}
|
|
@@ -736,8 +732,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
736
732
|
body: await parseBody(output.body, context),
|
|
737
733
|
};
|
|
738
734
|
let response;
|
|
739
|
-
|
|
740
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
736
|
switch (errorCode) {
|
|
742
737
|
case "InternalServerException":
|
|
743
738
|
case "com.amazonaws.ivschat#InternalServerException":
|
|
@@ -750,10 +745,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
750
745
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
751
746
|
default:
|
|
752
747
|
const parsedBody = parsedOutput.body;
|
|
748
|
+
const $metadata = deserializeMetadata(output);
|
|
749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
753
750
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
755
752
|
$fault: "client",
|
|
756
|
-
$metadata
|
|
753
|
+
$metadata,
|
|
757
754
|
});
|
|
758
755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
759
756
|
}
|
|
@@ -779,8 +776,7 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
|
|
|
779
776
|
body: await parseBody(output.body, context),
|
|
780
777
|
};
|
|
781
778
|
let response;
|
|
782
|
-
|
|
783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
780
|
switch (errorCode) {
|
|
785
781
|
case "AccessDeniedException":
|
|
786
782
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -796,10 +792,12 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
|
|
|
796
792
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
797
793
|
default:
|
|
798
794
|
const parsedBody = parsedOutput.body;
|
|
795
|
+
const $metadata = deserializeMetadata(output);
|
|
796
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
799
797
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
798
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
801
799
|
$fault: "client",
|
|
802
|
-
$metadata
|
|
800
|
+
$metadata,
|
|
803
801
|
});
|
|
804
802
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
805
803
|
}
|
|
@@ -821,8 +819,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
821
819
|
body: await parseBody(output.body, context),
|
|
822
820
|
};
|
|
823
821
|
let response;
|
|
824
|
-
|
|
825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
823
|
switch (errorCode) {
|
|
827
824
|
case "InternalServerException":
|
|
828
825
|
case "com.amazonaws.ivschat#InternalServerException":
|
|
@@ -835,10 +832,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
835
832
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
836
833
|
default:
|
|
837
834
|
const parsedBody = parsedOutput.body;
|
|
835
|
+
const $metadata = deserializeMetadata(output);
|
|
836
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
838
837
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
839
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
838
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
840
839
|
$fault: "client",
|
|
841
|
-
$metadata
|
|
840
|
+
$metadata,
|
|
842
841
|
});
|
|
843
842
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
844
843
|
}
|
|
@@ -860,8 +859,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
860
859
|
body: await parseBody(output.body, context),
|
|
861
860
|
};
|
|
862
861
|
let response;
|
|
863
|
-
|
|
864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
863
|
switch (errorCode) {
|
|
866
864
|
case "InternalServerException":
|
|
867
865
|
case "com.amazonaws.ivschat#InternalServerException":
|
|
@@ -874,10 +872,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
874
872
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
875
873
|
default:
|
|
876
874
|
const parsedBody = parsedOutput.body;
|
|
875
|
+
const $metadata = deserializeMetadata(output);
|
|
876
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
877
877
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
878
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
879
879
|
$fault: "client",
|
|
880
|
-
$metadata
|
|
880
|
+
$metadata,
|
|
881
881
|
});
|
|
882
882
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
883
883
|
}
|
|
@@ -935,8 +935,7 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
|
|
|
935
935
|
body: await parseBody(output.body, context),
|
|
936
936
|
};
|
|
937
937
|
let response;
|
|
938
|
-
|
|
939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
939
|
switch (errorCode) {
|
|
941
940
|
case "AccessDeniedException":
|
|
942
941
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
@@ -952,10 +951,12 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
|
|
|
952
951
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
953
952
|
default:
|
|
954
953
|
const parsedBody = parsedOutput.body;
|
|
954
|
+
const $metadata = deserializeMetadata(output);
|
|
955
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
955
956
|
response = new IvschatServiceException_1.IvschatServiceException({
|
|
956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
957
958
|
$fault: "client",
|
|
958
|
-
$metadata
|
|
959
|
+
$metadata,
|
|
959
960
|
});
|
|
960
961
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
961
962
|
}
|
|
@@ -1126,9 +1127,8 @@ const serializeAws_restJson1EventAttributes = (input, context) => {
|
|
|
1126
1127
|
};
|
|
1127
1128
|
const serializeAws_restJson1MessageReviewHandler = (input, context) => {
|
|
1128
1129
|
return {
|
|
1129
|
-
...(input.fallbackResult
|
|
1130
|
-
|
|
1131
|
-
...(input.uri !== undefined && input.uri !== null && { uri: input.uri }),
|
|
1130
|
+
...(input.fallbackResult != null && { fallbackResult: input.fallbackResult }),
|
|
1131
|
+
...(input.uri != null && { uri: input.uri }),
|
|
1132
1132
|
};
|
|
1133
1133
|
};
|
|
1134
1134
|
const serializeAws_restJson1Tags = (input, context) => {
|
|
@@ -1162,20 +1162,14 @@ const deserializeAws_restJson1RoomList = (output, context) => {
|
|
|
1162
1162
|
const deserializeAws_restJson1RoomSummary = (output, context) => {
|
|
1163
1163
|
return {
|
|
1164
1164
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1165
|
-
createTime: output.createTime
|
|
1166
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createTime))
|
|
1167
|
-
: undefined,
|
|
1165
|
+
createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createTime)) : undefined,
|
|
1168
1166
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1169
|
-
messageReviewHandler: output.messageReviewHandler
|
|
1167
|
+
messageReviewHandler: output.messageReviewHandler != null
|
|
1170
1168
|
? deserializeAws_restJson1MessageReviewHandler(output.messageReviewHandler, context)
|
|
1171
1169
|
: undefined,
|
|
1172
1170
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1173
|
-
tags: output.tags
|
|
1174
|
-
|
|
1175
|
-
: undefined,
|
|
1176
|
-
updateTime: output.updateTime !== undefined && output.updateTime !== null
|
|
1177
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updateTime))
|
|
1178
|
-
: undefined,
|
|
1171
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1172
|
+
updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updateTime)) : undefined,
|
|
1179
1173
|
};
|
|
1180
1174
|
};
|
|
1181
1175
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
@@ -1255,5 +1249,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1255
1249
|
if (data["__type"] !== undefined) {
|
|
1256
1250
|
return sanitizeErrorCode(data["__type"]);
|
|
1257
1251
|
}
|
|
1258
|
-
return "";
|
|
1259
1252
|
};
|
|
@@ -14,15 +14,11 @@ export var serializeAws_restJson1CreateChatTokenCommand = function (input, conte
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateChatToken";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.attributes
|
|
18
|
-
input.attributes !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.attributes != null && {
|
|
19
18
|
attributes: serializeAws_restJson1ChatTokenAttributes(input.attributes, context),
|
|
20
|
-
})), (input.capabilities
|
|
21
|
-
input.capabilities !== null && {
|
|
19
|
+
})), (input.capabilities != null && {
|
|
22
20
|
capabilities: serializeAws_restJson1ChatTokenCapabilities(input.capabilities, context),
|
|
23
|
-
})), (input.roomIdentifier
|
|
24
|
-
input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })), (input.sessionDurationInMinutes !== undefined &&
|
|
25
|
-
input.sessionDurationInMinutes !== null && { sessionDurationInMinutes: input.sessionDurationInMinutes })), (input.userId !== undefined && input.userId !== null && { userId: input.userId })));
|
|
21
|
+
})), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })), (input.sessionDurationInMinutes != null && { sessionDurationInMinutes: input.sessionDurationInMinutes })), (input.userId != null && { userId: input.userId })));
|
|
26
22
|
return [2, new __HttpRequest({
|
|
27
23
|
protocol: protocol,
|
|
28
24
|
hostname: hostname,
|
|
@@ -46,12 +42,11 @@ export var serializeAws_restJson1CreateRoomCommand = function (input, context) {
|
|
|
46
42
|
"content-type": "application/json",
|
|
47
43
|
};
|
|
48
44
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateRoom";
|
|
49
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.maximumMessageLength
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
input.messageReviewHandler !== null && {
|
|
45
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength })), (input.maximumMessageRatePerSecond != null && {
|
|
46
|
+
maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
|
|
47
|
+
})), (input.messageReviewHandler != null && {
|
|
53
48
|
messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
|
|
54
|
-
})), (input.name
|
|
49
|
+
})), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
55
50
|
return [2, new __HttpRequest({
|
|
56
51
|
protocol: protocol,
|
|
57
52
|
hostname: hostname,
|
|
@@ -75,8 +70,7 @@ export var serializeAws_restJson1DeleteMessageCommand = function (input, context
|
|
|
75
70
|
"content-type": "application/json",
|
|
76
71
|
};
|
|
77
72
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteMessage";
|
|
78
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.id
|
|
79
|
-
input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })));
|
|
73
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.reason != null && { reason: input.reason })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })));
|
|
80
74
|
return [2, new __HttpRequest({
|
|
81
75
|
protocol: protocol,
|
|
82
76
|
hostname: hostname,
|
|
@@ -100,7 +94,7 @@ export var serializeAws_restJson1DeleteRoomCommand = function (input, context) {
|
|
|
100
94
|
"content-type": "application/json",
|
|
101
95
|
};
|
|
102
96
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteRoom";
|
|
103
|
-
body = JSON.stringify(__assign({}, (input.identifier
|
|
97
|
+
body = JSON.stringify(__assign({}, (input.identifier != null && { identifier: input.identifier })));
|
|
104
98
|
return [2, new __HttpRequest({
|
|
105
99
|
protocol: protocol,
|
|
106
100
|
hostname: hostname,
|
|
@@ -124,8 +118,7 @@ export var serializeAws_restJson1DisconnectUserCommand = function (input, contex
|
|
|
124
118
|
"content-type": "application/json",
|
|
125
119
|
};
|
|
126
120
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DisconnectUser";
|
|
127
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.reason
|
|
128
|
-
input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })), (input.userId !== undefined && input.userId !== null && { userId: input.userId })));
|
|
121
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.reason != null && { reason: input.reason })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })), (input.userId != null && { userId: input.userId })));
|
|
129
122
|
return [2, new __HttpRequest({
|
|
130
123
|
protocol: protocol,
|
|
131
124
|
hostname: hostname,
|
|
@@ -149,7 +142,7 @@ export var serializeAws_restJson1GetRoomCommand = function (input, context) { re
|
|
|
149
142
|
"content-type": "application/json",
|
|
150
143
|
};
|
|
151
144
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetRoom";
|
|
152
|
-
body = JSON.stringify(__assign({}, (input.identifier
|
|
145
|
+
body = JSON.stringify(__assign({}, (input.identifier != null && { identifier: input.identifier })));
|
|
153
146
|
return [2, new __HttpRequest({
|
|
154
147
|
protocol: protocol,
|
|
155
148
|
hostname: hostname,
|
|
@@ -173,8 +166,7 @@ export var serializeAws_restJson1ListRoomsCommand = function (input, context) {
|
|
|
173
166
|
"content-type": "application/json",
|
|
174
167
|
};
|
|
175
168
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListRooms";
|
|
176
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults
|
|
177
|
-
input.messageReviewHandlerUri !== null && { messageReviewHandlerUri: input.messageReviewHandlerUri })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
169
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.messageReviewHandlerUri != null && { messageReviewHandlerUri: input.messageReviewHandlerUri })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
178
170
|
return [2, new __HttpRequest({
|
|
179
171
|
protocol: protocol,
|
|
180
172
|
hostname: hostname,
|
|
@@ -229,9 +221,7 @@ export var serializeAws_restJson1SendEventCommand = function (input, context) {
|
|
|
229
221
|
"content-type": "application/json",
|
|
230
222
|
};
|
|
231
223
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/SendEvent";
|
|
232
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.attributes
|
|
233
|
-
input.attributes !== null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) })), (input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName })), (input.roomIdentifier !== undefined &&
|
|
234
|
-
input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })));
|
|
224
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.attributes != null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) })), (input.eventName != null && { eventName: input.eventName })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })));
|
|
235
225
|
return [2, new __HttpRequest({
|
|
236
226
|
protocol: protocol,
|
|
237
227
|
hostname: hostname,
|
|
@@ -265,7 +255,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
265
255
|
else {
|
|
266
256
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
267
257
|
}
|
|
268
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
258
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
269
259
|
return [2, new __HttpRequest({
|
|
270
260
|
protocol: protocol,
|
|
271
261
|
hostname: hostname,
|
|
@@ -322,12 +312,11 @@ export var serializeAws_restJson1UpdateRoomCommand = function (input, context) {
|
|
|
322
312
|
"content-type": "application/json",
|
|
323
313
|
};
|
|
324
314
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateRoom";
|
|
325
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.identifier
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
input.messageReviewHandler !== null && {
|
|
315
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.identifier != null && { identifier: input.identifier })), (input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength })), (input.maximumMessageRatePerSecond != null && {
|
|
316
|
+
maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
|
|
317
|
+
})), (input.messageReviewHandler != null && {
|
|
329
318
|
messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
|
|
330
|
-
})), (input.name
|
|
319
|
+
})), (input.name != null && { name: input.name })));
|
|
331
320
|
return [2, new __HttpRequest({
|
|
332
321
|
protocol: protocol,
|
|
333
322
|
hostname: hostname,
|
|
@@ -373,7 +362,7 @@ export var deserializeAws_restJson1CreateChatTokenCommand = function (output, co
|
|
|
373
362
|
});
|
|
374
363
|
}); };
|
|
375
364
|
var deserializeAws_restJson1CreateChatTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
365
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
377
366
|
var _c;
|
|
378
367
|
return __generator(this, function (_d) {
|
|
379
368
|
switch (_d.label) {
|
|
@@ -383,7 +372,6 @@ var deserializeAws_restJson1CreateChatTokenCommandError = function (output, cont
|
|
|
383
372
|
return [4, parseBody(output.body, context)];
|
|
384
373
|
case 1:
|
|
385
374
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
386
|
-
errorCode = "UnknownError";
|
|
387
375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
376
|
_b = errorCode;
|
|
389
377
|
switch (_b) {
|
|
@@ -407,10 +395,12 @@ var deserializeAws_restJson1CreateChatTokenCommandError = function (output, cont
|
|
|
407
395
|
case 9: throw _d.sent();
|
|
408
396
|
case 10:
|
|
409
397
|
parsedBody = parsedOutput.body;
|
|
398
|
+
$metadata = deserializeMetadata(output);
|
|
399
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
410
400
|
response = new __BaseException({
|
|
411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
401
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
412
402
|
$fault: "client",
|
|
413
|
-
$metadata:
|
|
403
|
+
$metadata: $metadata,
|
|
414
404
|
});
|
|
415
405
|
throw __decorateServiceException(response, parsedBody);
|
|
416
406
|
}
|
|
@@ -473,7 +463,7 @@ export var deserializeAws_restJson1CreateRoomCommand = function (output, context
|
|
|
473
463
|
});
|
|
474
464
|
}); };
|
|
475
465
|
var deserializeAws_restJson1CreateRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
476
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
466
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
477
467
|
var _c;
|
|
478
468
|
return __generator(this, function (_d) {
|
|
479
469
|
switch (_d.label) {
|
|
@@ -483,7 +473,6 @@ var deserializeAws_restJson1CreateRoomCommandError = function (output, context)
|
|
|
483
473
|
return [4, parseBody(output.body, context)];
|
|
484
474
|
case 1:
|
|
485
475
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
486
|
-
errorCode = "UnknownError";
|
|
487
476
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
477
|
_b = errorCode;
|
|
489
478
|
switch (_b) {
|
|
@@ -515,10 +504,12 @@ var deserializeAws_restJson1CreateRoomCommandError = function (output, context)
|
|
|
515
504
|
case 13: throw _d.sent();
|
|
516
505
|
case 14:
|
|
517
506
|
parsedBody = parsedOutput.body;
|
|
507
|
+
$metadata = deserializeMetadata(output);
|
|
508
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
518
509
|
response = new __BaseException({
|
|
519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
520
511
|
$fault: "client",
|
|
521
|
-
$metadata:
|
|
512
|
+
$metadata: $metadata,
|
|
522
513
|
});
|
|
523
514
|
throw __decorateServiceException(response, parsedBody);
|
|
524
515
|
}
|
|
@@ -549,7 +540,7 @@ export var deserializeAws_restJson1DeleteMessageCommand = function (output, cont
|
|
|
549
540
|
});
|
|
550
541
|
}); };
|
|
551
542
|
var deserializeAws_restJson1DeleteMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
543
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
553
544
|
var _c;
|
|
554
545
|
return __generator(this, function (_d) {
|
|
555
546
|
switch (_d.label) {
|
|
@@ -559,7 +550,6 @@ var deserializeAws_restJson1DeleteMessageCommandError = function (output, contex
|
|
|
559
550
|
return [4, parseBody(output.body, context)];
|
|
560
551
|
case 1:
|
|
561
552
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
562
|
-
errorCode = "UnknownError";
|
|
563
553
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
554
|
_b = errorCode;
|
|
565
555
|
switch (_b) {
|
|
@@ -583,10 +573,12 @@ var deserializeAws_restJson1DeleteMessageCommandError = function (output, contex
|
|
|
583
573
|
case 9: throw _d.sent();
|
|
584
574
|
case 10:
|
|
585
575
|
parsedBody = parsedOutput.body;
|
|
576
|
+
$metadata = deserializeMetadata(output);
|
|
577
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
586
578
|
response = new __BaseException({
|
|
587
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
588
580
|
$fault: "client",
|
|
589
|
-
$metadata:
|
|
581
|
+
$metadata: $metadata,
|
|
590
582
|
});
|
|
591
583
|
throw __decorateServiceException(response, parsedBody);
|
|
592
584
|
}
|
|
@@ -611,7 +603,7 @@ export var deserializeAws_restJson1DeleteRoomCommand = function (output, context
|
|
|
611
603
|
});
|
|
612
604
|
}); };
|
|
613
605
|
var deserializeAws_restJson1DeleteRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
614
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
606
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
615
607
|
var _c;
|
|
616
608
|
return __generator(this, function (_d) {
|
|
617
609
|
switch (_d.label) {
|
|
@@ -621,7 +613,6 @@ var deserializeAws_restJson1DeleteRoomCommandError = function (output, context)
|
|
|
621
613
|
return [4, parseBody(output.body, context)];
|
|
622
614
|
case 1:
|
|
623
615
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
624
|
-
errorCode = "UnknownError";
|
|
625
616
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
617
|
_b = errorCode;
|
|
627
618
|
switch (_b) {
|
|
@@ -645,10 +636,12 @@ var deserializeAws_restJson1DeleteRoomCommandError = function (output, context)
|
|
|
645
636
|
case 9: throw _d.sent();
|
|
646
637
|
case 10:
|
|
647
638
|
parsedBody = parsedOutput.body;
|
|
639
|
+
$metadata = deserializeMetadata(output);
|
|
640
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
648
641
|
response = new __BaseException({
|
|
649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
650
643
|
$fault: "client",
|
|
651
|
-
$metadata:
|
|
644
|
+
$metadata: $metadata,
|
|
652
645
|
});
|
|
653
646
|
throw __decorateServiceException(response, parsedBody);
|
|
654
647
|
}
|
|
@@ -673,7 +666,7 @@ export var deserializeAws_restJson1DisconnectUserCommand = function (output, con
|
|
|
673
666
|
});
|
|
674
667
|
}); };
|
|
675
668
|
var deserializeAws_restJson1DisconnectUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
676
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
669
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
677
670
|
var _c;
|
|
678
671
|
return __generator(this, function (_d) {
|
|
679
672
|
switch (_d.label) {
|
|
@@ -683,7 +676,6 @@ var deserializeAws_restJson1DisconnectUserCommandError = function (output, conte
|
|
|
683
676
|
return [4, parseBody(output.body, context)];
|
|
684
677
|
case 1:
|
|
685
678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
686
|
-
errorCode = "UnknownError";
|
|
687
679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
680
|
_b = errorCode;
|
|
689
681
|
switch (_b) {
|
|
@@ -707,10 +699,12 @@ var deserializeAws_restJson1DisconnectUserCommandError = function (output, conte
|
|
|
707
699
|
case 9: throw _d.sent();
|
|
708
700
|
case 10:
|
|
709
701
|
parsedBody = parsedOutput.body;
|
|
702
|
+
$metadata = deserializeMetadata(output);
|
|
703
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
710
704
|
response = new __BaseException({
|
|
711
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
712
706
|
$fault: "client",
|
|
713
|
-
$metadata:
|
|
707
|
+
$metadata: $metadata,
|
|
714
708
|
});
|
|
715
709
|
throw __decorateServiceException(response, parsedBody);
|
|
716
710
|
}
|
|
@@ -773,7 +767,7 @@ export var deserializeAws_restJson1GetRoomCommand = function (output, context) {
|
|
|
773
767
|
});
|
|
774
768
|
}); };
|
|
775
769
|
var deserializeAws_restJson1GetRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
776
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
770
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
777
771
|
var _c;
|
|
778
772
|
return __generator(this, function (_d) {
|
|
779
773
|
switch (_d.label) {
|
|
@@ -783,7 +777,6 @@ var deserializeAws_restJson1GetRoomCommandError = function (output, context) { r
|
|
|
783
777
|
return [4, parseBody(output.body, context)];
|
|
784
778
|
case 1:
|
|
785
779
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
786
|
-
errorCode = "UnknownError";
|
|
787
780
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
781
|
_b = errorCode;
|
|
789
782
|
switch (_b) {
|
|
@@ -803,10 +796,12 @@ var deserializeAws_restJson1GetRoomCommandError = function (output, context) { r
|
|
|
803
796
|
case 7: throw _d.sent();
|
|
804
797
|
case 8:
|
|
805
798
|
parsedBody = parsedOutput.body;
|
|
799
|
+
$metadata = deserializeMetadata(output);
|
|
800
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
806
801
|
response = new __BaseException({
|
|
807
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
808
803
|
$fault: "client",
|
|
809
|
-
$metadata:
|
|
804
|
+
$metadata: $metadata,
|
|
810
805
|
});
|
|
811
806
|
throw __decorateServiceException(response, parsedBody);
|
|
812
807
|
}
|
|
@@ -841,7 +836,7 @@ export var deserializeAws_restJson1ListRoomsCommand = function (output, context)
|
|
|
841
836
|
});
|
|
842
837
|
}); };
|
|
843
838
|
var deserializeAws_restJson1ListRoomsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
844
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
839
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
845
840
|
var _c;
|
|
846
841
|
return __generator(this, function (_d) {
|
|
847
842
|
switch (_d.label) {
|
|
@@ -851,7 +846,6 @@ var deserializeAws_restJson1ListRoomsCommandError = function (output, context) {
|
|
|
851
846
|
return [4, parseBody(output.body, context)];
|
|
852
847
|
case 1:
|
|
853
848
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
854
|
-
errorCode = "UnknownError";
|
|
855
849
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
850
|
_b = errorCode;
|
|
857
851
|
switch (_b) {
|
|
@@ -871,10 +865,12 @@ var deserializeAws_restJson1ListRoomsCommandError = function (output, context) {
|
|
|
871
865
|
case 7: throw _d.sent();
|
|
872
866
|
case 8:
|
|
873
867
|
parsedBody = parsedOutput.body;
|
|
868
|
+
$metadata = deserializeMetadata(output);
|
|
869
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
874
870
|
response = new __BaseException({
|
|
875
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
876
872
|
$fault: "client",
|
|
877
|
-
$metadata:
|
|
873
|
+
$metadata: $metadata,
|
|
878
874
|
});
|
|
879
875
|
throw __decorateServiceException(response, parsedBody);
|
|
880
876
|
}
|
|
@@ -905,7 +901,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
905
901
|
});
|
|
906
902
|
}); };
|
|
907
903
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
908
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
904
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
909
905
|
var _c;
|
|
910
906
|
return __generator(this, function (_d) {
|
|
911
907
|
switch (_d.label) {
|
|
@@ -915,7 +911,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
915
911
|
return [4, parseBody(output.body, context)];
|
|
916
912
|
case 1:
|
|
917
913
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
918
|
-
errorCode = "UnknownError";
|
|
919
914
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
915
|
_b = errorCode;
|
|
921
916
|
switch (_b) {
|
|
@@ -935,10 +930,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
935
930
|
case 7: throw _d.sent();
|
|
936
931
|
case 8:
|
|
937
932
|
parsedBody = parsedOutput.body;
|
|
933
|
+
$metadata = deserializeMetadata(output);
|
|
934
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
938
935
|
response = new __BaseException({
|
|
939
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
940
937
|
$fault: "client",
|
|
941
|
-
$metadata:
|
|
938
|
+
$metadata: $metadata,
|
|
942
939
|
});
|
|
943
940
|
throw __decorateServiceException(response, parsedBody);
|
|
944
941
|
}
|
|
@@ -969,7 +966,7 @@ export var deserializeAws_restJson1SendEventCommand = function (output, context)
|
|
|
969
966
|
});
|
|
970
967
|
}); };
|
|
971
968
|
var deserializeAws_restJson1SendEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
972
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
969
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
973
970
|
var _c;
|
|
974
971
|
return __generator(this, function (_d) {
|
|
975
972
|
switch (_d.label) {
|
|
@@ -979,7 +976,6 @@ var deserializeAws_restJson1SendEventCommandError = function (output, context) {
|
|
|
979
976
|
return [4, parseBody(output.body, context)];
|
|
980
977
|
case 1:
|
|
981
978
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
982
|
-
errorCode = "UnknownError";
|
|
983
979
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
980
|
_b = errorCode;
|
|
985
981
|
switch (_b) {
|
|
@@ -1003,10 +999,12 @@ var deserializeAws_restJson1SendEventCommandError = function (output, context) {
|
|
|
1003
999
|
case 9: throw _d.sent();
|
|
1004
1000
|
case 10:
|
|
1005
1001
|
parsedBody = parsedOutput.body;
|
|
1002
|
+
$metadata = deserializeMetadata(output);
|
|
1003
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1006
1004
|
response = new __BaseException({
|
|
1007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1005
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1008
1006
|
$fault: "client",
|
|
1009
|
-
$metadata:
|
|
1007
|
+
$metadata: $metadata,
|
|
1010
1008
|
});
|
|
1011
1009
|
throw __decorateServiceException(response, parsedBody);
|
|
1012
1010
|
}
|
|
@@ -1031,7 +1029,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1031
1029
|
});
|
|
1032
1030
|
}); };
|
|
1033
1031
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1034
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1032
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1035
1033
|
var _c;
|
|
1036
1034
|
return __generator(this, function (_d) {
|
|
1037
1035
|
switch (_d.label) {
|
|
@@ -1041,7 +1039,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1041
1039
|
return [4, parseBody(output.body, context)];
|
|
1042
1040
|
case 1:
|
|
1043
1041
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1044
|
-
errorCode = "UnknownError";
|
|
1045
1042
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
1043
|
_b = errorCode;
|
|
1047
1044
|
switch (_b) {
|
|
@@ -1061,10 +1058,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1061
1058
|
case 7: throw _d.sent();
|
|
1062
1059
|
case 8:
|
|
1063
1060
|
parsedBody = parsedOutput.body;
|
|
1061
|
+
$metadata = deserializeMetadata(output);
|
|
1062
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1064
1063
|
response = new __BaseException({
|
|
1065
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1066
1065
|
$fault: "client",
|
|
1067
|
-
$metadata:
|
|
1066
|
+
$metadata: $metadata,
|
|
1068
1067
|
});
|
|
1069
1068
|
throw __decorateServiceException(response, parsedBody);
|
|
1070
1069
|
}
|
|
@@ -1089,7 +1088,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1089
1088
|
});
|
|
1090
1089
|
}); };
|
|
1091
1090
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1092
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1091
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1093
1092
|
var _c;
|
|
1094
1093
|
return __generator(this, function (_d) {
|
|
1095
1094
|
switch (_d.label) {
|
|
@@ -1099,7 +1098,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1099
1098
|
return [4, parseBody(output.body, context)];
|
|
1100
1099
|
case 1:
|
|
1101
1100
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1102
|
-
errorCode = "UnknownError";
|
|
1103
1101
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
1102
|
_b = errorCode;
|
|
1105
1103
|
switch (_b) {
|
|
@@ -1119,10 +1117,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1119
1117
|
case 7: throw _d.sent();
|
|
1120
1118
|
case 8:
|
|
1121
1119
|
parsedBody = parsedOutput.body;
|
|
1120
|
+
$metadata = deserializeMetadata(output);
|
|
1121
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1122
1122
|
response = new __BaseException({
|
|
1123
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1124
1124
|
$fault: "client",
|
|
1125
|
-
$metadata:
|
|
1125
|
+
$metadata: $metadata,
|
|
1126
1126
|
});
|
|
1127
1127
|
throw __decorateServiceException(response, parsedBody);
|
|
1128
1128
|
}
|
|
@@ -1185,7 +1185,7 @@ export var deserializeAws_restJson1UpdateRoomCommand = function (output, context
|
|
|
1185
1185
|
});
|
|
1186
1186
|
}); };
|
|
1187
1187
|
var deserializeAws_restJson1UpdateRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1188
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1188
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1189
1189
|
var _c;
|
|
1190
1190
|
return __generator(this, function (_d) {
|
|
1191
1191
|
switch (_d.label) {
|
|
@@ -1195,7 +1195,6 @@ var deserializeAws_restJson1UpdateRoomCommandError = function (output, context)
|
|
|
1195
1195
|
return [4, parseBody(output.body, context)];
|
|
1196
1196
|
case 1:
|
|
1197
1197
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1198
|
-
errorCode = "UnknownError";
|
|
1199
1198
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1199
|
_b = errorCode;
|
|
1201
1200
|
switch (_b) {
|
|
@@ -1219,10 +1218,12 @@ var deserializeAws_restJson1UpdateRoomCommandError = function (output, context)
|
|
|
1219
1218
|
case 9: throw _d.sent();
|
|
1220
1219
|
case 10:
|
|
1221
1220
|
parsedBody = parsedOutput.body;
|
|
1221
|
+
$metadata = deserializeMetadata(output);
|
|
1222
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1222
1223
|
response = new __BaseException({
|
|
1223
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1224
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1224
1225
|
$fault: "client",
|
|
1225
|
-
$metadata:
|
|
1226
|
+
$metadata: $metadata,
|
|
1226
1227
|
});
|
|
1227
1228
|
throw __decorateServiceException(response, parsedBody);
|
|
1228
1229
|
}
|
|
@@ -1391,8 +1392,7 @@ var serializeAws_restJson1EventAttributes = function (input, context) {
|
|
|
1391
1392
|
}, {});
|
|
1392
1393
|
};
|
|
1393
1394
|
var serializeAws_restJson1MessageReviewHandler = function (input, context) {
|
|
1394
|
-
return __assign(__assign({}, (input.fallbackResult
|
|
1395
|
-
input.fallbackResult !== null && { fallbackResult: input.fallbackResult })), (input.uri !== undefined && input.uri !== null && { uri: input.uri }));
|
|
1395
|
+
return __assign(__assign({}, (input.fallbackResult != null && { fallbackResult: input.fallbackResult })), (input.uri != null && { uri: input.uri }));
|
|
1396
1396
|
};
|
|
1397
1397
|
var serializeAws_restJson1Tags = function (input, context) {
|
|
1398
1398
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -1424,20 +1424,14 @@ var deserializeAws_restJson1RoomList = function (output, context) {
|
|
|
1424
1424
|
var deserializeAws_restJson1RoomSummary = function (output, context) {
|
|
1425
1425
|
return {
|
|
1426
1426
|
arn: __expectString(output.arn),
|
|
1427
|
-
createTime: output.createTime
|
|
1428
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createTime))
|
|
1429
|
-
: undefined,
|
|
1427
|
+
createTime: output.createTime != null ? __expectNonNull(__parseRfc3339DateTime(output.createTime)) : undefined,
|
|
1430
1428
|
id: __expectString(output.id),
|
|
1431
|
-
messageReviewHandler: output.messageReviewHandler
|
|
1429
|
+
messageReviewHandler: output.messageReviewHandler != null
|
|
1432
1430
|
? deserializeAws_restJson1MessageReviewHandler(output.messageReviewHandler, context)
|
|
1433
1431
|
: undefined,
|
|
1434
1432
|
name: __expectString(output.name),
|
|
1435
|
-
tags: output.tags
|
|
1436
|
-
|
|
1437
|
-
: undefined,
|
|
1438
|
-
updateTime: output.updateTime !== undefined && output.updateTime !== null
|
|
1439
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updateTime))
|
|
1440
|
-
: undefined,
|
|
1433
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1434
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.updateTime)) : undefined,
|
|
1441
1435
|
};
|
|
1442
1436
|
};
|
|
1443
1437
|
var deserializeAws_restJson1Tags = function (output, context) {
|
|
@@ -1523,5 +1517,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1523
1517
|
if (data["__type"] !== undefined) {
|
|
1524
1518
|
return sanitizeErrorCode(data["__type"]);
|
|
1525
1519
|
}
|
|
1526
|
-
return "";
|
|
1527
1520
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivschat",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivschat Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.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.127.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.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.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"
|