@aws-sdk/client-lex-runtime-v2 3.42.0 → 3.43.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,17 @@
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
@@ -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
  };
@@ -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
  };
@@ -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.42.0",
4
+ "version": "3.43.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,7 +21,7 @@
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.42.0",
24
+ "@aws-sdk/client-sts": "3.43.0",
25
25
  "@aws-sdk/config-resolver": "3.40.0",
26
26
  "@aws-sdk/credential-provider-node": "3.41.0",
27
27
  "@aws-sdk/eventstream-handler-node": "3.40.0",