aws-sdk 2.829.0 → 2.833.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -1
- package/README.md +1 -1
- package/apis/customer-profiles-2020-08-15.min.json +4 -2
- package/apis/databrew-2017-07-25.min.json +79 -62
- package/apis/ec2-2016-11-15.min.json +197 -190
- package/apis/elasticache-2015-02-02.min.json +1 -0
- package/apis/es-2015-01-01.min.json +6 -0
- package/apis/kafka-2018-11-14.min.json +41 -0
- package/apis/managedblockchain-2018-09-24.min.json +159 -36
- package/apis/metadata.json +8 -0
- package/apis/models.lex.v2-2020-08-07.examples.json +5 -0
- package/apis/models.lex.v2-2020-08-07.min.json +2845 -0
- package/apis/models.lex.v2-2020-08-07.paginators.json +49 -0
- package/apis/monitoring-2010-08-01.min.json +15 -9
- package/apis/redshift-2012-12-01.min.json +1 -1
- package/apis/resourcegroupstaggingapi-2017-01-26.min.json +14 -10
- package/apis/robomaker-2018-06-29.min.json +198 -170
- package/apis/runtime.lex.v2-2020-08-07.examples.json +4 -0
- package/apis/runtime.lex.v2-2020-08-07.min.json +531 -0
- package/apis/runtime.lex.v2-2020-08-07.paginators.json +3 -0
- package/apis/securityhub-2018-10-26.min.json +406 -187
- package/apis/sesv2-2019-09-27.min.json +40 -15
- package/clients/accessanalyzer.d.ts +5 -5
- package/clients/all.d.ts +2 -0
- package/clients/all.js +3 -1
- package/clients/backup.d.ts +27 -27
- package/clients/cloudwatch.d.ts +12 -1
- package/clients/customerprofiles.d.ts +2 -2
- package/clients/databrew.d.ts +170 -143
- package/clients/ec2.d.ts +119 -111
- package/clients/elasticache.d.ts +14 -10
- package/clients/es.d.ts +8 -0
- package/clients/greengrassv2.d.ts +6 -6
- package/clients/iot.d.ts +2 -2
- package/clients/kafka.d.ts +52 -0
- package/clients/lexmodelsv2.d.ts +3350 -0
- package/clients/lexmodelsv2.js +18 -0
- package/clients/lexruntimev2.d.ts +542 -0
- package/clients/lexruntimev2.js +18 -0
- package/clients/lightsail.d.ts +2 -2
- package/clients/managedblockchain.d.ts +140 -6
- package/clients/rds.d.ts +14 -14
- package/clients/redshift.d.ts +8 -8
- package/clients/resourcegroupstaggingapi.d.ts +50 -45
- package/clients/robomaker.d.ts +35 -3
- package/clients/securityhub.d.ts +410 -63
- package/clients/sesv2.d.ts +30 -2
- package/clients/ssm.d.ts +2 -2
- package/dist/aws-sdk-core-react-native.js +2 -2
- package/dist/aws-sdk-react-native.js +91 -17
- package/dist/aws-sdk.js +225 -203
- package/dist/aws-sdk.min.js +60 -60
- package/lib/config.d.ts +1 -1
- package/lib/config_service_placeholders.d.ts +4 -0
- package/lib/core.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require('../lib/node_loader');
|
|
2
|
+
var AWS = require('../lib/core');
|
|
3
|
+
var Service = AWS.Service;
|
|
4
|
+
var apiLoader = AWS.apiLoader;
|
|
5
|
+
|
|
6
|
+
apiLoader.services['lexmodelsv2'] = {};
|
|
7
|
+
AWS.LexModelsV2 = Service.defineService('lexmodelsv2', ['2020-08-07']);
|
|
8
|
+
Object.defineProperty(apiLoader.services['lexmodelsv2'], '2020-08-07', {
|
|
9
|
+
get: function get() {
|
|
10
|
+
var model = require('../apis/models.lex.v2-2020-08-07.min.json');
|
|
11
|
+
model.paginators = require('../apis/models.lex.v2-2020-08-07.paginators.json').pagination;
|
|
12
|
+
return model;
|
|
13
|
+
},
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = AWS.LexModelsV2;
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import {Request} from '../lib/request';
|
|
2
|
+
import {Response} from '../lib/response';
|
|
3
|
+
import {AWSError} from '../lib/error';
|
|
4
|
+
import {Service} from '../lib/service';
|
|
5
|
+
import {ServiceConfigurationOptions} from '../lib/service';
|
|
6
|
+
import {ConfigBase as Config} from '../lib/config-base';
|
|
7
|
+
import {Readable} from 'stream';
|
|
8
|
+
interface Blob {}
|
|
9
|
+
declare class LexRuntimeV2 extends Service {
|
|
10
|
+
/**
|
|
11
|
+
* Constructs a service object. This object has one method for each API operation.
|
|
12
|
+
*/
|
|
13
|
+
constructor(options?: LexRuntimeV2.Types.ClientConfiguration)
|
|
14
|
+
config: Config & LexRuntimeV2.Types.ClientConfiguration;
|
|
15
|
+
/**
|
|
16
|
+
* Removes session information for a specified bot, alias, and user ID. You can use this operation to restart a conversation with a bot. When you remove a session, the entire history of the session is removed so that you can start again. You don't need to delete a session. Sessions have a time limit and will expire. Set the session time limit when you create the bot. The default is 5 minutes, but you can specify anything between 1 minute and 24 hours. If you specify a bot or alias ID that doesn't exist, you receive a BadRequestException. If the locale doesn't exist in the bot, or if the locale hasn't been enables for the alias, you receive a BadRequestException.
|
|
17
|
+
*/
|
|
18
|
+
deleteSession(params: LexRuntimeV2.Types.DeleteSessionRequest, callback?: (err: AWSError, data: LexRuntimeV2.Types.DeleteSessionResponse) => void): Request<LexRuntimeV2.Types.DeleteSessionResponse, AWSError>;
|
|
19
|
+
/**
|
|
20
|
+
* Removes session information for a specified bot, alias, and user ID. You can use this operation to restart a conversation with a bot. When you remove a session, the entire history of the session is removed so that you can start again. You don't need to delete a session. Sessions have a time limit and will expire. Set the session time limit when you create the bot. The default is 5 minutes, but you can specify anything between 1 minute and 24 hours. If you specify a bot or alias ID that doesn't exist, you receive a BadRequestException. If the locale doesn't exist in the bot, or if the locale hasn't been enables for the alias, you receive a BadRequestException.
|
|
21
|
+
*/
|
|
22
|
+
deleteSession(callback?: (err: AWSError, data: LexRuntimeV2.Types.DeleteSessionResponse) => void): Request<LexRuntimeV2.Types.DeleteSessionResponse, AWSError>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns session information for a specified bot, alias, and user. For example, you can use this operation to retrieve session information for a user that has left a long-running session in use. If the bot, alias, or session identifier doesn't exist, Amazon Lex returns a BadRequestException. If the locale doesn't exist or is not enabled for the alias, you receive a BadRequestException.
|
|
25
|
+
*/
|
|
26
|
+
getSession(params: LexRuntimeV2.Types.GetSessionRequest, callback?: (err: AWSError, data: LexRuntimeV2.Types.GetSessionResponse) => void): Request<LexRuntimeV2.Types.GetSessionResponse, AWSError>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns session information for a specified bot, alias, and user. For example, you can use this operation to retrieve session information for a user that has left a long-running session in use. If the bot, alias, or session identifier doesn't exist, Amazon Lex returns a BadRequestException. If the locale doesn't exist or is not enabled for the alias, you receive a BadRequestException.
|
|
29
|
+
*/
|
|
30
|
+
getSession(callback?: (err: AWSError, data: LexRuntimeV2.Types.GetSessionResponse) => void): Request<LexRuntimeV2.Types.GetSessionResponse, AWSError>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new session or modifies an existing session with an Amazon Lex bot. Use this operation to enable your application to set the state of the bot.
|
|
33
|
+
*/
|
|
34
|
+
putSession(params: LexRuntimeV2.Types.PutSessionRequest, callback?: (err: AWSError, data: LexRuntimeV2.Types.PutSessionResponse) => void): Request<LexRuntimeV2.Types.PutSessionResponse, AWSError>;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new session or modifies an existing session with an Amazon Lex bot. Use this operation to enable your application to set the state of the bot.
|
|
37
|
+
*/
|
|
38
|
+
putSession(callback?: (err: AWSError, data: LexRuntimeV2.Types.PutSessionResponse) => void): Request<LexRuntimeV2.Types.PutSessionResponse, AWSError>;
|
|
39
|
+
/**
|
|
40
|
+
* Sends user input to Amazon Lex. Client applications use this API to send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input using the machine learning model that it build for the bot. In response, Amazon Lex returns the next message to convey to the user and an optional response card to display.
|
|
41
|
+
*/
|
|
42
|
+
recognizeText(params: LexRuntimeV2.Types.RecognizeTextRequest, callback?: (err: AWSError, data: LexRuntimeV2.Types.RecognizeTextResponse) => void): Request<LexRuntimeV2.Types.RecognizeTextResponse, AWSError>;
|
|
43
|
+
/**
|
|
44
|
+
* Sends user input to Amazon Lex. Client applications use this API to send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input using the machine learning model that it build for the bot. In response, Amazon Lex returns the next message to convey to the user and an optional response card to display.
|
|
45
|
+
*/
|
|
46
|
+
recognizeText(callback?: (err: AWSError, data: LexRuntimeV2.Types.RecognizeTextResponse) => void): Request<LexRuntimeV2.Types.RecognizeTextResponse, AWSError>;
|
|
47
|
+
/**
|
|
48
|
+
* Sends user input to Amazon Lex. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the user input using the machine learning model built for the bot.
|
|
49
|
+
*/
|
|
50
|
+
recognizeUtterance(params: LexRuntimeV2.Types.RecognizeUtteranceRequest, callback?: (err: AWSError, data: LexRuntimeV2.Types.RecognizeUtteranceResponse) => void): Request<LexRuntimeV2.Types.RecognizeUtteranceResponse, AWSError>;
|
|
51
|
+
/**
|
|
52
|
+
* Sends user input to Amazon Lex. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the user input using the machine learning model built for the bot.
|
|
53
|
+
*/
|
|
54
|
+
recognizeUtterance(callback?: (err: AWSError, data: LexRuntimeV2.Types.RecognizeUtteranceResponse) => void): Request<LexRuntimeV2.Types.RecognizeUtteranceResponse, AWSError>;
|
|
55
|
+
}
|
|
56
|
+
declare namespace LexRuntimeV2 {
|
|
57
|
+
export interface ActiveContext {
|
|
58
|
+
/**
|
|
59
|
+
* The name of the context.
|
|
60
|
+
*/
|
|
61
|
+
name: ActiveContextName;
|
|
62
|
+
/**
|
|
63
|
+
* Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
|
|
64
|
+
*/
|
|
65
|
+
timeToLive: ActiveContextTimeToLive;
|
|
66
|
+
/**
|
|
67
|
+
* A lis tof contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request. If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
|
|
68
|
+
*/
|
|
69
|
+
contextAttributes?: ActiveContextParametersMap;
|
|
70
|
+
}
|
|
71
|
+
export type ActiveContextName = string;
|
|
72
|
+
export type ActiveContextParametersMap = {[key: string]: Text};
|
|
73
|
+
export interface ActiveContextTimeToLive {
|
|
74
|
+
/**
|
|
75
|
+
* The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).
|
|
76
|
+
*/
|
|
77
|
+
timeToLiveInSeconds: ActiveContextTimeToLiveInSeconds;
|
|
78
|
+
/**
|
|
79
|
+
* The number of turns that the context is active. You can specify up to 20 turns. Each request and response from the bot is a turn.
|
|
80
|
+
*/
|
|
81
|
+
turnsToLive: ActiveContextTurnsToLive;
|
|
82
|
+
}
|
|
83
|
+
export type ActiveContextTimeToLiveInSeconds = number;
|
|
84
|
+
export type ActiveContextTurnsToLive = number;
|
|
85
|
+
export type ActiveContextsList = ActiveContext[];
|
|
86
|
+
export type AttachmentTitle = string;
|
|
87
|
+
export type AttachmentUrl = string;
|
|
88
|
+
export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
|
|
89
|
+
export type BotAliasIdentifier = string;
|
|
90
|
+
export type BotIdentifier = string;
|
|
91
|
+
export interface Button {
|
|
92
|
+
/**
|
|
93
|
+
* The text that is displayed on the button.
|
|
94
|
+
*/
|
|
95
|
+
text: ButtonText;
|
|
96
|
+
/**
|
|
97
|
+
* The value returned to Amazon Lex when a user chooses the button.
|
|
98
|
+
*/
|
|
99
|
+
value: ButtonValue;
|
|
100
|
+
}
|
|
101
|
+
export type ButtonText = string;
|
|
102
|
+
export type ButtonValue = string;
|
|
103
|
+
export type ButtonsList = Button[];
|
|
104
|
+
export interface ConfidenceScore {
|
|
105
|
+
/**
|
|
106
|
+
* A score that indicates how confident Amazon Lex is that an intent satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher confidence.
|
|
107
|
+
*/
|
|
108
|
+
score?: Double;
|
|
109
|
+
}
|
|
110
|
+
export type ConfirmationState = "Confirmed"|"Denied"|"None"|string;
|
|
111
|
+
export interface DeleteSessionRequest {
|
|
112
|
+
/**
|
|
113
|
+
* The identifier of the bot that contains the session data.
|
|
114
|
+
*/
|
|
115
|
+
botId: BotIdentifier;
|
|
116
|
+
/**
|
|
117
|
+
* The alias identifier in use for the bot that contains the session data.
|
|
118
|
+
*/
|
|
119
|
+
botAliasId: BotAliasIdentifier;
|
|
120
|
+
/**
|
|
121
|
+
* The locale where the session is in use.
|
|
122
|
+
*/
|
|
123
|
+
localeId: LocaleId;
|
|
124
|
+
/**
|
|
125
|
+
* The identifier of the session to delete.
|
|
126
|
+
*/
|
|
127
|
+
sessionId: SessionId;
|
|
128
|
+
}
|
|
129
|
+
export interface DeleteSessionResponse {
|
|
130
|
+
/**
|
|
131
|
+
* The identifier of the bot that contained the session data.
|
|
132
|
+
*/
|
|
133
|
+
botId?: BotIdentifier;
|
|
134
|
+
/**
|
|
135
|
+
* The alias identifier in use for the bot that contained the session data.
|
|
136
|
+
*/
|
|
137
|
+
botAliasId?: BotAliasIdentifier;
|
|
138
|
+
/**
|
|
139
|
+
* The locale where the session was used.
|
|
140
|
+
*/
|
|
141
|
+
localeId?: LocaleId;
|
|
142
|
+
/**
|
|
143
|
+
* The identifier of the deleted session.
|
|
144
|
+
*/
|
|
145
|
+
sessionId?: SessionId;
|
|
146
|
+
}
|
|
147
|
+
export interface DialogAction {
|
|
148
|
+
/**
|
|
149
|
+
* The next action that the bot should take in its interaction with the user. The possible values are: Close - Indicates that there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response. ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?" Delegate - The next action is determined by Amazon Lex. ElicitSlot - The next action is to elicit a slot value from the user.
|
|
150
|
+
*/
|
|
151
|
+
type: DialogActionType;
|
|
152
|
+
/**
|
|
153
|
+
* The name of the slot that should be elicited from the user.
|
|
154
|
+
*/
|
|
155
|
+
slotToElicit?: NonEmptyString;
|
|
156
|
+
}
|
|
157
|
+
export type DialogActionType = "Close"|"ConfirmIntent"|"Delegate"|"ElicitIntent"|"ElicitSlot"|string;
|
|
158
|
+
export type Double = number;
|
|
159
|
+
export interface GetSessionRequest {
|
|
160
|
+
/**
|
|
161
|
+
* The identifier of the bot that contains the session data.
|
|
162
|
+
*/
|
|
163
|
+
botId: BotIdentifier;
|
|
164
|
+
/**
|
|
165
|
+
* The alias identifier in use for the bot that contains the session data.
|
|
166
|
+
*/
|
|
167
|
+
botAliasId: BotAliasIdentifier;
|
|
168
|
+
/**
|
|
169
|
+
* The locale where the session is in use.
|
|
170
|
+
*/
|
|
171
|
+
localeId: LocaleId;
|
|
172
|
+
/**
|
|
173
|
+
* The identifier of the session to return.
|
|
174
|
+
*/
|
|
175
|
+
sessionId: SessionId;
|
|
176
|
+
}
|
|
177
|
+
export interface GetSessionResponse {
|
|
178
|
+
/**
|
|
179
|
+
* The identifier of the returned session.
|
|
180
|
+
*/
|
|
181
|
+
sessionId?: NonEmptyString;
|
|
182
|
+
/**
|
|
183
|
+
* A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
|
|
184
|
+
*/
|
|
185
|
+
messages?: Messages;
|
|
186
|
+
/**
|
|
187
|
+
* A list of intents that Amazon Lex determined might satisfy the user's utterance. Each interpretation includes the intent, a score that indicates how confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
|
|
188
|
+
*/
|
|
189
|
+
interpretations?: Interpretations;
|
|
190
|
+
/**
|
|
191
|
+
* Represents the current state of the dialog between the user and the bot. You can use this to determine the progress of the conversation and what the next action might be.
|
|
192
|
+
*/
|
|
193
|
+
sessionState?: SessionState;
|
|
194
|
+
}
|
|
195
|
+
export interface ImageResponseCard {
|
|
196
|
+
/**
|
|
197
|
+
* The title to display on the response card. The format of the title is determined by the platform displaying the response card.
|
|
198
|
+
*/
|
|
199
|
+
title: AttachmentTitle;
|
|
200
|
+
/**
|
|
201
|
+
* The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
|
|
202
|
+
*/
|
|
203
|
+
subtitle?: AttachmentTitle;
|
|
204
|
+
/**
|
|
205
|
+
* The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
|
|
206
|
+
*/
|
|
207
|
+
imageUrl?: AttachmentUrl;
|
|
208
|
+
/**
|
|
209
|
+
* A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
|
|
210
|
+
*/
|
|
211
|
+
buttons?: ButtonsList;
|
|
212
|
+
}
|
|
213
|
+
export interface Intent {
|
|
214
|
+
/**
|
|
215
|
+
* The name of the intent.
|
|
216
|
+
*/
|
|
217
|
+
name: NonEmptyString;
|
|
218
|
+
/**
|
|
219
|
+
* A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
|
|
220
|
+
*/
|
|
221
|
+
slots?: Slots;
|
|
222
|
+
/**
|
|
223
|
+
* Contains fulfillment information for the intent.
|
|
224
|
+
*/
|
|
225
|
+
state?: IntentState;
|
|
226
|
+
/**
|
|
227
|
+
* Contains information about whether fulfillment of the intent has been confirmed.
|
|
228
|
+
*/
|
|
229
|
+
confirmationState?: ConfirmationState;
|
|
230
|
+
}
|
|
231
|
+
export type IntentState = "Failed"|"Fulfilled"|"InProgress"|"ReadyForFulfillment"|"Waiting"|string;
|
|
232
|
+
export interface Interpretation {
|
|
233
|
+
/**
|
|
234
|
+
* Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.
|
|
235
|
+
*/
|
|
236
|
+
nluConfidence?: ConfidenceScore;
|
|
237
|
+
/**
|
|
238
|
+
* The sentiment expressed in an utterance. When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
|
|
239
|
+
*/
|
|
240
|
+
sentimentResponse?: SentimentResponse;
|
|
241
|
+
/**
|
|
242
|
+
* A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
|
|
243
|
+
*/
|
|
244
|
+
intent?: Intent;
|
|
245
|
+
}
|
|
246
|
+
export type Interpretations = Interpretation[];
|
|
247
|
+
export type LocaleId = string;
|
|
248
|
+
export interface Message {
|
|
249
|
+
/**
|
|
250
|
+
* The text of the message.
|
|
251
|
+
*/
|
|
252
|
+
content?: Text;
|
|
253
|
+
/**
|
|
254
|
+
* Indicates the type of response.
|
|
255
|
+
*/
|
|
256
|
+
contentType?: MessageContentType;
|
|
257
|
+
imageResponseCard?: ImageResponseCard;
|
|
258
|
+
}
|
|
259
|
+
export type MessageContentType = "CustomPayload"|"ImageResponseCard"|"PlainText"|"SSML"|string;
|
|
260
|
+
export type Messages = Message[];
|
|
261
|
+
export type NonEmptyString = string;
|
|
262
|
+
export type ParameterName = string;
|
|
263
|
+
export interface PutSessionRequest {
|
|
264
|
+
/**
|
|
265
|
+
* The identifier of the bot that receives the session data.
|
|
266
|
+
*/
|
|
267
|
+
botId: BotIdentifier;
|
|
268
|
+
/**
|
|
269
|
+
* The alias identifier of the bot that receives the session data.
|
|
270
|
+
*/
|
|
271
|
+
botAliasId: BotAliasIdentifier;
|
|
272
|
+
/**
|
|
273
|
+
* The locale where the session is in use.
|
|
274
|
+
*/
|
|
275
|
+
localeId: LocaleId;
|
|
276
|
+
/**
|
|
277
|
+
* The identifier of the session that receives the session data.
|
|
278
|
+
*/
|
|
279
|
+
sessionId: SessionId;
|
|
280
|
+
/**
|
|
281
|
+
* A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
|
|
282
|
+
*/
|
|
283
|
+
messages?: Messages;
|
|
284
|
+
/**
|
|
285
|
+
* Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex should use in the conversation with the user.
|
|
286
|
+
*/
|
|
287
|
+
sessionState: SessionState;
|
|
288
|
+
/**
|
|
289
|
+
* Request-specific information passed between Amazon Lex and the client application. The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
|
|
290
|
+
*/
|
|
291
|
+
requestAttributes?: StringMap;
|
|
292
|
+
/**
|
|
293
|
+
* The message that Amazon Lex returns in the response can be either text or speech depending on the value of this parameter. If the value is text/plain; charset=utf-8, Amazon Lex returns text in the response.
|
|
294
|
+
*/
|
|
295
|
+
responseContentType?: NonEmptyString;
|
|
296
|
+
}
|
|
297
|
+
export interface PutSessionResponse {
|
|
298
|
+
/**
|
|
299
|
+
* The type of response. Same as the type specified in the responseContentType field in the request.
|
|
300
|
+
*/
|
|
301
|
+
contentType?: NonEmptyString;
|
|
302
|
+
/**
|
|
303
|
+
* A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
|
|
304
|
+
*/
|
|
305
|
+
messages?: NonEmptyString;
|
|
306
|
+
/**
|
|
307
|
+
* Represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
|
|
308
|
+
*/
|
|
309
|
+
sessionState?: NonEmptyString;
|
|
310
|
+
/**
|
|
311
|
+
* Request-specific information passed between the client application and Amazon Lex. These are the same as the requestAttribute parameter in the call to the PutSession operation.
|
|
312
|
+
*/
|
|
313
|
+
requestAttributes?: NonEmptyString;
|
|
314
|
+
/**
|
|
315
|
+
* The identifier of the session that received the data.
|
|
316
|
+
*/
|
|
317
|
+
sessionId?: SessionId;
|
|
318
|
+
/**
|
|
319
|
+
* If the requested content type was audio, the audio version of the message to convey to the user.
|
|
320
|
+
*/
|
|
321
|
+
audioStream?: BlobStream;
|
|
322
|
+
}
|
|
323
|
+
export interface RecognizeTextRequest {
|
|
324
|
+
/**
|
|
325
|
+
* The identifier of the bot that processes the request.
|
|
326
|
+
*/
|
|
327
|
+
botId: BotIdentifier;
|
|
328
|
+
/**
|
|
329
|
+
* The alias identifier in use for the bot that processes the request.
|
|
330
|
+
*/
|
|
331
|
+
botAliasId: BotAliasIdentifier;
|
|
332
|
+
/**
|
|
333
|
+
* The locale where the session is in use.
|
|
334
|
+
*/
|
|
335
|
+
localeId: LocaleId;
|
|
336
|
+
/**
|
|
337
|
+
* The identifier of the user session that is having the conversation.
|
|
338
|
+
*/
|
|
339
|
+
sessionId: SessionId;
|
|
340
|
+
/**
|
|
341
|
+
* The text that the user entered. Amazon Lex interprets this text.
|
|
342
|
+
*/
|
|
343
|
+
text: Text;
|
|
344
|
+
/**
|
|
345
|
+
* The current state of the dialog between the user and the bot.
|
|
346
|
+
*/
|
|
347
|
+
sessionState?: SessionState;
|
|
348
|
+
/**
|
|
349
|
+
* Request-specific information passed between the client application and Amazon Lex The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
|
|
350
|
+
*/
|
|
351
|
+
requestAttributes?: StringMap;
|
|
352
|
+
}
|
|
353
|
+
export interface RecognizeTextResponse {
|
|
354
|
+
/**
|
|
355
|
+
* A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
|
|
356
|
+
*/
|
|
357
|
+
messages?: Messages;
|
|
358
|
+
/**
|
|
359
|
+
* Represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
|
|
360
|
+
*/
|
|
361
|
+
sessionState?: SessionState;
|
|
362
|
+
/**
|
|
363
|
+
* A list of intents that Amazon Lex determined might satisfy the user's utterance. Each interpretation includes the intent, a score that indicates now confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
|
|
364
|
+
*/
|
|
365
|
+
interpretations?: Interpretations;
|
|
366
|
+
/**
|
|
367
|
+
* The attributes sent in the request.
|
|
368
|
+
*/
|
|
369
|
+
requestAttributes?: StringMap;
|
|
370
|
+
/**
|
|
371
|
+
* The identifier of the session in use.
|
|
372
|
+
*/
|
|
373
|
+
sessionId?: SessionId;
|
|
374
|
+
}
|
|
375
|
+
export interface RecognizeUtteranceRequest {
|
|
376
|
+
/**
|
|
377
|
+
* The identifier of the bot that should receive the request.
|
|
378
|
+
*/
|
|
379
|
+
botId: BotIdentifier;
|
|
380
|
+
/**
|
|
381
|
+
* The alias identifier in use for the bot that should receive the request.
|
|
382
|
+
*/
|
|
383
|
+
botAliasId: BotAliasIdentifier;
|
|
384
|
+
/**
|
|
385
|
+
* The locale where the session is in use.
|
|
386
|
+
*/
|
|
387
|
+
localeId: LocaleId;
|
|
388
|
+
/**
|
|
389
|
+
* The identifier of the session in use.
|
|
390
|
+
*/
|
|
391
|
+
sessionId: SessionId;
|
|
392
|
+
/**
|
|
393
|
+
* Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex should use in the conversation with the user.
|
|
394
|
+
*/
|
|
395
|
+
sessionState?: SensitiveNonEmptyString;
|
|
396
|
+
/**
|
|
397
|
+
* Request-specific information passed between the client application and Amazon Lex The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes for prefix x-amz-lex:.
|
|
398
|
+
*/
|
|
399
|
+
requestAttributes?: SensitiveNonEmptyString;
|
|
400
|
+
/**
|
|
401
|
+
* Indicates the format for audio input or that the content is text. The header must start with one of the following prefixes: PCM format, audio data must be in little-endian byte order. audio/l16; rate=16000; channels=1 audio/x-l16; sample-rate=16000; channel-count=1 audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false Opus format audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4 Text format text/plain; charset=utf-8
|
|
402
|
+
*/
|
|
403
|
+
requestContentType: NonEmptyString;
|
|
404
|
+
/**
|
|
405
|
+
* The message that Amazon Lex returns in the response can be either text or speech based on the responseContentType value. If the value is text/plain;charset=utf-8, Amazon Lex returns text in the response. If the value begins with audio/, Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to generate the speech using the configuration that you specified in the requestContentType parameter. For example, if you specify audio/mpeg as the value, Amazon Lex returns speech in the MPEG format. If the value is audio/pcm, the speech returned is audio/pcm at 16 KHz in 16-bit, little-endian format. The following are the accepted values: audio/mpeg audio/ogg audio/pcm (16 KHz) audio/* (defaults to mpeg) text/plain; charset=utf-8
|
|
406
|
+
*/
|
|
407
|
+
responseContentType?: NonEmptyString;
|
|
408
|
+
/**
|
|
409
|
+
* User input in PCM or Opus audio format or text format as described in the requestContentType parameter.
|
|
410
|
+
*/
|
|
411
|
+
inputStream?: BlobStream;
|
|
412
|
+
}
|
|
413
|
+
export interface RecognizeUtteranceResponse {
|
|
414
|
+
/**
|
|
415
|
+
* Indicates whether the input mode to the operation was text or speech.
|
|
416
|
+
*/
|
|
417
|
+
inputMode?: NonEmptyString;
|
|
418
|
+
/**
|
|
419
|
+
* Content type as specified in the responseContentType in the request.
|
|
420
|
+
*/
|
|
421
|
+
contentType?: NonEmptyString;
|
|
422
|
+
/**
|
|
423
|
+
* A list of messages that were last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
|
|
424
|
+
*/
|
|
425
|
+
messages?: NonEmptyString;
|
|
426
|
+
/**
|
|
427
|
+
* A list of intents that Amazon Lex determined might satisfy the user's utterance. Each interpretation includes the intent, a score that indicates how confident Amazon Lex is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
|
|
428
|
+
*/
|
|
429
|
+
interpretations?: NonEmptyString;
|
|
430
|
+
/**
|
|
431
|
+
* Represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action might be.
|
|
432
|
+
*/
|
|
433
|
+
sessionState?: NonEmptyString;
|
|
434
|
+
/**
|
|
435
|
+
* The attributes sent in the request.
|
|
436
|
+
*/
|
|
437
|
+
requestAttributes?: NonEmptyString;
|
|
438
|
+
/**
|
|
439
|
+
* The identifier of the session in use.
|
|
440
|
+
*/
|
|
441
|
+
sessionId?: SessionId;
|
|
442
|
+
/**
|
|
443
|
+
* The text used to process the request. If the input was an audio stream, the inputTranscript field contains the text extracted from the audio stream. This is the text that is actually processed to recognize intents and slot values. You can use this information to determine if Amazon Lex is correctly processing the audio that you send.
|
|
444
|
+
*/
|
|
445
|
+
inputTranscript?: NonEmptyString;
|
|
446
|
+
/**
|
|
447
|
+
* The prompt or statement to send to the user. This is based on the bot configuration and context. For example, if Amazon Lex did not understand the user intent, it sends the clarificationPrompt configured for the bot. If the intent requires confirmation before taking the fulfillment action, it sends the confirmationPrompt. Another example: Suppose that the Lambda function successfully fulfilled the intent, and sent a message to convey to the user. Then Amazon Lex sends that message in the response.
|
|
448
|
+
*/
|
|
449
|
+
audioStream?: BlobStream;
|
|
450
|
+
}
|
|
451
|
+
export type SensitiveNonEmptyString = string;
|
|
452
|
+
export interface SentimentResponse {
|
|
453
|
+
/**
|
|
454
|
+
* The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend.
|
|
455
|
+
*/
|
|
456
|
+
sentiment?: SentimentType;
|
|
457
|
+
sentimentScore?: SentimentScore;
|
|
458
|
+
}
|
|
459
|
+
export interface SentimentScore {
|
|
460
|
+
/**
|
|
461
|
+
* The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.
|
|
462
|
+
*/
|
|
463
|
+
positive?: Double;
|
|
464
|
+
/**
|
|
465
|
+
* The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.
|
|
466
|
+
*/
|
|
467
|
+
negative?: Double;
|
|
468
|
+
/**
|
|
469
|
+
* The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.
|
|
470
|
+
*/
|
|
471
|
+
neutral?: Double;
|
|
472
|
+
/**
|
|
473
|
+
* The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.
|
|
474
|
+
*/
|
|
475
|
+
mixed?: Double;
|
|
476
|
+
}
|
|
477
|
+
export type SentimentType = "MIXED"|"NEGATIVE"|"NEUTRAL"|"POSITIVE"|string;
|
|
478
|
+
export type SessionId = string;
|
|
479
|
+
export interface SessionState {
|
|
480
|
+
/**
|
|
481
|
+
* The next step that Amazon Lex should take in the conversation with a user.
|
|
482
|
+
*/
|
|
483
|
+
dialogAction?: DialogAction;
|
|
484
|
+
/**
|
|
485
|
+
* The active intent that Amazon Lex is processing.
|
|
486
|
+
*/
|
|
487
|
+
intent?: Intent;
|
|
488
|
+
/**
|
|
489
|
+
* One or more contexts that indicate to Amazon Lex the context of a request. When a context is active, Amazon Lex considers intents with the matching context as a trigger as the next intent in a session.
|
|
490
|
+
*/
|
|
491
|
+
activeContexts?: ActiveContextsList;
|
|
492
|
+
/**
|
|
493
|
+
* Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
|
|
494
|
+
*/
|
|
495
|
+
sessionAttributes?: StringMap;
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
*/
|
|
499
|
+
originatingRequestId?: NonEmptyString;
|
|
500
|
+
}
|
|
501
|
+
export interface Slot {
|
|
502
|
+
/**
|
|
503
|
+
* The current value of the slot.
|
|
504
|
+
*/
|
|
505
|
+
value?: Value;
|
|
506
|
+
}
|
|
507
|
+
export type Slots = {[key: string]: Slot};
|
|
508
|
+
export type String = string;
|
|
509
|
+
export type StringList = NonEmptyString[];
|
|
510
|
+
export type StringMap = {[key: string]: String};
|
|
511
|
+
export type Text = string;
|
|
512
|
+
export interface Value {
|
|
513
|
+
/**
|
|
514
|
+
* The text of the utterance from the user that was entered for the slot.
|
|
515
|
+
*/
|
|
516
|
+
originalValue?: NonEmptyString;
|
|
517
|
+
/**
|
|
518
|
+
* The value that Amazon Lex determines for the slot. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex choose the first value in the resolvedValues list.
|
|
519
|
+
*/
|
|
520
|
+
interpretedValue: NonEmptyString;
|
|
521
|
+
/**
|
|
522
|
+
* A list of additional values that have been recognized for the slot.
|
|
523
|
+
*/
|
|
524
|
+
resolvedValues?: StringList;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
|
528
|
+
*/
|
|
529
|
+
export type apiVersion = "2020-08-07"|"latest"|string;
|
|
530
|
+
export interface ClientApiVersions {
|
|
531
|
+
/**
|
|
532
|
+
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
|
533
|
+
*/
|
|
534
|
+
apiVersion?: apiVersion;
|
|
535
|
+
}
|
|
536
|
+
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
|
537
|
+
/**
|
|
538
|
+
* Contains interfaces for use with the LexRuntimeV2 client.
|
|
539
|
+
*/
|
|
540
|
+
export import Types = LexRuntimeV2;
|
|
541
|
+
}
|
|
542
|
+
export = LexRuntimeV2;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require('../lib/node_loader');
|
|
2
|
+
var AWS = require('../lib/core');
|
|
3
|
+
var Service = AWS.Service;
|
|
4
|
+
var apiLoader = AWS.apiLoader;
|
|
5
|
+
|
|
6
|
+
apiLoader.services['lexruntimev2'] = {};
|
|
7
|
+
AWS.LexRuntimeV2 = Service.defineService('lexruntimev2', ['2020-08-07']);
|
|
8
|
+
Object.defineProperty(apiLoader.services['lexruntimev2'], '2020-08-07', {
|
|
9
|
+
get: function get() {
|
|
10
|
+
var model = require('../apis/runtime.lex.v2-2020-08-07.min.json');
|
|
11
|
+
model.paginators = require('../apis/runtime.lex.v2-2020-08-07.paginators.json').pagination;
|
|
12
|
+
return model;
|
|
13
|
+
},
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = AWS.LexRuntimeV2;
|
package/clients/lightsail.d.ts
CHANGED
|
@@ -116,11 +116,11 @@ declare class Lightsail extends Service {
|
|
|
116
116
|
*/
|
|
117
117
|
createContainerServiceDeployment(callback?: (err: AWSError, data: Lightsail.Types.CreateContainerServiceDeploymentResult) => void): Request<Lightsail.Types.CreateContainerServiceDeploymentResult, AWSError>;
|
|
118
118
|
/**
|
|
119
|
-
* Creates a temporary set of log in credentials that you can use to log in to the Docker process on your local machine. After you're logged in, you can use the native Docker commands to push your local container images to the container image registry of your Amazon Lightsail account so that you can use them with your Lightsail container service. The log in credentials expire 12 hours after they are created, at which point you will need to create a new set of log in credentials. You can only push container images to the container service registry of your Lightsail account. You cannot pull container images perform any other container image management actions on the container service registry
|
|
119
|
+
* Creates a temporary set of log in credentials that you can use to log in to the Docker process on your local machine. After you're logged in, you can use the native Docker commands to push your local container images to the container image registry of your Amazon Lightsail account so that you can use them with your Lightsail container service. The log in credentials expire 12 hours after they are created, at which point you will need to create a new set of log in credentials. You can only push container images to the container service registry of your Lightsail account. You cannot pull container images or perform any other container image management actions on the container service registry. After you push your container images to the container image registry of your Lightsail account, use the RegisterContainerImage action to register the pushed images to a specific Lightsail container service. This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Lightsail Dev Guide.
|
|
120
120
|
*/
|
|
121
121
|
createContainerServiceRegistryLogin(params: Lightsail.Types.CreateContainerServiceRegistryLoginRequest, callback?: (err: AWSError, data: Lightsail.Types.CreateContainerServiceRegistryLoginResult) => void): Request<Lightsail.Types.CreateContainerServiceRegistryLoginResult, AWSError>;
|
|
122
122
|
/**
|
|
123
|
-
* Creates a temporary set of log in credentials that you can use to log in to the Docker process on your local machine. After you're logged in, you can use the native Docker commands to push your local container images to the container image registry of your Amazon Lightsail account so that you can use them with your Lightsail container service. The log in credentials expire 12 hours after they are created, at which point you will need to create a new set of log in credentials. You can only push container images to the container service registry of your Lightsail account. You cannot pull container images perform any other container image management actions on the container service registry
|
|
123
|
+
* Creates a temporary set of log in credentials that you can use to log in to the Docker process on your local machine. After you're logged in, you can use the native Docker commands to push your local container images to the container image registry of your Amazon Lightsail account so that you can use them with your Lightsail container service. The log in credentials expire 12 hours after they are created, at which point you will need to create a new set of log in credentials. You can only push container images to the container service registry of your Lightsail account. You cannot pull container images or perform any other container image management actions on the container service registry. After you push your container images to the container image registry of your Lightsail account, use the RegisterContainerImage action to register the pushed images to a specific Lightsail container service. This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Lightsail Dev Guide.
|
|
124
124
|
*/
|
|
125
125
|
createContainerServiceRegistryLogin(callback?: (err: AWSError, data: Lightsail.Types.CreateContainerServiceRegistryLoginResult) => void): Request<Lightsail.Types.CreateContainerServiceRegistryLoginResult, AWSError>;
|
|
126
126
|
/**
|