@aws-sdk/client-lex-runtime-v2 3.100.0 → 3.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
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.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **client-lex-runtime-v2:** serialize eventstream payload properly ([#3655](https://github.com/aws/aws-sdk-js-v3/issues/3655)) ([757f883](https://github.com/aws/aws-sdk-js-v3/commit/757f88331f78a29d976a97a7ed5dc4337a1aedfa))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.109.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.108.1...v3.109.0) (2022-06-13)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
20
+
21
+
22
+
23
+
24
+
25
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
@@ -7,6 +7,7 @@ const middleware_content_length_1 = require("@aws-sdk/middleware-content-length"
7
7
  const middleware_eventstream_1 = require("@aws-sdk/middleware-eventstream");
8
8
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
9
9
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
10
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
10
11
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
12
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
12
13
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -29,6 +30,7 @@ class LexRuntimeV2Client extends smithy_client_1.Client {
29
30
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
30
31
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
31
32
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
33
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
32
34
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
33
35
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
34
36
  }
@@ -905,7 +905,8 @@ const serializeAws_restJson1AudioInputEvent_event = (input, context) => {
905
905
  },
906
906
  body: new Uint8Array(),
907
907
  };
908
- message.body = serializeAws_restJson1AudioInputEvent(input, context);
908
+ const body = serializeAws_restJson1AudioInputEvent(input, context);
909
+ message.body = context.utf8Decoder(JSON.stringify(body));
909
910
  return message;
910
911
  };
911
912
  const serializeAws_restJson1ConfigurationEvent_event = (input, context) => {
@@ -916,7 +917,8 @@ const serializeAws_restJson1ConfigurationEvent_event = (input, context) => {
916
917
  },
917
918
  body: new Uint8Array(),
918
919
  };
919
- message.body = serializeAws_restJson1ConfigurationEvent(input, context);
920
+ const body = serializeAws_restJson1ConfigurationEvent(input, context);
921
+ message.body = context.utf8Decoder(JSON.stringify(body));
920
922
  return message;
921
923
  };
922
924
  const serializeAws_restJson1DisconnectionEvent_event = (input, context) => {
@@ -927,7 +929,8 @@ const serializeAws_restJson1DisconnectionEvent_event = (input, context) => {
927
929
  },
928
930
  body: new Uint8Array(),
929
931
  };
930
- message.body = serializeAws_restJson1DisconnectionEvent(input, context);
932
+ const body = serializeAws_restJson1DisconnectionEvent(input, context);
933
+ message.body = context.utf8Decoder(JSON.stringify(body));
931
934
  return message;
932
935
  };
933
936
  const serializeAws_restJson1DTMFInputEvent_event = (input, context) => {
@@ -938,7 +941,8 @@ const serializeAws_restJson1DTMFInputEvent_event = (input, context) => {
938
941
  },
939
942
  body: new Uint8Array(),
940
943
  };
941
- message.body = serializeAws_restJson1DTMFInputEvent(input, context);
944
+ const body = serializeAws_restJson1DTMFInputEvent(input, context);
945
+ message.body = context.utf8Decoder(JSON.stringify(body));
942
946
  return message;
943
947
  };
944
948
  const serializeAws_restJson1PlaybackCompletionEvent_event = (input, context) => {
@@ -949,7 +953,8 @@ const serializeAws_restJson1PlaybackCompletionEvent_event = (input, context) =>
949
953
  },
950
954
  body: new Uint8Array(),
951
955
  };
952
- message.body = serializeAws_restJson1PlaybackCompletionEvent(input, context);
956
+ const body = serializeAws_restJson1PlaybackCompletionEvent(input, context);
957
+ message.body = context.utf8Decoder(JSON.stringify(body));
953
958
  return message;
954
959
  };
955
960
  const serializeAws_restJson1TextInputEvent_event = (input, context) => {
@@ -960,7 +965,8 @@ const serializeAws_restJson1TextInputEvent_event = (input, context) => {
960
965
  },
961
966
  body: new Uint8Array(),
962
967
  };
963
- message.body = serializeAws_restJson1TextInputEvent(input, context);
968
+ const body = serializeAws_restJson1TextInputEvent(input, context);
969
+ message.body = context.utf8Decoder(JSON.stringify(body));
964
970
  return message;
965
971
  };
