@aws-sdk/client-lex-runtime-v2 3.186.0 → 3.186.2

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.
@@ -1,157 +1,161 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- } from "@aws-sdk/config-resolver";
7
- import {
8
- EventStreamSerdeInputConfig,
9
- EventStreamSerdeResolvedConfig,
10
- } from "@aws-sdk/eventstream-serde-config-resolver";
11
- import {
12
- EventStreamInputConfig,
13
- EventStreamResolvedConfig,
14
- } from "@aws-sdk/middleware-eventstream";
15
- import {
16
- HostHeaderInputConfig,
17
- HostHeaderResolvedConfig,
18
- } from "@aws-sdk/middleware-host-header";
19
- import {
20
- RetryInputConfig,
21
- RetryResolvedConfig,
22
- } from "@aws-sdk/middleware-retry";
23
- import {
24
- AwsAuthInputConfig,
25
- AwsAuthResolvedConfig,
26
- } from "@aws-sdk/middleware-signing";
27
- import {
28
- UserAgentInputConfig,
29
- UserAgentResolvedConfig,
30
- } from "@aws-sdk/middleware-user-agent";
31
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
32
- import {
33
- Client as __Client,
34
- DefaultsMode,
35
- SmithyConfiguration as __SmithyConfiguration,
36
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
37
- } from "@aws-sdk/smithy-client";
38
- import {
39
- BodyLengthCalculator as __BodyLengthCalculator,
40
- Credentials as __Credentials,
41
- Decoder as __Decoder,
42
- Encoder as __Encoder,
43
- EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider,
44
- EventStreamSerdeProvider as __EventStreamSerdeProvider,
45
- HashConstructor as __HashConstructor,
46
- HttpHandlerOptions as __HttpHandlerOptions,
47
- Logger as __Logger,
48
- Provider as __Provider,
49
- Provider,
50
- RegionInfoProvider,
51
- StreamCollector as __StreamCollector,
52
- UrlParser as __UrlParser,
53
- UserAgent as __UserAgent,
54
- } from "@aws-sdk/types";
55
- import {
56
- DeleteSessionCommandInput,
57
- DeleteSessionCommandOutput,
58
- } from "./commands/DeleteSessionCommand";
59
- import {
60
- GetSessionCommandInput,
61
- GetSessionCommandOutput,
62
- } from "./commands/GetSessionCommand";
63
- import {
64
- PutSessionCommandInput,
65
- PutSessionCommandOutput,
66
- } from "./commands/PutSessionCommand";
67
- import {
68
- RecognizeTextCommandInput,
69
- RecognizeTextCommandOutput,
70
- } from "./commands/RecognizeTextCommand";
71
- import {
72
- RecognizeUtteranceCommandInput,
73
- RecognizeUtteranceCommandOutput,
74
- } from "./commands/RecognizeUtteranceCommand";
75
- import {
76
- StartConversationCommandInput,
77
- StartConversationCommandOutput,
78
- } from "./commands/StartConversationCommand";
79
- export declare type ServiceInputTypes =
80
- | DeleteSessionCommandInput
81
- | GetSessionCommandInput
82
- | PutSessionCommandInput
83
- | RecognizeTextCommandInput
84
- | RecognizeUtteranceCommandInput
85
- | StartConversationCommandInput;
86
- export declare type ServiceOutputTypes =
87
- | DeleteSessionCommandOutput
88
- | GetSessionCommandOutput
89
- | PutSessionCommandOutput
90
- | RecognizeTextCommandOutput
91
- | RecognizeUtteranceCommandOutput
92
- | StartConversationCommandOutput;
93
- export interface ClientDefaults
94
- extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
95
- requestHandler?: __HttpHandler;
96
- sha256?: __HashConstructor;
97
- urlParser?: __UrlParser;
98
- bodyLengthChecker?: __BodyLengthCalculator;
99
- streamCollector?: __StreamCollector;
100
- base64Decoder?: __Decoder;
101
- base64Encoder?: __Encoder;
102
- utf8Decoder?: __Decoder;
103
- utf8Encoder?: __Encoder;
104
- runtime?: string;
105
- disableHostPrefix?: boolean;
106
- maxAttempts?: number | __Provider<number>;
107
- retryMode?: string | __Provider<string>;
108
- logger?: __Logger;
109
- useDualstackEndpoint?: boolean | __Provider<boolean>;
110
- useFipsEndpoint?: boolean | __Provider<boolean>;
111
- serviceId?: string;
112
- region?: string | __Provider<string>;
113
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
114
- regionInfoProvider?: RegionInfoProvider;
115
- eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
116
- defaultUserAgentProvider?: Provider<__UserAgent>;
117
- eventStreamSerdeProvider?: __EventStreamSerdeProvider;
118
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
119
- }
120
- declare type LexRuntimeV2ClientConfigType = Partial<
121
- __SmithyConfiguration<__HttpHandlerOptions>
122
- > &
123
- ClientDefaults &
124
- RegionInputConfig &
125
- EndpointsInputConfig &
126
- RetryInputConfig &
127
- HostHeaderInputConfig &
128
- AwsAuthInputConfig &
129
- EventStreamInputConfig &
130
- UserAgentInputConfig &
131
- EventStreamSerdeInputConfig;
132
- export interface LexRuntimeV2ClientConfig
133
- extends LexRuntimeV2ClientConfigType {}
134
- declare type LexRuntimeV2ClientResolvedConfigType =
135
- __SmithyResolvedConfiguration<__HttpHandlerOptions> &
136
- Required<ClientDefaults> &
137
- RegionResolvedConfig &
138
- EndpointsResolvedConfig &
139
- RetryResolvedConfig &
140
- HostHeaderResolvedConfig &
141
- AwsAuthResolvedConfig &
142
- EventStreamResolvedConfig &
143
- UserAgentResolvedConfig &
144
- EventStreamSerdeResolvedConfig;
145
- export interface LexRuntimeV2ClientResolvedConfig
146
- extends LexRuntimeV2ClientResolvedConfigType {}
147
- export declare class LexRuntimeV2Client extends __Client<
148
- __HttpHandlerOptions,
149
- ServiceInputTypes,
150
- ServiceOutputTypes,
151
- LexRuntimeV2ClientResolvedConfig
152
- > {
153
- readonly config: LexRuntimeV2ClientResolvedConfig;
154
- constructor(configuration: LexRuntimeV2ClientConfig);
155
- destroy(): void;
156
- }
157
- export {};
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@aws-sdk/eventstream-serde-config-resolver";
3
+ import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
4
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
6
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
7
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
9
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, 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
+ export declare type ServiceInputTypes = DeleteSessionCommandInput | GetSessionCommandInput | PutSessionCommandInput | RecognizeTextCommandInput | RecognizeUtteranceCommandInput | StartConversationCommandInput;
18
+ export declare type ServiceOutputTypes = DeleteSessionCommandOutput | GetSessionCommandOutput | PutSessionCommandOutput | RecognizeTextCommandOutput | RecognizeUtteranceCommandOutput | StartConversationCommandOutput;
19
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
20
+ /**
21
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
22
+ */
23
+ 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
+ */
29
+ sha256?: __HashConstructor;
30
+ /**
31
+ * The function that will be used to convert strings into HTTP endpoints.
32
+ * @internal
33
+ */
34
+ urlParser?: __UrlParser;
35
+ /**
36
+ * A function that can calculate the length of a request body.
37
+ * @internal
38
+ */
39
+ bodyLengthChecker?: __BodyLengthCalculator;
40
+ /**
41
+ * A function that converts a stream into an array of bytes.
42
+ * @internal
43
+ */
44
+ streamCollector?: __StreamCollector;
45
+ /**
46
+ * The function that will be used to convert a base64-encoded string to a byte array.
47
+ * @internal
48
+ */
49
+ base64Decoder?: __Decoder;
50
+ /**
51
+ * The function that will be used to convert binary data to a base64-encoded string.
52
+ * @internal
53
+ */
54
+ base64Encoder?: __Encoder;
55
+ /**
56
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
57
+ * @internal
58
+ */
59
+ utf8Decoder?: __Decoder;
60
+ /**
61
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
62
+ * @internal
63
+ */
64
+ utf8Encoder?: __Encoder;
65
+ /**
66
+ * The runtime environment.
67
+ * @internal
68
+ */
69
+ runtime?: string;
70
+ /**
71
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
72
+ * trait of an operation.
73
+ */
74
+ disableHostPrefix?: boolean;
75
+ /**
76
+ * Value for how many times a request will be made at most in case of retry.
77
+ */
78
+ maxAttempts?: number | __Provider<number>;
79
+ /**
80
+ * Specifies which retry algorithm to use.
81
+ */
82
+ retryMode?: string | __Provider<string>;
83
+ /**
84
+ * Optional logger for logging debug/info/warn/error.
85
+ */
86
+ logger?: __Logger;
87
+ /**
88
+ * Enables IPv6/IPv4 dualstack endpoint.
89
+ */
90
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
91
+ /**
92
+ * Enables FIPS compatible endpoints.
93
+ */
94
+ useFipsEndpoint?: boolean | __Provider<boolean>;
95
+ /**
96
+ * Unique service identifier.
97
+ * @internal
98
+ */
99
+ serviceId?: string;
100
+ /**
101
+ * The AWS region to which this client will send requests
102
+ */
103
+ region?: string | __Provider<string>;
104
+ /**
105
+ * Default credentials provider; Not available in browser runtime.
106
+ * @internal
107
+ */
108
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
109
+ /**
110
+ * Fetch related hostname, signing name or signing region with given region.
111
+ * @internal
112
+ */
113
+ regionInfoProvider?: RegionInfoProvider;
114
+ /**
115
+ * The function that provides necessary utilities for handling request event stream.
116
+ * @internal
117
+ */
118
+ eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
119
+ /**
120
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
121
+ * @internal
122
+ */
123
+ defaultUserAgentProvider?: Provider<__UserAgent>;
124
+ /**
125
+ * The function that provides necessary utilities for generating and parsing event stream
126
+ */
127
+ eventStreamSerdeProvider?: __EventStreamSerdeProvider;
128
+ /**
129
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
130
+ */
131
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
132
+ }
133
+ declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
134
+ /**
135
+ * The configuration interface of LexRuntimeV2Client class constructor that set the region, credentials and other options.
136
+ */
137
+ export interface LexRuntimeV2ClientConfig extends LexRuntimeV2ClientConfigType {
138
+ }
139
+ declare type LexRuntimeV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & EventStreamResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig;
140
+ /**
141
+ * The resolved configuration interface of LexRuntimeV2Client class. This is resolved and normalized from the {@link LexRuntimeV2ClientConfig | constructor configuration interface}.
142
+ */
143
+ export interface LexRuntimeV2ClientResolvedConfig extends LexRuntimeV2ClientResolvedConfigType {
144
+ }
145
+ /**
146
+ * <p></p>
147
+ */
148
+ export declare class LexRuntimeV2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LexRuntimeV2ClientResolvedConfig> {
149
+ /**
150
+ * The resolved configuration of LexRuntimeV2Client class. This is resolved and normalized from the {@link LexRuntimeV2ClientConfig | constructor configuration interface}.
151
+ */
152
+ readonly config: LexRuntimeV2ClientResolvedConfig;
153
+ constructor(configuration: LexRuntimeV2ClientConfig);
154
+ /**
155
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
156
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
157
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
158
+ */
159
+ destroy(): void;
160
+ }
161
+ export {};
@@ -1,35 +1,48 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeV2ClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeV2Client";
13
- import {
14
- DeleteSessionRequest,
15
- DeleteSessionResponse,
16
- } from "../models/models_0";
17
- export interface DeleteSessionCommandInput extends DeleteSessionRequest {}
18
- export interface DeleteSessionCommandOutput
19
- extends DeleteSessionResponse,
20
- __MetadataBearer {}
21
- export declare class DeleteSessionCommand extends $Command<
22
- DeleteSessionCommandInput,
23
- DeleteSessionCommandOutput,
24
- LexRuntimeV2ClientResolvedConfig
25
- > {
26
- readonly input: DeleteSessionCommandInput;
27
- constructor(input: DeleteSessionCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: LexRuntimeV2ClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
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
+ * <p>Removes session information for a specified bot, alias, and user ID. </p>
11
+ * <p>You can use this operation to restart a conversation with a bot.
12
+ * When you remove a session, the entire history of the session is removed
13
+ * so that you can start again.</p>
14
+ * <p>You don't need to delete a session. Sessions have a time limit and
15
+ * will expire. Set the session time limit when you create the bot. The
16
+ * default is 5 minutes, but you can specify anything between 1 minute and
17
+ * 24 hours.</p>
18
+ * <p>If you specify a bot or alias ID that doesn't exist, you receive a
19
+ * <code>BadRequestException.</code>
20
+ * </p>
21
+ * <p>If the locale doesn't exist in the bot, or if the locale hasn't been
22
+ * enables for the alias, you receive a
23
+ * <code>BadRequestException</code>.</p>
24
+ * @example
25
+ * Use a bare-bones client and the command you need to make an API call.
26
+ * ```javascript
27
+ * import { LexRuntimeV2Client, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
28
+ * // const { LexRuntimeV2Client, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
29
+ * const client = new LexRuntimeV2Client(config);
30
+ * const command = new DeleteSessionCommand(input);
31
+ * const response = await client.send(command);
32
+ * ```
33
+ *
34
+ * @see {@link DeleteSessionCommandInput} for command's `input` shape.
35
+ * @see {@link DeleteSessionCommandOutput} for command's `response` shape.
36
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
37
+ *
38
+ */
39
+ export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
40
+ readonly input: DeleteSessionCommandInput;
41
+ constructor(input: DeleteSessionCommandInput);
42
+ /**
43
+ * @internal
44
+ */
45
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
46
+ private serialize;
47
+ private deserialize;
48
+ }
@@ -1,32 +1,43 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeV2ClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeV2Client";
13
- import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
14
- export interface GetSessionCommandInput extends GetSessionRequest {}
15
- export interface GetSessionCommandOutput
16
- extends GetSessionResponse,
17
- __MetadataBearer {}
18
- export declare class GetSessionCommand extends $Command<
19
- GetSessionCommandInput,
20
- GetSessionCommandOutput,
21
- LexRuntimeV2ClientResolvedConfig
22
- > {
23
- readonly input: GetSessionCommandInput;
24
- constructor(input: GetSessionCommandInput);
25
- resolveMiddleware(
26
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
- configuration: LexRuntimeV2ClientResolvedConfig,
28
- options?: __HttpHandlerOptions
29
- ): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
30
- private serialize;
31
- private deserialize;
32
- }
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
+ * <p>Returns session information for a specified bot, alias, and
11
+ * user.</p>
12
+ * <p>For example, you can use this operation to retrieve session
13
+ * information for a user that has left a long-running session in
14
+ * use.</p>
15
+ * <p>If the bot, alias, or session identifier doesn't exist, Amazon Lex V2
16
+ * returns a <code>BadRequestException</code>. If the locale doesn't exist
17
+ * or is not enabled for the alias, you receive a
18
+ * <code>BadRequestException</code>.</p>
19
+ * @example
20
+ * Use a bare-bones client and the command you need to make an API call.
21
+ * ```javascript
22
+ * import { LexRuntimeV2Client, GetSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
23
+ * // const { LexRuntimeV2Client, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
24
+ * const client = new LexRuntimeV2Client(config);
25
+ * const command = new GetSessionCommand(input);
26
+ * const response = await client.send(command);
27
+ * ```
28
+ *
29
+ * @see {@link GetSessionCommandInput} for command's `input` shape.
30
+ * @see {@link GetSessionCommandOutput} for command's `response` shape.
31
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
32
+ *
33
+ */
34
+ export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
35
+ readonly input: GetSessionCommandInput;
36
+ constructor(input: GetSessionCommandInput);
37
+ /**
38
+ * @internal
39
+ */
40
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
41
+ private serialize;
42
+ private deserialize;
43
+ }
@@ -1,32 +1,37 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeV2ClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeV2Client";
13
- import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
14
- export interface PutSessionCommandInput extends PutSessionRequest {}
15
- export interface PutSessionCommandOutput
16
- extends PutSessionResponse,
17
- __MetadataBearer {}
18
- export declare class PutSessionCommand extends $Command<
19
- PutSessionCommandInput,
20
- PutSessionCommandOutput,
21
- LexRuntimeV2ClientResolvedConfig
22
- > {
23
- readonly input: PutSessionCommandInput;
24
- constructor(input: PutSessionCommandInput);
25
- resolveMiddleware(
26
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
- configuration: LexRuntimeV2ClientResolvedConfig,
28
- options?: __HttpHandlerOptions
29
- ): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
30
- private serialize;
31
- private deserialize;
32
- }
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
+ * <p>Creates a new session or modifies an existing session with an Amazon Lex V2
11
+ * bot. Use this operation to enable your application to set the state of
12
+ * the bot.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { LexRuntimeV2Client, PutSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
17
+ * // const { LexRuntimeV2Client, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
18
+ * const client = new LexRuntimeV2Client(config);
19
+ * const command = new PutSessionCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link PutSessionCommandInput} for command's `input` shape.
24
+ * @see {@link PutSessionCommandOutput} for command's `response` shape.
25
+ * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape.
26
+ *
27
+ */
28
+ export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
29
+ readonly input: PutSessionCommandInput;
30
+ constructor(input: PutSessionCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }