@aws-sdk/client-lex-runtime-v2 3.40.0 → 3.45.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,47 @@
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
31
+
32
+
33
+
34
+
35
+
36
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
48
 
8
49
 
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -78,6 +79,10 @@ const partitionHash = {
78
79
  hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
79
80
  tags: [],
80
81
  },
82
+ {
83
+ hostname: "runtime-v2-lex-fips.{region}.c2s.ic.gov",
84
+ tags: ["fips"],
85
+ },
81
86
  ],
82
87
  },
83
88
  "aws-iso-b": {
@@ -88,6 +93,10 @@ const partitionHash = {
88
93
  hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
89
94
  tags: [],
90
95
  },
96
+ {
97
+ hostname: "runtime-v2-lex-fips.{region}.sc2s.sgov.gov",
98
+ tags: ["fips"],
99
+ },
91
100
  ],
92
101
  },
93
102
  "aws-us-gov": {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecognizeTextRequest = exports.PutSessionRequest = exports.ConfigurationEvent = exports.SessionState = exports.Interpretation = exports.Intent = exports.Slot = exports.TranscriptEvent = exports.TextResponseEvent = exports.PlaybackInterruptionEvent = exports.PlaybackInterruptionReason = exports.InputMode = exports.HeartbeatEvent = exports.TextInputEvent = exports.PlaybackCompletionEvent = exports.DTMFInputEvent = exports.DisconnectionEvent = exports.ConversationMode = exports.RecognizeUtteranceResponse = exports.RecognizeUtteranceRequest = exports.PutSessionResponse = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogAction = exports.DialogActionType = exports.Message = exports.ImageResponseCard = exports.Button = exports.MessageContentType = exports.SentimentResponse = exports.SentimentScore = exports.SentimentType = exports.ConfidenceScore = exports.IntentState = exports.Value = exports.Shape = exports.ConfirmationState = exports.GetSessionRequest = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.ConflictException = exports.AudioResponseEvent = exports.AudioInputEvent = exports.ActiveContext = exports.ActiveContextTimeToLive = exports.AccessDeniedException = void 0;
4
- exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = void 0;
3
+ exports.PutSessionRequest = exports.ConfigurationEvent = exports.SessionState = exports.Interpretation = exports.Intent = exports.Slot = exports.TranscriptEvent = exports.TextResponseEvent = exports.PlaybackInterruptionEvent = exports.PlaybackInterruptionReason = exports.InputMode = exports.HeartbeatEvent = exports.TextInputEvent = exports.PlaybackCompletionEvent = exports.DTMFInputEvent = exports.DisconnectionEvent = exports.ConversationMode = exports.RecognizeUtteranceResponse = exports.RecognizeUtteranceRequest = exports.PutSessionResponse = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogAction = exports.DialogActionType = exports.StyleType = exports.Message = exports.ImageResponseCard = exports.Button = exports.MessageContentType = exports.SentimentResponse = exports.SentimentScore = exports.SentimentType = exports.ConfidenceScore = exports.IntentState = exports.Value = exports.Shape = exports.ConfirmationState = exports.GetSessionRequest = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.ConflictException = exports.AudioResponseEvent = exports.AudioInputEvent = exports.ActiveContext = exports.ActiveContextTimeToLive = exports.AccessDeniedException = void 0;
4
+ exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = exports.RecognizeTextRequest = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  var AccessDeniedException;
7
7
  (function (AccessDeniedException) {
@@ -159,6 +159,12 @@ var Message;
159
159
  ...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
160
160
  });
161
161
  })(Message = exports.Message || (exports.Message = {}));
162
+ var StyleType;
163
+ (function (StyleType) {
164
+ StyleType["DEFAULT"] = "Default";
165
+ StyleType["SPELL_BY_LETTER"] = "SpellByLetter";
166
+ StyleType["SPELL_BY_WORD"] = "SpellByWord";
167
+ })(StyleType = exports.StyleType || (exports.StyleType = {}));
162
168
  var DialogActionType;
