@aws-sdk/client-lex-runtime-v2 3.477.0 → 3.481.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 (29) hide show
  1. package/dist-cjs/commands/DeleteSessionCommand.js +18 -41
  2. package/dist-cjs/commands/GetSessionCommand.js +18 -41
  3. package/dist-cjs/commands/PutSessionCommand.js +18 -41
  4. package/dist-cjs/commands/RecognizeTextCommand.js +18 -41
  5. package/dist-cjs/commands/RecognizeUtteranceCommand.js +18 -41
  6. package/dist-cjs/commands/StartConversationCommand.js +24 -46
  7. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  8. package/dist-es/commands/DeleteSessionCommand.js +18 -41
  9. package/dist-es/commands/GetSessionCommand.js +18 -41
  10. package/dist-es/commands/PutSessionCommand.js +18 -41
  11. package/dist-es/commands/RecognizeTextCommand.js +18 -41
  12. package/dist-es/commands/RecognizeUtteranceCommand.js +18 -41
  13. package/dist-es/commands/StartConversationCommand.js +24 -46
  14. package/dist-es/endpoint/EndpointParameters.js +6 -0
  15. package/dist-types/commands/DeleteSessionCommand.d.ts +6 -21
  16. package/dist-types/commands/GetSessionCommand.d.ts +6 -21
  17. package/dist-types/commands/PutSessionCommand.d.ts +6 -21
  18. package/dist-types/commands/RecognizeTextCommand.d.ts +6 -21
  19. package/dist-types/commands/RecognizeUtteranceCommand.d.ts +6 -21
  20. package/dist-types/commands/StartConversationCommand.d.ts +6 -21
  21. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  22. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +14 -23
  23. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +14 -23
  24. package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +13 -20
  25. package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +14 -23
  26. package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +13 -20
  27. package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +14 -23
  28. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  29. package/package.json +11 -11
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { RecognizeTextRequestFilterSensitiveLog, RecognizeTextResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_RecognizeTextCommand, se_RecognizeTextCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class RecognizeTextCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, RecognizeTextCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "LexRuntimeV2Client";
27
- const commandName = "RecognizeTextCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: RecognizeTextRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: RecognizeTextResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSDeepSenseRunTimeServiceApi2_0",
36
- operation: "RecognizeText",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_RecognizeTextCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_RecognizeTextCommand(output, context);
47
- }
8
+ export class RecognizeTextCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {})
20
+ .n("LexRuntimeV2Client", "RecognizeTextCommand")
21
+ .f(RecognizeTextRequestFilterSensitiveLog, RecognizeTextResponseFilterSensitiveLog)
22
+ .ser(se_RecognizeTextCommand)
23
+ .de(de_RecognizeTextCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { RecognizeUtteranceRequestFilterSensitiveLog, RecognizeUtteranceResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_RecognizeUtteranceCommand, se_RecognizeUtteranceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class RecognizeUtteranceCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, RecognizeUtteranceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "LexRuntimeV2Client";
27
- const commandName = "RecognizeUtteranceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: RecognizeUtteranceRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: RecognizeUtteranceResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSDeepSenseRunTimeServiceApi2_0",
36
- operation: "RecognizeUtterance",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_RecognizeUtteranceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_RecognizeUtteranceCommand(output, context);
47
- }
8
+ export class RecognizeUtteranceCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {})
20
+ .n("LexRuntimeV2Client", "RecognizeUtteranceCommand")
21
+ .f(RecognizeUtteranceRequestFilterSensitiveLog, RecognizeUtteranceResponseFilterSensitiveLog)
22
+ .ser(se_RecognizeUtteranceCommand)
23
+ .de(de_RecognizeUtteranceCommand)
24
+ .build() {
48
25
  }
@@ -2,53 +2,31 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { StartConversationRequestFilterSensitiveLog, StartConversationResponseFilterSensitiveLog, } from "../models/models_0";
7
7
  import { de_StartConversationCommand, se_StartConversationCommand } from "../protocols/Aws_restJson1";
