@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.
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +223 -106
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +161 -157
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +48 -35
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +43 -32
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +37 -32
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +65 -35
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +108 -47
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +94 -36
- package/dist-types/ts3.4/commands/index.d.ts +6 -6
- package/dist-types/ts3.4/endpoints.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +5 -5
- package/dist-types/ts3.4/models/LexRuntimeV2ServiceException.d.ts +10 -7
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2056 -852
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -80
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +42 -69
- package/dist-types/ts3.4/runtimeConfig.d.ts +42 -69
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +41 -70
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +13 -10
- package/package.json +2 -2
|
@@ -1,157 +1,161 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "@aws-sdk/
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "@aws-sdk/
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
}
|