163
169
  (function (DialogActionType) {
164
170
  DialogActionType["CLOSE"] = "Close";
@@ -1497,6 +1497,8 @@ const serializeAws_restJson1ConfigurationEvent = (input, context) => {
1497
1497
  };
1498
1498
  const serializeAws_restJson1DialogAction = (input, context) => {
1499
1499
  return {
1500
+ ...(input.slotElicitationStyle !== undefined &&
1501
+ input.slotElicitationStyle !== null && { slotElicitationStyle: input.slotElicitationStyle }),
1500
1502
  ...(input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit }),
1501
1503
  ...(input.type !== undefined && input.type !== null && { type: input.type }),
1502
1504
  };
@@ -1754,6 +1756,7 @@ const deserializeAws_restJson1DependencyFailedException = (output, context) => {
1754
1756
  };
1755
1757
  const deserializeAws_restJson1DialogAction = (output, context) => {
1756
1758
  return {
1759
+ slotElicitationStyle: smithy_client_1.expectString(output.slotElicitationStyle),
1757
1760
  slotToElicit: smithy_client_1.expectString(output.slotToElicit),
1758
1761
  type: smithy_client_1.expectString(output.type),
1759
1762
  };
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -76,6 +77,10 @@ var partitionHash = {
76
77
  hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
77
78
  tags: [],
78
79
  },
80
+ {
81
+ hostname: "runtime-v2-lex-fips.{region}.c2s.ic.gov",
82
+ tags: ["fips"],
83
+ },
79
84
  ],
80
85
  },
81
86
  "aws-iso-b": {
@@ -86,6 +91,10 @@ var partitionHash = {
86
91
  hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
87
92
  tags: [],
88
93
  },
94
+ {
95
+ hostname: "runtime-v2-lex-fips.{region}.sc2s.sgov.gov",
96
+ tags: ["fips"],
97
+ },
89
98
  ],
90
99
  },
91
100
  "aws-us-gov": {
@@ -114,6 +114,12 @@ export var Message;
114
114
  (function (Message) {
115
115
  Message.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.content && { content: SENSITIVE_STRING }))); };
116
116
  })(Message || (Message = {}));
117
+ export var StyleType;
118
+ (function (StyleType) {
119
+ StyleType["DEFAULT"] = "Default";
120
+ StyleType["SPELL_BY_LETTER"] = "SpellByLetter";
121
+ StyleType["SPELL_BY_WORD"] = "SpellByWord";
122
+ })(StyleType || (StyleType = {}));
117
123
  export var DialogActionType;
118
124
  (function (DialogActionType) {
119
125
  DialogActionType["CLOSE"] = "Close";
@@ -1690,7 +1690,8 @@ var serializeAws_restJson1ConfigurationEvent = function (input, context) {
1690
1690
  }));
1691
1691
  };
1692
1692
  var serializeAws_restJson1DialogAction = function (input, context) {
1693
- return __assign(__assign({}, (input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit })), (input.type !== undefined && input.type !== null && { type: input.type }));
1693
+ return __assign(__assign(__assign({}, (input.slotElicitationStyle !== undefined &&
1694
+ input.slotElicitationStyle !== null && { slotElicitationStyle: input.slotElicitationStyle })), (input.slotToElicit !== undefined && input.slotToElicit !== null && { slotToElicit: input.slotToElicit })), (input.type !== undefined && input.type !== null && { type: input.type }));
1694
1695
  };
