@aws-sdk/client-lex-runtime-service 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 +62 -81
- package/dist-es/protocols/Aws_restJson1.js +46 -65
- 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-lex-runtime-service
|
|
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-lex-runtime-service
|
|
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-lex-runtime-service
|
|
@@ -206,17 +206,14 @@ const serializeAws_restJson1PostTextCommand = async (input, context) => {
|
|
|
206
206
|
}
|
|
207
207
|
let body;
|
|
208
208
|
body = JSON.stringify({
|
|
209
|
-
...(input.activeContexts
|
|
210
|
-
input.activeContexts !== null && {
|
|
209
|
+
...(input.activeContexts != null && {
|
|
211
210
|
activeContexts: serializeAws_restJson1ActiveContextsList(input.activeContexts, context),
|
|
212
211
|
}),
|
|
213
|
-
...(input.inputText
|
|
214
|
-
...(input.requestAttributes
|
|
215
|
-
input.requestAttributes !== null && {
|
|
212
|
+
...(input.inputText != null && { inputText: input.inputText }),
|
|
213
|
+
...(input.requestAttributes != null && {
|
|
216
214
|
requestAttributes: serializeAws_restJson1StringMap(input.requestAttributes, context),
|
|
217
215
|
}),
|
|
218
|
-
...(input.sessionAttributes
|
|
219
|
-
input.sessionAttributes !== null && {
|
|
216
|
+
...(input.sessionAttributes != null && {
|
|
220
217
|
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
221
218
|
}),
|
|
222
219
|
});
|
|
@@ -271,18 +268,16 @@ const serializeAws_restJson1PutSessionCommand = async (input, context) => {
|
|
|
271
268
|
}
|
|
272
269
|
let body;
|
|
273
270
|
body = JSON.stringify({
|
|
274
|
-
...(input.activeContexts
|
|
275
|
-
input.activeContexts !== null && {
|
|
271
|
+
...(input.activeContexts != null && {
|
|
276
272
|
activeContexts: serializeAws_restJson1ActiveContextsList(input.activeContexts, context),
|
|
277
273
|
}),
|
|
278
|
-
...(input.dialogAction
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
274
|
+
...(input.dialogAction != null && {
|
|
275
|
+
dialogAction: serializeAws_restJson1DialogAction(input.dialogAction, context),
|
|
276
|
+
}),
|
|
277
|
+
...(input.recentIntentSummaryView != null && {
|
|
282
278
|
recentIntentSummaryView: serializeAws_restJson1IntentSummaryList(input.recentIntentSummaryView, context),
|
|
283
279
|
}),
|
|
284
|
-
...(input.sessionAttributes
|
|
285
|
-
input.sessionAttributes !== null && {
|
|
280
|
+
...(input.sessionAttributes != null && {
|
|
286
281
|
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
287
282
|
}),
|
|
288
283
|
});
|
|
@@ -330,8 +325,7 @@ const deserializeAws_restJson1DeleteSessionCommandError = async (output, context
|
|
|
330
325
|
body: await parseBody(output.body, context),
|
|
331
326
|
};
|
|
332
327
|
let response;
|
|
333
|
-
|
|
334
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
329
|
switch (errorCode) {
|
|
336
330
|
case "BadRequestException":
|
|
337
331
|
case "com.amazonaws.lexruntimeservice#BadRequestException":
|
|
@@ -350,10 +344,12 @@ const deserializeAws_restJson1DeleteSessionCommandError = async (output, context
|
|
|
350
344
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
351
345
|
default:
|
|
352
346
|
const parsedBody = parsedOutput.body;
|
|
347
|
+
const $metadata = deserializeMetadata(output);
|
|
348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
353
349
|
response = new LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException({
|
|
354
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
355
351
|
$fault: "client",
|
|
356
|
-
$metadata
|
|
352
|
+
$metadata,
|
|
357
353
|
});
|
|
358
354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
359
355
|
}
|
|
@@ -395,8 +391,7 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
|
|
|
395
391
|
body: await parseBody(output.body, context),
|
|
396
392
|
};
|
|
397
393
|
let response;
|
|
398
|
-
|
|
399
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
395
|
switch (errorCode) {
|
|
401
396
|
case "BadRequestException":
|
|
402
397
|
case "com.amazonaws.lexruntimeservice#BadRequestException":
|
|
@@ -412,10 +407,12 @@ const deserializeAws_restJson1GetSessionCommandError = async (output, context) =
|
|
|
412
407
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
413
408
|
default:
|
|
414
409
|
const parsedBody = parsedOutput.body;
|
|
410
|
+
const $metadata = deserializeMetadata(output);
|
|
411
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
415
412
|
response = new LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException({
|
|
416
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
413
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
417
414
|
$fault: "client",
|
|
418
|
-
$metadata
|
|
415
|
+
$metadata,
|
|
419
416
|
});
|
|
420
417
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
421
418
|
}
|
|
@@ -507,8 +504,7 @@ const deserializeAws_restJson1PostContentCommandError = async (output, context)
|
|
|
507
504
|
body: await parseBody(output.body, context),
|
|
508
505
|
};
|
|
509
506
|
let response;
|
|
510
|
-
|
|
511
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
508
|
switch (errorCode) {
|
|
513
509
|
case "BadGatewayException":
|
|
514
510
|
case "com.amazonaws.lexruntimeservice#BadGatewayException":
|
|
@@ -545,10 +541,12 @@ const deserializeAws_restJson1PostContentCommandError = async (output, context)
|
|
|
545
541
|
throw await deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context);
|
|
546
542
|
default:
|
|
547
543
|
const parsedBody = parsedOutput.body;
|
|
544
|
+
const $metadata = deserializeMetadata(output);
|
|
545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
548
546
|
response = new LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException({
|
|
549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
550
548
|
$fault: "client",
|
|
551
|
-
$metadata
|
|
549
|
+
$metadata,
|
|
552
550
|
});
|
|
553
551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
554
552
|
}
|
|
@@ -626,8 +624,7 @@ const deserializeAws_restJson1PostTextCommandError = async (output, context) =>
|
|
|
626
624
|
body: await parseBody(output.body, context),
|
|
627
625
|
};
|
|
628
626
|
let response;
|
|
629
|
-
|
|
630
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
628
|
switch (errorCode) {
|
|
632
629
|
case "BadGatewayException":
|
|
633
630
|
case "com.amazonaws.lexruntimeservice#BadGatewayException":
|
|
@@ -655,10 +652,12 @@ const deserializeAws_restJson1PostTextCommandError = async (output, context) =>
|
|
|
655
652
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
656
653
|
default:
|
|
657
654
|
const parsedBody = parsedOutput.body;
|
|
655
|
+
const $metadata = deserializeMetadata(output);
|
|
656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
658
657
|
response = new LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException({
|
|
659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
660
659
|
$fault: "client",
|
|
661
|
-
$metadata
|
|
660
|
+
$metadata,
|
|
662
661
|
});
|
|
663
662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
663
|
}
|
|
@@ -726,8 +725,7 @@ const deserializeAws_restJson1PutSessionCommandError = async (output, context) =
|
|
|
726
725
|
body: await parseBody(output.body, context),
|
|
727
726
|
};
|
|
728
727
|
let response;
|
|
729
|
-
|
|
730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
729
|
switch (errorCode) {
|
|
732
730
|
case "BadGatewayException":
|
|
733
731
|
case "com.amazonaws.lexruntimeservice#BadGatewayException":
|
|
@@ -755,10 +753,12 @@ const deserializeAws_restJson1PutSessionCommandError = async (output, context) =
|
|
|
755
753
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
756
754
|
default:
|
|
757
755
|
const parsedBody = parsedOutput.body;
|
|
756
|
+
const $metadata = deserializeMetadata(output);
|
|
757
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
758
758
|
response = new LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException({
|
|
759
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
759
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
760
760
|
$fault: "client",
|
|
761
|
-
$metadata
|
|
761
|
+
$metadata,
|
|
762
762
|
});
|
|
763
763
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
764
764
|
}
|
|
@@ -900,13 +900,11 @@ const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async (par
|
|
|
900
900
|
};
|
|
901
901
|
const serializeAws_restJson1ActiveContext = (input, context) => {
|
|
902
902
|
return {
|
|
903
|
-
...(input.name
|
|
904
|
-
...(input.parameters
|
|
905
|
-
input.parameters !== null && {
|
|
903
|
+
...(input.name != null && { name: input.name }),
|
|
904
|
+
...(input.parameters != null && {
|
|
906
905
|
parameters: serializeAws_restJson1ActiveContextParametersMap(input.parameters, context),
|
|
907
906
|
}),
|
|
908
|
-
...(input.timeToLive
|
|
909
|
-
input.timeToLive !== null && {
|
|
907
|
+
...(input.timeToLive != null && {
|
|
910
908
|
timeToLive: serializeAws_restJson1ActiveContextTimeToLive(input.timeToLive, context),
|
|
911
909
|
}),
|
|
912
910
|
};
|
|
@@ -934,38 +932,30 @@ const serializeAws_restJson1ActiveContextsList = (input, context) => {
|
|
|
934
932
|
};
|
|
935
933
|
const serializeAws_restJson1ActiveContextTimeToLive = (input, context) => {
|
|
936
934
|
return {
|
|
937
|
-
...(input.timeToLiveInSeconds
|
|
938
|
-
|
|
939
|
-
...(input.turnsToLive !== undefined && input.turnsToLive !== null && { turnsToLive: input.turnsToLive }),
|
|
935
|
+
...(input.timeToLiveInSeconds != null && { timeToLiveInSeconds: input.timeToLiveInSeconds }),
|
|
936
|
+
...(input.turnsToLive != null && { turnsToLive: input.turnsToLive }),
|
|
940
937
|
};
|
|
941
938
|
};
|
|
942
939
|
const serializeAws_restJson1DialogAction = (input, context) => {
|
|
943
940
|
return {
|
|
944
|
-
...(input.fulfillmentState
|
|
945
|
-
|
|
946
|
-
...(input.
|
|
947
|
-
...(input.
|
|
948
|
-
...(input.
|
|
949
|
-
...(input.
|
|
950
|
-
...(input.
|
|
951
|
-
input.slots !== null && { slots: serializeAws_restJson1StringMap(input.slots, context) }),
|
|
952
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
941
|
+
...(input.fulfillmentState != null && { fulfillmentState: input.fulfillmentState }),
|
|
942
|
+
...(input.intentName != null && { intentName: input.intentName }),
|
|
943
|
+
...(input.message != null && { message: input.message }),
|
|
944
|
+
...(input.messageFormat != null && { messageFormat: input.messageFormat }),
|
|
945
|
+
...(input.slotToElicit != null && { slotToElicit: input.slotToElicit }),
|
|
946
|
+
...(input.slots != null && { slots: serializeAws_restJson1StringMap(input.slots, context) }),
|
|
947
|
+
...(input.type != null && { type: input.type }),
|
|
953
948
|
};
|
|
954
949
|
};
|
|
955
950
|
const serializeAws_restJson1IntentSummary = (input, context) => {
|
|
956
951
|
return {
|
|
957
|
-
...(input.checkpointLabel
|
|
958
|
-
|
|
959
|
-
...(input.
|
|
960
|
-
|
|
961
|
-
...(input.
|
|
962
|
-
|
|
963
|
-
...(input.
|
|
964
|
-
input.fulfillmentState !== null && { fulfillmentState: input.fulfillmentState }),
|
|
965
|
-
...(input.intentName !== undefined && input.intentName !== null && { intentName: input.intentName }),
|
|
966
|
-
...(input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit }),
|
|
967
|
-
...(input.slots !== undefined &&
|
|
968
|
-
input.slots !== null && { slots: serializeAws_restJson1StringMap(input.slots, context) }),
|
|
952
|
+
...(input.checkpointLabel != null && { checkpointLabel: input.checkpointLabel }),
|
|
953
|
+
...(input.confirmationStatus != null && { confirmationStatus: input.confirmationStatus }),
|
|
954
|
+
...(input.dialogActionType != null && { dialogActionType: input.dialogActionType }),
|
|
955
|
+
...(input.fulfillmentState != null && { fulfillmentState: input.fulfillmentState }),
|
|
956
|
+
...(input.intentName != null && { intentName: input.intentName }),
|
|
957
|
+
...(input.slotToElicit != null && { slotToElicit: input.slotToElicit }),
|
|
958
|
+
...(input.slots != null && { slots: serializeAws_restJson1StringMap(input.slots, context) }),
|
|
969
959
|
};
|
|
970
960
|
};
|
|
971
961
|
const serializeAws_restJson1IntentSummaryList = (input, context) => {
|
|
@@ -992,10 +982,10 @@ const serializeAws_restJson1StringMap = (input, context) => {
|
|
|
992
982
|
const deserializeAws_restJson1ActiveContext = (output, context) => {
|
|
993
983
|
return {
|
|
994
984
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
995
|
-
parameters: output.parameters
|
|
985
|
+
parameters: output.parameters != null
|
|
996
986
|
? deserializeAws_restJson1ActiveContextParametersMap(output.parameters, context)
|
|
997
987
|
: undefined,
|
|
998
|
-
timeToLive: output.timeToLive
|
|
988
|
+
timeToLive: output.timeToLive != null
|
|
999
989
|
? deserializeAws_restJson1ActiveContextTimeToLive(output.timeToLive, context)
|
|
1000
990
|
: undefined,
|
|
1001
991
|
};
|
|
@@ -1041,18 +1031,14 @@ const deserializeAws_restJson1DialogAction = (output, context) => {
|
|
|
1041
1031
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1042
1032
|
messageFormat: (0, smithy_client_1.expectString)(output.messageFormat),
|
|
1043
1033
|
slotToElicit: (0, smithy_client_1.expectString)(output.slotToElicit),
|
|
1044
|
-
slots: output.slots
|
|
1045
|
-
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1046
|
-
: undefined,
|
|
1034
|
+
slots: output.slots != null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined,
|
|
1047
1035
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1048
1036
|
};
|
|
1049
1037
|
};
|
|
1050
1038
|
const deserializeAws_restJson1GenericAttachment = (output, context) => {
|
|
1051
1039
|
return {
|
|
1052
1040
|
attachmentLinkUrl: (0, smithy_client_1.expectString)(output.attachmentLinkUrl),
|
|
1053
|
-
buttons: output.buttons
|
|
1054
|
-
? deserializeAws_restJson1listOfButtons(output.buttons, context)
|
|
1055
|
-
: undefined,
|
|
1041
|
+
buttons: output.buttons != null ? deserializeAws_restJson1listOfButtons(output.buttons, context) : undefined,
|
|
1056
1042
|
imageUrl: (0, smithy_client_1.expectString)(output.imageUrl),
|
|
1057
1043
|
subTitle: (0, smithy_client_1.expectString)(output.subTitle),
|
|
1058
1044
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
@@ -1093,9 +1079,7 @@ const deserializeAws_restJson1IntentSummary = (output, context) => {
|
|
|
1093
1079
|
fulfillmentState: (0, smithy_client_1.expectString)(output.fulfillmentState),
|
|
1094
1080
|
intentName: (0, smithy_client_1.expectString)(output.intentName),
|
|
1095
1081
|
slotToElicit: (0, smithy_client_1.expectString)(output.slotToElicit),
|
|
1096
|
-
slots: output.slots
|
|
1097
|
-
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1098
|
-
: undefined,
|
|
1082
|
+
slots: output.slots != null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined,
|
|
1099
1083
|
};
|
|
1100
1084
|
};
|
|
1101
1085
|
const deserializeAws_restJson1IntentSummaryList = (output, context) => {
|
|
@@ -1123,18 +1107,16 @@ const deserializeAws_restJson1listOfButtons = (output, context) => {
|
|
|
1123
1107
|
const deserializeAws_restJson1PredictedIntent = (output, context) => {
|
|
1124
1108
|
return {
|
|
1125
1109
|
intentName: (0, smithy_client_1.expectString)(output.intentName),
|
|
1126
|
-
nluIntentConfidence: output.nluIntentConfidence
|
|
1110
|
+
nluIntentConfidence: output.nluIntentConfidence != null
|
|
1127
1111
|
? deserializeAws_restJson1IntentConfidence(output.nluIntentConfidence, context)
|
|
1128
1112
|
: undefined,
|
|
1129
|
-
slots: output.slots
|
|
1130
|
-
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1131
|
-
: undefined,
|
|
1113
|
+
slots: output.slots != null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined,
|
|
1132
1114
|
};
|
|
1133
1115
|
};
|
|
1134
1116
|
const deserializeAws_restJson1ResponseCard = (output, context) => {
|
|
1135
1117
|
return {
|
|
1136
1118
|
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
1137
|
-
genericAttachments: output.genericAttachments
|
|
1119
|
+
genericAttachments: output.genericAttachments != null
|
|
1138
1120
|
? deserializeAws_restJson1genericAttachmentList(output.genericAttachments, context)
|
|
1139
1121
|
: undefined,
|
|
1140
1122
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
@@ -1206,5 +1188,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1206
1188
|
if (data["__type"] !== undefined) {
|
|
1207
1189
|
return sanitizeErrorCode(data["__type"]);
|
|
1208
1190
|
}
|
|
1209
|
-
return "";
|
|
1210
1191
|
};
|
|
@@ -212,14 +212,11 @@ export var serializeAws_restJson1PostTextCommand = function (input, context) { r
|
|
|
212
212
|
else {
|
|
213
213
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
214
214
|
}
|
|
215
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.activeContexts
|
|
216
|
-
input.activeContexts !== null && {
|
|
215
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.activeContexts != null && {
|
|
217
216
|
activeContexts: serializeAws_restJson1ActiveContextsList(input.activeContexts, context),
|
|
218
|
-
})), (input.inputText
|
|
219
|
-
input.requestAttributes !== null && {
|
|
217
|
+
})), (input.inputText != null && { inputText: input.inputText })), (input.requestAttributes != null && {
|
|
220
218
|
requestAttributes: serializeAws_restJson1StringMap(input.requestAttributes, context),
|
|
221
|
-
})), (input.sessionAttributes
|
|
222
|
-
input.sessionAttributes !== null && {
|
|
219
|
+
})), (input.sessionAttributes != null && {
|
|
223
220
|
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
224
221
|
})));
|
|
225
222
|
return [2, new __HttpRequest({
|
|
@@ -274,15 +271,13 @@ export var serializeAws_restJson1PutSessionCommand = function (input, context) {
|
|
|
274
271
|
else {
|
|
275
272
|
throw new Error("No value provided for input HTTP label: userId.");
|
|
276
273
|
}
|
|
277
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.activeContexts
|
|
278
|
-
input.activeContexts !== null && {
|
|
274
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.activeContexts != null && {
|
|
279
275
|
activeContexts: serializeAws_restJson1ActiveContextsList(input.activeContexts, context),
|
|
280
|
-
})), (input.dialogAction
|
|
281
|
-
|
|
282
|
-
|
|
276
|
+
})), (input.dialogAction != null && {
|
|
277
|
+
dialogAction: serializeAws_restJson1DialogAction(input.dialogAction, context),
|
|
278
|
+
})), (input.recentIntentSummaryView != null && {
|
|
283
279
|
recentIntentSummaryView: serializeAws_restJson1IntentSummaryList(input.recentIntentSummaryView, context),
|
|
284
|
-
})), (input.sessionAttributes
|
|
285
|
-
input.sessionAttributes !== null && {
|
|
280
|
+
})), (input.sessionAttributes != null && {
|
|
286
281
|
sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context),
|
|
287
282
|
})));
|
|
288
283
|
return [2, new __HttpRequest({
|
|
@@ -334,7 +329,7 @@ export var deserializeAws_restJson1DeleteSessionCommand = function (output, cont
|
|
|
334
329
|
});
|
|
335
330
|
}); };
|
|
336
331
|
var deserializeAws_restJson1DeleteSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
332
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
338
333
|
var _c;
|
|
339
334
|
return __generator(this, function (_d) {
|
|
340
335
|
switch (_d.label) {
|
|
@@ -344,7 +339,6 @@ var deserializeAws_restJson1DeleteSessionCommandError = function (output, contex
|
|
|
344
339
|
return [4, parseBody(output.body, context)];
|
|
345
340
|
case 1:
|
|
346
341
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
347
|
-
errorCode = "UnknownError";
|
|
348
342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
349
343
|
_b = errorCode;
|
|
350
344
|
switch (_b) {
|
|
@@ -372,10 +366,12 @@ var deserializeAws_restJson1DeleteSessionCommandError = function (output, contex
|
|
|
372
366
|
case 11: throw _d.sent();
|
|
373
367
|
case 12:
|
|
374
368
|
parsedBody = parsedOutput.body;
|
|
369
|
+
$metadata = deserializeMetadata(output);
|
|
370
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
375
371
|
response = new __BaseException({
|
|
376
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
377
373
|
$fault: "client",
|
|
378
|
-
$metadata:
|
|
374
|
+
$metadata: $metadata,
|
|
379
375
|
});
|
|
380
376
|
throw __decorateServiceException(response, parsedBody);
|
|
381
377
|
}
|
|
@@ -422,7 +418,7 @@ export var deserializeAws_restJson1GetSessionCommand = function (output, context
|
|
|
422
418
|
});
|
|
423
419
|
}); };
|
|
424
420
|
var deserializeAws_restJson1GetSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
425
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
421
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
426
422
|
var _c;
|
|
427
423
|
return __generator(this, function (_d) {
|
|
428
424
|
switch (_d.label) {
|
|
@@ -432,7 +428,6 @@ var deserializeAws_restJson1GetSessionCommandError = function (output, context)
|
|
|
432
428
|
return [4, parseBody(output.body, context)];
|
|
433
429
|
case 1:
|
|
434
430
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
435
|
-
errorCode = "UnknownError";
|
|
436
431
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
437
432
|
_b = errorCode;
|
|
438
433
|
switch (_b) {
|
|
@@ -456,10 +451,12 @@ var deserializeAws_restJson1GetSessionCommandError = function (output, context)
|
|
|
456
451
|
case 9: throw _d.sent();
|
|
457
452
|
case 10:
|
|
458
453
|
parsedBody = parsedOutput.body;
|
|
454
|
+
$metadata = deserializeMetadata(output);
|
|
455
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
459
456
|
response = new __BaseException({
|
|
460
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
457
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
461
458
|
$fault: "client",
|
|
462
|
-
$metadata:
|
|
459
|
+
$metadata: $metadata,
|
|
463
460
|
});
|
|
464
461
|
throw __decorateServiceException(response, parsedBody);
|
|
465
462
|
}
|
|
@@ -549,7 +546,7 @@ export var deserializeAws_restJson1PostContentCommand = function (output, contex
|
|
|
549
546
|
});
|
|
550
547
|
}); };
|
|
551
548
|
var deserializeAws_restJson1PostContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
549
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
553
550
|
var _c;
|
|
554
551
|
return __generator(this, function (_d) {
|
|
555
552
|
switch (_d.label) {
|
|
@@ -559,7 +556,6 @@ var deserializeAws_restJson1PostContentCommandError = function (output, context)
|
|
|
559
556
|
return [4, parseBody(output.body, context)];
|
|
560
557
|
case 1:
|
|
561
558
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
562
|
-
errorCode = "UnknownError";
|
|
563
559
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
560
|
_b = errorCode;
|
|
565
561
|
switch (_b) {
|
|
@@ -611,10 +607,12 @@ var deserializeAws_restJson1PostContentCommandError = function (output, context)
|
|
|
611
607
|
case 23: throw _d.sent();
|
|
612
608
|
case 24:
|
|
613
609
|
parsedBody = parsedOutput.body;
|
|
610
|
+
$metadata = deserializeMetadata(output);
|
|
611
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
614
612
|
response = new __BaseException({
|
|
615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
613
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
616
614
|
$fault: "client",
|
|
617
|
-
$metadata:
|
|
615
|
+
$metadata: $metadata,
|
|
618
616
|
});
|
|
619
617
|
throw __decorateServiceException(response, parsedBody);
|
|
620
618
|
}
|
|
@@ -697,7 +695,7 @@ export var deserializeAws_restJson1PostTextCommand = function (output, context)
|
|
|
697
695
|
});
|
|
698
696
|
}); };
|
|
699
697
|
var deserializeAws_restJson1PostTextCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
700
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
701
699
|
var _c;
|
|
702
700
|
return __generator(this, function (_d) {
|
|
703
701
|
switch (_d.label) {
|
|
@@ -707,7 +705,6 @@ var deserializeAws_restJson1PostTextCommandError = function (output, context) {
|
|
|
707
705
|
return [4, parseBody(output.body, context)];
|
|
708
706
|
case 1:
|
|
709
707
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
710
|
-
errorCode = "UnknownError";
|
|
711
708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
709
|
_b = errorCode;
|
|
713
710
|
switch (_b) {
|
|
@@ -747,10 +744,12 @@ var deserializeAws_restJson1PostTextCommandError = function (output, context) {
|
|
|
747
744
|
case 17: throw _d.sent();
|
|
748
745
|
case 18:
|
|
749
746
|
parsedBody = parsedOutput.body;
|
|
747
|
+
$metadata = deserializeMetadata(output);
|
|
748
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
750
749
|
response = new __BaseException({
|
|
751
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
750
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
752
751
|
$fault: "client",
|
|
753
|
-
$metadata:
|
|
752
|
+
$metadata: $metadata,
|
|
754
753
|
});
|
|
755
754
|
throw __decorateServiceException(response, parsedBody);
|
|
756
755
|
}
|
|
@@ -816,7 +815,7 @@ export var deserializeAws_restJson1PutSessionCommand = function (output, context
|
|
|
816
815
|
});
|
|
817
816
|
}); };
|
|
818
817
|
var deserializeAws_restJson1PutSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
819
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
818
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
820
819
|
var _c;
|
|
821
820
|
return __generator(this, function (_d) {
|
|
822
821
|
switch (_d.label) {
|
|
@@ -826,7 +825,6 @@ var deserializeAws_restJson1PutSessionCommandError = function (output, context)
|
|
|
826
825
|
return [4, parseBody(output.body, context)];
|
|
827
826
|
case 1:
|
|
828
827
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
829
|
-
errorCode = "UnknownError";
|
|
830
828
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
829
|
_b = errorCode;
|
|
832
830
|
switch (_b) {
|
|
@@ -866,10 +864,12 @@ var deserializeAws_restJson1PutSessionCommandError = function (output, context)
|
|
|
866
864
|
case 17: throw _d.sent();
|
|
867
865
|
case 18:
|
|
868
866
|
parsedBody = parsedOutput.body;
|
|
867
|
+
$metadata = deserializeMetadata(output);
|
|
868
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
869
869
|
response = new __BaseException({
|
|
870
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
871
871
|
$fault: "client",
|
|
872
|
-
$metadata:
|
|
872
|
+
$metadata: $metadata,
|
|
873
873
|
});
|
|
874
874
|
throw __decorateServiceException(response, parsedBody);
|
|
875
875
|
}
|
|
@@ -1011,11 +1011,9 @@ var deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = function (pa
|
|
|
1011
1011
|
});
|
|
1012
1012
|
}); };
|
|
1013
1013
|
var serializeAws_restJson1ActiveContext = function (input, context) {
|
|
1014
|
-
return __assign(__assign(__assign({}, (input.name
|
|
1015
|
-
input.parameters !== null && {
|
|
1014
|
+
return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.parameters != null && {
|
|
1016
1015
|
parameters: serializeAws_restJson1ActiveContextParametersMap(input.parameters, context),
|
|
1017
|
-
})), (input.timeToLive
|
|
1018
|
-
input.timeToLive !== null && {
|
|
1016
|
+
})), (input.timeToLive != null && {
|
|
1019
1017
|
timeToLive: serializeAws_restJson1ActiveContextTimeToLive(input.timeToLive, context),
|
|
1020
1018
|
}));
|
|
1021
1019
|
};
|
|
@@ -1040,21 +1038,13 @@ var serializeAws_restJson1ActiveContextsList = function (input, context) {
|
|
|
1040
1038
|
});
|
|
1041
1039
|
};
|
|
1042
1040
|
var serializeAws_restJson1ActiveContextTimeToLive = function (input, context) {
|
|
1043
|
-
return __assign(__assign({}, (input.timeToLiveInSeconds
|
|
1044
|
-
input.timeToLiveInSeconds !== null && { timeToLiveInSeconds: input.timeToLiveInSeconds })), (input.turnsToLive !== undefined && input.turnsToLive !== null && { turnsToLive: input.turnsToLive }));
|
|
1041
|
+
return __assign(__assign({}, (input.timeToLiveInSeconds != null && { timeToLiveInSeconds: input.timeToLiveInSeconds })), (input.turnsToLive != null && { turnsToLive: input.turnsToLive }));
|
|
1045
1042
|
};
|
|
1046
1043
|
var serializeAws_restJson1DialogAction = function (input, context) {
|
|
1047
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.fulfillmentState
|
|
1048
|
-
input.fulfillmentState !== null && { fulfillmentState: input.fulfillmentState })), (input.intentName !== undefined && input.intentName !== null && { intentName: input.intentName })), (input.message !== undefined && input.message !== null && { message: input.message })), (input.messageFormat !== undefined && input.messageFormat !== null && { messageFormat: input.messageFormat })), (input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit })), (input.slots !== undefined &&
|
|
1049
|
-
input.slots !== null && { slots: serializeAws_restJson1StringMap(input.slots, context) })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
1044
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.fulfillmentState != null && { fulfillmentState: input.fulfillmentState })), (input.intentName != null && { intentName: input.intentName })), (input.message != null && { message: input.message })), (input.messageFormat != null && { messageFormat: input.messageFormat })), (input.slotToElicit != null && { slotToElicit: input.slotToElicit })), (input.slots != null && { slots: serializeAws_restJson1StringMap(input.slots, context) })), (input.type != null && { type: input.type }));
|
|
1050
1045
|
};
|
|
1051
1046
|
var serializeAws_restJson1IntentSummary = function (input, context) {
|
|
1052
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkpointLabel
|
|
1053
|
-
input.checkpointLabel !== null && { checkpointLabel: input.checkpointLabel })), (input.confirmationStatus !== undefined &&
|
|
1054
|
-
input.confirmationStatus !== null && { confirmationStatus: input.confirmationStatus })), (input.dialogActionType !== undefined &&
|
|
1055
|
-
input.dialogActionType !== null && { dialogActionType: input.dialogActionType })), (input.fulfillmentState !== undefined &&
|
|
1056
|
-
input.fulfillmentState !== null && { fulfillmentState: input.fulfillmentState })), (input.intentName !== undefined && input.intentName !== null && { intentName: input.intentName })), (input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit })), (input.slots !== undefined &&
|
|
1057
|
-
input.slots !== null && { slots: serializeAws_restJson1StringMap(input.slots, context) }));
|
|
1047
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkpointLabel != null && { checkpointLabel: input.checkpointLabel })), (input.confirmationStatus != null && { confirmationStatus: input.confirmationStatus })), (input.dialogActionType != null && { dialogActionType: input.dialogActionType })), (input.fulfillmentState != null && { fulfillmentState: input.fulfillmentState })), (input.intentName != null && { intentName: input.intentName })), (input.slotToElicit != null && { slotToElicit: input.slotToElicit })), (input.slots != null && { slots: serializeAws_restJson1StringMap(input.slots, context) }));
|
|
1058
1048
|
};
|
|
1059
1049
|
var serializeAws_restJson1IntentSummaryList = function (input, context) {
|
|
1060
1050
|
return input
|
|
@@ -1079,10 +1069,10 @@ var serializeAws_restJson1StringMap = function (input, context) {
|
|
|
1079
1069
|
var deserializeAws_restJson1ActiveContext = function (output, context) {
|
|
1080
1070
|
return {
|
|
1081
1071
|
name: __expectString(output.name),
|
|
1082
|
-
parameters: output.parameters
|
|
1072
|
+
parameters: output.parameters != null
|
|
1083
1073
|
? deserializeAws_restJson1ActiveContextParametersMap(output.parameters, context)
|
|
1084
1074
|
: undefined,
|
|
1085
|
-
timeToLive: output.timeToLive
|
|
1075
|
+
timeToLive: output.timeToLive != null
|
|
1086
1076
|
? deserializeAws_restJson1ActiveContextTimeToLive(output.timeToLive, context)
|
|
1087
1077
|
: undefined,
|
|
1088
1078
|
};
|
|
@@ -1127,18 +1117,14 @@ var deserializeAws_restJson1DialogAction = function (output, context) {
|
|
|
1127
1117
|
message: __expectString(output.message),
|
|
1128
1118
|
messageFormat: __expectString(output.messageFormat),
|
|
1129
1119
|
slotToElicit: __expectString(output.slotToElicit),
|
|
1130
|
-
slots: output.slots
|
|
1131
|
-
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1132
|
-
: undefined,
|
|
1120
|
+
slots: output.slots != null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined,
|
|
1133
1121
|
type: __expectString(output.type),
|
|
1134
1122
|
};
|
|
1135
1123
|
};
|
|
1136
1124
|
var deserializeAws_restJson1GenericAttachment = function (output, context) {
|
|
1137
1125
|
return {
|
|
1138
1126
|
attachmentLinkUrl: __expectString(output.attachmentLinkUrl),
|
|
1139
|
-
buttons: output.buttons
|
|
1140
|
-
? deserializeAws_restJson1listOfButtons(output.buttons, context)
|
|
1141
|
-
: undefined,
|
|
1127
|
+
buttons: output.buttons != null ? deserializeAws_restJson1listOfButtons(output.buttons, context) : undefined,
|
|
1142
1128
|
imageUrl: __expectString(output.imageUrl),
|
|
1143
1129
|
subTitle: __expectString(output.subTitle),
|
|
1144
1130
|
title: __expectString(output.title),
|
|
@@ -1179,9 +1165,7 @@ var deserializeAws_restJson1IntentSummary = function (output, context) {
|
|
|
1179
1165
|
fulfillmentState: __expectString(output.fulfillmentState),
|
|
1180
1166
|
intentName: __expectString(output.intentName),
|
|
1181
1167
|
slotToElicit: __expectString(output.slotToElicit),
|
|
1182
|
-
slots: output.slots
|
|
1183
|
-
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1184
|
-
: undefined,
|
|
1168
|
+
slots: output.slots != null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined,
|
|
1185
1169
|
};
|
|
1186
1170
|
};
|
|
1187
1171
|
var deserializeAws_restJson1IntentSummaryList = function (output, context) {
|
|
@@ -1209,18 +1193,16 @@ var deserializeAws_restJson1listOfButtons = function (output, context) {
|
|
|
1209
1193
|
var deserializeAws_restJson1PredictedIntent = function (output, context) {
|
|
1210
1194
|
return {
|
|
1211
1195
|
intentName: __expectString(output.intentName),
|
|
1212
|
-
nluIntentConfidence: output.nluIntentConfidence
|
|
1196
|
+
nluIntentConfidence: output.nluIntentConfidence != null
|
|
1213
1197
|
? deserializeAws_restJson1IntentConfidence(output.nluIntentConfidence, context)
|
|
1214
1198
|
: undefined,
|
|
1215
|
-
slots: output.slots
|
|
1216
|
-
? deserializeAws_restJson1StringMap(output.slots, context)
|
|
1217
|
-
: undefined,
|
|
1199
|
+
slots: output.slots != null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined,
|
|
1218
1200
|
};
|
|
1219
1201
|
};
|
|
1220
1202
|
var deserializeAws_restJson1ResponseCard = function (output, context) {
|
|
1221
1203
|
return {
|
|
1222
1204
|
contentType: __expectString(output.contentType),
|
|
1223
|
-
genericAttachments: output.genericAttachments
|
|
1205
|
+
genericAttachments: output.genericAttachments != null
|
|
1224
1206
|
? deserializeAws_restJson1genericAttachmentList(output.genericAttachments, context)
|
|
1225
1207
|
: undefined,
|
|
1226
1208
|
version: __expectString(output.version),
|
|
@@ -1298,5 +1280,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1298
1280
|
if (data["__type"] !== undefined) {
|
|
1299
1281
|
return sanitizeErrorCode(data["__type"]);
|
|
1300
1282
|
}
|
|
1301
|
-
return "";
|
|
1302
1283
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime Service 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",
|
|
@@ -20,35 +20,35 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
42
|
+
"@aws-sdk/types": "3.127.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
45
45
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
52
52
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
53
53
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
54
54
|
"tslib": "^2.3.1"
|