8
8
  export { $Command };
9
- export class StartConversationCommand extends $Command {
10
- static getEndpointParameterInstructions() {
11
- return {
12
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
- Endpoint: { type: "builtInParams", name: "endpoint" },
14
- Region: { type: "builtInParams", name: "region" },
15
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
- };
17
- }
18
- constructor(input) {
19
- super();
20
- this.input = input;
21
- }
22
- resolveMiddleware(clientStack, configuration, options) {
23
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
24
- this.middlewareStack.use(getEndpointPlugin(configuration, StartConversationCommand.getEndpointParameterInstructions()));
25
- this.middlewareStack.use(getEventStreamPlugin(configuration));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LexRuntimeV2Client";
29
- const commandName = "StartConversationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: StartConversationRequestFilterSensitiveLog,
35
- outputFilterSensitiveLog: StartConversationResponseFilterSensitiveLog,
36
- [SMITHY_CONTEXT_KEY]: {
37
- service: "AWSDeepSenseRunTimeServiceApi2_0",
38
- operation: "StartConversation",
39
- eventStream: {
40
- input: true,
41
- output: true,
42
- },
43
- },
44
- };
45
- const { requestHandler } = configuration;
46
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
47
- }
48
- serialize(input, context) {
49
- return se_StartConversationCommand(input, context);
50
- }
51
- deserialize(output, context) {
52
- return de_StartConversationCommand(output, context);
53
- }
9
+ export class StartConversationCommand extends $Command
10
+ .classBuilder()
11
+ .ep({
12
+ ...commonParams,
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ getEventStreamPlugin(config),
19
+ ];
20
+ })
21
+ .s("AWSDeepSenseRunTimeServiceApi2_0", "StartConversation", {
22
+ eventStream: {
23
+ input: true,
24
+ output: true,
25
+ },
26
+ })
27
+ .n("LexRuntimeV2Client", "StartConversationCommand")
28
+ .f(StartConversationRequestFilterSensitiveLog, StartConversationResponseFilterSensitiveLog)
29
+ .ser(se_StartConversationCommand)
30
+ .de(de_StartConversationCommand)
31
+ .build() {
54
32
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "lex",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
4
  import { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteSessionCommandInput extends DeleteSessionRequest {
21
20
  */
22
21
  export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteSessionCommand_base: {
24
+ new (input: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Removes session information for a specified bot, alias, and user ID. </p>
@@ -88,23 +91,5 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
88
91
  * <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
89
92
  *
90
93
  */
91
- export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
92
- readonly input: DeleteSessionCommandInput;
93
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
94
- /**
95
- * @public
96
- */
97
- constructor(input: DeleteSessionCommandInput);
98
- /**
99
- * @internal
100
- */
101
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
102
- /**
103
- * @internal
104
- */
105
- private serialize;
106
- /**
107
- * @internal
108
- */
109
- private deserialize;
94
+ export declare class DeleteSessionCommand extends DeleteSessionCommand_base {
110
95
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
4
  import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetSessionCommandInput extends GetSessionRequest {
21
20
  */
22
21
  export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetSessionCommand_base: {
24
+ new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns session information for a specified bot, alias, and
@@ -206,23 +209,5 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
206
209
  * <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
207
210
  *
208
211
  */
209
- export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
210
- readonly input: GetSessionCommandInput;
211
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
212
- /**
213
- * @public
214
- */
215
- constructor(input: GetSessionCommandInput);
216
- /**
217
- * @internal
218
- */
219
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
220
- /**
221
- * @internal
222
- */
223
- private serialize;
224
- /**
225
- * @internal
226
- */
227
- private deserialize;
212
+ export declare class GetSessionCommand extends GetSessionCommand_base {
228
213
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadOutputTypes } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types";
4
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
4
  import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
6
5
  /**
@@ -22,6 +21,10 @@ export interface PutSessionCommandInput extends PutSessionRequest {
22
21
  export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audioStream">, __MetadataBearer {
23
22
  audioStream?: StreamingBlobPayloadOutputTypes;
24
23
  }
24
+ declare const PutSessionCommand_base: {
25
+ new (input: PutSessionCommandInput): import("@smithy/smithy-client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
25
28
  /**
26
29
  * @public
27
30
  * <p>Creates a new session or modifies an existing session with an Amazon Lex V2
@@ -196,23 +199,5 @@ export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audio
196
199
  * <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
197
200
  *
198
201
  */
199
- export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
200
- readonly input: PutSessionCommandInput;
201
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
202
- /**
203
- * @public
204
- */
205
- constructor(input: PutSessionCommandInput);
206
- /**
207
- * @internal
208
- */
209
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
210
- /**
211
- * @internal
212
- */
213
- private serialize;
214
- /**
215
- * @internal
216
- */
217
- private deserialize;
202
+ export declare class PutSessionCommand extends PutSessionCommand_base {
218
203
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
4
  import { RecognizeTextRequest, RecognizeTextResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface RecognizeTextCommandInput extends RecognizeTextRequest {
21
20
  */
22
21
  export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __MetadataBearer {
23
22
  }
23
+ declare const RecognizeTextCommand_base: {
24
+ new (input: RecognizeTextCommandInput): import("@smithy/smithy-client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Sends user input to Amazon Lex V2. Client applications use this API to send
@@ -337,23 +340,5 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
337
340
  * <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
338
341
  *
339
342
  */
340
- export declare class RecognizeTextCommand extends $Command<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig> {
341
- readonly input: RecognizeTextCommandInput;
342
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
343
- /**
344
- * @public
345
- */
346
- constructor(input: RecognizeTextCommandInput);
347
- /**
348
- * @internal
349
- */
350
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RecognizeTextCommandInput, RecognizeTextCommandOutput>;
351
- /**
352
- * @internal
353
- */
354
- private serialize;
355
- /**
356
- * @internal
357
- */
358
- private deserialize;
343
+ export declare class RecognizeTextCommand extends RecognizeTextCommand_base {
359
344
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadInputTypes, StreamingBlobPayloadOutputTypes } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes, StreamingBlobPayloadOutputTypes } from "@smithy/types";
4
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
4
  import { RecognizeUtteranceRequest, RecognizeUtteranceResponse } from "../models/models_0";
6
5
  /**
@@ -23,6 +22,10 @@ export interface RecognizeUtteranceCommandInput extends Omit<RecognizeUtteranceR
23
22
  export interface RecognizeUtteranceCommandOutput extends Omit<RecognizeUtteranceResponse, "audioStream">, __MetadataBearer {
24
23
  audioStream?: StreamingBlobPayloadOutputTypes;
25
24
  }
25
+ declare const RecognizeUtteranceCommand_base: {
26
+ new (input: RecognizeUtteranceCommandInput): import("@smithy/smithy-client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
26
29
  /**
27
30
  * @public
28
31
  * <p>Sends user input to Amazon Lex V2. You can send text or speech. Clients use
@@ -156,23 +159,5 @@ export interface RecognizeUtteranceCommandOutput extends Omit<RecognizeUtterance
156
159
  * <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
157
160
  *
158
161
  */
159
- export declare class RecognizeUtteranceCommand extends $Command<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig> {
160
- readonly input: RecognizeUtteranceCommandInput;
161
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
162
- /**
163
- * @public
164
- */
165
- constructor(input: RecognizeUtteranceCommandInput);
166
- /**
167
- * @internal
168
- */
169
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput>;
170
- /**
171
- * @internal
172
- */
173
- private serialize;
174
- /**
175
- * @internal
176
- */
177
- private deserialize;
162
+ export declare class RecognizeUtteranceCommand extends RecognizeUtteranceCommand_base {
178
163
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
5
4
  import { StartConversationRequest, StartConversationResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface StartConversationCommandInput extends StartConversationRequest
21
20
  */
22
21
  export interface StartConversationCommandOutput extends StartConversationResponse, __MetadataBearer {
23
22
  }
23
+ declare const StartConversationCommand_base: {
24
+ new (input: StartConversationCommandInput): import("@smithy/smithy-client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Starts an HTTP/2 bidirectional event stream that enables you to send
@@ -453,23 +456,5 @@ export interface StartConversationCommandOutput extends StartConversationRespons
453
456
  * <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
454
457
  *
455
458
  */
456
- export declare class StartConversationCommand extends $Command<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig> {
457
- readonly input: StartConversationCommandInput;
458
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
459
- /**
460
- * @public
461
- */
462
- constructor(input: StartConversationCommandInput);
463
- /**
464
- * @internal
465
- */
466
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartConversationCommandInput, StartConversationCommandOutput>;
467
- /**
468
- * @internal
469
- */
470
- private serialize;
471
- /**
472
- * @internal
473
- */
474
- private deserialize;
459
+ export declare class StartConversationCommand extends StartConversationCommand_base {
475
460
  }
@@ -14,6 +14,24 @@ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
14
14
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
15
  defaultSigningName: string;
16
16
  };
17
+ export declare const commonParams: {
18
+ readonly UseFIPS: {
19
+ readonly type: "builtInParams";
20
+ readonly name: "useFipsEndpoint";
21
+ };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
26
+ readonly Region: {
27
+ readonly type: "builtInParams";
28
+ readonly name: "region";
29
+ };
30
+ readonly UseDualStack: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "useDualstackEndpoint";
33
+ };
34
+ };
17
35
  export interface EndpointParameters extends __EndpointParameters {
18
36
  Region?: string;
19
37
  UseDualStack?: boolean;
@@ -1,11 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
9
3
  import {
10
4
  LexRuntimeV2ClientResolvedConfig,
11
5
  ServiceInputTypes,
@@ -20,19 +14,16 @@ export interface DeleteSessionCommandInput extends DeleteSessionRequest {}
20
14
  export interface DeleteSessionCommandOutput
21
15
  extends DeleteSessionResponse,
22
16
  __MetadataBearer {}
23
- export declare class DeleteSessionCommand extends $Command<
24
- DeleteSessionCommandInput,
25
- DeleteSessionCommandOutput,
26
- LexRuntimeV2ClientResolvedConfig
27
- > {
28
- readonly input: DeleteSessionCommandInput;
29
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
- constructor(input: DeleteSessionCommandInput);
31
- resolveMiddleware(
32
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
- configuration: LexRuntimeV2ClientResolvedConfig,
34
- options?: __HttpHandlerOptions
35
- ): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
36
- private serialize;
37
- private deserialize;
38
- }
17
+ declare const DeleteSessionCommand_base: {
18
+ new (
19
+ input: DeleteSessionCommandInput
20
+ ): import("@smithy/smithy-client").CommandImpl<
21
+ DeleteSessionCommandInput,
22
+ DeleteSessionCommandOutput,
23
+ LexRuntimeV2ClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ export declare class DeleteSessionCommand extends DeleteSessionCommand_base {}
@@ -1,11 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
9
3
  import {
10
4
  LexRuntimeV2ClientResolvedConfig,
11
5
  ServiceInputTypes,
@@ -17,19 +11,16 @@ export interface GetSessionCommandInput extends GetSessionRequest {}
17
11
  export interface GetSessionCommandOutput
18
12
  extends GetSessionResponse,
19
13
  __MetadataBearer {}
20
- export declare class GetSessionCommand extends $Command<
21
- GetSessionCommandInput,
22
- GetSessionCommandOutput,
23
- LexRuntimeV2ClientResolvedConfig
24
- > {
25
- readonly input: GetSessionCommandInput;
26
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
- constructor(input: GetSessionCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: LexRuntimeV2ClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
14
+ declare const GetSessionCommand_base: {
15
+ new (
16
+ input: GetSessionCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ GetSessionCommandInput,
19
+ GetSessionCommandOutput,
20
+ LexRuntimeV2ClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ };
26
+ export declare class GetSessionCommand extends GetSessionCommand_base {}