1695
1696
  var serializeAws_restJson1DisconnectionEvent = function (input, context) {
1696
1697
  return __assign(__assign({}, (input.clientTimestampMillis !== undefined &&
@@ -1900,6 +1901,7 @@ var deserializeAws_restJson1DependencyFailedException = function (output, contex
1900
1901
  };
1901
1902
  var deserializeAws_restJson1DialogAction = function (output, context) {
1902
1903
  return {
1904
+ slotElicitationStyle: __expectString(output.slotElicitationStyle),
1903
1905
  slotToElicit: __expectString(output.slotToElicit),
1904
1906
  type: __expectString(output.type),
1905
1907
  };
@@ -33,7 +33,7 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
33
33
  *
34
34
  * @see {@link DeleteSessionCommandInput} for command's `input` shape.
35
35
  * @see {@link DeleteSessionCommandOutput} for command's `response` shape.
36
- * @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
36
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
37
37
  *
38
38
  */
39
39
  export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
@@ -28,7 +28,7 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
28
28
  *
29
29
  * @see {@link GetSessionCommandInput} for command's `input` shape.
30
30
  * @see {@link GetSessionCommandOutput} for command's `response` shape.
31
- * @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
31
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
32
32
  *
33
33
  */
34
34
  export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
@@ -22,7 +22,7 @@ export interface PutSessionCommandOutput extends PutSessionResponse, __MetadataB
22
22
  *
23
23
  * @see {@link PutSessionCommandInput} for command's `input` shape.
24
24
  * @see {@link PutSessionCommandOutput} for command's `response` shape.
25
- * @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
25
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
26
26
  *
27
27
  */
28
28
  export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
@@ -50,7 +50,7 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
50
50
  *
51
51
  * @see {@link RecognizeTextCommandInput} for command's `input` shape.
52
52
  * @see {@link RecognizeTextCommandOutput} for command's `response` shape.
53
- * @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
53
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
54
54
  *
55
55
  */
56
56
  export declare class RecognizeTextCommand extends $Command<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig> {
@@ -92,7 +92,7 @@ export interface RecognizeUtteranceCommandOutput extends RecognizeUtteranceRespo
92
92
  *
93
93
  * @see {@link RecognizeUtteranceCommandInput} for command's `input` shape.
94
94
  * @see {@link RecognizeUtteranceCommandOutput} for command's `response` shape.
95
- * @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
95
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
96
96
  *
97
97
  */
98
98
  export declare class RecognizeUtteranceCommand extends $Command<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig> {
@@ -79,7 +79,7 @@ export interface StartConversationCommandOutput extends StartConversationRespons
79
79
  *
80
80
  * @see {@link StartConversationCommandInput} for command's `input` shape.
81
81
  * @see {@link StartConversationCommandOutput} for command's `response` shape.
82
- * @see {@link LexRuntimeV2ClientResolvedConfig | config} for command's `input` shape.
82
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
83
83
  *
84
84
  */
85
85
  export declare class StartConversationCommand extends $Command<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig> {
@@ -503,6 +503,11 @@ export declare namespace Message {
503
503
  */
504
504
  const filterSensitiveLog: (obj: Message) => any;
505
505
  }
506
+ export declare enum StyleType {
507
+ DEFAULT = "Default",
508
+ SPELL_BY_LETTER = "SpellByLetter",
509
+ SPELL_BY_WORD = "SpellByWord"
510
+ }
506
511
  export declare enum DialogActionType {
507
512
  CLOSE = "Close",
508
513
  CONFIRM_INTENT = "ConfirmIntent",
@@ -548,6 +553,23 @@ export interface DialogAction {
548
553
  * <p>The name of the slot that should be elicited from the user.</p>
549
554
  */
550
555
  slotToElicit?: string;
556
+ /**
557
+ * <p>Configures the slot to use spell-by-letter or spell-by-word style.
558
+ * When you use a style on a slot, users can spell out their input to make
559
+ * it clear to your bot.</p>
560
+ * <ul>
561
+ * <li>
562
+ * <p>Spell by letter - "b" "o" "b"</p>
563
+ * </li>
564
+ * <li>
565
+ * <p>Spell by word - "b as in boy" "o as in oscar" "b as in
566
+ * boy"</p>
567
+ * </li>
568
+ * </ul>
569
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html">
570
+ * Using spelling to enter slot values </a>.</p>
571
+ */
572
+ slotElicitationStyle?: StyleType | string;
551
573
  }
552
574
  export declare namespace DialogAction {
553
575
  /**
@@ -273,6 +273,11 @@ export declare namespace Message {
273
273
 
274
274
  const filterSensitiveLog: (obj: Message) => any;
275
275
  }
276
+ export declare enum StyleType {
277
+ DEFAULT = "Default",
278
+ SPELL_BY_LETTER = "SpellByLetter",
279
+ SPELL_BY_WORD = "SpellByWord"
280
+ }
276
281
  export declare enum DialogActionType {
277
282
  CLOSE = "Close",
278
283
  CONFIRM_INTENT = "ConfirmIntent",
@@ -287,6 +292,8 @@ export interface DialogAction {
287
292
  type: DialogActionType | string | undefined;
288
293
 
289
294
  slotToElicit?: string;
295
+
296
+ slotElicitationStyle?: StyleType | string;
290
297
  }
291
298
  export declare namespace DialogAction {
292
299
 
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.40.0",
4
+ "version": "3.45.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.40.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.40.0",
24
+ "@aws-sdk/client-sts": "3.45.0",
25
+ "@aws-sdk/config-resolver": "3.45.0",
26
+ "@aws-sdk/credential-provider-node": "3.45.0",
27
27
  "@aws-sdk/eventstream-handler-node": "3.40.0",
28
28
  "@aws-sdk/eventstream-serde-browser": "3.40.0",
29
29
  "@aws-sdk/eventstream-serde-config-resolver": "3.40.0",
@@ -37,13 +37,13 @@
37
37
  "@aws-sdk/middleware-logger": "3.40.0",
38
38
  "@aws-sdk/middleware-retry": "3.40.0",
39
39
  "@aws-sdk/middleware-serde": "3.40.0",
40
- "@aws-sdk/middleware-signing": "3.40.0",
40
+ "@aws-sdk/middleware-signing": "3.45.0",
41
41
  "@aws-sdk/middleware-stack": "3.40.0",
42
42
  "@aws-sdk/middleware-user-agent": "3.40.0",
43
43
  "@aws-sdk/node-config-provider": "3.40.0",
44
44
  "@aws-sdk/node-http-handler": "3.40.0",
45
45
  "@aws-sdk/protocol-http": "3.40.0",
46
- "@aws-sdk/smithy-client": "3.40.0",
46
+ "@aws-sdk/smithy-client": "3.41.0",
47
47
  "@aws-sdk/types": "3.40.0",
48
48
  "@aws-sdk/url-parser": "3.40.0",
49
49
  "@aws-sdk/util-base64-browser": "3.37.0",