@aws-sdk/client-lex-runtime-v2 3.34.0 → 3.37.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.
Files changed (138) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/LexRuntimeV2.js +1 -5
  3. package/{dist/cjs → dist-cjs}/LexRuntimeV2Client.js +10 -19
  4. package/dist-cjs/commands/DeleteSessionCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/GetSessionCommand.js +2 -35
  6. package/{dist/cjs → dist-cjs}/commands/PutSessionCommand.js +2 -29
  7. package/{dist/cjs → dist-cjs}/commands/RecognizeTextCommand.js +2 -31
  8. package/dist-cjs/commands/RecognizeUtteranceCommand.js +36 -0
  9. package/dist-cjs/commands/StartConversationCommand.js +38 -0
  10. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  11. package/{dist/cjs → dist-cjs}/index.js +0 -1
  12. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  13. package/{dist/cjs → dist-cjs}/models/models_0.js +2 -145
  14. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  19. package/{dist/es → dist-es}/LexRuntimeV2.js +1 -2
  20. package/{dist/es → dist-es}/LexRuntimeV2Client.js +1 -2
  21. package/{dist/es → dist-es}/commands/DeleteSessionCommand.js +2 -3
  22. package/{dist/es → dist-es}/commands/GetSessionCommand.js +2 -3
  23. package/{dist/es → dist-es}/commands/PutSessionCommand.js +2 -3
  24. package/{dist/es → dist-es}/commands/RecognizeTextCommand.js +2 -3
  25. package/{dist/es → dist-es}/commands/RecognizeUtteranceCommand.js +2 -3
  26. package/{dist/es → dist-es}/commands/StartConversationCommand.js +2 -3
  27. package/{dist/es → dist-es}/endpoints.js +1 -2
  28. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  29. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  30. package/{dist/es → dist-es}/models/models_0.js +2 -1
  31. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
  32. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  33. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  34. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  35. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  36. package/{dist/types/ts3.4 → dist-types}/LexRuntimeV2.d.ts +223 -139
  37. package/{dist/types → dist-types}/LexRuntimeV2Client.d.ts +7 -7
  38. package/{dist/types → dist-types}/commands/DeleteSessionCommand.d.ts +2 -2
  39. package/{dist/types → dist-types}/commands/GetSessionCommand.d.ts +2 -2
  40. package/{dist/types → dist-types}/commands/PutSessionCommand.d.ts +2 -2
  41. package/{dist/types → dist-types}/commands/RecognizeTextCommand.d.ts +28 -2
  42. package/{dist/types → dist-types}/commands/RecognizeUtteranceCommand.d.ts +28 -2
  43. package/{dist/types → dist-types}/commands/StartConversationCommand.d.ts +34 -2
  44. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  45. package/{index.ts → dist-types/index.d.ts} +0 -0
  46. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  47. package/{dist/types → dist-types}/models/models_0.d.ts +15 -9
  48. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  49. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  50. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  51. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  52. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  53. package/dist-types/ts3.4/LexRuntimeV2.d.ts +35 -0
  54. package/{dist/types → dist-types}/ts3.4/LexRuntimeV2Client.d.ts +33 -103
  55. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +24 -0
  60. package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +17 -0
  61. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  62. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +348 -0
  65. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  66. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  67. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  68. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  69. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  70. package/package.json +50 -47
  71. package/LexRuntimeV2.ts +0 -299
  72. package/LexRuntimeV2Client.ts +0 -282
  73. package/commands/DeleteSessionCommand.ts +0 -107
  74. package/commands/GetSessionCommand.ts +0 -102
  75. package/commands/PutSessionCommand.ts +0 -96
  76. package/commands/RecognizeTextCommand.ts +0 -98
  77. package/commands/RecognizeUtteranceCommand.ts +0 -139
  78. package/commands/StartConversationCommand.ts +0 -130
  79. package/dist/cjs/LexRuntimeV2.js.map +0 -1
  80. package/dist/cjs/LexRuntimeV2Client.js.map +0 -1
  81. package/dist/cjs/commands/DeleteSessionCommand.js +0 -74
  82. package/dist/cjs/commands/DeleteSessionCommand.js.map +0 -1
  83. package/dist/cjs/commands/GetSessionCommand.js.map +0 -1
  84. package/dist/cjs/commands/PutSessionCommand.js.map +0 -1
  85. package/dist/cjs/commands/RecognizeTextCommand.js.map +0 -1
  86. package/dist/cjs/commands/RecognizeUtteranceCommand.js +0 -97
  87. package/dist/cjs/commands/RecognizeUtteranceCommand.js.map +0 -1
  88. package/dist/cjs/commands/StartConversationCommand.js +0 -90
  89. package/dist/cjs/commands/StartConversationCommand.js.map +0 -1
  90. package/dist/cjs/endpoints.js.map +0 -1
  91. package/dist/cjs/index.js.map +0 -1
  92. package/dist/cjs/models/index.js.map +0 -1
  93. package/dist/cjs/models/models_0.js.map +0 -1
  94. package/dist/cjs/package.json +0 -96
  95. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  96. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist/es/LexRuntimeV2.js.map +0 -1
  101. package/dist/es/LexRuntimeV2Client.js.map +0 -1
  102. package/dist/es/commands/DeleteSessionCommand.js.map +0 -1
  103. package/dist/es/commands/GetSessionCommand.js.map +0 -1
  104. package/dist/es/commands/PutSessionCommand.js.map +0 -1
  105. package/dist/es/commands/RecognizeTextCommand.js.map +0 -1
  106. package/dist/es/commands/RecognizeUtteranceCommand.js.map +0 -1
  107. package/dist/es/commands/StartConversationCommand.js.map +0 -1
  108. package/dist/es/endpoints.js.map +0 -1
  109. package/dist/es/index.js +0 -10
  110. package/dist/es/index.js.map +0 -1
  111. package/dist/es/models/index.js +0 -2
  112. package/dist/es/models/index.js.map +0 -1
  113. package/dist/es/models/models_0.js.map +0 -1
  114. package/dist/es/package.json +0 -96
  115. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  116. package/dist/es/runtimeConfig.browser.js.map +0 -1
  117. package/dist/es/runtimeConfig.js.map +0 -1
  118. package/dist/es/runtimeConfig.native.js.map +0 -1
  119. package/dist/es/runtimeConfig.shared.js.map +0 -1
  120. package/dist/types/LexRuntimeV2.d.ts +0 -139
  121. package/dist/types/ts3.4/commands/DeleteSessionCommand.d.ts +0 -48
  122. package/dist/types/ts3.4/commands/GetSessionCommand.d.ts +0 -43
  123. package/dist/types/ts3.4/commands/PutSessionCommand.d.ts +0 -37
  124. package/dist/types/ts3.4/commands/RecognizeTextCommand.d.ts +0 -39
  125. package/dist/types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +0 -82
  126. package/dist/types/ts3.4/commands/StartConversationCommand.d.ts +0 -62
  127. package/dist/types/ts3.4/models/models_0.d.ts +0 -2035
  128. package/endpoints.ts +0 -57
  129. package/jest.config.js +0 -4
  130. package/models/models_0.ts +0 -2458
  131. package/protocols/Aws_restJson1.ts +0 -2458
  132. package/runtimeConfig.browser.ts +0 -45
  133. package/runtimeConfig.native.ts +0 -20
  134. package/runtimeConfig.shared.ts +0 -16
  135. package/runtimeConfig.ts +0 -49
  136. package/tsconfig.es.json +0 -10
  137. package/tsconfig.json +0 -31
  138. package/tsconfig.types.json +0 -8