966
972
  const deserializeAws_restJson1AccessDeniedException_event = async (output, context) => {
@@ -5,6 +5,7 @@ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
5
  import { resolveEventStreamConfig, } from "@aws-sdk/middleware-eventstream";
6
6
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
7
7
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
8
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
8
9
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
9
10
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
10
11
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -29,6 +30,7 @@ var LexRuntimeV2Client = (function (_super) {
29
30
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
30
31
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
31
32
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
33
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
32
34
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
33
35
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
34
36
  return _this;
@@ -1068,7 +1068,8 @@ var serializeAws_restJson1AudioInputEvent_event = function (input, context) {
1068
1068
  },
1069
1069
  body: new Uint8Array(),
1070
1070
  };
1071
- message.body = serializeAws_restJson1AudioInputEvent(input, context);
1071
+ var body = serializeAws_restJson1AudioInputEvent(input, context);
1072
+ message.body = context.utf8Decoder(JSON.stringify(body));
1072
1073
  return message;
1073
1074
  };
1074
1075
  var serializeAws_restJson1ConfigurationEvent_event = function (input, context) {
@@ -1079,7 +1080,8 @@ var serializeAws_restJson1ConfigurationEvent_event = function (input, context) {
1079
1080
  },
1080
1081
  body: new Uint8Array(),
1081
1082
  };
1082
- message.body = serializeAws_restJson1ConfigurationEvent(input, context);
1083
+ var body = serializeAws_restJson1ConfigurationEvent(input, context);
1084
+ message.body = context.utf8Decoder(JSON.stringify(body));
1083
1085
  return message;
1084
1086
  };
1085
1087
  var serializeAws_restJson1DisconnectionEvent_event = function (input, context) {
@@ -1090,7 +1092,8 @@ var serializeAws_restJson1DisconnectionEvent_event = function (input, context) {
1090
1092
  },
1091
1093
  body: new Uint8Array(),
1092
1094
  };
1093
- message.body = serializeAws_restJson1DisconnectionEvent(input, context);
1095
+ var body = serializeAws_restJson1DisconnectionEvent(input, context);
1096
+ message.body = context.utf8Decoder(JSON.stringify(body));
1094
1097
  return message;
1095
1098
  };
1096
1099
  var serializeAws_restJson1DTMFInputEvent_event = function (input, context) {
@@ -1101,7 +1104,8 @@ var serializeAws_restJson1DTMFInputEvent_event = function (input, context) {
1101
1104
  },
1102
1105
  body: new Uint8Array(),
1103
1106
  };
1104
- message.body = serializeAws_restJson1DTMFInputEvent(input, context);
1107
+ var body = serializeAws_restJson1DTMFInputEvent(input, context);
1108
+ message.body = context.utf8Decoder(JSON.stringify(body));
1105
1109
  return message;
1106
1110
  };
1107
1111
  var serializeAws_restJson1PlaybackCompletionEvent_event = function (input, context) {
@@ -1112,7 +1116,8 @@ var serializeAws_restJson1PlaybackCompletionEvent_event = function (input, conte
1112
1116
  },
1113
1117
  body: new Uint8Array(),
1114
1118
  };
1115
- message.body = serializeAws_restJson1PlaybackCompletionEvent(input, context);
1119
+ var body = serializeAws_restJson1PlaybackCompletionEvent(input, context);
1120
+ message.body = context.utf8Decoder(JSON.stringify(body));
1116
1121
  return message;
1117
1122
  };
1118
1123
  var serializeAws_restJson1TextInputEvent_event = function (input, context) {
@@ -1123,7 +1128,8 @@ var serializeAws_restJson1TextInputEvent_event = function (input, context) {
1123
1128
  },
1124
1129
  body: new Uint8Array(),
1125
1130
  };
1126
- message.body = serializeAws_restJson1TextInputEvent(input, context);
1131
+ var body = serializeAws_restJson1TextInputEvent(input, context);
1132
+ message.body = context.utf8Decoder(JSON.stringify(body));
1127
1133
  return message;
1128
1134
  };
1129
1135
  var deserializeAws_restJson1AccessDeniedException_event = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -64,9 +64,7 @@ export interface ActiveContext {
64
64
  * list of contexts for the session. If you specify an empty list, all
65
65
  * contexts for the session are cleared. </p>
66
66
  */
67
- contextAttributes: {
68
- [key: string]: string;
69
- } | undefined;
67
+ contextAttributes: Record<string, string> | undefined;
70
68
  }
71
69
  export declare namespace ActiveContext {
72
70
  /**
@@ -616,11 +614,7 @@ export interface RuntimeHints {
616
614
  * accuracy</a>.</p>
617
615
  * <p>The intent name and slot name must exist.</p>
618
616
  */
619
- slotHints?: {
620
- [key: string]: {
621
- [key: string]: RuntimeHintDetails;
622
- };
623
- };
617
+ slotHints?: Record<string, Record<string, RuntimeHintDetails>>;
624
618
  }
