@aws-sdk/client-lex-runtime-service 3.51.0 → 3.54.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/index.js +3 -0
- package/dist-cjs/models/LexRuntimeServiceServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +149 -1
- package/dist-cjs/protocols/Aws_restJson1.js +134 -349
- package/dist-es/index.js +1 -0
- package/dist-es/models/LexRuntimeServiceServiceException.js +12 -0
- package/dist-es/models/models_0.js +139 -2
- package/dist-es/protocols/Aws_restJson1.js +189 -381
- package/dist-types/LexRuntimeServiceClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/LexRuntimeServiceServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +79 -43
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/LexRuntimeServiceClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/LexRuntimeServiceServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -35
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { LexRuntimeServiceServiceException as __BaseException } from "../models/LexRuntimeServiceServiceException";
|
|
5
|
+
import { BadGatewayException, BadRequestException, ConflictException, DependencyFailedException, InternalFailureException, LimitExceededException, LoopDetectedException, NotAcceptableException, NotFoundException, RequestTimeoutException, UnsupportedMediaTypeException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1DeleteSessionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -332,16 +334,16 @@ export var deserializeAws_restJson1DeleteSessionCommand = function (output, cont
|
|
|
332
334
|
});
|
|
333
335
|
}); };
|
|
334
336
|
var deserializeAws_restJson1DeleteSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
335
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
336
|
-
var
|
|
337
|
-
return __generator(this, function (
|
|
338
|
-
switch (
|
|
337
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
338
|
+
var _c;
|
|
339
|
+
return __generator(this, function (_d) {
|
|
340
|
+
switch (_d.label) {
|
|
339
341
|
case 0:
|
|
340
342
|
_a = [__assign({}, output)];
|
|
341
|
-
|
|
343
|
+
_c = {};
|
|
342
344
|
return [4, parseBody(output.body, context)];
|
|
343
345
|
case 1:
|
|
344
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
346
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
345
347
|
errorCode = "UnknownError";
|
|
346
348
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
347
349
|
_b = errorCode;
|
|
@@ -358,46 +360,24 @@ var deserializeAws_restJson1DeleteSessionCommandError = function (output, contex
|
|
|
358
360
|
case "com.amazonaws.lexruntimeservice#NotFoundException": return [3, 10];
|
|
359
361
|
}
|
|
360
362
|
return [3, 12];
|
|
361
|
-
case 2:
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
case
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
case 4
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
case
|
|
371
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
372
|
-
return [3, 13];
|
|
373
|
-
case 6:
|
|
374
|
-
_e = [{}];
|
|
375
|
-
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
376
|
-
case 7:
|
|
377
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
378
|
-
return [3, 13];
|
|
379
|
-
case 8:
|
|
380
|
-
_f = [{}];
|
|
381
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
382
|
-
case 9:
|
|
383
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
384
|
-
return [3, 13];
|
|
385
|
-
case 10:
|
|
386
|
-
_g = [{}];
|
|
387
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
388
|
-
case 11:
|
|
389
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
390
|
-
return [3, 13];
|
|
363
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
364
|
+
case 3: throw _d.sent();
|
|
365
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
366
|
+
case 5: throw _d.sent();
|
|
367
|
+
case 6: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
368
|
+
case 7: throw _d.sent();
|
|
369
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
370
|
+
case 9: throw _d.sent();
|
|
371
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
372
|
+
case 11: throw _d.sent();
|
|
391
373
|
case 12:
|
|
392
374
|
parsedBody = parsedOutput.body;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
response
|
|
399
|
-
delete response.Message;
|
|
400
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
375
|
+
response = new __BaseException({
|
|
376
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
377
|
+
$fault: "client",
|
|
378
|
+
$metadata: deserializeMetadata(output),
|
|
379
|
+
});
|
|
380
|
+
throw __decorateServiceException(response, parsedBody);
|
|
401
381
|
}
|
|
402
382
|
});
|
|
403
383
|
}); };
|
|
@@ -442,16 +422,16 @@ export var deserializeAws_restJson1GetSessionCommand = function (output, context
|
|
|
442
422
|
});
|
|
443
423
|
}); };
|
|
444
424
|
var deserializeAws_restJson1GetSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
445
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
446
|
-
var
|
|
447
|
-
return __generator(this, function (
|
|
448
|
-
switch (
|
|
425
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
426
|
+
var _c;
|
|
427
|
+
return __generator(this, function (_d) {
|
|
428
|
+
switch (_d.label) {
|
|
449
429
|
case 0:
|
|
450
430
|
_a = [__assign({}, output)];
|
|
451
|
-
|
|
431
|
+
_c = {};
|
|
452
432
|
return [4, parseBody(output.body, context)];
|
|
453
433
|
case 1:
|
|
454
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
434
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
455
435
|
errorCode = "UnknownError";
|
|
456
436
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
437
|
_b = errorCode;
|
|
@@ -466,40 +446,22 @@ var deserializeAws_restJson1GetSessionCommandError = function (output, context)
|
|
|
466
446
|
case "com.amazonaws.lexruntimeservice#NotFoundException": return [3, 8];
|
|
467
447
|
}
|
|
468
448
|
return [3, 10];
|
|
469
|
-
case 2:
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
case
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
case 4
|
|
476
|
-
|
|
477
|
-
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
478
|
-
case 5:
|
|
479
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
480
|
-
return [3, 11];
|
|
481
|
-
case 6:
|
|
482
|
-
_e = [{}];
|
|
483
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
484
|
-
case 7:
|
|
485
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
486
|
-
return [3, 11];
|
|
487
|
-
case 8:
|
|
488
|
-
_f = [{}];
|
|
489
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
490
|
-
case 9:
|
|
491
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
492
|
-
return [3, 11];
|
|
449
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
450
|
+
case 3: throw _d.sent();
|
|
451
|
+
case 4: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
452
|
+
case 5: throw _d.sent();
|
|
453
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
454
|
+
case 7: throw _d.sent();
|
|
455
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
456
|
+
case 9: throw _d.sent();
|
|
493
457
|
case 10:
|
|
494
458
|
parsedBody = parsedOutput.body;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
response
|
|
501
|
-
delete response.Message;
|
|
502
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
459
|
+
response = new __BaseException({
|
|
460
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
461
|
+
$fault: "client",
|
|
462
|
+
$metadata: deserializeMetadata(output),
|
|
463
|
+
});
|
|
464
|
+
throw __decorateServiceException(response, parsedBody);
|
|
503
465
|
}
|
|
504
466
|
});
|
|
505
467
|
}); };
|
|
@@ -587,16 +549,16 @@ export var deserializeAws_restJson1PostContentCommand = function (output, contex
|
|
|
587
549
|
});
|
|
588
550
|
}); };
|
|
589
551
|
var deserializeAws_restJson1PostContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
590
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
591
|
-
var
|
|
592
|
-
return __generator(this, function (
|
|
593
|
-
switch (
|
|
552
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
553
|
+
var _c;
|
|
554
|
+
return __generator(this, function (_d) {
|
|
555
|
+
switch (_d.label) {
|
|
594
556
|
case 0:
|
|
595
557
|
_a = [__assign({}, output)];
|
|
596
|
-
|
|
558
|
+
_c = {};
|
|
597
559
|
return [4, parseBody(output.body, context)];
|
|
598
560
|
case 1:
|
|
599
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
561
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
600
562
|
errorCode = "UnknownError";
|
|
601
563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
564
|
_b = errorCode;
|
|
@@ -625,82 +587,36 @@ var deserializeAws_restJson1PostContentCommandError = function (output, context)
|
|
|
625
587
|
case "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException": return [3, 22];
|
|
626
588
|
}
|
|
627
589
|
return [3, 24];
|
|
628
|
-
case 2:
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
case
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
case 4
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
case
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
case
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
case
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
case
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
case
|
|
650
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
651
|
-
return [3, 25];
|
|
652
|
-
case 10:
|
|
653
|
-
_g = [{}];
|
|
654
|
-
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
655
|
-
case 11:
|
|
656
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
657
|
-
return [3, 25];
|
|
658
|
-
case 12:
|
|
659
|
-
_h = [{}];
|
|
660
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
661
|
-
case 13:
|
|
662
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
663
|
-
return [3, 25];
|
|
664
|
-
case 14:
|
|
665
|
-
_j = [{}];
|
|
666
|
-
return [4, deserializeAws_restJson1LoopDetectedExceptionResponse(parsedOutput, context)];
|
|
667
|
-
case 15:
|
|
668
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
669
|
-
return [3, 25];
|
|
670
|
-
case 16:
|
|
671
|
-
_k = [{}];
|
|
672
|
-
return [4, deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context)];
|
|
673
|
-
case 17:
|
|
674
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
675
|
-
return [3, 25];
|
|
676
|
-
case 18:
|
|
677
|
-
_l = [{}];
|
|
678
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
679
|
-
case 19:
|
|
680
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
681
|
-
return [3, 25];
|
|
682
|
-
case 20:
|
|
683
|
-
_m = [{}];
|
|
684
|
-
return [4, deserializeAws_restJson1RequestTimeoutExceptionResponse(parsedOutput, context)];
|
|
685
|
-
case 21:
|
|
686
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
687
|
-
return [3, 25];
|
|
688
|
-
case 22:
|
|
689
|
-
_o = [{}];
|
|
690
|
-
return [4, deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context)];
|
|
691
|
-
case 23:
|
|
692
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3, 25];
|
|
590
|
+
case 2: return [4, deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)];
|
|
591
|
+
case 3: throw _d.sent();
|
|
592
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
593
|
+
case 5: throw _d.sent();
|
|
594
|
+
case 6: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
595
|
+
case 7: throw _d.sent();
|
|
596
|
+
case 8: return [4, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)];
|
|
597
|
+
case 9: throw _d.sent();
|
|
598
|
+
case 10: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
599
|
+
case 11: throw _d.sent();
|
|
600
|
+
case 12: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
601
|
+
case 13: throw _d.sent();
|
|
602
|
+
case 14: return [4, deserializeAws_restJson1LoopDetectedExceptionResponse(parsedOutput, context)];
|
|
603
|
+
case 15: throw _d.sent();
|
|
604
|
+
case 16: return [4, deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context)];
|
|
605
|
+
case 17: throw _d.sent();
|
|
606
|
+
case 18: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
607
|
+
case 19: throw _d.sent();
|
|
608
|
+
case 20: return [4, deserializeAws_restJson1RequestTimeoutExceptionResponse(parsedOutput, context)];
|
|
609
|
+
case 21: throw _d.sent();
|
|
610
|
+
case 22: return [4, deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context)];
|
|
611
|
+
case 23: throw _d.sent();
|
|
694
612
|
case 24:
|
|
695
613
|
parsedBody = parsedOutput.body;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
response
|
|
702
|
-
delete response.Message;
|
|
703
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
614
|
+
response = new __BaseException({
|
|
615
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
616
|
+
$fault: "client",
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
});
|
|
619
|
+
throw __decorateServiceException(response, parsedBody);
|
|
704
620
|
}
|
|
705
621
|
});
|
|
706
622
|
}); };
|
|
@@ -781,16 +697,16 @@ export var deserializeAws_restJson1PostTextCommand = function (output, context)
|
|
|
781
697
|
});
|
|
782
698
|
}); };
|
|
783
699
|
var deserializeAws_restJson1PostTextCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
784
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
785
|
-
var
|
|
786
|
-
return __generator(this, function (
|
|
787
|
-
switch (
|
|
700
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
701
|
+
var _c;
|
|
702
|
+
return __generator(this, function (_d) {
|
|
703
|
+
switch (_d.label) {
|
|
788
704
|
case 0:
|
|
789
705
|
_a = [__assign({}, output)];
|
|
790
|
-
|
|
706
|
+
_c = {};
|
|
791
707
|
return [4, parseBody(output.body, context)];
|
|
792
708
|
case 1:
|
|
793
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
709
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
794
710
|
errorCode = "UnknownError";
|
|
795
711
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
712
|
_b = errorCode;
|
|
@@ -813,64 +729,30 @@ var deserializeAws_restJson1PostTextCommandError = function (output, context) {
|
|
|
813
729
|
case "com.amazonaws.lexruntimeservice#NotFoundException": return [3, 16];
|
|
814
730
|
}
|
|
815
731
|
return [3, 18];
|
|
816
|
-
case 2:
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
case
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
case 4
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
case
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
case
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
case
|
|
832
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
833
|
-
return [3, 19];
|
|
834
|
-
case 8:
|
|
835
|
-
_f = [{}];
|
|
836
|
-
return [4, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)];
|
|
837
|
-
case 9:
|
|
838
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
839
|
-
return [3, 19];
|
|
840
|
-
case 10:
|
|
841
|
-
_g = [{}];
|
|
842
|
-
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
843
|
-
case 11:
|
|
844
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
845
|
-
return [3, 19];
|
|
846
|
-
case 12:
|
|
847
|
-
_h = [{}];
|
|
848
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
849
|
-
case 13:
|
|
850
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
851
|
-
return [3, 19];
|
|
852
|
-
case 14:
|
|
853
|
-
_j = [{}];
|
|
854
|
-
return [4, deserializeAws_restJson1LoopDetectedExceptionResponse(parsedOutput, context)];
|
|
855
|
-
case 15:
|
|
856
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
857
|
-
return [3, 19];
|
|
858
|
-
case 16:
|
|
859
|
-
_k = [{}];
|
|
860
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
861
|
-
case 17:
|
|
862
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3, 19];
|
|
732
|
+
case 2: return [4, deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)];
|
|
733
|
+
case 3: throw _d.sent();
|
|
734
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
735
|
+
case 5: throw _d.sent();
|
|
736
|
+
case 6: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
737
|
+
case 7: throw _d.sent();
|
|
738
|
+
case 8: return [4, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)];
|
|
739
|
+
case 9: throw _d.sent();
|
|
740
|
+
case 10: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
741
|
+
case 11: throw _d.sent();
|
|
742
|
+
case 12: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
743
|
+
case 13: throw _d.sent();
|
|
744
|
+
case 14: return [4, deserializeAws_restJson1LoopDetectedExceptionResponse(parsedOutput, context)];
|
|
745
|
+
case 15: throw _d.sent();
|
|
746
|
+
case 16: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
747
|
+
case 17: throw _d.sent();
|
|
864
748
|
case 18:
|
|
865
749
|
parsedBody = parsedOutput.body;
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
response
|
|
872
|
-
delete response.Message;
|
|
873
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
750
|
+
response = new __BaseException({
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
752
|
+
$fault: "client",
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
});
|
|
755
|
+
throw __decorateServiceException(response, parsedBody);
|
|
874
756
|
}
|
|
875
757
|
});
|
|
876
758
|
}); };
|
|
@@ -934,16 +816,16 @@ export var deserializeAws_restJson1PutSessionCommand = function (output, context
|
|
|
934
816
|
});
|
|
935
817
|
}); };
|
|
936
818
|
var deserializeAws_restJson1PutSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
937
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
938
|
-
var
|
|
939
|
-
return __generator(this, function (
|
|
940
|
-
switch (
|
|
819
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
820
|
+
var _c;
|
|
821
|
+
return __generator(this, function (_d) {
|
|
822
|
+
switch (_d.label) {
|
|
941
823
|
case 0:
|
|
942
824
|
_a = [__assign({}, output)];
|
|
943
|
-
|
|
825
|
+
_c = {};
|
|
944
826
|
return [4, parseBody(output.body, context)];
|
|
945
827
|
case 1:
|
|
946
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
828
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
947
829
|
errorCode = "UnknownError";
|
|
948
830
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
831
|
_b = errorCode;
|
|
@@ -966,157 +848,97 @@ var deserializeAws_restJson1PutSessionCommandError = function (output, context)
|
|
|
966
848
|
case "com.amazonaws.lexruntimeservice#NotFoundException": return [3, 16];
|
|
967
849
|
}
|
|
968
850
|
return [3, 18];
|
|
969
|
-
case 2:
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
case
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
case 4
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
case
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
case
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
case
|
|
985
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
986
|
-
return [3, 19];
|
|
987
|
-
case 8:
|
|
988
|
-
_f = [{}];
|
|
989
|
-
return [4, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)];
|
|
990
|
-
case 9:
|
|
991
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
992
|
-
return [3, 19];
|
|
993
|
-
case 10:
|
|
994
|
-
_g = [{}];
|
|
995
|
-
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
996
|
-
case 11:
|
|
997
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
998
|
-
return [3, 19];
|
|
999
|
-
case 12:
|
|
1000
|
-
_h = [{}];
|
|
1001
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1002
|
-
case 13:
|
|
1003
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1004
|
-
return [3, 19];
|
|
1005
|
-
case 14:
|
|
1006
|
-
_j = [{}];
|
|
1007
|
-
return [4, deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context)];
|
|
1008
|
-
case 15:
|
|
1009
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1010
|
-
return [3, 19];
|
|
1011
|
-
case 16:
|
|
1012
|
-
_k = [{}];
|
|
1013
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1014
|
-
case 17:
|
|
1015
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1016
|
-
return [3, 19];
|
|
851
|
+
case 2: return [4, deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)];
|
|
852
|
+
case 3: throw _d.sent();
|
|
853
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
854
|
+
case 5: throw _d.sent();
|
|
855
|
+
case 6: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
856
|
+
case 7: throw _d.sent();
|
|
857
|
+
case 8: return [4, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)];
|
|
858
|
+
case 9: throw _d.sent();
|
|
859
|
+
case 10: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
860
|
+
case 11: throw _d.sent();
|
|
861
|
+
case 12: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
862
|
+
case 13: throw _d.sent();
|
|
863
|
+
case 14: return [4, deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context)];
|
|
864
|
+
case 15: throw _d.sent();
|
|
865
|
+
case 16: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
866
|
+
case 17: throw _d.sent();
|
|
1017
867
|
case 18:
|
|
1018
868
|
parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
response
|
|
1025
|
-
delete response.Message;
|
|
1026
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
869
|
+
response = new __BaseException({
|
|
870
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
871
|
+
$fault: "client",
|
|
872
|
+
$metadata: deserializeMetadata(output),
|
|
873
|
+
});
|
|
874
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1027
875
|
}
|
|
1028
876
|
});
|
|
1029
877
|
}); };
|
|
1030
878
|
var deserializeAws_restJson1BadGatewayExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1031
|
-
var contents, data;
|
|
879
|
+
var contents, data, exception;
|
|
1032
880
|
return __generator(this, function (_a) {
|
|
1033
|
-
contents = {
|
|
1034
|
-
name: "BadGatewayException",
|
|
1035
|
-
$fault: "server",
|
|
1036
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
|
-
Message: undefined,
|
|
1038
|
-
};
|
|
881
|
+
contents = {};
|
|
1039
882
|
data = parsedOutput.body;
|
|
1040
883
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1041
884
|
contents.Message = __expectString(data.Message);
|
|
1042
885
|
}
|
|
1043
|
-
|
|
886
|
+
exception = new BadGatewayException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
887
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1044
888
|
});
|
|
1045
889
|
}); };
|
|
1046
890
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1047
|
-
var contents, data;
|
|
891
|
+
var contents, data, exception;
|
|
1048
892
|
return __generator(this, function (_a) {
|
|
1049
|
-
contents = {
|
|
1050
|
-
name: "BadRequestException",
|
|
1051
|
-
$fault: "client",
|
|
1052
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1053
|
-
message: undefined,
|
|
1054
|
-
};
|
|
893
|
+
contents = {};
|
|
1055
894
|
data = parsedOutput.body;
|
|
1056
895
|
if (data.message !== undefined && data.message !== null) {
|
|
1057
896
|
contents.message = __expectString(data.message);
|
|
1058
897
|
}
|
|
1059
|
-
|
|
898
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
899
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1060
900
|
});
|
|
1061
901
|
}); };
|
|
1062
902
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1063
|
-
var contents, data;
|
|
903
|
+
var contents, data, exception;
|
|
1064
904
|
return __generator(this, function (_a) {
|
|
1065
|
-
contents = {
|
|
1066
|
-
name: "ConflictException",
|
|
1067
|
-
$fault: "client",
|
|
1068
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
-
message: undefined,
|
|
1070
|
-
};
|
|
905
|
+
contents = {};
|
|
1071
906
|
data = parsedOutput.body;
|
|
1072
907
|
if (data.message !== undefined && data.message !== null) {
|
|
1073
908
|
contents.message = __expectString(data.message);
|
|
1074
909
|
}
|
|
1075
|
-
|
|
910
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
911
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1076
912
|
});
|
|
1077
913
|
}); };
|
|
1078
914
|
var deserializeAws_restJson1DependencyFailedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1079
|
-
var contents, data;
|
|
915
|
+
var contents, data, exception;
|
|
1080
916
|
return __generator(this, function (_a) {
|
|
1081
|
-
contents = {
|
|
1082
|
-
name: "DependencyFailedException",
|
|
1083
|
-
$fault: "client",
|
|
1084
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1085
|
-
Message: undefined,
|
|
1086
|
-
};
|
|
917
|
+
contents = {};
|
|
1087
918
|
data = parsedOutput.body;
|
|
1088
919
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1089
920
|
contents.Message = __expectString(data.Message);
|
|
1090
921
|
}
|
|
1091
|
-
|
|
922
|
+
exception = new DependencyFailedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
923
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1092
924
|
});
|
|
1093
925
|
}); };
|
|
1094
926
|
var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1095
|
-
var contents, data;
|
|
927
|
+
var contents, data, exception;
|
|
1096
928
|
return __generator(this, function (_a) {
|
|
1097
|
-
contents = {
|
|
1098
|
-
name: "InternalFailureException",
|
|
1099
|
-
$fault: "server",
|
|
1100
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1101
|
-
message: undefined,
|
|
1102
|
-
};
|
|
929
|
+
contents = {};
|
|
1103
930
|
data = parsedOutput.body;
|
|
1104
931
|
if (data.message !== undefined && data.message !== null) {
|
|
1105
932
|
contents.message = __expectString(data.message);
|
|
1106
933
|
}
|
|
1107
|
-
|
|
934
|
+
exception = new InternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
935
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1108
936
|
});
|
|
1109
937
|
}); };
|
|
1110
938
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1111
|
-
var contents, data;
|
|
939
|
+
var contents, data, exception;
|
|
1112
940
|
return __generator(this, function (_a) {
|
|
1113
|
-
contents = {
|
|
1114
|
-
name: "LimitExceededException",
|
|
1115
|
-
$fault: "client",
|
|
1116
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1117
|
-
message: undefined,
|
|
1118
|
-
retryAfterSeconds: undefined,
|
|
1119
|
-
};
|
|
941
|
+
contents = {};
|
|
1120
942
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
1121
943
|
contents.retryAfterSeconds = parsedOutput.headers["retry-after"];
|
|
1122
944
|
}
|
|
@@ -1124,87 +946,68 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
1124
946
|
if (data.message !== undefined && data.message !== null) {
|
|
1125
947
|
contents.message = __expectString(data.message);
|
|
1126
948
|
}
|
|
1127
|
-
|
|
949
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
950
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1128
951
|
});
|
|
1129
952
|
}); };
|
|
1130
953
|
var deserializeAws_restJson1LoopDetectedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1131
|
-
var contents, data;
|
|
954
|
+
var contents, data, exception;
|
|
1132
955
|
return __generator(this, function (_a) {
|
|
1133
|
-
contents = {
|
|
1134
|
-
name: "LoopDetectedException",
|
|
1135
|
-
$fault: "server",
|
|
1136
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1137
|
-
Message: undefined,
|
|
1138
|
-
};
|
|
956
|
+
contents = {};
|
|
1139
957
|
data = parsedOutput.body;
|
|
1140
958
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1141
959
|
contents.Message = __expectString(data.Message);
|
|
1142
960
|
}
|
|
1143
|
-
|
|
961
|
+
exception = new LoopDetectedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
962
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1144
963
|
});
|
|
1145
964
|
}); };
|
|
1146
965
|
var deserializeAws_restJson1NotAcceptableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1147
|
-
var contents, data;
|
|
966
|
+
var contents, data, exception;
|
|
1148
967
|
return __generator(this, function (_a) {
|
|
1149
|
-
contents = {
|
|
1150
|
-
name: "NotAcceptableException",
|
|
1151
|
-
$fault: "client",
|
|
1152
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1153
|
-
message: undefined,
|
|
1154
|
-
};
|
|
968
|
+
contents = {};
|
|
1155
969
|
data = parsedOutput.body;
|
|
1156
970
|
if (data.message !== undefined && data.message !== null) {
|
|
1157
971
|
contents.message = __expectString(data.message);
|
|
1158
972
|
}
|
|
1159
|
-
|
|
973
|
+
exception = new NotAcceptableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
974
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1160
975
|
});
|
|
1161
976
|
}); };
|
|
1162
977
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1163
|
-
var contents, data;
|
|
978
|
+
var contents, data, exception;
|
|
1164
979
|
return __generator(this, function (_a) {
|
|
1165
|
-
contents = {
|
|
1166
|
-
name: "NotFoundException",
|
|
1167
|
-
$fault: "client",
|
|
1168
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1169
|
-
message: undefined,
|
|
1170
|
-
};
|
|
980
|
+
contents = {};
|
|
1171
981
|
data = parsedOutput.body;
|
|
1172
982
|
if (data.message !== undefined && data.message !== null) {
|
|
1173
983
|
contents.message = __expectString(data.message);
|
|
1174
984
|
}
|
|
1175
|
-
|
|
985
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
986
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1176
987
|
});
|
|
1177
988
|
}); };
|
|
1178
989
|
var deserializeAws_restJson1RequestTimeoutExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1179
|
-
var contents, data;
|
|
990
|
+
var contents, data, exception;
|
|
1180
991
|
return __generator(this, function (_a) {
|
|
1181
|
-
contents = {
|
|
1182
|
-
name: "RequestTimeoutException",
|
|
1183
|
-
$fault: "client",
|
|
1184
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1185
|
-
message: undefined,
|
|
1186
|
-
};
|
|
992
|
+
contents = {};
|
|
1187
993
|
data = parsedOutput.body;
|
|
1188
994
|
if (data.message !== undefined && data.message !== null) {
|
|
1189
995
|
contents.message = __expectString(data.message);
|
|
1190
996
|
}
|
|
1191
|
-
|
|
997
|
+
exception = new RequestTimeoutException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
998
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1192
999
|
});
|
|
1193
1000
|
}); };
|
|
1194
1001
|
var deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1195
|
-
var contents, data;
|
|
1002
|
+
var contents, data, exception;
|
|
1196
1003
|
return __generator(this, function (_a) {
|
|
1197
|
-
contents = {
|
|
1198
|
-
name: "UnsupportedMediaTypeException",
|
|
1199
|
-
$fault: "client",
|
|
1200
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1201
|
-
message: undefined,
|
|
1202
|
-
};
|
|
1004
|
+
contents = {};
|
|
1203
1005
|
data = parsedOutput.body;
|
|
1204
1006
|
if (data.message !== undefined && data.message !== null) {
|
|
1205
1007
|
contents.message = __expectString(data.message);
|
|
1206
1008
|
}
|
|
1207
|
-
|
|
1009
|
+
exception = new UnsupportedMediaTypeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1010
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1208
1011
|
});
|
|
1209
1012
|
}); };
|
|
1210
1013
|
var serializeAws_restJson1ActiveContext = function (input, context) {
|
|
@@ -1295,7 +1098,7 @@ var deserializeAws_restJson1ActiveContextParametersMap = function (output, conte
|
|
|
1295
1098
|
}, {});
|
|
1296
1099
|
};
|
|
1297
1100
|
var deserializeAws_restJson1ActiveContextsList = function (output, context) {
|
|
1298
|
-
|
|
1101
|
+
var retVal = (output || [])
|
|
1299
1102
|
.filter(function (e) { return e != null; })
|
|
1300
1103
|
.map(function (entry) {
|
|
1301
1104
|
if (entry === null) {
|
|
@@ -1303,6 +1106,7 @@ var deserializeAws_restJson1ActiveContextsList = function (output, context) {
|
|
|
1303
1106
|
}
|
|
1304
1107
|
return deserializeAws_restJson1ActiveContext(entry, context);
|
|
1305
1108
|
});
|
|
1109
|
+
return retVal;
|
|
1306
1110
|
};
|
|
1307
1111
|
var deserializeAws_restJson1ActiveContextTimeToLive = function (output, context) {
|
|
1308
1112
|
return {
|
|
@@ -1341,7 +1145,7 @@ var deserializeAws_restJson1GenericAttachment = function (output, context) {
|
|
|
1341
1145
|
};
|
|
1342
1146
|
};
|
|
1343
1147
|
var deserializeAws_restJson1genericAttachmentList = function (output, context) {
|
|
1344
|
-
|
|
1148
|
+
var retVal = (output || [])
|
|
1345
1149
|
.filter(function (e) { return e != null; })
|
|
1346
1150
|
.map(function (entry) {
|
|
1347
1151
|
if (entry === null) {
|
|
@@ -1349,6 +1153,7 @@ var deserializeAws_restJson1genericAttachmentList = function (output, context) {
|
|
|
1349
1153
|
}
|
|
1350
1154
|
return deserializeAws_restJson1GenericAttachment(entry, context);
|
|
1351
1155
|
});
|
|
1156
|
+
return retVal;
|
|
1352
1157
|
};
|
|
1353
1158
|
var deserializeAws_restJson1IntentConfidence = function (output, context) {
|
|
1354
1159
|
return {
|
|
@@ -1356,7 +1161,7 @@ var deserializeAws_restJson1IntentConfidence = function (output, context) {
|
|
|
1356
1161
|
};
|
|
1357
1162
|
};
|
|
1358
1163
|
var deserializeAws_restJson1IntentList = function (output, context) {
|
|
1359
|
-
|
|
1164
|
+
var retVal = (output || [])
|
|
1360
1165
|
.filter(function (e) { return e != null; })
|
|
1361
1166
|
.map(function (entry) {
|
|
1362
1167
|
if (entry === null) {
|
|
@@ -1364,6 +1169,7 @@ var deserializeAws_restJson1IntentList = function (output, context) {
|
|
|
1364
1169
|
}
|
|
1365
1170
|
return deserializeAws_restJson1PredictedIntent(entry, context);
|
|
1366
1171
|
});
|
|
1172
|
+
return retVal;
|
|
1367
1173
|
};
|
|
1368
1174
|
var deserializeAws_restJson1IntentSummary = function (output, context) {
|
|
1369
1175
|
return {
|
|
@@ -1379,7 +1185,7 @@ var deserializeAws_restJson1IntentSummary = function (output, context) {
|
|
|
1379
1185
|
};
|
|
1380
1186
|
};
|
|
1381
1187
|
var deserializeAws_restJson1IntentSummaryList = function (output, context) {
|
|
1382
|
-
|
|
1188
|
+
var retVal = (output || [])
|
|
1383
1189
|
.filter(function (e) { return e != null; })
|
|
1384
1190
|
.map(function (entry) {
|
|
1385
1191
|
if (entry === null) {
|
|
@@ -1387,9 +1193,10 @@ var deserializeAws_restJson1IntentSummaryList = function (output, context) {
|
|
|
1387
1193
|
}
|
|
1388
1194
|
return deserializeAws_restJson1IntentSummary(entry, context);
|
|
1389
1195
|
});
|
|
1196
|
+
return retVal;
|
|
1390
1197
|
};
|
|
1391
1198
|
var deserializeAws_restJson1listOfButtons = function (output, context) {
|
|
1392
|
-
|
|
1199
|
+
var retVal = (output || [])
|
|
1393
1200
|
.filter(function (e) { return e != null; })
|
|
1394
1201
|
.map(function (entry) {
|
|
1395
1202
|
if (entry === null) {
|
|
@@ -1397,6 +1204,7 @@ var deserializeAws_restJson1listOfButtons = function (output, context) {
|
|
|
1397
1204
|
}
|
|
1398
1205
|
return deserializeAws_restJson1Button(entry, context);
|
|
1399
1206
|
});
|
|
1207
|
+
return retVal;
|
|
1400
1208
|
};
|
|
1401
1209
|
var deserializeAws_restJson1PredictedIntent = function (output, context) {
|
|
1402
1210
|
return {
|