@@ -1,7 +1,7 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
1
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
2
4
  import { RecognizeTextRequest, RecognizeTextResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
5
  export interface RecognizeTextCommandInput extends RecognizeTextRequest {
6
6
  }
7
7
  export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __MetadataBearer {
@@ -12,6 +12,32 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
12
12
  * using the machine learning model that it build for the bot.</p>
13
13
  * <p>In response, Amazon Lex V2 returns the next message to convey to the user
14
14
  * and an optional response card to display.</p>
15
+ * <p>If the optional post-fulfillment response is specified, the messages
16
+ * are returned as follows. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/API_PostFulfillmentStatusSpecification.html">PostFulfillmentStatusSpecification</a>.</p>
17
+ * <ul>
18
+ * <li>
19
+ * <p>
20
+ * <b>Success message</b> - Returned if
21
+ * the Lambda function completes successfully and the intent state is
22
+ * fulfilled or ready fulfillment if the message is present.</p>
23
+ * </li>
24
+ * <li>
25
+ * <p>
26
+ * <b>Failed message</b> - The failed
27
+ * message is returned if the Lambda function throws an exception or
28
+ * if the Lambda function returns a failed intent state without a
29
+ * message.</p>
30
+ * </li>
31
+ * <li>
32
+ * <p>
33
+ * <b>Timeout message</b> - If you
34
+ * don't configure a timeout message and a timeout, and the Lambda
35
+ * function doesn't return within 30 seconds, the timeout message is
36
+ * returned. If you configure a timeout, the timeout message is
37
+ * returned when the period times out. </p>
38
+ * </li>
39
+ * </ul>
40
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html">Completion message</a>.</p>
15
41
  * @example
16
42
  * Use a bare-bones client and the command you need to make an API call.
17
43
  * ```javascript
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
2
4
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
3
5
  import { RecognizeUtteranceRequest, RecognizeUtteranceResponse } from "../models/models_0";
4
- import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
6
6
  declare type RecognizeUtteranceCommandInputType = Omit<RecognizeUtteranceRequest, "inputStream"> & {
7
7
  /**
8
8
  * For *`RecognizeUtteranceRequest["inputStream"]`*, see {@link RecognizeUtteranceRequest.inputStream}.
@@ -54,6 +54,32 @@ export interface RecognizeUtteranceCommandOutput extends RecognizeUtteranceRespo
54
54
  * <p>The example contains a Java application that compresses and encodes
55
55
  * a Java object to send to Amazon Lex V2, and a second that decodes and
56
56
  * decompresses a response from Amazon Lex V2.</p>
57
+ * <p>If the optional post-fulfillment response is specified, the messages
58
+ * are returned as follows. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/API_PostFulfillmentStatusSpecification.html">PostFulfillmentStatusSpecification</a>.</p>
59
+ * <ul>
60
+ * <li>
61
+ * <p>
62
+ * <b>Success message</b> - Returned if
63
+ * the Lambda function completes successfully and the intent state is
64
+ * fulfilled or ready fulfillment if the message is present.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>
68
+ * <b>Failed message</b> - The failed
69
+ * message is returned if the Lambda function throws an exception or
70
+ * if the Lambda function returns a failed intent state without a
71
+ * message.</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>
75
+ * <b>Timeout message</b> - If you
76
+ * don't configure a timeout message and a timeout, and the Lambda
77
+ * function doesn't return within 30 seconds, the timeout message is
78
+ * returned. If you configure a timeout, the timeout message is
79
+ * returned when the period times out. </p>
80
+ * </li>
81
+ * </ul>
82
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html">Completion message</a>.</p>
57
83
  * @example
58
84
  * Use a bare-bones client and the command you need to make an API call.
59
85
  * ```javascript
@@ -1,7 +1,7 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
1
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
2
4
  import { StartConversationRequest, StartConversationResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
5
  export interface StartConversationCommandInput extends StartConversationRequest {
6
6
  }
7
7
  export interface StartConversationCommandOutput extends StartConversationResponse, __MetadataBearer {
@@ -16,6 +16,38 @@ export interface StartConversationCommandOutput extends StartConversationRespons
16
16
  * <p>Audio input must be in the following format: <code>audio/lpcm
17
17
  * sample-rate=8000 sample-size-bits=16 channel-count=1;
18
18
  * is-big-endian=false</code>.</p>
19
+ * <p>If the optional post-fulfillment response is specified, the messages
20
+ * are returned as follows. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/API_PostFulfillmentStatusSpecification.html">PostFulfillmentStatusSpecification</a>.</p>
21
+ * <ul>
22
+ * <li>
23
+ * <p>
24
+ * <b>Success message</b> - Returned if
25
+ * the Lambda function completes successfully and the intent state is
26
+ * fulfilled or ready fulfillment if the message is present.</p>
27
+ * </li>
28
+ * <li>
29
+ * <p>
30
+ * <b>Failed message</b> - The failed
31
+ * message is returned if the Lambda function throws an exception or
32
+ * if the Lambda function returns a failed intent state without a
33
+ * message.</p>
34
+ * </li>
35
+ * <li>
36
+ * <p>
37
+ * <b>Timeout message</b> - If you
38
+ * don't configure a timeout message and a timeout, and the Lambda
39
+ * function doesn't return within 30 seconds, the timeout message is
40
+ * returned. If you configure a timeout, the timeout message is
41
+ * returned when the period times out. </p>
42
+ * </li>
43
+ * </ul>
44
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html">Completion message</a>.</p>
45
+ * <p>If the optional update message is configured, it is played at the
46
+ * specified frequency while the Lambda function is running and the update
47
+ * message state is active. If the fulfillment update message is not
48
+ * active, the Lambda function runs with a 30 second timeout. </p>
49
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-update.html">Update message </a>
50
+ * </p>
19
51
  * <p>The <code>StartConversation</code> operation is supported only in
20
52
  * the following SDKs: </p>
21
53
  * <ul>
File without changes
File without changes
@@ -59,12 +59,12 @@ export interface ActiveContext {
59
59
  */
60
60
  timeToLive: ActiveContextTimeToLive | undefined;
61
61
  /**
62
- * <p>A lis tof contexts active for the request. A context can be
62
+ * <p>A list of contexts active for the request. A context can be
63
63
  * activated when a previous intent is fulfilled, or by including the
64
64
  * context in the request.</p>
65
- * <p>If you don't specify a list of contexts, Amazon Lex will use the
66
- * current list of contexts for the session. If you specify an empty list,
67
- * all contexts for the session are cleared. </p>
65
+ * <p>If you don't specify a list of contexts, Amazon Lex V2 will use the current
66
+ * list of contexts for the session. If you specify an empty list, all
67
+ * contexts for the session are cleared. </p>
68
68
  */
69
69
  contextAttributes: {
70
70
  [key: string]: string;
@@ -328,6 +328,7 @@ export declare namespace Value {
328
328
  export declare enum IntentState {
329
329
  FAILED = "Failed",
330
330
  FULFILLED = "Fulfilled",
331
+ FULFILLMENT_IN_PROGRESS = "FulfillmentInProgress",
331
332
  IN_PROGRESS = "InProgress",
332
333
  READY_FOR_FULFILLMENT = "ReadyForFulfillment",
333
334
  WAITING = "Waiting"
@@ -507,7 +508,8 @@ export declare enum DialogActionType {
507
508
  CONFIRM_INTENT = "ConfirmIntent",
508
509
  DELEGATE = "Delegate",
509
510
  ELICIT_INTENT = "ElicitIntent",
510
- ELICIT_SLOT = "ElicitSlot"
511
+ ELICIT_SLOT = "ElicitSlot",
512
+ NONE = "None"
511
513
  }
512
514
  /**
513
515
  * <p>The next action that Amazon Lex V2 should take.</p>
@@ -1076,8 +1078,8 @@ export interface Slot {
1076
1078
  shape?: Shape | string;
1077
1079
  /**
1078
1080
  * <p>A list of one or more values that the user provided for the slot.
1079
- * For example, if a for a slot that elicits pizza toppings, the values might
1080
- * be "pepperoni" and "pineapple." </p>
1081
+ * For example, if a for a slot that elicits pizza toppings, the values
1082
+ * might be "pepperoni" and "pineapple." </p>
1081
1083
  */
1082
1084
  values?: Slot[];
1083
1085
  }
@@ -1259,9 +1261,13 @@ export interface ConfigurationEvent {
1259
1261
  welcomeMessages?: Message[];
1260
1262
  /**
1261
1263
  * <p>Determines whether Amazon Lex V2 should send audio responses to the client
1262
- * application. When this parameter if <code>false</code>, the client
1263
- * application needs to create responses for the user.
1264
+ * application.
1264
1265
  * </p>
1266
+ * <p>Set this field to false when the client is operating in a playback
1267
+ * mode where audio responses are played to the user. If the client isn't
1268
+ * operating in playback mode, such as a text chat application, set this
1269
+ * to true so that Amazon Lex V2 doesn't wait for the prompt to finish playing on
1270
+ * the client.</p>
1265
1271
  */
1266
1272
  disablePlayback?: boolean;
1267
1273
  /**
@@ -1,11 +1,11 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "../commands/DeleteSessionCommand";
2
4
  import { GetSessionCommandInput, GetSessionCommandOutput } from "../commands/GetSessionCommand";
3
5
  import { PutSessionCommandInput, PutSessionCommandOutput } from "../commands/PutSessionCommand";
4
6
  import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "../commands/RecognizeTextCommand";
5
7
  import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "../commands/RecognizeUtteranceCommand";
6
8
  import { StartConversationCommandInput, StartConversationCommandOutput } from "../commands/StartConversationCommand";
7
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
8
- import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
9
9
  export declare const serializeAws_restJson1DeleteSessionCommand: (input: DeleteSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
10
  export declare const serializeAws_restJson1GetSessionCommand: (input: GetSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
11
  export declare const serializeAws_restJson1PutSessionCommand: (input: PutSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
8
8
  base64Decoder: import("@aws-sdk/types").Decoder;
9
9
  base64Encoder: import("@aws-sdk/types").Encoder;
10
10
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
11
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
13
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
14
14
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -0,0 +1,35 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
3
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
4
+ import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
5
+ import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "./commands/RecognizeTextCommand";
6
+ import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "./commands/RecognizeUtteranceCommand";
7
+ import { StartConversationCommandInput, StartConversationCommandOutput } from "./commands/StartConversationCommand";
8
+ import { LexRuntimeV2Client } from "./LexRuntimeV2Client";
9
+
10
+ export declare class LexRuntimeV2 extends LexRuntimeV2Client {
11
+
12
+ deleteSession(args: DeleteSessionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSessionCommandOutput>;
13
+ deleteSession(args: DeleteSessionCommandInput, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
14
+ deleteSession(args: DeleteSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
15
+
16
+ getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
17
+ getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
18
+ getSession(args: GetSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
19
+
20
+ putSession(args: PutSessionCommandInput, options?: __HttpHandlerOptions): Promise<PutSessionCommandOutput>;
21
+ putSession(args: PutSessionCommandInput, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
22
+ putSession(args: PutSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
23
+
24
+ recognizeText(args: RecognizeTextCommandInput, options?: __HttpHandlerOptions): Promise<RecognizeTextCommandOutput>;
25
+ recognizeText(args: RecognizeTextCommandInput, cb: (err: any, data?: RecognizeTextCommandOutput) => void): void;
26
+ recognizeText(args: RecognizeTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecognizeTextCommandOutput) => void): void;
27
+
28
+ recognizeUtterance(args: RecognizeUtteranceCommandInput, options?: __HttpHandlerOptions): Promise<RecognizeUtteranceCommandOutput>;
29
+ recognizeUtterance(args: RecognizeUtteranceCommandInput, cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void): void;
30
+ recognizeUtterance(args: RecognizeUtteranceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void): void;
31
+
32
+ startConversation(args: StartConversationCommandInput, options?: __HttpHandlerOptions): Promise<StartConversationCommandOutput>;
33
+ startConversation(args: StartConversationCommandInput, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
34
+ startConversation(args: StartConversationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
35
+ }
@@ -1,9 +1,3 @@
1
- import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
2
- import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
3
- import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
4
- import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "./commands/RecognizeTextCommand";
5
- import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "./commands/RecognizeUtteranceCommand";
6
- import { StartConversationCommandInput, StartConversationCommandOutput } from "./commands/StartConversationCommand";
7
1
  import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
8
2
  import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@aws-sdk/eventstream-serde-config-resolver";
9
3
  import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
@@ -13,137 +7,73 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
13
7
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
14
8
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
15
9
  import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
16
- import { Provider, RegionInfoProvider, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
11
+ import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
12
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
13
+ import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
14
+ import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "./commands/RecognizeTextCommand";
15
+ import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "./commands/RecognizeUtteranceCommand";
16
+ import { StartConversationCommandInput, StartConversationCommandOutput } from "./commands/StartConversationCommand";
17
17
  export declare type ServiceInputTypes = DeleteSessionCommandInput | GetSessionCommandInput | PutSessionCommandInput | RecognizeTextCommandInput | RecognizeUtteranceCommandInput | StartConversationCommandInput;
18
18
  export declare type ServiceOutputTypes = DeleteSessionCommandOutput | GetSessionCommandOutput | PutSessionCommandOutput | RecognizeTextCommandOutput | RecognizeUtteranceCommandOutput | StartConversationCommandOutput;
19
19
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
20
- /**
21
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
22
- */
20
+
23
21
  requestHandler?: __HttpHandler;
24
- /**
25
- * A constructor for a class implementing the {@link __Hash} interface
26
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
27
- * @internal
28
- */
22
+
29
23
  sha256?: __HashConstructor;
30
- /**
31
- * The function that will be used to convert strings into HTTP endpoints.
32
- * @internal
33
- */
24
+
34
25
  urlParser?: __UrlParser;
35
- /**
36
- * A function that can calculate the length of a request body.
37
- * @internal
38
- */
26
+
39
27
  bodyLengthChecker?: (body: any) => number | undefined;
40
- /**
41
- * A function that converts a stream into an array of bytes.
42
- * @internal
43
- */
28
+
44
29
  streamCollector?: __StreamCollector;
45
- /**
46
- * The function that will be used to convert a base64-encoded string to a byte array.
47
- * @internal
48
- */
30
+
49
31
  base64Decoder?: __Decoder;
50
- /**
51
- * The function that will be used to convert binary data to a base64-encoded string.
52
- * @internal
53
- */
32
+
54
33
  base64Encoder?: __Encoder;
55
- /**
56
- * The function that will be used to convert a UTF8-encoded string to a byte array.
57
- * @internal
58
- */
34
+
59
35
  utf8Decoder?: __Decoder;
60
- /**
61
- * The function that will be used to convert binary data to a UTF-8 encoded string.
62
- * @internal
63
- */
36
+
64
37
  utf8Encoder?: __Encoder;
65
- /**
66
- * The runtime environment.
67
- * @internal
68
- */
38
+
69
39
  runtime?: string;
70
- /**
71
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
72
- * trait of an operation.
73
- */
40
+
74
41
  disableHostPrefix?: boolean;
75
- /**
76
- * Value for how many times a request will be made at most in case of retry.
77
- */
42
+
78
43
  maxAttempts?: number | __Provider<number>;
79
- /**
80
- * Specifies which retry algorithm to use.
81
- */
44
+
82
45
  retryMode?: string | __Provider<string>;
83
- /**
84
- * Optional logger for logging debug/info/warn/error.
85
- */
46
+
86
47
  logger?: __Logger;
87
- /**
88
- * Unique service identifier.
89
- * @internal
90
- */
48
+
91
49
  serviceId?: string;
92
- /**
93
- * The AWS region to which this client will send requests
94
- */
50
+
95
51
  region?: string | __Provider<string>;
96
- /**
97
- * Default credentials provider; Not available in browser runtime.
98
- * @internal
99
- */
52
+
100
53
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
101
- /**
102
- * Fetch related hostname, signing name or signing region with given region.
103
- * @internal
104
- */
54
+
105
55
  regionInfoProvider?: RegionInfoProvider;
106
- /**
107
- * The function that provides necessary utilities for handling request event stream.
108
- * @internal
109
- */
56
+
110
57
  eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
111
- /**
112
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
113
- * @internal
114
- */
58
+
115
59
  defaultUserAgentProvider?: Provider<__UserAgent>;
116
- /**
117
- * The function that provides necessary utilities for generating and parsing event stream
118
- */
60
+
119
61
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
120
62
  }
121
63
  declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
122
- /**
123
- * The configuration interface of LexRuntimeV2Client class constructor that set the region, credentials and other options.
124
- */
64
+
125
65
  export interface LexRuntimeV2ClientConfig extends LexRuntimeV2ClientConfigType {
126
66
  }
127
67
  declare type LexRuntimeV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & EventStreamResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig;
128
- /**
129
- * The resolved configuration interface of LexRuntimeV2Client class. This is resolved and normalized from the {@link LexRuntimeV2ClientConfig | constructor configuration interface}.
130
- */
68
+
131
69
  export interface LexRuntimeV2ClientResolvedConfig extends LexRuntimeV2ClientResolvedConfigType {
132
70
  }
133
- /**
134
- * <p></p>
135
- */
71
+
136
72
  export declare class LexRuntimeV2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LexRuntimeV2ClientResolvedConfig> {
137
- /**
138
- * The resolved configuration of LexRuntimeV2Client class. This is resolved and normalized from the {@link LexRuntimeV2ClientConfig | constructor configuration interface}.
139
- */
73
+
140
74
  readonly config: LexRuntimeV2ClientResolvedConfig;
141
75
  constructor(configuration: LexRuntimeV2ClientConfig);
142
- /**
143
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
144
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
145
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
146
- */
76
+
147
77
  destroy(): void;
148
78
  }
149
79
  export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
+ import { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
5
+ export interface DeleteSessionCommandInput extends DeleteSessionRequest {
6
+ }
7
+ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
11
+ readonly input: DeleteSessionCommandInput;
12
+ constructor(input: DeleteSessionCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
+ import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
5
+ export interface GetSessionCommandInput extends GetSessionRequest {
6
+ }
7
+ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
11
+ readonly input: GetSessionCommandInput;
12
+ constructor(input: GetSessionCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
+ import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
5
+ export interface PutSessionCommandInput extends PutSessionRequest {
6
+ }
7
+ export interface PutSessionCommandOutput extends PutSessionResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
11
+ readonly input: PutSessionCommandInput;
12
+ constructor(input: PutSessionCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
+ import { RecognizeTextRequest, RecognizeTextResponse } from "../models/models_0";
5
+ export interface RecognizeTextCommandInput extends RecognizeTextRequest {
6
+ }
7
+ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class RecognizeTextCommand extends $Command<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig> {
11
+ readonly input: RecognizeTextCommandInput;
12
+ constructor(input: RecognizeTextCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RecognizeTextCommandInput, RecognizeTextCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,24 @@
1
+
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
+ import { RecognizeUtteranceRequest, RecognizeUtteranceResponse } from "../models/models_0";
6
+ declare type RecognizeUtteranceCommandInputType = Pick<RecognizeUtteranceRequest, Exclude<keyof RecognizeUtteranceRequest, "inputStream">> & {
7
+
8
+ inputStream?: RecognizeUtteranceRequest["inputStream"] | string | Uint8Array | Buffer;
9
+ };
10
+
11
+ export interface RecognizeUtteranceCommandInput extends RecognizeUtteranceCommandInputType {
12
+ }
13
+ export interface RecognizeUtteranceCommandOutput extends RecognizeUtteranceResponse, __MetadataBearer {
14
+ }
15
+
16
+ export declare class RecognizeUtteranceCommand extends $Command<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig> {
17
+ readonly input: RecognizeUtteranceCommandInput;
18
+ constructor(input: RecognizeUtteranceCommandInput);
19
+
20
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput>;
21
+ private serialize;
22
+ private deserialize;
23
+ }
24
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
+ import { StartConversationRequest, StartConversationResponse } from "../models/models_0";
5
+ export interface StartConversationCommandInput extends StartConversationRequest {
6
+ }
7
+ export interface StartConversationCommandOutput extends StartConversationResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartConversationCommand extends $Command<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig> {
11
+ readonly input: StartConversationCommandInput;
12
+ constructor(input: StartConversationCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartConversationCommandInput, StartConversationCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
File without changes
File without changes