625
619
  export declare namespace RuntimeHints {
626
620
  /**
@@ -1169,9 +1163,7 @@ export interface Intent {
1169
1163
  * to the value of the slot. If a slot has not been filled, the value is
1170
1164
  * null.</p>
1171
1165
  */
1172
- slots?: {
1173
- [key: string]: Slot;
1174
- };
1166
+ slots?: Record<string, Slot>;
1175
1167
  /**
1176
1168
  * <p>Contains fulfillment information for the intent. </p>
1177
1169
  */
@@ -1245,9 +1237,7 @@ export interface SessionState {
1245
1237
  * information. It contains application information passed between Amazon Lex V2
1246
1238
  * and a client application.</p>
1247
1239
  */
1248
- sessionAttributes?: {
1249
- [key: string]: string;
1250
- };
1240
+ sessionAttributes?: Record<string, string>;
1251
1241
  /**
1252
1242
  * <p>A unique identifier for a specific request.</p>
1253
1243
  */
@@ -1278,9 +1268,7 @@ export interface ConfigurationEvent {
1278
1268
  * attributes. Don't create any request attributes for prefix
1279
1269
  * <code>x-amz-lex:</code>.</p>
1280
1270
  */
1281
- requestAttributes?: {
1282
- [key: string]: string;
1283
- };
1271
+ requestAttributes?: Record<string, string>;
1284
1272
  /**
1285
1273
  * <p>The message that Amazon Lex V2 returns in the response can be either text or
1286
1274
  * speech based on the <code>responseContentType</code> value.</p>
@@ -1397,9 +1385,7 @@ export interface PutSessionRequest {
1397
1385
  * attributes. Don't create any request attributes with the prefix
1398
1386
  * <code>x-amz-lex:</code>.</p>
1399
1387
  */
1400
- requestAttributes?: {
1401
- [key: string]: string;
1402
- };
1388
+ requestAttributes?: Record<string, string>;
1403
1389
  /**
1404
1390
  * <p>The message that Amazon Lex V2 returns in the response can be either text or
1405
1391
  * speech depending on the value of this parameter. </p>
@@ -1452,9 +1438,7 @@ export interface RecognizeTextRequest {
1452
1438
  * attributes. Don't create any request attributes with the prefix
1453
1439
  * <code>x-amz-lex:</code>.</p>
1454
1440
  */
1455
- requestAttributes?: {
1456
- [key: string]: string;
1457
- };
1441
+ requestAttributes?: Record<string, string>;
1458
1442
  }
1459
1443
  export declare namespace RecognizeTextRequest {
1460
1444
  /**
@@ -1687,9 +1671,7 @@ export interface IntentResultEvent {
1687
1671
  /**
1688
1672
  * <p>The attributes sent in the request.</p>
1689
1673
  */
1690
- requestAttributes?: {
1691
- [key: string]: string;
1692
- };
1674
+ requestAttributes?: Record<string, string>;
1693
1675
  /**
1694
1676
  * <p>The identifier of the session in use.</p>
1695
1677
  */
@@ -1734,9 +1716,7 @@ export interface RecognizeTextResponse {
1734
1716
  /**
1735
1717
  * <p>The attributes sent in the request.</p>
1736
1718
  */
1737
- requestAttributes?: {
1738
- [key: string]: string;
1739
- };
1719
+ requestAttributes?: Record<string, string>;
1740
1720
  /**
1741
1721
  * <p>The identifier of the session in use.</p>
1742
1722
  */
@@ -27,9 +27,7 @@ export interface ActiveContext {
27
27
 
28
28
  timeToLive: ActiveContextTimeToLive | undefined;
29
29
 
30
- contextAttributes: {
31
- [key: string]: string;
32
- } | undefined;
30
+ contextAttributes: Record<string, string> | undefined;
33
31
  }
34
32
  export declare namespace ActiveContext {
35
33
 
@@ -303,11 +301,7 @@ export declare namespace RuntimeHintDetails {
303
301
 
304
302
  export interface RuntimeHints {
305
303
 
306
- slotHints?: {
307
- [key: string]: {
308
- [key: string]: RuntimeHintDetails;
309
- };
310
- };
304
+ slotHints?: Record<string, Record<string, RuntimeHintDetails>>;
311
305
  }
312
306
  export declare namespace RuntimeHints {
313
307
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
4
- "version": "3.100.0",
4
+ "version": "3.110.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,41 +18,42 @@
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.100.0",
22
- "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.100.0",
24
- "@aws-sdk/eventstream-handler-node": "3.78.0",
25
- "@aws-sdk/eventstream-serde-browser": "3.78.0",
26
- "@aws-sdk/eventstream-serde-config-resolver": "3.78.0",
27
- "@aws-sdk/eventstream-serde-node": "3.78.0",
28
- "@aws-sdk/fetch-http-handler": "3.78.0",
29
- "@aws-sdk/hash-node": "3.78.0",
30
- "@aws-sdk/invalid-dependency": "3.78.0",
31
- "@aws-sdk/middleware-content-length": "3.78.0",
32
- "@aws-sdk/middleware-eventstream": "3.78.0",
33
- "@aws-sdk/middleware-host-header": "3.78.0",
34
- "@aws-sdk/middleware-logger": "3.78.0",
35
- "@aws-sdk/middleware-retry": "3.80.0",
36
- "@aws-sdk/middleware-serde": "3.78.0",
37
- "@aws-sdk/middleware-signing": "3.78.0",
38
- "@aws-sdk/middleware-stack": "3.78.0",
39
- "@aws-sdk/middleware-user-agent": "3.78.0",
40
- "@aws-sdk/node-config-provider": "3.80.0",
41
- "@aws-sdk/node-http-handler": "3.94.0",
42
- "@aws-sdk/protocol-http": "3.78.0",
43
- "@aws-sdk/smithy-client": "3.99.0",
44
- "@aws-sdk/types": "3.78.0",
45
- "@aws-sdk/url-parser": "3.78.0",
46
- "@aws-sdk/util-base64-browser": "3.58.0",
21
+ "@aws-sdk/client-sts": "3.110.0",
22
+ "@aws-sdk/config-resolver": "3.110.0",
23
+ "@aws-sdk/credential-provider-node": "3.110.0",
24
+ "@aws-sdk/eventstream-handler-node": "3.110.0",
25
+ "@aws-sdk/eventstream-serde-browser": "3.110.0",
26
+ "@aws-sdk/eventstream-serde-config-resolver": "3.110.0",
27
+ "@aws-sdk/eventstream-serde-node": "3.110.0",
28
+ "@aws-sdk/fetch-http-handler": "3.110.0",
29
+ "@aws-sdk/hash-node": "3.110.0",
30
+ "@aws-sdk/invalid-dependency": "3.110.0",
31
+ "@aws-sdk/middleware-content-length": "3.110.0",
32
+ "@aws-sdk/middleware-eventstream": "3.110.0",
33
+ "@aws-sdk/middleware-host-header": "3.110.0",
34
+ "@aws-sdk/middleware-logger": "3.110.0",
35
+ "@aws-sdk/middleware-recursion-detection": "3.110.0",
36
+ "@aws-sdk/middleware-retry": "3.110.0",
37
+ "@aws-sdk/middleware-serde": "3.110.0",
38
+ "@aws-sdk/middleware-signing": "3.110.0",
39
+ "@aws-sdk/middleware-stack": "3.110.0",
40
+ "@aws-sdk/middleware-user-agent": "3.110.0",
41
+ "@aws-sdk/node-config-provider": "3.110.0",
42
+ "@aws-sdk/node-http-handler": "3.110.0",
43
+ "@aws-sdk/protocol-http": "3.110.0",
44
+ "@aws-sdk/smithy-client": "3.110.0",
45
+ "@aws-sdk/types": "3.110.0",
46
+ "@aws-sdk/url-parser": "3.110.0",
47
+ "@aws-sdk/util-base64-browser": "3.109.0",
47
48
  "@aws-sdk/util-base64-node": "3.55.0",
48
49
  "@aws-sdk/util-body-length-browser": "3.55.0",
49
50
  "@aws-sdk/util-body-length-node": "3.55.0",
50
- "@aws-sdk/util-defaults-mode-browser": "3.99.0",
51
- "@aws-sdk/util-defaults-mode-node": "3.99.0",
52
- "@aws-sdk/util-user-agent-browser": "3.78.0",
53
- "@aws-sdk/util-user-agent-node": "3.80.0",
54
- "@aws-sdk/util-utf8-browser": "3.55.0",
55
- "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.110.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.110.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.110.0",
54
+ "@aws-sdk/util-user-agent-node": "3.110.0",
55
+ "@aws-sdk/util-utf8-browser": "3.109.0",
56
+ "@aws-sdk/util-utf8-node": "3.109.0",
56
57
  "tslib": "^2.3.1"
57
58
  },
58
59
  "devDependencies": {